×

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

Bi-monthly release with minor bug fixes and improvements

Skywatcher AZ GTi with Ekos

  • Posts: 407
  • Thank you received: 74
================

Its strange in that I did an experiment using a PI Zero W using UDP 11880 via SER2NET with a USB adapter connected to the Zero W using the Indi Skywatcher ALTAZ driver on another RPI3 which works in "Direct Serial Mode" using ALTAZ driver - it fails after the connection is made ("handshake failure") - the reason why I say this is strange is If I swop RPI3/Indi for Synscan app on windows this set up works perfectly .

question :
1 I would have expected the Indi ALTAZ driver over UDP via the SER2net to have worked as it is transparent to Indi Driver which is unaware of the hardware connections being used -- Or is it??????

2. Is the Indi Driver ok but its a timing issue - i.e. it doesn't get a response within a timeout (NOTE I did NOT change any timeout parameters in the Driver Connection Option)

3. What are the reasons the driver creates an error "Hand shake error" ?
RPI3 Ubuntu 16.04 / AMD desktop Kstars under Ubuntu 16.04 Mounts :azeq6 ,SWAZGoTo

RPI3 Fedora testing out on AMD desktop Fedpra 28 - running kstars 2.9.4 , Indilib 1.7.4 ?????
The following user(s) said Thank You: Tarun
5 years 7 months ago #28756

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

  • Posts: 407
  • Thank you received: 74
Here is the wireshark ouput of the UDP - connects ok and the remote UDP/Mount replies with what I think is std reply (?) then nothing more happens !!!!!!
RPI3 Ubuntu 16.04 / AMD desktop Kstars under Ubuntu 16.04 Mounts :azeq6 ,SWAZGoTo

RPI3 Fedora testing out on AMD desktop Fedpra 28 - running kstars 2.9.4 , Indilib 1.7.4 ?????
Last edit: 5 years 7 months ago by Clive Stachon. Reason: forgot reply
5 years 7 months ago #28760
Attachments:

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

  • Posts: 407
  • Thank you received: 74
plus log file
RPI3 Ubuntu 16.04 / AMD desktop Kstars under Ubuntu 16.04 Mounts :azeq6 ,SWAZGoTo

RPI3 Fedora testing out on AMD desktop Fedpra 28 - running kstars 2.9.4 , Indilib 1.7.4 ?????
5 years 7 months ago #28761
Attachments:

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

I'm currently on vacation so can't do much about this. Can't you debug the source code and see where it fails? Here is a short guide:

www.indilib.org/develop/developer-manual...ent-environment.html
The following user(s) said Thank You: Clive Stachon
5 years 7 months ago #28762

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

  • Posts: 125
  • Thank you received: 24

Replied by Tarun on topic Skywatcher AZ GTi with Ekos

I have been debugging mount with few modifications on the ALT AZ drive code . I am using UDP with 11880 port and i am not seeing any response from the mount back. Basically it's been timing out at tty_read method.

What my doubt here is , does it need UDP protocol to work with mount or is it going to be Serial?
Last edit: 5 years 7 months ago by Tarun.
5 years 7 months ago #28763

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

  • Posts: 125
  • Thank you received: 24

Replied by Tarun on topic Skywatcher AZ GTi with Ekos

Thank you stash for pointing out the time out issue. I reduced the time out to 0 Or 1 , now i am seeing response from the mount.
Here are the logs

