Closed btoland closed 3 years ago
Hi Ben, the tool always searches for a write characteristic, even if you don't specify one (the builtin list is used for that). It is currently not possible to disable this through parameters. So you have to either add a write characteristic to the Arduino or modify ble-serial. A makeshift solution would be to just comment out or remove this line. Then it should connect and work for reading, but crash if you write something to the UART. I will think about a proper fix, a 'read only' (or 'write only') option could be potentially useful, instead of always requiring both directions.
Though with reading you encounter another problem, because you want to read from 2 characteristics simultaneously?
Hi Jake,
Cheers for the quick response.
I can easily add a dummy write characteristic to my code so that will be the solution I'll go for now.
I was only playing with demo code on the Nano last night and it split the accelerometer axises into separate read characteristics. It will be easy to put the X, y, and z readings into one characteristic so I'll run with that.
If you get a chance to look into a read only solution it might be useful for people starting to play with the Nano as they could use your tool with the demo code out of the box.
Again, many thanks for the reply and information.
Much appreciated, -Ben.
Hi,
I might be completely on the wrong track here but I was trying to use your tool to connect to an Arduino Nano 33 BLE so that I could try read its accelerometer values via a serial port on my mac.
ble-scan can see it and reports back the read characteristics of the X and Y accelerations (what is published by the demo code on the Nano) but ble-serial will not connect as it reports back that there is no write characteristic to connect to. See below. I tried specifying the read characteristic UUID but it made no difference - as expected from the -v output anyway.
Does this tool on work if the BLE hardware has a write characteristic?
Many thanks, -Ben.
macos: Mojave 10.14.6 Python version: 3.9.6