low level device control

Jon Nicoll jkn at nicorp.f9.co.uk
Thu Aug 23 03:58:50 EDT 2001


Hi Greg
    The answers to your questions depend on what Hardware and
Operating System you are using.

- are you saying that you will have a serial device to be able to read
PIN1/PIN2 and to write to PIN3/PIN4? from your description of the
problem it doesn't sound like a match for a 'standard' RS-232 serial
port (ie. COM1:, COM2 etc. on the PC), but you will know more about
this than I.

If this is right, then your problem becomes - how to control a serial
device (COM port) from Python.

Then if you are running under Windows, look at Mark Hammond's
Win32Comm stuff (built into he ActiveState distribution of Python).
There is also an alternative 'Serial' class - look in the Vaults of
Parnassus website.

Under Unix ... I'm not so clued up - sorry.

If you can't use the standard COM ports, then you may need to write a
custom driver/interface to whatever Serial device you are using.
Again, more specifics would be useful.

    HTH
    jon Nicoll



More information about the Python-list mailing list