Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EQMod Telescope "jumping" from NCP to eastern horizon with GoTo command on Raspberry Pi #209

Closed
kanahablanco opened this issue Aug 30, 2020 · 8 comments
Labels
bug Something isn't working

Comments

@kanahablanco
Copy link

log_19-00-12.txt

I have attached link to a screen recording of the issue I have encountered.
https://drive.google.com/file/d/1YzCEazlgXND_vE45QbBLmTHBSOVHK2e0/view?usp=sharing

Descprition: I seem to be having an issue with indi_eqmod_telescope on Raspberry Pi. I have been able to successfully use indi/kstars/ekos on Ubuntu Mate 20.04 with my Intel Nuc10 and Azulle Byte 3 minicomputers and was trying get an install working on a more portable Raspberry Pi. I got the RPi installation working with the Telescope Simulator and CCD SImulator including control over an iPad with Skysafari, but when I actually connected to my Orion Atlas mount, I started having issues when attempting a GoTo command. (Manual on screen controls and joystick control were ok). When I initiate a GoTo command upon startup of Kstars/Ekos, the telescope "jumps" from start position at NCP to eastern horizon and then the Indi Control Panel shows that the DE_Motor Initializaiton status button goes from green to red. From then on the mount no longer responds to commands for DE axis movement.


To Reproduce
I have tried multiple installs of indi/kstars/ekos on Rasbian 32, Ubuntu Mate 20.04 for RPi4 as well as pre-packaged installs of Astroberry and Stellarmate. I am using a CanaKit 3.5A power supply with the RPi4 as well as other 3A power supplies just in case it was a power issue. I have tried this on 2 RPi4s (8Gb version and 4Gb version). I even tried both Stellarmate and manual install on Raspian 32 on an older 1GB Rpi2 that I had. I have tried purging the parking data and writing the default home position under Site Management, GPS sync vs manual location setting, apt update/upgrade, etc. I have tried both the LynxAstro and Shoestring Astro cables to connect my mount to the RPi (they both work on my Nuc10 and Azulle Byte 3 installs).

Exact steps to reproduce the behavior.

  1. Run driver - I power up my RPi. I either VNC or direct connect to start Kstars. Then I initiate the driver through starting Ekos with EQMod Telescope and CCD Simulator selected.
  2. Perform action - I select an object (such as Vega in my attached files) and initiate a GoTo command.
  3. See error - On Kstars, the location of the EQMod Telescope "jumps" from NCP to eastern horizon leading to loss of DE Motor control.

In the log files I noticed that the [COMM] read_eqmod" "=xxxxxx" starts at the same "=000080" right before the [SCOPE] GetDEEncoder() = xxxxxxx goes from 10642945 to 8388608 and stays there. Does that point to the culprit?

