Return-Path: MIME-Version: 1.0 From: =?UTF-8?Q?Fran=C3=A7ois_Beaufort?= Date: Fri, 12 Feb 2016 14:38:36 +0100 Message-ID: Subject: What does mean "GattServices is nil" ? To: BlueZ development Content-Type: text/plain; charset=UTF-8 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hello! I use BlueZ 5.35 and I'd love your help. Can you help me understand why list-attributes doesn't return anything and the "GattServices is nil" message? Here's my bluetoothctl logs: [bluetooth]# connect F1:6F:DE:EC:F1:D6 Attempting to connect to F1:6F:DE:EC:F1:D6 [CHG] Device F1:6F:DE:EC:F1:D6 Connected: yes Connection successful [CHG] Device F1:6F:DE:EC:F1:D6 GattServices is nil [DFU_Test]# list-attributes [DFU_Test]# info Device F1:6F:DE:EC:F1:D6 Name: DFU_Test Alias: DFU_Test Appearance: 0x0340 Paired: no Trusted: no Blocked: no Connected: yes LegacyPairing: no UUID: Heart Rate (0000180d-0000-1000-8000-00805f9b34fb) UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb) And here are my btmon logs in case it would help: < HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7 [hci0] 49.518076 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] 49.518952 LE Set Scan Parameters (0x08|0x000b) ncmd 1 Status: Success (0x00) < HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2 [hci0] 49.518981 Scanning: Enabled (0x01) Filter duplicates: Enabled (0x01) > HCI Event: Command Complete (0x0e) plen 4 [hci0] 49.519952 LE Set Scan Enable (0x08|0x000c) ncmd 1 Status: Success (0x00) > HCI Event: LE Meta Event (0x3e) plen 36 [hci0] 52.188030 LE Advertising Report (0x02) Num reports: 1 Event type: Connectable undirected - ADV_IND (0x00) Address type: Random (0x01) Address: F1:6F:DE:EC:F1:D6 (Static) Data length: 24 Flags: 0x06 LE General Discoverable Mode BR/EDR Not Supported 16-bit Service UUIDs (complete): 2 entries Heart Rate (0x180d) Device Information (0x180a) Appearance: Heart Rate Sensor (0x0340) Name (complete): DFU_Test RSSI: -31 dBm (0xe1) < HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2 [hci0] 52.188143 Scanning: Disabled (0x00) Filter duplicates: Disabled (0x00) > HCI Event: Command Complete (0x0e) plen 4 [hci0] 52.188957 LE Set Scan Enable (0x08|0x000c) ncmd 1 Status: Success (0x00) < HCI Command: LE Create Connection (0x08|0x000d) plen 25 [hci0] 52.189058 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: F1:6F:DE:EC:F1:D6 (Static) 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] 52.189955 LE Create Connection (0x08|0x000d) ncmd 1 Status: Success (0x00) < HCI Command: LE Create Connection Can.. (0x08|0x000e) plen 0 [hci0] 54.195731 > HCI Event: LE Meta Event (0x3e) plen 19 [hci0] 54.195946 LE Connection Complete (0x01) Status: Success (0x00) Handle: 32 Role: Master (0x00) Peer address type: Random (0x01) Peer address: F1:6F:DE:EC:F1:D6 (Static) Connection interval: 67.50 msec (0x0036) Connection latency: 0.00 msec (0x0000) Supervision timeout: 420 msec (0x002a) Master clock accuracy: 0x00 @ Device Connected: F1:6F:DE:EC:F1:D6 (2) flags 0x0000 02 01 06 05 03 0d 18 0a 18 03 19 40 03 0a 09 44 ...........@...D 46 55 5f 54 65 73 74 00 FU_Test. > HCI Event: Command Complete (0x0e) plen 4 [hci0] 54.196928 LE Create Connection Cancel (0x08|0x000e) ncmd 1 Status: Command Disallowed (0x0c) < HCI Command: LE Read Remote Used Feat.. (0x08|0x0016) plen 2 [hci0] 54.197004 Handle: 32 > HCI Event: Command Status (0x0f) plen 4 [hci0] 54.197929 LE Read Remote Used Features (0x08|0x0016) ncmd 1 Status: Success (0x00) > HCI Event: LE Meta Event (0x3e) plen 12 [hci0] 54.330960 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 7 [hci0] 54.332123 ATT: Exchange MTU Request (0x02) len 2 Client RX MTU: 517 > HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 54.397976 Num handles: 1 Handle: 32 Count: 1 > ACL Data RX: Handle 32 flags 0x02 dlen 7 [hci0] 54.465099 ATT: Exchange MTU Response (0x03) len 2 Server RX MTU: 23 < ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 54.465342 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] 54.532926 Num handles: 1 Handle: 32 Count: 1 > ACL Data RX: Handle 32 flags 0x02 dlen 18 [hci0] 54.600225 ATT: Read By Group Type Response (0x11) len 13 Attribute data length: 6 Attribute group list: 2 entries Handle range: 0x0001-0x0007 UUID: Generic Access Profile (0x1800) Handle range: 0x0008-0x000b UUID: Generic Attribute Profile (0x1801) < ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 54.600402 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] 54.667973 Num handles: 1 Handle: 32 Count: 1 > ACL Data RX: Handle 32 flags 0x02 dlen 26 [hci0] 54.735207 ATT: Read By Group Type Response (0x11) len 21 Attribute data length: 20 Attribute group list: 1 entry Handle range: 0x000c-0x0011 UUID: Unknown (00001530-1212-efde-1523-785feabcd123) < ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 54.735408 ATT: Read By Group Type Request (0x10) len 6 Handle range: 0x0012-0xffff Attribute group type: Primary Service (0x2800) > HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 54.802940 Num handles: 1 Handle: 32 Count: 1 > ACL Data RX: Handle 32 flags 0x02 dlen 18 [hci0] 54.937705 ATT: Read By Group Type Response (0x11) len 13 Attribute data length: 6 Attribute group list: 2 entries Handle range: 0x0012-0x0019 UUID: Heart Rate (0x180d) Handle range: 0x001a-0xffff UUID: Device Information (0x180a) < ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 54.937991 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] 55.005936 Num handles: 1 Handle: 32 Count: 1 > ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 55.072581 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] 55.072850 ATT: Read By Type Request (0x08) len 6 Handle range: 0x0008-0x000b Attribute type: Include (0x2802) > HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 55.140972 Num handles: 1 Handle: 32 Count: 1 > ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 55.207582 ATT: Error Response (0x01) len 4 Read By Type Request (0x08) Handle: 0x0008 Error: Attribute Not Found (0x0a) < ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 55.207940 ATT: Read By Type Request (0x08) len 6 Handle range: 0x000c-0x0011 Attribute type: Include (0x2802) > HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 55.275954 Num handles: 1 Handle: 32 Count: 1 > ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 55.342564 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] 55.342855 ATT: Read By Type Request (0x08) len 6 Handle range: 0x0012-0x0019 Attribute type: Include (0x2802) > HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 55.410939 Num handles: 1 Handle: 32 Count: 1 > ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 55.477547 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] 55.477794 ATT: Read By Type Request (0x08) len 6 Handle range: 0x001a-0xffff Attribute type: Include (0x2802) > HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 55.545967 Num handles: 1 Handle: 32 Count: 1 > ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 55.612685 ATT: Error Response (0x01) len 4 Read By Type Request (0x08) Handle: 0x001a Error: Attribute Not Found (0x0a) < ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 55.612878 ATT: Read By Type Request (0x08) len 6 Handle range: 0x0008-0x000b Attribute type: Characteristic (0x2803) > HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 55.680951 Num handles: 1 Handle: 32 Count: 1 > ACL Data RX: Handle 32 flags 0x02 dlen 13 [hci0] 55.747715 ATT: Read By Type Response (0x09) len 8 Attribute data length: 7 Attribute data list: 1 entry Handle: 0x0009 Value: 200a00052a < ACL Data TX: Handle 32 flags 0x00 dlen 11 [hci0] 55.747892 ATT: Read By Type Request (0x08) len 6 Handle range: 0x000a-0x000b Attribute type: Characteristic (0x2803) > HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 55.815954 Num handles: 1 Handle: 32 Count: 1 > ACL Data RX: Handle 32 flags 0x02 dlen 9 [hci0] 55.882715 ATT: Error Response (0x01) len 4 Read By Type Request (0x08) Handle: 0x000a Error: Attribute Not Found (0x0a)