Questions tagged [gatttool]

36 questions
8
votes
0 answers

get char value handle in windows

In linux we have the tool gatttool to query bluetooth low energy devices. If we run gatttool --device=[MAC] --characteristics we get a list of characteristics that the corresponding device has. Example output: handle = 0x0002, char properties =…
Peter
  • 37,042
  • 39
  • 142
  • 198
3
votes
1 answer

Bluetooth BLE Gatttool not working on repeat executions if used on script or python, but it works fine if used manually. (Raspberry Pi 4)

I'm smashing my head on the wall, because I can't understand why if I use a script, python or even single line command, only works on the first run and then it's unable to connect againt to the device on the followins executions. Running on…
3
votes
1 answer

gatttool difference between --char-desc and --characteristics

The gatttool --help-all says the following: Usage: gatttool [OPTION...] Help Options: -h, --help Show help options --help-all Show all help options --help-gatt …
Peter
  • 37,042
  • 39
  • 142
  • 198
2
votes
2 answers

Light Weight Bluetooth LE library in C

I have been looking around for a simple Bluetooth LE library in C that allows me to scan for BLE devices, connect and receive periodic notifications from a given service UUID from the BLE device. Something that directly works with Bluetooth sockets…
2
votes
1 answer

pygatt: Unable to execute device.subscribe()

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…
Sandrocottus
  • 521
  • 3
  • 8
  • 31
2
votes
1 answer

Cannot read/write to characteristics in BLE

I have a BLED112 dongle and a BLE device which contains a GATT profile with Services-Characteristics. I have installed pygatt to communicate with my BLE device. Following is my python code to connect to my BLE device and read/write to a…
Sandrocottus
  • 521
  • 3
  • 8
  • 31
2
votes
2 answers

Get BLE data notifications in ubuntu

I defined custom service (NRF51822,S110) to send sensor data. In that I enabled notifications for new data. I can able to receive data, if I enabled notification in NRFconnect app in Android and windows. But I am not able to enable notification in…
2
votes
1 answer

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

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…
2
votes
0 answers

gatttool can't connect to a bluetooth module

I'm trying to connect a bluetooth module to a Raspberry Pi3 using gatttool. First, I launched gatttool with following command, and tried to connect; $ sudo gatttool -b (MAC ADDRESS) -I Then an error message was shown. Error: connect: Device or…
1
vote
0 answers

Decode BLE raw data

I want to decode data (Temperature and %RH) from a BLE device. I can get data from it. I know (guessed) where the data is (0x0028). But I don't know how to decode it. Here is what I get when running : sudo bettercap ble.enum 60:77:71:60:d1:8f I…
Pierre
  • 11
  • 2
1
vote
0 answers

BLE packet sent from Raspberry Pi does not contain UUID?

I'm using temperature Sensor in my project which supports BLE, first I checked this sensor with android mobile with BeaconSet+ app it worked fine, later I tried to connect with Raspberry Pi it got connected, but problem is I can't able to read…
1
vote
0 answers

Gatttool lost notifications

I am working with a BLE device that currently sends sequential values when subscribing to a notify characteristic. Each returned value starts with f083 and ends with 0000 with each hex value in between incrementing. When I connect to the device with…
CampbellMG
  • 2,090
  • 1
  • 18
  • 27
1
vote
1 answer

Which BluetoothLE handle do I need to write on to enable notifications?

This is my first shot working with bluetooth and I'm confused about which channel I should be sending my write packet to enable notifications. I'm working with the Fitness Machine 0x1826 service and I'm trying to get the data from the 0x2AD2…
robmak3
  • 33
  • 1
  • 1
  • 3
1
vote
0 answers

How to read a BMP packet from Huawei Watch GT-DEE by gatttool?

Currently I am doing a project which is requiring some sensor reading from Huawei Watch GT-DEE with gatttool, Python and Raspberry Pi 4. Here, the server and the client are Huawei Watch and Raspberry Pi respectively. However, I got this article…
testuser
  • 793
  • 3
  • 13
  • 35
1
vote
1 answer

pygatt NotificationTimeout: None

I try to read characteristic data out of an BLE based Sensor. Therefore i use the pygatt module import pygatt adapter = pygatt.GATTToolBackend() try: adapter.start() device = adapter.connect("2B:01:56:6C:F4:E6") value=…
Calu
  • 11
  • 1
1
2 3