PyCon JP 2021 オンライン
MicroPython × BLE × PyCon JP2021@puhitaku
View Slide
TEPRA2
https://twitter.com/ejo090/status/4255233404306964483
https://twitter.com/okayan08/status/7972556644646010894
https://twitter.com/okayan08/status/5658604957441843225
https://www.kingjim.co.jp/products/tepra/sr370.html6
TEPRA Lite LR30TEPRA Lite LR30https://www.kingjim.co.jp/sp/lr30/7
TEPRA Lite LR30https://www.kingjim.co.jp/sp/lr30/8
TEPRA Lite LR309
TEPRA Lite LR30 https://www.kingjim.co.jp/products/tepra/sr370.html10
TEPRA Lite LR30 11
TEPRA Lite LR3012
13
Bluetooth Low Energy (BLE)https://www.kingjim.co.jp/sp/lr30/feature/index.html14
Switch Science Bluefruit LE Sniffer15
Wireshark16
BLE17💻⚡
PC Bluetooth2BluetoothBluez Linux BT PythonBLE18😇
PCBluetoothAPI Wi-Fi BLE🥰BLE (ESP32)19ESPr® Developer32https://www.switch-science.com/catalog/3210/
MicroPython × BLE ×20
MicroPython × BLE ×Pythonjson, time, asyncio (uasyncio), zlibbatteries includedCPython (REPL) MicroPython machine GPIOMicroPython21
MicroPython × BLE ×BLE bluetoothbluetooth.BLE IRQAPIgattc_discover_servicesService discoveryprop_write_without_responseCharacteristicMicroPython BLE22
MicroPython × BLE ×0x180f Battery Service… 0x2a19 Battery Level Characteristic0xfff0 TEPRA Lite Service0xfff1 TEPRA Lite Char.…Notify (RX)0xfff2 TEPRA Lite Char.…Write Without Response (TX)ESP3 2Service Characteristic23Characteristic
MicroPython × BLE ×0xfff2240 5
MicroPython × BLE × 25f0 5c =00 03 00 00 00 00 00 00 = 100 03 00 00 00 00 00 00 = 2
MicroPython × BLE ×f0 5c26
MicroPython × BLE ×127
MicroPython × BLE × 28
PC Wi-Fi ESP3229💻⚡
MicroPython × BLE × 300 5REST APIzlib /prints POST
MicroPython × BLE × 310 5CLIPillow QR
REST APIhttps://github.com/hugokernel/micropython-nanowebasyncio Flask API Web APInanoweb32
MicroPython × BLE ×https://github.com/puhitaku/tepra-lite-esp3233GitHub
MicroPython BLE MicroPython34