Welcome, Guest
Username: Password: Remember me
08 Apr 2018
INDI development team is happy to announce the release of INDI Library v1.7.0. This new exciting release builds on the maturity of INDI Library and comes with many new supported devices and fixes for existing drivers.
Read More...

TOPIC: trouble with eqmod mount disconnecting

Re:trouble with eqmod mount disconnecting 1 month 4 weeks ago #25545

  • xsnrg
  • xsnrg's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 215
  • Karma: 2
  • Thank you received: 38
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.

Last Edit: by xsnrg. Reason: added version info

Re:trouble with eqmod mount disconnecting 1 month 4 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 1 month 4 weeks ago #25575

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

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

Re:trouble with eqmod mount disconnecting 1 month 4 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 1 month 4 weeks ago #25603

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.

Re:trouble with eqmod mount disconnecting 1 month 3 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 1 month 3 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 1 month 3 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 1 month 3 weeks ago #25626

  • xsnrg
  • xsnrg's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 215
  • Karma: 2
  • Thank you received: 38
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.

trouble with eqmod mount disconnecting 1 month 2 weeks ago #25844

  • xsnrg
  • xsnrg's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 215
  • Karma: 2
  • Thank you received: 38
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.

Time to create page: 0.161 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