Thomas Götz replied to the topic 'indi_celestron_aux' in the forum. 3 years ago

rickbassham wrote: github.com/rickbassham/indi-celestron-cgx/


Hi, built your driver both on RPI and PC (Ubuntu 20), confirmed to connect and interact with the CGX.

But anything goes wrong, goto's result in pointing to anywhere, not to the target.

Is there a howto for this driver ?

Read More...

Thomas Götz replied to the topic 'indi_celestron_aux' in the forum. 3 years ago

Hi,

made a bugreport "indi-celestronaux does'nt work on USB PC Port of CGX" in https://github.com/indilib/indi-3rdparty/issues/298, one answer was to report here, so :

Hello,

hoped the driver would work when I attach the RPI to the USB PC Port of my CGX, but it does'nt .
Did I misunderstand the usage?
On the other hand, when i connect this port it to my PC, a serial port appears and I can watch the communication with my written program, it displays the traffic between HC, GPS and so on when scope powered on.
Using the USB Serial on Handcontroller it works as expected.


And here further details:

Gelestron CGX, EQ-N mode. Homebrew GPS Module at AUX2, Handcontroller (short HC correct?) at AUX1
RPI 4, Astroberry like setup.


built indi & 3rd party drivers from github.com/indilib/indi and github.com/indilib/indi-3rdparty

Indi works with Celestron CGX driver (INDI Web Manager), USB via HC Port connected to RPI, Driver appears in indi control panel as Celestron GPS.

this setup doesnt work when connected to PC USB Port of Mount

lsusb shows the device: Bus 001 Device 006: ID 15a2:a50f Freescale Semiconductor, Inc.

Listening with my java app shows the traffic on PC USB Port, example:

Received: 9
0x00000000 3B 06 0D 10 04 40 00 00 99 ;....@...
Received: <HDR 3b len 6 Src HCP Dst AZM Cmd MC_SET_POSITION Data <40 00 00 >
Received: 6
0x00000000 3B 03 10 0D 04 DC ;.....
Received: <HDR 3b len 3 Src AZM Dst HCP Cmd MC_SET_POSITION Data <>
Received: 9
0x00000000 3B 06 0D 11 04 40 00 00 98 ;....@...
Received: <HDR 3b len 6 Src HCP Dst ALT Cmd MC_SET_POSITION Data <40 00 00 >
Received: 6
0x00000000 3B 03 11 0D 04 DB ;.....
Received: <HDR 3b len 3 Src ALT Dst HCP Cmd MC_SET_POSITION Data <>
Received: 9
0x00000000 3B 06 0D 10 3A C0 00 00 E3 ;...:....
Received: <HDR 3b len 6 Src HCP Dst AZM Cmd 3A Data <C0 00 00 >
Received: 6
0x00000000 3B 03 10 0D 3A A6 ;...:.
Received: <HDR 3b len 3 Src AZM Dst HCP Cmd 3A Data <>
Received: 6
0x00000000 3B 03 0D 10 38 A8 ;...8.
Received: <HDR 3b len 3 Src HCP Dst AZM Cmd 38 Data <>
Received: 6
0x00000000 3B 03 10 0D 38 A8 ;...8.
Received: <HDR 3b len 3 Src AZM Dst HCP Cmd 38 Data <>
Received: 9
0x00000000 3B 06 0D 11 3A C0 00 00 E2 ;...:....
Received: <HDR 3b len 6 Src HCP Dst ALT Cmd 3A Data <C0 00 00 >
Received: 6
0x00000000 3B 03 11 0D 3A A5 ;...:.
Received: <HDR 3b len 3 Src ALT Dst HCP Cmd 3A Data <>
Received: 6
0x00000000 3B 03 0D 11 38 A7 ;...8.
Received: <HDR 3b len 3 Src HCP Dst ALT Cmd 38 Data <>
Received: 6
0x00000000 3B 03 11 0D 38 A7 ;...8.
Received: <HDR 3b len 3 Src ALT Dst HCP Cmd 38 Data <>

Sending Data to the port works:
You select : APP
Sent:
0x00000000 3B 03 20 11 FE CE ;.....
<HDR 3b len 3 Src APP Dst ALT Cmd GET_VER Data <>

You select : ALT
Received: 10
0x00000000 3B 07 11 20 FE 07 11 00 19 99 ;.........
Received: <HDR 3b len 7 Src ALT Dst APP Cmd GET_VER Data <07 11 00 19 >


Next Step: selecting the Celestron Aux driver in indi web manager.
In indi control panel it displays version 0.7

Connection fails with:

20:35:48.285: [DEBUG] Connecting to /dev/ttyACM0 @ 19200
20:35:48.285: [DEBUG] Port FD 3
20:35:48.285: [DEBUG] Connection successful, attempting handshake...
20:35:48.285: [DEBUG] CAUX: connect 3 (serial)
20:35:48.285: [INFO] Detected AUX or PC port connection.
20:35:48.285: [INFO] Setting serial speed to 19200 baud.
20:35:48.285: [INFO] Trying to contact telescope motor controllers.
20:35:48.285: [ERROR] Got no response from target ALT or AZM.
20:35:48.285: [ERROR] Cannot continue without connection to motor controllers.
20:35:48.285: [DEBUG] Handshake failed.

Hope this helps.

Read More...