50ButtonsEach / fliclib-linux-hci

Flic SDK for Linux
306 stars 54 forks source link

flicd times out on Cambridge Silicon Radio bt adapters on Raspberry Pi 3 #68

Closed blacklight closed 7 years ago

blacklight commented 7 years ago
$ ./bin/armv6l/flicd -f flicd.sqlite3
Available HCI devices found:
hci0

Trying hci0
hci0 is busy, shutting down and retrying...
Successfully bound HCI socket
Flic server is now up and running!
Error: Timeout while initializing HCI, exiting. Try restart the program or replug your Bluetooth controller.
Exited

btmon output:

Bluetooth monitor ver 5.45
= Note: Linux version 4.9.30-1-ARCH (armv7l)                                                     0.105050
= Note: Bluetooth subsystem version 2.22                                                         0.105063
= New Index: 00:15:83:15:A3:10 (Primary,USB,hci0)                                         [hci0] 0.105066
= Open Index: 00:15:83:15:A3:10                                                           [hci0] 0.105069
= Index Info: 00:15:83:15:A3:10 (Cambridge Silicon Radio)                                 [hci0] 0.105072
@ MGMT Open: bluetoothd (privileged) version 1.14                                       {0x0001} 0.105078
@ MGMT Open: btmon (privileged) version 1.14                                            {0x0002} 0.105475
@ RAW Open: flicd (privileged) version 2.22                                             {0x0003} 1.169711
@ RAW Close: flicd                                                                      {0x0003} 1.170364
@ RAW Open: flicd (privileged) version 2.22                                             {0x0003} 1.170644
@ MGMT Event: New Settings (0x0006) plen 4                                       {0x0002} [hci0] 1.170774
        Current settings: 0x00000090
          Bondable
          BR/EDR
@ MGMT Event: New Settings (0x0006) plen 4                                       {0x0001} [hci0] 1.170774
        Current settings: 0x00000090
          Bondable
          BR/EDR
= Close Index: 00:15:83:15:A3:10                                                          [hci0] 1.171058
@ RAW Close: flicd                                                                      {0x0003} 1.171204
@ MGMT Event: Index Removed (0x0005) plen 0                                      {0x0002} [hci0] 1.171359
@ MGMT Event: Index Removed (0x0005) plen 0                                      {0x0001} [hci0] 1.171359
= Open Index: 00:15:83:15:A3:10                                                           [hci0] 1.171571
= Index Info: 00:15:83:15:A3:10 (Cambridge Silicon Radio)                                 [hci0] 1.171585
@ USER Open: flicd (privileged) version 2.22                                     {0x0003} [hci0] 1.171723
< HCI Command: Reset (0x03|0x0003) plen 0                                              #1 [hci0] 1.172042
> HCI Event: Command Complete (0x0e) plen 4                                            #2 [hci0] 1.225257
      Reset (0x03|0x0003) ncmd 1
        Status: Success (0x00)
< HCI Command: Read Local Version Information (0x04|0x0001) plen 0                     #3 [hci0] 1.225544
> HCI Event: Command Complete (0x0e) plen 12                                           #4 [hci0] 1.227247
      Read Local Version Information (0x04|0x0001) ncmd 1
        Status: Success (0x00)
        HCI version: Bluetooth 2.0 (0x03) - Revision 3164 (0x0c5c)
        LMP version: Bluetooth 2.0 (0x03) - Subversion 3164 (0x0c5c)
        Manufacturer: Cambridge Silicon Radio (10)
< HCI Command: LE Read Supported States (0x08|0x001c) plen 0                           #5 [hci0] 1.227405
> HCI Event: Command Status (0x0f) plen 4                                              #6 [hci0] 1.228250
      LE Read Supported States (0x08|0x001c) ncmd 1
        Status: Unknown HCI Command (0x01)

Device:

lsusb | grep -i bluetooth
Bus 001 Device 021: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

Running Arch Linux on Raspberry Pi 3

Emill commented 7 years ago

You have a Bluetooth 2.0 dongle. You need at least 4.0.