[Pythonmac-SIG] interrogating I/O Registry

Brendan Simon (eTRIX) Brendan.Simon at eTRIX.com.au
Mon Jun 22 04:58:21 CEST 2009


I have a USB device that registers itself as a serial device
(/dev/usbmodemXXXX).

I have used pyusb to detect the device, and now I need to know what
serial device has been "created" so I can talk to it using pyserial.

I don't know what the best way is to find that association, but I came
across the I/O registry via a google search, and I think that will give
me enough info to obtain that association.

Is there a python way of reading the OS X I/O Registry ???

All I've come up with so far is to run the "ioreg" command via the
subprocess module and parse the output.

Is there a better python module to interrogate the I/O registry ??

or is there a better way to find the association between the USB serial
device and the serial device filename that is generated ??

Thanks very much for any help or pointers,
Brendan.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Brendan_Simon.vcf
Type: text/x-vcard
Size: 267 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20090622/3bedf372/attachment.vcf>


More information about the Pythonmac-SIG mailing list