gloo: move serial ports around
Back to resources
Gloo will connect serial ports on your system to stdio stream, tcp sockets, or indeed anything to anything.
Gloo consists of three programs:
- gloo: which takes two unix commands and cross connects their stdins and stdouts
- tcp2stdio: which connects stdin and stdout to a tcp port.
- serial2stdio: which connects stdin and stdout to a serial port.
I wrote gloo to use with POSE and to allow me to test software which talked to instruments on a serial port when I was in Pasadena and the instruments were in Cambridge (that's the one with the river Cam at 52.2N 0.1E, not the one with the river Charles, go figure).
a typical use to connect ttyS0 here to ttyS3 on aquila at 19200 bps would be
[james@hecate gloo]$ ./gloo ./serial2stdio /dev/ttyS0 0 19200 -- /usr/bin/ssh aquila /root/projects/gloo/serial2stdio /dev/ttyS3 0 19200
The first arguemnt to serial2stdio is if it should echo chars on stderr for you to debug the serial conversatition.
Take me to the files