Skip to content

Instantly share code, notes, and snippets.

@sidwarkd
Created February 5, 2015 17:34
Show Gist options
  • Save sidwarkd/8116977ed536b85ef681 to your computer and use it in GitHub Desktop.
Save sidwarkd/8116977ed536b85ef681 to your computer and use it in GitHub Desktop.
Logs for BLE issue with Bleno
HCI sniffer - Bluetooth packet analyzer ver 2.4
device: hci0 snap_len: 1028 filter: 0xffffffff
> HCI Event: Command Complete (0x0e) plen 4
LE Set Advertise Enable (0x08|0x000a) ncmd 1
status 0x0c
Error: Command Disallowed
> HCI Event: Command Complete (0x0e) plen 4
LE Set Advertise Enable (0x08|0x000a) ncmd 1
status 0x00
> HCI Event: Command Complete (0x0e) plen 4
LE Set Advertise Enable (0x08|0x000a) ncmd 1
status 0x00
> HCI Event: Command Complete (0x0e) plen 10
Read BD ADDR (0x04|0x0009) ncmd 1
status 0x00 bdaddr 00:1A:7D:DA:71:13
> HCI Event: Command Complete (0x0e) plen 4
LE Set Advertise Enable (0x08|0x000a) ncmd 1
status 0x0c
Error: Command Disallowed
> HCI Event: Command Complete (0x0e) plen 4
LE Set Scan Response Data (0x08|0x0009) ncmd 1
status 0x00
> HCI Event: Command Complete (0x0e) plen 4
LE Set Advertising Data (0x08|0x0008) ncmd 1
status 0x00
> HCI Event: Command Complete (0x0e) plen 4
LE Set Advertising Parameters (0x08|0x0006) ncmd 1
status 0x00
> HCI Event: Command Complete (0x0e) plen 4
LE Set Advertise Enable (0x08|0x000a) ncmd 1
status 0x00
> HCI Event: Command Complete (0x0e) plen 4
LE Set Scan Response Data (0x08|0x0009) ncmd 1
status 0x00
> HCI Event: Command Complete (0x0e) plen 4
LE Set Advertising Data (0x08|0x0008) ncmd 1
status 0x00
> HCI Event: Command Status (0x0f) plen 4
Read Remote Version Information (0x01|0x001d) status 0x00 ncmd 1
> HCI Event: Read Remote Ver Info Complete (0x0c) plen 8
status 0x00 handle 69
LMP Version: 4.0 (0x6) LMP Subversion: 0x4103
Manufacturer: Broadcom Corporation (15)
> HCI Event: Disconn Complete (0x05) plen 4
status 0x00 handle 69 reason 0x13
Reason: Remote User Terminated Connection
l2cap-ble l2capBle = /home/pi/ble_test/node_modules/bleno/lib/linux/../../build/Release/l2cap-ble +0ms
l2cap-ble handles = [
{},
{
"type": "service",
"uuid": "1800",
"startHandle": 1,
"endHandle": 5
},
{
"type": "characteristic",
"uuid": "2a00",
"properties": 2,
"secure": 0,
"startHandle": 2,
"valueHandle": 3
},
{
"type": "characteristicValue",
"handle": 3,
"value": "Buffer('7261737062657272797069', 'hex')"
},
{
"type": "characteristic",
"uuid": "2a01",
"properties": 2,
"secure": 0,
"startHandle": 4,
"valueHandle": 5
},
{
"type": "characteristicValue",
"handle": 5,
"value": "Buffer('8000', 'hex')"
}
] +213ms
l2cap-ble handles = [
{},
{
"type": "service",
"uuid": "1800",
"startHandle": 1,
"endHandle": 5
},
{
"type": "characteristic",
"uuid": "2a00",
"properties": 2,
"secure": 0,
"startHandle": 2,
"valueHandle": 3
},
{
"type": "characteristicValue",
"handle": 3,
"value": "Buffer('7261737062657272797069', 'hex')"
},
{
"type": "characteristic",
"uuid": "2a01",
"properties": 2,
"secure": 0,
"startHandle": 4,
"valueHandle": 5
},
{
"type": "characteristicValue",
"handle": 5,
"value": "Buffer('8000', 'hex')"
},
{
"type": "service",
"uuid": "fffffffffffffffffffffffffffffff0",
"startHandle": 6,
"endHandle": 16
},
{
"type": "characteristic",
"uuid": "fffffffffffffffffffffffffffffff1",
"properties": 2,
"secure": 0,
"startHandle": 7,
"valueHandle": 8
},
{
"type": "characteristicValue",
"handle": 8,
"value": "Buffer('76616c7565', 'hex')"
},
{
"type": "descriptor",
"handle": 9,
"uuid": "2901",
"properties": 2,
"secure": 0,
"value": "user description"
},
{
"type": "characteristic",
"uuid": "fffffffffffffffffffffffffffffff2",
"properties": 2,
"secure": 0,
"startHandle": 10,
"valueHandle": 11
},
{
"type": "characteristicValue",
"handle": 11,
"value": null
},
{
"type": "characteristic",
"uuid": "fffffffffffffffffffffffffffffff3",
"properties": 12,
"secure": 0,
"startHandle": 12,
"valueHandle": 13
},
{
"type": "characteristicValue",
"handle": 13,
"value": null
},
{
"type": "characteristic",
"uuid": "fffffffffffffffffffffffffffffff4",
"properties": 16,
"secure": 0,
"startHandle": 14,
"valueHandle": 15
},
{
"type": "characteristicValue",
"handle": 15,
"value": null
},
{
"type": "descriptor",
"handle": 16,
"uuid": "2902",
"properties": 14,
"secure": 0,
"value": "Buffer('0000', 'hex')"
}
] +190ms
l2cap-ble buffer = "bind success\nlisten success\n" +21ms
l2cap-ble line = bind success +3ms
l2cap-ble line = listen success +7ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment