USR IOT RS232 User manual

Convert Server User Manual www.usr iot
.
c o
m
Jinan USR IOT Technology Limited 2
/
41 tec@usr.cn
Content
1. Quick Start ........................................................................................................................................................... 4
1.1. Hardware connect .................................................................................................................................... 4
1.2. Network connection ................................................................................................................................. 4
1.3. Communication test ................................................................................................................................. 5
2. Introduction .......................................................................................................................................................... 6
2.1. Short Description ...................................................................................................................................... 6
2.2. Device Features ....................................................................................................................................... 7
2.3. Electronic Parameters .............................................................................................................................. 7
2.4. Packing Information ................................................................................................................................. 8
3. Hardware ............................................................................................................................................................. 9
3.1. Appearance size chart ............................................................................................................................. 9
3.2. Indicator Light ........................................................................................................................................... 9
3.3. Interface Instructions .............................................................................................................................. 10
4. Application .........................................................................................................................................................
11
4.1. Application of AP ....................................................................................................................................
11
4.2. Application of STA ..................................................................................................................................
11
4.3. Application of AP+STA ........................................................................................................................... 12
4.4. Wired and wireless Application drawing (Only 610 apply )............................................................... 13
4.5. Application of wireless serial port(one
AP,
one STA) ........................................................................... 14
5. Function Description ......................................................................................................................................... 15
5.1. User configuration process .................................................................................................................... 15
5.2. Working mode ........................................................................................................................................ 16
5.2.1. Transparent Transmission Mode ................................................................................................ 16
5.2.2. Serial command mode ................................................................................................................ 17
5.2.3. HTTPD Client mode .................................................................................................................... 18
5.3. WI-FI parameter setting ......................................................................................................................... 19
5.3.1. Auto- Frequency Function .......................................................................................................... 19
5.3.2. Security ........................................................................................................................................ 19
5.3.3. Search Function for STA ............................................................................................................. 19
5.3.4. Address Binding .......................................................................................................................... 20
5.4. UART Frame Scheme ............................................................................................................................ 20
5.4.1. UART Free-Frame ....................................................................................................................... 20
5.4.2. UART Auto-Frame ....................................................................................................................... 20
5.5. Network Setting ...................................................................................................................................... 21
5.5.1. Socket A ....................................................................................................................................... 21
5.5.2. Socket B ....................................................................................................................................... 21
5.6. New function ........................................................................................................................................... 22
5.6.1. TCP password authentication ..................................................................................................... 22
5.6.2. Upload ID ..................................................................................................................................... 22

Convert Server User Manual www.usr iot
.
c o
m
Jinan USR IOT Technology Limited 3
/
41 tec@usr.cn
5.6.3. Self-adaption Baudrate ............................................................................................................... 22
5.6.4. Keepalive ..................................................................................................................................... 23
5.6.5. Multiple
STA
parameters ............................................................................................................. 23
5.6.6. Websocket ................................................................................................................................... 23
5.7. Palmodic Signal ...................................................................................................................................... 24
5.8. Parameters Configuration ...................................................................................................................... 24
5.9. Firmware Upgrade ................................................................................................................................. 25
6. setup process .................................................................................................................................................... 25
6.1. Configuration via Web Accessing .......................................................................................................... 25
6.1.1. Open Web Management Interface ............................................................................................. 25
6.1.2. Quick Configure ........................................................................................................................... 26
6.1.3. Mode Selection Page .................................................................................................................. 27
6.1.4. AP Interface Setting Page ........................................................................................................... 28
6.1.5.
STA
Interface Setting Page ......................................................................................................... 28
6.1.6. Application Setting Page ............................................................................................................. 29
6.1.7. Ethernet Setting ........................................................................................................................... 31
6.1.8. HTTPD Client Mode .................................................................................................................... 31
6.1.9. Device Management Page ......................................................................................................... 32
Appendix A: Questions and Answers ................................................................................................................... 34
Q1: How to configure transparent serial port application (TCP protocol) with two Convert Servers? ...... 34
Q2: Where to Set WIFI Convert Server LAN IP and WAN IP through Web Page ?................................. 35
Q3: How to configure transparent serial port application (UDP protocol) with two Convert Servers? ...... 35
Q4: Where to set Convert Server network protocol (TCP/UDP)? ............................................................... 36
Q5: How to configure transparent serial port application: Two Convert Servers all configured as
STA
and
connection through AP? ................................................................................................................................ 37
Q6: How to avoid IP address confliction when apply Convert Server? ...................................................... 38
Q7: PC works as server, all Convert Servers works as data acquisition card and connect with PC, how to
configure this application? ............................................................................................................................. 38
Q8: Convert Server support UDP multicast? ............................................................................................... 40
Q9:Convert Server operates in
STA
mode, the PC how to get the IP Convert Server? ............................ 40
Appendix B: Contact ............................................................................................................................................. 41
Appendix C: Disclaimer ........................................................................................................................................ 41
Appendix D: Update History ................................................................................................................................. 41

