Windows command line application for
switching on and off the KMTronic USB relays
(Author: Jan)
You have to download the drivers from FTDI website
http://www.ftdichip.com/Drivers/VCP.htm
FTDI Virtual COM Port Drivers installation
http://www.info.kmtronic.com/ftdi-virtual-com-port-drivers-installation.html
Windows command line application
http://info.kmtronic.com/software/USB_Relays/USBRelay.zip
Quick help:
usbrelay.exe -c:<COM port> -r:<RELAY>#<STATE> -b:<BROADCAST> -q
-c: Com port
-r: Relay(s), State(s)
-b: Broadcast/output on successful sent
-q Silence mode
Example:
usbrelay.exe -c:5 -r:1#1 (this will turn on relay)
usbrelay.exe -c:5 -r:1#0 (this will turn off relay)
ZIP file including:
- USBRelay.exe
Step by step instructions:
Click on Start Menu > Run > Open
D:\usbrelay\usbrelay.exe -c:5 -r:1#1
Or
D:\usbrelay\usbrelay.exe -c:5 -r:1#0
This is only example command !!!
You must change path to the folder where you download Usbrelay.exe
Example: C:\Downloads\usbrelay\usbrelay.exe -c:5 -r:1#1