Creating Batch files for control KMtronic UDP Relays

Creating Batch files for control KMtronic UDP Relays

 

Instruction

  1. Open a text editor like notepad
  2. Type or copy this text:
    ECHO OFF
    :MENU
    CLS
    ECHO.
    ECHO ………………………………………..
    ECHO.
    ECHO KMTronic UDP 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
    UDP_Relay.exe 192.168.1.199:12345 FF0101
    GOTO MENU
    :OFF
    UDP_Relay.exe 192.168.1.199:12345 FF0100
    GOTO MENU
    :END
  3. Save this as udp-test.bat, make sure there is no .txt extension after the .bat
  4. Double-click the file icon

 

 

Connect a lamp to KMtronic UDP Relay and test.

 

 

 

 

Domoticz Home Automation System

 

Domoticz Home Automation System
Domoticz Home Automation System

www.Domoticz.com

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.

 

Domoticz now supports the KMTronic USB, RS485 and TCP(Web) relay boards
Domoticz Home Automation System

 

Linux/Windows/Embedded Devices

This system is designed to operate in various operating systems. The user-interface is a saleable HTML5 web frontend, and is automatically adapted for Desktop and Mobile Devices.
Compatible with all browsers.

Hardware: RFXCOM Transceiver, Z-Wave, P1 Smart Meter, YouLess Meter, Pulse Counters, 1-Wire, EnOcean, and a lot more….
Extended logging
iPhone / Android push notifications
Auto Learning sensors/switches
Manual creation of switch codes
Share / Use external devices
Designed for simplicity

 

Supported relay boards:

KMTronic WEB LAN Ethernet IP 2 channels Relay board BOX
KMTronic WEB LAN Ethernet IP 2 channels Relay board BOX
KMTronic WEB LAN Ethernet IP 2 channels Relay board BOX
KMTronic WEB LAN Ethernet IP 8 channels Relay board BOX

KMTronic LAN Ethernet IP 8 channels WEB Relay board BOX

 

 

Control KMtronic WEB relays boards by Domoticz Home Automation System

What you you need

  • WEB LAN Ethernet IP Eight channels Relay Controller
    https://www.kmtronic.com/lan-ethernet-ip-8-channels-web-relay-board.html

 

  • Unshielded twisted pair (UTP) cable
  • Power adapter

 

Domoticz now supports the KMTronic USB, RS485 and TCP(Web) relay boards

www.Domoticz.com

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.

 

Domoticz now supports the KMTronic USB, RS485 and TCP(Web) relay boards

 

 

Control KMtronic WEB relays using Browser Bookmarks

What you you need

  • WEB LAN Ethernet IP Eight channels Relay Controller
    https://www.kmtronic.com/lan-ethernet-ip-8-channels-web-relay-board.html

 

  • Unshielded twisted pair (UTP) cable
  • Power adapter

 

 

 

 

Google Chrome Example

Click on the right top corner to open the Bookmark Manager or simple click Ctrl+Shift + O

Control KMtronic LAN relays using Explorer Bookmarks

 

copy this to the empty field : http://admin:admin@192.168.1.199/FF0101

and change the user name and password with yours and change the IP address

 

Control KMtronic LAN relays using Explorer Bookmarks

 

 

same thing for OFF command just replace the FF0101 with FF0100

http://admin:admin@192.168.1.199/FF0100

 

Control KMtronic LAN relays using Explorer Bookmarks

 

 

 

 

 

 

Control KMtronic LAN relays using Explorer Bookmarks

 

 

 

 

FF0101 is ON command for first relay

FF0100 is OFF command for first relay

If you need to turn ON/OFF relay 5 you can use commands FF0501 and FF0500