(At Command) USR N540 at Command Set - V1.0.0
(At Command) USR N540 at Command Set - V1.0.0
com
Content
USR-N540 AT Command Set ....................................................................................................... 1
1. What is the AT command. ....................................................................................................... 4
2. How to use the AT command .................................................................................................. 4
2.1. How to enter AT command mode................................................................................... 4
3. AT command set ..................................................................................................................... 4
4. AT command details ............................................................................................................... 5
4.1. AT+E ............................................................................................................................. 6
4.2. AT+Z ............................................................................................................................. 6
4.3. AT+VER ......................................................................................................................... 6
4.4. AT+ENTM ...................................................................................................................... 6
4.5. AT+MAC ........................................................................................................................ 7
4.6. AT+USRMAC .................................................................................................................. 7
4.7. AT+RELD ....................................................................................................................... 7
4.8. AT+WANN ..................................................................................................................... 7
4.9. AT+DNS......................................................................................................................... 8
4.10. AT+WEBU .................................................................................................................... 8
4.11. AT+WEBPORT ............................................................................................................. 8
4.12. AT+SEARCH................................................................................................................. 9
4.13. AT+PLANG................................................................................................................... 9
4.14. AT+RSTIM ................................................................................................................... 9
4.15. AT+UARTCLBUF......................................................................................................... 10
4.16. AT+UARTn ................................................................................................................. 10
4.17. AT+UARTTLn ............................................................................................................. 11
4.18. AT+RFCENn ............................................................................................................... 11
4.19. AT+SOCKAn............................................................................................................... 11
4.20. AT+SOCKBn............................................................................................................... 12
4.21. AT+SOCKLKAn........................................................................................................... 12
4.22. AT+SOCKLKBn........................................................................................................... 13
4.23. AT+SOCKSLn ............................................................................................................. 14
4.24. AT+SHORTOn ............................................................................................................ 14
4.25. AT+SOCKTONn .......................................................................................................... 14
4.26. AT+MODTCPn ............................................................................................................ 15
4.27. AT+MODPOLLn .......................................................................................................... 15
4.28. AT+MODTOn ............................................................................................................. 15
4.29. AT+NETPRn ............................................................................................................... 16
4.30. AT+WEBSOCKPORT1 ................................................................................................. 16
4.31. AT+REGENn............................................................................................................... 16
4.32. AT+REGTCPn ............................................................................................................. 17
4.33. AT+REGUSRn ............................................................................................................ 17
4.34. AT+REGCLOUDn ........................................................................................................ 17
4.35. AT+HTPTPn ............................................................................................................... 18
4.36. AT+HTPURLn............................................................................................................. 18
4.37. AT+HTPHEADn .......................................................................................................... 18
4.38. AT+HTPCHDn ............................................................................................................ 19
4.39. AT+HEARTENn .......................................................................................................... 19
4.40. AT+HEARTTPn ........................................................................................................... 19
4.41. AT+HEARTDTn .......................................................................................................... 20
4.42. AT+HEARTTMn .......................................................................................................... 20
5. Contact ................................................................................................................................. 21
6. Disclaimer ............................................................................................................................. 21
7. Update History ...................................................................................................................... 21
AT command is used for controlling module. You can use AT command to configure and query the settings.
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.
3. AT command set
Command Function
E Query/Set AT command echo
Z Restart the USR device
VER Query firmware version
ENTM Exit serial AT command mode and enter work mode
MAC Query MAC address
USRMAC Set MAC address
RELD Restore factory settings
WANN Query/Set WAN port parameters
DNS Query/Set DNS address
WEBU Query/Set settings web server username and password
WEBPORT Query/Set settings web server port number
SEARCH Query/Set search port and keyword in LAN
PLANG Query/Set default language of` web server
RSTIM Query/Set Timeout Reset time
UARTCLBUF Query/Set Clear UART cache before module connection enable/disable
UARTn Query/Set serial port n parameters
4. AT command details
Special Characters
Character Note Hex
<CR> Carriage Return 0x0D
<LF> Line Feed 0x0A
4.1. AT+E
4.2. AT+Z
Format
Set AT+Z<CR>
Return <CR><LF>+OK<CR><LF>
4.3. AT+VER
Parameter Description
Format
Query AT+VER<CR>
Return <CR><LF>+OK=<VER><CR><LF>
4.4. AT+ENTM
Format
Query AT+ENTM<CR>
Return <CR><LF>+OK<CR><LF>
4.5. AT+MAC
4.6. AT+USRMAC
Format
Set AT+USRMAC=<MAC><CR>
Return <CR><LF>+OK<CR><LF>
4.7. AT+RELD
Format
Set AT+RELD<CR>
Return <CR><LF>+OK<CR><LF>
4.8. AT+WANN
Gateway
<Gateway> 192.168.0.1 0.0.0.0~255.255.255.255
address
Format
Query AT+WANN<CR>
Return <CR><LF>+OK=<Mode>,<IP address>,<Mask>,<Gateway><CR><LF>
Set AT+WANN=<Mode>,<IP address>,<Mask>,<Gateway><CR>
Return <CR><LF>+OK<CR><LF>
4.9. AT+DNS
4.10. AT+WEBU
4.11. AT+WEBPORT
Return <CR><LF>+OK=<Port><CR><LF>
Set AT+WEBPORT=<Port><CR>
Return <CR><LF>+OK<CR><LF>
4.12. AT+SEARCH
4.13. AT+PLANG
4.14. AT+RSTIM
Set AT+RSTIM=<Time><CR>
Return <CR><LF>+OK<CR><LF>
4.15. AT+UARTCLBUF
4.16. AT+UARTn
4.17. AT+UARTTLn
4.18. AT+RFCENn
4.19. AT+SOCKAn
Remote Server IP
<IP address> 192.168.0.201 0.0.0.0~255.255.255.255
address (in client mode)
4.20. AT+SOCKBn
4.21. AT+SOCKLKAn
TCP connection is
CONNECTED
established
n is the number of TCP
clients which connect to
CONNECTED(n)
module (Module is in
TCP server mode)
Format
Query AT+SOCKLKAn<CR>
Return <CR><LF>+OK=<Status><CR><LF>
4.22. AT+SOCKLKBn
Format
Query AT+SOCKLKBn<CR>
Return <CR><LF>+OK=<Status><CR><LF>
4.23. AT+SOCKSLn
4.24. AT+SHORTOn
4.25. AT+SOCKTONn
4.26. AT+MODTCPn
4.27. AT+MODPOLLn
4.28. AT+MODTOn
4.29. AT+NETPRn
4.30. AT+WEBSOCKPORT1
4.31. AT+REGENn
Format
Query AT+REGENn<CR>
Return <CR><LF>+OK=<Status><CR><LF>
Set AT+REGENn=<Status><CR>
Return <CR><LF>+OK<CR><LF>
4.32. AT+REGTCPn
4.33. AT+REGUSRn
4.34. AT+REGCLOUDn
Set AT+REGCLOUDn=<ID>,<Password><CR>
Return <CR><LF>+OK<CR><LF>
4.35. AT+HTPTPn
4.36. AT+HTPURLn
4.37. AT+HTPHEADn
4.38. AT+HTPCHDn
4.39. AT+HEARTENn
4.40. AT+HEARTTPn
4.41. AT+HEARTDTn
4.42. AT+HEARTTMn
5. Contact
6. Disclaimer
This document provide the information of USR-N540 products, it hasn’t been granted any intellectual property
license by forbidding speak or other ways either explicitly or implicitly. Except the duty declared in sales terms
and conditions, we don’t take any other responsibilities. We don’t warrant the products sales and use
explicitly or implicitly, including particular purpose merchantability and marketability, the tort liability of any
other patent right, copyright, intellectual property right. We may modify specification and description at any
time without prior notice.
7. Update History