Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #42816
| References | <mailman.25.1364941140.3114.python-list@python.org> <kjlavt$v8j$1@dont-email.me> <2knsl8t9uacsb612cd2kuv43ipr7djrcmg@4ax.com> |
|---|---|
| Date | 2013-04-05 14:23 +0100 |
| Subject | Re: Getting USB volume serial number from inserted device on OSX |
| From | Sven <svenito@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.139.1365168203.3114.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
On 5 April 2013 06:20, Tim Roberts <timr@probo.com> wrote: > John Nagle <nagle@animats.com> wrote: > > > > That would be useful to have as a portable function for all USB > >devices. Serial port devices are particularly annoying, because their > >port number is somewhat random when there's more than one, and changes > >on hot-plugging. > > There is no portable solution. Every operating system handles this kind of > this very differently. Remember, the operating system abstractions are all > designed to hide this from you. When you open a serial port or an audio > device or use a file system, you aren't supposed to KNOW that there is a > USB device behind it > Indeed. Which means I have a working solution under Linux, but I am struggling to find one under OS X. Looks like I might have to resort to just parsing the USB tree until I find the device that was inserted. -- ./Sven
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Getting USB volume serial number from inserted device on OSX Sven <svenito@gmail.com> - 2013-04-02 23:18 +0100
Re: Getting USB volume serial number from inserted device on OSX John Nagle <nagle@animats.com> - 2013-04-04 18:58 -0700
Re: Getting USB volume serial number from inserted device on OSX Tim Roberts <timr@probo.com> - 2013-04-04 22:20 -0700
Re: Getting USB volume serial number from inserted device on OSX Sven <svenito@gmail.com> - 2013-04-05 14:23 +0100
csiph-web