SimpleBLE icon indicating copy to clipboard operation
SimpleBLE copied to clipboard

Inconsistent read on macOS

Open Sylphe88 opened this issue 1 year ago • 1 comments

Hey,

I've been unable to retrieve a characteristic value in Python (3.12) on macOS 14.5. Some other characteristics work as expected (with larger or smaller payloads). My peripheral works properly, and both Bleak on the same machine, and the nRF Connect Android app return the correct value for this characteristic.

I've been using the read sample provided and I can tell the peripheral sends the right data without error (debug enabled). With SimpleBLE, this characteristic remains empty (returns b'' as byte array).

Using version 0.7.3 of the Python package.

Any clue? Encoding maybe ? The expected payload is something like e8 07 02 0f 12 11 10 05 00 00 (it's the standard Current Time)

Sylphe88 avatar Sep 16 '24 13:09 Sylphe88

Same issue over here on mac os 14.2.1 python 3.13. I can't read anything out of my services, just getting empty arrays like yourself. I have expected payload based on bluetooth trace to the device connecting though its first party app, but I'm not seeing any patterns that come from PacketLogger trace (either the payload in hex, nor handle or value) actually make it into the services/characteristics/descriptors patterns. It feels like I am feeling around blind. I have only been able to write hex payloads when I can inspect them via trace like this and painstakingly reverse engineer. I can't identify what a payload ought to be otherwise, and I can't read payloads that I ought to be able to from this device either.

lkg101134 avatar Apr 26 '25 19:04 lkg101134