BLE REPL, example code not working (not advertising?)
Posted: Tue Dec 07, 2021 5:38 pm
EDIT: I can't get the device popping up as a uart in windows, linux, iphone and android. Kind of works using python's ble-serial, but I've to manually set read and write characteristics, and first attempt to connect always fails with timeout.
Hi,
I've uploaded to device:
- ble_advertising.py
- ble_uart_peripheral.py
- ble_uart_repl.py
then wrote in main.py
After rebooting I can see the device in the ble scanners, it has some services and characteristics, included 1 write and 1 notify characteristics for nrf nordic uart service. But then both my ble serial terminal apps fail to list the device so I can't connect.
I am using "Bluetooth Serial Terminal" on win10, and "BLE Serial" on iPhone.
I get a similar result using https://github.com/Jakeler/ble-serial python terminal: I can scan, but I can't connect to uart service.
Any clue?
Note: I'm using MP v1.17 and the examples code is in commit b491967. The board is an esp-wroom-32 plugged into a development dongle. My C++ version works properly but I'd like to switch to MP.
Hi,
I've uploaded to device:
- ble_advertising.py
- ble_uart_peripheral.py
- ble_uart_repl.py
then wrote in main.py
Code: Select all
import ble_uart_repl
ble_uart_repl.start()
I am using "Bluetooth Serial Terminal" on win10, and "BLE Serial" on iPhone.
I get a similar result using https://github.com/Jakeler/ble-serial python terminal: I can scan, but I can't connect to uart service.
Any clue?
Note: I'm using MP v1.17 and the examples code is in commit b491967. The board is an esp-wroom-32 plugged into a development dongle. My C++ version works properly but I'd like to switch to MP.