Using Perl to access serial ports

Igor Pechtchanski pechtcha@cs.nyu.edu
Tue May 31 15:20:00 GMT 2005


On Tue, 31 May 2005, Jason Pearce wrote:

> ps. I was never able to get the /dev/com1 or /dev/ttyS1 devices working.
> I expected that I would be able to echo commands into /dev/com1 and cat
> replies from it.

Just FYI: /dev/ttyS* devices are numbered from 0, so /dev/com1 corresponds
to /dev/ttyS0...  Also, if you have a sequence of shell commands that
should work but don't (e.g., stty followed by echo followed by read/cat),
could you please post them, along with an equivalent program (whether perl
or C) that does work?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list