knro / indiwebmanager

Web Manager for INDI Server
http://www.indilib.org
GNU Lesser General Public License v2.1
44 stars 35 forks source link

Add support for ser2net #33

Closed agners closed 5 years ago

agners commented 5 years ago

For mounts which use serial port it would be a nice addition to enable ser2net. This can be useful e.g. for firmware upgrade or to support application which connect directly to a Celestron mount.

knro commented 5 years ago

It's already possible to connect to mount that is available over TCP/IP using ser2net or natively. Have you tested connecting to the mount this way?

agners commented 5 years ago

Sorry, I was probably not quite clear: I meant it would be nice to enable ser2net on mounts which are connected locally on a serial port.

E.g. for Celestron, forwarding the serial port directly using ser2net allows to use SkySafari. As far as I understand this only works if SkySafari can talk to the mount directly (e.g. using ser2net) and not via INDI....

knro commented 5 years ago

Ok. Well, this is an INDI issue to begin with, not indiwebmanager issue. Also, I think this is an extra step that does not belong at the INDI driver layer

agners commented 5 years ago

Hm, I was more thinking of an extension of indiwebmanager which (completely independent of indi) is capable of starting ser2net (similar to how indi starts indiserver).

My setup is

 [ mount ] -- serial -- [ RPi with indiwebmanager/INDI ] -- TCP/IP -- KStars etc...

Currently, when I want to get access to the serial port, I stop the indiserver using indiwebmanager, ssh in, and start ser2net.

What I would like to do is use indiwebmanager to start ser2net alternatively to INDI using the web frontend:

 [ mount ] -- serial -- | indiwebmanager -- INDI -- ] -- TCP/IP -- KStars etc...
                        |  \
                        |   -- ser2con ------------ | -- TCP/IP -- Other tools 
agners commented 5 years ago

I made a prototype with very basic ser2net support:

https://github.com/agners/indiwebmanager-ser2net