Non-POSIX parity (mark/space) with Python-Serial on Linux.

mlenz at nocturnal.org mlenz at nocturnal.org
Mon Nov 21 09:00:55 EST 2011


I'm working on a project where I need to communicate with some devices via modem which have the possibility of using MARK and SPACE parity.  These are not defined by POSIX and therefore are not directly supported under Linux.

I've found the following discussion on the topic:

http://www.lothosoft.ch/thomas/libmip/markspaceparity.php

and I have been trying to use this information (since the TERMIOS module is available) to proceed with the communication.

I was able to use minicom to determine that the first device I started testing with uses 7M1 but cannot figure out how to implement the solution described by the author above.

Any pointers would be greatly appreciated.



More information about the Python-list mailing list