Convert Server User Manual www.usr iot
.
c o
m
Jinan USR IOT Technology Limited 4
/
41 tec@usr.cn
1.
1.
1.
1. Quick
Quick
Quick
Quick Start
Start
Start
Start
This chapter is the quick start for Convert Server . proposal user read this chapter and follow the instructions.
This will help your understanding of the product. Of course, the user can choose read chapters according to
need . For specific details and instructions, please refer to the following.
1.1.
1.1.
1.1.
1.1. Hardware
Hardware
Hardware
Hardware connect
connect
connect
connect
In order to test the serial port to the WIFI/ Ethernet communication transformation,connect the the device
serial port to PC serial port, connect the device WIFI/Ethernet to PC WIFI/Ethernet .If the desktop does not
own the serial port, also can use USB 232 to replace. The hardware environment.
Ethernet
DC
5 -
18
V
232
485
S
elect
Ethernet
or
WIFI
Select
232
or
485
Figure
Figure
Figure
Figure 1
1
1
1 Hardware
Hardware
Hardware
Hardware Connect(610)
Connect(610)
Connect(610)
Connect(610)
According to the above connect Convert Server.
1.2.
1.2.
1.2.
1.2. Network
Network
Network
Network connection
connection
connection
connection
Open Wi-Fi, search network on the PC , as shown in below, USR-WIFI232- AP_3378 is the default network
name (SSID) of the Convert Server .
Note: if the firmware version is V4, the SSID is "HF - A11x_AP".After the SSID is also like this.

Convert Server User Manual www.usr iot
.
c o
m
Jinan USR IOT Technology Limited 5
/
41 tec@usr.cn
Figure
Figure
Figure
Figure 2
2
2
2 WIFI
WIFI
WIFI
WIFI Search
Search
Search
Search
Join the network, choose to automatically obtain
IP,
Convert Server supports DHCP Server feature and is
enabled by default.
Figure
Figure
Figure
Figure 3
3
3
3 WIFI
WIFI
WIFI
WIFI connection
connection
connection
connection
Now, link led of Convert Server is lighting.
1.3.
1.3.
1.3.
1.3. C
C
C
C ommunication
ommunication
ommunication
ommunication test
test
test
test
Convert Server ’s default setting:
SSID:
SSID:
SSID:
SSID: USR-WIFI232-D2_xxxx(xxxx is the last of mac address);
Encryption
Encryption
Encryption
Encryption mode
mode
mode
mode :
:
:
:open ,none ;
UART:
UART:
UART:
UART: 57600 ,8,1,None ;

