Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #35406
| From | inq1ltd <inq1ltd@inqvista.com> |
|---|---|
| Subject | Re: Python USB control on Windows 7? |
| Date | 2012-12-23 10:33 -0500 |
| References | <XnsA130578CFF74Cduncanbooth@127.0.0.1> <ticdd8tsqou1no3hbquln8idl12o3s9hd3@4ax.com> <CAPTjJmohNxSexesqcGK01KZpZ1Cq4e+MtKWWrZG6t2AfR=Jwgw@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1221.1356278809.29569.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
On Sunday, December 23, 2012 06:34:41 PM Chris Angelico wrote: > 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 If you have the time; Using communication software, you can control a modem to call, hang up, and call again every few seconds. Since you can make a phone do the same thing, there is most likely a way to get those lights to respond the same way, at least by next Christmas. jd
Back to comp.lang.python | Previous | Next — Previous 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