Skip to content

Instantly share code, notes, and snippets.

@oroce
Last active October 1, 2015 11:50
Show Gist options
  • Select an option

  • Save oroce/c367d7d0f33c8629993a to your computer and use it in GitHub Desktop.

Select an option

Save oroce/c367d7d0f33c8629993a to your computer and use it in GitHub Desktop.
hcidump of hcitoool lecc

The command I ran:

pi@raspberrypi ~ $ sudo hcitool lescan
LE Scan ...
1C:BA:8C:20:E2:C8 (unknown)
1C:BA:8C:20:E2:C8 SensorTag
A0:14:3D:08:DC:92 (unknown)
A0:14:3D:08:DC:92 Flower power DC92
B4:99:4C:64:BE:83 (unknown)
B4:99:4C:64:BE:83 SensorTag
pi@raspberrypi ~ $ sudo hcitool lecc B4:99:4C:64:BE:83
Connection handle 64

hcidump:

pi@raspberrypi ~ $ hcidump -t -X
HCI sniffer - Bluetooth packet analyzer ver 5.34
device: hci0 snap_len: 1500 filter: 0xffffffff
2015-10-01 11:44:11.167291 > HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Enable (0x08|0x000c) ncmd 1
    status 0x00
2015-10-01 11:44:12.589422 > HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Parameters (0x08|0x000b) ncmd 1
    status 0x00
2015-10-01 11:44:12.593401 > HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Enable (0x08|0x000c) ncmd 1
    status 0x00
2015-10-01 11:47:33.056875 > HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Enable (0x08|0x000c) ncmd 1
    status 0x00
2015-10-01 11:47:48.503136 > HCI Event: Command Status (0x0f) plen 4
    LE Create Connection (0x08|0x000d) status 0x00 ncmd 1
2015-10-01 11:47:54.076624 > HCI Event: Command Status (0x0f) plen 4
    LE Read Remote Used Features (0x08|0x0016) status 0x00 ncmd 1
2015-10-01 11:47:56.111768 > HCI Event: Command Status (0x0f) plen 4
    Disconnect (0x01|0x0006) status 0x00 ncmd 1
2015-10-01 11:47:56.121777 > HCI Event: Disconn Complete (0x05) plen 4
    status 0x00 handle 64 reason 0x16
    Reason: Connection Terminated by Local Host

Version:

pi@raspberrypi ~ $ bluetoothctl -v
5.34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment