Welcome, Guest
Username: Password: Remember me
14 Nov 2018
Glad to announce of release of INDI Library v1.7.5 on 2018-11-14. A few drivers were added in this release as we continue to improve & stabilize existing drivers.
Read More...

TOPIC: trouble with eqmod mount disconnecting

Re:trouble with eqmod mount disconnecting 6 months 3 weeks ago #25545

  • xsnrg
  • xsnrg's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 237
  • Karma: 2
  • Thank you received: 50
I was hopeful, but last night I had it fail 3 times while guiding. I should still have logs, so will send them. Have any of the other logs been helpful @knro? Anything else I can do?

This was with kstars-bleeding-2.9.5-2.4.x86_64
The following user(s) said Thank You: TallFurryMan

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

12" pier with HDX110 using EQMod
ASI 1600 mono/color mains with ASI290MM in off-axis
ASI filter wheel
Moonlite focusers for the sharpening
AT115EDT and 8" Newt for the light
Fedora Linux, 100% INDI
Last Edit: by xsnrg. Reason: added version info

Re:trouble with eqmod mount disconnecting 6 months 3 weeks ago #25546

Send the logs anyway and I'll see if there is something of use.
The following user(s) said Thank You: xsnrg

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

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

Re:trouble with eqmod mount disconnecting 6 months 2 weeks ago #25575

  • xsnrg
  • xsnrg's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 237
  • Karma: 2
  • Thank you received: 50
sent.

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

12" pier with HDX110 using EQMod
ASI 1600 mono/color mains with ASI290MM in off-axis
ASI filter wheel
Moonlite focusers for the sharpening
AT115EDT and 8" Newt for the light
Fedora Linux, 100% INDI

Re:trouble with eqmod mount disconnecting 6 months 2 weeks ago #25587

Ok, so what's happening is that if the mount fails to respond, EQMod throws an error and disconnects itself. However, this was not handled properly so it was not really disconnected as far as INDI goes. But that's only part of the issue. I updated the driver to make it more tolerant to transient errors, so it would retry the command now up to 3 times before finally giving up. It's in GIT now and should be in nightly soon, so you can give it a try.

I ran a quick test with my EQ8 and everything appeared to be in order.
The following user(s) said Thank You: TallFurryMan, Ihoujin, xsnrg

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

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

Re:trouble with eqmod mount disconnecting 6 months 2 weeks ago #25603

  • Ihoujin
  • Ihoujin's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 368
  • Karma: 1
  • Thank you received: 52
I hope this resolves my own issues. I have been struggling with mount disconnection for a while. It would say 'tty read failure...'
I believed there were hardware issues for longest time because it would be relatively stable indoors, but became very unreliable outdoors in the cold. So I was suspecting something temperature dependant.

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

INDI/KStars on Raspberry Pi 3B+
Lubuntu 16.04
Skywatcher HEQ5 Pro Mount
Canon 600D Camera
Orion SSAG @280mm Guide Scope
PHD2
Adafruit Motor Hat shield
Adafruit GPS Module
Generic Bluetooth Joystick.
Startech 7 port powered USB Hub.

Re:trouble with eqmod mount disconnecting 6 months 2 weeks ago #25618

Hi,
I'm not sure that performing retries after a disconnection is a good idea. I did not look at the driver update but having a clear disconnection in Indi is a good thing (thanks Jasem). Now I believe that the reconnection should be manual. The logs before the disconnection are not very helpful, from the driver point of view this happens in the kernel space (tty_read, tty_write). The reason may be either between the computer and the serial adapter (usb/bluetootth), between the adapter and the mount motor controllers, or in the motor controllers if there is a power glitch and they reboot. I believe that in the first case the kernel will reassign a device at the reconnection (from ttyUSB0 to ttyUSB1 for instance), in the second case there will be either read/write faliures or bad characters, and in the latter case, there will only be write failures or maybe a read timeout while the controllers are rebooting. The problem in the latter case if you automatically reconnect, is that the driver will think that the mount is uninitialized, and it will consider that it points to the Celestial Pole. The next goto may be risky in that case...
So it may be a good idea to make automatic reconnection optional, so you may disable it if you are in an automated sequence for instance. Also people reporting disconnections may try to investigate by looking the status after the disconnection: do motor controllers have rebooted? where is the serial adapter ? maybe try to speak directly with the mount using picocom to test the connectivity.
Lastly I'm thinking that power issues may eventually come from the mount capacitors, if you think that your power connection is correct. But I'm not an expert here.
Jean-Luc.

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

Re:trouble with eqmod mount disconnecting 6 months 2 weeks ago #25619

Thanks Jean-Luc. The retry happens immediately after an error. Disconnection only occurs if it fails 3 times. When it is disconnected, the user must manually reconnect again.

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

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

Re:trouble with eqmod mount disconnecting 6 months 2 weeks ago #25625

Ok, let's see if that resolves the issue. I think that the controllers would have time to reboot/reset during the retries. I wonder how will the driver behave after a motor controller reset and if this could be useful to make it recover from that situation.

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

Re:trouble with eqmod mount disconnecting 6 months 2 weeks ago #25626

  • xsnrg
  • xsnrg's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 237
  • Karma: 2
  • Thank you received: 50
In my case, tracking stops when this happens, but the boards must not be resetting as I can manually reconnect and everything works fine. I just have to slew the mount back to the object because of how far it may have drifted depending on how long it was disconnected before I catch it. I am hoping the retry will just reconnect right away and go on about its business. The issues others people have may not be the same as mine though.

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

