×

INDI Library v1.9.6 Released (21 May 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

Re:SkyX Connection Problem

  • Posts: 27
  • Thank you received: 2
Hi,

Due to some annoying and apparently unfixable SBIG driver issues (can't connect my ST-i and my ST-8300M to theSkyX simultaneously), I'm trying to use indiserver to connect PHD2 to TheSkyX so that I can use my ST-i for guiding with dithering and theSkyX to drive my scope; I've written a python script that controls both theSkyX and PHD2 via their servers. I was able to connect PHD2 to theSkyX and slew the scope with PHD2. Now I can't seem to connect to the Sky with the Paramount indi driver. If I try to connect when theSkyX is not connected to the telescope, I can see that theSkyX successfully connects to the telescope but PHD2 doesn't say that it's connected to theSkyX and indi says there was a handshake failure. By the way, TCP server is enabled in theSkyX and I know it's communicating as I'm using it with my Python script. I'm even using the same "sky6RASCOMTele.IsConnected" command in my script successfully. Note that my script was not running at the same time that I was attempting this.

I'm using an RPi4 4GB with Raspbian Buster. I'm using Radek Kaczorek's indiserver repository.

Here's the interesting part of the log:
2020-05-02T21:15:09: Driver indi_paramount_telescope: read message Paramount   '[INFO] Connecting to localhost@3040 ...'
2020-05-02T21:15:09: Client 0: queuing <message device='Paramount' name=''>
2020-05-02T21:15:09: Client 5: queuing <message device='Paramount' name=''>
2020-05-02T21:15:09: Driver indi_paramount_telescope: read message Paramount   '[DEBUG] Connection successful, attempting handshake...'
2020-05-02T21:15:09: Client 0: queuing <message device='Paramount' name=''>
2020-05-02T21:15:09: Client 5: queuing <message device='Paramount' name=''>
2020-05-02T21:15:09: Client 0: sending msg copy 2 nq 2:
<message device="Paramount" timestamp="2020-05-02T21:15:09" message="[INFO] Connecting to localhost@3040 ..."/>
 
2020-05-02T21:15:09: Client 5: sending msg copy 1 nq 2:
<message device="Paramount" timestamp="2020-05-02T21:15:09" message="[INFO] Connecting to localhost@3040 ..."/>
 
2020-05-02T21:15:09: Driver indi_paramount_telescope: read message Paramount   '[DEBUG] CMD: /* Java Script */var Out;sky6RASCOMTele.ConnectAndDoNotUnpark();Out = sky6RASCOMTele.IsConnected;'
2020-05-02T21:15:09: Client 0: queuing <message device='Paramount' name=''>
2020-05-02T21:15:09: Client 5: queuing <message device='Paramount' name=''>
2020-05-02T21:15:09: Client 0: sending msg copy 2 nq 2:
<message device="Paramount" timestamp="2020-05-02T21:15:09" message="[DEBUG] Connection successful, attempting handshake..."/>
 
2020-05-02T21:15:09: Client 5: sending msg copy 1 nq 2:
<message device="Paramount" timestamp="2020-05-02T21:15:09" message="[DEBUG] Connection successful, attempting handshake..."/>
 
2020-05-02T21:15:09: Client 0: sending msg copy 2 nq 1:
<message device="Paramount" timestamp="2020-05-02T21:15:09" message="[DEBUG] CMD: /* Java Script */var Out;sky6RASCOMTele.ConnectAndDoNotUnpark();Out = sky6RASCOMTele.IsConnected;"/>
 
2020-05-02T21:15:09: Client 5: sending msg copy 1 nq 1:
<message device="Paramount" timestamp="2020-05-02T21:15:09" message="[DEBUG] CMD: /* Java Script */var Out;sky6RASCOMTele.ConnectAndDoNotUnpark();Out = sky6RASCOMTele.IsConnected;"/>
 
2020-05-02T21:15:09: Driver indi_paramount_telescope: read message Paramount   '[ERROR] Error reading from TheSky6 TCP server.'
2020-05-02T21:15:09: Client 0: queuing <message device='Paramount' name=''>
2020-05-02T21:15:09: Client 5: queuing <message device='Paramount' name=''>
2020-05-02T21:15:09: Driver indi_paramount_telescope: read message Paramount   '[DEBUG] Handshake failed.'
2020-05-02T21:15:09: Client 0: queuing <message device='Paramount' name=''>
2020-05-02T21:15:09: Client 5: queuing <message device='Paramount' name=''>
2020-05-02T21:15:09: Client 0: sending msg copy 2 nq 2:
<message device="Paramount" timestamp="2020-05-02T21:15:09" message="[ERROR] Error reading from TheSky6 TCP server."/>
 
2020-05-02T21:15:09: Client 5: sending msg copy 1 nq 2:
<message device="Paramount" timestamp="2020-05-02T21:15:09" message="[ERROR] Error reading from TheSky6 TCP server."/>
 
2020-05-02T21:15:09: Driver indi_paramount_telescope: read setSwitchVector Paramount CONNECTION Alert
    CONNECT='Off'
 DISCONNECT='On'
2020-05-02T21:15:09: Client 0: queuing <setSwitchVector device='Paramount' name='CONNECTION'>
2020-05-02T21:15:09: Client 5: queuing <setSwitchVector device='Paramount' name='CONNECTION'>
2020-05-02T21:15:09: Client 0: sending msg copy 2 nq 2:
<message device="Paramount" timestamp="2020-05-02T21:15:09" message="[DEBUG] Handshake failed."/>
 
2020-05-02T21:15:09: Client 5: sending msg copy 1 nq 2:
<message device="Paramount" timestamp="2020-05-02T21:15:09" message="[DEBUG] Handshake failed."/>
 
2020-05-02T21:15:09: Client 0: sending msg copy 2 nq 1:
<setSwitchVector device="Paramount" name="CONNECTION" state="Alert" timeout="60" timestamp="2020-05-02T21:15:09">
    <oneSwitch name="CONNECT">
Off
    </oneSwitch>
    <oneSwitch name="DISCONNECT">
On
    </oneSwitch>
</setSwitchVector>
 
2020-05-02T21:15:09: Client 5: sending msg copy 1 nq 1:
<setSwitchVector device="Paramount" name="CONNECTION" state="Alert" timeout="60" timestamp="2020-05-02T21:15:09">
    <oneSwitch name="CONNECT">
Off
    </oneSwitch>
    <oneSwitch name="DISCONNECT">
On
    </oneSwitch>
</setSwitchVector>

Any thoughts greatly appreciated.

Regards,

Steve
2 years 1 month ago #53144

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

  • Posts: 1029
  • Thank you received: 301

Replied by Eric on topic Re:SkyX Connection Problem

Is TheSkyX's a multi-client server? It seems the driver is trying to initiate a first connection, as if it was alone with the scope. Try to not do the handshake with TheSkyX first?

But maybe I'm getting you wrong. If the current paramount indi driver can't connect by itself, that may be an issue to open on github. Version issue maybe?

-Eric
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
2 years 1 month ago #53155

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

  • Posts: 27
  • Thank you received: 2

Replied by Steve on topic Re:SkyX Connection Problem

Thanks for the reply, Eric. I don't know if TheSkyX can handle multiple clients but one step at a time :) It's something I may be able to work around.

Anyway, the solution to the problem is here:

indilib.org/forum/general/6907-paramount-connection-on-mac.html

Unfortunately my scripts require that the "TCP Responses Close Socket" option is selected so I'm at a bit of an impasse. No big deal though. There are other options.

Steve
2 years 1 month ago #53481

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

  • Posts: 1029
  • Thank you received: 301

Replied by Eric on topic Re:Re:SkyX Connection Problem

I was under the impression that you attempted to connect to the TheSkyX server from both your script and the indi driver at the same time, which probably cannot work given the implementation of the driver. I think I have not understood what you described, sorry.

-Eric
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
2 years 1 month ago #53517

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

Time to create page: 0.460 seconds