×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

indi_celestron_aux

  • Posts: 17
  • Thank you received: 4

Replied by Jack on topic indi_celestron_aux

Hey Gents,

While it's likely more a user error on my side, @Fabrizio i did compile the new version of the driver and am having an issue ( www.indilib.org/forum/general/8632-inver...kstars-movement.html ). Likely something non driver related.. but just in case!

Jack
3 years 2 months ago #65996
The topic has been locked.
  • Posts: 2
  • Thank you received: 0

Replied by Thomas Götz on topic indi_celestron_aux

Hi,

made a bugreport "indi-celestronaux does'nt work on USB PC Port of CGX" in 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.
Celestron CGX, ASI2600, Homebrew GPS Module
3 years 2 months ago #66289
The topic has been locked.
  • Posts: 216
  • Thank you received: 120

Replied by Rick Bassham on topic indi_celestron_aux

Götz, I don't think this driver will work with the USB port on the CGX as is. It uses the same protocol as this driver, but doesn't use the RTS/CTS signalling this driver uses.

I wrote a custom CGX USB driver you can try out (I've been using it myself for a while and it seems to work fine). It probably won't work in the southern hemisphere though.

github.com/rickbassham/indi-celestron-cgx/
3 years 2 months ago #66291
The topic has been locked.
  • Posts: 2
  • Thank you received: 0

Replied by Thomas Götz on topic indi_celestron_aux


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 ?
Celestron CGX, ASI2600, Homebrew GPS Module
3 years 2 months ago #66424
The topic has been locked.
  • Posts: 216
  • Thank you received: 120

Replied by Rick Bassham on topic indi_celestron_aux

Hey Götz, I just got the driver out under the stars for the first time in a while (clouds) and had some issues as well. I'm going to debug my latest changes to see what's wrong. If you watch the github repo (top right) you'll get a notification when an update is released.
3 years 2 months ago #66442
The topic has been locked.
  • Posts: 276
  • Thank you received: 52

Replied by Gene N on topic indi_celestron_aux

Anyone have any info on the AUX command 0x05 ?
Just wondering, I do not see it enumerated in the auxproto.h nor in the doc from paquettefamily.ca/nexstar/NexStar_AUX_Commands_10.pdf

This is what I see from the HC towards the ALT/AZ on startup
0x3b 0x03 0x0d 0x11 0x05 0xda To ALT, CMD = 5 ???
0x3b 0x05 0x11 0x0d 0x05 0x0c 0x82 0x4a
0x3b 0x03 0x0d 0x10 0x05 0xdb To AZ, CMD = 5 ???
0x3b 0x05 0x10 0x0d 0x05 0x0c 0x82 0x4b

Just wondering about AUX command and not specifically about the indi aux driver
3 years 2 months ago #66522
The topic has been locked.
  • Posts: 64
  • Thank you received: 9

Replied by Fabrizio on topic indi_celestron_aux

Hi,
I have added some features to the indi_celestron_aux driver.
1. direct mount USB connection.
2. cordwrap position computed by alignment subsystem.
3. autoguide: the code is roughly copied from Rick's driver indi_celestron_cgx.
Unfortunately, I haven't any checking setup, so they compile and run without fatal errors but the functionality is completely untested.
If someone brave and patient wants to try them, the code is here github.com/fabriziop/indi-3rdparty/tree/celestronaux_eqtrack
Last edit: 3 years 1 month ago by Fabrizio.
3 years 1 month ago #66698
The topic has been locked.
  • Posts: 276
  • Thank you received: 52

Replied by Gene N on topic indi_celestron_aux

Quick question please,

Is this a valid command?
indi_setprop "Celestron AUX.ALIGNMENT_SUBSYSTEM_ACTIVE.ALIGNMENT SUBSYSTEM ACTIVE=On"

I am trying to do a scripted startup of a Celestron and this is throwing an error

Thank you for your time,

Gene
3 years 1 month ago #67428
The topic has been locked.

Replied by Jasem Mutlaq on topic indi_celestron_aux


Can you please submit the driver for inclusion in INDI 3rd-party repo? This way it can make it to the nightlies and this would make testing a lot easier by end users.
3 years 1 month ago #67440
The topic has been locked.
  • Posts: 276
  • Thank you received: 52

Replied by Gene N on topic indi_celestron_aux

Below is as far as I have gotten in scripting the startup for the Aux driver
The goal for this is I have added index sensors for the base whose status can be read via PI GPIO pins and are at a known location for my local sidereal time and scope altitude
Given the scope is at the ALT/AZ index sensors, the RA/DEC can be calculated close enough that a goto and plate solve will home it in.

So far the initial Connect must be done through the driver screen, I have not found a -t for the connect that does not error back
Two scripts are required, one sets the time and location and enables the math plugin and then need to drop over to the driver screen to enable the alignment subsystem, more on this below.

Script 1, set the parameters time, location
============================================================
#/!bin/bash
port=7624

MYLONG=40:00:00
MYLAT= 275:00:00
MYELEV=100

indi_setprop -p $port -t 10 "Celestron AUX.CONNECTION.CONNECT=On"
indi_setprop -p $port "Celestron AUX.ALIGNMENT_SUBSYSTEM_MATH_PLUGINS.INBUILT_MATH_PLUGIN=On"
indi_setprop "Celestron AUX.GEOGRAPHIC_COORD.LAT;LONG;ELEV=$MYLONG;$MYLAT;$MYELEV"

#Now calculate UTC and set my offset
DATE1=`date -u --iso-8601=ns`
DATE2=(${DATE1//\,/ })
DATE=${DATE2[0]}
DATE="$DATE;-5"
echo $DATE

indi_setprop -p $port "Celestron AUX.TIME_UTC.UTC;OFFSET=$DATE"

#Here it is broken because I so far cannot find a way to setprop to set the subsystem active
echo "Now set alignment system active in driver then set RA"

#### indi_setprop -p $port "Celestron AUX.ALIGNMENT_SUBSYSTEM_ACTIVE.ALIGNMENT SUBSYSTEM ACTIVE=On"

exit 1
============================================================

After going back to the driver screen and enabling alignment subsystem
Script 2, set an initial RA/DEC then do a small slew to enable tracking
=====================================================
#/!bin/bash
port=7624

indi_setprop -p $port -t 10 "Celestron AUX.CONNECTION.CONNECT=On"
NEWRA=23:20:00
DEC=-34:10:10
indi_setprop "Celestron AUX.ON_COORD_SET.SYNC=On"
indi_setprop "Celestron AUX.EQUATORIAL_EOD_COORD.RA;DEC=$NEWRA;$DEC"
indi_setprop "Celestron AUX.ON_COORD_SET.SYNC=On"
NEWRA=23:25:00
DEC=-34:10:10
indi_setprop "Celestron AUX.ON_COORD_SET.TRACK=On"
indi_setprop "Celestron AUX.EQUATORIAL_EOD_COORD.RA;DEC=$NEWRA;$DEC"
3 years 1 month ago #67459
The topic has been locked.
  • Posts: 33
  • Thank you received: 3

Replied by Ken Kelso on topic indi_celestron_aux


Hello Fabrizio,

I finally got around to building your latest code and have just spent a couple of hours testing, so far all is good. The cord-wrap works a treat.
I can only test in Alt/Az.

Ken
3 years 1 month ago #67479
The topic has been locked.
  • Posts: 64
  • Thank you received: 9

Replied by Fabrizio on topic indi_celestron_aux

Hello Ken,

thanks for your feedback.

Fabrizio
3 years 1 month ago #67489
The topic has been locked.
Time to create page: 1.451 seconds