-
DescriptionI am writing a Fitness Machine Server and to be able to debug the server, also a Collector (client). The collector is based upon bleak\examples\discover.py, service_explorer.py What is already workingAs a service an existing FTMS is used and that service is correctly detected. What is NOT yet workingWhen sending data to the server "await client.write_gatt_char(sUUID, info)" it seems the data does not arrive and no response is received. Should such a UUID also be linked as "await client.start_notify(uuid, notificationHandler)"? In other words: what is the calling sequence to write a characteristic of a server? |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 2 replies
-
If you expect a response via an indication, then yes, you need to register a callback with If you still have problems, see the troubleshooting section in the docs. |
Beta Was this translation helpful? Give feedback.
-
Thanks, I will check the docs (again, did not yet find the correct spot). I'll be back😉 Thanks again for this library, I'm at 98% of what I need. Last step always the hardest. |
Beta Was this translation helpful? Give feedback.
-
Hi David, perhaps you can help me. Based upon your examples, I have written a Collector, being a client for a Fitness Machine. Source module is here start_notify() also works, since notifications are received; At this line From then it's unclear At this line After The printed output is as below; no response on the FitnessMachineControlPoint is received; other notifications are.
|
Beta Was this translation helpful? Give feedback.
-
Note; all the information above is on Windows 10 with a BLE 5.0 dongle. The output below is on a raspberry Pi0 W:
This means that the indication is received on RPI0 So this shows that there is a difference between the two implementations |
Beta Was this translation helpful? Give feedback.
-
Logging Bluetooth packets will let you see what is actually being sent to the Bluetooth chip. If you do this on both Windows and Linux, you should be able to spot the difference. In the winrt backend, there is a |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for staying with me. As soon as it works, I will move back to testing on Windows 10 to check whether the indications actually do not appear. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/WouterJD/FortiusANT/blob/Implement-BLE-using-bless/pythoncode/bleClient.py The program works on Raspberry rpi0W raspbian (10) buster On Windows 10, Trainer Road can work succesfully with the FTMS server; so I assume BLEdongle and system-drivers are ok. |
Beta Was this translation helpful? Give feedback.
-
The way how to work has become clear now |
Beta Was this translation helpful? Give feedback.
The way how to work has become clear now
indications are received on Raspberry Pi0 but do NOT work on Windows 10; new issue written #775