Convert Server User Manual www.usr iot
.
c o
m
Jinan USR IOT Technology Limited 6
/
41 tec@usr.cn
Network
Network
Network
Network parameters
parameters
parameters
parameters :TCP,Server,8899,10.10.100.254 ;
IP:
IP:
IP:
IP: 10.10.100.254;
We just need to follow the parameters of the corresponding set of network communication parameters, you
can make serial < -- > WIFI or Ethernet communication, the steps are as follows:
1. Open test software USR-TCP232-Test ;
2. COM Settings area (left):
C hoose COM port witch has connect the Convert Server , there is COM3, choose band rate to 57600 , this is
the default band rate of Convert Server , Click Open COM port.
3. Net Settings area (right):
C hoose TCP client mode, Server IP write 10.10.100.254, it is the WIFI default IP address, Server port to 8899,
It is the default Port the Convert Server listen, Click Connect to link to the Convert Server .
Now, you can test send data between RS232 and WIFI.
COM port to WIFI: PC RS232 -> Convert Server RS232 -> Convert Server WIFI -> PC WIFI .
WIFI to COM port: PC WIFI or Ethernet -> Convert Server WIFI or Ethernet -> Convert Server RS232 -> PC
RS232.
Figure
Figure
Figure
Figure 4
4
4
4 serial
serial
serial
serial /
/
/
/ network
network
network
network transmission
transmission
transmission
transmission test
test
test
test
2.
2.
2.
2. Introduction
Introduction
Introduction
Introduction
2.1.
2.1.
2.1.
2.1. Short
Short
Short
Short Description
Description
Description
Description
Convert Server provides a serial port to WIFI function, can be RS-232/485 converted into a TCP/IP serial
network interface, RS-232/485 serial port and WIFI/ Ethernet bidirectional data transparent transmission. The
serial device can immediately with the TCP/IP network interface functions, connect to the network for data

Convert Server User Manual www.usr iot
.
c o
m
Jinan USR IOT Technology Limited 7
/
41 tec@usr.cn
communication, communication range extended serial device greatly.
Convert Server series currently has USR-WIFI232-610, USR-WIFI232-604,USR-WIFI232-602,
USR-WIFI232-2 lighting products. Specific parameters of each product please refer to below:
Table
Table
Table
Table 1
1
1
1 Product
Product
Product
Product model
model
model
model
T
ype RS232 RS485 Ethernet I nput
V
oltage Size(mm)
USR-WIFI232-610 YES YES YES 5-18V 84*84*25
USR-WIFI232-604 NO YES NO 5-9V 84*84*25
USR-WIFI232-602 YES NO NO 5-9V 84*84*25
USR-WIFI232-2 YES NO NO 5-9V 80*50*14 (No Shell )
2.2.
2.2.
2.2.
2.2. Device
Device
Device
Device Features
Features
Features
Features
Inner b oard core module specifications , please reference to USR-WIFI232-C
Support hardware flow control (RTS/CTS) RS232 interface, male mouth(needle) consistent with
computer pin definition
RS232 RS485 automatic switching (USR-WIFI232-610)
RJ45 network connection, support wired Ethernet transmission (USR-WIFI232-610)
Reload button, do not worry incorrect settings ( in working status, press the button 3 s then it load to
default s ettings and automatic restart)
Rich status indicator light : Power / Ready / Link / RXD / TXD
Pin 9 of the DB9 can be connected to p ower input (solder jumper on the back of PCB ), used for power
the sensor or the serial port cable power Convert Server .
D esign with positioning hole, convenient installation
H ighest support baud rate 460800 bps
optional TCP Server/TCP Client/UDP Client/ UDP Server mode, the TCP Server mode can support up to
32 Client connection
2.3.
2.3.
2.3.
2.3. E
E
E
E lectronic
lectronic
lectronic
lectronic P
P
P
P arameters
arameters
arameters
arameters
Table
Table
Table
Table 2
2
2
2 Electrical
Electrical
Electrical
Electrical parameter
parameter
parameter
parameter
Item Parameter
Wireless
parameter
Certification FCC/CE
Wireless
standard
802.11 b/g/n
Frequency range 2.412GHz-2.484GHz
Transmit power
802.11b: +20dBm(Max.)
802.11g: +18dBm(Max.)
802.11n: +15dBm(Max.)

