How can I enumerate (list) serial ports?
jason.heeris at gmail.com
Thu Jun 18 10:10:29 CEST 2009
On Jun 18, 2:20 pm, Tim Golden <m... at timgolden.me.uk> wrote:
> but I imagine that, behind the scenes, it's doing some sort
> of conditional imports according to platform.
I have, and yes indeed it does.
> I imagine you'd
> have to do something similar to get a list of port names.
That's what I thought, although I might just defer to the user knowing
what to type in (since they would have to identify the port allocated
to the device in the first place).
> On Windows, WMI can give you what you want. Look at the
> Win32_SerialPort class. Hopefully, someone else can help
> for other platforms.
Thanks for this pointer :)
More information about the Python-list