Thursday, 31 July 2014 07:47

Controlling USB 2 Relay board by Raspberry Pi

Written by

 

 
Needed 
1 RaspberryPI
1 KMTronic 2 Relay Board
1 USB cable 
recommend install Raspbian

 

 

 

 

To see ttyusb use do the following:

cat /dev/tty and press TAB twice

 

 

Here we see that ttyUSB0

 

Set speed USB port

 

stty -F /dev/ttyUSB0 9600

 

 

Shell script to control relays

echo -e "\xFF\x01\x01" > /dev/ttyUSB0
echo -e "\xFF\x01\x00" > /dev/ttyUSB0

 

echo -e "\xFF\x02\x01" > /dev/ttyUSB0
echo -e "\xFF\x02\x00" > /dev/ttyUSB0
 

 

 

 

Thursday, 31 July 2014 06:47

Controlling USB 8 Relay board by Raspberry Pi

Written by
 
 
Needed 
1 RaspberryPI
1 KMTronic 8 Relay Board
1 USB cable 
12 volt power
recommend install Raspbian
 

 

Raspberrapi automatically recognizes it as ttyACM0

 

 

Set speed USB port

stty -F /dev/ttyACM0 9600

 

 

Shell script to control relays

echo -e "\xFF\x01\x01" > /dev/ttyACM0
echo -e "\xFF\x01\x00" > /dev/ttyACM0

 

echo -e "\xFF\x02\x01" > /dev/ttyACM0
echo -e "\xFF\x02\x00" > /dev/ttyACM0
 
echo -e "\xFF\x03\x01" > /dev/ttyACM0
echo -e "\xFF\x03\x00" > /dev/ttyACM0
 
echo -e "\xFF\x04\x01" > /dev/ttyACM0
echo -e "\xFF\x04\x00" > /dev/ttyACM0
 
echo -e "\xFF\x05\x01" > /dev/ttyACM0
echo -e "\xFF\x05\x00" > /dev/ttyACM0
 
echo -e "\xFF\x06\x01" > /dev/ttyACM0
echo -e "\xFF\x06\x00" > /dev/ttyACM0
 
echo -e "\xFF\x07\x01" > /dev/ttyACM0
echo -e "\xFF\x07\x00" > /dev/ttyACM0
 
echo -e "\xFF\x08\x01" > /dev/ttyACM0
echo -e "\xFF\x08\x00" > /dev/ttyACM0

 

 

Download all files - DOWNLOAD

http://www.info.kmtronic.com/software/Raspberry_PI/USBRelayTest.zip

 

 

 

 

Monday, 28 July 2014 10:23

PELCO D commands

Written by

 

 

 

 

 

 

 

 

KMTronic PELCO D Test software:

http://www.info.kmtronic.com/software/PTZ/KMTronic_PelcoD_Tester.zip

 

 

 

 

Commands:

 

FF 01 00 00 00 00  - STOP

FF 01 00 04 3F 00  - LEFT
FF 01 00 02 3F 00  - RIGHT
FF 01 00 08 00 3F  - UP
FF 01 00 10 00 3F  - DOWN

FF 01 00 0C 3F 3F  - LEFT-UP
FF 01 00 0A 3F 3F  - RIGHT-UP
FF 01 00 12 3F 3F  - RIGHT-DOWN
FF 01 00 14 3F 3F  - LEFT-DOWN

FF 01 10 00 00 00  - AUTOSCAN

FF 01 00 20 00 00  - ZOOM+
FF 01 00 40 00 00  - ZOOM-
FF 01 00 08 00 00  - FOCUS+
FF 01 01 00 00 00  - FOCUS-


FF 01 00 07 00 <PRESET> - CALL PRESET

 

 

NOTE: You don't need to enter checksum manually. The software automatically calculates checksum and adds it to the main command.

 

 

 

 

Thursday, 24 July 2014 13:37

PTZ Control

Written by

 

 

 

 

PELCO D commands

http://info.kmtronic.com/pelco-d-commands.html

 

 

 

 

 

 

 

Thursday, 22 May 2014 18:35

KMTronic LAN Relays - FRITZ!Box configuration

Written by

 

 

 

 

http://www.fritzbox.eu

 

 

 

 

 

NOTE
SOME FRITZ!Box modems require RJ-45 REVERSE POLARITY CAT5 CABLE !
 