Convert Server User Manual www.usr iot
.
c o
m
Jinan USR IOT Technology Limited 8
/
41 tec@usr.cn
configurable
Receiver
Sensitivity
802.11b: -89dBm
802.11g: -81dBm
802.11n: -71dBm
Antenna Option Externa l 3Dbi antenna
Hardware
Parameters
Data Interface
UART : 1200bps - 230400bps
Ethernet : 100Mpbs
GPIOs
Operating
voltage
5-18V (+/-5%)
Operating
current
170mA~300mA
Operating
temperature
-25 ℃- 85 ℃
Storage
temperature
-40 ℃- 125 ℃
Dimensions 83 × 80 × 25mm
Software
parameters
Network type Station/AP mode , STA+AP
Security
mechanisms
WEP/WPA-PSK/WPA2-PSK/WAPI
Encryption WEP64/WEP128/TKIP/AES
Work mode Transparent Transmission
Serial command AT+instruction set
Network
Protocol
TCP/UDP/ARP/ICMP/DHCP/DNS/HTTP
Max. TCP
Connection
32
User
Configuration
Web Server +
AT
command config
User Application
SW
Support customized application software
2.4.
2.4.
2.4.
2.4. Packing
Packing
Packing
Packing Information
Information
Information
Information
Convert Server *1
5V1A power adapt e r *1
Serial cable *1 (only USR-WIFI232-610)
Network cable *1 (only USR-WIFI232-610)
User guide CD *1 (only USR-WIFI232-610)

Convert Server User Manual www.usr iot
.
c o
m
Jinan USR IOT Technology Limited 9
/
41 tec@usr.cn
3.
3.
3.
3. Hardware
Hardware
Hardware
Hardware
3.1.
3.1.
3.1.
3.1. Appearance
Appearance
Appearance
Appearance size
size
size
size chart
chart
chart
chart
Figure
Figure
Figure
Figure 5
5
5
5 Appearance
Appearance
Appearance
Appearance size
size
size
size chart
chart
chart
chart (602/604/610)
(602/604/610)
(602/604/610)
(602/604/610)
3.2.
3.2.
3.2.
3.2. Indicator
Indicator
Indicator
Indicator L
L
L
L ight
ight
ight
ight
There are 5 lights in total, from left to right
Table
Table
Table
Table 3
3
3
3 Indicator
Indicator
Indicator
Indicator light
light
light
light
Indicator Function Description
Power power Keep light when power on
Ready Inner LINUX start Keep green light when connected to network
correctly
Link Network link Light when establish network link
TXD Transmit data Flash when send data
RXD Receive data Flash when receive data

Convert Server User Manual www.usr iot
.
c o
m
Jinan USR IOT Technology Limited 10
/
41 tec@usr.cn
3.3.
3.3.
3.3.
3.3. I
I
I
I nterface
nterface
nterface
nterface I
I
I
I nstructions
nstructions
nstructions
nstructions
Power
Power
Power
Power interface:
interface:
interface:
interface:
5.5*2.1 standard 5-18v power interface, with TVS protection
RS232
RS232
RS232
RS232 interface:
interface:
interface:
interface: (USR-WIFI232-610/
(USR-WIFI232-610/
(USR-WIFI232-610/
(USR-WIFI232-610/ 60
60
60
60 2/
2/
2/
2/ 2
2
2
2 )
)
)
)
Device serial port is male(needle), RS232 level (can connect to PC directly), pin order is consistent with PC
COM port. Use cross cable connected with PC(2-3cross,7-8cross, 5-5 direct, 7-8 can disconnect, but MUST
NOT connect with PC directly), There are 6 pins in work, others is NC.
Table
Table
Table
Table 4
4
4
4 RS232
RS232
RS232
RS232 P
P
P
P in
in
in
in s
s
s
s
ID NAME DESCRIPTION
2 RXD Receive data pin
3 TXD Send data pin
5 GND Data Ground
7 RTS Request to send
8 CTS Clear to send
9 VCC Can connect to Convert Server power input by join the PCB
jumper, default not connect.
RS485
RS485
RS485
RS485 interface:
interface:
interface:
interface: (USR-WIFI232-610/
(USR-WIFI232-610/
(USR-WIFI232-610/
(USR-WIFI232-610/ 60
60
60
60 4)
4)
4)
4)
R S 485 two wire links, A(DATA+), B(DATA-), when link to other RS485 device, A(+) to A(+), B(-) to B(-).
RJ45
RJ45
RJ45
RJ45 interface:
interface:
interface:
interface: (USR-WIFI232-610)
(USR-WIFI232-610)
(USR-WIFI232-610)
(USR-WIFI232-610)
Network port connection, Convert Server is 10M/100M adaptive, support AUTO MDI/MDIX, which means you
can use direct network cable to connect with PC also can be tested. Convert Server by default open , as
shown in the Convert Server specificatio n s.
Table
Table
Table
Table 5
5
5
5 RJ45
RJ45
RJ45
RJ45 Pins
Pins
Pins
Pins
ID TAB FUNCTION
1 TX+ Transceiver Data+
2 TX- Transceiver Data-
3 RX+ Receive Data+
4 PHY-VCC Transformer tap voltage
5 PHY-VCC Transformer tap voltage
6 RX- Receive Data-
7 n/c Not connected
8 n/c Not connected

