Re: [LHA-misc] Newbie Linux Serial Port Question
Status: Beta
Brought to you by:
ncherry
From: Michael <ka...@th...> - 2002-02-02 06:31:21
|
On Fri, Feb 01, 2002 at 22:00:17, Lloyd Ferguson said... > I want to control an RS-232 device from my Linux box. It uses a very > simple serial protocol and ideally I would like to write to and read from > it in a shell script. That's going to be very difficult, I'm not even sure it's possible. > serial port from shell scripts. Eventually, I would like to do it in C or > Perl but that is beyond my ability with those languages right now, any > pointers to resources on this would be appreciated for future reference. For C, a book called "Advanced Programming in the Unix Environment" by Stevens. Good book, he has a few more books that are similar, including some good ones on TCP/IP. I haven't done anything like this in perl yet, but I know there are a few modules on www.cpan.org dealing with serial ports. > Also, can anybody recommend a simple terminal emulator to allow me to > communicate with the box directly (something like hyperterm)? I have tried Excellent program called minicom. -- Michael Stella | Sr. Unix Engineer | http://www.thismetalsky.org "Thanks to modern chemistry, sleep is now optional." - The Descendents, "I Don't Want to Grow Up" |