12" pier with HDX110 using EQMod
ASI 1600 mono/color mains with ASI290MM in off-axis
ASI filter wheel
Moonlite focusers for the sharpening
AT115EDT and 8" Newt for the light
Fedora Linux, 100% INDI

trouble with eqmod mount disconnecting 6 months 1 week ago #25844

  • xsnrg
  • xsnrg's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 237
  • Karma: 2
  • Thank you received: 50
I have some time running the new retry logic now. It is certainly behaving differently. First, there are no more disconnects! There have been a couple of times where I think it has had to retry, or at least this is a new behavior. It has been 1 time per night this has happened, over the 2 nights I have been able to test. Each time, the mount stays connected, but tracking stops. I can click to have tracking start again, and everything is fine. Guiding wants to keep going, but gives the error that it cannot do anything if tracking is off.

I didn't see it in the log, but is anything recorded when the driver retries the command to the mount?

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

12" pier with HDX110 using EQMod
ASI 1600 mono/color mains with ASI290MM in off-axis
ASI filter wheel
Moonlite focusers for the sharpening
AT115EDT and 8" Newt for the light
Fedora Linux, 100% INDI

trouble with eqmod mount disconnecting 2 months 1 week ago #29246

Two wasted nights for me the last two days, using indi-eqmod dd6632bc.

2018-09-03T04:58:34: [INFO] EQMod Mount is online.
2018-09-03T04:58:34: [INFO] Successfully connected to EQMod Mount.
2018-09-02T21:04:42: [WARNING] Timed guide North/South Error: can not restart tracking
2018-09-02T21:04:42: [ERROR] Error: Communication failed -> tty write failed, check connection: Error: unrecognized error code
2018-09-02T21:04:42: [WARNING] Timed guide West/East Error: can not restart tracking
2018-09-02T21:04:42: [ERROR] Error: Communication failed -> tty write failed, check connection: Error: unrecognized error code
2018-09-02T21:04:42: [WARNING] Warning: Invalid parameter -> Can not change rate while motor is running (direction differs).
2018-09-02T21:04:42: [ERROR] Error: Communication failed -> tty write failed, check connection: Error: unrecognized error code
2018-09-02T21:04:42: [WARNING] Warning: Invalid parameter -> Can not change rate while motor is running (direction differs).
2018-09-02T21:04:42: [ERROR] Error: Communication failed -> tty write failed, check connection: Error: unrecognized error code
2018-09-02T21:04:42: [WARNING] Timed guide North/South Error: can not restart tracking
2018-09-02T21:04:42: [ERROR] Error: Communication failed -> tty write failed, check connection: Error: unrecognized error code
2018-09-02T21:04:42: [WARNING] Timed guide West/East Error: can not restart tracking
2018-09-02T21:04:42: [INFO] EQMod Mount is offline.
2018-09-02T21:04:42: [ERROR] Error: Communication failed -> tty read failed, check connection: Timeout error
2018-09-02T21:03:25: [WARNING] Warning: Invalid parameter -> Can not change rate while motor is running (direction differs).
2018-09-02T21:03:25: [WARNING] Warning: Invalid parameter -> Can not change rate while motor is running (direction differs).
2018-09-02T21:03:25: [WARNING] Warning: Command failed -> Failed command :I16C0200 - Reply !3
2018-09-02T20:56:27: [INFO] Telescope slew is complete. Tracking TRACK_SIDEREAL...
2018-09-02T20:56:27: [INFO] Iterative Goto (1): RA diff = 0.95 arcsecs DE diff = 0.09 arcsecs
2018-09-02T20:56:26: [INFO] Slewing to RA: 23:25:41 - DEC: 61:41:36
2018-09-02T20:56:26: [INFO] Slewing mount: RA increment = 1707, DE increment = 0
2018-09-02T20:56:26: [INFO] Setting Eqmod Goto RA=0.127452 DE=60.4892 (target RA=23.428 DE=61.6934)
2018-09-02T20:56:26: [INFO] Aligned Eqmod Goto RA=0.127452 DE=60.4892 (target RA=23.428 DE=61.6934)
2018-09-02T20:56:26: [INFO] GOTO ALign Nearest: delta RA = -23.300548, delta DEC = -1.204159
2018-09-02T20:56:26: [INFO] Starting Goto RA=23.428 DE=61.6934 (current RA=0.131979 DE=60.4892)


This is puzzling me:

Can not change rate while motor is running (direction differs).

This is a new type of error for me. For some reason I can't remember if I updated the driver to the right version :/
In any case, mount driver disconnects from Ekos and doesn't come back.
The most sad is that Ekos was not able to see the issue at all. Safeguards needed, again.

-Eric

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

HEQ5-Pro - Atik 314E - Orion ED80T - DMK21 on Orion 50mm
DIY 3D-printed Moonlite and FWheel RGB/LPR
KStars and indiserver on two Atom 1.6GHz 1GB RAM Linux, VPN remote access

trouble with eqmod mount disconnecting 2 months 1 week ago #29248

Oops. dd6632bc is clearly outdated for indi-eqmod. Please look away while I'm hitting myself on the head.

-Eric

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

HEQ5-Pro - Atik 314E - Orion ED80T - DMK21 on Orion 50mm
DIY 3D-printed Moonlite and FWheel RGB/LPR
KStars and indiserver on two Atom 1.6GHz 1GB RAM Linux, VPN remote access
Time to create page: 0.443 seconds

Login

3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!


Gallery

Replica

Why INDI

Replica