Solved

USB Timer

Posted on 2013-12-24
9
350 Views
Last Modified: 2014-01-16
I need to stack charge a USB device I have. That means plugging it in to a USB port or wall charger for no more than 2 minutes then taking in out and repeating this over and over again.

I may need to this MANY - MANY times.

Has anyone any ideas to automate this?

Is there any freeware, shareware or script I could use that would turn on / off my USB port for say 2 minutes on 30 seconds off for a certain number of times?

I could do this on Windows XP (my preference) or Window 7 or a friend’s Raspberry Pie.

Many thanks in advance.

Happy Christmas
0
Comment
Question by:mytext
  • 5
  • 3
9 Comments
 
LVL 10

Expert Comment

by:Korbus
ID: 39738673
If you use a wall charger, then you could probably use somthing like this wall outlet timer:
http://www.grainger.com/product/TORK-Timer-6WPA0?s_pp=false

Looks like it has a minimum ontime of 1 minute.
Has a max of 24 on/off cycles you can program (per week).  Is that enough?
0
 
LVL 51

Accepted Solution

by:
Joe Winograd, EE MVE earned 500 total points
ID: 39738677
I'm a huge fan of NirSoft's (free!) utilities, which I've been using for many years:
http://www.nirsoft.net/

One of them is USBDeview:
http://www.nirsoft.net/utils/usb_devices_view.html

You have to scroll to the bottom of the page to find the download links...and note that there are separate ones for 32-bit and 64-bit. It works in XP and W7 (and 2K, Vista, W8, and some others).

It is a stand-alone/no-install executable...simply run the EXE file that is in the downloaded ZIP file. It has a command line interface with "enable" and "disable" options. So use whatever your favorite scripting language is (or just a simple batch file) and call <USBDeview.exe> with the "enable" option, then pause/sleep/wait for 120 seconds, then call <USBDeview.exe> with the "disable" option, then pause/sleep/wait for 30 seconds, then loop back...run the loop as many times as you want. Regards, Joe
0
 

Author Comment

by:mytext
ID: 39738679
I have been looking at wall outlet timers as well. Seems to be an option.

A software solution is my preference as I could just set it to run at intravels all night.

But will look in to gettting a phyicial one after Christmas if there is no other option. The ones we have around the hourse are all old fashioned 15 min intravels.

Many thanks.
0
 
LVL 51

Expert Comment

by:Joe Winograd, EE MVE
ID: 39738682
> A software solution is my preference as I could just set it to run at intravels all night.

In case you missed it, see my (free!) software solution right above your last post. Regards, Joe
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Author Comment

by:mytext
ID: 39738689
We must have been typing at the same time going to check it out now
0
 
LVL 51

Expert Comment

by:Joe Winograd, EE MVE
ID: 39742478
OK, let me know how it works out for you. Regards, Joe
0
 
LVL 51

Expert Comment

by:Joe Winograd, EE MVE
ID: 39748632
Hi mytext,
Where do things stand on this issue? Regards, Joe
0
 

Author Comment

by:mytext
ID: 39787358
Hi Joe,

I ended up buying a digital timer. Setting for 20 programs and then resetting the time so the program would run again and over and over again. No a meg out of the tablet.

I feel the  NirSoft's (free!) utility was the answer but abit outside my coding ability.

Many thanks.
0
 
LVL 51

Expert Comment

by:Joe Winograd, EE MVE
ID: 39787413
You're welcome. And thanks to you for posting your solution. Regards, Joe
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A while back when OPSMGR 2012 was released we were very excited about getting it into our environment and upgrading our 2007 implementation,  we started our planning and we then proceeded with our implementation. All went as planned & our system …
I wrote an article (http://www.experts-exchange.com/articles/2245/Anti-rootkit-software.html) some time ago with a reference to nLite  (http://www.nliteos.com/)slipstreaming software.  I recently changed that link to point to NTLite (https://www.ntl…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now