Testing Heatmiser EDGE ModBus Thermostat with ModbusMAT freeware program

 

Heatmiser EDGE ModBus Thermostat
Heatmiser EDGE ModBus Thermostat

 

Protocol:
EDGE SERIES MODBUS COMMUNICATION PROTOCOL V1.8

Communication protocol:
1. UART Baud Rate: 9600
2. UART Parity: None
3. Communications ID Rang:0-32 ,255

Heatmiser EDGE
The Heatmiser EDGE is 230v powered Thermostat that is compatible with the Heatmiser wireless air sensor and wireless door/window switch. The wireless air sensor function is perfect for those looking to measure the temperature in another location and for those with larger open plan properties, multiple air sensors can be used to create an average temperature.

The Heatmiser EDGE can be set to work as a non programmable, 5/2 day, 7 day or 24 hour programmable thermostat.

230V Powered
Wireless Air Sensor Function
Modbus Network Function

 

Testing Heatmiser EDGE ModBus Thermostat with ModbusMAT freeware program and KMtronic USB<>RS485 adapter
Testing Heatmiser EDGE ModBus Thermostat with ModbusMAT freeware program and KMtronic USB<>RS485 adapter

 

Testing Heatmiser EDGE ModBus Thermostat with ModbusMAT freeware program and KMtronic USB<>RS485 adapter
Testing Heatmiser EDGE ModBus Thermostat with ModbusMAT freeware program and KMtronic USB<>RS485 adapter

 

Testing Heatmiser EDGE ModBus Thermostat with ModbusMAT freeware program and KMtronic USB<>RS485 adapter
Testing Heatmiser EDGE ModBus Thermostat with ModbusMAT freeware program and KMtronic USB<>RS485 adapter

 

Testing Heatmiser EDGE ModBus Thermostat with ModbusMAT freeware program and KMtronic USB<>RS485 adapter
Testing Heatmiser EDGE ModBus Thermostat with ModbusMAT freeware program and KMtronic USB<>RS485 adapter

 

ModbusMAT freeware ModBus program

 

Test KMtronic LAN TCP/IP to RS485 Serial Converter

 

KMtronic LAN TCP/IP to RS485 Serial Converter
KMtronic LAN TCP/IP to RS485 Serial Converter

 

Default:
IP address: 192.168.1.199
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1
Default RS485 Bringe Port – 12345
Username: admin
Password: admin

Ethernet Communication:
TCP/IP
Bringe Port – 12345

RS485 Serial Port Communication:
RS-485 Sugnals –    A(Data+), B(Data-), GND
Baudrate –  1200, 2400, 4800, 9600, 19200,
38400, 57600 and 115200 bits per second.
Parity Check: None, Even, Odd
Data bits: 8
Stop bits: 1, 2

Reset to Default Settings:
Hold Reset button for 10 seconds

 

Testing KMtronic LAN TCP/IP to RS485 Serial Converter
Test KMtronic LAN TCP/IP to RS485 Serial Converter
Testing KMtronic LAN TCP/IP to RS485 Serial Converter
Test KMtronic LAN TCP/IP to RS485 Serial Converter

 

Testing KMtronic LAN TCP/IP to RS485 Serial Converter
Test KMtronic LAN TCP/IP to RS485 Serial Converter

 

NEW Product: LAN TCP/IP to RS485 Serial Converter

 

KMtronic LAN TCP/IP to RS485 Serial Converter

 

Sending “Hello” to RS485 via USB<>RS485 adapter

KMtronic LAN TCP/IP to RS485 Serial Converter
KMtronic LAN TCP/IP to RS485 Serial Converter: Sending “Hello” to RS485 via USB<>RS485 adapter

 

Receiving data using PuTTY Telnet connected to
IP:192.168.1.199
PORT:12345

KMtronic LAN TCP/IP to RS485 Serial Converter
KMtronic LAN TCP/IP to RS485 Serial Converter: Receiving data using PuTTY Telnet

 