Convert Server User Manual www.usr iot
.
c o
m
Jinan USR IOT Technology Limited
11 /
41 tec@usr.cn
Reload
Reload
Reload
Reload key:
key:
key:
key:
This key used for set up the Convert Server to factory setting, when Convert Server is working (Ready LED
on), press this key more than 1 seconds and free it, wait about 10 seconds until the Convert Server restart,
the green LEDs all off and then Ready LED on. Then the Convert Server goes to factory default settings.
4.
4.
4.
4. Application
Application
Application
Application
4.1.
4.1.
4.1.
4.1. Application
Application
Application
Application of
of
of
of AP
AP
AP
AP
As shown in figure in, Convert Server used as an
AP,
all the other Convert Servers and computer can be used
as the
STA
to connect this Convert Server , at the same time it also can through the UART or GPIO interface
to the user equipment.
4.2.
4.2.
4.2.
4.2. Application
Application
Application
Application of
of
of
of STA
STA
STA
STA

Convert Server User Manual www.usr iot
.
c o
m
Jinan USR IOT Technology Limited 12
/
41 tec@usr.cn
Convert Server as STA(use the AP CLI interface), connect to other
AP,
to compose a wireless network. All of
the
STA
take AP as the wireless network center, and the mutual communication between
STA
is through AP
forwarding.
4.3.
4.3.
4.3.
4.3. Application
Application
Application
Application of
of
of
of AP+STA
AP+STA
AP+STA
AP+STA

Convert Server User Manual www.usr iot
.
c o
m
Jinan USR IOT Technology Limited 13
/
41 tec@usr.cn
Convert Server can support AP+STA mode. That is the Convert Server support a AP interface and a
STA
interface at the same time.
AP+STA function settings:
AP+STA function need to set through serial command.
AT+FAPSTA=on set AP+STA function
Then set Convert Server to
STA
mode, the AP interface still valid .
Note: the AT command part of this article is no longer in detail, please click the high-performance series
Convert Server specification.
4.4.
4.4.
4.4.
4.4. Wired
Wired
Wired
Wired and
and
and
and wireless
wireless
wireless
wireless Application
Application
Application
Application drawing
drawing
drawing
drawing (
(
(
(Only
Only
Only
Only 610
610
610
610 apply
apply
apply
apply )
)
)
)

Convert Server User Manual www.usr iot
.
c o
m
Jinan USR IOT Technology Limited 14
/
41 tec@usr.cn
When USR-WIFI232- 610 used as
AP,
other computers and equipments can be used as
STA
connected to
this device through RJ45(network cable).
When USR-WIFI232- 610 used as STA, network port connected to computer via RJ45, wireless added to
wireless router to networking.
4.5.
4.5.
4.5.
4.5. Application
Application
Application
Application of
of
of
of wireless
wireless
wireless
wireless serial
serial
serial
serial port(one
port(one
port(one
port(one AP,
AP,
AP,
AP, one
one
one
one STA)
STA)
STA)
STA)

Convert Server User Manual www.usr iot
.
c o
m
Jinan USR IOT Technology Limited 15
/
41 tec@usr.cn
Convert Server can be set as
STA
or
AP.
So the device logically supports two wireless interfaces, one as STA,
another interface is equivalent to a
AP,
other STAs can connect to wireless network via the Convert Server AP
interface.
5.
5.
5.
5. F
F
F
F unction
unction
unction
unction D
D
D
D escription
escription
escription
escription
5.1.
5.1.
5.1.
5.1. User
User
User
User configuration
configuration
configuration
configuration process
process
process
process
After Convert Server electric starter, based on user pre-set parameters, automatically connect to wireless
networks and servers, and enter the working mode is set to open in accordance with the default serial port
parameters.
The parameters which need to configure include:
Wireless Network Parameters
Wireless Network Name (SSID )
Security Mode
Encryption Key

Convert Server User Manual www.usr iot
.
c o
m
Jinan USR IOT Technology Limited 16
/
41 tec@usr.cn
TCP/UDP Linking Parameters
Protocol Type
Link Type (Server or Client )
Target Port ID Number
Target Port IP Address
Serial Port Parameters
Baud Rate
Data Bit
Parity (Check) Bit
Stop Bit
Hardware Flow Control
Work Mode Selection
Transparent transmission /Serial command mode/GPIO mode/HTTPD Client mode
The following sections will introduce specific to each part in detail.
5.2.
5.2.
5.2.
5.2. Working
Working
Working
Working mode
mode
mode
mode
5.2.1.
5.2.1.
5.2.1.
5.2.1. Transparent
Transparent
Transparent
Transparent Transmission
Transmission
Transmission
Transmission Mode
Mode
Mode
Mode
Convert Server support serial interface transparent transmission mode. The benefit of this mode is achieves
a plug and play serial data port, and reduces user complexity furthest. In this mode, user should only
configure the necessary parameters. After power on, Convert Server can automatically connect to the default
wireless network and server.
As in this mode, the Convert Server 's serial port always work in the transparent transmission mode, so users
only need to think of it as a virtual serial cable, and send and receive data as using a simple serial. In other
words, the serial cable of users
’
original serial devices is directly replaced with the Convert Server ; user
devices can be easy for wireless data transmission without any changes.
The transparent transmission mode can fully compatible with user ’ s original software platform and reduce the
software development effort for integrate wireless data transmission.
Notes:
Notes:
Notes:
Notes: Users also open the serial port hardware flow control (CTS/RTS) function, so that we can make the bit
error rate to a minimum.If the user doesn't need hardware flow control function of the serial port, only need to
the corresponding pin foot (CTS/RTS) hung up.

Convert Server User Manual www.usr iot
.
c o
m
Jinan USR IOT Technology Limited 17
/
41 tec@usr.cn
5.2.2.
5.2.2.
5.2.2.
5.2.2. Serial
Serial
Serial
Serial command
command
command
command mode
mode
mode
mode
In this mode, the user can send the serial data to a different server address, this pattern can be use UDP or
TCP client sends data to the server.
Customer MCU send packets according to the following format, parsing Convert Server is finished, only the n
bytes of data sent to the destination address.When data is returned, not analytical data from serial port output
directly.
Table
Table
Table
Table 6
6
6
6 Protocol
Protocol
Protocol
Protocol table
table
table
table of
of
of
of Serial
Serial
Serial
Serial command
command
command
command mode
mode
mode
mode
frame
header
length functio
n
byte
Backup
data area
Destinati
on port
Target
address
Data Sum
check
2 2
(n+m+5)
1 2 2 m n 1
frame
frame
frame
frame header
header
header
header :
0x55 0xAA (Constant )
Length
Length
Length
Length :
Starting from the function byte, to Sum check (does not contain the sum check) all bytes. High byte at
the front
Function
Function
Function
Function byte
byte
byte
byte :
Bit0: (UDP:0 ;TCP:1 )
Bit1: (Short connection:0;Long connection:1 )
Bit2: (IP:0;Domain name:1 )
Bit7: (cut protocol:0;full protocol:1 )Note: currently only supports cut protocol
Notes:
Bit1:If it is a short connection, it sends data, and then will be disconnected; if it is long connection, it
sends data, connection will remain, until the re changing the target address.
Bit2:Indicates that the target address is
IP
or domain name. If it is
IP,
the target address is 4 bytes; if the
domain name, the target address length for the entire domain name string length (the last byte address is
‘ \0 ’ , that is the end of the string).
Bit7:Under the cut protocol, reply frame contains only data; Under the full protocol, reply frame has
"failed to send", "waiting for", "UDP radio response equipment IP" frame data.
Backup
Backup
Backup
Backup data
data
data
data area
area
area
area :
:
:
:
First byte:If it is a short connection, this position is TCP waits for the timeout time (1-255), if the send
command is completed, did not receive a response, then wait a few seconds and the corresponding, if 5,
said to wait for the 5S to disconnect; if the sending command, immediately receive the returned data,
then immediately disconnected; if it is long connection, this position is 0x00.
Second byte:Reserve
Destination
Destination
Destination
Destination port
port
port
port :
:
:
:
Little endian, low byte in the former,such as port 23, here are 0x17 0x00
Target
Target
Target
Target address:
address:
address:
address:
If it is
IP,
is 4 bytes, for example, 192.168.0.7 said 0x07 0x00 0xA8 0xC0; if it is a domain name, then the
address of indefinite length,ending with the ’ \0'.

