Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Accessing Serial port on windows and Linux

by afoken (Parson)
on Jan 16, 2010 at 07:37 UTC ( #817737=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Accessing Serial port on windows and Linux
in thread Accessing Serial port on windows and Linux

By using ioctl, at least on Linux. The various serial port modules take care of that when you use them. I think Windows has something similar, RTFM. In the worst case, you get the OS defaults for the port.

Note that /dev/S01 is usually not your first serial port. That would be named /dev/ttyS0, and the second one /dev/ttyS1. USB converters usually appear as /dev/ttyUSB0, /dev/ttyUSB1, and so on. (/dev/S01 seems to be a typo or a system-specific device.)

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)


Comment on Re^3: Accessing Serial port on windows and Linux

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://817737]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2014-10-25 07:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (142 votes), past polls