Hello!
I am working on an application which reads environmental instruments which have serial ports. The application requires a serial port to be present to talk to the device (i.e. /dev/ttyS0 ). In some instances the environmental devices will be 100's of yards away from the computer, so a serial cable becomes a liability. In these scenarios we would like to use a multi-port terminal server which serves up multiple serial connections via telnet.
I have almost solved the problem...but need some help finishing. DETAILS:
The configuration we have is:
Computer/Ubuntu 9.04 --> Ethernet ----> Telnet Based Serial Device Server --> Serial Device
I have run remserial and am able to interact with the serial device using socat or netcat from the terminal. However, SJINN as with as other serial port viewers are unable to connect to the generated pseudo serial port. I get an error about ioctrl.
DETAILED STEPS I FOLLWED:
1) Create a file in /dev called �remserial1� and chmod this to 777.
2) Run
./remserial -d -r XXX.XXX.XXX.XXX -p 10001 -l /dev/remserial1 /dev/ptmx &
3) When I do the following command
socat - /dev/remserial1,raw,crnl &
I can interact with the serial device as if I had a serial connection to it.
The Issue: When I use a normal serial viewer (in this case SJINN or Serial Port Terminal gtkterm) with gtkterm I get �Control signals read: Invalid argument�. With SJINN I get an error involving ioctrl.
I believe that it has to do with trying to read a pseudo terminal, but am at my wits end , any advice would be appreciated. Also, before linking netcat or socat examples, please remember that an application on the computer must speak with a serial port, which is then relayed over telnet and back to a serial device without buying some serial port redirector package.