Using Bluetooth low energy in linux command line

SDP is absent in BLE. Broadcast/advertise frame and GATT client/server are used instead. Several links: BlueZ gatttool: command line tool to run common GATT procedures BlueZ GATT’s ready profiles hint: DBUS GATT and DBUS example How can I connect to the FitBit Zip over Bluetooth 4.0 LE on Linux with bluez? Bluetooth Low Energy: listening … Read more

Use BlueZ Stack As A Peripheral (Advertiser)

With your Bluetooth dongle plugged in, running the following command will tell you the device name and give its state: $ hciconfig The output should look something like this: hci0: Type: BR/EDR Bus: USB BD Address: 00:01:02:aa:bb:cc ACL MTU: 1021:8 SCO MTU: 64:1 DOWN RX bytes:1000 acl:0 sco:0 events:47 errors:0 TX bytes:1072 acl:0 sco:0 commands:47 … Read more

Bluetooth Low Energy: listening for notifications/indications in linux

Try this… Run gatttool -b <MAC Address> –interactive like you did before. You’ll get a prompt and then you type connect. You should see a CON in the prompt indicating that you’ve connected to the device. Then type char-read-uuid 2902. You should get a list of all CCC (Client Characteristic Configuration) attributes on the device. … Read more