RJ45 - Reverse Polarity 

 

1. Connect LAN board to any PC or Laptop and using this procedure enable DHCP:

http://www.info.kmtronic.com/how-to-change-default-settings-kmtronic-lan-board.html

 

 

 

2. Connect board to FRITZ!Box and check IP board (in this example 192.168.178.20):

 

 

 

 

3. Click on IP address and open Relay board WEb Server

 

 

 

--- Tested with FRITZ!Box 7390 ---

 

 

 

 

 

 

 

 

Tuesday, 18 March 2014 08:56

KEEProg EEPROM programmer Drivers Instalation

Written by

 

 

KEEProg EEPROM programmer

 

 

 

Download Software and Drivers from:

http://info.kmtronic.com/software/KEEPROG/KEEProg_EEPROM/KEEProg_EEPROM_3.4.zip

 

 

 

WINDOWS XP

 

 

UnZip in separate folder ( in example D:\KEEProg )

 

 

Open Device Manager

 

Connect programmer to PC

 

 

Click on KEEProg EEPROM PROGRAMMER and next Update Driver...

 

 

Click on Browse my computer ...

 

 

Locate driver’s holder and click Next

 

Wait until Windows install driver

 

 

 

Windows will show confirmation message that drivers are installed

 

 

 

Close and open again Device Manager to check that KEEProg programmer is now installed

 

 

Run software

 

 

 

 

 

 

WINDOWS 7

 

 

 

 

 

 

 

 

 

 

 

 

 

Tuesday, 18 February 2014 08:18

ModbusView and Modbus TCP Relay board

Written by

 

 

 

 

 

ModbusView TCP Software

https://oceancontrols.com.au/OCS-011.html

 

 

 

 

 

 

 

 

 

 

05 (0x05) Write Single Coil LOG

 

web-8relay-modbus-mobile

 

 

 

 

 

 

 

 

Tuesday, 18 February 2014 08:07

MACH3 Modbus TCP

Written by

 

 

 

 

Mach3 is PC-based CNC software

http://www.machsupport.com/

 

 

 

 

 

 

 

 

 

 

 

 

Tuesday, 18 February 2014 08:04

Modbus Relays

Written by



 LAN Ethernet IP 8 channels Modbus/TCP Relay board

 



KMtronic RS485 Modbus 8 Relays

www.info.kmtronic.com/kmtronic-modbus-relays.html

RS485 ModBus Relays by Loxone Miniserver and ModBus extension Control KMtronic USB, RS485 and TCP(Web) relay boards by Domoticz

www.info.kmtronic.com/rs485-modbus-relays-by-loxone-miniserver-modbus.html



MACH3 and KMtronic Modbus/TCP 8 Relay board

www.info.kmtronic.com/mach3-and-kmtronic-modbus-tcp-8-relay-board.html



ModbusView and KMtronic Modbus/TCP 8 Relay board

www.info.kmtronic.com/modbusview-and-modbus-tcp-relay-board.html


ModbusTools and KMtronic Modbus TCP 8 Relay board Control KMtronic USB, RS485 and TCP(Web) relay boards by Domoticz

www.info.kmtronic.com/modbustools-and-kmtronic-modbus-tcp-relay-board.html

 

 

 


 

 

Modbus RS485 RTU Serial to

Modbus LAN TCP/IP Module Converter

 

KMtronic Modbus LAN TCP/IP to Modbus RTU RS485 Serial Communication Module Converter

 

 

 

www.info.kmtronic.com/modbus-tcp-ip-converter.html

 

 

 

 

 

 

 

 

 

 

 

 

http://www.loxone.com

 

http://www.loxone.com/enuk/service/documentation/extensions/rs485.html

 

 

... On the configuration program just go to Periphery - Devices - RS485 Extension and

just use the following communication parameters: 8 Data, 1 Stop, No Parity, Baud rate : 9600.

Now add a RS485 actuator. Click use as digital output,

write \xFF\x01\x01 on "Command for on" and \xFF\x01\x00 on "Command for off"

and you can control the first relay channel.

Repeat the above for the other relays (\xFF\x02\x01 and \xFF\x02\x00 for the second, so on)....

 

 

Thank you Vampiris!

 

 

 

 

 

 

 

http://www.info.kmtronic.com/Loxone_and_KMTronic_RS485_Relay_Board.pdf

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Page 9 of 33