[Ilugc] Serial Communication - Mark/Space parity problem

  • From: ganeshpulsars@xxxxxxxxx (M.Ganesh)
  • Date: Tue Feb 9 16:52:12 2010

On 09/02/2010 16:09, Suresh Kumar Subramanian wrote:

Hi,

   
I am trying to use python&  pyserial on Ubuntu 9.10 to communicate with
a serial device. I need to be able to set the parity bit Mark/Space for
this particular device. I understand linux/posix compliant OSs don't
natively support this. I googled and found this [
http://www.lothosoft.ch/thomas/libmip/markspaceparity.php ] link and
implemented that in my code. With this I am able to send only one byte
with my desired parity and the port somehow goes back to 'No parity'
after one byte.
Can somebody suggest me a solution or point me to more resources
     
I have used termios library with C for serial programming. Its good.
http://tldp.org/HOWTO/Serial-Programming-HOWTO/x115.html
Thanks
Suresh


   

Suresh
Have you specifically used Mark/Space parity? I am having trouble with 
that parity setting only

Regards Ganesh

Other related posts: