Stellarium and SOCAT
manelvelasco opened this issue · comments
Hi, I'm trying to use your amazing code to make a "push to" camera system. I try to use stellarium as visualizer, but there is no way to configure lx200 protocol over TCP/IP protocol.
After reading your suggestion in the code to use
socat GOPEN:/dev/ptyp0,ignoreeof TCP:raspberrypi8:4030
i get an error indicating that stellarium is unable to open dev/ptyp0, even using it as root.
Could you please make me any suggestioon to solve the problem?
Thanks
I answer myself, after some efforts I'm able to redirect the serial port to TCP, the command line is:
sudo socat pty,link=/dev/vmodem0,waitslave tcp:SERVER-IP:SERVER-PORT
You have to do it with sudo, otherwise you don't have permission to create the vmodem0 at /dev
To allow stellarium to access it you have two options:
1- change the permissions of /dev/vmodem0 with chmod
2.- Start stellarium as root