[Pythonmac-SIG] Osxserialports

Pascal Oberndoerfer p.oberndoerfer@urheberrecht.org
Fri, 07 Feb 2003 16:02:42 +0100


Hello all.


To access a list of currently available serial devices on MacOS X you can
now try an extension. The extension is at

    <http://www.urheberrecht.org/institut/workers/oberndoerfer>


A short description would be

>>>import osxserialports
>>>osxserialports.all() # or osxserialports.modems() or osxserialports.rs232()

This returns (should return) a list of dictionaries, each dictionary
containing some information about a device. The list will be ampty of course
if no serial devices were found. There's a test script called osxsp.py as
well.

I found it useful to solve the problem that you cannot predict what USB port
a USB-to-serial adapter will be connected to.

Would (interested) people provide feedback on the extension please and maybe
what more they'd like to see exposed from IOKit/IORegistry? Cannot promise
anything though ;-)


Thank you.

Pascal