opening a serial port at a given baudrate. How?

Erno Kuusela erno at
Tue Apr 4 21:20:25 CEST 2000

>>>>> "davida" == David Arnold <arnold at> writes:
    davida> on unix (including linux), just open the device special
    davida> file corresponding to the serial port of interest
    davida> (ie. /dev/ttyS0) and you can then control it using
    davida> fcntl.ioctl() function and otherwise read from and write
    davida> to it like a normal file object.

i believe the termios module is for ftwiddling with serial
ports on unix. see for example
for example code.

   -- erno

More information about the Python-list mailing list