×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Ekos, INDI, SkySafari, and NexStar

  • Posts: 333
  • Thank you received: 24
Hi,

So far things with Ekos are going well. One thing that is a problem is when Ekos/KStars exists..

If SkySafari is used to slew the mount while previewing images with Ekos, then Ekos/KStar exits (crashes or shuts down), when Ekos is relaunched the INDIServer will not reconnect to NexStar. All other devices reconnect fine.

Any ideas how to resolve over than rebooting the rpI3?

Thank you,
Stephen
7 years 2 months ago #14184

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

Run KStars in gdb and send in backtrace. Check my signature on how to submit logs.
7 years 2 months ago #14185

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

  • Posts: 333
  • Thank you received: 24
This is not forgotten and only delayed due to time - logs are coming. Thank you for the help.

The test will be:

RPI3:
1. Setup Ekos per normal, with debug loging enabled
2. Use Kstars to slew mount.

On Mac:
1. Start Skysafari
2. Connect Skysfari to mount:
- uses libnexstar-0.15.tar.gz, ser2net and socat
- ser2net uses: 3300:raw:0:/dev/ttyUSB0:9600 NONE 1STOPBIT 8DATABITS
3. Use Skysafari to slew to a different star

Test:
a) disconnect INDISERVER and stop INDI
b) Use Skysafari to slew to another star
c) restart INDIServer, connect, and use KStar to slew to another star.

EXPECTED results:
- INDISERVER will not reconnect.

As soon as logs are gathered they will be posted.




3300:raw:0:/dev/ttyUSB0:9600 NONE 1STOPBIT 8DATABITS
7 years 2 months ago #14277

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

  • Posts: 333
  • Thank you received: 24
Please find attached some logs regarding indi_celestron_gps not connecting if using ser2cat with sky safari.

Debugging nexstar not reconnecting if sky safari connects using ser2cat

Setup:
- kstars started as pi user
- indiserver started via Ekos remote (localhost) using indiwebserver
- indiwebserver is run as root (would like to run all as pi but cannot due to at least the ASI224MC-cooled not being detected; put a note in the ZWO forum)

Test:
- Reboot RPI3
- ssh to RPI3 as user pi
- sudo systemctl start indiwebmanager.service (User is root)
- start Kstars
- Open Ekos
- connect to indiserver as remote
- connect all devices: nexstar (indi_celestron_gps), asi efw, asi 1600, asi 224
- enable debug everything on nexstar
- slew to merak
- start Skysafari on Mac and connect via ser2net on RPI3 via port 3300
- Note - RA/DEC match for both SkySafari and KStars
- return to Kstar, Ekos - disconnect and reconnect:
- Note Telescope tab is grayed out
- disconnect and stop
- Start INDI and connect
- cannot even enable debug.
- restart indi and attempt to connect nexstar which fails
- Everything will reconnect but nexstar
- Disconnect skysafari
- restart INDI:
- can turn on debugging
- cannot connect
- exit Kstars
- noticed there was still a indi_celestron_gps process running
- relaunch Kstars
- still connect reconnect indi_celestron_gps
- Must reboot to connect


Aside, I even tried reseting the USB port, which switched it from ttyUSB0 to ttyUSB1. It did not work, and you will see this at the end of the logs. Rebooting RPI3 allows all to work again.

Quick note - the video for running kstars in signature did not work for me. I did enable debuging and did enable all debug levels
Last edit: 7 years 1 month ago by Stephen. Reason: added note
7 years 1 month ago #15046
Attachments:

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

If you're using ser2net, why are you still accessing /dev/ttyUSB0 from INDI? You have two programs accessing the same serial port which could be problematic. Recently, I added TCP server support to all mount drivers. If I understood correctly, ser2net listens for port 3000? then in Options of Nexstar, set IP address to "localhost" and port to 3000 and connect to the TCP server instead of raw serial port. Try that and see if you solves your issues.
7 years 1 month ago #15047

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

  • Posts: 333
  • Thank you received: 24
It would be great to have INDI use ser2net. It results in:
Error connecting to port . Make sure you have BOTH write and read permission to the port.

**Steps:**
- Set ports to blank
- set TCP Server Address to localhost, and port to 3300.
- Press **Connection button results in an error:**
Error connecting to port . Make sure you have BOTH write and read permission to the port.

**Configuration:**
edit sudo nano /etc/ser2net.conf, and configured as (works for SkySafari from Mac or iOS):
- 3300:raw:0:/dev/ttyUSB0:9600 NONE 1STOPBIT 8DATABITS

- Installed via sudo apt-get install ser2cat
- tried running Kstars as root and pi users - same result
7 years 1 month ago #15058

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

Are you using latest INDI EQMod?
$ apt-cache policy indi-eqmod
indi-eqmod:
  Installed: 0.3+r2902~201703081849~ubuntu16.04.1
  Candidate: 0.3+r2902~201703081849~ubuntu16.04.1
  Version table:
 *** 0.3+r2902~201703081849~ubuntu16.04.1 500
        500 http://ppa.launchpad.net/mutlaqja/ppa/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status

Ok, I'll test the ser2net stuff here and see if I get any issues. Will update you.
7 years 1 month ago #15060

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

  • Posts: 333
  • Thank you received: 24
Yes, I believe it matches:

pi@pi:~$ apt-cache policy indi-eqmod
indi-eqmod:
Installed: 0.3+r2902~201703081849~ubuntu16.04.1
Candidate: 0.3+r2902~201703081849~ubuntu16.04.1
Version table:
*** 0.3+r2902~201703081849~ubuntu16.04.1 500
500 ppa.launchpad.net/mutlaqja/ppa/ubuntu xenial/main armhf Packages
100 /var/lib/dpkg/status

Thank you for checking.
7 years 1 month ago #15061

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

  • Posts: 200
  • Thank you received: 57
Which driver in skysafari are you using?
7 years 1 month ago #15068

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

  • Posts: 333
  • Thank you received: 24
SkySafari's Celestron CGEM driver.
7 years 1 month ago #15069

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

So I just tried to run EQMod using ser2net and it worked right away without any issues (using new code in INDI, not yet available in PPA). I tried to connect from SkySafari but it doesn't have EQMod so I couldn't check there but I would guess it would work since the port was working fine. Hopefully when I'm done testing this, it will go back to INDI and you'll see the changes.
7 years 1 month ago #15071

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

  • Posts: 333
  • Thank you received: 24
Great news! If you wish me to test let me know.

Having these two work together would be excellent and I will help where possible.

Thank you Jasem
7 years 1 month ago #15077

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

Time to create page: 0.668 seconds