Replies: 3 comments 3 replies
-
These are the same UUID. I assume TX is supposed to be ffe2? |
Beta Was this translation helpful? Give feedback.
-
The characteristic only supports write with response, so it should be |
Beta Was this translation helpful? Give feedback.
-
Post mortem: It is likely that the device requires that the pairing connection is also the I anchored my analysis on getting notifications, but it extends to write as well. Without prior pairing, any connection ends shortly after as it is unable to retrieve services and characteristics. With prior pairing, followed by disconnect and connect, notify was never changed to true. With a fresh pairing connection, notify happens fine. So for my case, I have to pair without connect first, then start notify and write as part of the script. When terminating, there is a need to unpair so we can pair nicely next connection attempt (cant unpair without connect). #309 would definitely make this easier. |
Beta Was this translation helpful? Give feedback.
-
I am having trouble reading and writing to/from a BLE device. This is follow up analysis from Jakeler/ble-serial#108. Write immediately causes disconnect, and read does not get registered.
Set-up
bleak_test.py
below.btmon
andwireshark
, I see no corresponding Bluetooth/dbus-system
message with the character being sent out.btmon
andwireshark
, There is corresponding bluetooth message but nodbus-system
message, and thebleak_test.py
script does not seem to registerBleak version: 0.22.3
Python version: 3.12.3
Operating System: Ubuntu 24.04.1 LTS on RaspberryPi 5
BlueZ version (bluetoothctl -v) in case of Linux: 5.72
While the name of the device is HC-05, it is highly unlikely it is HC-05.
Code
Write
Output (trying to send character 'a')
Read
Red herring?
Maybe 1 out of 50 resets of
bleak_test.py
, Read would be working, ondbus-system
I will see:and on
bleak_test.py
I would see:Write still does not appear on
dbus-system
orminicom
. However, the message seems to be captured onbtmon
:At this point I'm really curious what could be causing why it works on Android (with serial bluetooth terminal) versus bleak (on raspberrypi5). Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions