gatttool

Gatttool Non-Interactive mode, multiple char-write-req

亡梦爱人 提交于 2021-01-29 18:53:04
问题 I would like to retrieve the data of a stryd footpod. I would like to listen to 2 separate uuid's. In interactive mode, I would connect using sudo gatttool -t random -b XX:XX:XX:XX:XX:XX -I connect char-write-req 0x001a 0100 char-write-req 0x000f 0100 However, as I use this as part of a perl script, I would like to leverage non-interactive mode. Starting gatttool with a single handle works fine: gatttool -t random -i hci0 -b XX:XX:XX:XX:XX:XX --char-write-req --handle=0x001a --value=0100 -

pygatt: Unable to execute device.subscribe()

↘锁芯ラ 提交于 2020-04-07 01:20:04
问题 I am trying to subscribe to a GATT characteristic. I have set the "Indicate", "Notify" and "Read" attributes for the GATT characteristic in my BLE device. I am able to connect to my BLE device and read/write to other characteristics. However, i am unable to execute the device.subscribe() function for this particular characteristic. When i use device.subscribe("845ce63c-d003-423c-8922-818676d34255", callback=handle_data) i get the error pygatt.backends.bgapi.exceptions.ExpectedResponseTimeout:

Raspberry Pi3 BLE as Central device receiving just one packet per connection interval - gatttool/hcitool

若如初见. 提交于 2019-12-10 11:44:49
问题 i would appreciate if someone can explain one issue i'm experiencing with Raspberry Pi 3 model B acting as a Central device on a BLE connection with a Peripheral device. First, i successsfully connect both devices and enable notifications on the Central device using the folllowing hcitool/gatttool commands: sudo hciconfig hci0 up sudo gatttool --adapter=hci0 --device=XX:XX:XX:XX:XX:XX --adr_type=random --mtu=23 -I [][LE]> connect [][LE]> char-write-req 0x000c 0100 After that, i started