Farzad,
If you look through your logs you will see the following:
SGP successfully connects to the PHD2 server:
[05/05/19 22:27:39.208][DEBUG] [Sequence Thread] Connecting to PHD2…
[05/05/19 22:27:39.211][DEBUG] [Sequence Thread] Waiting for socket connection to PHD2…
[05/05/19 22:27:39.219][DEBUG] [PHD2 Listener Thread] Attempting to connect to PHD2…
[05/05/19 22:27:40.211][DEBUG] [Sequence Thread] Successfully connected to PHD2…
It was able to do so because PHD2 was already open and so it did not have to launch it:
[05/05/19 22:27:40.354][DEBUG] [Sequence Thread] PHD2: PHD2 is already open…
After you start your sequence, SGP tries to get SGPs state:
[05/05/19 22:27:42.724][DEBUG] [Sequence Thread] Checking PHD2 state…
[05/05/19 22:27:42.724][DEBUG] [Sequence Thread] PHD2 GetPhdStatus - Pre-Wait : Selected
[05/05/19 22:27:42.724][DEBUG] [Sequence Thread] Sending to PHD2:
{“method”: “get_app_state”, “id”: 1001}
Attempting to get the state goes on for 9 minutes
[05/05/19 22:27:51.796][DEBUG] [Sequence Thread] PHD2 GetPhdStatus - Post-Wait: Selected
[05/05/19 22:27:51.798][DEBUG] [Sequence Thread] {“method”: “guide”, “params”: [{“pixels”: 0.5, “time”: 10, “timeout”: 600}, false ], “id”: 1003}
[05/05/19 22:27:51.798][DEBUG] [Sequence Thread] Sending to PHD2:
{“method”: “guide”, “params”: [{“pixels”: 0.5, “time”: 10, “timeout”: 600}, false ], “id”: 1003}
It’s not clear to me what happened then, but SGP then tries to start guiding anyway, but settle fails causing the sequence to fail:
[05/05/19 22:27:51.802][DEBUG] [Sequence Thread] PHD2: Attempting to start guiding, waiting for PHD2 settle done message…
[05/05/19 22:27:54.193][DEBUG] [PHD2 Listener Thread] Unknown object from PHD2: {“Event”:“SettleBegin”,“Timestamp”:1557120474.140,“Host”:“AZULLE”,“Inst”:1}
[05/05/19 22:28:55.148][DEBUG] [PHD2 Listener Thread] PHD2: Settle done received: BAD
[05/05/19 22:28:55.836][DEBUG] [Sequence Thread] PHD2 settle failed!
It then looks like you tries to start the sequence again:
[05/05/19 22:29:51.654][DEBUG] [Sequence Thread] Checking PHD2 state…
[05/05/19 22:29:51.654][DEBUG] [Sequence Thread] PHD2 GetPhdStatus - Pre-Wait : Selected
[05/05/19 22:29:51.654][DEBUG] [Sequence Thread] Sending to PHD2:
{“method”: “get_app_state”, “id”: 1001}
Ending in the same result:
[05/05/19 22:30:00.722][DEBUG] [Sequence Thread] PHD2: Attempting to start guiding, waiting for PHD2 settle done message…
[05/05/19 22:30:09.098][DEBUG] [PHD2 Listener Thread] Unknown object from PHD2: {“Event”:“SettleBegin”,“Timestamp”:1557120609.093,“Host”:“AZULLE”,“Inst”:1}
[05/05/19 22:30:48.030][DEBUG] [PHD2 Listener Thread] PHD2: Settle done received: BAD
[05/05/19 22:30:48.744][DEBUG] [Sequence Thread] PHD2 settle failed!
And finally you tried running the sequence a 3rd time, but at this point SGP could not even connect to the PHD2 server (was PHD2 still running at this point?)
[05/05/19 22:31:09.244][DEBUG] [Sequence Thread] PHD2: failed to receive status in 7 seconds, sending message again…
[05/05/19 22:31:09.244][DEBUG] [Sequence Thread] Sending to PHD2:
{“method”: “get_app_state”, “id”: 1001}
Unfortunately what we can’t tell from the SGP logs is what state PHD2 was actually in during all of these attempts to use it? Was it just launched? Was it connected to equipment? Looping? Guide star selected? Already guiding?
Here’s what I would suggest:
Just let SGP launch PHD2 for you. If that doesn’t work, share both your SGP and PHD2 debug logs here so we can try figure out why it did’t work.
Steve