python and I/O

Mike Linnen mlinnen at usa.net
Sat Sep 25 15:29:49 EDT 1999


I want to access both serial and parallel I/O ports.  Looks like the serial
port is faily straight forward using termios but how would I write/read from
the parallel port?

Siggy Brentrup <bsb at baal.infodrom.north.de> wrote in message
news:87u2oibyig.fsf at baal.winnegan.fake...
> "Bill Rodgers" <Bill at nospam.com> writes:
>
> > I don't see how reading and writing to a file descriptor
> > provides access to serial ports, parallel ports or memory
> > mapped I/O.  Usually serial ports require more specific
> > setup criteria such as baud rate, character format (N-8-1, etc).
>
> If you are allowed to access I/O ports directly isn't a language, but
> an operating system issue. Any decent OS, in particular a multitasking
> one, must protect itself and its users from misbehaved programs.
>
> From your answer to Gerrit I presume you want to control a serial
> port. If you're running on *nix, use /dev/ttyS* and look into the
> termios(+TERMIOS) module for setting up serial parameters. I don't
> care enough about Win?? to know their way.
>
> CU
>   Siggy
>
> btw Gerrit: even with your own interpretation RTFM stays bad style.
>
> --
> >>>> In a world without fences, who needs gates?
>
> Siggy Brentrup - bsb at baal.infodrom.north.de - voice: +49-441-6990134
>
>
>






More information about the Python-list mailing list