Upgrade to Pro — share decks privately, control downloads, hide ads and more …

MicroPython × BLE × テプラ 〜リバースエンジニアリングを添えて〜 /mic...

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

PyCon JP 2021 オンライン

Takumi Sueda

October 16, 2021
Tweet

More Decks by Takumi Sueda

Other Decks in Technology

Transcript

  1. 13

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

    2 ) 19 ESPr® Developer 32 https://www.switch-science.com/catalog/ 3 21 0 /
  3. MicroPython × BLE × Python json, time, asyncio (uasyncio), zlib

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

    Service discovery prop_write_without_response Characteristic MicroPython BLE 22
  5. 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
  6. MicroPython × BLE × 25 f0 5c = 00 03

    00 00 00 00 00 00 = 1 00 03 00 00 00 00 00 00 = 2