PowerSwitch provides 8 bits of parallel output intended to switch e.g. the power supply to electronic devices. The PowerSwitch firmware is accompanied by a command line tool for Unix to control the device. (The command line tool can also be compiled on Windows using minGW and libusb-win32.)
For previous releases of V-USB, PowerSwitch was the reference implementation. There was no separate package for V-USB, it was only available as part of PowerSwitch.
Besides being a reference implementation, PowerSwitch may be very useful by itself. If you have a server farm at your provider’s site, you can use it to reboot machines without manual interaction on the site. Contrary to e.g. USB to serial or parallel converters (which would have been a very tempting demo, too), this type of hardware is not available in the stores.
After wiring the circuit, flashing the firmware into the controller and installing the command line tool, use the command powerSwitch to control the device. It is probably easiest to explain this tool with some examples:
To switch on port 3, type:
powerSwitch on 3
To switch off port 0, use:
powerSwitch off 0
And to turn off port 3 for 5 seconds (e.g. to reboot a connected computer), use:
powerSwitch off 3 5
If you want to know the status of all outputs, type:
powerSwitch status
(Caution: If a temporary action is active, the output will display it. This may be relevant if you parse it for a web interface!)
If you prefer a Graphic User Interface, please have a look at Krzysiek’s gPowerSwitch. This is a GTK+ based application implementing the same functionality as the command line tool described above.
Releases | Download |
---|---|
PowerSwitch.2012-12-08.tar.gz (257 KB) | Herunterladen |
PowerSwitch.2012-12-08.zip (290 KB) | Herunterladen |
PowerSwitch.2008-02-28.tar.gz (239 KB) | Herunterladen |
PowerSwitch.2008-02-28.zip (263 KB) | Herunterladen |
PowerSwitch.2008-02-16.tar.gz (238 KB) | Herunterladen |
PowerSwitch.2008-02-16.zip (262 KB) | Herunterladen |
PowerSwitch.2008-02-05.tar.gz (238 KB) | Herunterladen |
PowerSwitch.2008-02-05.zip (262 KB) | Herunterladen |
PowerSwitch.2008-01-21.tar.gz (238 KB) | Herunterladen |
PowerSwitch.2008-01-21.zip (261 KB) | Herunterladen |
PowerSwitch.2007-12-01.tar.gz (237 KB) | Herunterladen |
PowerSwitch.2007-12-01.zip (261 KB) | Herunterladen |
PowerSwitch.2007-10-23.tar.gz (238 KB) | Herunterladen |
PowerSwitch.2007-10-23.zip (265 KB) | Herunterladen |
PowerSwitch.2007-08-07.tar.gz (237 KB) | Herunterladen |
PowerSwitch.2007-08-07.zip (263 KB) | Herunterladen |
PowerSwitch.2007-07-19.tar.gz (233 KB) | Herunterladen |
PowerSwitch.2007-07-19.zip (256 KB) | Herunterladen |
PowerSwitch.2007-06-25.tar.gz (233 KB) | Herunterladen |
PowerSwitch.2007-06-25.zip (256 KB) | Herunterladen |
PowerSwitch.2007-03-29.tar.gz (226 KB) | Herunterladen |
PowerSwitch.2007-03-29.zip (241 KB) | Herunterladen |
PowerSwitch.2006-07-18.tar.gz (190 KB) | Herunterladen |
PowerSwitch.2006-07-18.zip (201 KB) | Herunterladen |
PowerSwitch.2006-06-26.tar.gz (187 KB) | Herunterladen |
PowerSwitch.2006-06-26.zip (199 KB) | Herunterladen |
PowerSwitch.2006-03-26.tar.gz (186 KB) | Herunterladen |
PowerSwitch.2006-03-26.zip (197 KB) | Herunterladen |
PowerSwitch.2006-03-14.tar.gz (182 KB) | Herunterladen |
PowerSwitch.2006-03-14.zip (192 KB) | Herunterladen |
PowerSwitch.2006-02-20.tar.gz (179 KB) | Herunterladen |
PowerSwitch.2006-02-20.zip (188 KB) | Herunterladen |
PowerSwitch.2006-02-07.tar.gz (178 KB) | Herunterladen |
PowerSwitch.2005-06-14.tar.gz (169 KB) | Herunterladen |
PowerSwitch.2005-04-18.tar.gz (169 KB) | Herunterladen |
PowerSwitch_DelphiSource.zip (294 KB) | Herunterladen |