-
DescriptionI am having issues enumerating services and characteristics using bleak connecting to an ESP32, it has no issues when there is a small number of services and characteristics but when there are more, it doesn't enumerate correctly on a Raspberry Pi and it crashes on windows. The issue seems to primarily concern Descriptors. Using an Android phone with nRF Connect, everything seems to enumerate correctly. What I DidUsing service_explorer.py as a base I tried to enumerate everything from services to descriptors. So on a raspberry pi I get this:
Nordic UART TX characteristic should have a 0x2902 (00002902-0000-1000-8000-00805f9b34fb) descriptor as should c8659211-af91-4ad3-a995-a58d6fd26145. On windows the .net service crashes when attempting the same (oddly with a different order of services):
Notably when Isolating when isolating the problem services/chars on the esp32 firmware, yields a correct enumeration. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I would first suspect that the error message is correct and there is some sort of protocol error on the part of the ESP32. I would inspect the Bluetooth traffic with Wireshark to see what is really going on. https://bleak.readthedocs.io/en/latest/troubleshooting.html#capture-bluetooth-traffic |
Beta Was this translation helpful? Give feedback.
I would first suspect that the error message is correct and there is some sort of protocol error on the part of the ESP32. I would inspect the Bluetooth traffic with Wireshark to see what is really going on. https://bleak.readthedocs.io/en/latest/troubleshooting.html#capture-bluetooth-traffic