Open pollev opened 2 years ago
I see that your button is advertising as expected.
Could it be that your button is already added? You can execute getInfo
to check that. In that case you can connect to it using connect [xx:x:xx:xx:xx:xx] [id]
.
Otherwise try to kill bluetoothd
so it doesn't "override" flicd.
Hi Emill,
Thank you for your feedback. I can confirm that the button is NOT yet connected. No output from getInfo and it also still flickers red when I press it. The behavior is also identical when I uninstall (or disable) the bluetooth deamon.
Can you suggest another test I could perform to debug this situation?
It's very strange. I've not seen this issue before. Could you potentially try a different Flic button or another computer/dongle? Is the button working in the iOS/Android app?
The button is working as expected when using the app. It connects immediately. (just tried it) I have tried 2 seperate bluetooth dongles, the latter being advertised on this github. Neither seems to allow the button to be detected, though both bluetooth dongles work properly and can detect any other devices if I enable the bluetooth deamon.
I initially wanted to add some debug statements to the library but noticed that it is not open source. So my debugging capabilities are now limited to asking for your support. Any other recommendations to try? Are there any verbose flags I could enable to get to the bottom of this?
I guess you tried deleting the database file and restart flicd?
I had not tried deleting the db file. But I just tried and same result sadly :/
Hi Emill, any other debugging you can advise me. I was really hoping to actually get to use these buttons :(
Have you tried using another implementation? When I was setting up the fliclib, I used the python implementation, which worked quite well.
# start the service as usual (in my case) !! do you use the correct version for your system e.g. armv6l or x86_64?
~/dev/fliclib-linux-hci/bin/armv6l/flicd -d -f ~/.flic/buttons.db
# start the testclient in python
python3 ~/dev/fliclib-linux-hci/clientlib/python/test_client.py
# in another terminal (or screen) i start the scan wizard
python3 ~/dev/fliclib-linux-hci/clientlib/python/scan_wizard.py
One thing I stumbled upon was, that I need a working internet connection for whatever reason to connect the button. So therefore you might also check network, proxy and firewall settings.
Hope that helps a bit, getting a step closer to your solution.
Hi,
I am currently unable to get my flic buttons to pair with the flic service. I even went as far as to order the exact bluetooth adapter recommended on this page: (Sena Technologies Parani-UD100-G03). There is very little debug options available so I am currently stuck :(. Any advise would be recommended.
I am taking the following steps:
Terminal outputs and btmon output attached. Thank you for any help you can give me.
Terminal 1:
Terminal 2:
Terminal 3 (see attached file):
btmon_out.txt