![Usr USR-TCP232-T Скачать руководство пользователя страница 10](http://html1.mh-extra.com/html/usr/usr-tcp232-t/usr-tcp232-t_manual_1064503010.webp)
RS232
Serial
TTL UART TO Ethernet TCPIP convert Module
Jinan USR Technology Co., Ltd.
Page 10 of 26
4.
4.
4.
4. Configure
Configure
Configure
Configure
parameters: work mode
,
source IP, source port
,
net mask
,
gateway
,
UART baud rate
,
destination IP
,
destination
port.
Configure command is 24byte length.
Pull down CFG pin change the module into configuration mode when use UART to config.
4.1
4.1
4.1
4.1 configure
configure
configure
configure command
command
command
command format
format
format
format
Configure mode UART interface: 9600bps,n,8,1
part
bytes
description
example
hex
prefix
2
0x55 0xAA
0x55 0xAA
0x55 0xAA
destination IP
4
destination IP
192.168.0.201
0xC9 0x00 0xA8 0xC0
destination port
2
Destination port
8234
0x2A 0x20
Host IP
4
The IP module hold
192.168.0.7
0x07 0x00 0xA8 0xC0
Host port
2
TCP/UDP source port
20108
0x8C 0x4E
Gateway
4
Gateway IP
192.168.0.201
0xC9 0x00 0xA8 0xC0
Work mode
1
0x01: TCP Client
0x00: UDP
0x02: UDP Server
TCP mode
0x01
baud rate
3
UART baud rate
115200
0x00 0xC2 0x01
Reserved
1
Reserved
00
0x00
checksum
1
Sum(destination
IP,
destination port, host IP,
host port, gateway, work
mode, baud rate, reserved)
0xB9
0xB9
Full example
:
00 A8 C0 2A 20 07 00 A8 C0 8C 4E C9 00 A8 C0 01 00 C2 01 00 B9
* once in configure mode, the UART parameter change to 9600bps,n,8,1, and a ‘U’ ascii character is send out to
ensure the control MCU that in the configure mode. If the 24byte command has effect
,
a ‘K’ ascii character is send
back to control MCU. If configure command format error, an ‘E’ character will be send back to control MCU. If the
error is the checksum not match , the 1byte right checksum will be send back to control MCU also.