Products
IoT Gateways
Netcom Products
IoT Modules
PUSR CLoud
ODM/EMS
Pusr Cloud, a cloudplatform for the Internet of Things Zero programming comes with its own Internet of Things system.
200
+ Private Cloud project
Data localization
Business personalization
100k
+ Public Cloud registered
80% functions are free
White-labeling for VIP
LEARN MORE
KingView-A SCADA Software With 25+ Years Of Development History Nice Graphics display to monitor and Control Production flow System.
25
+ Development History
Data Collection, Analysis &
Management
100k
+ respond within 1
Perfect Alarm Monitoring &
Querying
LEARN MORE
PCB Design —— ODM/EMS We provide one-stop turnkey design service to help customers with the delivery of an out-of-the-box hardware platform that is fully tested and ready to use upon delivery.
10
+ years of experience
11 high-speed SMT
10 million pcs daily
200
+ Private Cloud project
ISO9001 cert.
Intelligent MES
LEARN MORE
Support Center
How to send AT command?
2020-07-17

1.What is the AT command?

AT command is used for controlling module. You can use AT command to configure and query the settings.

 

2.How to use the AT command?

For USR device is in transparent mode normally, you must enter AT command mode at first. Then you can send AT command to configure or query the settings. After you configure the USR device, you should restart the USR device to make the settings take effect. Every time module restart will work in work mode rather AT command mode. Every AT command must add character carriage return <CR> and line feed <LF>. In Hex, <CR> is 0x0D <LF> is 0x0A.

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.

Recommend to use secureCRT software tool or testing program of USRIOT.

Below are using the secureCRT to operate AT command:

 

Need two step as below:

 Fill “+++”in the UART. After the module receive the “++++”,then will return an “a” to confirm;

 When you receive an 'a' , then you need to send other 'a' within 3 seconds

 After that, module will return “+ok” to enter into the commend mode.

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.

How to use the AT command

 

Time requirement:

T1>the interval of serial port package

T2<300ms

T3<300ms

T5<3s

 

Change transparent transmission mode to AT command mode :

1. Serial mode device send “+++”to module continuously. If the module received ‘+++’ successfully then it will send “a” back.

2. When module received “a” and then user need to send other “a” to uart within 3s.

3. The module will return ‘+ok’ when module received ‘a’ successfully. And enter into command mode Change AT command mode to transparent transmission mode:

1. Serial device send “AT+ENTM”to module.

2. After the module receive the commend, feedback “+ok”, then back to the previous working mode.

 

Example: Use USR-TCP232-Test.exe software to send serial command or use your own serial software or MCU send command to our module.

2.png

 

Open test program and configure the serial parameters. Click ‘Open’:

How to configure the serial parameters

 

 

Send +++ to serial. Notes do not add a SPACE or ENTER, that will not return the correct character.

How to use the AT command: Send +++ to serial. Notes do not add a SPACE or ENTER

 

If you give a correct command, the module will return an 'a' likes this:

How to use the AT command: the module return an 'a'

 

When you receive an 'a' , then you need to send an 'a' within 3 seconds. You can not add any SPACE or ENTER either.

How to use the AT command: you need to send an 'a' within 3 seconds

 

The module will return +Ok. The the module enter into the AT command mode.

How to use the AT command: the module enter into the AT command mode.

 

Now you can send AT command to the module, but you should add an ENTER after your command.

How to use the AT command: add an ENTER after your command.

 

3. Network AT Command

Ensure that the module and the computer are in the same network segment before enter into the mode of network AT command. Send www.usr.cn to port 48899 via UDP broadcast of ethernet port. If the module and the PC are in the same network segment, the module will receive the answers. Then it indicates that the modules has entered into the mode of network AT command, and the parameters can be set by AT command. But the module will automatically exit the network AT command mode if there is no command within 30s under AT command mode.

Industrial loT Gateways Ranked First in China by Online Sales for Seven Consecutive Years **Data from China's Industrial IoT Gateways Market Research in 2023 by Frost & Sullivan
Subscribe
Be Honest, Do Best
Copyright © Jinan USR IOT Technology Limited All Rights Reserved. Lu ICPB No. 16015649-5/ Sitemap / Privacy Policy