×
INDI Library v1.8.5 Released (19 Apr 2020)

April 2020 release of INDI Library v1.8.5 introduces new drivers while providing fixes and improvements to existing devices and core framework.

Moonlite focuser doesn't move with 3.4.3 KStars MacOS

2 months 2 weeks ago 2 months 2 weeks ago by dallmon.
dallmon
Senior Boarder
Senior Boarder
Posts: 52
More
Topic Author
Moonlite focuser doesn't move with 3.4.3 KStars MacOS #54675
I put a stepper on my Meade 1209 focuser and made a controller for it. I've been using KStars v2.9.8, and all is well. I upgraded to 3.4.3 last night and the focuser is acting up. It logs errors, and the focuser doesn't ever move, as if it doesn't get the command. Funny thing. It worked (presets) from the Indi Control Panel, but not from Ekos. Right now it doesn't work from either one. It says it moved, but the position doesn't update and the focuser doesn't move. All non-move functions appear to work.

I've gone back and forth between 2.9.8 and 3.4.3 twice and each time it works in 2.9.8 and not in 3.4.3.

Log:


Warning: Spoiler! [ Click to expand ]



Thanks,
Dave

Dave Allmon

12" LX600
SBIG STF-8300EN
Raspberry Pi 4 Indi server
Mac Pro client

Please Log in or Create an account to join the conversation.

2 months 2 weeks ago
kross
Expert Boarder
Expert Boarder
Posts: 146
Karma: 2
More
Moonlite focuser doesn't move with 3.4.3 KStars MacOS #54708
I don't have an easy answer for you, but some tips.

1. You could try different versions of INDI, and compare the debug output logs. Compare a working vs non-working, and note any differences (especially differences in commands sent). That might point to the culprit.
2. If you can build INDI from source, then I would do a "git bisect". It will automate the process of trying different builds, narrowing it down to the one exact code commit that broke things.

Please Log in or Create an account to join the conversation.

2 months 2 weeks ago
dallmon
Senior Boarder
Senior Boarder
Posts: 52
More
Topic Author
Moonlite focuser doesn't move with 3.4.3 KStars MacOS #54709
Thanks for the tips. I'll start with the first one, and try the second if I don't get anywhere with the first.

Thanks!
Dave

Dave Allmon

12" LX600
SBIG STF-8300EN
Raspberry Pi 4 Indi server
Mac Pro client

Please Log in or Create an account to join the conversation.

2 months 2 weeks ago 2 months 2 weeks ago by dallmon.
dallmon
Senior Boarder
Senior Boarder
Posts: 52
More
Topic Author
Moonlite focuser doesn't move with 3.4.3 KStars MacOS #54780
Well, being apparently too inept to get KStars to compile on Mac, I decided to go straight to the focuser controller and hang a scope on the receive line. What I saw was the normal polling and when I hit anything on Ekos that would start a movement of the focus motor, it was only sending the ":FG#" and not the required ":SNnnnn#" that tells it how far to move.

:GP#:GT#:GP#:GT#:GP#:GT#:FG#:FG#:GP#:GT#:GI#:FG#:GP#:GT#:GI#:FG#:GP#:GT#:GI#
                        --------            ----            ----

So something is broken in the Moonlite driver in 3.4.3. When I sync the focuser, it sends the position, so I know it is capable of sending data:

:GP#:GT#:GP#:GT#:SP03E8#:GP#:GT#
                --------

Here is what 2.9.8 sends:

:SN1964#:FG#:GP#:C#:GT#:GI#


Thanks,
Dave

Dave Allmon

12" LX600
SBIG STF-8300EN
Raspberry Pi 4 Indi server
Mac Pro client

Please Log in or Create an account to join the conversation.

2 months 2 weeks ago
knro
Administrator
Administrator
Posts: 8213
Karma: 51
Moonlite focuser doesn't move with 3.4.3 KStars MacOS #54787
This is odd because :FG# is never sent until :SN is sent first. You said you can use INDI control panel to command it to an absolute position then it works fine? but if you try from Ekos focus module, then it doesn't??

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

Please Log in or Create an account to join the conversation.

2 months 2 weeks ago 2 months 2 weeks ago by ChrisRowland. Reason: add a bit more
ChrisRowland
Platinum Boarder
Platinum Boarder
Posts: 517
Karma: 9
More
Moonlite focuser doesn't move with 3.4.3 KStars MacOS #54788
There is no evidence of a problem with the driver.

I've just tried the Moonlite driver with the real Moonlite hardware and there is no problem. The position is reported correctly, moves, both relative and absolute work. the temperature is read correctly.
KStars and the INDI driver are all running on a RPi4, the Kstars version is 3.4.3

KStars and INDI were built on my system from recent sources, no more than a day or two old: Build: 2020-05-23T07:01:45Z.

The Moonlite driver code hasn't been changed for three months.

Just noticed that it might only fail in EKos. It doesn't, it is fine. Both setting an absolute focus position and using the focus in and focus out buttons work.

So there is no evidence of a problem with Ekos or the Indi driver, at least with the real hardware.

Chris

Please Log in or Create an account to join the conversation.

2 months 2 weeks ago 2 months 2 weeks ago by dallmon.
dallmon
Senior Boarder
Senior Boarder
Posts: 52
More
Topic Author
Moonlite focuser doesn't move with 3.4.3 KStars MacOS #54797
Hi,