2020-08-28T19:03:21.382 CDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[COMM] read_eqmod: "=0166A2", 8 bytes read "
[2020-08-28T19:03:21.383 CDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[SCOPE] GetDEEncoder() = 10642945 "
[2020-08-28T19:03:21.383 CDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[SCOPE] Current encoders RA=8391755 DE=10642945 "
[2020-08-28T19:03:21.390 CDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: ":f1", 4 bytes written "
[2020-08-28T19:03:21.413 CDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[COMM] read_eqmod: "=011", 5 bytes read "
[2020-08-28T19:03:21.414 CDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: ":f2", 4 bytes written "
[2020-08-28T19:03:21.416 CDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[COMM] read_eqmod: "=211", 5 bytes read "
[2020-08-28T19:03:21.420 CDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[SCOPE] GetRAPeriod() = 6 "
[2020-08-28T19:03:21.420 CDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[SCOPE] GetDEPeriod() = 6 "
[2020-08-28T19:03:21.420 CDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[SCOPE] CheckMotorStatus() : Axis = 1 "
[2020-08-28T19:03:21.421 CDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[DEBUG] IsRARunning() = true "
[2020-08-28T19:03:22.416 CDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[SCOPE] Compute local time: lst=16.07754419 (16:04:39.16) - julian date=2459090.50230981 "
[2020-08-28T19:03:22.417 CDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: ":j1", 4 bytes written "
[2020-08-28T19:03:22.438 CDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[COMM] read_eqmod: "=338980", 8 bytes read "
[2020-08-28T19:03:22.438 CDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[SCOPE] GetRAEncoder() = 8423731 "
[2020-08-28T19:03:22.439 CDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: ":j2", 4 bytes written "
[2020-08-28T19:03:22.457 CDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[COMM] read_eqmod: "=000080", 8 bytes read "
[2020-08-28T19:03:22.458 CDT DEBG ][ org.kde.kstars.indi] - EQMod Mount : "[SCOPE] GetDEEncoder() = 8388608 "


Expected behavior - I expected the GoTos to perform just as they did on my Ubuntu Mate 20.04 installs of indi/kstars/ekos with my Intel Nuc10 and Azulle Byte 3. As an aside, I was able to test the same hardware with an ASIAir Pro (another Raspberry Pi!) and was able to get the expected GoTo behavior.

Screenshots
Please see attached files and link to screen recording at beginning of this post.

Below is screen shot from my RPi2 with Rasbian 32 bit (2020-08-20 release)
image

Desktop (please complete the following information):

  • OS: Stellarmate OS was running when I made the log file and screenshot although I get the same error with Astroberry and manual installs of indi/kstars/ekos on Raspbian 32-bit (2020-08-20 release) and Ubuntu Mate 20.04 64-bit ARM. Again, no issues with installs of Ubuntu Mate 20.04 on Intel Nuc10 and Azulle Byte 3. It is just the Raspberry Pi that has the GoTo issue.
  • indi_eqmod_telescope version 1.0

Log Files
I hope that I included the correct log files. Please let me know if I need to create it differently.

@kanahablanco kanahablanco added the bug Something isn't working label Aug 30, 2020
@knro
Copy link
Collaborator

knro commented Aug 30, 2020

@geehalel I tried to figure this out but can't understand why this happens on the Pi only?

@kanahablanco
Copy link
Author

kanahablanco commented Aug 30, 2020 via email

@knro
Copy link
Collaborator

knro commented Aug 30, 2020

Yes, they're built into it. Try running this command:

sudo apt-get -y remove rpi.gpio-common

then restart, and test. Does it help?

@kanahablanco
Copy link
Author

kanahablanco commented Aug 30, 2020 via email

@kanahablanco
Copy link
Author

kanahablanco commented Aug 30, 2020 via email

@geehalel
Copy link
Contributor

Thanks for your very detailed report and for testing in various other situations.
You pointed out the problem in the log, the DEC axis motor controller is reset just after the goto command is started.
It is then marked uninitialized in the driver. The only way to reset a motor controller is a hard reset (or going write into some registers which indi-eqmod does not do directly). Thus the only explanation I can see is an electrical issue. And the reason why only indi-eqmod is causing a reset may be that it is using a higher goto speed than the HC or synscan, and drains more current from the power. Another possibility is a short in the TX line of the controllers which would reset the controller. Both controllers share the same RX and TX serial lines. For RX there is no problem. For TX they are not supposed to send messages at the same time. The controllers set this line high when they don't use it, and there is a diode per controller to avoid shorts when the other controller sends data (and may set the line to 0). Maybe one diode is deficient.
Just seen your last comment, glad to see it has gone.
And your last last one. The HC and the indi-eqmod parking state are not related (I don't know if the HC may park the mount anyway).
Maybe we could add a property to adjust the goto speed in a future release (one another button...)

@knro
Copy link
Collaborator

knro commented Aug 30, 2020

Thank you @geehalel for the insight. I'll close this for now since the user reported it is working. Please re-open if the problem arise again.

@knro knro closed this as completed Aug 30, 2020
@kanahablanco
Copy link
Author

kanahablanco commented Aug 30, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants