50ButtonsEach / fliclib-linux-hci

Flic SDK for Linux
306 stars 54 forks source link

Button not detected... #85

Open alexe100 opened 5 years ago

alexe100 commented 5 years ago

x64 desktop, Ubuntu, Asus BT400 dongle and one flic button

1#. I plugged bt400

[42237.430646] usb 3-3: USB disconnect, device number 10 [42238.982636] usb 3-3: new full-speed USB device number 11 using xhci_hcd [42239.114122] usb 3-3: New USB device found, idVendor=0b05, idProduct=17cb [42239.114132] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [42239.114139] usb 3-3: Product: BCM20702A0 [42239.114144] usb 3-3: Manufacturer: Broadcom Corp [42239.114149] usb 3-3: SerialNumber: 5CF37072FC0E [42239.224702] Bluetooth: hci0: BCM: chip id 63 [42239.240714] Bluetooth: hci0: BCM20702A [42239.241745] Bluetooth: hci0: BCM20702A1 (001.002.014) build 0000 [42239.241787] bluetooth hci0: Direct firmware load for brcm/BCM20702A1-0b05-17cb.hcd failed with error -2 [42239.241793] Bluetooth: hci0: BCM: Patch brcm/BCM20702A1-0b05-17cb.hcd not found

2. Console 1:

.../fliclib-linux-hci-master/bin/x86_64$ ./flicd -f flic.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! Initialization of Bluetooth controller done!

3. console 2:

.../fliclib-linux-hci-master/simpleclient$ ./simpleclient localhost Available commands: getInfo - get various info about the server state and previously verified buttons startScanWizard - start scan wizard cancelScanWizard - cancel scan wizard startScan - start a raw scanning of Flic buttons stopScan - stop raw scanning connect xx:xx:xx:xx:xx:xx id - first parameter is the bluetooth address of the button, second is an integer identifier you set to identify this connection disconnect id - disconnect or abort pending connection changeModeParameters id latency_mode auto_disconnect_time - change latency mode (NormalLatency/LowLatency/HighLatency) and auto disconnect time for this connection forceDisconnect xx:xx:xx:xx:xx:xx - disconnect this button, even if other client program are connected getButtonInfo xx:xx:xx:xx:xx:xx - get button info for a verified button createBatteryStatusListener xx:xx:xx:xx:xx:xx id - first parameter is the bluetooth address of the button, second is an integer you set to identify this listener removeBatteryStatusListener id - removes a battery listener help - prints this help text

startScanWizard Please click your Flic button!

(I clicked it at this time and I saw light blink)

Scan wizard done with status WizardFailedTimeout

Many thanks

Emill commented 5 years ago

Can you run "sudo btmon" in a separate terminal while you try to pair your button, and post the output from there (in a

code

block)?

alexe100 commented 5 years ago

Already paired...

Now it is just needed to connect right? The problem is to get the mac address. I got it using and android app

Emill commented 5 years ago

You can retrieve all paired devices' addresses using the getInfo command.