This is a simple program for controlling LINAK Desk Control Cable in linux. Its created as linux alternative to: https://www.linak.com/products/controls.aspx?product=LINAK+Desk+Control+SW
Tested on model: usb2lin06.
this is using: libusb-1.0
to intall libusb-1.0 (debian)
$ sudo apt-get install libusb-1.0-0-dev- setting height
- monitoring status - current height
- getting pressed buttons
to compile examples:
$ make[ please run output file using "sudo"! ]
get current height in centimeters
$ sudo ./example-getHeightget 10 status reports every 2 seconds
$ sudo ./example-getStatus 10 2.0move desk up (to height 6000 in my case its 62.2cm)
$ sudo ./example-moveTo 6000move desk to very bottom
$ sudo ./example-moveTo 0traces of working program are included
to monitor usb in wireshark:
$ modprobe usbmonto see if you have your device connected:
$ lsusb -v -d 12d3:0002anazyze how save/restore position works