Convert Server User Manual www.usr iot
.
c o
m
Jinan USR IOT Technology Limited 18
/
41 tec@usr.cn
Data:
Data:
Data:
Data:
Variable length,the maximum not exceeding 1000bytes.
Sum
Sum
Sum
Sum check:
check:
check:
check:
From the function word to check byte (does not contain a check byte), add Sum check.
The following is an example of a specific application:
send data:0x55 0xaa 0x00 0x0a 0x00 0x00 0x00 0x21 0x00 0x85 0x00 0xA8 0xC0 0x01 0x0f
Length:0x00 0x0a
Function byte:0x00 (UDP;Short connection;IP;cut protocol)
Destination port :0x21 0x00(33)
Target address: 0x85 0x00 0xA8 0xC0 (192.168.0.133)
Data:0x01(data length :1)
Sum check:0x0f ( 0x00+0x00+0x00+0x21+0x00+0x85+0x00+0xA8+0xC0+0x01=0x0f )
5.2.3.
5.2.3.
5.2.3.
5.2.3. HTTPD
HTTPD
HTTPD
HTTPD Client
Client
Client
Client mode
mode
mode
mode
This mode is used to send data to the HTTP server.
After setting the HTTP header format by webpage or
AT
command, the data sent each time by UART will add
the HTTP header automatically.Convenient for the user directly submit data or read data from the HTTP
server.
Below is the specific application, for example:
The first set HTTP parameters using AT instructions.
AT+HTTPURL=192.168.1.1,80 The serveraddress and portsettings
AT+HTTPTP=POST Set the HTTP type, GET, PUT or
POST
AT+HTTPPH=/set Set the path,the mostis50 bytes
AT+HTTPCN=keep-alive Set the Connection,maximum length
of 20bytes
AT+HTTPUA=lwip13.2 Set the User-Agent,maximum length
of 20bytes
If the sending data is 1234.In the 80 port of 192.168.1.1 will receive the following data
POST /set HTTP /1.1
Connection:keep-alive
User-Agent:lwip1.3.2
Content-Length:4
Host:192.168.1.1:80
1234
If the HTTP type is GET, the 80 port 192.168.1.1 receive data
POST /set 1234 HTTP /1.1
Connection:keep-alive
User-Agent:lwip1.3.2
Content-Length:0

Convert Server User Manual www.usr iot
.
c o
m
Jinan USR IOT Technology Limited 19
/
41 tec@usr.cn
Host:192.168.1.1:80
Data received from server will be directly sent to the serial port,without any treatment.
5.3.
5.3.
5.3.
5.3. WI-FI
WI-FI
WI-FI
WI-FI parameter
parameter
parameter
parameter setting
setting
setting
setting
5.3.1.
5.3.1.
5.3.1.
5.3.1. Auto-
Auto-
Auto-
Auto- Frequency
Frequency
Frequency
Frequency Function
Function
Function
Function
When Convert Server works as STA, Convert Server will adjust its wireless channel to keep the same
channel with associated AP and connect in.
When Convert Server works as AP and Convert Server enable Auto-frequency function, then when Convert
Server boot up, it will select the best wireless channel based on surrounding environment.
5.3.2.
5.3.2.
5.3.2.
5.3.2. Security
Security
Security
Security
Convert Server supports multiple wireless encryption mechanisms, and enables to protect the security of
user
’
s data transmission, the mechanisms include:
WEP
WPA-PSK/TKIP
WPA-PSK/AES
WPA2-PSK/TKIP
WPA2-PSK/AES
5.3.3.
5.3.3.
5.3.3.
5.3.3. Search
Search
Search
Search Function
Function
Function
Function for
for
for
for STA
STA
STA
STA
When using web configuration
STA
Interface Setting Page, user can push “ Search ” button to find surrounding
AP,
and find a AP to associated.
Figure
Figure
Figure
Figure 6
6
6
6 Search
Search
Search
Search page
page
page
page

