Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Accessing Serial port on windows and Linux

by Anonymous Monk
on Jan 13, 2010 at 08:19 UTC ( #817130=note: print w/replies, xml ) Need Help??


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

How do you specify speed, parity and xon/off?
  • Comment on Re^2: Accessing Serial port on windows and Linux

Replies are listed 'Best First'.
Re^3: Accessing Serial port on windows and Linux
by afoken (Monsignor) on Jan 16, 2010 at 07:37 UTC

    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". ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://817130]
help
Chatterbox?
Discipulus without Corion and with choroba in another timezone the monastery was silent.. I was silbing alone in the cloister
[choroba]: Yes, I feel alone in the cyberspace...
[choroba]: Not many occasions to talk to my wife, either :-(
Discipulus s/silbing/whistle/ dunno from where this word was in my mind..
[Discipulus]: lost in time in space and in the meaning (rocky horror picture show)
[Corion]: Discipulus: Yeah, a short vacation on the Canary islands (Lanzarote). Always great to be in the warmth and sun, from a cold and rainy February here ;)
[Corion]: choroba: Yeah, you have to find a time for the regular skype (or whatever) meetup, I imagine that's hard

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2017-02-22 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (325 votes). Check out past polls.