* Cannot write to BLE thermal printer
@ 2015-10-02 6:33 Leon Nicholls
2015-10-02 7:15 ` Luiz Augusto von Dentz
0 siblings, 1 reply; 12+ messages in thread
From: Leon Nicholls @ 2015-10-02 6:33 UTC (permalink / raw)
To: linux-bluetooth
[-- Attachment #1: Type: text/plain, Size: 44084 bytes --]
Hi
I'm trying to write a value to a BLE thermal printer using the Web
Bluetooth API on ChromeOS (using Bluez 5.33). I can connect to the
device and find the service and characteristic. But when I try and
write to the characteristic an error is thrown (although it looks like
it disconnects before the write happens). Please find attached
log.
Thanks
Leon
sudo btmon -w ~/Downloads/btmon.btsnoop
Bluetooth monitor ver 5.33
= New Index: 1C:3E:84:0D:F9:F8 (BR/EDR,USB,hci0)
[hci0] 0.004075
< HCI Command: LE Add Device To White List (0x08|0x0011) plen 7
[hci0] 15.209842
Address type: Random (0x01)
Address: 0F:04:E0:51:44:8B (Non-Resolvable)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 15.210823
LE Add Device To White List (0x08|0x0011) ncmd 1
Status: Success (0x00)
< HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7
[hci0] 15.210856
Type: Passive (0x00)
Interval: 60.000 msec (0x0060)
Window: 30.000 msec (0x0030)
Own address type: Public (0x00)
Filter policy: Ignore not in white list (0x01)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 15.211822
LE Set Scan Parameters (0x08|0x000b) ncmd 1
Status: Success (0x00)
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2
[hci0] 15.211854
Scanning: Enabled (0x01)
Filter duplicates: Enabled (0x01)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 15.212823
LE Set Scan Enable (0x08|0x000c) ncmd 1
Status: Success (0x00)
> HCI Event: LE Meta Event (0x3e) plen 43 [hci0] 15.528855
LE Advertising Report (0x02)
Num reports: 1
Event type: Connectable undirected - ADV_IND (0x00)
Address type: Random (0x01)
Address: 0F:04:E0:51:44:8B (Non-Resolvable)
Data length: 31
Flags: 0x06
LE General Discoverable Mode
BR/EDR Not Supported
16-bit Service UUIDs (partial): 1 entry
Unknown (0x18f0)
128-bit Service UUIDs (partial): 1 entry
e7810a71-73ae-499d-8c15-faa9aef0c3f2
TX power: 4 dBm
RSSI: -46 dBm (0xd2)
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2
[hci0] 15.528930
Scanning: Disabled (0x00)
Filter duplicates: Disabled (0x00)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 15.529824
LE Set Scan Enable (0x08|0x000c) ncmd 1
Status: Success (0x00)
< HCI Command: LE Create Connection (0x08|0x000d) plen 25
[hci0] 15.529878
Scan interval: 60.000 msec (0x0060)
Scan window: 30.000 msec (0x0030)
Filter policy: White list is not used (0x00)
Peer address type: Random (0x01)
Peer address: 0F:04:E0:51:44:8B (Non-Resolvable)
Own address type: Public (0x00)
Min connection interval: 50.00 msec (0x0028)
Max connection interval: 70.00 msec (0x0038)
Connection latency: 0x0000
Supervision timeout: 420 msec (0x002a)
Min connection length: 0.000 msec (0x0000)
Max connection length: 0.000 msec (0x0000)
> HCI Event: Command Status (0x0f) plen 4 [hci0] 15.530826
LE Create Connection (0x08|0x000d) ncmd 1
Status: Success (0x00)
> HCI Event: LE Meta Event (0x3e) plen 19 [hci0] 15.848909
LE Connection Complete (0x01)
Status: Success (0x00)
Handle: 32
Role: Master (0x00)
Peer address type: Random (0x01)
Peer address: 0F:04:E0:51:44:8B (Non-Resolvable)
Connection interval: 67.50 msec (0x0036)
Connection latency: 0.00 msec (0x0000)
Supervision timeout: 420 msec (0x002a)
Master clock accuracy: 0x00
< HCI Command: LE Read Remote Used Features (0x08|0x0016) plen 2
[hci0] 15.849297
Handle: 32
@ Device Connected: 0F:04:E0:51:44:8B (2) flags 0x0000
02 01 06 03 02 f0 18 11 06 f2 c3 f0 ae a9 fa 15 ................
8c 9d 49 ae 73 71 0a 81 e7 02 0a 04 00 00 00 ..I.sq.........
> HCI Event: Command Status (0x0f) plen 4 [hci0] 15.849836
LE Read Remote Used Features (0x08|0x0016) ncmd 1
Status: Success (0x00)
> ACL Data RX: Handle 32 flags 0x02 dlen 16 [hci0] 15.883695
LE L2CAP: Connection Parameter Update Request (0x12) ident 180 len 8
Min interval: 8
Max interval: 16
Slave latency: 0
Timeout multiplier: 300
> HCI Event: LE Meta Event (0x3e) plen 12 [hci0] 16.018827
LE Read Remote Used Features (0x04)
Status: Success (0x00)
Handle: 32
Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
LE Encryption
< ACL Data TX: Handle 32 flags 0x00 dlen 10
[hci0] 16.018919
LE L2CAP: Connection Parameter Update Response (0x13) ident 180 len 2
Result: Connection Parameters accepted (0x0000)
< HCI Command: LE Connection Update (0x08|0x0013) plen 14
[hci0] 16.018938
Handle: 32
Min connection interval: 10.00 msec (0x0008)
Max connection interval: 20.00 msec (0x0010)
Connection latency: 0x0000
Supervision timeout: 3000 msec (0x012c)
Min connection length: 0.000 msec (0x0000)
Max connection length: 0.000 msec (0x0000)
< ACL Data TX: Handle 32 flags 0x00 dlen 7
[hci0] 16.019328
ATT: Exchange MTU Request (0x02) len 2
Client RX MTU: 517
> HCI Event: Command Status (0x0f) plen 4 [hci0] 16.019819
LE Connection Update (0x08|0x0013) ncmd 1
Status: Success (0x00)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 16.086875
Num handles: 1
Handle: 32
Count: 1
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 16.087870
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 7 [hci0] 16.153733
ATT: Exchange MTU Response (0x03) len 2
Server RX MTU: 158
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 16.153997
ATT: Read By Group Type Request (0x10) len 6
Handle range: 0x0001-0xffff
Attribute group type: Primary Service (0x2800)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 16.221859
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 24 [hci0] 16.288359
ATT: Read By Group Type Response (0x11) len 19
Attribute data length: 6
Attribute group list: 3 entries
Handle range: 0x0001-0x0005
UUID: Generic Access Profile (0x1800)
Handle range: 0x0006-0x0006
UUID: Generic Attribute Profile (0x1801)
Handle range: 0x0007-0x000b
UUID: Battery Service (0x180f)
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 16.288589
ATT: Read By Group Type Request (0x10) len 6
Handle range: 0x000c-0xffff
Attribute group type: Primary Service (0x2800)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 16.356857
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 24 [hci0] 16.423416
ATT: Read By Group Type Response (0x11) len 19
Attribute data length: 6
Attribute group list: 3 entries
Handle range: 0x000c-0x000e
UUID: Link Loss (0x1803)
Handle range: 0x000f-0x0011
UUID: Immediate Alert (0x1802)
Handle range: 0x0012-0x001f
UUID: Alert Notification Service (0x1811)
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 16.423732
ATT: Read By Group Type Request (0x10) len 6
Handle range: 0x0020-0xffff
Attribute group type: Primary Service (0x2800)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 16.491921
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 24 [hci0] 16.558416
ATT: Read By Group Type Response (0x11) len 19
Attribute data length: 6
Attribute group list: 3 entries
Handle range: 0x0020-0x0022
UUID: Tx Power (0x1804)
Handle range: 0x0023-0x0029
UUID: Unknown (0x18f0)
Handle range: 0x002a-0x002e
UUID: Device Information (0x180a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 16.558740
ATT: Read By Group Type Request (0x10) len 6
Handle range: 0x002f-0xffff
Attribute group type: Primary Service (0x2800)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 16.626913
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 26 [hci0] 16.693364
ATT: Read By Group Type Response (0x11) len 21
Attribute data length: 20
Attribute group list: 1 entry
Handle range: 0x002f-0x0032
UUID: Unknown (e7810a71-73ae-499d-8c15-faa9aef0c3f2)
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 16.693674
ATT: Read By Group Type Request (0x10) len 6
Handle range: 0x0033-0xffff
Attribute group type: Primary Service (0x2800)
> HCI Event: LE Meta Event (0x3e) plen 10 [hci0] 16.693845
LE Connection Update Complete (0x03)
Status: Success (0x00)
Handle: 32
Connection interval: 15.00 msec (0x000c)
Connection latency: 0.00 msec (0x0000)
Supervision timeout: 3000 msec (0x012c)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 16.708831
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 16.723276
ATT: Error Response (0x01) len 4
Read By Group Type Request (0x10)
Handle: 0x0033
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 16.723678
ATT: Read By Group Type Request (0x10) len 6
Handle range: 0x0001-0xffff
Attribute group type: Secondary Service (0x2801)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 16.738822
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 16.753289
ATT: Error Response (0x01) len 4
Read By Group Type Request (0x10)
Handle: 0x0001
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 16.753627
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0001-0x0005
Attribute type: Include (0x2802)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 16.768858
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 16.783290
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x0001
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 16.783618
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0007-0x000b
Attribute type: Include (0x2802)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 16.798828
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 16.813283
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x0007
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 16.813608
ATT: Read By Type Request (0x08) len 6
Handle range: 0x000c-0x000e
Attribute type: Include (0x2802)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 16.828840
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 16.843277
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x000c
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 16.843625
ATT: Read By Type Request (0x08) len 6
Handle range: 0x000f-0x0011
Attribute type: Include (0x2802)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 16.858824
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 16.873234
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x000f
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 16.873476
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0012-0x001f
Attribute type: Include (0x2802)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 16.888906
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 16.903234
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x0012
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 16.903486
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0020-0x0022
Attribute type: Include (0x2802)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 16.918864
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 16.933215
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x0020
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 16.933401
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0023-0x0029
Attribute type: Include (0x2802)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 16.948918
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 16.963217
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x0023
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 16.963549
ATT: Read By Type Request (0x08) len 6
Handle range: 0x002a-0x002e
Attribute type: Include (0x2802)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 16.978834
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 16.993230
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x002a
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 16.993526
ATT: Read By Type Request (0x08) len 6
Handle range: 0x002f-0x0032
Attribute type: Include (0x2802)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.008917
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 17.023196
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x002f
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.023593
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0001-0x0005
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.038918
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 17.053196
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x0002
Value: 020300002a
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.053464
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0003-0x0005
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.068910
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 17.083270
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x0004
Value: 020500012a
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.083583
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0005-0x0005
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.098917
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 17.113205
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x0005
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.113705
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0007-0x000b
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.128816
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 17.143220
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x0008
Value: 120900192a
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.143457
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0009-0x000b
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.158818
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 17.173249
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x0009
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 9
[hci0] 17.173568
ATT: Find Information Request (0x04) len 4
Handle range: 0x000a-0x000b
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.188871
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 14 [hci0] 17.203411
ATT: Find Information Response (0x05) len 9
Format: UUID-16 (0x01)
Handle: 0x000a
UUID: Characteristic Format (0x2904)
Handle: 0x000b
UUID: Client Characteristic Configuration (0x2902)
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.203778
ATT: Read By Type Request (0x08) len 6
Handle range: 0x000c-0x000e
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.218824
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 17.233259
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x000d
Value: 0a0e00062a
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.233596
ATT: Read By Type Request (0x08) len 6
Handle range: 0x000e-0x000e
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.248851
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 17.263285
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x000e
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.263643
ATT: Read By Type Request (0x08) len 6
Handle range: 0x000f-0x0011
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.293823
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 17.308362
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x0010
Value: 041100062a
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.308668
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0011-0x0011
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.323911
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 17.338293
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x0011
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.338649
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0012-0x001f
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.353829
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 17.368411
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x0013
Value: 021400472a
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.369010
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0014-0x001f
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.398916
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 17.413355
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x0015
Value: 101600462a
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.413754
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0016-0x001f
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.428879
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 17.443345
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x0018
Value: 021900482a
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.443574
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0019-0x001f
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.458856
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 17.473356
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x001a
Value: 101b00452a
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.473660
ATT: Read By Type Request (0x08) len 6
Handle range: 0x001b-0x001f
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.488815
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 17.503338
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x001d
Value: 181e00442a
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.503642
ATT: Read By Type Request (0x08) len 6
Handle range: 0x001e-0x001f
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.518869
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 17.533201
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x001e
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 9
[hci0] 17.533732
ATT: Find Information Request (0x04) len 4
Handle range: 0x0017-0x0017
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.548839
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 10 [hci0] 17.563221
ATT: Find Information Response (0x05) len 5
Format: UUID-16 (0x01)
Handle: 0x0017
UUID: Client Characteristic Configuration (0x2902)
< ACL Data TX: Handle 32 flags 0x00 dlen 9
[hci0] 17.563496
ATT: Find Information Request (0x04) len 4
Handle range: 0x001c-0x001c
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.578816
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 10 [hci0] 17.593246
ATT: Find Information Response (0x05) len 5
Format: UUID-16 (0x01)
Handle: 0x001c
UUID: Client Characteristic Configuration (0x2902)
< ACL Data TX: Handle 32 flags 0x00 dlen 9
[hci0] 17.593596
ATT: Find Information Request (0x04) len 4
Handle range: 0x001f-0x001f
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.608818
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 10 [hci0] 17.623286
ATT: Find Information Response (0x05) len 5
Format: UUID-16 (0x01)
Handle: 0x001f
UUID: Client Characteristic Configuration (0x2902)
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.623640
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0020-0x0022
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.638840
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 17.653410
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x0021
Value: 022200072a
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.653721
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0022-0x0022
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.668867
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 17.683241
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x0022
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.683511
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0023-0x0029
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.698817
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 17.713365
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x0024
Value: 0c2500f12a
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.713569
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0025-0x0029
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.728917
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 17.743317
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x0027
Value: 302800f02a
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.743573
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0028-0x0029
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.758913
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 17.773195
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x0028
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 9
[hci0] 17.773531
ATT: Find Information Request (0x04) len 4
Handle range: 0x0026-0x0026
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.788913
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 10 [hci0] 17.803317
ATT: Find Information Response (0x05) len 5
Format: UUID-16 (0x01)
Handle: 0x0026
UUID: Client Characteristic Configuration (0x2902)
< ACL Data TX: Handle 32 flags 0x00 dlen 9
[hci0] 17.803739
ATT: Find Information Request (0x04) len 4
Handle range: 0x0029-0x0029
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.818913
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 10 [hci0] 17.833321
ATT: Find Information Response (0x05) len 5
Format: UUID-16 (0x01)
Handle: 0x0029
UUID: Client Characteristic Configuration (0x2902)
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.833757
ATT: Read By Type Request (0x08) len 6
Handle range: 0x002a-0x002e
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.848912
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 17.863352
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x002b
Value: 022c00232a
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.863629
ATT: Read By Type Request (0x08) len 6
Handle range: 0x002c-0x002e
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.878828
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 17.908312
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x002d
Value: 022e00292a
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.908583
ATT: Read By Type Request (0x08) len 6
Handle range: 0x002e-0x002e
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.923919
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 17.938187
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x002e
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.938450
ATT: Read By Type Request (0x08) len 6
Handle range: 0x002f-0x0032
Attribute type: Characteristic (0x2803)
> ACL Data RX: Handle 32 flags 0x02 dlen 27 [hci0] 17.968564
ATT: Read By Type Response (0x09) len 22
Attribute data length: 21
Attribute data list: 1 entry
Handle: 0x0030
Value: 3a31009f9f00c158bd32b69e4c219cc9d6f8be
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.968805
Num handles: 1
Handle: 32
Count: 1
< ACL Data TX: Handle 32 flags 0x00 dlen 11
[hci0] 17.968838
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0031-0x0032
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 17.983876
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 17.998313
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x0031
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 9
[hci0] 17.998699
ATT: Find Information Request (0x04) len 4
Handle range: 0x0032-0x0032
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 18.013849
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 10 [hci0] 18.028315
ATT: Find Information Response (0x05) len 5
Format: UUID-16 (0x01)
Handle: 0x0032
UUID: Client Characteristic Configuration (0x2902)
< ACL Data TX: Handle 32 flags 0x00 dlen 9
[hci0] 18.030692
ATT: Read Blob Request (0x0c) len 4
Handle: 0x0003
Offset: 0x0000
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 18.043803
Num handles: 1
Handle: 32
Count: 1
< HCI Command: Disconnect (0x01|0x0006) plen 3
[hci0] 50.049295
Handle: 32
Reason: Remote User Terminated Connection (0x13)
> HCI Event: Command Status (0x0f) plen 4 [hci0] 50.050594
Disconnect (0x01|0x0006) ncmd 1
Status: Success (0x00)
> HCI Event: Vendor (0xff) plen 7 [hci0] 50.055689
82 70 90 80 10 36 59 .p...6Y
> HCI Event: Disconnect Complete (0x05) plen 4 [hci0] 50.056491
Status: Success (0x00)
Handle: 32
Reason: Connection Terminated By Local Host (0x16)
@ Device Disconnected: 0F:04:E0:51:44:8B (2) reason 2l
[-- Attachment #2: btmon (2).btsnoop --]
[-- Type: application/octet-stream, Size: 6273 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Cannot write to BLE thermal printer
2015-10-02 6:33 Cannot write to BLE thermal printer Leon Nicholls
@ 2015-10-02 7:15 ` Luiz Augusto von Dentz
2015-10-27 14:22 ` Leon Nicholls
0 siblings, 1 reply; 12+ messages in thread
From: Luiz Augusto von Dentz @ 2015-10-02 7:15 UTC (permalink / raw)
To: Leon Nicholls; +Cc: linux-bluetooth
Hi Leon,
On Fri, Oct 2, 2015 at 9:33 AM, Leon Nicholls <lnicholls@google.com> wrote:
> Hi
> I'm trying to write a value to a BLE thermal printer using the Web
> Bluetooth API on ChromeOS (using Bluez 5.33). I can connect to the
> device and find the service and characteristic. But when I try and
> write to the characteristic an error is thrown (although it looks like
> it disconnects before the write happens). Please find attached
> log.
> < ACL Data TX: Handle 32 flags 0x00 dlen 9
> [hci0] 18.030692
> ATT: Read Blob Request (0x0c) len 4
> Handle: 0x0003
> Offset: 0x0000
So this seems to be the last command in the sent but right after that
we disconnect:
> < HCI Command: Disconnect (0x01|0x0006) plen 3
> [hci0] 50.049295
> Handle: 32
> Reason: Remote User Terminated Connection (0x13)
>> HCI Event: Command Status (0x0f) plen 4 [hci0] 50.050594
> Disconnect (0x01|0x0006) ncmd 1
> Status: Success (0x00)
>> HCI Event: Vendor (0xff) plen 7 [hci0] 50.055689
> 82 70 90 80 10 36 59 .p...6Y
>> HCI Event: Disconnect Complete (0x05) plen 4 [hci0] 50.056491
> Status: Success (0x00)
> Handle: 32
> Reason: Connection Terminated By Local Host (0x16)
> @ Device Disconnected: 0F:04:E0:51:44:8B (2) reason 2l
I recall something similar was fixed in upstream so you might want to
try with 5.35, this is probably caused by not registering any driver
for the profile (see
RegisterProfile:https://git.kernel.org/cgit/bluetooth/bluez.git/tree/doc/gatt-api.txt)
which should be used if you want to auto connect as soon the device
start advertising.
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Cannot write to BLE thermal printer
2015-10-02 7:15 ` Luiz Augusto von Dentz
@ 2015-10-27 14:22 ` Leon Nicholls
2015-10-27 14:47 ` Luiz Augusto von Dentz
0 siblings, 1 reply; 12+ messages in thread
From: Leon Nicholls @ 2015-10-27 14:22 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: linux-bluetooth
[-- Attachment #1: Type: text/plain, Size: 2393 bytes --]
Still seeing the same issue:
ChromeOS version: 48.0.2546.0 canary (64 bit)
Bluetooth monitor ver 5.35
I'm using the Web Bluetooth Polymer element:
https://elements.polymer-project.org/elements/platinum-bluetooth
On Fri, Oct 2, 2015 at 12:15 AM, Luiz Augusto von Dentz
<luiz.dentz@gmail.com> wrote:
> Hi Leon,
>
> On Fri, Oct 2, 2015 at 9:33 AM, Leon Nicholls <lnicholls@google.com> wrote:
>> Hi
>> I'm trying to write a value to a BLE thermal printer using the Web
>> Bluetooth API on ChromeOS (using Bluez 5.33). I can connect to the
>> device and find the service and characteristic. But when I try and
>> write to the characteristic an error is thrown (although it looks like
>> it disconnects before the write happens). Please find attached
>> log.
>
>> < ACL Data TX: Handle 32 flags 0x00 dlen 9
>> [hci0] 18.030692
>> ATT: Read Blob Request (0x0c) len 4
>> Handle: 0x0003
>> Offset: 0x0000
>
> So this seems to be the last command in the sent but right after that
> we disconnect:
>
>> < HCI Command: Disconnect (0x01|0x0006) plen 3
>> [hci0] 50.049295
>> Handle: 32
>> Reason: Remote User Terminated Connection (0x13)
>>> HCI Event: Command Status (0x0f) plen 4 [hci0] 50.050594
>> Disconnect (0x01|0x0006) ncmd 1
>> Status: Success (0x00)
>>> HCI Event: Vendor (0xff) plen 7 [hci0] 50.055689
>> 82 70 90 80 10 36 59 .p...6Y
>>> HCI Event: Disconnect Complete (0x05) plen 4 [hci0] 50.056491
>> Status: Success (0x00)
>> Handle: 32
>> Reason: Connection Terminated By Local Host (0x16)
>> @ Device Disconnected: 0F:04:E0:51:44:8B (2) reason 2l
>
> I recall something similar was fixed in upstream so you might want to
> try with 5.35, this is probably caused by not registering any driver
> for the profile (see
> RegisterProfile:https://git.kernel.org/cgit/bluetooth/bluez.git/tree/doc/gatt-api.txt)
> which should be used if you want to auto connect as soon the device
> start advertising.
>
> --
> Luiz Augusto von Dentz
[-- Attachment #2: shell.txt --]
[-- Type: text/plain, Size: 61727 bytes --]
sudo btmon -w ~/Downloads/btmon.btsnoop
Bluetooth monitor ver 5.35
= New Index: 1C:3E:84:0D:F9:F8 (BR/EDR,USB,hci0) [hci0] 0.937560
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2 [hci0] 4.912856
Scanning: Disabled (0x00)
Filter duplicates: Disabled (0x00)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 4.913984
LE Set Scan Enable (0x08|0x000c) ncmd 1
Status: Success (0x00)
< HCI Command: Inquiry (0x01|0x0001) plen 5 [hci0] 4.914066
Access code: 0x9e8b33 (General Inquiry)
Length: 5.12s (0x04)
Num responses: 0
> HCI Event: Vendor (0xff) plen 2 [hci0] 4.914974
80 00 ..
> HCI Event: Command Status (0x0f) plen 4 [hci0] 4.915973
Inquiry (0x01|0x0001) ncmd 1
Status: Success (0x00)
> HCI Event: Extended Inquiry Result (0x2f) plen 255 [hci0] 5.318031
Num responses: 1
Address: 0F:03:E0:51:44:8B (OUI 0F-03-E0)
Page scan repetition mode: R1 (0x01)
Page period mode: P0 (0x00)
Class: 0x001f00
Major class: Uncategorized, specific device code not specified
Minor class: 0x00
Clock offset: 0x7fe7
RSSI: -55 dBm (0xc9)
Name (complete): BlueTooth Printer
@ Device Found: 0F:03:E0:51:44:8B (0) rssi -55 flags 0x0000
12 09 42 6c 75 65 54 6f 6f 74 68 20 50 72 69 6e ..BlueTooth Prin
74 65 72 04 0d 00 1f 00 ter.....
> HCI Event: Extended Inquiry Result (0x2f) plen 255 [hci0] 6.610051
Num responses: 1
Address: 38:2C:4A:2A:F6:D5 (OUI 38-2C-4A)
Page scan repetition mode: R1 (0x01)
Page period mode: P0 (0x00)
Class: 0x280424
Major class: Audio/Video (headset, speaker, stereo, video, vcr)
Minor class: Set-top box
Capturing (Scanner, Microphone)
Audio (Speaker, Microphone, Headset)
Clock offset: 0x6249
RSSI: -70 dBm (0xba)
Name (complete): Nexus Player
16-bit Service UUIDs (complete): 5 entries
Audio Source (0x110a)
A/V Remote Control Target (0x110c)
A/V Remote Control (0x110e)
Headset AG (0x1112)
PnP Information (0x1200)
@ Device Found: 38:2C:4A:2A:F6:D5 (0) rssi -70 flags 0x0000
0d 09 4e 65 78 75 73 20 50 6c 61 79 65 72 0b 03 ..Nexus Player..
0a 11 0c 11 0e 11 12 11 00 12 01 05 01 07 04 0d ................
24 04 28 $.(
> HCI Event: Vendor (0xff) plen 2 [hci0] 10.037005
80 01 ..
> HCI Event: Inquiry Complete (0x01) plen 1 [hci0] 10.037952
Status: Success (0x00)
< HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7 [hci0] 10.038101
Type: Passive (0x00)
Interval: 60.000 msec (0x0060)
Window: 30.000 msec (0x0030)
Own address type: Public (0x00)
Filter policy: Ignore not in white list (0x01)
@ Discovering: 0x00 (7)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 10.038940
LE Set Scan Parameters (0x08|0x000b) ncmd 1
Status: Success (0x00)
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2 [hci0] 10.039035
Scanning: Enabled (0x01)
Filter duplicates: Enabled (0x01)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 10.039932
LE Set Scan Enable (0x08|0x000c) ncmd 1
Status: Success (0x00)
> HCI Event: LE Meta Event (0x3e) plen 43 [hci0] 10.079972
LE Advertising Report (0x02)
Num reports: 1
Event type: Connectable undirected - ADV_IND (0x00)
Address type: Random (0x01)
Address: 0F:04:E0:51:44:8B (Non-Resolvable)
Data length: 31
Flags: 0x06
LE General Discoverable Mode
BR/EDR Not Supported
16-bit Service UUIDs (partial): 1 entry
Unknown (0x18f0)
128-bit Service UUIDs (partial): 1 entry
e7810a71-73ae-499d-8c15-faa9aef0c3f2
TX power: 4 dBm
RSSI: -55 dBm (0xc9)
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2 [hci0] 10.080063
Scanning: Disabled (0x00)
Filter duplicates: Disabled (0x00)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 10.080964
LE Set Scan Enable (0x08|0x000c) ncmd 1
Status: Success (0x00)
< HCI Command: LE Create Connection (0x08|0x000d) plen 25 [hci0] 10.081023
Scan interval: 60.000 msec (0x0060)
Scan window: 30.000 msec (0x0030)
Filter policy: White list is not used (0x00)
Peer address type: Random (0x01)
Peer address: 0F:04:E0:51:44:8B (Non-Resolvable)
Own address type: Public (0x00)
Min connection interval: 50.00 msec (0x0028)
Max connection interval: 70.00 msec (0x0038)
Connection latency: 0x0000
Supervision timeout: 420 msec (0x002a)
Min connection length: 0.000 msec (0x0000)
Max connection length: 0.000 msec (0x0000)
> HCI Event: Command Status (0x0f) plen 4 [hci0] 10.081964
LE Create Connection (0x08|0x000d) ncmd 1
Status: Success (0x00)
> HCI Event: LE Meta Event (0x3e) plen 19 [hci0] 10.400999
LE Connection Complete (0x01)
Status: Success (0x00)
Handle: 32
Role: Master (0x00)
Peer address type: Random (0x01)
Peer address: 0F:04:E0:51:44:8B (Non-Resolvable)
Connection interval: 67.50 msec (0x0036)
Connection latency: 0.00 msec (0x0000)
Supervision timeout: 420 msec (0x002a)
Master clock accuracy: 0x00
< HCI Command: LE Read Remote Used Features (0x08|0x0016) plen 2 [hci0] 10.401343
Handle: 32
> HCI Event: Command Status (0x0f) plen 4 [hci0] 10.401942
LE Read Remote Used Features (0x08|0x0016) ncmd 1
Status: Success (0x00)
@ Device Connected: 0F:04:E0:51:44:8B (2) flags 0x0000
02 01 06 03 02 f0 18 11 06 f2 c3 f0 ae a9 fa 15 ................
8c 9d 49 ae 73 71 0a 81 e7 02 0a 04 00 00 00 ..I.sq.........
> ACL Data RX: Handle 32 flags 0x02 dlen 16 [hci0] 10.455566
LE L2CAP: Connection Parameter Update Request (0x12) ident 180 len 8
Min interval: 8
Max interval: 16
Slave latency: 0
Timeout multiplier: 300
> HCI Event: LE Meta Event (0x3e) plen 12 [hci0] 10.591033
LE Read Remote Used Features (0x04)
Status: Success (0x00)
Handle: 32
Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
LE Encryption
< ACL Data TX: Handle 32 flags 0x00 dlen 10 [hci0] 10.591178
LE L2CAP: Connection Parameter Update Response (0x13) ident 180 len 2
Result: Connection Parameters accepted (0x0000)
< HCI Command: LE Connection Update (0x08|0x0013) plen 14 [hci0] 10.591204
Handle: 32
Min connection interval: 10.00 msec (0x0008)
Max connection interval: 20.00 msec (0x0010)
Connection latency: 0x0000
Supervision timeout: 3000 msec (0x012c)
Min connection length: 0.000 msec (0x0000)
Max connection length: 0.000 msec (0x0000)
> HCI Event: Command Status (0x0f) plen 4 [hci0] 10.591943
LE Connection Update (0x08|0x0013) ncmd 1
Status: Success (0x00)
< ACL Data TX: Handle 32 flags 0x00 dlen 7 [hci0] 10.592082
ATT: Exchange MTU Request (0x02) len 2
Client RX MTU: 517
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 10.657970
Num handles: 1
Handle: 32
Count: 1
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 10.658961
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 7 [hci0] 10.725531
ATT: Exchange MTU Response (0x03) len 2
Server RX MTU: 158
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 10.725925
ATT: Read By Group Type Request (0x10) len 6
Handle range: 0x0001-0xffff
Attribute group type: Primary Service (0x2800)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 10.793038
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 24 [hci0] 10.860284
ATT: Read By Group Type Response (0x11) len 19
Attribute data length: 6
Attribute group list: 3 entries
Handle range: 0x0001-0x0005
UUID: Generic Access Profile (0x1800)
Handle range: 0x0006-0x0006
UUID: Generic Attribute Profile (0x1801)
Handle range: 0x0007-0x000b
UUID: Battery Service (0x180f)
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 10.860602
ATT: Read By Group Type Request (0x10) len 6
Handle range: 0x000c-0xffff
Attribute group type: Primary Service (0x2800)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 10.928028
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 24 [hci0] 10.995279
ATT: Read By Group Type Response (0x11) len 19
Attribute data length: 6
Attribute group list: 3 entries
Handle range: 0x000c-0x000e
UUID: Link Loss (0x1803)
Handle range: 0x000f-0x0011
UUID: Immediate Alert (0x1802)
Handle range: 0x0012-0x001f
UUID: Alert Notification Service (0x1811)
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 10.995602
ATT: Read By Group Type Request (0x10) len 6
Handle range: 0x0020-0xffff
Attribute group type: Primary Service (0x2800)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.062997
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 24 [hci0] 11.130262
ATT: Read By Group Type Response (0x11) len 19
Attribute data length: 6
Attribute group list: 3 entries
Handle range: 0x0020-0x0022
UUID: Tx Power (0x1804)
Handle range: 0x0023-0x0029
UUID: Unknown (0x18f0)
Handle range: 0x002a-0x002e
UUID: Device Information (0x180a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 11.130568
ATT: Read By Group Type Request (0x10) len 6
Handle range: 0x002f-0xffff
Attribute group type: Primary Service (0x2800)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.198029
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 26 [hci0] 11.265266
ATT: Read By Group Type Response (0x11) len 21
Attribute data length: 20
Attribute group list: 1 entry
Handle range: 0x002f-0x0032
UUID: Unknown (e7810a71-73ae-499d-8c15-faa9aef0c3f2)
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 11.265581
ATT: Read By Group Type Request (0x10) len 6
Handle range: 0x0033-0xffff
Attribute group type: Primary Service (0x2800)
> HCI Event: LE Meta Event (0x3e) plen 10 [hci0] 11.265835
LE Connection Update Complete (0x03)
Status: Success (0x00)
Handle: 32
Connection interval: 15.00 msec (0x000c)
Connection latency: 0.00 msec (0x0000)
Supervision timeout: 3000 msec (0x012c)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.281028
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 11.295151
ATT: Error Response (0x01) len 4
Read By Group Type Request (0x10)
Handle: 0x0033
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 11.295564
ATT: Read By Group Type Request (0x10) len 6
Handle range: 0x0001-0xffff
Attribute group type: Secondary Service (0x2801)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.311020
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 11.325140
ATT: Error Response (0x01) len 4
Read By Group Type Request (0x10)
Handle: 0x0001
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 11.325480
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0001-0x0005
Attribute type: Include (0x2802)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.340966
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 11.355153
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x0001
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 11.355480
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0007-0x000b
Attribute type: Include (0x2802)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.370965
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 11.385089
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x0007
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 11.385341
ATT: Read By Type Request (0x08) len 6
Handle range: 0x000c-0x000e
Attribute type: Include (0x2802)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.400947
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 11.415150
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x000c
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 11.415478
ATT: Read By Type Request (0x08) len 6
Handle range: 0x000f-0x0011
Attribute type: Include (0x2802)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.446026
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 11.460112
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x000f
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 11.460433
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0012-0x001f
Attribute type: Include (0x2802)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.476027
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 11.490059
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x0012
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 11.490363
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0020-0x0022
Attribute type: Include (0x2802)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.506027
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 11.520150
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x0020
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 11.520485
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0023-0x0029
Attribute type: Include (0x2802)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.535937
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 11.550137
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x0023
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 11.550419
ATT: Read By Type Request (0x08) len 6
Handle range: 0x002a-0x002e
Attribute type: Include (0x2802)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.565946
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 11.580109
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x002a
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 11.580399
ATT: Read By Type Request (0x08) len 6
Handle range: 0x002f-0x0032
Attribute type: Include (0x2802)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.595984
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 11.610140
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x002f
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 11.610443
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0001-0x0005
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.625932
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 11.640212
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x0002
Value: 020300002a
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 11.640450
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0003-0x0005
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.655932
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 11.670274
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x0004
Value: 020500012a
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 11.670589
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0005-0x0005
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.685954
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 11.700137
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x0005
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 11.700517
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0007-0x000b
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.715993
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 11.730217
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x0008
Value: 120900192a
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 11.730467
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0009-0x000b
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.745932
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 11.760056
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x0009
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 9 [hci0] 11.760369
ATT: Find Information Request (0x04) len 4
Handle range: 0x000a-0x000b
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.776024
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 14 [hci0] 11.790182
ATT: Find Information Response (0x05) len 9
Format: UUID-16 (0x01)
Handle: 0x000a
UUID: Characteristic Format (0x2904)
Handle: 0x000b
UUID: Client Characteristic Configuration (0x2902)
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 11.790489
ATT: Read By Type Request (0x08) len 6
Handle range: 0x000c-0x000e
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.806028
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 11.820184
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x000d
Value: 0a0e00062a
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 11.820442
ATT: Read By Type Request (0x08) len 6
Handle range: 0x000e-0x000e
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.836024
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 11.850094
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x000e
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 11.850554
ATT: Read By Type Request (0x08) len 6
Handle range: 0x000f-0x0011
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.866017
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 11.895270
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x0010
Value: 041100062a
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 11.895618
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0011-0x0011
Attribute type: Characteristic (0x2803)
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 11.925261
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x0011
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 11.925631
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0012-0x001f
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.925821
Num handles: 1
Handle: 32
Count: 1
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.940990
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 11.955181
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x0013
Value: 021400472a
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 11.955450
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0014-0x001f
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11.971029
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 11.985195
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x0015
Value: 101600462a
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 11.985374
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0016-0x001f
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 12.001028
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 12.015183
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x0018
Value: 021900482a
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 12.015447
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0019-0x001f
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 12.031020
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 12.045185
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x001a
Value: 101b00452a
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 12.045590
ATT: Read By Type Request (0x08) len 6
Handle range: 0x001b-0x001f
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 12.061022
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 12.075216
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x001d
Value: 181e00442a
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 12.075602
ATT: Read By Type Request (0x08) len 6
Handle range: 0x001e-0x001f
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 12.090982
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 12.105138
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x001e
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 9 [hci0] 12.105517
ATT: Find Information Request (0x04) len 4
Handle range: 0x0017-0x0017
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 12.121032
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 10 [hci0] 12.135270
ATT: Find Information Response (0x05) len 5
Format: UUID-16 (0x01)
Handle: 0x0017
UUID: Client Characteristic Configuration (0x2902)
< ACL Data TX: Handle 32 flags 0x00 dlen 9 [hci0] 12.135618
ATT: Find Information Request (0x04) len 4
Handle range: 0x001c-0x001c
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 12.166027
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 10 [hci0] 12.180180
ATT: Find Information Response (0x05) len 5
Format: UUID-16 (0x01)
Handle: 0x001c
UUID: Client Characteristic Configuration (0x2902)
< ACL Data TX: Handle 32 flags 0x00 dlen 9 [hci0] 12.180483
ATT: Find Information Request (0x04) len 4
Handle range: 0x001f-0x001f
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 12.196018
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 10 [hci0] 12.210180
ATT: Find Information Response (0x05) len 5
Format: UUID-16 (0x01)
Handle: 0x001f
UUID: Client Characteristic Configuration (0x2902)
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 12.210482
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0020-0x0022
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 12.225968
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 12.240183
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x0021
Value: 022200072a
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 12.240457
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0022-0x0022
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 12.256027
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 12.270222
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x0022
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 12.270478
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0023-0x0029
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 12.285950
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 12.300222
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x0024
Value: 0c2500f12a
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 12.300740
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0025-0x0029
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 12.315996
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 12.330202
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x0027
Value: 302800f02a
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 12.330418
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0028-0x0029
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 12.346022
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 12.360171
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x0028
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 9 [hci0] 12.360533
ATT: Find Information Request (0x04) len 4
Handle range: 0x0026-0x0026
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 12.390992
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 10 [hci0] 12.405173
ATT: Find Information Response (0x05) len 5
Format: UUID-16 (0x01)
Handle: 0x0026
UUID: Client Characteristic Configuration (0x2902)
< ACL Data TX: Handle 32 flags 0x00 dlen 9 [hci0] 12.405408
ATT: Find Information Request (0x04) len 4
Handle range: 0x0029-0x0029
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 12.421028
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 10 [hci0] 12.435180
ATT: Find Information Response (0x05) len 5
Format: UUID-16 (0x01)
Handle: 0x0029
UUID: Client Characteristic Configuration (0x2902)
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 12.435617
ATT: Read By Type Request (0x08) len 6
Handle range: 0x002a-0x002e
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 12.451016
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 12.465195
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x002b
Value: 022c00232a
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 12.465525
ATT: Read By Type Request (0x08) len 6
Handle range: 0x002c-0x002e
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 12.481020
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 12.495257
ATT: Read By Type Response (0x09) len 8
Attribute data length: 7
Attribute data list: 1 entry
Handle: 0x002d
Value: 022e00292a
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 12.495572
ATT: Read By Type Request (0x08) len 6
Handle range: 0x002e-0x002e
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 12.511019
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 12.525271
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x002e
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 12.525669
ATT: Read By Type Request (0x08) len 6
Handle range: 0x002f-0x0032
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 12.541013
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 27 [hci0] 12.555383
ATT: Read By Type Response (0x09) len 22
Attribute data length: 21
Attribute data list: 1 entry
Handle: 0x0030
Value: 3a31009f9f00c158bd32b69e4c219cc9d6f8be
< ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 12.555737
ATT: Read By Type Request (0x08) len 6
Handle range: 0x0031-0x0032
Attribute type: Characteristic (0x2803)
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 12.570994
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 12.585253
ATT: Error Response (0x01) len 4
Read By Type Request (0x08)
Handle: 0x0031
Error: Attribute Not Found (0x0a)
< ACL Data TX: Handle 32 flags 0x00 dlen 9 [hci0] 12.585670
ATT: Find Information Request (0x04) len 4
Handle range: 0x0032-0x0032
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 12.600917
Num handles: 1
Handle: 32
Count: 1
> ACL Data RX: Handle 32 flags 0x02 dlen 10 [hci0] 12.615270
ATT: Find Information Response (0x05) len 5
Format: UUID-16 (0x01)
Handle: 0x0032
UUID: Client Characteristic Configuration (0x2902)
< ACL Data TX: Handle 32 flags 0x00 dlen 9 [hci0] 12.619930
ATT: Read Blob Request (0x0c) len 4
Handle: 0x0003
Offset: 0x0000
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 12.630916
Num handles: 1
Handle: 32
Count: 1
< HCI Command: LE Set Random Address (0x08|0x0005) plen 6 [hci0] 15.769111
Address: 11:F6:BC:CD:3B:3E (Non-Resolvable)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 15.769935
LE Set Random Address (0x08|0x0005) ncmd 1
Status: Success (0x00)
< HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7 [hci0] 15.770028
Type: Active (0x01)
Interval: 11.250 msec (0x0012)
Window: 11.250 msec (0x0012)
Own address type: Random (0x01)
Filter policy: Accept all advertisement (0x00)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 15.770897
LE Set Scan Parameters (0x08|0x000b) ncmd 1
Status: Success (0x00)
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2 [hci0] 15.770994
Scanning: Enabled (0x01)
Filter duplicates: Enabled (0x01)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 15.771893
LE Set Scan Enable (0x08|0x000c) ncmd 1
Status: Success (0x00)
@ Discovering: 0x01 (7)
> HCI Event: LE Meta Event (0x3e) plen 43 [hci0] 16.610956
LE Advertising Report (0x02)
Num reports: 1
Event type: Connectable undirected - ADV_IND (0x00)
Address type: Public (0x00)
Address: A4:77:33:0F:2B:14 (OUI A4-77-33)
Data length: 31
Flags: 0x06
LE General Discoverable Mode
BR/EDR Not Supported
16-bit Service UUIDs (complete): 1 entry
Google (0xfe9f)
Service Data (UUID 0xfe9f): 02636c70586d4d57692d334d00000150a71850fa
RSSI: -56 dBm (0xc8)
> HCI Event: LE Meta Event (0x3e) plen 22 [hci0] 16.612893
LE Advertising Report (0x02)
Num reports: 1
Event type: Scan response - SCAN_RSP (0x04)
Address type: Public (0x00)
Address: A4:77:33:0F:2B:14 (OUI A4-77-33)
Data length: 10
Company: Google (224)
Data: fa8fca3f1f70
RSSI: -61 dBm (0xc3)
@ Device Found: A4:77:33:0F:2B:14 (1) rssi -61 flags 0x0000
02 01 06 03 03 9f fe 17 16 9f fe 02 63 6c 70 58 ............clpX
6d 4d 57 69 2d 33 4d 00 00 01 50 a7 18 50 fa 09 mMWi-3M...P..P..
ff e0 00 fa 8f ca 3f 1f 70 ......?.p
> HCI Event: LE Meta Event (0x3e) plen 43 [hci0] 16.984979
LE Advertising Report (0x02)
Num reports: 1
Event type: Connectable undirected - ADV_IND (0x00)
Address type: Public (0x00)
Address: A4:77:33:40:06:49 (OUI A4-77-33)
Data length: 31
Flags: 0x06
LE General Discoverable Mode
BR/EDR Not Supported
16-bit Service UUIDs (complete): 1 entry
Google (0xfe9f)
Service Data (UUID 0xfe9f): 024464694b586538654f4d6b00000150a718510e
RSSI: -61 dBm (0xc3)
> HCI Event: LE Meta Event (0x3e) plen 22 [hci0] 16.986891
LE Advertising Report (0x02)
Num reports: 1
Event type: Scan response - SCAN_RSP (0x04)
Address type: Public (0x00)
Address: A4:77:33:40:06:49 (OUI A4-77-33)
Data length: 10
Company: Google (224)
Data: fa8fca800324
RSSI: -61 dBm (0xc3)
@ Device Found: A4:77:33:40:06:49 (1) rssi -61 flags 0x0000
02 01 06 03 03 9f fe 17 16 9f fe 02 44 64 69 4b ............DdiK
58 65 38 65 4f 4d 6b 00 00 01 50 a7 18 51 0e 09 Xe8eOMk...P..Q..
ff e0 00 fa 8f ca 80 03 24 ........$
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2 [hci0] 20.896751
Scanning: Disabled (0x00)
Filter duplicates: Disabled (0x00)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 20.897898
LE Set Scan Enable (0x08|0x000c) ncmd 1
Status: Success (0x00)
< HCI Command: Inquiry (0x01|0x0001) plen 5 [hci0] 20.897999
Access code: 0x9e8b33 (General Inquiry)
Length: 5.12s (0x04)
Num responses: 0
> HCI Event: Vendor (0xff) plen 2 [hci0] 20.898859
80 00 ..
> HCI Event: Command Status (0x0f) plen 4 [hci0] 20.899857
Inquiry (0x01|0x0001) ncmd 1
Status: Success (0x00)
> HCI Event: Extended Inquiry Result (0x2f) plen 255 [hci0] 21.625951
Num responses: 1
Address: 38:2C:4A:2A:F6:D5 (OUI 38-2C-4A)
Page scan repetition mode: R1 (0x01)
Page period mode: P0 (0x00)
Class: 0x280424
Major class: Audio/Video (headset, speaker, stereo, video, vcr)
Minor class: Set-top box
Capturing (Scanner, Microphone)
Audio (Speaker, Microphone, Headset)
Clock offset: 0x6249
RSSI: -63 dBm (0xc1)
Name (complete): Nexus Player
16-bit Service UUIDs (complete): 5 entries
Audio Source (0x110a)
A/V Remote Control Target (0x110c)
A/V Remote Control (0x110e)
Headset AG (0x1112)
PnP Information (0x1200)
@ Device Found: 38:2C:4A:2A:F6:D5 (0) rssi -63 flags 0x0000
0d 09 4e 65 78 75 73 20 50 6c 61 79 65 72 0b 03 ..Nexus Player..
0a 11 0c 11 0e 11 12 11 00 12 01 05 01 07 04 0d ................
24 04 28 $.(
> HCI Event: Vendor (0xff) plen 2 [hci0] 26.021924
80 01 ..
> HCI Event: Inquiry Complete (0x01) plen 1 [hci0] 26.022849
Status: Success (0x00)
@ Discovering: 0x00 (7)
< HCI Command: LE Set Random Address (0x08|0x0005) plen 6 [hci0] 31.775258
Address: 3C:4B:4F:5F:45:61 (Non-Resolvable)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 31.775795
LE Set Random Address (0x08|0x0005) ncmd 1
Status: Success (0x00)
< HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7 [hci0] 31.775888
Type: Active (0x01)
Interval: 11.250 msec (0x0012)
Window: 11.250 msec (0x0012)
Own address type: Random (0x01)
Filter policy: Accept all advertisement (0x00)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 31.776796
LE Set Scan Parameters (0x08|0x000b) ncmd 1
Status: Success (0x00)
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2 [hci0] 31.776901
Scanning: Enabled (0x01)
Filter duplicates: Enabled (0x01)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 31.777783
LE Set Scan Enable (0x08|0x000c) ncmd 1
Status: Success (0x00)
@ Discovering: 0x01 (7)
> HCI Event: LE Meta Event (0x3e) plen 43 [hci0] 32.036874
LE Advertising Report (0x02)
Num reports: 1
Event type: Connectable undirected - ADV_IND (0x00)
Address type: Public (0x00)
Address: A4:77:33:0F:2B:14 (OUI A4-77-33)
Data length: 31
Flags: 0x06
LE General Discoverable Mode
BR/EDR Not Supported
16-bit Service UUIDs (complete): 1 entry
Google (0xfe9f)
Service Data (UUID 0xfe9f): 02636c70586d4d57692d334d00000150a71850fa
RSSI: -60 dBm (0xc4)
> HCI Event: LE Meta Event (0x3e) plen 22 [hci0] 32.038815
LE Advertising Report (0x02)
Num reports: 1
Event type: Scan response - SCAN_RSP (0x04)
Address type: Public (0x00)
Address: A4:77:33:0F:2B:14 (OUI A4-77-33)
Data length: 10
Company: Google (224)
Data: fa8fca3f1f70
RSSI: -60 dBm (0xc4)
@ Device Found: A4:77:33:0F:2B:14 (1) rssi -60 flags 0x0000
02 01 06 03 03 9f fe 17 16 9f fe 02 63 6c 70 58 ............clpX
6d 4d 57 69 2d 33 4d 00 00 01 50 a7 18 50 fa 09 mMWi-3M...P..P..
ff e0 00 fa 8f ca 3f 1f 70 ......?.p
> HCI Event: LE Meta Event (0x3e) plen 43 [hci0] 32.420829
LE Advertising Report (0x02)
Num reports: 1
Event type: Connectable undirected - ADV_IND (0x00)
Address type: Public (0x00)
Address: A4:77:33:40:06:49 (OUI A4-77-33)
Data length: 31
Flags: 0x06
LE General Discoverable Mode
BR/EDR Not Supported
16-bit Service UUIDs (complete): 1 entry
Google (0xfe9f)
Service Data (UUID 0xfe9f): 024464694b586538654f4d6b00000150a718510e
RSSI: -65 dBm (0xbf)
> HCI Event: LE Meta Event (0x3e) plen 22 [hci0] 32.422815
LE Advertising Report (0x02)
Num reports: 1
Event type: Scan response - SCAN_RSP (0x04)
Address type: Public (0x00)
Address: A4:77:33:40:06:49 (OUI A4-77-33)
Data length: 10
Company: Google (224)
Data: fa8fca800324
RSSI: -66 dBm (0xbe)
@ Device Found: A4:77:33:40:06:49 (1) rssi -66 flags 0x0000
02 01 06 03 03 9f fe 17 16 9f fe 02 44 64 69 4b ............DdiK
58 65 38 65 4f 4d 6b 00 00 01 50 a7 18 51 0e 09 Xe8eOMk...P..Q..
ff e0 00 fa 8f ca 80 03 24 ........$
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2 [hci0] 36.912750
Scanning: Disabled (0x00)
Filter duplicates: Disabled (0x00)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 36.913766
LE Set Scan Enable (0x08|0x000c) ncmd 1
Status: Success (0x00)
< HCI Command: Inquiry (0x01|0x0001) plen 5 [hci0] 36.913889
Access code: 0x9e8b33 (General Inquiry)
Length: 5.12s (0x04)
Num responses: 0
> HCI Event: Vendor (0xff) plen 2 [hci0] 36.914751
80 00 ..
> HCI Event: Command Status (0x0f) plen 4 [hci0] 36.915748
Inquiry (0x01|0x0001) ncmd 1
Status: Success (0x00)
> HCI Event: Extended Inquiry Result (0x2f) plen 255 [hci0] 37.211767
Num responses: 1
Address: 38:2C:4A:2A:F6:D5 (OUI 38-2C-4A)
Page scan repetition mode: R1 (0x01)
Page period mode: P0 (0x00)
Class: 0x280424
Major class: Audio/Video (headset, speaker, stereo, video, vcr)
Minor class: Set-top box
Capturing (Scanner, Microphone)
Audio (Speaker, Microphone, Headset)
Clock offset: 0x6249
RSSI: -78 dBm (0xb2)
Name (complete): Nexus Player
16-bit Service UUIDs (complete): 5 entries
Audio Source (0x110a)
A/V Remote Control Target (0x110c)
A/V Remote Control (0x110e)
Headset AG (0x1112)
PnP Information (0x1200)
@ Device Found: 38:2C:4A:2A:F6:D5 (0) rssi -78 flags 0x0000
0d 09 4e 65 78 75 73 20 50 6c 61 79 65 72 0b 03 ..Nexus Player..
0a 11 0c 11 0e 11 12 11 00 12 01 05 01 07 04 0d ................
24 04 28 $.(
> HCI Event: Vendor (0xff) plen 2 [hci0] 42.037724
80 01 ..
> HCI Event: Inquiry Complete (0x01) plen 1 [hci0] 42.038732
Status: Success (0x00)
@ Discovering: 0x00 (7)
< HCI Command: Disconnect (0x01|0x0006) plen 3 [hci0] 44.624755
Handle: 32
Reason: Remote User Terminated Connection (0x13)
> HCI Event: Command Status (0x0f) plen 4 [hci0] 44.625710
Disconnect (0x01|0x0006) ncmd 1
Status: Success (0x00)
> HCI Event: Vendor (0xff) plen 7 [hci0] 44.627703
82 70 90 80 10 36 59 .p...6Y
> HCI Event: Disconnect Complete (0x05) plen 4 [hci0] 44.628698
Status: Success (0x00)
Handle: 32
Reason: Connection Terminated By Local Host (0x16)
@ Device Disconnected: 0F:04:E0:51:44:8B (2) reason 2
[-- Attachment #3: btmon (3).btsnoop --]
[-- Type: application/octet-stream, Size: 8785 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Cannot write to BLE thermal printer
2015-10-27 14:22 ` Leon Nicholls
@ 2015-10-27 14:47 ` Luiz Augusto von Dentz
2015-10-28 2:58 ` Leon Nicholls
0 siblings, 1 reply; 12+ messages in thread
From: Luiz Augusto von Dentz @ 2015-10-27 14:47 UTC (permalink / raw)
To: Leon Nicholls; +Cc: linux-bluetooth
Hi Leon,
On Tue, Oct 27, 2015 at 4:22 PM, Leon Nicholls <lnicholls@google.com> wrote:
> Still seeing the same issue:
> ChromeOS version: 48.0.2546.0 canary (64 bit)
> Bluetooth monitor ver 5.35
> I'm using the Web Bluetooth Polymer element:
> https://elements.polymer-project.org/elements/platinum-bluetooth
No top-posting in this list please.
The problem seems similar, there is a Read Blob Request but after that
it just disconnect:
< ACL Data TX: Handle 32 flags 0x00 dlen 9
ATT: Read Blob Request (0x0c) len 4
Handle: 0x0003
Offset: 0x0000
But in the meantime this happens:
< HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7
Type: Active (0x01)
Interval: 11.250 msec (0x0012)
Window: 11.250 msec (0x0012)
Own address type: Random (0x01)
Filter policy: Accept all advertisement (0x00)
This looks like you manage to start a full duty cycle scan? You
probably have changed this since at least upstream we use 50% duty
cycle:
< HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7
Type: Active (0x01)
Interval: 22.500 msec (0x0024)
Window: 11.250 msec (0x0012)
Own address type: Random (0x01)
Filter policy: Accept all advertisement (0x00)
Anyway this probably means the controller have no time to receive
anything else since it is busy with the scan, so at this point nothing
else will happen at ATT and the Write command is probably stuck in the
queue waiting for the response to Read Blob Request.
Btw, why you want to scan if you are already connected?
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Cannot write to BLE thermal printer
2015-10-27 14:47 ` Luiz Augusto von Dentz
@ 2015-10-28 2:58 ` Leon Nicholls
2015-10-28 4:43 ` François Beaufort
0 siblings, 1 reply; 12+ messages in thread
From: Leon Nicholls @ 2015-10-28 2:58 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: linux-bluetooth
In my web app I don't explicitly do a scan for devices. That is done
somewhere inside the polymer element or even the Web Bluetooth API in
Chrome. I'm going to experiment with using the Web Bluetooth API
directly to eliminate one level of abstraction.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Cannot write to BLE thermal printer
2015-10-28 2:58 ` Leon Nicholls
@ 2015-10-28 4:43 ` François Beaufort
2015-10-28 5:43 ` Leon Nicholls
0 siblings, 1 reply; 12+ messages in thread
From: François Beaufort @ 2015-10-28 4:43 UTC (permalink / raw)
To: Leon Nicholls, Luiz Augusto von Dentz; +Cc: linux-bluetooth
You may want to simply try:
crosh> bt_console
[bluetooth]# scan on
Discovery started
...
[bluetooth]# scan off
Discovery stopped
[bluetooth]# connect 01:23:45:67:89:01
where 01:23:45:67:89:01 is the Bluetooth Low Energy printer address.
On Wed, Oct 28, 2015 at 3:59 AM Leon Nicholls <lnicholls@google.com> wrote:
>
> In my web app I don't explicitly do a scan for devices. That is done
> somewhere inside the polymer element or even the Web Bluetooth API in
> Chrome. I'm going to experiment with using the Web Bluetooth API
> directly to eliminate one level of abstraction.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Cannot write to BLE thermal printer
2015-10-28 4:43 ` François Beaufort
@ 2015-10-28 5:43 ` Leon Nicholls
2015-10-28 5:45 ` François Beaufort
0 siblings, 1 reply; 12+ messages in thread
From: Leon Nicholls @ 2015-10-28 5:43 UTC (permalink / raw)
To: François Beaufort; +Cc: Luiz Augusto von Dentz, linux-bluetooth
I'm still getting a GATT error.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Cannot write to BLE thermal printer
2015-10-28 5:43 ` Leon Nicholls
@ 2015-10-28 5:45 ` François Beaufort
2015-10-28 8:00 ` Luiz Augusto von Dentz
0 siblings, 1 reply; 12+ messages in thread
From: François Beaufort @ 2015-10-28 5:45 UTC (permalink / raw)
To: Leon Nicholls; +Cc: Luiz Augusto von Dentz, linux-bluetooth
Does it work on Android or iOS?
If so, could you provide a trace?
On Wed, Oct 28, 2015 at 6:43 AM, Leon Nicholls <lnicholls@google.com> wrote:
> I'm still getting a GATT error.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Cannot write to BLE thermal printer
2015-10-28 5:45 ` François Beaufort
@ 2015-10-28 8:00 ` Luiz Augusto von Dentz
2015-10-29 3:02 ` Leon Nicholls
0 siblings, 1 reply; 12+ messages in thread
From: Luiz Augusto von Dentz @ 2015-10-28 8:00 UTC (permalink / raw)
To: François Beaufort; +Cc: Leon Nicholls, linux-bluetooth
Hi François
On Wed, Oct 28, 2015 at 7:45 AM, François Beaufort
<beaufort.francois@gmail.com> wrote:
> Does it work on Android or iOS?
> If so, could you provide a trace?
>
> On Wed, Oct 28, 2015 at 6:43 AM, Leon Nicholls <lnicholls@google.com> wrote:
>> I'm still getting a GATT error.
It would be nice to know what error you are talking about, note that
in the previous trace you sent there was actually no error because the
scan is blocking any other communication to happen ATT eventually
timeout (ATT timeout is 30 seconds) which cause the ACL to be
disconnected.
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Cannot write to BLE thermal printer
2015-10-28 8:00 ` Luiz Augusto von Dentz
@ 2015-10-29 3:02 ` Leon Nicholls
2015-10-29 18:53 ` Luiz Augusto von Dentz
0 siblings, 1 reply; 12+ messages in thread
From: Leon Nicholls @ 2015-10-29 3:02 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: François Beaufort, linux-bluetooth
[-- Attachment #1: Type: text/plain, Size: 253 bytes --]
Following François instructions to explicitly stop the scan, here are
the latest logs. I'm getting a "GATT Error Unknown" in the browser,
although that might not be an error on the driver level but maybe just
due to a timeout on the browser level.
[-- Attachment #2: shell.txt --]
[-- Type: text/plain, Size: 1170 bytes --]
chronos@localhost / $ sudo btmon -w ~/Downloads/btmon.btsnoop
Bluetooth monitor ver 5.35
= New Index: 1C:3E:84:0D:F9:F8 (BR/EDR,USB,hci0) [hci0] 0.243097
< HCI Command: Disconnect (0x01|0x0006) plen 3 [hci0] 21.650771
Handle: 32
Reason: Remote User Terminated Connection (0x13)
> HCI Event: Command Status (0x0f) plen 4 [hci0] 21.652313
Disconnect (0x01|0x0006) ncmd 1
Status: Success (0x00)
> HCI Event: Vendor (0xff) plen 7 [hci0] 21.667374
82 70 90 80 10 36 59 .p...6Y
> HCI Event: Disconnect Complete (0x05) plen 4 [hci0] 21.668360
Status: Success (0x00)
Handle: 32
Reason: Connection Terminated By Local Host (0x16)
@ Device Disconnected: 0F:04:E0:51:44:8B (2) reason 2
[-- Attachment #3: btmon (4).btsnoop --]
[-- Type: application/octet-stream, Size: 179 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Cannot write to BLE thermal printer
2015-10-29 3:02 ` Leon Nicholls
@ 2015-10-29 18:53 ` Luiz Augusto von Dentz
2015-11-02 3:55 ` Leon Nicholls
0 siblings, 1 reply; 12+ messages in thread
From: Luiz Augusto von Dentz @ 2015-10-29 18:53 UTC (permalink / raw)
To: Leon Nicholls; +Cc: François Beaufort, linux-bluetooth
Hi Leon,
On Thu, Oct 29, 2015 at 5:02 AM, Leon Nicholls <lnicholls@google.com> wrote:
> Following François instructions to explicitly stop the scan, here are
> the latest logs. I'm getting a "GATT Error Unknown" in the browser,
> although that might not be an error on the driver level but maybe just
> due to a timeout on the browser level.
I could only decode a Disconnect command from the btmon trace you
sent, there is no ATT traffic at all.
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Cannot write to BLE thermal printer
2015-10-29 18:53 ` Luiz Augusto von Dentz
@ 2015-11-02 3:55 ` Leon Nicholls
0 siblings, 0 replies; 12+ messages in thread
From: Leon Nicholls @ 2015-11-02 3:55 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: François Beaufort, linux-bluetooth
My chromebook got a few more updates the past few days and now the
code is working and I can send characters to the printer! Thanks for
taking a look at the issue.
On Thu, Oct 29, 2015 at 11:53 AM, Luiz Augusto von Dentz
<luiz.dentz@gmail.com> wrote:
> Hi Leon,
>
> On Thu, Oct 29, 2015 at 5:02 AM, Leon Nicholls <lnicholls@google.com> wrote:
>> Following François instructions to explicitly stop the scan, here are
>> the latest logs. I'm getting a "GATT Error Unknown" in the browser,
>> although that might not be an error on the driver level but maybe just
>> due to a timeout on the browser level.
>
> I could only decode a Disconnect command from the btmon trace you
> sent, there is no ATT traffic at all.
>
> --
> Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2015-11-02 3:55 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-02 6:33 Cannot write to BLE thermal printer Leon Nicholls
2015-10-02 7:15 ` Luiz Augusto von Dentz
2015-10-27 14:22 ` Leon Nicholls
2015-10-27 14:47 ` Luiz Augusto von Dentz
2015-10-28 2:58 ` Leon Nicholls
2015-10-28 4:43 ` François Beaufort
2015-10-28 5:43 ` Leon Nicholls
2015-10-28 5:45 ` François Beaufort
2015-10-28 8:00 ` Luiz Augusto von Dentz
2015-10-29 3:02 ` Leon Nicholls
2015-10-29 18:53 ` Luiz Augusto von Dentz
2015-11-02 3:55 ` Leon Nicholls
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.