Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.043 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'subject:Python': 0.05; 'subject:Windows': 0.09; 'booth': 0.09; 'sucking': 0.09; 'toggle': 0.09; 'underlying': 0.09; 'dec': 0.15; '>>': 0.16; 'api,': 0.16; 'hmm.': 0.16; 'received:10.20.55.1': 0.16; 'received:bosimpout01.eigbox.net': 0.16; 'script?': 0.16; 'seconds.': 0.16; 'wrote:': 0.17; 'tim': 0.18; 'appropriate': 0.20; 'disable': 0.22; 'cc:2**0': 0.23; '>': 0.23; 'idea': 0.24; 'device': 0.24; 'least': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'cc:addr:gmail.com': 0.27; "doesn't": 0.28; 'chris': 0.28; 'time;': 0.29; 'skip:& 10': 0.29; "i'm": 0.29; "skip:' 10": 0.30; 'december': 0.32; 'running': 0.32; 'anyone': 0.33; 'to:addr:python-list': 0.33; 'likely': 0.33; 'pm,': 0.35; 'software,': 0.35; 'subject:?': 0.35; 'there': 0.35; 'next': 0.35; 'really': 0.36; 'url:org': 0.36; 'received:71': 0.36; 'should': 0.36; 'charset:us-ascii': 0.36; 'possible': 0.37; 'does': 0.37; 'url:rec-html40': 0.37; 'subject:: ': 0.38; 'nothing': 0.38; 'received:10': 0.38; 'to:addr:python.org': 0.39; 'easily': 0.39; 'most': 0.61; 'time,': 0.62; 'hang': 0.65; 'christmas': 0.65; 'lights': 0.65; 'sit': 0.65; 'phone': 0.68; 'power': 0.74; 'url:dtd': 0.81; 'loses': 0.84; 'raffle': 0.84; 'received:10.20.15.10': 0.84; 'received:bosmailout19.eigbox.net': 0.84; 'received:bosmailscan10.eigbox.net': 0.84; 'thing,': 0.84; 'url:strict': 0.91; 'won': 0.96 X-Authority-Analysis: v=2.0 cv=INa1/HTG c=1 sm=1 a=z6awlu26eueEh/WbZ4rIxA==:17 a=spKFjZujUncA:10 a=2Cs5qbXtQ68A:10 a=JoyMi1Fg1U8A:10 a=OmMKortqy18A:10 a=tTExfe6FAAAA:8 a=6U4WVq-6g9oA:10 a=Zxt5AgybAAAA:8 a=VKGS4IcK5tf7ye3c1bkA:9 a=CjuIK1q_8ugA:10 a=s7V7OOSiUQ0A:10 a=SqVA8R5PsRwBITJz:21 a=lbnLJ3OHbvtKhg8n:21 a=SSmOFEACAAAA:8 a=sJF8vXm_FwWJyXe3VMQA:9 a=_W_S_7VecoQA:10 a=frz4AuCg-hUA:10 a=gNQFPmBMf-_v1QxG:21 a=dEkCBOKabfV2LM8g:21 a=KRRE77C2sfUQDxGT:21 a=6uKCkKhFq2wXOH2GoQX8aA==:117 X-EN-OrigOutIP: 10.20.18.3 X-EN-IMPSID: f3bN1k00403yW76013bNwG From: inq1ltd To: python-list@python.org Subject: Re: Python USB control on Windows 7? Date: Sun, 23 Dec 2012 10:33:32 -0500 User-Agent: KMail/4.7.2 (Linux/2.6.37.6-24-desktop; KDE/4.7.2; i686; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="nextPart1698034.AJmo1r1dJV" Content-Transfer-Encoding: 7Bit X-EN-UserInfo: ea107384e720a598200e9790e8ca8002:9d89a6cbd5a73a41b134431a25286195 X-EN-AuthUser: inq1ltd@inqvista.com Sender: inq1ltd X-EN-OrigIP: 71.246.145.141 X-EN-OrigHost: pool-71-246-145-141.rich.east.verizon.net X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 82 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1356278809 news.xs4all.nl 6889 [2001:888:2000:d::a6]:48059 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35406 --nextPart1698034.AJmo1r1dJV Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Sunday, December 23, 2012 06:34:41 PM Chris Angelico wrote: > On Sun, Dec 23, 2012 at 6:28 PM, Tim Roberts wrote: > > Duncan Booth 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 --nextPart1698034.AJmo1r1dJV Content-Transfer-Encoding: 7Bit Content-Type: text/html; charset="us-ascii"

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

 

 

 

 

 

 

 

--nextPart1698034.AJmo1r1dJV--