1. Get Start ......................................................................................................................................................................... 5
1.4. Data Transport Testing ....................................................................................................................................... 10
2.2. Function feature ................................................................................................................................................ 11
4. Product Function .......................................................................................................................................................... 16
4.1.1. IP address/ subnet masks/ gateway ........................................................................................................ 17
4.1.2. DNS Server Address ................................................................................................................................ 19
4.1.3. Web Server ............................................................................................................................................. 20
4.1.4. Restore to the Factory Setting. ............................................................................................................... 21
4.2.2. TCP Server ............................................................................................................................................... 27
4.2.4. UDP Server .............................................................................................................................................. 33
4.3. Serial Port Function ........................................................................................................................................... 37
4.3.2. Serial Port Framing.................................................................................................................................. 38
4.4. Special Function ................................................................................................................................................. 43
4.4.5. Link ......................................................................................................................................................... 50
4.4.7. Index ....................................................................................................................................................... 50
4.4.8. The number of the connected client ...................................................................................................... 53
4.4.9. State ........................................................................................................................................................ 53
4.4.10. Short Connection .................................................................................................................................. 54
5.3. AT Command ..................................................................................................................................................... 80
5.3.1. AT Command Overview........................................................................................................................... 80
5.3.2. AT Command Error Code ........................................................................................................................ 82
5.3.3. AT Command .......................................................................................................................................... 82
5.3.4. AT Command Details ............................................................................................................................... 85
6. Contact us ................................................................................................................................................................... 106
8. Modified History ......................................................................................................................................................... 107
USR-K6 is a small module for serial port to Ethernet, which can realize the bi-directed data transparent
transmission between RJ45 port and TTL serial port. It can be applied to interface 232 and 485 by level conversion
circuit.
To test the conversion from serial port to ethernet, we put the serial port of K6 connected to PC via serial cable.
Connect the interface of the K6 and PC using net cable. After testing and found no mistake, powered for K6.
Diagram 1.1.2-1 Hardware Connection
Note: the power adapter and the cable are from USR
1.2. Network Testing
To prevent the thing that occurs when the custom use the K6 such as finding no server, can not ping and can not
enter the webpage, after connecting you should check the PC before testing.
1)Shut down firewall and antivirus software.
2)Shut down net card none-related and reserve only one local connection .
3)For the direct connection between PC and server, please provide a static IP in the same LAN with the IP of K6.
USR-K6 is a tiny size serial port to Ethernet module which can realize the bi-direct data transparent transmission
between RJ45 port and TTL serial port. It can be applied to RS232 and RS485 by level conversion circuit.
Supports low power consumption, only consume a little current in full speed work. Equipped with Cortex-M0 core,
fast speed and high efficiency. Supports several functions to meet more need.
K6 is easy to operate and have strong compatibility. On the basis of adding new functions, it is compatible with the
setting protocol of K5, which provide convenience for old users. At the same time, a setting protocol similar to K3 is
added. For customers who adopt other series of products, it can be applied to K6 only by simple adjustment.
2.2. Function feature
adopted to Ethernet, supports AUTO-MDIX switching of network cable crossovers.
s:TCP server, TCP client, UDP server, UDP client, Httpd client, can be chose.
Parity including None, Odd, Eben, Mark, Space.
and keep the connection real and reliable, can be used to test the death
connection
Under TCP Server mode, the number of client connected can be modify from 1 to 16, default is 4. The IP of
connected client can be see. Send and receive data according to connection calculation.
Under TCP Server mode, when the client number reach the max number, the new client can instead of the old
one or not can be set.
AT command, serial port protocol, webpage setting parameter, setting protocol. Provide
custom to use in their own software.
Used as indication pin for TCP connection status. If the LINK
function is enable and connected, this LED will light.
4
RST
reset
Connected to the IP of the user’s MCU, reset when abnormal,
reset when the pin reach 200ms
5
485-en
Reserve pin
RS485 enable pin
6
CFG
(reload)
Configuring the pin
using serial
When normal working , don’t connect the pin or connect to
high level. Under low level, the pin is used for module
configuration, access to power then pull down“Reload” pin
Refer to 4.4.3 Factory Reset
7
LED2
Net port data instr
Single chip data indicator foot, when data transport in the
network, it will flash.
1. IP address is the identity representation of the module in the LAN, which is unique in the LAN, so please be sure
there is no another device same as it in the LAN.
Static IP
Handle to setting. Note fill the IP, subnet masks and gateway.
Static IP adopted to the environment that required to statistics the IP and the device and makes them correspond
one to one.
Advantage: accessing the device that can not distribute IP address can be searched via UDP broadcast.
Disadvantage: different net segment in the different LAN can not communicate normally.
Setting and query the access way of K6 IP, IP/subnet
masks/gateway parameters
Get IP address , gateway address, DNS server and other information from the gateway server to easy the step for
setting IP address, DHCP adopted to the environment that have no special requirement to IP.
Advantage: accessing the device equipment with the DHCP server such as router can communicate directly.
Reduce the hassle of setting IP address and subnet masks.
Disadvantage: accessing the device with no DHCP server such as computer directly, K6 can not work.
2. Subnet masks used to determine the host number and the network number, indicates the number of subnet and
determine the flag within the subnet. The subnet masks needed to set, usually we use the subnet masks: 255.255.255.0,
the network number is the former 24, the holder name is the last 8, number of subnet is 255, the module IP is in the
range of 255, and then we are sure that the module IP is in this subnet.
3. Gateway is the net port of the LAN. If you connect the router to access the internet, the gateway is the router IP
address, setting wrong and can not access into the net. No device such as router and no setting, keep the default.
DNS servers are used to convert domain names into IP addresses that are recognized by the network. DNS server
address can be set, which can realize domain name resolution in the case of imperfect local domain name server. Users
can also set the address of specific DNS server according to requirements. When K6 needs domain name resolution, it
will submit the resolution request to the DNS server set.Using is more flexible and reliable.
In static IP mode, the default DNS server address is 208.67.222.222, and in DHCP mode, the DNS server address is
obtained automatically. Version 4015 above support domain name server address can be set.
Remote IP/TX/RX:via it , you can see the device connected to the K6, and the sent count and received count.
Note: under the UDP server mode, only send/received data, and no connected IP
Diagram 4.1.3-1 Current Status
4.1.4. Restore to the Factory Setting.
1) Hardware restore: K6 supports the hardware restore to the factory setting. Keep putting down reload pin 5s in
powered condition, the put up and it will restore.
Steps:power on→keep the reload pin down→keep for 5s→put up.
2) Software restore: via the software setting and the net protocol sending command.
3) AT command restore: enter the AT command, AT +RELD to restore.
4.1.5. Network Upgrade Firmware
Webpage upgrading firmware, stable and simple. Using this new function meets the custom requirement. If you
need to upgrade, you can query us from the USR support:http://h.usriot.com and asking firmware from supply. The way
to upgrade please reference5.1.1.
There are five work modes for K6, including TCP Client, TCP Server, UDP Client, UDP Server and Httpd Client.
Setting from the webpage and the software setting, as below:
Diagram 4.2-1 Work mode Setting
Note: Default IP address and type is static IP at 192.168.0.201. Default remote port:8234
1) In TCP Client Mode, K6 connects TCP Server actively, establish a connection to transmit date. According to the
TCP protocol related rule, there difference for TCP client between connect and disconnect, to make sure the data
exchange more stable. Usually used in the data interaction between device and server, which is the most common form
of network communication.
2) In TCP Client Mode, support the function of identifying disconnected link. When connected, it will send
keepalive package every 15s. If unconnected, it can be detected timely and enforce K6 to disconnect the former link to
establish a new one.
3) When K6 try to connect remote server, if the local port number is not “0" ,it will establish a connection with the
same source port every time.
4) Support synchronizing baud rate, USR-cloud and short connection function.
5) In a LAN, if the K6 is static IP, please keep K6 IP stay in the same network segment with gateway, and setting the
gateway IP, otherwise can not work as normal.
6) note:keepalive, synchronizing baud rate and USR-cloud are more on the below.
7)Communication example
① Software setting, take the K6 as a TCP client, remote IP:192.168.0.201,(for my PC is 172.16.11.8, so for the
next testing ,change remote IP to 172.16.11.8) remote port:8234, then save it. Research to make sure the parameters
are right. Also you can set work mode, remote IP and remote port in the webpage then save and restart.
② set the testing software as TCP server, local IP is the IP of the PC ,locally is 192.168.0.201, listen port is 8234
and click listening. Testing software show the 192.168.0.7:4117(distribute randomly). setting the right serial port
parameters and open the serial port.
Note : default remote IP is192.168.0.201.But in order to keep the device and PC in the same network segment to make
the communication correct so we change IP type as DHCP. Just likes the above picture.
1) In TCP Server Mode, K6 listens local port, it will response and establish a connection when there is a request. When
the K6 receive the data, it will send it to all the client connected to K6, meanwhile, this mode can monitor the connect
timely with keepalive function.
2) Usually it is used in the LAN communicating with TCP client. Adopt the case that more than one PC or phone asking
data without server. Same as the TCP client ,there are different between connect and disconnect.
3) Support synchronizing baud rate.
4) TCP Client number is from 1 to 16, default value 4. the port is fixed., can not be set to 0.
5) If the number of the TCP client is more than 16, default kick the old one, and this function can be set via webpage.
6) TCP server example
① Set K6 as a TCP server via software setting, local port is 20108, then save. Also you can set via webpage.
2) In UDP Client Mode, TCP232-K6 won’t establish the connection actively.
3) It can communicate with the target port whose IP has been set. If data doesn’t come from this channel, it will not be
accepted by TCP232-K6.
4) In UDP Client Mode, if target IP is set as 255.255.255.255, it can realize function of entire network broadcast, also
can receive broadcast data. 4015and the later vision support broadcast. e.g.xxx.xxx.xxx.255.
1) UDP server is a IP address do not verify the resource in the normal UDP. After receive every UDP package,
change the target IP into data resource IP and port. When sending data, sending to the least IP and port.
2) Usually this mode, several net device communicate with module and do not want to use TCP for high frequency.
3) Example:
① Set the K6 as UDP server, local port is 20108
② Open the testing software, choose UDP and the local IP is IP of the PC, set the ports to be different, e.g. 23
and 8234 in the below diagram, then click.
4.2.5. HTTPD Client
In this mode , users’ terminal device can send required data to assigned HTTPD server via K6, and then, K6 receives
the data from HTTP server, analyzes the data and sends the result back to the serial port.
No need for paying attention to the process of data conversion between the serial data and net data package.
Simple parameter setting can realize the requirement serial device sent to HTTP server.
Receive the data assigned VCOM data, and send it in the data of net data using VCOM to solve the PC as a serial
port and can not connect with device,which is convenient for users.
E.g.
1. Take K6 in TCP Server mode as a server, which is convenient for user to change the computer and connected.
2. Setting the way to connect the VCOM and K6 manually:
① Open the VCOM and add the serial port, choose the port: COM2(avoid the exist COM port) protocol use the TCP
client, remote IP set to the IP of the K6, remote port is the port of the K6. note fill the device name.
② Click sure, observe if the connection is established, if the connection has established, and you can test the data
transport transmission.
Serial port basic parameters including: baud rate; data bits; stop bits; parity.
1.Baud rate: communicating speed of serial port, can be set from 600~460.8Kbps, support random baud rate.
2.Data bits:the range of it from 5to 8.
3.Stop bits:can set from 1 to 2.
4.Parity: support none, odd, even, mark and space
4.3.2. Serial Port Framing
Since the data on the network is transmitted in the unit of data frames, it is necessary to send the frame data via
serial port to the network, so as to transmit data more efficiently and quickly.K6 packages serial port data according to
fixed packaging length and packaging time during data transmission.The default K6 packaging time is 4 bytes of
packaging time and 400 bytes of packaging length.
The frame mechanism of serial port is based on the packaging time and the packaging length.
1. Serial port packaging time: the default is 4 bytes of send time.
The default package time of K6, the interval that serial port receive time more than 4 bytes packaging time, K6
packaging sending. E.g. baud rate is 115200K time for 4 bytes is 0.4ms, if the value less than 0.1ms, the package time
calculate as 0.1ms. A formula to calculate as fellows:
T=1/baud rate*10*4
2. Serial port package length: default package length is 400 bytes
When K6 receive data from webpage, and then send to serial port. For the limited of the serial speed, the user
need to control the flow, otherwise data overflow problems can be occur and drop the package. So when send data
from network to serial port, please calculate the flow.
Calculate way: if sending M bytes need N s. the way to check for possible overflow methods (if the net situation is
ok, the time can be ignored ). The time for M bytes:
T=1/baud rate*10*m
If there is no overflow, M bytes of data must be transmit within Ns, then N>2T is require for K6 to work properly.
4.3.3. RFC2217
Similar RFC2217 is a simple RFC2217 protocol, working with the VCOM and changing serial port parameters
candynamically to realize the communication with variable serial port parameters.
Enable this function, using USR-VCOM can open this function,which can realize the serial baud of the PC software
and K6 automatically match. No need to pay attention to serial port baud rate setting.
Modify the serial port baud rate from 115200bps to 9600bps. FRC2217 can be set using software or webpage,
default is enable.
This function modify from RFC2217, promote the certainty for transmission. Length is 8 bytes.detailed note and
the protocol content are as fellows(e.g. value is HEX).
① Send the protocol to the device, if the requirements are met, the serial port parameters shall be set, and no
transparent transmission, if there is something wrong, the data package will be forwarded through the serial port as
ordinary data.
② TCP Client, TCP Server, UDP Client, UDP Server and radio support this function.
③ The modify of this order effect in time, do not restart. Effective during this operation cycle, will not save, power
1) When using RFC2217, click setting software RFC2217 to enable this function.
2) When the serial port parameters change, send the RFC2217 package, after K6 received the RFC2217 command,
modify the serial parameters and can not transparent transmission.
⑤ E.g.
Protocol command:
55AA5501C2008346 setting serial port parameter is 115200 N,8,1
55AA550025808328 setting serial port parameter is 9600 N,8,1
In the transparent transport mode, user can choose K6 to send heartbeat package. Heartbeat package can be sent
to net server, also can send to serial port, but can not send in the same time.
Sending to the net aimed at connecting with server, effect only in TCP client and UDP client.
In the application of the server sending fixed query command to device, to reduce the communication flow. The
user can choose using the serial port to send the heartbeat package instead of the heartbeat from server.
4015 and the later vision support heartbeat package. The longest content is 40 bite.
In the transparent transport mode, user can choose K6 to send registration package. Registration package is used
to identify data sources or do as the code to get the server authorization.
Registration package can be sent when the K6 built connection with server, also can installed in the head of the
data package, as a data package. Registration package data can be MAC address or customize registration package data,
where the custom registry setting content is up to 40 bytes.
The connection setting and sending registration package is mainly used to connect the server that needs to be
registered. The application diagram is as follows:
Diagram 4.4.2-1 Building the Connection to Send Registration Package
Data carries the registration package: sending data in the front of the data access to the registration
package,mainly for protocol transmission application diagram is as follows:
USR-Cloud software is a platform for communication between devices and PC software. The cloud software is mainly
used for data transmission or monitoring remotely. This function only works in TCP client mode.
Login link of USRIOT Cloud: http://console.usriot.com
K6 support customize webpage. The user can upgrade their webpage into K6 via customize webpage. To be more
convenient for user, we have prepared upgrade webpage package in our website:
Including webpage code, webpage tools can be download.
Diagram 4.4.4-1 Package
Upgrade webpage need to notes that, destination IP set to be the IP address of K6, the final name of file is
“fs”,product choose the”M0”, then click the upgrade.
Link pin can be used as indication pin for TCP connection status. When connected, it output low level; When
unconnected, high level. When K6 is under TCP model, Link pin will pull down. otherwise, it stays in high level. When K6
is under DUP model, Link pin will always pull down. By default, it is not checked.
4.4.6. Reset
Reset used when the K6 fly or crash and can not built the normal connection,so can not work. Reset to initialize
the module to resume normal operation.
When working as TCP Client, K6 connects to TCP Server actively. When start Reset function, K6 try to connect to
TCP Server for 30 times. If failed, K6 will restart automatically. By default, it won’t be chose.
4.4.7. Index
Index is to resolve the problem that under TCP server mode, K6 can not divide the data sources or send data to
special client when user have more than 2 client to connect the K6.
At most there can be 16 links when the K6 in the TCP server mode. The max number can set from 1to 16 as you
want. Here we take the default number is 16 as example. Server send data to 16 clients, or the server receive the data
from 16 clients, open the Index, mark to divide the different clients and user can recognize the data sources according
to the mark, meanwhile send different data to special clients.
USR-K6 works in the TCP server mode, the max number of client to connect is 16, default is 4, the max number can
be configuring as you want, which is be convenient for using. When the the number connecting clients more than 4, we
should control the total data flow in 2.5KB/s if we need to send and receive meanwhile(not more than 200 bite/s).
If the number is 16 now(e.g. the number you set is 16), default use the new link instead of the older one, also you
can set to use the older one. The webpage are as fellow.
Diagram 4.4.8-1 Webpage
4.4.9. State
In the webpage of the USR-K6, there is the current static page, which can show the current IP and the each
connection sends data and the number of bytes of connection data, along with the total number of bytes sent and
received by the K6 server on the page.
Now, under the TCP client mode, K6 can statistic the former 5 IP of devices and the number of the sent and
received data. Refresh every ten seconds automatically. Under the UDP server mode, the K6 only static the number of
the sent and received data, no connected IP.
The aim to use this function is to save the resource of the server, usually used in the points to one point. Using the
short connection can sure the current connection is the useful one, no extra control tools to screening.
TCP short connection can sued in the TCP client, open it and send message. The connection will be broken
automatically.
This function default disable, the interval of disconnect can be configured after enable it, the range from 2 to 255s,
default is 3s, the diagram is as fellow:
If the TCP have no connection, the data that serial received will be placed in the cache, and the K6 serial port can
receive 800K byte, after the TCP built, you can select is clear the cached data.
Default disable. Under the Httpd client mode or the TCP client mode, enable the short connection and this
function do not work.
Restart timeout is to make sure the long and stable work of K6, when the net port or network can not receive data
for long time, K6 will restart out the setting time to avoid abnormal conditions affect the connection. Time for restart
can set in the webpage. The normal work time of this function set 60~65535s, default is 3600s. if setting time less than
60s, default to be 0 and turn off this function. The setting is as fellow:
Search all the K6 in the LAN, including current IP, device name, MAC and version of the K6.
Diagram 5.1.1-1 Searching
1. Click the k6, enter the password and you can see the detailed parameters of the K6. if wrong, there will be the
window for username and password. Fill them and enter. Default username and password:admin(software setting
default username and password are admin, so under default condition,the setting software will not pop-up the window.
Click the searching device and you can see the basic parameters needed to set, combined with the function
introduction of the third chapter, setting the parameter you need, then click the save. Then you are succeed to modify
the parameters you have change, others keep default.
Serial baud rate: the baud rate for serial port communication, both standard and customize baud rate are ok.
Parity/data/stop: serial port parameters
Work mode: TCP Server /TCP Client/Httpd Client/UDP Client/UDP Server
Remote IP: when K6 works in TCP client, UDP client and HTTPD client mode as a client, the IP or domain name of
the server that it connected.
Similar RFC2217: used if need to change the serial port in transport. Use with V-COM or you can reference the
software manual.
4. Firmware Upgrade
If the module firmware need to upgrade to the high vision,user can consult with sales to get the upgraded
firmware and click the device, upgrade the vision. When you upgrade it,connect directly the device and PC and notice
that PC upgrading module is forbidden.
Select the device and right click, then upgrade the firmware.
We set special protocol on the net setting. To be convenient to set across the net, all communication protocol
adopted UDP mode, the lower is in front. When setting, make sure the remote port is 1500 for UDP communication,
the local port is random and all the communication protocol using UDP.
1. Net setting parameters steps
① Built socket:
Build a UDP socket, remote IP :255.255.255.255, remote port:1500, lower is in front.
② Setting command steps
Send searching order on the internet.
K6 return the IP address, MAC, device name and version.
the parity is sum parity: begin at the length add to the first digit of the parity. The sum is the value to parity, and
reserve the lower bits.
6E + 00, from 4th to 9th is the address of the MAC, the last 12 bits in front add the parity is the user name and
password. These are 6 bits, add 0 if less than 6 bits.
Note: the last one of the username and password is 0,below are same.
Page 65
USR-K6 User Manual www.usriot.com
Name
bits
E.g.
Instr
Uc Sequence Num
1
00
reserve package head
Uc CRC
1
00
reserve package head
Uc Version
1
00
reserve package head
Uc Flags
1
C0
8th is 0: DHCP: 1: static IP
6th is 0: long connection: 1: short connection
5th is 0: not clear cache: 1: clear cache
Us Location URL Port
2
00 00
Not enable,reserve the protocol
Us HTTP Server Port
2
50 00
HTTP server port
Uc User Flag
1
00
Not enable,reserve the protocol
Ul Static IP
4
07 00 A8 C0
Static IP
Ul Gateway IP
4
C9 00 A8 C0
Gateway
Ul Subnet Mask
4
00 FF FF FF
Subnet Mask
④ Read setting command
Send (22bits): FF 13 03 D8 B0 4C 46 35 CA 61 64 6D 69 6E 00 61 64 6D 69 6E 00 41, parity sum: 41 = 13 + 03 + ... +
6E + 00, from 4th to 9th is the address of the MAC, the last 12 bits in front add the parity is the user name and
password. These are 6 bits, add 0 if less than 6 bits.
⑤ Basic parameter setting command
Basic setting command including 67 basic parameters. Setting For better Settings, here are some examples:
sending: FF 56 05 D8 B0 4C 46 35 CA 61 64 6D 69 6E 00 61 64 6D 69 6E 00 95 63 03 00 00 00 50 00 00 07 00 A8 C0 01
00 A8 C0 00 FF FF FF 55 53 52 2D 4B 32 00 00 00 00 00 00 00 00 00 00 61 64 6D 69 6E 00 61 64 6D 69 6E 00 00 01 00
E0 D8 B0 4C 46 35 CA 00 00 00 00 03 00 00 00 59, parity bits is still parity sum algorithm: 59 = 56 + 05 + D8+ ... + 03:
from 4th to 9th is the address of the MAC, from 10th to the 22th is the username + password, the latter bits is fixed
length basic setting parameters. The last bit is the parity sum.
There are 63 bits to setting net port and serial port parameters, so this command is of high value. Here is a
example to show how to use:(sending 63 bits): FF 52 0 4C 46 35 CA 61 64 6D 69 6E 00 61 64 6D 69 6E 00 00 C2 01 00
08 01 01 01 00 00 00 00 8C 4E 2A06 D8 B 20 31 39 32 2E 31 36 38 2E 31 2E 31 33 33 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 85 01 A8 C0 01 03 00 04 10 0E 00 00 00 00 00 00 00 16, parity bits algorithm: 16 = 52 + 06 + ... + 00;
Send: FF 13 0B D8 B0 4C 46 35 CA 61 64 6D 69 6E 00 61 64 6D 69 6E 00 49: parity sum: 49 = 13 + 0b+ ... + 6E + 00:
from 4th to 9th is the address of the MAC, from 10th to the 21th is the username + password, These are 6 bits, add 0 if
less than 6 bits.
From 4th to 9th is the address of the MAC, from 10th to the 21th is the username + password. These are 6 bits, add 0
if less than 6 bits. The later are sending direct of heartbeat package and registration package, heartbeat time0, length of
the heartbeat, length of registration package, heartbeat package, registration package, heartbeat package and
registration package. These are 40 bits, add 0 if less than 40. The last one is parity.
Form 5.1.2-4 Heartbeat Registration Package Net Setting
From 4th to 9th is the MAC address of the module, the later 12 is username and password, these are 6 bits add 0 if
less than 6, the last one is parity.
Parity way is reduce parity sum, the initial value is 0x00, reduce every bits in order, algorithm is as fellow: F2 = 00 FF - 24 - 01 - 00 - 4B - ... - 32 – 00-…-00.
Respond (4 bits): FF 01 02 4B if the password right 4B = 'K'
FF 01 02 50 username password wrong 50 ='P'
③ Read order command return result
The return are all the parameters, total 576, no parity and protocol, return parameters directly. Method of reading
reference “basic parameters chart” “serial parameters chart”and USR-cloud function, heartbeat registration package
function and Httpd Client package head setting. Return divide into 4 package, including 130 bits, 50bits, 85 bits and 302
bits.
If you want to get some real message using the way as below:the tool is setting softwareUSR-M0:
Diagram 5.1.2-1 Catch the Message
5.2. Webpage Setting Parameters
Open the browser and enter the IP of K6, default is (192.168.0.7). filled the user name: admin and password:
admin, then login and you can enter the login page.
AT command is used for controlling module. You can use AT command to configure and query the settings. Later
we will interpret the type in detail.
5.3.1. AT Command Overview
AT+ command is the command collection that perform the command transport using UART and module under the
order mode. Later we will interpret the type in detail.
Powered successfully, we can setting the module with UART.
The default UART port parameters of the module are: baud rate1152000, no parity, data 8 and stop 1.
Instr
AT command test tools.UART interface recommand to use secureCRT software tool or USR pro APP. Below are
using the secureCRT with UART to perform.
From transparent transport to order mode need two step as below:
Fill “+++”in the UART. After the module receive the “++++”,it will send a “a” to confirm;
Fill the confirming “a” in the UART, after the module receive and send “+ok”, enter the command mode.
Instr: if no feedback after fill “++++”and “a”, as the above.
Fill “+++”and “a” need to achieve in the time to reduce the chance of entering command mode while working
normally accidentally. Detail requirement are as fellows.
Diagram 5.3.1-2 Time Tree
Time requirement:
T1>the interval of serial port package
T2<300ms
T3<300ms
T5<3s
The order change into temporary command mode from transparent transport mode:
1. Serial mode device send “+++”to module continuously. The module receive and send “a” back. Before sending“+++”is
the packaging time and can not send any data.
2. After receive “a” feedback a “a”in 3s.
3. After the module receive “a, send “ok”to the device, and enter “AT”command
4. After the device receive “+ok” and know the module enter the AT command mode, then send AT command.
The order change into net transparent transport from AT command mode:
1.Serial device send “AT+ENTM”to module.
2.After the module receive the command, feedback “+ok”, then back to the previous working mode.
Function: setting /query Socket connected status instructions function (connection status instructions pin change or not
according to the connection status)