Skip to content

Instantly share code, notes, and snippets.

@mattsson
Created November 1, 2016 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattsson/e15f62789661bf7b6e1941be1308d4ba to your computer and use it in GitHub Desktop.
Save mattsson/e15f62789661bf7b6e1941be1308d4ba to your computer and use it in GitHub Desktop.
gatt 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": "1801",
"startHandle": 6,
"endHandle": 9
},
{
"type": "characteristic",
"uuid": "2a05",
"properties": 32,
"secure": 0,
"startHandle": 7,
"valueHandle": 8
},
{
"type": "characteristicValue",
"handle": 8,
"value": "Buffer('00000000', 'hex')"
},
{
"type": "descriptor",
"handle": 9,
"uuid": "2902",
"properties": 14,
"secure": 0,
"value": "Buffer('0000', 'hex')"
}
] +0ms
bleno platform linux +22ms
hci setting filter to: 1400000020c10000000000400000 +11ms
hci set event mask - writing: 01010c08fffffbff07f8bf3d +2ms
hci set le event mask - writing: 010120081f00000000000000 +1ms
hci read local version - writing: 01011000 +1ms
hci write LE host supported - writing: 016d0c020100 +1ms
hci read LE host supported - writing: 016c0c00 +1ms
hci read bd addr - writing: 01091000 +0ms
hci onSocketData: 040e0401010c00 +8ms
hci event type = 4 +1ms
hci sub event type = 14 +0ms
hci cmd = 3073 +1ms
hci status = 0 +0ms
hci result = +0ms
hci onSocketData: 040e0401012000 +2ms
hci event type = 4 +0ms
hci sub event type = 14 +0ms
hci cmd = 8193 +0ms
hci status = 0 +0ms
hci result = +0ms
hci onSocketData: 040e0c0101100007b600070f000922 +1ms
hci event type = 4 +0ms
hci sub event type = 14 +0ms
hci cmd = 4097 +0ms
hci status = 0 +0ms
hci result = 07b600070f000922 +0ms
hci set advertise enable - writing: 010a200100 +1ms
hci set advertisement parameters - writing: 0106200fa000a0000000000000000000000700 +1ms
hci onSocketData: 040e04016d0c00 +2ms
hci event type = 4 +0ms
hci sub event type = 14 +0ms
hci cmd = 3181 +0ms
hci status = 0 +0ms
hci result = +0ms
hci onSocketData: 040e06016c0c000100 +0ms
hci event type = 4 +1ms
hci sub event type = 14 +0ms
hci cmd = 3180 +0ms
hci status = 0 +0ms
hci result = 0100 +0ms
hci le = 1 +0ms
hci simul = 0 +0ms
hci onSocketData: 040e0a010910007c8b8ceb27b8 +0ms
hci event type = 4 +0ms
hci sub event type = 14 +1ms
hci cmd = 4105 +0ms
hci status = 0 +0ms
hci result = 7c8b8ceb27b8 +0ms
hci address = b8:27:eb:8c:8b:7c +2ms
bleno addressChange b8:27:eb:8c:8b:7c +0ms
hci onSocketData: 040e04010a200c +0ms
hci event type = 4 +0ms
hci sub event type = 14 +1ms
hci cmd = 8202 +0ms
hci status = 12 +0ms
hci result = +0ms
hci onSocketData: 040e0401062000 +0ms
hci event type = 4 +0ms
hci sub event type = 14 +0ms
hci cmd = 8198 +0ms
hci status = 0 +1ms
hci result = +0ms
bleno stateChange poweredOn +0ms
State: poweredOn
Will start advertising...
gap startAdvertising: name = BLE Peripheral, serviceUuids = [
"61E3C3AD478244FB8E3DC5CE25FE88B1"
] +16ms
gap startAdvertisingWithEIRData: advertisement data = 0201061106b188fe25cec53d8efb448247adc3e361, scan data = 0f08424c45205065726970686572616c +2ms
hci set scan response data - writing: 01092020100f08424c45205065726970686572616c000000000000000000000000000000 +1ms
hci set advertisement data - writing: 01082020150201061106b188fe25cec53d8efb448247adc3e36100000000000000000000 +1ms
hci set advertise enable - writing: 010a200101 +1ms
hci set scan response data - writing: 01092020100f08424c45205065726970686572616c000000000000000000000000000000 +0ms
hci set advertisement data - writing: 01082020150201061106b188fe25cec53d8efb448247adc3e36100000000000000000000 +0ms
hci onSocketData: 040e0401092000 +1ms
hci event type = 4 +0ms
hci sub event type = 14 +0ms
hci cmd = 8201 +0ms
hci status = 0 +0ms
hci result = +0ms
hci onSocketData: 040e0401082000 +0ms
hci event type = 4 +1ms
hci sub event type = 14 +0ms
hci cmd = 8200 +0ms
hci status = 0 +0ms
hci result = +0ms
hci onSocketData: 040e04010a2000 +0ms
hci event type = 4 +0ms
hci sub event type = 14 +0ms
hci cmd = 8202 +0ms
hci status = 0 +1ms
hci result = +0ms
bleno advertisingStart: null +0ms
Did start advertising...
gatt 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": "1801",
"startHandle": 6,
"endHandle": 9
},
{
"type": "characteristic",
"uuid": "2a05",
"properties": 32,
"secure": 0,
"startHandle": 7,
"valueHandle": 8
},
{
"type": "characteristicValue",
"handle": 8,
"value": "Buffer('00000000', 'hex')"
},
{
"type": "descriptor",
"handle": 9,
"uuid": "2902",
"properties": 14,
"secure": 0,
"value": "Buffer('0000', 'hex')"
},
{
"type": "service",
"uuid": "61E3C3AD478244FB8E3DC5CE25FE88B1",
"startHandle": 10,
"endHandle": 13
},
{
"type": "characteristic",
"uuid": "97909CF7FD2B4F2CABFE6A55AB72CFCF",
"properties": 34,
"secure": 0,
"startHandle": 11,
"valueHandle": 12
},
{
"type": "characteristicValue",
"handle": 12,
"value": null
},
{
"type": "descriptor",
"handle": 13,
"uuid": "2902",
"properties": 14,
"secure": 0,
"value": "Buffer('0000', 'hex')"
}
] +4ms
bleno servicesSet +1ms
Did set services...
hci onSocketData: 040e0401092000 +3ms
hci event type = 4 +0ms
hci sub event type = 14 +0ms
hci cmd = 8201 +0ms
hci status = 0 +0ms
hci result = +1ms
hci onSocketData: 040e0401082000 +0ms
hci event type = 4 +0ms
hci sub event type = 14 +0ms
hci cmd = 8200 +0ms
hci status = 0 +0ms
hci result = +0ms
hci onSocketData: 043e13010040000101278e625c914318000000480005 +20s
hci event type = 4 +1ms
hci sub event type = 62 +0ms
hci LE meta event type = 1 +1ms
hci LE meta event status = 0 +0ms
hci LE meta event data = 40000101278e625c914318000000480005 +0ms
hci handle = 64 +2ms
hci role = 1 +1ms
hci address type = random +0ms
hci address = 43:91:5c:62:8e:27 +0ms
hci interval = 30 +0ms
hci latency = 0 +1ms
hci supervision timeout = 720 +0ms
hci master clock accuracy = 5 +0ms
bleno accept 43:91:5c:62:8e:27 +7ms
Accepted client: 43:91:5c:62:8e:27
hci onSocketData: 040f0400011620 +2ms
hci event type = 4 +0ms
hci sub event type = 15 +0ms
mgmt on data ->0b0000000d00278e625c914302000000000000 +0ms
hci onSocketData: 024020070003000400029e00 +3ms
hci event type = 2 +1ms
hci cid = 4 +0ms
hci handle = 64 +0ms
hci data = 029e00 +7ms
gatt handing request: 029e00 +4ms
gatt response: 039e00 +1ms
gatt send: 039e00 +1ms
hci write acl data pkt - writing: 024000070003000400039e00 +2ms
hci onSocketData: 0240201b003b003a00013902140100020f636f6d2e6170706c652e42542e5453 +9ms
hci event type = 2 +0ms
hci cid = 58 +1ms
hci onSocketData: 0240101b0001220200011d636f6d2e6170706c652e42544c455365727665722e +1ms
hci event type = 2 +0ms
hci onSocketData: 043e0c041a40001f00000000000000 +8ms
hci event type = 4 +1ms
hci sub event type = 62 +0ms
hci LE meta event type = 4 +0ms
hci LE meta event status = 26 +0ms
hci LE meta event data = 40001f00000000000000 +0ms
hci onSocketData: 02400010000c000500120108002800380000004800 +1ms
hci event type = 2 +0ms
hci onSocketData: 0240100900636c61737369630001 +0ms
hci event type = 2 +0ms
hci onSocketData: 0240200b0007003a0009050100000000 +1ms
hci event type = 2 +1ms
hci cid = 58 +0ms
hci handle = 64 +0ms
hci data = 09050100000000 +0ms
hci onSocketData: 0240200a0006000500130102000000 +32ms
hci event type = 2 +1ms
hci cid = 5 +0ms
hci handle = 64 +0ms
hci data = 130102000000 +0ms
hci onSocketData: 0240200b0007000400100100ffff0028 +1ms
hci event type = 2 +0ms
hci cid = 4 +0ms
hci handle = 64 +0ms
hci data = 100100ffff0028 +0ms
gatt handing request: 100100ffff0028 +1ms
gatt read by group: startHandle = 0x1, endHandle = 0xffff, uuid = 0x2800 +4ms
gatt response: 1106010005000018060009000118 +1ms
gatt send: 1106010005000018060009000118 +1ms
hci write acl data pkt - writing: 02400012000e0004001106010005000018060009000118 +0ms
hci onSocketData: 0240200b0007000400100a00ffff0028 +81ms
hci event type = 2 +1ms
hci cid = 4 +0ms
hci handle = 64 +0ms
hci data = 100a00ffff0028 +0ms
gatt handing request: 100a00ffff0028 +1ms
gatt read by group: startHandle = 0xa, endHandle = 0xffff, uuid = 0x2800 +0ms
gatt response: 11140a000d00b188fe25cec53d8efb448247adc3e361 +1ms
gatt send: 11140a000d00b188fe25cec53d8efb448247adc3e361 +0ms
hci write acl data pkt - writing: 0240001a001600040011140a000d00b188fe25cec53d8efb448247adc3e361 +0ms
hci onSocketData: 0240200b0007000400100e00ffff0028 +57ms
hci event type = 2 +1ms
hci cid = 4 +0ms
hci handle = 64 +0ms
hci data = 100e00ffff0028 +0ms
gatt handing request: 100e00ffff0028 +0ms
gatt read by group: startHandle = 0xe, endHandle = 0xffff, uuid = 0x2800 +1ms
gatt response: 01100e000a +1ms
gatt send: 01100e000a +0ms
hci write acl data pkt - writing: 02400009000500040001100e000a +0ms
hci onSocketData: 0240200b000700040008060009000328 +87ms
hci event type = 2 +1ms
hci cid = 4 +0ms
hci handle = 64 +1ms
hci data = 08060009000328 +0ms
gatt handing request: 08060009000328 +1ms
gatt read by type: startHandle = 0x6, endHandle = 0x9, uuid = 0x2803 +4ms
gatt response: 09070700200800052a +1ms
gatt send: 09070700200800052a +1ms
hci write acl data pkt - writing: 0240000d000900040009070700200800052a +0ms
hci onSocketData: 0240200900050004000409000900 +89ms
hci event type = 2 +0ms
hci cid = 4 +0ms
hci handle = 64 +0ms
hci data = 0409000900 +1ms
gatt handing request: 0409000900 +0ms
gatt response: 050109000229 +4ms
gatt send: 050109000229 +0ms
hci write acl data pkt - writing: 0240000a0006000400050109000229 +0ms
hci onSocketData: 043e0a03004000360000004800 +1ms
hci event type = 4 +0ms
hci sub event type = 62 +0ms
hci LE meta event type = 3 +0ms
hci LE meta event status = 0 +0ms
hci LE meta event data = 4000360000004800 +1ms
hci handle = 64 +1ms
hci interval = 67.5 +4ms
hci latency = 0 +1ms
hci supervision timeout = 720 +0ms
hci onSocketData: 0240200900050004001209000200 +122ms
hci event type = 2 +0ms
hci cid = 4 +0ms
hci handle = 64 +1ms
hci data = 1209000200 +0ms
gatt handing request: 1209000200 +0ms
gatt write response: 13 +5ms
gatt send: 13 +1ms
hci write acl data pkt - writing: 02400005000100040013 +0ms
hci onSocketData: 0240200b0007000400080a000d000328 +195ms
hci event type = 2 +1ms
hci cid = 4 +0ms
hci handle = 64 +0ms
hci data = 080a000d000328 +0ms
gatt handing request: 080a000d000328 +0ms
gatt read by type: startHandle = 0xa, endHandle = 0xd, uuid = 0x2803 +1ms
gatt response: 09150b00220c00cfcf72ab556afeab2c4f2bfdf79c9097 +0ms
gatt send: 09150b00220c00cfcf72ab556afeab2c4f2bfdf79c9097 +1ms
hci write acl data pkt - writing: 0240001b001700040009150b00220c00cfcf72ab556afeab2c4f2bfdf79c9097 +0ms
hci onSocketData: 024020090005000400040d000d00 +200ms
hci event type = 2 +0ms
hci cid = 4 +1ms
hci handle = 64 +0ms
hci data = 040d000d00 +0ms
gatt handing request: 040d000d00 +0ms
gatt response: 05010d000229 +2ms
gatt send: 05010d000229 +0ms
hci write acl data pkt - writing: 0240000a000600040005010d000229 +0ms
hci onSocketData: 024020090005000400120d000200 +132ms
hci event type = 2 +0ms
hci cid = 4 +0ms
hci handle = 64 +1ms
hci data = 120d000200 +0ms
gatt handing request: 120d000200 +1ms
Central subscribed to analysis data! Will send first data.
gatt indicate message: 1d0c0064617461 +2ms
gatt send: 1d0c0064617461 +0ms
hci write acl data pkt - writing: 0240000b00070004001d0c0064617461 +1ms
gatt write response: 13 +0ms
gatt send: 13 +0ms
hci write acl data pkt - writing: 02400005000100040013 +1ms
hci onSocketData: 0240200500010004001e +129ms
hci event type = 2 +0ms
hci cid = 4 +0ms
hci handle = 64 +1ms
hci data = 1e +0ms
gatt handing request: 1e +0ms
Did get indication. Will update value.
gatt indicate message: 1d0c0064617461 +1ms
gatt send: 1d0c0064617461 +1ms
hci write acl data pkt - writing: 0240000b00070004001d0c0064617461 +0ms
hci onSocketData: 0240200500010004001e +199ms
hci event type = 2 +1ms
hci cid = 4 +0ms
hci handle = 64 +0ms
hci data = 1e +0ms
gatt handing request: 1e +0ms
hci onSocketData: 0240200b00070004000801000500002a +539ms
hci event type = 2 +1ms
hci cid = 4 +0ms
hci handle = 64 +0ms
hci data = 0801000500002a +0ms
gatt handing request: 0801000500002a +1ms
gatt read by type: startHandle = 0x1, endHandle = 0x5, uuid = 0x2a00 +0ms
gatt read by type response: 090d03007261737062657272797069 +2ms
gatt send: 090d03007261737062657272797069 +0ms
hci write acl data pkt - writing: 02400013000f000400090d03007261737062657272797069 +0ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment