[PythonCE] Using serial ports

David McNab rebirth at orcon.net.nz
Sun May 31 13:08:31 CEST 2009


I'm able to open COM1: serial port with the usual file() function, and
write to it with the normal write() method.

But how do I set the speed and other line parameters?

If I try to import the 'tty' module it complains that there's no
'termios' module.

Also, I tried the 'ceserial.py' module which has popped up on some
discussions, but it crashes in its Serial.open() method with a most
unhelpful exception string '50'.

What's the best way to go about using serial ports in pythonce?

Thanks in advance for your help


More information about the PythonCE mailing list