
Software examples (74)
Children categories
Packet Sender
The Free Network Test Utility
Packet Sender is an open source utility to allow sending and receiving TCP and UDP packets. It is available free (no ads / no bundleware) for Windows, Mac, and Linux.
Download example file from:
www.info.kmtronic.com/software/USB_Relays/KMtronic-Excel-USB-Relay-Control.zip
Only for 32bit OS!
For 64 bit OS download this example:
www.info.kmtronic.com/software/USB_Relays/KMtronic-Excel-USB-Relay-Control-64bit.zip
Copy 'NETComm.ocx' and 'MSCOMM32.OCX' to C:\Windows\System
Open Command Prompt: Start ->type cmd in search field -> press Enter
Type "regsvr32 C:\Windows\System\NETComm.ocx" and ENTER
Type "regsvr32 C:\Windows\System\MSCOMM32.OCX" and ENTER
Open "KMtronic-Excel-USB-Relay-Example.xls" and "Enable Macros"
Set COM port and type "1" A1 cell
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1" Then
If IsNumeric(Target) Then
On Error Resume Next
On Error GoTo 0
UserForm1.Show
End If
End If
End Sub
Private Sub UserForm_Activate()
MSComm1.CommPort = Sheets("Sheet1").Range("F1").Value
MSComm1.PortOpen = True
MSComm1.Output = Chr$(255) + Chr$(1) + Chr$(Sheets("Sheet1").Range("A1").Value)
MSComm1.PortOpen = False
Unload UserForm1
End Sub
FILE: Menu.bat
ECHO OFF
:MENU
CLS
ECHO.
ECHO ...............................................
ECHO.
ECHO KMTronic USB Relay Control
ECHO.
ECHO PRESS (1), (2) or (3) to EXIT.
ECHO.
ECHO ...............................................
ECHO.
ECHO (1) - Turn Relay 1 ON
ECHO (2) - Turn Relay 1 OFF
ECHO (3) - EXIT
ECHO.
SET /P M=Type 1, 2, or 3, then press ENTER:
IF %M%==1 GOTO ON
IF %M%==2 GOTO OFF
IF %M%==3 GOTO END
:ON
D:\KMtronic\USBRelay.exe -c:5 -r:1#1
GOTO MENU
:OFF
D:\KMtronic\USBRelay.exe -c:5 -r:1#0
GOTO MENU
:END
D:\KMtronic\USBRelay.exe -c:5 -r:1#0
FILE: 10sec.bat
D:\KMtronic\USBRelay.exe -c:5 -r:1#1
timeout /t 5
D:\KMtronic\USBRelay.exe -c:5 -r:1#0
FILE: OFF.bat
D:\KMtronic\USBRelay.exe -c:5 -r:1#0
FILE: ON.bat
D:\KMtronic\USBRelay.exe -c:5 -r:1#1
Download ZIP file
www.info.kmtronic.com/KMtronic-BAT-Control.zip
Unzip in any folder
in example "D:\KMtronic"
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
Commands examples
USBRelay.exe -c:5 -r:1#1 (this will turn on channel 1 board connected to COM:5)
USBRelay.exe -c:5 -r:1#0 (this will turn off channel 1 board connected to COM:5)
USBRelay.exe -c:8 -r:4#1 (this will turn on channel 4 board connected to COM:8)
USBRelay.exe -c:8 -r:4#0 (this will turn off channel 4 board connected to COM:8)
Examples are configured to work with default settings
- COM:5
BAT file examples
ON command
www.info.kmtronic.com/control-kmtronic-relays-via-bat-files-example-01.html
OFF command
www.info.kmtronic.com/control-kmtronic-relays-via-bat-files-example-02.html
10 sec Timer
www.info.kmtronic.com/control-kmtronic-relays-via-bat-files-example-03.html
Menu control
www.info.kmtronic.com/control-kmtronic-relays-via-bat-files-example-04.html
Control KMtronic USB, RS485 and TCP(Web) relay boards by Domoticz
Written by kmtronic
Domoticz is a Home Automation System that lets you monitor and configure various devices like: Lights, Switches, various sensors/meters like Temperature, Rain, Wind, UV, Electra, Gas, Water and much more. Notifications/Alerts can be sent to any mobile device.
www.domoticz.com/forum/viewtopic.php?f=17&t=6456
Orbose Kiosks integrated KMTronic USB relays to the Orbose Kiosk solution so your business can enjoy self-service product fulfillment.
The KMTronic USB relay allows our kiosk to automatically unlock doors to a fridge, kiosk, etc. upon a successful order through the software solution.
http://www.orbose.com/?page_id=2319
HouseLogix, Inc.is a pioneering US technology company based in Pennsylvania.
The HouseLogix product division designs, develops, and manufactures products and software
that serve the home automation industry such as the VoicePod devices and apps.
The service division delivers high quality commercial and residential automation installations.
This driver allows you to control the 8 relay device from KMTronic in the Control4 System. With bindings for the 8 relays, simply connect to the Generic Relay driver you want to use and from the Control4 UI you will be able to open and close each zone.
Driver:
https://www.houselogix.com/shop/kmtronic-8-relay-board-control4-driver-license