KMtronic LAN TCP/IP to RS485 Serial Converter: Receiving data using TCP Client Server software
KMtronic LAN TCP/IP to RS485 Serial Converter: Receiving data using TCP Client Server software

 

PHP test file

<?php

error_reporting(E_ALL);

echo "<h2>TCP/IP Connection</h2>\n";

/* Get the port for the WWW service. */
$service_port = 12345;

/* Get the IP address for the target host. */
$address = '192.168.1.199';

/* Create a TCP/IP socket. */
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
if ($socket === false) {
echo "socket_create() failed: reason: " . socket_strerror(socket_last_error()) . "\n";
} else {
echo "OK.\n";
}

echo "Attempting to connect to '$address' on port '$service_port'...";
$result = socket_connect($socket, $address, $service_port);
if ($result === false) {
echo "socket_connect() failed.\nReason: ($result) " . socket_strerror(socket_last_error($socket)) . "\n";
} else {
echo "OK.\n";
}

$in = "Hello from PHP";
$out = '';

echo "Sending HTTP HEAD request...";
socket_write($socket, $in, strlen($in));
echo "OK.\n";

//echo "Reading response:\n\n";
//while ($out = socket_read($socket, 2048)) {
// echo $out;
//}

echo "Closing socket...";
socket_close($socket);
echo "OK.\n\n";

?>

 

 

 

UDP packet send from ESP8266 to KMtronic UDP LAN Relay board

 

KMtronic UDP LAN Ethernet IP 2 channels Relay Controller
KMtronic UDP LAN Ethernet IP 2 channels Relay Controller

 

NodeMcu
NodeMcu

 

#include <ESP8266WiFi.h>
#include <WiFiUdp.h>

const char *ssid = "KMTRONIC";
const char *password = "12345678";

WiFiUDP Udp;
unsigned int localUdpPort = 12345; // local port to listen on
char incomingPacket[255]; // buffer for incoming packets
char replyPacket[] = "Hi there! Got the message :-)"; // a reply string to send back


void setup()
{
 Serial.begin(115200);
 Serial.println();

Serial.printf("Connecting to %s ", ssid);
 WiFi.begin(ssid, password);
 while (WiFi.status() != WL_CONNECTED)
 {
 delay(500);
 Serial.print(".");
 }
 Serial.println(" connected");

Udp.begin(localUdpPort);
 Serial.printf("Now listening at IP %s, UDP port %d\n", WiFi.localIP().toString().c_str(), localUdpPort);
 
 // Turn relay 1 ON KMtronic UDP Relay board
 // connected to IP: 192.168.1.199 PORT:12345
 Udp.beginPacket("192.168.1.199", 12345);
 Serial.println("Send UDP...");
 Udp.write("FF0101");
 Serial.println(Udp.endPacket());
 // --------------------------------------
}


void loop()
{
 int packetSize = Udp.parsePacket();
 if (packetSize)
 {
 // receive incoming UDP packets
 Serial.printf("Received %d bytes from %s, port %d\n", packetSize, Udp.remoteIP().toString().c_str(), Udp.remotePort());
 int len = Udp.read(incomingPacket, 255);
 if (len > 0)
 {
 incomingPacket[len] = 0;
 }
 Serial.printf("UDP packet contents: %s\n", incomingPacket);

// send back a reply, to the IP address and port we got the packet from
 Udp.beginPacket(Udp.remoteIP(), Udp.remotePort());
 Udp.write(replyPacket);
 Udp.endPacket();
 }
}

 

 

 

 

 

Centrafuse Auto Application Integration Framework

 

Centrafuse Auto Framework
Centrafuse Auto is a completely agnostic Application Integration Framework that enables separate applications, content sources and devices to merge into a single user experience, achieving what we like to call “Intelligent Convergence”.
Centrafuse Auto Application Integration Framework KMtronic USB Relays
Centrafuse Auto Application Integration Framework KMtronic USB Relays
This App controls the KMtronic Relay Board. You need a Relay Board with 8 Relays or more. Up to 32 Relays are possible.