Is it possible to use python to get True Full Duplex on a Serial port?

Grant Edwards invalid at invalid
Fri Aug 14 16:19:04 CEST 2009


On 2009-08-14, Hendrik van Rooyen <hendrik at microcorp.co.za> wrote:

> In the meantime I have had another idea which I have also not tried yet, 
> namely to do independent opens for reading and writing, to give me two file 
> instances instead of one, and to try with that.  I have no idea if it would 
> make any difference, or even work at all.

That should work (and shouldn't make any difference)

> My normal stuff works, but I do not like it as it is
> essentially busy looping with short sleeps in between. In the
> eBox, it uses most of the processor just to move a few bytes
> of I/O in and out between the serial port and the TCP/IP, and
> struggles to do that better than five times a second, while
> the message time on the 115200 baud port is only about 2
> milliseconds.

What platform are you using?  I suppose it's possible that
there's something broken in the serial driver for that
particular hardware.

-- 
Grant Edwards                   grante             Yow! I feel ... JUGULAR ...
                                  at               
                               visi.com            



More information about the Python-list mailing list