Closed gilcu3 closed 2 weeks ago
This error is coming from the peripheral. I would recommend sniffing Bluetooth packets to see how the official app communicates and compare that to what Bleak is doing.
I did already, the most notable difference I can see is that a few generic packets are not sent, therefore my suspicious that one of those is not supported and blocks communication. Original trace: bt.pcap
I take it that bt.pcap
is the working case from a non-Linux system?
If the peripheral says it has the Peripheral Preferred Connection Parameters characteristic but fails to respond to read requests, I'm not sure what could be done.
Yes, it is the working case from Android. I think the device might have wrong characteristics, is it possible in bleak
to disable some of that default behavior?
No, that part is controlled by BlueZ.
Thank you, I guess I will need a lower level library then.
bluetoothctl -v
) in case of Linux: 5.76Description
I am trying to connect to a smart scale. There is a single characteristic that has notifications enabled, and I am using as a starter the
enable_notifications.py
example from the repo.What I Did
Using
wireshark
I see that the last packet sent is always:for which the device never replies nor sends anything else.
Logs
log.txt
The error shown at the end is: