Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connectivity issues on Raspbian Stretch #26

Open
grover opened this issue Feb 24, 2018 · 5 comments
Open

Connectivity issues on Raspbian Stretch #26

grover opened this issue Feb 24, 2018 · 5 comments

Comments

@grover
Copy link

grover commented Feb 24, 2018

When running node test.js on a Raspberry Pi 3, I get the following output:

connectAndSetup
disconnected!

Running hcidump alongside gives the following output:

HCI sniffer - Bluetooth packet analyzer ver 5.23
device: hci0 snap_len: 1500 filter: 0xffffffff
> HCI Event: Command Complete (0x0e) plen 4
    Set Event Mask (0x03|0x0001) ncmd 1
    status 0x00
> HCI Event: Command Complete (0x0e) plen 4
    LE Set Event Mask (0x08|0x0001) ncmd 1
    status 0x00
> HCI Event: Command Complete (0x0e) plen 12
    Read Local Version Information (0x04|0x0001) ncmd 1
    status 0x00
    HCI Version: 4.1 (0x7) HCI Revision: 0x145
    LMP Version: 4.1 (0x7) LMP Subversion: 0x2209
    Manufacturer: Broadcom Corporation (15)
> HCI Event: Command Complete (0x0e) plen 4
    Write LE Host Supported (0x03|0x006d) ncmd 1
> HCI Event: Command Complete (0x0e) plen 6
    Read LE Host Supported (0x03|0x006c) ncmd 1
> HCI Event: Command Complete (0x0e) plen 10
    Read BD ADDR (0x04|0x0009) ncmd 1
    status 0x00 bdaddr B8:27:EB:D2:D3:34
> HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Enable (0x08|0x000c) ncmd 1
    status 0x0c
    Error: Command Disallowed
> HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Parameters (0x08|0x000b) ncmd 1
    status 0x00
> HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Enable (0x08|0x000c) ncmd 1
    status 0x0c
    Error: Command Disallowed
> HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Parameters (0x08|0x000b) ncmd 1
    status 0x00
> HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Enable (0x08|0x000c) ncmd 1
    status 0x0c
    Error: Command Disallowed
> HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Parameters (0x08|0x000b) ncmd 1
    status 0x00
> HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Enable (0x08|0x000c) ncmd 1
    status 0x00
> HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Enable (0x08|0x000c) ncmd 1
    status 0x00
> HCI Event: Command Status (0x0f) plen 4
    LE Create Connection (0x08|0x000d) status 0x00 ncmd 1
> HCI Event: Command Status (0x0f) plen 4
    LE Read Remote Used Features (0x08|0x0016) status 0x00 ncmd 1
> HCI Event: Disconn Complete (0x05) plen 4
    status 0x00 handle 64 reason 0x13
    Reason: Remote User Terminated Connection
> HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Enable (0x08|0x000c) ncmd 1
    status 0x0c
    Error: Command Disallowed
> HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Enable (0x08|0x000c) ncmd 1
    status 0x0c
    Error: Command Disallowed

It hangs on LE Read Remote Used Features and gets stuck there until the Flower Power device disconnects.

uname -a: Linux raspbee 4.9.73-v7+ #1072 SMP Sun Dec 31 19:37:41 GMT 2017 armv7l GNU/Linux
bluetoothctl -v: 5.23

I get the same results on a Raspberry Pi Zero W with:

uname -a Linux leinwand 4.9.78+ #1084 Thu Jan 25 17:40:10 GMT 2018 armv6l GNU/Linux
bluetoothctl -v: 5.43

Any ideas?

@grover
Copy link
Author

grover commented Feb 24, 2018

Here's also the btmon output captured on the Raspberry Pi Zero W:

Bluetooth monitor ver 5.43
= Note: Linux version 4.9.78+ (armv6l)                                                                                                                                                             0.831957
= Note: Bluetooth subsystem version 2.22                                                                                                                                                           0.831971
= New Index: B8:27:EB:19:04:19 (Primary,UART,hci0)                                                                                                                                          [hci0] 0.831975
= Open Index: B8:27:EB:19:04:19                                                                                                                                                             [hci0] 0.831978
= Index Info: B8:27:EB:19:04:19 (Broadcom Corporation)                                                                                                                                      [hci0] 0.831981
@ MGMT Open: bluetoothd (privileged) version 1.14                                                                                                                                         {0x0001} 0.831987
@ MGMT Open: btmon (privileged) version 1.14                                                                                                                                              {0x0002} 0.832126
@ RAW Open: node (privileged) version 2.22                                                                                                                                                {0x0003} 9.149644
@ RAW Close: node                                                                                                                                                                         {0x0003} 9.150708
@ RAW Open: node (privileged) version 2.22                                                                                                                                         {0x0003} [hci0] 9.150752
< HCI Command: Set Event Mask (0x03|0x0001) plen 8                                                                                                                                          [hci0] 9.180553
        Mask: 0x3dbff807fffbffff
          Inquiry Complete
          Inquiry Result
          Connection Complete
          Connection Request
          Disconnection Complete
          Authentication Complete
          Remote Name Request Complete
          Encryption Change
          Change Connection Link Key Complete
          Master Link Key Complete
          Read Remote Supported Features Complete
          Read Remote Version Information Complete
          QoS Setup Complete
          Command Complete
          Command Status
          Hardware Error
          Flush Occurred
          Role Change
          Mode Change
          Return Link Keys
          PIN Code Request
          Link Key Request
          Link Key Notification
          Loopback Command
          Data Buffer Overflow
          Max Slots Change
          Read Clock Offset Complete
          Connection Packet Type Changed
          QoS Violation
          Page Scan Mode Change
          Page Scan Repetition Mode Change
          Flow Specification Complete
          Inquiry Result with RSSI
          Read Remote Extended Features Complete
          Synchronous Connection Complete
          Synchronous Connection Changed
          Sniff Subrating
          Extended Inquiry Result
          Encryption Key Refresh Complete
          IO Capability Request
          IO Capability Request Reply
          User Confirmation Request
          User Passkey Request
          Remote OOB Data Request
          Simple Pairing Complete
          Link Supervision Timeout Changed
          Enhanced Flush Complete
          User Passkey Notification
          Keypress Notification
          Remote Host Supported Features Notification
          LE Meta
> HCI Event: Command Complete (0x0e) plen 4                                                                                                                                                 [hci0] 9.182927
      Set Event Mask (0x03|0x0001) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Event Mask (0x08|0x0001) plen 8                                                                                                                                       [hci0] 9.190274
        Mask: 0x000000000000001f
          LE Connection Complete
          LE Advertising Report
          LE Connection Update Complete
          LE Read Remote Used Features Complete
          LE Long Term Key Request
> HCI Event: Command Complete (0x0e) plen 4                                                                                                                                                 [hci0] 9.191168
      LE Set Event Mask (0x08|0x0001) ncmd 1
        Status: Success (0x00)
< HCI Command: Read Local Version Information (0x04|0x0001) plen 0                                                                                                                          [hci0] 9.194294
> HCI Event: Command Complete (0x0e) plen 12                                                                                                                                                [hci0] 9.195283
      Read Local Version Information (0x04|0x0001) ncmd 1
        Status: Success (0x00)
        HCI version: Bluetooth 4.1 (0x07) - Revision 360 (0x0168)
        LMP version: Bluetooth 4.1 (0x07) - Subversion 8713 (0x2209)
        Manufacturer: Broadcom Corporation (15)
          Firmware: 001.002.009
          Build: 0360
< HCI Command: Write LE Host Supported (0x03|0x006d) plen 2                                                                                                                                 [hci0] 9.200494
        Supported: 0x01
        Simultaneous: 0x00
> HCI Event: Command Complete (0x0e) plen 4                                                                                                                                                 [hci0] 9.201530
      Write LE Host Supported (0x03|0x006d) ncmd 1
        Status: Success (0x00)
< HCI Command: Read LE Host Supported (0x03|0x006c) plen 0                                                                                                                                  [hci0] 9.204546
> HCI Event: Command Complete (0x0e) plen 6                                                                                                                                                 [hci0] 9.205531
      Read LE Host Supported (0x03|0x006c) ncmd 1
        Status: Success (0x00)
        Supported: 0x01
        Simultaneous: 0x00
< HCI Command: Read BD ADDR (0x04|0x0009) plen 0                                                                                                                                            [hci0] 9.210862
> HCI Event: Command Complete (0x0e) plen 10                                                                                                                                                [hci0] 9.211842
      Read BD ADDR (0x04|0x0009) ncmd 1
        Status: Success (0x00)
        Address: B8:27:EB:19:04:19 (Raspberry Pi Foundation)
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2                                                                                                                                      [hci0] 9.273188
        Scanning: Disabled (0x00)
        Filter duplicates: Enabled (0x01)
> HCI Event: Command Complete (0x0e) plen 4                                                                                                                                                 [hci0] 9.274351
      LE Set Scan Enable (0x08|0x000c) ncmd 1
        Status: Command Disallowed (0x0c)
< HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7                                                                                                                                  [hci0] 9.278494
        Type: Active (0x01)
        Interval: 10.000 msec (0x0010)
        Window: 10.000 msec (0x0010)
        Own address type: Public (0x00)
        Filter policy: Accept all advertisement (0x00)
> HCI Event: Command Complete (0x0e) plen 4                                                                                                                                                 [hci0] 9.279703
      LE Set Scan Parameters (0x08|0x000b) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2                                                                                                                                      [hci0] 9.282585
        Scanning: Disabled (0x00)
        Filter duplicates: Enabled (0x01)
> HCI Event: Command Complete (0x0e) plen 4                                                                                                                                                 [hci0] 9.283756
      LE Set Scan Enable (0x08|0x000c) ncmd 1
        Status: Command Disallowed (0x0c)
< HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7                                                                                                                                  [hci0] 9.286999
        Type: Active (0x01)
        Interval: 10.000 msec (0x0010)
        Window: 10.000 msec (0x0010)
        Own address type: Public (0x00)
        Filter policy: Accept all advertisement (0x00)
> HCI Event: Command Complete (0x0e) plen 4                                                                                                                                                 [hci0] 9.288186
      LE Set Scan Parameters (0x08|0x000b) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2                                                                                                                                      [hci0] 9.314465
        Scanning: Disabled (0x00)
        Filter duplicates: Enabled (0x01)
> HCI Event: Command Complete (0x0e) plen 4                                                                                                                                                 [hci0] 9.315527
      LE Set Scan Enable (0x08|0x000c) ncmd 1
        Status: Command Disallowed (0x0c)
< HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7                                                                                                                                  [hci0] 9.317394
        Type: Active (0x01)
        Interval: 10.000 msec (0x0010)
        Window: 10.000 msec (0x0010)
        Own address type: Public (0x00)
        Filter policy: Accept all advertisement (0x00)
> HCI Event: Command Complete (0x0e) plen 4                                                                                                                                                 [hci0] 9.318083
      LE Set Scan Parameters (0x08|0x000b) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2                                                                                                                                      [hci0] 9.321365
        Scanning: Enabled (0x01)
        Filter duplicates: Enabled (0x01)
> HCI Event: Command Complete (0x0e) plen 4                                                                                                                                                 [hci0] 9.321925
      LE Set Scan Enable (0x08|0x000c) ncmd 1
        Status: Success (0x00)
> HCI Event: LE Meta Event (0x3e) plen 23                                                                                                                                                   [hci0] 9.325940
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Public (0x00)
        Address: 3C:15:C2:DB:A1:39 (Apple, Inc.)
        Data length: 11
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        Company: Apple, Inc. (76)
          Type: Unknown (16)
          Data: 0b00
        RSSI: -55 dBm (0xc9)
> HCI Event: LE Meta Event (0x3e) plen 39                                                                                                                                                   [hci0] 9.339193
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: D7:D6:4D:30:3A:98 (Static)
        Data length: 27
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        Company: Apple, Inc. (76)
          Type: Unknown (6)
        00 51 05 a8 ec 13 91 07 00 11 00 01 02           .Q...........   
        Name (short): Eve
        RSSI: -61 dBm (0xc3)
> HCI Event: LE Meta Event (0x3e) plen 43                                                                                                                                                   [hci0] 9.343903
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: E6:5F:27:5B:7E:B5 (Static)
        Data length: 31
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        Company: Apple, Inc. (76)
          Type: Unknown (6)
        00 bd 8d 32 46 13 71 07 00 0c 00 01 02 03 03 f8  ...2F.q.........
        76                                               v               
        Name (short): Eve
        RSSI: -75 dBm (0xb5)
> HCI Event: LE Meta Event (0x3e) plen 27                                                                                                                                                   [hci0] 9.351739
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Non connectable undirected - ADV_NONCONN_IND (0x03)
        Address type: Random (0x01)
        Address: 37:16:9E:56:DB:39 (Non-Resolvable)
        Data length: 15
        Flags: 0x1b
          LE Limited Discoverable Mode
          LE General Discoverable Mode
          Simultaneous LE and BR/EDR (Controller)
          Simultaneous LE and BR/EDR (Host)
        Company: Apple, Inc. (76)
          Type: Apple TV (9)
          Data: 0307c0a8243c
        RSSI: -57 dBm (0xc7)
> HCI Event: LE Meta Event (0x3e) plen 26                                                                                                                                                   [hci0] 9.381704
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Public (0x00)
        Address: 04:4B:ED:A1:14:2E (Apple, Inc.)
        Data length: 14
        Flags: 0x1a
          LE General Discoverable Mode
          Simultaneous LE and BR/EDR (Controller)
          Simultaneous LE and BR/EDR (Host)
        Company: Apple, Inc. (76)
          Type: Unknown (16)
          Data: 0110829024
        RSSI: -71 dBm (0xb9)
> HCI Event: LE Meta Event (0x3e) plen 12                                                                                                                                                   [hci0] 9.383913
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Scan response - SCAN_RSP (0x04)
        Address type: Public (0x00)
        Address: 04:4B:ED:A1:14:2E (Apple, Inc.)
        Data length: 0
        RSSI: -71 dBm (0xb9)
> HCI Event: LE Meta Event (0x3e) plen 43                                                                                                                                                   [hci0] 9.396495
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: D4:85:71:A1:4C:C4 (Static)
        Data length: 31
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        Company: Apple, Inc. (76)
          Type: Unknown (6)
        00 59 b9 8e 80 80 23 0a 00 30 00 03 02 92 24 8b  .Y....#..0....$.
        da                                               .               
        Name (short): Eve
        RSSI: -90 dBm (0xa6)
> HCI Event: LE Meta Event (0x3e) plen 27                                                                                                                                                   [hci0] 9.397392
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Scan response - SCAN_RSP (0x04)
        Address type: Random (0x01)
        Address: D4:85:71:A1:4C:C4 (Static)
        Data length: 15
        Name (complete): Eve Door 4CAB
        RSSI: -89 dBm (0xa7)
> HCI Event: LE Meta Event (0x3e) plen 43                                                                                                                                                   [hci0] 9.497099
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: DB:58:CF:FC:4D:24 (Static)
        Data length: 31
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        Company: Apple, Inc. (76)
          Type: Unknown (6)
        00 ce 88 0c 7e f0 fd 0a 00 01 00 03 02 44 e7 bc  ....~........D..
        44                                               D               
        Name (short): Eve
        RSSI: -68 dBm (0xbc)
> HCI Event: LE Meta Event (0x3e) plen 35                                                                                                                                                   [hci0] 9.500541
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: 7C:F5:9E:F5:5B:D2 (Resolvable)
        Data length: 23
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        Company: Apple, Inc. (76)
          Type: Unknown (12)
          Data: 00c68205a346da4b779872d41ec7
        RSSI: -66 dBm (0xbe)
> HCI Event: LE Meta Event (0x3e) plen 39                                                                                                                                                   [hci0] 9.502088
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: D4:36:47:DF:8C:25 (Static)
        Data length: 27
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        Company: Apple, Inc. (76)
          Type: Unknown (6)
        00 a0 ac 44 30 de 0d 09 00 d5 07 02 02           ...D0........   
        Name (short): Eve
        RSSI: -60 dBm (0xc4)
> HCI Event: LE Meta Event (0x3e) plen 26                                                                                                                                                   [hci0] 9.582860
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: 61:7F:D6:14:68:B5 (Resolvable)
        Data length: 14
        Flags: 0x1a
          LE General Discoverable Mode
          Simultaneous LE and BR/EDR (Controller)
          Simultaneous LE and BR/EDR (Host)
        Company: Apple, Inc. (76)
          Type: Unknown (16)
          Data: 0a103e0114
        RSSI: -60 dBm (0xc4)
> HCI Event: LE Meta Event (0x3e) plen 26                                                                                                                                                   [hci0] 9.616583
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: 58:AA:59:6B:35:FB (Resolvable)
        Data length: 14
        Flags: 0x1a
          LE General Discoverable Mode
          Simultaneous LE and BR/EDR (Controller)
          Simultaneous LE and BR/EDR (Host)
        Company: Apple, Inc. (76)
          Type: Unknown (16)
          Data: 0190606994
        RSSI: -82 dBm (0xae)
> HCI Event: LE Meta Event (0x3e) plen 12                                                                                                                                                   [hci0] 9.618173
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Scan response - SCAN_RSP (0x04)
        Address type: Random (0x01)
        Address: 58:AA:59:6B:35:FB (Resolvable)
        Data length: 0
        RSSI: -83 dBm (0xad)
> HCI Event: LE Meta Event (0x3e) plen 29                                                                                                                                                   [hci0] 9.643788
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Scan response - SCAN_RSP (0x04)
        Address type: Random (0x01)
        Address: D7:D6:4D:30:3A:98 (Static)
        Data length: 17
        Name (complete): Eve Energy A095
        RSSI: -76 dBm (0xb4)
> HCI Event: LE Meta Event (0x3e) plen 43                                                                                                                                                   [hci0] 9.727111
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: FD:BB:CE:F8:A0:8F (Static)
        Data length: 31
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        Company: Apple, Inc. (76)
          Type: Unknown (6)
        00 bc 77 cb d8 ab f9 0a 00 51 03 02 02 70 da a3  ..w......Q...p..
        f5                                               .               
        Name (short): Eve
        RSSI: -66 dBm (0xbe)
> HCI Event: LE Meta Event (0x3e) plen 43                                                                                                                                                   [hci0] 9.732678
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: E6:BA:00:A1:B8:2E (Static)
        Data length: 31
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        Company: Apple, Inc. (76)
          Type: Unknown (6)
        00 2c 2b 6d 35 60 cb 0a 00 58 01 02 02 68 24 f7  .,+m5`...X...h$.
        e7                                               .               
        Name (short): Eve
        RSSI: -46 dBm (0xd2)
> HCI Event: LE Meta Event (0x3e) plen 43                                                                                                                                                   [hci0] 9.781503
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: C6:09:BB:2A:E3:2E (Static)
        Data length: 31
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        Company: Apple, Inc. (76)
          Type: Unknown (6)
        00 a9 9f db 55 1d 4f 0a 00 d1 01 02 02 97 9b 17  ....U.O.........
        b6                                               .               
        Name (short): Eve
        RSSI: -68 dBm (0xbc)
> HCI Event: LE Meta Event (0x3e) plen 27                                                                                                                                                   [hci0] 9.782382
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Scan response - SCAN_RSP (0x04)
        Address type: Random (0x01)
        Address: C6:09:BB:2A:E3:2E (Static)
        Data length: 15
        Name (complete): Eve Door 35DD
        RSSI: -69 dBm (0xbb)
> HCI Event: LE Meta Event (0x3e) plen 39                                                                                                                                                   [hci0] 9.816904
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: CA:8D:75:80:E2:6C (Static)
        Data length: 27
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        Company: Apple, Inc. (76)
          Type: Unknown (6)
        00 dc 40 26 7f fb 21 09 00 81 08 02 02           ..@&..!......   
        Name (short): Eve
        RSSI: -51 dBm (0xcd)
> HCI Event: LE Meta Event (0x3e) plen 43                                                                                                                                                   [hci0] 9.820738
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: C3:71:5B:30:23:2B (Static)
        Data length: 31
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        Company: Apple, Inc. (76)
          Type: Unknown (6)
        00 97 07 5f 7c 12 ef 0f 00 0a 00 01 02 bf 2e a6  ..._|...........
        a9                                               .               
        Name (short): Eve
        RSSI: -57 dBm (0xc7)
> HCI Event: LE Meta Event (0x3e) plen 12                                                                                                                                                   [hci0] 9.857418
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Scan response - SCAN_RSP (0x04)
        Address type: Random (0x01)
        Address: 61:7F:D6:14:68:B5 (Resolvable)
        Data length: 0
        RSSI: -72 dBm (0xb8)
> HCI Event: LE Meta Event (0x3e) plen 12                                                                                                                                                   [hci0] 9.868035
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Scan response - SCAN_RSP (0x04)
        Address type: Random (0x01)
        Address: 7C:F5:9E:F5:5B:D2 (Resolvable)
        Data length: 0
        RSSI: -71 dBm (0xb9)
> HCI Event: LE Meta Event (0x3e) plen 43                                                                                                                                                   [hci0] 9.949631
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: E6:40:5F:78:61:00 (Static)
        Data length: 31
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        Company: Apple, Inc. (76)
          Type: Unknown (6)
        00 6b 19 57 b3 e3 c7 0a 00 37 00 03 02 ba db 00  .k.W.....7......
        dd                                               .               
        Name (short): Eve
        RSSI: -66 dBm (0xbe)
> HCI Event: LE Meta Event (0x3e) plen 39                                                                                                                                                   [hci0] 9.988341
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: D4:8B:A3:C0:41:0A (Static)
        Data length: 27
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        Company: Apple, Inc. (76)
          Type: Unknown (6)
        00 31 df 1c bc 87 f3 09 00 e6 0a 02 02           .1...........   
        Name (short): Eve
        RSSI: -68 dBm (0xbc)
> HCI Event: LE Meta Event (0x3e) plen 29                                                                                                                                                   [hci0] 9.989192
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Scan response - SCAN_RSP (0x04)
        Address type: Random (0x01)
        Address: D4:8B:A3:C0:41:0A (Static)
        Data length: 17
        Name (complete): Eve Thermo DE0A
        RSSI: -69 dBm (0xbb)
> HCI Event: LE Meta Event (0x3e) plen 39                                                                                                                                                   [hci0] 9.993508
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: DA:ED:D0:EA:7D:10 (Static)
        Data length: 27
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        Company: Apple, Inc. (76)
          Type: Unknown (6)
        00 d1 53 aa 0b 93 84 09 00 7a 05 02 02           ..S......z...   
        Name (short): Eve
        RSSI: -63 dBm (0xc1)
> HCI Event: LE Meta Event (0x3e) plen 29                                                                                                                                                   [hci0] 9.994413
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Scan response - SCAN_RSP (0x04)
        Address type: Random (0x01)
        Address: DA:ED:D0:EA:7D:10 (Static)
        Data length: 17
        Name (complete): Eve Thermo 78AD
        RSSI: -64 dBm (0xc0)
> HCI Event: LE Meta Event (0x3e) plen 26                                                                                                                                                  [hci0] 10.061869
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: E2:9D:DE:B3:5D:E0 (Static)
        Data length: 14
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        16-bit Service UUIDs (partial): 1 entry
          Nest Labs Inc. (0xfeaf)
        Name (complete): N02RC
        RSSI: -51 dBm (0xcd)
> HCI Event: LE Meta Event (0x3e) plen 39                                                                                                                                                  [hci0] 10.102699
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: D9:C6:40:52:D7:A6 (Static)
        Data length: 27
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        Company: Apple, Inc. (76)
          Type: Unknown (6)
        00 ba ca 88 20 b1 c2 09 00 78 10 02 02           .... ....x...   
        Name (short): Eve
        RSSI: -71 dBm (0xb9)
> HCI Event: LE Meta Event (0x3e) plen 26                                                                                                                                                  [hci0] 10.151905
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: DE:A0:06:07:4B:F2 (Static)
        Data length: 14
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        16-bit Service UUIDs (partial): 1 entry
          Nest Labs Inc. (0xfeaf)
        Name (complete): N02TW
        RSSI: -87 dBm (0xa9)
> HCI Event: LE Meta Event (0x3e) plen 33                                                                                                                                                  [hci0] 10.153415
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Scan response - SCAN_RSP (0x04)
        Address type: Random (0x01)
        Address: DE:A0:06:07:4B:F2 (Static)
        Data length: 21
        Service Data (UUID 0xfeaf): 100100025a2309009a19a2000030b41800
        RSSI: -86 dBm (0xaa)
> HCI Event: LE Meta Event (0x3e) plen 43                                                                                                                                                  [hci0] 10.299535
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: CA:8A:12:76:83:8F (Static)
        Data length: 31
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        Company: Apple, Inc. (76)
          Type: Unknown (6)
        00 90 33 b7 7e b1 31 0a 00 02 00 03 02 9f a0 3e  ..3.~.1........>
        d0                                               .               
        Name (short): Eve
        RSSI: -73 dBm (0xb7)
> HCI Event: LE Meta Event (0x3e) plen 27                                                                                                                                                  [hci0] 10.300397
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Scan response - SCAN_RSP (0x04)
        Address type: Random (0x01)
        Address: CA:8A:12:76:83:8F (Static)
        Data length: 15
        Name (complete): Eve Door 2033
        RSSI: -73 dBm (0xb7)
> HCI Event: LE Meta Event (0x3e) plen 40                                                                                                                                                  [hci0] 10.391887
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Public (0x00)
        Address: A0:14:3D:08:7C:F3 (PARROT SA)
        Data length: 28
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        128-bit Service UUIDs (partial): 1 entry
          Vendor specific (39e1fa00-84a8-11e2-afba-0002a5d5c51b)
        Company: PARROT SA (67)
          Data: 016101
        RSSI: -71 dBm (0xb9)
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2                                                                                                                                     [hci0] 10.419921
        Scanning: Disabled (0x00)
        Filter duplicates: Enabled (0x01)
> HCI Event: Command Complete (0x0e) plen 4                                                                                                                                                [hci0] 10.422433
      LE Set Scan Enable (0x08|0x000c) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Create Connection (0x08|0x000d) plen 25                                                                                                                                  [hci0] 10.493531
        Scan interval: 60.000 msec (0x0060)
        Scan window: 30.000 msec (0x0030)
        Filter policy: White list is not used (0x00)
        Peer address type: Public (0x00)
        Peer address: A0:14:3D:08:7C:F3 (PARROT SA)
        Own address type: Public (0x00)
        Min connection interval: 7.50 msec (0x0006)
        Max connection interval: 15.00 msec (0x000c)
        Connection latency: 0x0000
        Supervision timeout: 2000 msec (0x00c8)
        Min connection length: 2.500 msec (0x0004)
        Max connection length: 3.750 msec (0x0006)
> HCI Event: Command Status (0x0f) plen 4                                                                                                                                                  [hci0] 10.496250
      LE Create Connection (0x08|0x000d) ncmd 1
        Status: Success (0x00)
> HCI Event: LE Meta Event (0x3e) plen 19                                                                                                                                                  [hci0] 12.393682
      LE Connection Complete (0x01)
        Status: Success (0x00)
        Handle: 64
        Role: Master (0x00)
        Peer address type: Public (0x00)
        Peer address: A0:14:3D:08:7C:F3 (PARROT SA)
        Connection interval: 15.00 msec (0x000c)
        Connection latency: 0.00 msec (0x0000)
        Supervision timeout: 2000 msec (0x00c8)
        Master clock accuracy: 0x00
@ MGMT Event: Device Connected (0x000b) plen 13                                                                                                                                   {0x0002} [hci0] 12.393815
        LE Address: A0:14:3D:08:7C:F3 (PARROT SA)
        Flags: 0x00000000
        Data length: 0
@ MGMT Event: Device Connected (0x000b) plen 13                                                                                                                                   {0x0001} [hci0] 12.393815
        LE Address: A0:14:3D:08:7C:F3 (PARROT SA)
        Flags: 0x00000000
        Data length: 0
< HCI Command: LE Read Remote Used Features (0x08|0x0016) plen 2                                                                                                                           [hci0] 12.394290
        Handle: 64
> HCI Event: Command Status (0x0f) plen 4                                                                                                                                                  [hci0] 12.405365
      LE Read Remote Used Features (0x08|0x0016) ncmd 1
        Status: Success (0x00)
> HCI Event: LE Meta Event (0x3e) plen 12                                                                                                                                                  [hci0] 12.453155
      LE Read Remote Used Features (0x04)
        Status: Success (0x00)
        Handle: 64
        Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
          LE Encryption
< ACL Data TX: Handle 64 flags 0x00 dlen 7                                                                                                                                                 [hci0] 12.493084
      ATT: Exchange MTU Request (0x02) len 2
        Client RX MTU: 256
> ACL Data RX: Handle 64 flags 0x02 dlen 7                                                                                                                                                 [hci0] 12.513080
      ATT: Exchange MTU Response (0x03) len 2
        Server RX MTU: 23
< ACL Data TX: Handle 64 flags 0x00 dlen 7                                                                                                                                                 [hci0] 12.524750
      ATT: Exchange MTU Request (0x02) len 2
        Client RX MTU: 256
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                                     [hci0] 12.528182
        Num handles: 1
        Handle: 64
        Count: 2
< ACL Data TX: Handle 64 flags 0x00 dlen 7                                                                                                                                                 [hci0] 12.532170
      ATT: Exchange MTU Request (0x02) len 2
        Client RX MTU: 256
< ACL Data TX: Handle 64 flags 0x00 dlen 7                                                                                                                                                 [hci0] 12.538933
      ATT: Exchange MTU Request (0x02) len 2
        Client RX MTU: 256
> ACL Data RX: Handle 64 flags 0x02 dlen 7                                                                                                                                                 [hci0] 12.543100
      ATT: Exchange MTU Response (0x03) len 2
        Server RX MTU: 23
> HCI Event: Number of Completed Packets (0x13) plen 5                                                                                                                                     [hci0] 12.544485
        Num handles: 1
        Handle: 64
        Count: 2
> ACL Data RX: Handle 64 flags 0x02 dlen 7                                                                                                                                                 [hci0] 12.558021
      ATT: Exchange MTU Response (0x03) len 2
        Server RX MTU: 23
> ACL Data RX: Handle 64 flags 0x02 dlen 7                                                                                                                                                 [hci0] 12.559216
      ATT: Exchange MTU Response (0x03) len 2
        Server RX MTU: 23
> HCI Event: Disconnect Complete (0x05) plen 4                                                                                                                                             [hci0] 22.653672
        Status: Success (0x00)
        Handle: 64
        Reason: Remote User Terminated Connection (0x13)
@ MGMT Event: Device Disconnected (0x000c) plen 8                                                                                                                                 {0x0002} [hci0] 22.653786
        LE Address: A0:14:3D:08:7C:F3 (PARROT SA)
        Reason: Connection terminated by remote host (0x03)
@ MGMT Event: Device Disconnected (0x000c) plen 8                                                                                                                                 {0x0001} [hci0] 22.653786
        LE Address: A0:14:3D:08:7C:F3 (PARROT SA)
        Reason: Connection terminated by remote host (0x03)
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2                                                                                                                                     [hci0] 22.711686
        Scanning: Disabled (0x00)
        Filter duplicates: Enabled (0x01)
> HCI Event: Command Complete (0x0e) plen 4                                                                                                                                                [hci0] 22.712887
      LE Set Scan Enable (0x08|0x000c) ncmd 1
        Status: Command Disallowed (0x0c)
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2                                                                                                                                     [hci0] 22.715652
        Scanning: Disabled (0x00)
        Filter duplicates: Enabled (0x01)
> HCI Event: Command Complete (0x0e) plen 4                                                                                                                                                [hci0] 22.716287
      LE Set Scan Enable (0x08|0x000c) ncmd 1
        Status: Command Disallowed (0x0c)
@ RAW Close: node                                                                                                                                                                 {0x0003} [hci0] 22.736151

@grover
Copy link
Author

grover commented Feb 24, 2018

Additional information:

hcidump -t -x:

HCI sniffer - Bluetooth packet analyzer ver 5.48
device: hci0 snap_len: 1500 filter: 0xffffffff
2018-02-24 23:52:36.468977 < HCI Command: Set Event Mask (0x03|0x0001) plen 8
    Mask: 0xfffffbff07f8bf3d
2018-02-24 23:52:36.470587 > HCI Event: Command Complete (0x0e) plen 4
    Set Event Mask (0x03|0x0001) ncmd 1
    status 0x00
2018-02-24 23:52:36.473577 < HCI Command: LE Set Event Mask (0x08|0x0001) plen 8
    mask 0x1f00000000000000 (Reserved)
2018-02-24 23:52:36.474263 > HCI Event: Command Complete (0x0e) plen 4
    LE Set Event Mask (0x08|0x0001) ncmd 1
    status 0x00
2018-02-24 23:52:36.477597 < HCI Command: Read Local Version Information (0x04|0x0001) plen 0
2018-02-24 23:52:36.478455 > HCI Event: Command Complete (0x0e) plen 12
    Read Local Version Information (0x04|0x0001) ncmd 1
    status 0x00
    HCI Version: 4.1 (0x7) HCI Revision: 0x0
    LMP Version: 4.1 (0x7) LMP Subversion: 0x2209
    Manufacturer: Broadcom Corporation (15)
2018-02-24 23:52:36.481563 < HCI Command: Write LE Host Supported (0x03|0x006d) plen 2
  01 00 
2018-02-24 23:52:36.482445 > HCI Event: Command Complete (0x0e) plen 4
    Write LE Host Supported (0x03|0x006d) ncmd 1
    00 
2018-02-24 23:52:36.485298 < HCI Command: Read LE Host Supported (0x03|0x006c) plen 0
2018-02-24 23:52:36.486147 > HCI Event: Command Complete (0x0e) plen 6
    Read LE Host Supported (0x03|0x006c) ncmd 1
    00 01 00 
2018-02-24 23:52:36.488901 < HCI Command: Read BD ADDR (0x04|0x0009) plen 0
2018-02-24 23:52:36.489753 > HCI Event: Command Complete (0x0e) plen 10
    Read BD ADDR (0x04|0x0009) ncmd 1
    status 0x00 bdaddr B8:27:EB:19:04:19
2018-02-24 23:52:36.544672 < HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2
    value 0x00 (scanning disabled)
    filter duplicates 0x01 (enabled)
2018-02-24 23:52:36.545592 > HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Enable (0x08|0x000c) ncmd 1
    status 0x0c
    Error: Command Disallowed
2018-02-24 23:52:36.548683 < HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7
    type 0x01 (active)
    interval 10.000ms window 10.000ms
    own address: 0x00 (Public) policy: All
2018-02-24 23:52:36.549575 > HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Parameters (0x08|0x000b) ncmd 1
    status 0x00
2018-02-24 23:52:36.552760 < HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2
    value 0x00 (scanning disabled)
    filter duplicates 0x01 (enabled)
2018-02-24 23:52:36.553670 > HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Enable (0x08|0x000c) ncmd 1
    status 0x0c
    Error: Command Disallowed
2018-02-24 23:52:36.555773 < HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7
    type 0x01 (active)
    interval 10.000ms window 10.000ms
    own address: 0x00 (Public) policy: All
2018-02-24 23:52:36.556790 > HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Parameters (0x08|0x000b) ncmd 1
    status 0x00
2018-02-24 23:52:36.580760 < HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2
    value 0x00 (scanning disabled)
    filter duplicates 0x01 (enabled)
2018-02-24 23:52:36.581676 > HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Enable (0x08|0x000c) ncmd 1
    status 0x0c
    Error: Command Disallowed
2018-02-24 23:52:36.583364 < HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7
    type 0x01 (active)
    interval 10.000ms window 10.000ms
    own address: 0x00 (Public) policy: All
2018-02-24 23:52:36.583877 > HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Parameters (0x08|0x000b) ncmd 1
    status 0x00
2018-02-24 23:52:36.586842 < HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2
    value 0x01 (scanning enabled)
    filter duplicates 0x01 (enabled)
2018-02-24 23:52:36.587285 > HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Enable (0x08|0x000c) ncmd 1
    status 0x00
2018-02-24 23:52:36.731063 > HCI Event: LE Meta Event (0x3e) plen 27
    LE Advertising Report
      ADV_NONCONN_IND - Non connectable undirected advertising (3)
      bdaddr 37:16:9E:56:DB:39 (Random)
      Flags: 0x1b
      Unknown type 0xff with 10 bytes data
      RSSI: -58
2018-02-24 23:52:36.764111 > HCI Event: LE Meta Event (0x3e) plen 43
    LE Advertising Report
      ADV_IND - Connectable undirected advertising (0)
      bdaddr E6:5F:27:5B:7E:B5 (Random)
      Flags: 0x06
      Unknown type 0xff with 21 bytes data
      Shortened local name: 'Eve'
      RSSI: -58
2018-02-24 23:52:36.764803 > HCI Event: LE Meta Event (0x3e) plen 29
    LE Advertising Report
      SCAN_RSP - Scan Response (4)
      bdaddr E6:5F:27:5B:7E:B5 (Random)
      Complete local name: 'Eve Energy 7443'
      RSSI: -58
2018-02-24 23:52:36.769783 > HCI Event: LE Meta Event (0x3e) plen 43
    LE Advertising Report
      ADV_IND - Connectable undirected advertising (0)
      bdaddr E6:BA:00:A1:B8:2E (Random)
      Flags: 0x06
      Unknown type 0xff with 21 bytes data
      Shortened local name: 'Eve'
      RSSI: -46
2018-02-24 23:52:36.792205 > HCI Event: LE Meta Event (0x3e) plen 39
    LE Advertising Report
      ADV_IND - Connectable undirected advertising (0)
      bdaddr D7:D6:4D:30:3A:98 (Random)
      Flags: 0x06
      Unknown type 0xff with 17 bytes data
      Shortened local name: 'Eve'
      RSSI: -52
2018-02-24 23:52:36.804191 > HCI Event: LE Meta Event (0x3e) plen 26
    LE Advertising Report
      ADV_IND - Connectable undirected advertising (0)
      bdaddr 04:4B:ED:A1:14:2E (Public)
      Flags: 0x1a
      Unknown type 0xff with 9 bytes data
      RSSI: -71
2018-02-24 23:52:36.805457 > HCI Event: LE Meta Event (0x3e) plen 12
    LE Advertising Report
      SCAN_RSP - Scan Response (4)
      bdaddr 04:4B:ED:A1:14:2E (Public)
      RSSI: -71
2018-02-24 23:52:36.844604 > HCI Event: LE Meta Event (0x3e) plen 43
    LE Advertising Report
      ADV_IND - Connectable undirected advertising (0)
      bdaddr C3:71:5B:30:23:2B (Random)
      Flags: 0x06
      Unknown type 0xff with 21 bytes data
      Shortened local name: 'Eve'
      RSSI: -58
2018-02-24 23:52:36.845704 > HCI Event: LE Meta Event (0x3e) plen 29
    LE Advertising Report
      SCAN_RSP - Scan Response (4)
      bdaddr C3:71:5B:30:23:2B (Random)
      Complete local name: 'Eve Button 2CF7'
      RSSI: -58
2018-02-24 23:52:36.901628 > HCI Event: LE Meta Event (0x3e) plen 23
    LE Advertising Report
      ADV_IND - Connectable undirected advertising (0)
      bdaddr 7C:F5:9E:F5:5B:D2 (Random)
      Flags: 0x06
      Unknown type 0xff with 6 bytes data
      RSSI: -62
2018-02-24 23:52:36.915336 > HCI Event: LE Meta Event (0x3e) plen 43
    LE Advertising Report
      ADV_IND - Connectable undirected advertising (0)
      bdaddr C4:3F:00:EC:D2:79 (Random)
      Flags: 0x06
      Unknown type 0xff with 21 bytes data
      Shortened local name: 'Eve'
      RSSI: -57
2018-02-24 23:52:36.916434 > HCI Event: LE Meta Event (0x3e) plen 27
    LE Advertising Report
      SCAN_RSP - Scan Response (4)
      bdaddr C4:3F:00:EC:D2:79 (Random)
      Complete local name: 'Eve Door F9DA'
      RSSI: -57
2018-02-24 23:52:37.002059 > HCI Event: LE Meta Event (0x3e) plen 43
    LE Advertising Report
      ADV_IND - Connectable undirected advertising (0)
      bdaddr FD:BB:CE:F8:A0:8F (Random)
      Flags: 0x06
      Unknown type 0xff with 21 bytes data
      Shortened local name: 'Eve'
      RSSI: -71
2018-02-24 23:52:37.019940 > HCI Event: LE Meta Event (0x3e) plen 26
    LE Advertising Report
      ADV_IND - Connectable undirected advertising (0)
      bdaddr D5:A4:53:A1:69:8B (Random)
      Flags: 0x06
      Shortened service classes: 0xfeaf
      Complete local name: 'N00XZ'
      RSSI: -66
2018-02-24 23:52:37.021194 > HCI Event: LE Meta Event (0x3e) plen 33
    LE Advertising Report
      SCAN_RSP - Scan Response (4)
      bdaddr D5:A4:53:A1:69:8B (Random)
      Unknown type 0x16 with 19 bytes data
      RSSI: -66
2018-02-24 23:52:37.039547 > HCI Event: LE Meta Event (0x3e) plen 39
    LE Advertising Report
      ADV_IND - Connectable undirected advertising (0)
      bdaddr DA:ED:D0:EA:7D:10 (Random)
      Flags: 0x06
      Unknown type 0xff with 17 bytes data
      Shortened local name: 'Eve'
      RSSI: -55
2018-02-24 23:52:37.040633 > HCI Event: LE Meta Event (0x3e) plen 29
    LE Advertising Report
      SCAN_RSP - Scan Response (4)
      bdaddr DA:ED:D0:EA:7D:10 (Random)
      Complete local name: 'Eve Thermo 78AD'
      RSSI: -55
2018-02-24 23:52:37.092941 > HCI Event: LE Meta Event (0x3e) plen 29
    LE Advertising Report
      SCAN_RSP - Scan Response (4)
      bdaddr D7:D6:4D:30:3A:98 (Random)
      Complete local name: 'Eve Energy A095'
      RSSI: -52
2018-02-24 23:52:37.117345 > HCI Event: LE Meta Event (0x3e) plen 39
    LE Advertising Report
      ADV_IND - Connectable undirected advertising (0)
      bdaddr CA:8D:75:80:E2:6C (Random)
      Flags: 0x06
      Unknown type 0xff with 17 bytes data
      Shortened local name: 'Eve'
      RSSI: -58
2018-02-24 23:52:37.118422 > HCI Event: LE Meta Event (0x3e) plen 29
    LE Advertising Report
      SCAN_RSP - Scan Response (4)
      bdaddr CA:8D:75:80:E2:6C (Random)
      Complete local name: 'Eve Thermo D758'
      RSSI: -58
2018-02-24 23:52:37.133106 > HCI Event: LE Meta Event (0x3e) plen 26
    LE Advertising Report
      ADV_IND - Connectable undirected advertising (0)
      bdaddr DE:A0:06:07:4B:F2 (Random)
      Flags: 0x06
      Shortened service classes: 0xfeaf
      Complete local name: 'N02TW'
      RSSI: -82
2018-02-24 23:52:37.194629 > HCI Event: LE Meta Event (0x3e) plen 39
    LE Advertising Report
      ADV_IND - Connectable undirected advertising (0)
      bdaddr EB:4D:B9:A5:03:9F (Random)
      Flags: 0x06
      Unknown type 0xff with 17 bytes data
      Shortened local name: 'Eve'
      RSSI: -67
2018-02-24 23:52:37.195708 > HCI Event: LE Meta Event (0x3e) plen 29
    LE Advertising Report
      SCAN_RSP - Scan Response (4)
      bdaddr EB:4D:B9:A5:03:9F (Random)
      Complete local name: 'Eve Thermo F75D'
      RSSI: -67
2018-02-24 23:52:37.230896 > HCI Event: LE Meta Event (0x3e) plen 39
    LE Advertising Report
      ADV_IND - Connectable undirected advertising (0)
      bdaddr C9:2C:E9:70:0E:94 (Random)
      Flags: 0x06
      Unknown type 0xff with 17 bytes data
      Shortened local name: 'Eve'
      RSSI: -80
2018-02-24 23:52:37.274602 > HCI Event: LE Meta Event (0x3e) plen 12
    LE Advertising Report
      SCAN_RSP - Scan Response (4)
      bdaddr 7C:F5:9E:F5:5B:D2 (Random)
      RSSI: -62
2018-02-24 23:52:37.305007 > HCI Event: LE Meta Event (0x3e) plen 40
    LE Advertising Report
      ADV_IND - Connectable undirected advertising (0)
      bdaddr A0:14:3D:08:7C:F3 (Public)
      Flags: 0x06
      Unknown type 0x06 with 16 bytes data
      Unknown type 0xff with 5 bytes data
      RSSI: -65
2018-02-24 23:52:37.310560 > HCI Event: LE Meta Event (0x3e) plen 39
    LE Advertising Report
      ADV_IND - Connectable undirected advertising (0)
      bdaddr D4:36:47:DF:8C:25 (Random)
      Flags: 0x06
      Unknown type 0xff with 17 bytes data
      Shortened local name: 'Eve'
      RSSI: -51
2018-02-24 23:52:37.311755 > HCI Event: LE Meta Event (0x3e) plen 29
    LE Advertising Report
      SCAN_RSP - Scan Response (4)
      bdaddr D4:36:47:DF:8C:25 (Random)
      Complete local name: 'Eve Thermo 2007'
      RSSI: -51
2018-02-24 23:52:37.333228 < HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2
    value 0x00 (scanning disabled)
    filter duplicates 0x01 (enabled)
2018-02-24 23:52:37.335752 > HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Enable (0x08|0x000c) ncmd 1
    status 0x00
2018-02-24 23:52:37.471273 < HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7
    type 0x00 (passive)
    interval 60.000ms window 30.000ms
    own address: 0x00 (Public) policy: white list only
2018-02-24 23:52:37.472272 > HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Parameters (0x08|0x000b) ncmd 1
    status 0x00
2018-02-24 23:52:37.472364 < HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2
    value 0x01 (scanning enabled)
    filter duplicates 0x01 (enabled)
2018-02-24 23:52:37.473005 > HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Enable (0x08|0x000c) ncmd 1
    status 0x00
2018-02-24 23:52:43.322291 > HCI Event: LE Meta Event (0x3e) plen 40
    LE Advertising Report
      ADV_IND - Connectable undirected advertising (0)
      bdaddr A0:14:3D:08:7C:F3 (Public)
      Flags: 0x06
      Unknown type 0x06 with 16 bytes data
      Unknown type 0xff with 5 bytes data
      RSSI: -69
2018-02-24 23:52:43.322426 < HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2
    value 0x00 (scanning disabled)
    filter duplicates 0x00 (disabled)
2018-02-24 23:52:43.325701 > HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Enable (0x08|0x000c) ncmd 1
    status 0x00
2018-02-24 23:52:43.325824 < HCI Command: LE Create Connection (0x08|0x000d) plen 25
    bdaddr A0:14:3D:08:7C:F3 type 0
    interval 96 window 96 initiator_filter 0
    own_bdaddr_type 0 min_interval 40 max_interval 56
    latency 0 supervision_to 42 min_ce 0 max_ce 0
2018-02-24 23:52:43.326556 > HCI Event: Command Status (0x0f) plen 4
    LE Create Connection (0x08|0x000d) status 0x00 ncmd 1
2018-02-24 23:52:45.330166 > HCI Event: LE Meta Event (0x3e) plen 19
    LE Connection Complete
      status 0x00 handle 64, role master
      bdaddr A0:14:3D:08:7C:F3 (Public)
2018-02-24 23:52:45.330658 < HCI Command: LE Read Remote Used Features (0x08|0x0016) plen 2
  40 00 
2018-02-24 23:52:45.339853 > HCI Event: Command Status (0x0f) plen 4
    LE Read Remote Used Features (0x08|0x0016) status 0x00 ncmd 1
2018-02-24 23:52:45.756443 > HCI Event: LE Meta Event (0x3e) plen 12
    LE Read Remote Used Features Complete
      status 0x3e handle 64
      Error: Connection Failed to be Established
2018-02-24 23:52:45.756620 < HCI Command: Disconnect (0x01|0x0006) plen 3
    handle 64 reason 0x13
    Reason: Remote User Terminated Connection
2018-02-24 23:52:45.765261 > HCI Event: Disconn Complete (0x05) plen 4
    status 0x00 handle 64 reason 0x3e
    Reason: Connection Failed to be Established
2018-02-24 23:52:45.767555 > HCI Event: Command Status (0x0f) plen 4
    Disconnect (0x01|0x0006) status 0x12 ncmd 1
    Error: Invalid HCI Command Parameters
2018-02-24 23:52:45.873041 < ACL data: handle 64 flags 0x00 dlen 7
    ATT: MTU req (0x02)
      client rx mtu 256
2018-02-24 23:52:45.899653 < ACL data: handle 64 flags 0x00 dlen 7
    ATT: MTU req (0x02)
      client rx mtu 256
2018-02-24 23:52:45.905562 < ACL data: handle 64 flags 0x00 dlen 7
    ATT: MTU req (0x02)
      client rx mtu 256
2018-02-24 23:52:45.909182 < ACL data: handle 64 flags 0x00 dlen 7
    ATT: MTU req (0x02)
      client rx mtu 256
2018-02-24 23:52:45.932842 < HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2
    value 0x00 (scanning disabled)
    filter duplicates 0x01 (enabled)
2018-02-24 23:52:45.934156 > HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Enable (0x08|0x000c) ncmd 1
    status 0x0c
    Error: Command Disallowed
2018-02-24 23:52:45.936480 < HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2
    value 0x00 (scanning disabled)
    filter duplicates 0x01 (enabled)
2018-02-24 23:52:45.937387 > HCI Event: Command Complete (0x0e) plen 4
    LE Set Scan Enable (0x08|0x000c) ncmd 1
    status 0x0c
    Error: Command Disallowed
2018-02-24 23:52:46.063562 > HCI Event: Number of Completed Packets (0x13) plen 5
    handle 64 packets 4

@capitainabloc
Copy link

Hi, exatly the same, even tried on Debian Jessie and Ubuntu 16 without success.

@grover
Copy link
Author

grover commented Feb 28, 2018

It seems that the issue goes away once an external USB BLE Dongle is used. An additional finding of the log dumps above is that my code suffered from noble/noble#765

@capitainabloc
Copy link

indeed, thanks a lot!
by using npm install [email protected] it's working great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants