USR-TCP232-302 User Manual
h.usriot.com
Jinan USR IOT Technology Limited
32 / 53
55 BE configure basic parameter configuration
55 BF configure serial port 0 parameter configuration
55 BB configure extend parameter configuration
55 B1 5A restart command
Basic configuration
: It includes some serial port parameter configuration. Total
67 byte, check bit
xx= 00 + 00 +00+80 ... + 00. Send 55 BE+basic pacheck bit,
If configuration is right ,it returns BE 4B, otherwise ,it returns BE 45.
Chart 3.7-6 - Port setting command
Name
Byte
Example
Instruction
ucSequenceNum
1
00
Reserve package head
ucCRC
1
00
Reserve package head
ucVersion
1
00
Reserve package head
ucFlags
1
80
8th 0:DHCP
;
1:Static IP
7 th 0:Turn off factory default function
1:Turn on factory default function
usLocationURLPort
2
00 00
Not enabled, reserved protocol
usHTTPServerPort
2
50 00
HTTP service port
ucUserFlag
1
00
Not enabled, reserved protocol
ulStaticIP
4
07 00 A8 C0
Static IP
ulGatewayIP
4
C9 00 A8 C0
Gateway
ulSubnetMask
4
00 FF FF FF
Subnet mask
ucModName
14
55 53 52 2D 4B 32 00
00 00 00 00 00 00 00
Module make
Protocol reserved
2
00 00
Must be 0
username
6
61 64 6D 69 6E 00
User name
password
6
61 64 6D 69 6E 00
Password
ucNetSendTime
1
00
Not enabled, reserved protocol
uiId
2
01 00
Device ID
ucIdType
1
A4
bit0(1): send ID when connecting ;
bit1(2): send ID when sending data;
bit2(4): RS485;
bit4(16): Reset;
bit5(32):Link-state;
bit6(64): index function;
bit7(128):Similar RFC2217 function,
mac_addrs
6
00 00 00 00 00 00
Device Mac address
(
only support query
)
DNSGatewayIP
4
01 00 A8 C0
DNS address
(
only support query
)
ucReserved
4
00 00 00 00
Unused
Port setting command: it include 65 byte, sum check method . Send 55 BF+basic par check bit. If