sudo apt install bluez-hcidump sudo hcidump -t -x # Error: Unsupported Remote Feature / Unsupported LMP Feature
2018-06-27 12:45:55.333554 > HCI Event: LE Meta Event (0x3e) plen 19
LE Connection Complete
status 0x00 handle 64, role slave
bdaddr 00:1A:7D:DA:71:11 (Public)
2018-06-27 12:45:55.333871 < HCI Command: LE Read Remote Used Features (0x08|0x0016) plen 2
40 00
2018-06-27 12:45:55.336918 > HCI Event: Command Status (0x0f) plen 4
LE Read Remote Used Features (0x08|0x0016) status 0x00 ncmd 1
2018-06-27 12:45:55.338272 < ACL data: handle 64 flags 0x00 dlen 7
ATT: MTU req (0x02)
client rx mtu 256
2018-06-27 12:45:55.636486 > ACL data: handle 64 flags 0x02 dlen 9
ATT: Error (0x01)
Error: Request not supported (6)
MTU req (0x02) on handle 0x0000
2018-06-27 12:45:55.665174 > HCI Event: Number of Completed Packets (0x13) plen 5
handle 64 packets 1
2018-06-27 12:45:55.736005 > HCI Event: LE Meta Event (0x3e) plen 12
LE Read Remote Used Features Complete
status 0x1a handle 64
Error: Unsupported Remote Feature / Unsupported LMP Feature
2018-06-27 12:45:55.747028 < ACL data: handle 64 flags 0x00 dlen 9
ATT: Error (0x01)
Error: Request not supported (6)
Error (0x01) on handle 0x0000
2018-06-27 12:45:56.040205 > HCI Event: Number of Completed Packets (0x13) plen 5
handle 64 packets 1
2018-06-27 12:45:58.036295 > HCI Event: Disconn Complete (0x05) plen 4
status 0x00 handle 64 reason 0x13
Reason: Remote User Terminated Connection
2018-06-27 12:45:58.114330 < HCI Command: LE Set Advertise Enable (0x08|0x000a) plen 1
01
2018-06-27 12:45:58.114807 > HCI Event: Command Complete (0x0e) plen 4
LE Set Advertise Enable (0x08|0x000a) ncmd 1
status 0x00
Usage:
lsusb
Bus 002 Device 005: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
cat examples/demo.py
if __name__ == '__main__':
logging.basicConfig(level=logging.INFO)
conn = GattConnection("hci0")
mac = '00:16:53:ab:9e:91' # must use lowercase
conn.connect(mac)
hub = MoveHub(conn)
demo_all(hub)
hub.disconnect()
<iframe src="//www.slideshare.net/slideshow/embed_code/key/MqTxveMdYJJR8d" width="595" height="485" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:1px solid #CCC; border-width:1px; margin-bottom:5px; max-width: 100%;" allowfullscreen> </iframe> <div style="margin-bottom:5px"> <strong> <a href="//www.slideshare.net/jacopsd/bluetooth-bluetooth-low-energy-internals" title="Bluetooth & Bluetooth Low Energy internals" target="_blank">Bluetooth & Bluetooth Low Energy internals</a> </strong> from <strong><a href="https://www.slideshare.net/jacopsd" target="_blank">Davy Jacops</a></strong> </div>