[Twisted-Python] serial port protocols

Itamar Shtull-Trauring itamar at itamarst.org
Mon Jun 15 09:43:38 EDT 2009

On Sat, 2009-06-13 at 21:13 +1000, Brendan Simon wrote:
> Can twisted be used to access a serial port on OS X, MS Windows, linux,
> etc ???

Yes, via the twisted.internet.serial module.

> Is there any support for serial protocols (eg. BISYNC, PPP, etc) ???

You'd have to write them yourself, except for a couple, e.g. Logitech
Serial Mouse
(http://twistedmatrix.com/trac/browser/tags/releases/twisted-8.2.0/twisted/protocols/mice/mouseman.py) and a couple of GPS protocols.

> Can twisted be used to create custom serial protocols ???

Yes. For example,
shows how to use the mouse protocol.

More information about the Twisted-Python mailing list