RS232 Serial
TTL UART
TO Ethernet TCPIP convert Module www.usr.cn
Jinan USR Technology Co., Ltd. Page 10 of 26 sales@usr.cn
4.
4.
4.
4. Configure
Configure
Configure
Configure
parameter s: 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 0x C9 0x 00 0x A8 0x C0
destination port 2 Destination port 8234 0x 2A 0x 20
Host IP 4 The IP module hold 192.168.0.7 0x 07 0x 00 0x A8 0x C0
Host port 2 TCP/UDP source port 20108 0x 8C 0x 4E
Gateway 4 Gateway IP 192.168.0.201 0x C9 0x 00 0x A8 0x C0
Work mode 1
0x01: TCP Client
0x00: UDP
0x02: UDP Server
TCP mode 0x01
baud rate 3 UART baud rate 115200 0x 00 0x C2 0x 01
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 .