I could get it to send from 3.4.3 Indi Control Panel one time that I loaded it, but not since, and I've tried several times since then. I didn't put the serial scope on it until last night, though. 3.4.3 for Mac is not sending ":SNnnnn#" before the ":FG#", and 2.9.8 for Mac is sending it. I looked at the code, too, and I don't see how it is possible, but it isn't sending it. Since I'm running them both on the same machine, perhaps settings that work with 2.9.8 don't work with 3.4.3?

This is not a show stopper for me - I just wanted the linear autofocus routine. 2.9.8 works perfectly, and I'll keep running it.

Thanks,
Dave

Dave Allmon

12" LX600
SBIG STF-8300EN
Raspberry Pi 4 Indi server
Mac Pro client

Please Log in or Create an account to join the conversation.

2 months 2 weeks ago 2 months 2 weeks ago by rickbassham.
rickbassham
Junior Boarder
Junior Boarder
Posts: 31
More
Moonlite focuser doesn't move with 3.4.3 KStars MacOS #54804
I've been testing my Arduino Moonlite focuser, and found that on a Mac the Arduino doesn't always receive the SN command. I setup a second serial connection to the arduino that just echoes everything it receives from the indi_moonlite driver, and monitored it with screen. I see the FG command, but not always the SN that precedes it. The SN command does show up in the indi debug logs though, so I don't think it is the driver itself having an issue, but maybe the tty code itself. Everything works great on Linux though. About 1 in 20 times the SN command will be there and the focuser moves like it should. Again, works great in Linux, but very inconsistent on Mac.

Gayle H Riggsbee Observatory
Charlotte Amateur Astronomers Club

CGX
AT72EDII w/Homemade Moonlite Compatible Arduino Focuser
AT8RC w/Moonlite CSL 2.5" w/Moonlite Stepper v3
ZWO ASI1600MC-Pro
ZWO ASI1600MM-Pro
ZWO ASI174MM-Mini
ZWO OAG
ZWO EFW
AT2FF

Please Log in or Create an account to join the conversation.

2 months 2 weeks ago 2 months 2 weeks ago by dallmon.
dallmon
Senior Boarder
Senior Boarder
Posts: 52
More
Topic Author
Moonlite focuser doesn't move with 3.4.3 KStars MacOS #54832
I soldered a wire directly to the Rx pin and recorded with a serial port what was on the Mac output. Not only are the SN's missing, all but the first ":C#" are missing as well. I'm not sure that is a problem, though. I don't need it, but the real hardware may.

2.9.8 for Mac:
:GP#:C#:GT#:GP#:C#:GT#:GP#:C#:GT#:GP#:C#:GT#:GP#:C#:GT#:SN1D4C#:FG#:GP#:C#:GT#:GI#:GP#:C#:GT#:GI#:GP#:C#:GT#:GI#:GP#:C#:GT#:GP#:C#:GT#

3.4.3 for Mac:
:GV#:GP#:C#:GT#:GD#:GH#:GP#:GT#:GP#:GT#:GP#:GT#:GP#:GT#:GP#:GT#:GP#:GT#:GP#:GT#:FG#:GP#:GT#:GI#:GP#:GT#:GP#:GT#:GP#:GT#:GP#:GT#:FG#:GP#:GT#:GI#
Thanks,
Dave

Dave Allmon

12" LX600
SBIG STF-8300EN
Raspberry Pi 4 Indi server
Mac Pro client

Please Log in or Create an account to join the conversation.

2 months 2 weeks ago
rickbassham
Junior Boarder
Junior Boarder
Posts: 31
More
Moonlite focuser doesn't move with 3.4.3 KStars MacOS #54833
Think the issue is the back-to-back sending of the data with no delay? I'd be curious if it is a timing issue, since both cases are sending two separate commands back to back with no delay in between, and the first one isn't sent. I wonder if a buffer somewhere isn't flushed out to the serial port before it is overwritten by the next command.

Gayle H Riggsbee Observatory
Charlotte Amateur Astronomers Club

CGX
AT72EDII w/Homemade Moonlite Compatible Arduino Focuser
AT8RC w/Moonlite CSL 2.5" w/Moonlite Stepper v3
ZWO ASI1600MC-Pro
ZWO ASI1600MM-Pro
ZWO ASI174MM-Mini
ZWO OAG
ZWO EFW
AT2FF

Please Log in or Create an account to join the conversation.

2 months 2 weeks ago
rickbassham
Junior Boarder
Junior Boarder
Posts: 31
More
Moonlite focuser doesn't move with 3.4.3 KStars MacOS #54837
Adding a tcdrain call after write inside tty_write in indicom.c might do the trick.

Gayle H Riggsbee Observatory
Charlotte Amateur Astronomers Club

CGX
AT72EDII w/Homemade Moonlite Compatible Arduino Focuser
AT8RC w/Moonlite CSL 2.5" w/Moonlite Stepper v3
ZWO ASI1600MC-Pro
ZWO ASI1600MM-Pro
ZWO ASI174MM-Mini
ZWO OAG
ZWO EFW
AT2FF

Please Log in or Create an account to join the conversation.

2 months 2 weeks ago
dallmon
Senior Boarder
Senior Boarder
Posts: 52
More
Topic Author
Moonlite focuser doesn't move with 3.4.3 KStars MacOS #54838
I've looked through the code and I don't see anything that would pick an SN message and not send it. I have no fragmented messages, or signs of any communication problems. I would rebuild it if I could. Not having much luck, but that's a story for another day.

Dave Allmon

12" LX600
SBIG STF-8300EN
Raspberry Pi 4 Indi server
Mac Pro client

Please Log in or Create an account to join the conversation.

Time to create page: 0.955 seconds