Convert Server User Manual www.usr iot
.
c o
m
Jinan USR IOT Technology Limited 20
/
41 tec@usr.cn
5.3.4.
5.3.4.
5.3.4.
5.3.4. Address
Address
Address
Address Binding
Binding
Binding
Binding
Convert Server supports the feature of binding the BSSID address of target network.
According to the provisions of 802.11 protocol, different wireless networks can have a same network name
(i.e. SSID / ESSID), but must correspond to a unique BSSID address (i.e. MAC address). Illegal intruders can
create a wireless network with the same SSID / ESSID, it will make STAs in the network to join to the illegal
AP,
thereby and then network leakage happen.
Users can prevent
STA
from joining to illegal network by binding the BSSID address, to improve wireless
network security.
5.4.
5.4.
5.4.
5.4. UART
UART
UART
UART Frame
Frame
Frame
Frame Scheme
Scheme
Scheme
Scheme
5.4.1.
5.4.1.
5.4.1.
5.4.1. UART
UART
UART
UART Free-Frame
Free-Frame
Free-Frame
Free-Frame
Convert Server support UART free-frame function. If user select open this function, Convert Server will check
the intervals between any two bytes when rec ei ving UART data. If this interval time exceeds defined value
(50ms default), Convert Server will think it as the end of one frame and transfer this free-frame to WiFi port, or
Convert Server will receive UART data until 4K bytes, then transfer 4KB frame to WiFi port.
Convert Server ’ s default interval time is 50ms. User can also set this interval to fast (10ms) through
AT
command. But user have to consider if user MCU can send UART data with 10ms interval ,or the UART data
may be divide as fragment.
Through AT command: AT+FUARTTE=fas t /normal, user can set the interval time: fast (10ms) and normal
(50ms). This command is factory default setting command and AT+RELD can ’ t change its value.
5.4.2.
5.4.2.
5.4.2.
5.4.2. UART
UART
UART
UART Auto-Frame
Auto-Frame
Auto-Frame
Auto-Frame
Convert Server support UART auto-frame function. If user select open this function and setting auto-frame
trigger length and auto-frame trigger time parameters, then Convert Server will auto framing the data which
received from UART port and transmitting to the network as pre-defined data structure.
Auto-frame
Auto-frame
Auto-frame
Auto-frame trigger
trigger
trigger
trigger length:
length:
length:
length: The fixed data length that Convert Server used to transmitting to the
network.
Auto-frame
Auto-frame
Auto-frame
Auto-frame trigger
trigger
trigger
trigger time:
time:
time:
time: After the trigger time, if UART port received data can ’ t reach auto-frame
trigger length, then Convert Server will transmitting available data to the network and bypass the
auto-frame trigger length condition.
This manual suits for next models
2
Table of contents
Other USR IOT Media Converter manuals

USR IOT
USR IOT USR-W630 User manual

USR IOT
USR IOT USR-TCP232-302 User manual

USR IOT
USR IOT USR-TCP232-E2 User manual

USR IOT
USR IOT USR-DR404 User manual

USR IOT
USR IOT USR-W600 User manual

USR IOT
USR IOT USR-TCP232-410s User manual

USR IOT
USR IOT USR-TCP232-306 User manual

USR IOT
USR IOT USR-GM1 User manual

USR IOT
USR IOT USR-CANET200 User manual

USR IOT
USR IOT USR-N540 User manual