. . . .
Category: How to
Receive UDP packet datagrams in PHP ( UDP server socket)

PHP file: <?php $socket = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);if (!$socket) { die(“socket_create failed.n”); } //Set socket options.socket_set_nonblock($socket);socket_set_option($socket, SOL_SOCKET, SO_BROADCAST, 1);socket_set_option($socket, SOL_SOCKET, SO_REUSEADDR, 1); if (defined(‘SO_REUSEPORT’))socket_set_option($socket, SOL_SOCKET, SO_REUSEPORT, 1); //Bind to any address & port 12345.if(!socket_bind($socket, ‘0.0.0.0’, 12345)) die(“socket_bind failed.n”); //Wait for data.$read = array($socket); $write = NULL; $except = NULL; while(socket_select($read, $write, . . .
PKTH100B temperature and humidity sensor 485 communication transmitter MODBUS RTU and KMtronic LAN TCP/IP to Modbus RS485 RTU Serial Converter

PKTH100B temperature and humidity sensor Rated voltage DC9V~DC30V measuring range Temperature: -40 DEG C, ~120 DEG C Humidity: 0 ~ 100%rh measurement accuracy Temperature: + 0.3, resolution 0.1 Humidity: + 3%rh resolution 0.1 RH Output interface RS485 Communication protocol MODBUS RTU communicationaddress 1-247, baud rate 1200 bit/s, 2400 bit/s, 4800 bit/s, 9600 bit/s, . . .
Testing RS485 Serial Port Meter Red LED Display PLC Communication MODBUS-RTU / ASC

RS485 Serial Port Meter Red LED Display PLC Communication MODBUS-RTU / ASC This software utility is written for testing Modbus slave devices. Modbus protocol exist for serial port (RTU) and for Ethernet (TCP). Modbus allows for communication between many devices connected to the same network. Free replacement for applications . . .
Netcat: Send TCP binarry files for control KMtronic RS485 Relay

Netcat (often abbreviated to nc) is a computer networking utility for reading from and writing to network connections using TCP or UDP. BAT file for generate BIN files @echo off echo FF0101>on.txt certutil -decodehex on.txt on.bin@echo off echo FF0100>off.txt certutil -decodehex off.txt off.bin D:\Rabotna\Socat>nc -w 1 192.168.1.199 12345 < on.bin D:\Rabotna\Socat>nc -w . . .