[Twisted-Python] reading serial port asynchronously

Jean-Paul Calderone exarkun at divmod.com
Sun Oct 21 18:42:32 MDT 2007


On Sun, 21 Oct 2007 17:34:34 -0700, Tom Brown <brown at esteem.com> wrote:
>Hi,
>
>I have an application that reads characters off the serial port in a
>thread. The problem is, the entire application will hang sometimes. I
>believe it is a threading problem, but I can't pinpoint why the
>application hangs. So, I'd like to get away from threads and thought
>Twisted may help me.
>
>I was told Twisted has the ability to interface with serial ports. I
>don't know where to look for the information on how to do this. Any
>ideas on where to start looking or pointers on how to accomplish this?
>

Take a look at the mouseman example:

http://twistedmatrix.com/trac/browser/trunk/doc/core/examples/mouse.py

>Thanks,
>Tom
>
>
>_______________________________________________
>Twisted-Python mailing list
>Twisted-Python at twistedmatrix.com
>http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>




More information about the Twisted-Python mailing list