Bug 495051

Summary: Troubles using EKOS with iOptron HEM15 mount
Product: [Applications] kstars Reporter: Jerry <jerryyeager32>
Component: generalAssignee: Jasem Mutlaq <mutlaqja>
Status: REPORTED ---    
Severity: major    
Priority: NOR    
Version: 3.7.3   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Debug log
Nov 17 Debug log

Description Jerry 2024-10-19 16:31:00 UTC
Created attachment 175030 [details]
Debug log

The problem appears to be that EKOS (IndiLib) is not reading the information from the HEM15 correctly and this is keeping EKOS from working correctly with the mount. Here are a couple of samples from the debug log:

 "[ERROR] bool IOPv3::Driver::getCoords(double *, double *, IOP_PIER_STATE *, IOP_CW_STATE *): Expected 20 bytes but received 23. "
[2024-10-18T14:04:48.523 EDT DEBG ][           org.kde.kstars.indi] - iOptron HEM15 :

 "[ERROR] bool IOPv3::Driver::getCoords(double *, double *, IOP_PIER_STATE *, IOP_CW_STATE *): Expected 20 bytes but received 18. "
[2024-10-18T14:04:49.524 EDT DEBG ][           org.kde.kstars.indi] - iOptron HEM15 : 

I have attached the debug log below this.



Equipment:

iOptron HEM15 mount with iOptron 8409 V2 handset controller with firmware: 

HC:  230420
RA:  240510
Dec: 240510


MacBook Pro (2017 Intel processor)

macOS 13.6.9 (Ventura)
KStars version 3.7.3


I believe this problem is due to a bug in IndiLib <-> EKOS because I have iOptron's Commander Lite on my cell phone. The Commander Lite app and the handset controller "play well together" as the saying goes. Any action taken on the handset is updated on the cell phone app and vice-versa. Location, pointing direction, slewing to targets, and slewing speed, tracking information, etc. etc.

Additionally, the tech service at iOptron (USA) recently performed a "tune-up" on the mount and said it is in good working order.
 
Thank you for your help.

Jerry

p.s. I may be able to add screen shots of the various EKOS tabs if that helps.
Comment 1 Jerry 2024-11-17 20:11:30 UTC
Created attachment 175889 [details]
Nov 17 Debug log
Comment 2 Jerry 2024-11-17 20:12:29 UTC
Nov 17, 2024. Update Progress: I downloaded the development version kstars-master-7630-macos-clang-x86_64.dmg located here: https://cdn.kde.org/ci-builds/education/kstars/master/macos-x86_64/ and gave it a try. This version recognized the HEM15 mount, but still has troubles reading the position. Move buttons on the mount tab respond haphazardly. The Goto works the first time, but does not work after that. Still, overall, this is better than before, but not really at the usable stage yet. I will try to upload the latest debug log.
Comment 3 Jerry 2024-11-24 18:44:42 UTC
Update 2: Using the developmental build 7655, things are working much better, actually pretty well. I have been able to trace the issue to a conflict with using the iOptron Commander Lite on cell phones at the same time as EKOS / Indilib is running. What does work is:

1.) Connect to the mount using the Lite app on the cell phone and set your time and location. Then, completely disconnect from the mount's network (not just turn the app off).

2.) Connect the laptop to the mount's network. Start KStars and then EKOS and connect to the mount. All of the GoTo and move buttons work as they should. I have not found any problems using both EKOS and the handset controller together.

Do not try to reconnect the cell phone to the mount or EKOS will immediately stop working. I have not tried to connect a lot of other equipment at the same time yet but so far so good.
Comment 4 Jerry 2024-11-28 20:33:35 UTC
update 3:    This also works when the mount is connected to the Mac by USB cable. But you have to download and install a driver.

Connecting the handset to the computer and looking in the USB section of the System Information “app” you can find that there is a USB-Serial controller attached made by vendor Prolific Technology, Inc with device ID: 0x23a3. After looking for references listed on the internet for this device, I came across a posting that said the Prolific company had device drivers listed on the Mac App Store. This is true, they do have at least two drivers there. Taking a wild guess the 0x23a3 device used the 2303 device drives, I installed it (when you download it from the App Store, it is installed, you then have to immediately go to the Privacy & Security tab in the System Settings app and give the driver permission to run. Do that and just to be sure, restart the computer, With the handset attached to the computer via the USB cable, start KStars and EKOS and go to the Indi Control Panel and select the iOptron HEM15 tab. You will need to change the Connection Mode to Serial, select System Ports, and for the Ports select the newly installed driver for the handset. Mine is currently.cu.PL20303G-USBtoUART1430, baud rate is 115200. Maybe restart Stars and EKOS just to make sure everything sticks. One thing to note: if you open the Terminal app and type 'ls /dev/tty*.*'without the quote marks and press the return key, you will get a listing of all the USB connected devices, so if the driver name changes after this posting, you can still find out what it is.