Tutorial on programming devices?

Andrew Bennetts andrew-pythonlist at puzzling.org
Wed Mar 19 08:42:23 EST 2003


On Wed, Mar 19, 2003 at 08:32:09AM +0000, Enno Middelberg wrote:
> Hi,
> 
> I want to write some code to read data from my GPS receiver. The
> signals will arrive via a serial link which I want to process and
> store.
> 
> I do not have a clue on how to read/write from/to devices using
> Python. So far, I have only written scripts to process data stored in
> files. Does anybody know a good starting point for reading or a
> tutorial?

Twisted <http://twistedmatrix.com/> has some code in twisted.protocols.gps
for working with GPS devices via a serial port, using the pyserial module.
There's a simple demo of the code in doc/examples/gpsfix.py in the Twisted
distribution.

Regards,

-Andrew.






More information about the Python-list mailing list