Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #35401
| References | <XnsA130578CFF74Cduncanbooth@127.0.0.1> <ticdd8tsqou1no3hbquln8idl12o3s9hd3@4ax.com> |
|---|---|
| Date | 2012-12-23 18:34 +1100 |
| Subject | Re: Python USB control on Windows 7? |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1219.1356248091.29569.python-list@python.org> (permalink) |
On Sun, Dec 23, 2012 at 6:28 PM, Tim Roberts <timr@probo.com> wrote: > Duncan Booth <duncan.booth@invalid.invalid> wrote: >> >>In this year's Christmas Raffle at work I won a 'party-in-a-box' including >>USB fairy lights. >> >>They sit boringly on all the time, so does anyone know if I can toggle the >>power easily from a script? My work PC is running Win7. > > Not easily, no. It's not really a USB device -- I'm betting it doesn't > even enumerate. It's just sucking power from the USB wires. There's > nothing to control. Hmm. Can you control whether a particular port is on or off? (I have no idea what's possible with the underlying API, much less whether it's exposed.) It should in theory be possible - disable the appropriate USB port and the device loses power. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Python USB control on Windows 7? Duncan Booth <duncan.booth@invalid.invalid> - 2012-12-21 08:36 +0000
Re: Python USB control on Windows 7? Tim Roberts <timr@probo.com> - 2012-12-22 23:28 -0800
Re: Python USB control on Windows 7? Chris Angelico <rosuav@gmail.com> - 2012-12-23 18:34 +1100
Re: Python USB control on Windows 7? Duncan Booth <duncan.booth@invalid.invalid> - 2012-12-23 18:11 +0000
Re: Python USB control on Windows 7? Michael Torrie <torriem@gmail.com> - 2012-12-23 14:14 -0700
Re: Python USB control on Windows 7? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-12-23 16:48 -0500
Re: Python USB control on Windows 7? inq1ltd <inq1ltd@inqvista.com> - 2012-12-23 10:33 -0500
csiph-web