effect |
Computer sending |
Network relay reply |
Relay OUT1 is connected in real time |
AT+STACH1=1 |
OK |
Relay OUT1 is disconnected in real time |
AT+STACH1=0 |
OK |
The relay OUT is pulled in and the delay is 10 seconds. |
AT+STACH1=1,10 |
OK |
The relay OUT is disconnected and the delay is 10 seconds. |
AT+STACH1=0,10 |
OK |
Read relay OUT1 real-time status |
AT+STACH1=? |
+STACH1:1:10 (sucking state, disconnected after 10 seconds) +STACH1:0:10 (disconnected state, pull in after 10 seconds) |
Read the input interface IN1 real-time status |
AT+OCCH1=? |
+OCCH1:1 (with input status) +OCCH1:0 (no input status) |
For a more detailed description of the AT command, please see "TCP-KP-C Series Network Relay AT Command Manual"
special function
1. Relay real-time control, command response speed is fast;
2. Relay delay control, accurate delay, maximum support 99999 seconds delay;
3. The relay status supports power-down save and power-on recovery;
4. Input and output linkage supports real-time linkage, jog linkage and contact linkage;
5. Input interface status supports passive instruction reading and active timing upload;
6. The network supports four modes: TCP _Server, TCP _Client, UDP, UDP_ Server:
7. Static IP can be set, or it can be obtained automatically through DHCP.
8. Support 5 connections in TCP_Server mode;
9. Support DNS domain name resolution, can access remote server:
10. Support network registration package for server registration and authentication;
11. Support network heartbeat packets, the network automatically reconnects when there is no response after timeout;
12. The device firmware can be upgraded through the network, and the customization can be done without returning to the factory;
13. With the factory reset button, the device parameters are restored to the factory state with one button;
14. The parameter is saved after power-off. It does not need to be reset after power-on:
Equipment characteristics
System performance
1. Processor (CPU): 32-bit ARM core
2. Working frequency: 72MHz
Output Interface
1. Interface specification: 3*5.08MM terminal Common (COM) / Normally open (NO) / Normally closed (NC)
2. Quantity: 2 roads
3. Attribute: dry contact (equivalent to switch, no voltage output)
4. Maximum contact load: AC 277V/10A DC 30V/10A
5. Control mode: network, input interface
input interface
1. Interface specification: 4*5.08MM terminal
2. Quantity: 2 roads
3. Attribute: wet contact (input power supply) dry contact (DC3~30V)
4. Protection: 1.5KV optical isolation
RJ45 network interface
1. Interface standard: RJ45, 8 pins
2. Socket port number: 1 by default, 5 in TCP_Server mode
3.LAN Ethernet: 10/100Mbps (adaptive)
4. Working mode: TCP_Client, TCP_Server, UDP, UDP_Server
5. Network protocols: IP, TCP, UDP, ARP, ICMP, IPV4, dynamic port, domain name resolution, etc.
6. Protection 2KV electromagnetic isolation
Basic parameters
1. Size: with housing 11.5L*90W*40H (mm). bare board 91.8L*87W*17.5H (mm)
2. Installation method: rail installation
3. Working voltage: DC5~28V
4. Working current: 120mA (MAX) @12V
5. Power consumption: 2W
6. Working temperature: -40 ° C ~ 85 ° C, industrial grade
7. Storage temperature: -65 ° C ~ 150 ° C, industrial grade
8. Working humidity: 10%~90%, relative humidity, no condensation.
Secondary development
Customers can develop their own management software according to the needs of the project, and Cuiren Technology provides relevant secondary development materials.
1. Provide a complete control instruction manual. The customer only needs to write a TCP software. After the software establishes a SOCKET connection with the device, it can send a command control relay:
Test instructions: |
instruction |
description |
AT |
Test instructions |
Control instruction |
AT+STACHn |
Query, set the output relay (DO) real-time status |
AT+KPKEEP |
Query, set relay status to save power |
AT+OCCHn |
Query input interface (DI) real-time status |
AT+OCMOD |
Query, set input (DI) interface status upload mode |
AT+GANGCON |
Query, set input and output linkage |
Network instruction |
AT+IP |
Query, set the network IP address |
AT+DHCP |
Query, set DHCP mode |
AT+GATEWAY |
Query, set the gateway IP address |
AT+MASK |
Query, set the subnet mask. |
AT+MAC |
Query, set the network MAC address |
AT+MODEL |
Query, set the network port working mode |
AT+PORT |
Query, set the network port number |
AT+DYNPORT |
Query, set dynamic port |
AT+DIP |
Query, set the destination IP address |
AT+DPORT |
Query, set the network destination port number |
AT+DNSEN |
Query, set domain name resolution |
AT+DOMAINNAME |
Query, set the domain address |
AT+DNSIP |
Query, set the DNS server IP address |
AT+DNSGETIP |
Query the destination IP obtained through the DNS server |
AT+LINKSTATn |
Query network port connection status |
AT+HEART |
Query, set network heartbeat packet parameters |
AT+THEARTDT |
Query, set the content of the network heartbeat package |
AT+TCPREG |
Query, set the network registration package execution mechanism |
AT+USRREG |
Query, set the content of the network registration package |
Other instructions |
AT+WLD |
Query, set device ID |
AT+NAME |
Query, set the device name |
AT+DEFAULT |
The device parameters are restored to factory defaults and the device is restarted. |
AT+RST |
device software reset, the effect is equivalent to restart |
Expansion instruction |
AT+TIME |
Query, set system time |
AT+TIMESW |
Query, set, delete relay timing action time |
AT+UART |
Query, set serial port (RS485) parameters |
AT+UARTMOD |
Query, set serial port (RS485) working mode |
AT+SEND |
Network receiving, sending serial port (RS485) data |
2. Provide a test software source code written in C++ for user reference, shortening the user's secondary development cycle.

3. The relay can access the remote server through a fixed IP or domain name. The user can develop software to manage the relay on the remote server to realize platform control:
Personalized function customization
1. The user can customize the firmware of the relay, such as: modify the command format, modify the relay function. Custom firmware does not need to send the device back to the factory, just upgrade the firmware online via the network.
Industrial Ethernet IP network relay module 2 remote controller smart home can be developed two times.