×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Indi loses connection with mount during guiding with PHD2

  • Posts: 31
  • Thank you received: 3
Hi guys,

I updated to Kstars 3.6.1 compiling the git repo (Build: 2022-10-05T15:43:01Z). Since this update, PHD2 is not working fine.

It starts to guide fine, but after a few minutes a warning notification appears in PHD2 saying it has lost the connection with the mount. I tried with another cable but the issue persists. After that, I changed to the internal Ekos guiding tool, and I could guide during hours without any issue, so I think I can discard a phisical problem in my mount.

I see this in the logs:
[2022-11-05T21:00:40.268 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: request: "{\"id\":751,\"jsonrpc\":\"2.0\",\"method\":\"get_lock_position\"}"
[2022-11-05T21:00:40.297 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: response: "{\"jsonrpc\":\"2.0\",\"result\":[425.76,247.22],\"id\":751}\r\n"
[2022-11-05T21:00:41.088 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[SCOPE] Compute local time: lst=22.59388910 (22:35:38.00) - julian date=2459889.33377358 "
[2022-11-05T21:00:41.092 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: \":j1\", 4 bytes written "
[2022-11-05T21:00:41.093 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] read_eqmod: \"=CDCF95\", 8 bytes read "
[2022-11-05T21:00:41.095 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[SCOPE] GetRAEncoder() = 9818061 "
[2022-11-05T21:00:41.096 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: \":j2\", 4 bytes written "
[2022-11-05T21:00:41.099 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] read_eqmod: \"=8DA195\", 8 bytes read "
[2022-11-05T21:00:41.101 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[SCOPE] Current encoders RA=9818061 DE=9806221 "
[2022-11-05T21:00:41.109 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: \":f1\", 4 bytes written "
[2022-11-05T21:00:41.110 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] read_eqmod: \"=111\", 5 bytes read "
[2022-11-05T21:00:41.110 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: \":f2\", 4 bytes written "
[2022-11-05T21:00:41.287 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: event: "{\"Event\":\"GuideStep\",\"Timestamp\":1667678441.285,\"Host\":\"raspberrypi\",\"Inst\":1,\"Frame\":239,\"Time\":317.578,\"Mount\":\"INDI Mount [EQMod Mount]\",\"dx\":-0.051,\"dy\":-0.093,\"RADistanceRaw\":-0.089,\"DECDistanceRaw\":0.058,\"RADistanceGuide\":0.000,\"DECDistanceGuide\":0.000,\"StarMass\":703,\"SNR\":18.66,\"HFD\":2.53,\"AvgDist\":0.07}\r\n"
[2022-11-05T21:00:41.396 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: request: "{\"id\":752,\"jsonrpc\":\"2.0\",\"method\":\"get_lock_position\"}"
[2022-11-05T21:00:41.397 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] read error, will retry again... "
[2022-11-05T21:00:41.397 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: \":f2\", 4 bytes written "
[2022-11-05T21:00:41.398 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] read_eqmod: \"=301\", 5 bytes read "
[2022-11-05T21:00:41.410 CET INFO ][           org.kde.kstars.indi] - EQMod Mount :  "[WARNING] dispatch_command() : serial port read failed for 200ms (1 retries), verify mount link. "
[2022-11-05T21:00:41.413 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[DEBUG] Scope RA ( 0:52:17) DE (55:22:32) Aligned RA ( 0:54:28) DE (56:38:19) AZ (37:53:58) ALT (59:21:24), PierSide (West) "
[2022-11-05T21:00:41.428 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: response: "{\"jsonrpc\":\"2.0\",\"result\":[425.76,247.22],\"id\":752}\r\n"
[2022-11-05T21:00:41.905 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: request: "{\"id\":753,\"jsonrpc\":\"2.0\",\"method\":\"get_connected\"}"
[2022-11-05T21:00:41.906 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: defer call "get_app_state"
[2022-11-05T21:00:41.914 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: response: "{\"jsonrpc\":\"2.0\",\"result\":true,\"id\":753}\r\n"
[2022-11-05T21:00:41.915 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: request: "{\"id\":754,\"jsonrpc\":\"2.0\",\"method\":\"get_app_state\"}"
[2022-11-05T21:00:41.917 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: response: "{\"jsonrpc\":\"2.0\",\"result\":\"Guiding\",\"id\":754}\r\n"
[2022-11-05T21:00:42.316 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[SCOPE] Compute local time: lst=22.59422979 (22:35:39.23) - julian date=2459889.33378773 "
[2022-11-05T21:00:42.318 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: \":j1\", 4 bytes written "
[2022-11-05T21:00:42.374 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: event: "{\"Event\":\"GuideStep\",\"Timestamp\":1667678442.373,\"Host\":\"raspberrypi\",\"Inst\":1,\"Frame\":240,\"Time\":318.692,\"Mount\":\"INDI Mount [EQMod Mount]\",\"dx\":-0.035,\"dy\":-0.055,\"RADistanceRaw\":-0.053,\"DECDistanceRaw\":0.039,\"RADistanceGuide\":0.000,\"DECDistanceGuide\":0.000,\"StarMass\":757,\"SNR\":19.38,\"HFD\":2.71,\"AvgDist\":0.07}\r\n"
[2022-11-05T21:00:42.505 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: request: "{\"id\":755,\"jsonrpc\":\"2.0\",\"method\":\"get_lock_position\"}"
[2022-11-05T21:00:42.679 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] read error, will retry again... "
[2022-11-05T21:00:42.679 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: \":j1\", 4 bytes written "
[2022-11-05T21:00:42.684 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: response: "{\"jsonrpc\":\"2.0\",\"result\":[425.76,247.22],\"id\":755}\r\n"
[2022-11-05T21:00:42.769 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] read error, will retry again... "
[2022-11-05T21:00:42.770 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: \":j1\", 4 bytes written "
[2022-11-05T21:00:42.914 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] read error, will retry again... "
[2022-11-05T21:00:42.915 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: \":j1\", 4 bytes written "
[2022-11-05T21:00:43.114 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] read error, will retry again... "
[2022-11-05T21:00:43.115 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: \":j1\", 4 bytes written "
[2022-11-05T21:00:43.315 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] read error, will retry again... "
[2022-11-05T21:00:43.315 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: \":j1\", 4 bytes written "
[2022-11-05T21:00:43.477 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: event: "{\"Event\":\"GuideStep\",\"Timestamp\":1667678443.476,\"Host\":\"raspberrypi\",\"Inst\":1,\"Frame\":241,\"Time\":319.775,\"Mount\":\"INDI Mount [EQMod Mount]\",\"dx\":-0.041,\"dy\":-0.083,\"RADistanceRaw\":-0.081,\"DECDistanceRaw\":0.047,\"RADistanceGuide\":0.000,\"DECDistanceGuide\":0.000,\"StarMass\":745,\"SNR\":19.22,\"HFD\":2.58,\"AvgDist\":0.08}\r\n"
[2022-11-05T21:00:43.613 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: request: "{\"id\":756,\"jsonrpc\":\"2.0\",\"method\":\"get_lock_position\"}"
[2022-11-05T21:00:43.613 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] read error, will retry again... "
[2022-11-05T21:00:43.614 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: \":j1\", 4 bytes written "
[2022-11-05T21:00:43.621 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: response: "{\"jsonrpc\":\"2.0\",\"result\":[425.76,247.22],\"id\":756}\r\n"
[2022-11-05T21:00:43.722 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] read error, will retry again... "
[2022-11-05T21:00:43.723 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: \":j1\", 4 bytes written "
[2022-11-05T21:00:43.920 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] read error, will retry again... "
[2022-11-05T21:00:43.921 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: \":j1\", 4 bytes written "
[2022-11-05T21:00:44.120 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] read error, will retry again... "
[2022-11-05T21:00:44.121 CET DEBG ][           org.kde.kstars.indi] - EQMod Mount : "[COMM] dispatch_command: \":j1\", 4 bytes written "
[2022-11-05T21:00:44.362 CET INFO ][           org.kde.kstars.indi] - EQMod Mount :  "[ERROR] Error: Communication failed -> tty read failed, check connection: Timeout error "
[2022-11-05T21:00:44.473 CET INFO ][           org.kde.kstars.indi] - EQMod Mount :  "[INFO] EQMod Mount is offline. "
[2022-11-05T21:00:44.535 CET DEBG ][           org.kde.kstars.ekos] - "EQMod Mount"  is disconnected.
[2022-11-05T21:00:44.551 CET INFO ][           org.kde.kstars.ekos] - "EQMod Mount está desconectado."
[2022-11-05T21:00:45.427 CET DEBG ][           org.kde.kstars.indi] - INDI server disconnected from BLOB manager for Device: "EQMod Mount" Property: "ALIGNDATA" Exit code: 0
[2022-11-05T21:00:45.443 CET DEBG ][           org.kde.kstars.indi] - INDI server disconnected from BLOB manager for Device: "EQMod Mount" Property: "HORIZONLIMITSDATAFITS" Exit code: 0
[2022-11-05T21:00:45.633 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: event: "{\"Event\":\"GuideStep\",\"Timestamp\":1667678444.615,\"Host\":\"raspberrypi\",\"Inst\":1,\"Frame\":242,\"Time\":320.877,\"Mount\":\"INDI Mount [EQMod Mount]\",\"dx\":-0.049,\"dy\":-0.131,\"RADistanceRaw\":-0.128,\"DECDistanceRaw\":0.059,\"RADistanceGuide\":0.000,\"DECDistanceGuide\":0.000,\"StarMass\":845,\"SNR\":20.46,\"HFD\":2.63,\"AvgDist\":0.10}\r\n"
[2022-11-05T21:00:45.744 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: request: "{\"id\":757,\"jsonrpc\":\"2.0\",\"method\":\"get_lock_position\"}"
[2022-11-05T21:00:45.745 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: event: "{\"Event\":\"Alert\",\"Timestamp\":1667678444.957,\"Host\":\"raspberrypi\",\"Inst\":1,\"Msg\":\"Se desconect\xC3\xB3 montura INDI\",\"Type\":\"warning\"}\r\n"
[2022-11-05T21:00:45.763 CET INFO ][     org.kde.kstars.ekos.guide] - "PHD2 warning: Se desconectó montura INDI"
[2022-11-05T21:00:45.770 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: defer call "get_connected"
[2022-11-05T21:00:45.770 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: defer call "get_app_state"
[2022-11-05T21:00:45.850 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2022-11-05T20:00:44: Client 25: read EOF"
[2022-11-05T21:00:45.851 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2022-11-05T20:00:44: Client 25: shut down complete - bye!"
[2022-11-05T21:00:45.851 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2022-11-05T20:00:45: Client 21: read EOF"
[2022-11-05T21:00:45.852 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2022-11-05T20:00:45: Client 21: shut down complete - bye!"
[2022-11-05T21:00:45.853 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2022-11-05T20:00:45: Client 22: read EOF"
[2022-11-05T21:00:45.853 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  "2022-11-05T20:00:45: Client 22: shut down complete - bye!"
[2022-11-05T21:00:45.854 CET DEBG ][           org.kde.kstars.indi] - INDI Server:  ""
[2022-11-05T21:00:45.893 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: event: "{\"Event\":\"GuideStep\",\"Timestamp\":1667678445.778,\"Host\":\"raspberrypi\",\"Inst\":1,\"Frame\":243,\"Time\":322.030,\"Mount\":\"INDI Mount [EQMod Mount]\",\"dx\":0.035,\"dy\":-0.050,\"RADistanceRaw\":-0.052,\"DECDistanceRaw\":-0.031,\"RADistanceGuide\":0.000,\"DECDistanceGuide\":0.000,\"StarMass\":761,\"SNR\":19.42,\"HFD\":2.40,\"AvgDist\":0.09}\r\n"
[2022-11-05T21:00:45.989 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: defer call "get_lock_position"
[2022-11-05T21:00:45.996 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: response: "{\"jsonrpc\":\"2.0\",\"result\":[425.76,247.22],\"id\":757}\r\n"
[2022-11-05T21:00:45.996 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: request: "{\"id\":758,\"jsonrpc\":\"2.0\",\"method\":\"get_connected\"}"
[2022-11-05T21:00:46.082 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: response: "{\"jsonrpc\":\"2.0\",\"result\":false,\"id\":758}\r\n"
[2022-11-05T21:00:46.144 CET INFO ][     org.kde.kstars.ekos.guide] - "Sistema de guiado externo desconectado."
[2022-11-05T21:00:46.161 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: request: "{\"id\":759,\"jsonrpc\":\"2.0\",\"method\":\"get_app_state\"}"
[2022-11-05T21:00:46.180 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: response: "{\"jsonrpc\":\"2.0\",\"result\":\"Guiding\",\"id\":759}\r\n"
[2022-11-05T21:00:46.181 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: request: "{\"id\":760,\"jsonrpc\":\"2.0\",\"method\":\"get_lock_position\"}"
[2022-11-05T21:00:46.183 CET DEBG ][     org.kde.kstars.ekos.guide] - PHD2: response: "{\"jsonrpc\":\"2.0\",\"result\":[425.76,247.22],\"id\":760}\r\n"

And a similar message in the PHD2 logs at same time:
21:00:42.313 00.001 547517045760 INDI Mount: Receiving message: 2022-11-05T20:00:42: [COMM] dispatch_command: ":j1", 4 bytes written 
21:00:42.370 00.057 547998879808 UpdateGuideState exits: m=757 SNR=19.4
21:00:42.370 00.000 547998879808 OnExposeComplete: CaptureActive=1 m_continueCapturing=1
21:00:42.371 00.001 547998879808 ScheduleExposure(1000,3,1) exposurePending=0
21:00:42.371 00.000 547998879808 Enqueuing Expose request
21:00:42.371 00.000 547998879808 GuideStep: -0.1 px 0 ms EAST, 0.0 px 0 ms NORTH
21:00:42.371 00.000 547977444352 Worker thread wakes up
21:00:42.371 00.000 547977444352 worker thread servicing REQUEST_EXPOSE 1000
21:00:42.372 00.001 547977444352 Handling exposure in thread, d=1000 o=3 r=(411,232,31,31)
21:00:42.509 00.137 547998879808 evsrv: cli 0x55ad16e300 request: {"id":755,"jsonrpc":"2.0","method":"get_lock_position"}
21:00:42.510 00.001 547998879808 evsrv: cli 0x55ad16e300 response: {"jsonrpc":"2.0","result":[425.76,247.22],"id":755}
21:00:42.512 00.002 547517045760 INDI Mount: Receiving message: 2022-11-05T20:00:42: [COMM] read error, will retry again... 
21:00:42.512 00.000 547517045760 INDI Mount: Receiving message: 2022-11-05T20:00:42: [COMM] dispatch_command: ":j1", 4 bytes written 
21:00:42.713 00.201 547517045760 INDI Mount: Receiving message: 2022-11-05T20:00:42: [COMM] read error, will retry again... 
21:00:42.713 00.000 547517045760 INDI Mount: Receiving message: 2022-11-05T20:00:42: [COMM] dispatch_command: ":j1", 4 bytes written 
21:00:42.913 00.200 547517045760 INDI Mount: Receiving message: 2022-11-05T20:00:42: [COMM] read error, will retry again... 
21:00:42.914 00.001 547517045760 INDI Mount: Receiving message: 2022-11-05T20:00:42: [COMM] dispatch_command: ":j1", 4 bytes written 
21:00:43.114 00.200 547517045760 INDI Mount: Receiving message: 2022-11-05T20:00:43: [COMM] read error, will retry again... 
21:00:43.114 00.000 547517045760 INDI Mount: Receiving message: 2022-11-05T20:00:43: [COMM] dispatch_command: ":j1", 4 bytes written 
21:00:43.284 00.170 547977444352 Exposure complete
21:00:43.314 00.030 547517045760 INDI Mount: Receiving message: 2022-11-05T20:00:43: [COMM] read error, will retry again... 
21:00:43.315 00.001 547517045760 INDI Mount: Receiving message: 2022-11-05T20:00:43: [COMM] dispatch_command: ":j1", 4 bytes written 
21:00:43.318 00.003 547977444352 worker thread done servicing request

I have to say I´m using a RPI3 and my RAM is very limited, so I don´t discard it is an issue because I don´t have enough memory, but I was able to guide with previous versions of Kstars / PHD2... In addition, I think Ekos guider needs more RAM than PHD2 because when I´m using it, entire system is noticeably slower than with PHD2. In addition, when PHD2 says it has lost the connection, I´m able to move the mount from Ekos (park, unpark, plate solving, etc), so issue it seems to be in the communication between PHD2 and Indi.

You can see the complete log here:

File Attachment:

File Name: log_19-20-16.txt
File Size:13,444 KB


Any help is appreciated.

Thank you and regards.
Last edit: 1 year 5 months ago by Juan Daniel.
1 year 5 months ago #87870
Attachments:

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

Time to create page: 0.404 seconds