2018-08-19T17:22:10.064 PDT DEBG ][ org.kde.kstars.indi] - Skywatcher AZ-GTI : "[SCOPE] TalkWithAxis Axis AXIS1 final command :e1 "
[2018-08-19T17:22:10.064 PDT DEBG ][ org.kde.kstars.indi] - Skywatcher AZ-GTI : "[DEBUG] skywatcher_azgti_tty_write: "
[2018-08-19T17:22:10.065 PDT DEBG ][ org.kde.kstars.indi] - INDI Server: "2018-08-20T00:22:10: Driver indi_skywatcherazgti_telescope: tty_write: buffer[0]=0X3A (:)"
[2018-08-19T17:22:10.065 PDT DEBG ][ org.kde.kstars.indi] - INDI Server: "2018-08-20T00:22:10: Driver indi_skywatcherazgti_telescope: tty_write: buffer[1]=0X65 (e)"
[2018-08-19T17:22:10.065 PDT DEBG ][ org.kde.kstars.indi] - INDI Server: "2018-08-20T00:22:10: Driver indi_skywatcherazgti_telescope: tty_write: buffer[2]=0X31 (1)"
[2018-08-19T17:22:10.065 PDT DEBG ][ org.kde.kstars.indi] - INDI Server: "2018-08-20T00:22:10: Driver indi_skywatcherazgti_telescope: tty_write: buffer[3]=0XD (\r)"
[2018-08-19T17:22:10.065 PDT DEBG ][ org.kde.kstars.indi] - INDI Server: ""
[2018-08-19T17:22:10.083 PDT DEBG ][ org.kde.kstars.indi] - INDI Server: "2018-08-20T00:22:10: Driver indi_skywatcherazgti_telescope: tty_read: Request to read 15 bytes with 2 timeout for fd 8"
[2018-08-19T17:22:10.084 PDT DEBG ][ org.kde.kstars.indi] - INDI Server: "2018-08-20T00:22:10: Driver indi_skywatcherazgti_telescope: 8 bytes read and 7 bytes remaining..."
[2018-08-19T17:22:10.084 PDT DEBG ][ org.kde.kstars.indi] - INDI Server: "2018-08-20T00:22:10: Driver indi_skywatcherazgti_telescope: tty_read: buffer[0]=0X3D (=)"
[2018-08-19T17:22:10.084 PDT DEBG ][ org.kde.kstars.indi] - INDI Server: ""
[2018-08-19T17:22:10.084 PDT DEBG ][ org.kde.kstars.indi] - Skywatcher AZ-GTI : "[DEBUG] skywatcher_azgti_tty_read: "
[2018-08-19T17:22:10.084 PDT DEBG ][ org.kde.kstars.indi] - INDI Server: "2018-08-20T00:22:10: Driver indi_skywatcherazgti_telescope: tty_read: buffer[1]=0X30 (0)"
[2018-08-19T17:22:10.084 PDT DEBG ][ org.kde.kstars.indi] - INDI Server: "2018-08-20T00:22:10: Driver indi_skywatcherazgti_telescope: tty_read: buffer[2]=0X33 (3)"
[2018-08-19T17:22:10.084 PDT DEBG ][ org.kde.kstars.indi] - INDI Server: "2018-08-20T00:22:10: Driver indi_skywatcherazgti_telescope: tty_read: buffer[3]=0X30 (0)"
[2018-08-19T17:22:10.084 PDT DEBG ][ org.kde.kstars.indi] - INDI Server: "2018-08-20T00:22:10: Driver indi_skywatcherazgti_telescope: tty_read: buffer[4]=0X44 (D)"
[2018-08-19T17:22:10.084 PDT DEBG ][ org.kde.kstars.indi] - INDI Server: "2018-08-20T00:22:10: Driver indi_skywatcherazgti_telescope: tty_read: buffer[5]=0X41 (A)"
[2018-08-19T17:22:10.084 PDT DEBG ][ org.kde.kstars.indi] - INDI Server: "2018-08-20T00:22:10: Driver indi_skywatcherazgti_telescope: tty_read: buffer[6]=0X35 (5)"
[2018-08-19T17:22:10.085 PDT DEBG ][ org.kde.kstars.indi] - INDI Server: "2018-08-20T00:22:10: Driver indi_skywatcherazgti_telescope: tty_read: buffer[7]=0XD (\r)"
The following user(s) said Thank You: Clive Stachon
5 years 7 months ago #28764

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

  • Posts: 447
  • Thank you received: 30
Hello

Is the chip of serial conversion cable FTDI? Is it PLC?

I will also describe the environment where I connect serial directly with Skywatcher Virtuoso.

· Original serial conversion cable
FTDI, FT232RL chip, terminal RJ 12, PIN arrangement 1. RXD 2. not connected 3. TXD 4. ground.
(This cable connects directly to the hand controller terminal.)

· SER2NET
After installation,
Added the following setting statement on the last line in sudo nano /etc/ser2net.conf.
4030: Raw: 0: / dev / ttyUSB 0: 9600 NONE 1 STOPBIT 8 DATABITS '

(The setting of SER2NET was added to use SkySafari.)

It is connected and working in this environment.
Last edit: 5 years 7 months ago by T-Studio.
5 years 7 months ago #28766

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

  • Posts: 447
  • Thank you received: 30
