-
Notifications
You must be signed in to change notification settings - Fork 117
Linak Desk: BT Error "Attribute can't be written" #144
Comments
Be sure to use newest Bluez ( https://github.com/zewelor/bt-mqtt-gateway/wiki/Upgrade-Bluez-on-Raspbian ) and pair desk first https://wiki.archlinux.org/index.php/Bluetooth#Pairing . Its always possible that remote used in this desk has some change in protocol and it wont work, without some tweaks. |
Bluez is up-to-date (5.5) and the desk is paired - indeed it appears that the protocol may have changed. Any suggestions for reverse engineering that helped you get the original setup running which you could share? Would be greatly appreciated! |
By the way, this is what I can find with bluetoothctl
|
Maybe try to run one of this forks: https://github.com/kbancerz/linak_bt_desk or https://github.com/anetczuk/linak_bt_desk . Maybe they are handling desk better. For general BLE RE something like this: https://medium.com/@urish/reverse-engineering-a-bluetooth-lightbulb-56580fcb7546 I've also dissasembled Android app and used sniffing + reading dissasembled code to describe protcol, but now I don't remember much from it, it was long ago :\ EDIT: Did you registered desk via some android app ? I think there was some setting to allow bluetooth control etc. Maybe you need to turn it on ? Or maybe there is some other procedure now ( on some newer linak remotes etc ) |
Hmm, can't get it to work with either of the forks, unfortunately. Thanks for sharing the guide. I'm using the iOS App, but can't see an option like that unfortunately but I guess that means it's unrestricted (I hope) - I'll see what I can figure out from reverse-engineering. One small request (not time critical): Any chance you could see if you can extract your list of characteristics using bluetoothctl? Would make it much easier to try to compare what they have changed. No worries if not :) |
Whats the command for characteristis extract ? |
Had a chance to do further debugging on this one - I tried using some alternative scripts for the debugging. With https://github.com/apicore-engineering/linaktray, I can read out the state (i.e. height) of the desk without any problems, but I can't subscribe to changes or control the desk to a specific height. Appears to me (not being an expert) this may be a hardware limitation of the IDASEN desk |
It might be that auto move is disabled is this controller. In mine I had to turn it on explicit via app ( and there was info not every controller will allow it ). Maybe you can find other controller and swap it ( not sure if there is any authorization between desk / controller ) |
if auto move is disabled, how are all of. the following able to do it: |
Describe the bug
Appreciate this tool @zewelor - trying to get it working on the IKEA Desk running on a Raspberry Pi. Only deviation from the manual is that I'm not running it in a python venv, but it appears the bug below is unrelated.
If I remember correctly, it works correctly for you with an IKEA Desk? Any pointers would be greatly appreciated!
Debug gateway logs
Server (please complete the following information):
The text was updated successfully, but these errors were encountered: