I am trying to set up a USB Focus v3 kit on a Raspberry Pi 2. Latest INDI with usbfocus 0.7 driver on the Pi and latest KStars from the PPA.
When I connect to it from Ekos, all values are reported properly, e.g. the absolute steps are shown and updated when moving the focuser with the handbox. It does however not react to any commands from Ekos and the driver output gives dispatch error messages when trying to move it through Ekos or the INDI control panel. Here is an excerpt:
I tried it again and moving the focuser from the indi control panel seems to work, just not from Ekos.
It is very difficult to check that however, because most of the time, when I try to connect to the focuser from Ekos, Kstars crashes with a segfault error. I ran Kstars via gdb on a notebook with Ubuntu Mate 16.04 with the 0.7 usbfocus driver (focuser connected locally) from Peter and latest indilib and Kstars from Jasem's PPA, the output is attached.
Of course I'm happy to provide more information if needed.
I updated KStars and the crash is gone, thanks again.
The initial issue is still present however. The motor can be controlled with the INDI control panel, but when trying to move it from Ekos with the focus module, it gives the dispatch errors from above and doesn't move at all. This is when connected to the Raspberry Pi 2 and controlled through Ekos on the PC.
Attached you find the -vvv output.
Yes, Ekos is working fine with the simulator.
Another thing I encountered is, that when connecting the focuser locally on the PC, it breaks completely: It can't even be moved with the handbox and the values for speed a.s.o. in the INDI control panel are complete garbage until I reset the controller with the USB Focus Windows software. That doesn't happen on the Pi however.
Edit: One of the dispatch errors is around line 2000.
I guess I can confirm a similar problem. I set up a new Indi/Kstars installation based on Kubuntu 16.04 about two weeks ago. Now I attached an USB focus v3. In the indi control panel, the USB focus v3 works fine, including enabling temperature compensation and focusing in and out by providing a number of relative ticks.
However, any endeavours of controlling the USB focus v3 from Ekos in the focus tab has not been successful. Moving the focus updates the tick display, but trying to focus in or out manually, or staring an autofocus run in Ekos does not move the focus motor.
I'm not sure whether this is related to the same problem, but controlling the focus motor by a joystick does also not work for me. It is possible to activate joystick support in indi, and to configure the corresponding joystick buttons. However, pressing any buttons at my joystick does not move the focus, regardless of which buttons I try to configure.
Please let me know, if I can provide any additional information from my side.
Thanks a lot for your outstanding support. As requested, here is the output of indiserver -vvv for the updated libindi. Unfortunately, I cannot tell that I understand what is going on, but if i would have to make an uneducated guess, I would presume that the indi_usbfocus_focuser driver does not properly respond to setting an absolute focus position. Unfortunately I cannot check the sources myself, but the reason why a came to this assumption is that indi_simulator_focus supports setting an absolute position, while indi_usbfocus_focuser does not seem to provide this option in Kstar's indi device panel.