The wifi adapter has not arrived yet. .

I will try the connection when it arrives.
5 years 7 months ago #28767

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

  • Posts: 407
  • Thank you received: 74
No the chip is a CH340G which I use over many environments and works as well as the FTDI chipset. As I say the same CH340G adapter works well with Synscan App when on Windows or Android or when used directly on RPI3 via Serial TTYUSB0. I am guessing that it was the UDP route that is the issue as I have written a serial-UDP bridge routine for Ardunio's (ESP286/ESP32) and had issues with the first command sent from the Synscan software. However its not that as the Wireshark is reporting that the Mount has replied with what looks like a valid reply ( I think) so the UDP/Wireless etc is working its the hand shaking is the issue.

My SER2NET line is different as it uses UDP instead of RAW and 11880 as the port number and is running on the RPI Zero W - but as say I dont think ,famous last words,that is the problem.

I will change the timeout to a smaller value as TKOTTARY has done and see if it makes a difference - but setting it to a lower figure seems counter intuitive to me but if that produced a reply from TKottary's mount then thats a good thing.

Had a quick look at the code to see what I could find but fell asleep reading it as I have not done C for a good while :-) I will let the experts do that
RPI3 Ubuntu 16.04 / AMD desktop Kstars under Ubuntu 16.04 Mounts :azeq6 ,SWAZGoTo

RPI3 Fedora testing out on AMD desktop Fedpra 28 - running kstars 2.9.4 , Indilib 1.7.4 ?????
Last edit: 5 years 7 months ago by Clive Stachon.
5 years 7 months ago #28771

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

  • Posts: 447
  • Thank you received: 30
I remembered the setting of ser2net.

This setting was set when connecting your own BBox compatible machine to RPI 3 via USB and connecting to SkySafari wirelessly.
(I am securely connected)

This setting is the same as SkyFi (UDP 4030 RAW 9600 bps without stop bit, stop bit 1, 8 bit parity none) connected to SkySafri.

In this case, RPI 3 was a WiFi parent machine, but this time I think that SkyWathcer mount or WiFi adapter becomes master, RPI 3 becomes slave, serial communication will be done.

Since I think that it is necessary to send and receive serial data with RAW data,

The default setting of Ser2net was for connecting with telnet.

in this case
11880: Raw: 0: / dev / tty USB 0: 9600 None 1 STOPBIT 8 DATABITS '
This add it to /etc/ser2net.conf, you may be able to communicate.

(Today's Shop reply. a WiFi adapter sold out from the store.
shipping response was early September ... ...)
Last edit: 5 years 7 months ago by T-Studio.
5 years 7 months ago #28784

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

  • Posts: 447
  • Thank you received: 30
A little worrisome is to handle SkyWatcher 's Wi - Fi. If serial communication is possible with only one port, it can be set with the INDI driver, but if it is set to communicate using multiple ports, the current INDI driver can not communicate.
Last edit: 5 years 7 months ago by T-Studio.
5 years 7 months ago #28786

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

  • Posts: 407
  • Thank you received: 74
In the latest version of SER2NET there is real UDP comms no need to use Serial at all and this is what I used and works very well with both Windows and Andriod SynScan App using UDP NOT serial

So the Synscan app(Windows or Android)is set to use UDP and expects the Zero W to be listening on port 11880 and the IP address set in SynScan App is that of the ZERO W . The ZERO W is conneced to the SWAZ Mount via a USB Adpter (TTL at Mount END) - THIS WORKS even in the field :-)

So using the same set up BUT replacing SynScan App with Indi/Kstars/SkywatcherALAZ I would expect that this would work. As I have said Wireshark shows the network is connected to the mount and the Mount answers the Indi/Kstars initial handshake of ":e1" with ":e1=010982" but the Indi driver fails to reply and the log says the handshake has failed BUT with a result 0

Even though the Indi driver and mount dont work the UDP communications is working - initially anyway.

Oh well back to the drawing board :-)
RPI3 Ubuntu 16.04 / AMD desktop Kstars under Ubuntu 16.04 Mounts :azeq6 ,SWAZGoTo

RPI3 Fedora testing out on AMD desktop Fedpra 28 - running kstars 2.9.4 , Indilib 1.7.4 ?????
5 years 7 months ago #28790

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

Time to create page: 0.842 seconds