Save 37% off PRO during our Black Friday Sale! »

MicroPython × BLE × テプラ 〜リバースエンジニアリングを添えて〜 /micropython-ble-tepra

MicroPython × BLE × テプラ 〜リバースエンジニアリングを添えて〜 /micropython-ble-tepra

PyCon JP 2021 オンライン

C825832c4fc71ffdfd44905729281fb0?s=128

Takumi Sueda

October 16, 2021
Tweet

Transcript

  1. MicroPython × BLE × PyCon JP 2021 @puhitaku

  2. TEPRA 2

  3. https://twitter.com/ejo 090 /status/ 425 52 334 04 306 96 448

    3
  4. https://twitter.com/okayan 08 /status/ 7 972 55 664 46 460 10

    89 4
  5. https://twitter.com/okayan 08 /status/ 5 658 60 495 74 418 43

    22 5
  6. https://www.kingjim.co.jp/products/tepra/sr 37 0 .html 6

  7. TEPRA Lite LR 30 TEPRA Lite LR 3 0 https://www.kingjim.co.jp/sp/lr

    3 0 / 7
  8. TEPRA Lite LR 30 https://www.kingjim.co.jp/sp/lr 3 0 / 8

  9. TEPRA Lite LR 30 9

  10. TEPRA Lite LR 30 
 https://www.kingjim.co.jp/products/tepra/sr 37 0 .html 10

  11. TEPRA Lite LR 30 11

  12. TEPRA Lite LR 30 12

  13. 13

  14. Bluetooth Low Energy (BLE) https://www.kingjim.co.jp/sp/lr 3 0 /feature/index.html 14

  15. Switch Science Bluefruit LE Sni ff er 15

  16. Wireshark 16

  17. BLE 17 💻 ⚡

  18. PC Bluetooth 2 Bluetooth Bluez Linux BT Python BLE 18

    😇
  19. PC Bluetooth API 
 Wi-Fi BLE 🥰 BLE (ESP 3

    2 ) 19 ESPr® Developer 32 https://www.switch-science.com/catalog/ 3 21 0 /
  20. MicroPython × BLE × 20

  21. MicroPython × BLE × Python json, time, asyncio (uasyncio), zlib

    batteries included CPython (REPL) 
 MicroPython machine 
 GPIO MicroPython 21
  22. MicroPython × BLE × BLE bluetooth bluetooth.BLE IRQ API gattc_discover_services

    Service discovery prop_write_without_response Characteristic MicroPython BLE 22
  23. MicroPython × BLE × 0x180f Battery Service … 0x2a19 Battery

    Level Characteristic 0xfff0 TEPRA Lite Service 0xfff1 TEPRA Lite Char. … Notify (RX) 0xfff2 TEPRA Lite Char. … Write Without Response (TX) ESP 3 2 Service Characteristic 23 Characteristic
  24. MicroPython × BLE × 0xfff2 24 0 5

  25. MicroPython × BLE × 25 f0 5c = 00 03

    00 00 00 00 00 00 = 1 00 03 00 00 00 00 00 00 = 2
  26. MicroPython × BLE × f0 5c 26

  27. MicroPython × BLE × 1 27

  28. MicroPython × BLE × 
 28

  29. PC Wi-Fi ESP 3 2 29 💻 ⚡

  30. MicroPython × BLE × 30 0 5 REST API zlib

    /prints POST
  31. MicroPython × BLE × 31 0 5 CLI Pillow QR

  32. REST API https://github.com/hugokernel/micropython- nanoweb asyncio Flask API Web API nanoweb

    32
  33. MicroPython × BLE × https://github.com/puhitaku/tepra-lite-esp32 33 GitHub

  34. MicroPython 
 BLE 
 
 
 MicroPython 34

  35. None