Shandong USR IOT Technology USR-C215A Serial to WIFI Module User Manual

Shandong USR IOT Technology Limited Serial to WIFI Module

User Manual

h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com1USR-C215a User ManualFile Version: V1.0
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com2Contents1. Quick Start......................................................................................................................................................................... 41.1. Hardware Testing Environment.......................................................................................................................... 41.2. Data Transmission Testing.................................................................................................................................. 52. Overview............................................................................................................................................................................ 62.1. Brief Introduction................................................................................................................................................... 62.2. Features..................................................................................................................................................................62.3. Parameters.............................................................................................................................................................63. Hardware............................................................................................................................................................................73.1. Hardware Information...........................................................................................................................................73.1.1. Dimensions................................................................................................................................................. 73.1.2. Pin Defination............................................................................................................................................. 73.1.3. Antenna....................................................................................................................................................... 83.1.4. Evaluation kit.............................................................................................................................................. 83.2. Hardware Reference Design...............................................................................................................................93.2.1. Typical Application Connection............................................................................................................... 93.2.2. Power Interface.......................................................................................................................................... 93.2.3. UART Interface........................................................................................................................................ 103.2.4. Reset & Reload........................................................................................................................................104. Module Function............................................................................................................................................................. 114.1. Wireless Network Mode..................................................................................................................................... 114.1.1. Work as STA.............................................................................................................................................114.1.2. Work as AP............................................................................................................................................... 124.1.3. Work as AP+STA..................................................................................................................................... 124.1.4. Encryption Type....................................................................................................................................... 124.2. Work Mode...........................................................................................................................................................134.2.1. Transparent Transmission Mode.......................................................................................................... 134.2.1.1. Short Description......................................................................................................................... 134.2.1.2. UART Frame................................................................................................................................. 134.2.2. Command Mode...................................................................................................................................... 144.3. Socket Connection............................................................................................................................................. 144.4. Search in LAN..................................................................................................................................................... 154.5. Registration Packet Mechanism.......................................................................................................................154.6. Usrlink (Fast Networking Protocol).................................................................................................................. 154.7. Simplelink............................................................................................................................................................. 174.8. Class RFC2217...................................................................................................................................................185. Setting Method................................................................................................................................................................195.1. Webpage.............................................................................................................................................................. 195.1.1. WiFi Parameter Setting.......................................................................................................................... 205.1.2. Transparent Transmission Parameter Setting....................................................................................215.1.3. Extra Function.......................................................................................................................................... 225.1.4. System Setting.........................................................................................................................................235.1.5. About USR................................................................................................................................................ 24
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com35.2. AT Command Instructions................................................................................................................................. 245.2.1. AT Command Description...................................................................................................................... 255.3. AT Instruction Set................................................................................................................................................265.3.1. AT Command List.................................................................................................................................... 265.3.1.1. AT+E...............................................................................................................................................275.3.1.2. AT+WMODE..................................................................................................................................275.3.1.3. AT+ENTM...................................................................................................................................... 285.3.1.4. AT+MID.......................................................................................................................................... 285.3.1.5. AT+RELD.......................................................................................................................................285.3.1.6. AT+Z............................................................................................................................................... 285.3.1.7. AT+H (not available now)............................................................................................................295.3.1.8. AT+CFGTF.................................................................................................................................... 295.3.1.9. AT+UART.......................................................................................................................................295.3.1.10. AT+UARTTE............................................................................................................................... 305.3.1.11. AT+NETP.....................................................................................................................................305.3.1.12. AT+TCPLK.................................................................................................................................. 315.3.1.13. AT+TCPDIS................................................................................................................................ 315.3.1.14. AT+SOCKB................................................................................................................................. 315.3.1.15. AT+TCPDISB..............................................................................................................................325.3.1.16. AT+TCPLKB................................................................................................................................325.3.1.17. AT+WSSSID............................................................................................................................... 325.3.1.18. AT+WSKEY.................................................................................................................................335.3.1.19. AT+WANN................................................................................................................................... 335.3.1.20. AT+WSMAC................................................................................................................................345.3.1.21. AT+WSLK....................................................................................................................................345.3.1.22. AT+WSLQ................................................................................................................................... 345.3.1.23. AT+WSCAN................................................................................................................................ 355.3.1.24. AT+WSDNS................................................................................................................................ 355.3.1.25. AT+LANN.................................................................................................................................... 355.3.1.26. AT+WAP...................................................................................................................................... 365.3.1.27. AT+WAKEY.................................................................................................................................365.3.1.28. AT+WALK.................................................................................................................................... 365.3.1.29. AT+PLANG..................................................................................................................................375.3.1.30. AT+DTDDIS................................................................................................................................ 375.3.1.31. AT+DTDID................................................................................................................................... 375.3.1.32. AT+WRMID................................................................................................................................. 385.3.1.33. AT+ASWD................................................................................................................................... 385.3.1.34. AT+SMTLK..................................................................................................................................385.3.1.35. AT+USERVER............................................................................................................................385.3.1.36. AT+RPTMAC.............................................................................................................................. 395.3.1.37. AT+WRRPTMAC....................................................................................................................... 396. Contact Us....................................................................................................................................................................... 407. Disclaimer........................................................................................................................................................................ 408. Update History................................................................................................................................................................ 40
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com41. Quick StartUSR-C215 is a cost effective serial to WiFi module, which allows almost any serial devices to beconnected to a new or existing WiFi network, realize the two-way data transparent transmission betweenUART and WiFi network interface.This chapter aims at getting start USR-C215 quickly. It’s recommended that user read this chaptersystemically and operate it according to instructions to make a scientific knowledge. Following chapter willintroduce specific details, user can read interested chapter according to need.If you have any question, feed it back to customer center please: http://h.usriot.com1.1. Hardware Testing EnvironmentFor quick testing, our evaluation kit is recommended. Testing steps as follows:1. Hardware connection: Connect the module with PC by serial cable, power on, the Ready indicator willbe on.2. Wi-Fi connection: Open Wi-Fi on your PC, scan and join the module network: USR-C215.
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com51.2. Data Transmission TestingWe supply testing software “USR-TCP232-Test.exe”, pls download from this link:http://www.usriot.com/usr-tcp-test-v1-3/Module default parameters:SSID: USR-C215Encryption type: open, noneUART settings: 115200, 8, 1, NNet settings: TCP, Server, 8899, 10.10.100.254IP address of module: 10.10.100.254Steps for UART to Wi-Fi data transmission:1. Open “USR-TCP232-Test.exe”, on the left is COM part, on the right is Net part.2. UART settings: UART settings should be the same with module, that is : 115200, N, 8, 13. Click Open to open the serial port.4. Socket connection: Module default setting is TCP Server, so we should select TCP Client as protocol.Server IP and Port is module IP and Port: 10.10.100.254; 8899.5. Click Connect to establish TCP connection6. Now we can realize data transmission between UART and WiFi.The flow direction from UART to Net: COM of PC--> COM of module--> WiFi of module--> Net of PC.The flow direction from Net to UART: Net of PC--> WiFi of module--> COM of module--> COM of PC.
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com62. Overview2.1. Brief IntroductionThe USR-C215 is integrated with MAC, baseband IC, RF transceiver unit and power amplifier. Withbuilt-in low power operation mechanism, can effectively achive low power running. Support WiFi protocol andTCP/IP protocol, with simple settings, realize connection for serial devices with network.Dimensions of module: 22*13.5*6mm, single row 1*10 2m encapsulationBasic functions of module:Can work as AP mode, in this mode, other WiFi terminals can join it for communication. Also can workas STA mode, join wireless router and realize transmission.Support UART transparent transmission, switch by AT command2.2. FeaturesSupport Wi-Fi@2.4 GHz 802.11b/g/n wireless standardSupport WEP, WPA/WPA2 securitySupport AP, STA, AT+STA work modeIntegrated serial to WiFi transmission function, multiple UART rate for selectionSupport TCP/UDP Client registration mechanismSimplelink/Usrlink fast network settingAutomatic baudrate adaptation which is similar to RFC22173.3V single powerLow power mode, support deep sleep2.3. ParametersParameters ValueWirelessParametersWirless standard 802.11 b/g/nTransmit17.0 dBm @ 1 DSSS15.0 dBm @ 11 CCK13.5 dBm @ 54 OFDMReceive sensitivity–91.5 dBm @ 1 DSSS–87.5 dBm @ 11 DSSS–80.5 dBm @ 54 OFDMAntenna on board ceramic antennaHardwareParametersInterface UARTWorking voltage 3.0V~3.6VWorking current In AP mode: average 70mA@3.3VIn STA mode: average 30ma@3.3V
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com7Workingtemprature -30°C - 70°CStorage temprature -55°C - 125°CDimensions 22mm x 13.5mm x 6mmExternal interface Pins plugSoftwareParametersNetwork type AP, STA, AP+STASecurity WEP/WPA-PSK/WPA2-PSKEncryption TKIP,AES ,TKIP/AESNet protocol IPv4, TCP/UDPUser config AT + command, Webpage3. Hardware3.1. Hardware Information3.1.1. DimensionsDimension of module is 22.0*13.5mm, error±0.2mm3.1.2. Pin Defination
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com8Pin Defination List:Pin Name Type Description1 GND P GND2 VDD P Positive of power, 3.3V3 RELOAD I Pull down 1-3s: start simplelinkPull down more than 3s: reload to factory defaults4 RESET I Reset, effective in low level5 UART_RX I Receive6 UART_TX O Transmit7 PWR_SW N Vacant, not available8 WPS N Vacant, not available9 READY O Working indicator, effective in low level, can connectexternal LED10 nLINK O WiFi link indicator, effective in low level, can connectexternal LED<Note>In Type list: power is expressed as P, input is expressed as I, output is expressed as O, not available isexpressed as N3.1.3. Antenna3.1.4. Evaluation kitWe supply evaluation kit for users convenient development. As shown in below image, user can chooseUART interface for communicationAntenna Type: Ceramic AntennaAntenna GAIN: 2.5dbi
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com9Evaluation kit interface descriptionFunction Name DescriptionExternalinterfaceDC Jack 5V power input jackerDB9 9-Pin male connectorLED Ready Green light, module working indicatornLink Red, nLink/GPIO indicatorButton nReload Reload to factory defaults3.2. Hardware Reference Design3.2.1. Typical Application Connection3.2.2. Power InterfaceSwitching power supply is recommended. VCC working voltage range from 3.0V~3.6V, 3.3V is the best.Power module by main power pin, the pin be in parallel with storage capacitance and high frequency
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com10capacitance. Circuit diagram as shown below:Power Supply CharacteristicsSymbol Parameter Min Type Max UnitV_MAIN Power supply voltage 3.0 3.3 3.6 V<Note> Io currentAP: 70mA@3.3VSTA: 30mA@3.3V3.2.3. UART InterfaceIf communicate with MCU(3.3V) directly, should connect TXD of module to RXD of MCU, connect RXD ofmodule to TXD of MCU. If MCU is 5V level, a switching circuit is needed, see below diagram:3.2.4. Reset & ReloadUSR-C215 support hardware reload function, by connect nReload pin with external button or setting pin.When pull down to “0” for 1~3s, simplelink function will start. When pull down to “0” for more than 3s, modulewill restore to factory defaults. Here should link to a pull-up resistor (4.7K~10K)nReset: reset signal, module will restart when it is pulled down. There exist a 100K resistance pull up to3.3V. When module is powered on or break down, MCU will reset the module, pull down pin at least 0.5s, thenpull up or vacant.Reference diagram as follows:
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com114. Module Function4.1. Wireless Network ModeThere are 3 types wireless network mode: AP, STA, AP+STA<Description>AP: Access Point, it is the center of wireless network. For example router, router is an AP, otherstations can connect to each other throught it.STA: Station, it is the terminal of wireless netwotk. For example laptop, PAD, cell phone.4.1.1. Work as STAIt is the most commonly used network type for module to work as STA. Consist of a AP(router) and multiSTAs, see below image. The AP is in central position, communication between STAs forward by AP.
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com124.1.2. Work as APModule can work as AP, in AP mode, cell phone/PAD/PC can get access to module for data transmissionwithout any settings. Besides, user can log in module built-in webpage for configuration.<Note>When module works in AP mode, 3 STAs can join it.4.1.3. Work as AP+STAModule can work as AT and STA at the same time, shown as below:<Note>In this mode, 3 STAs can join the module network4.1.4. Encryption TypeTo ensure the safety of data communication, module supports variety of encryption type. Including:WEPWPA-PSK/TKIPWPA-PSK/AESWPA2-PSK/TKIPWPA2-PSK/AES
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com13Work Mode4.2. Work ModeUSR-C215 support 2 work mode: transparent transmission mode and command modeTransparent transmission modeIn this mode, module will transmit data between UART&WiFi, to realize the communication between serialdevice and network device.Command mode:In this mode, user can query/set the UART and network parameters by AT commands. Use commandAT+ENTM to quit command and switch to transparent transmission mode.4.2.1. Transparent Transmission Mode4.2.1.1. Short DescriptionThe advantage of this mode is to realize plug and play between UART interface and networkcommunication, that will reduce the complexity for users. With essential parameter settings in advance, afterpower on, module will automatically connect to the pre-set wireless network and server.This mode is fully compatiable with users software, which reduce the workload for development ofintergrade wireless software.Parameters need to set in advanceWiFi networkSSIDEncryptionPasswordDefault TCP/UDP connectionProtocolType (Client/Server)Destination PortDestination IPUART InterfaceBaud rateData bitStop bitCheck bitHardware flow control (rts/cts)4.2.1.2. UART FrameWhen module receive data sent from UART, it wil keep checking the time interval of 2 adjacent bytes. Iftime interval is greater than frame time you set (default 20ms, can set by command AT+UARTTE), module will
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com14judge this frame is over, or it will keep receiveing data. In command mode, if greater than 1K bytes, module willdiscard the received data. In transparent transmission mode, if greater than 1K bytes, module will send inpacket.Packet process as following diagram: n is packet time interval, unit: ms4.2.2. Command ModeIn command mode, module no longer work for transparent transmission, UART interface is used toreceive AT command. User can send AT command to module by UART, to query/set parameters of UART andnetwork.Detailed AT instruction pls refer to chapter 5.34.3. Socket ConnectionModule has a serial port UART0, which can communicate with Socket connection.There are 2 Sockets: Socketa and SocketbWhen module works in transparent transmission mode, the data sent to UART, will automatically be sentto Socket. The data received by Socket, will be sent out by UART interface.Protocol for Socketa: TCP Server, TCP Client, UDP Server, UDP Client. Setting method refer to commandAT+NETPProtocol for Socketb: TCP Client, UDP Server, UDP Client. Setting method refer to command AT+SOCKBWhen it set to be TCP Server, can support up to 5 TCP Clients for 5 Socket connections. In multi TCPconnection, data from TCP transmission will be forwarded one by one to UART interface. Data from UART willbe copied into muiti and be forwarded to each TCP connection. Data flow diagram as follows:When it set to be UDP Server, if UART receive data first, module will send data to pre-set IP and Port (setby AT+NETP or AT+SOCKB). If UDP Server receive data, module will remeber the source address which sent
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com15data, afterwards when UART receive data, module will forward data to this address.When it set to be UDP Client, module send to the pre-set IP and Port only, and only receive data frompre-set IP and Port. Data from other address will not be sent to UART.4.4. Search in LANModule can be searched in LAN, that is, when module get access to the wireless router, user can obtainmodule current IP address by sending UDP broadcast to a certain port, to realize device serach andcommunicate. The port and keywords can be set by AT+SEARCH, default 48899,www.usr.cnSearch Tool Process1. On another device in LAN, send a command by UDP broadcastUDP broadcast: address xx.xx.xx.255, port 48899Command: www.usr.cn, max 20 bytes can be set2. After module receiving the command, if command is correct, module will switch to config mode, sendlocal IP, MAC, MID and version no. to this address(IP, MAC, MID, ver example: 10.10.100.254, D8B04CFC0000, USR-C215, 01.01.10)Module will quit the config mode, if it did not receive setup commands in 30s after get into config mode.User need to resend search commands to switch config mode.3. User can query/set module work status by sending network AT command to this port. AT command thesame as UART AT command.<Note>Search tool must be in the same LAN with module. If multi STAs connect to a router, the PC with searchtool also under this router, search tool will obtain all STAs modules.4.5. Registration Packet MechanismWhen module works in TCP Client or UDP Client mode, user can open registration packet function, in thisway, server can distinguish data source, to realize data mornitoring for different devices. There are 2 type:MAC and ID. MAC is 6 bytes, ID range from 1~65535. We no longer use ID, but recommend MAC now.Command AT+REGENA to open and close this function.Registration packet mechanism way as follows:TCP Client: 2 waysSend once only. When module connect to TCP Server, module will send registration packet toTCP Server.Send in each data packet. When TCP Client connect to server, registration packet will be insertinto the front of each data packetUDP ClientRegistration packet will be insert into the front of each data head and send.4.6. Usrlink (Fast Networking Protocol)When module works in AP mode, will open an UDP port, which is used to receive fast networking protocolcommand, port number is 48899 (the same as search in LAN port, can be set). Smart phone can connect withmodule WiFi network directly, through commands under UDP protocol, query SSID information list and set
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com16router SSID&Password. After setup, module will restart and connect to pre-set router. Now module works inSTA mode.Protocol format instructionsQuery commandNo. Name No. of bytes Instruction1 Packet head 1 Fixed value 0xFF2 Length 2 All the bytes after length (not included) and in frontof check (not included)3 Command word 1 Command type, 0x01 is query command4 Check words 1 Cumulate SUM of all bytes after packet hear (notincluded) and in front of check (not included)Query response commandNo. Name No. of bytes Instruction1 Packet head 1 Fixed value 0xFF2 Length 2 All the bytes after length(not included) and in frontof check(not included)3 Command word 1 Command type, corresponding responsecommand for query command is 0x814 No. of AP 1 No. of AP that searched at present5 SSID1 Not regular SSID of router 16 End mark 1 SSID end mark of router 1, fixed value 0x007 Signal strength 1 1 Signal strength of router 1 network, range from0~100, corresponding actual value is 0%~100%8 End mark 2 End mark of signal strength 1, 0x0D, 0x0A.… … … ………M SSIDn Not regular SSID of router nM+1 End mark 1 SSID end mark of router n, fixed value 0x00M+2 Signal strength n 1 Signal strength of router n network, range from0~100, corresponding actual value is 0%~100%M+3 End mark 2 End mark of signal strength n, 0x0D, 0x0A.M+4 Check words 1 Cumulate SUM of all bytes after packet hear (notincluded) and in front of check (not included)Example:Smart phone send to module (in HEX): FF 00 01 01 02Module response to smart phone (in HEX): FF 00 14 81 02 54 45 53 54 31 00 40 0D 0A54 45 53 54 32 00 37 0D 0A 1FExplaination: smart phone send query command to module to check router information. Module repliedinformation to smart phone: there are 2 routers. SSID of router 1 is “TEST1”, signal strength is 64%. SSID ofrouter 2 is “TEST2”, signal strength is 55%<Note>The router information that module replied is ordered according to signal strength.
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com17Set instructionsNo. Name No. of bytes Instruction1 Packet head 1 Fixed value 0xFF2 Length 2 All the bytes after length (not included) and infront of check (not included)3 Command word 1 Command type, 0x02 is query command4 Reserved word 1 Default 0x005 SSID Not regular SSID of router6 Separator 2 Separator of SSID, fixed value 0x0D, 0x0A7 Password Not regular Password of router8 Check words 1Cumulate SUM of all bytes after packet hear(not included) and in front of check (notincluded)Response instructionsNo. Name No. Of bytes Instruction1 Packet head 1 Fixed value 0xFF2 Length 2 All the bytes after length (not included) and infront of check (not included)3 Command word 1 Command type, 0x82 is the correspondingresponse command for setting command4 Check value 1Check resault for SSID0x01: corresponding network for SSID can befind0x00: can’t be find5 Check value 1Check resault for password0x01: password correct0x00: password incorrect6 Check words 1Cumulate SUM of all bytes after packet hear(not included) and in front of check (notincluded)ExampleMobile phone send to module (in HEX): FF 00 0F 02 00 54 45 53 54 31 0D 0A 31 32 33 34 35 36 CEModule response to mobile phone (in HEX): FF 00 03 82 01 01 87Instruction: mobile phone send setting command to module, set SSID to be “TEST1”, password to be“123456”. The information which module reply to phone is: the network “TEST1” is exist, password is correct4.7. SimplelinkThis function is to realize module for intelligent networking, that is to connect to AP easily, no need toestablish connection with module. Steps:1. Install the APP in mobile
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com182. Pull down Reload pin for 1-3s, module will switch to Simplelink mode. Ready pin output 0.5Hz level.3. Open APP in mobile, input password, click “connect”4. Module will restart if connect to AP successfully. APP will receive MAC address sent by module.4.8. Class RFC2217RFC2217 is a standard protocol which is used to modify UART settings by Ethernet port. USR-C215support a protocol that is class with RFC2217, can realize the same function, but it is easier.After sending command to device, will excute UART settings and reply nothing if ok. If check or protocolincorrect, it will be regarded as common data packet and forwarded by serial port.It is workable in TCP Client, TCP Server, UDP Client, UDP Server mode.Its modification will immediately take effect, no need to restart, valid for once, not saved, lost if power off.Protocol length: 8 bytes. Example in HEX, detailed protocol as follows:Attached: Bit instructionsBit No. Instruction Value Description1:0 Data bit choose 00 501 610 711 82 Stop bit 0 11 23 Check bit enable 0 Disable1 Enable5:4 Check bit type 00 ODD01 EVEN10 Mark11 Clear7:6 Undefinition 00 Pls write 0Name Packet header Baud rate Bit SumcheckNo. Of bytes 3 3 1 1Instruction 3 bytes toreduse error3 bytes mean onebaud rate value,high in frontDifferent bitmeans different,see attached listSumcheck of 4 bitin front, ignorecarryExample(115200,N,8,1) 55 AA 55 01 C2 00 83 46Example(9600,N,8,1) 55 AA 55 00 25 80 83 28
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com195. Setting MethodModule can be set by Webpage and AT command5.1. WebpageFirst time when use the module, we should do some necessary settings.Access into Webpage:1. Open WiFi network and search2. Scan WiFi and select USR-C215, connect3. Input 10.10.100.254 in browser4. Input username and passwordDefault settings:Parameters Default settingsSSID USR-C215IP address 10.10.100.254Username adminPassword adminAccess into the webpage, you can choose English on the top right conner. There are 6 parts in total:“Sys Status”, “Trans Setting”, “Extra function”, “System Setting”, “About USR”
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com205.1.1. WiFi Parameter SettingHere we can set WiFi work mode: AP, STA, AP+STASet parameters in AP or STA mode, click “Save” to save your settings.
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com215.1.2. Transparent Transmission Parameter Setting1. Serial Port Settings, including: baud rate, data, check, stop, CTS/RTS2. Socket Connection Settings, including: protocol, IP, Port3. Socketb Connection Settings, including: protocol, IP, Port.Click “Save” to save your settings.
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com225.1.3. Extra FunctionRFC2217: Disable/EnableSearch in LAN: default port 48899, command www.usr.cnRegistration MechanismModule MID: default USR-C215, max 20 bytes
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com235.1.4. System SettingReload&Restart
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com245.1.5. About USR5.2. AT Command InstructionsIn AT command mode, module can be set by UART.Default UART settings: 115200, None, 8, 1<Note>We recommend SecureCRT as AT command debug toolSteps to switch transparent transmission mode to AT command mode:1. Input “+++” in UART2. Module receive and reply “a”3. Input “a” in UART4. Module receive and reply “+OK”, switch into AT command mode
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com25<Note 1>There is no echo when input “+++” and “a”, as below image<Note 2>To avoide the module get into command mode in normal work, need to input “+++” and “a” within a certaintime, see requirement below:Steps to switch to AT command mode to transparent transmission mode1. In AT command mode, input AT+ENTM, end with carrage return5.2.1. AT Command DescriptionAT+ command can be input through serial debugger and programsAT+ command adopts the command line based on ASCII code, command format as follows:Format Instruction< >: essential part[ ]: optional partCommand InformationAT+<CMD>[op][para-1,para-2,para-3,para-4,...]<CR>AT+: prefix of command[op]: command operator, indicate Query or Set“=”: set“NULL”: Query[para-n]: the input parameter for settings, no need for query<CR>: end mark, carrage return, 0X0A or 0X0D in ASCII<Note>If user did not close echo function(AT+E), the command which you input will be send back, <CR> notback.Response Information<CR><LF>+<RSP>[op] [para-1,para-2,para-3,para-4,...]<CR><LF>+: prefix of reponse informationRSP: response character string,including“OK”: succeed“ERR”: failed
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com26[para-n]: response parameters or error code<CR>: 0x0d in ASCII code<LF>: 0x0a in ASCII codeError codeError code listError code Instructions-1 Invalid command format-2 Invalid command-3 Invalid operator-4 Invalid parameter-5 Operating not permit5.3. AT Instruction Set5.3.1. AT Command ListNO Command DescriptionManage command1 E Open/Close echo function2 WMODE Query/Set Wi-Fi mode (AP/STA/APSTA)3 ENTM Enter transparent transmission mode4 MID Query module ID5 RELD Reload to factory defaults6 Z Reset module7 H Help (not available now)Config parameters command8 CFGTF Copy user settings tobe factory defaultsUART command9 UART Query/Set UART settings10 UARTTE Query/Set time interval between each 2 bytes for freeframeSOCK A parameters command11 NETP Query/Set network protocol parameters12 TCPLK Query whether TCP link established13 TCPDIS Connect/Disconnect TCP linkSOCK B parameters command14 SOCKB Query/Set network protocol parameters of SOCKB15 TCPDISB Comnnect/Disconnect TCP_B link16 TCPLKB Query whether TCP_B link establishedWiFi STA command17 WSSSID Query/Set SSID that related to AP18 WSKEY Query/Set encrypting parameters of STA19 WANN Query/Set network parameters of STA
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com2720 WSMAC Query MAC address of STA21 WSLK Query wireless link status of STA22 WSLQ Query signal strength for STA to connect AP23 WSCAN Scan AP24 WSDNS Query/Set DNS server address in STA mode for staticsettingWiFi AP command25 LANN Query/Set network parameters of AP26 WAP Query/Set WiFi config parameter of AP27 WAKEY Query/Set encrypting parameters of AP28 WALK Query MAC address of STA which connect to APWebpage command29 PLANG Query/Set language of webpageD2D command (not recommend)30 DTDDIS Open/Close D2D function31 DTDID Query/Set D2D IDOther command32 WRMID Set module ID33 ASWD Query/Set search command of module34 SMTLK Open Smartlink function35 USERVER Query user version and compile time36 RPTMAC Query whether open report MAC function37 WRRPTMAC Set whether open report MAC function5.3.1.1. AT+EFunction: Query/Set echo settings of at commandFormat:QueryAT+E <CR>+OK=<on/off><CR><LF><CR><LF>SetAT+E=<on/off><CR>+OK<CR><LF><CR><LF>Parameters:on: open echo, echo the command that in AT command mode.Off: do not echo the command in AT command mode.5.3.1.2. AT+WMODEFunction: Query/Set WiFi work mode (AP/STA/APSTA)Format:
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com28QueryAT+WMODE<CR>+ok=<mode><CR><LF><CR><LF>SetAT+ WMODE=<mode><CR>+ok<CR><LF><CR><LF>Parameters:Mode: WI-FI work modeAPSTAAPSTA5.3.1.3. AT+ENTMFunction: switch to transparent transmission modeFormat:AT+ENTM<CR>+ok<CR><LF><CR><LF>After the command execute correctly, module will switch to transparent transmission mode5.3.1.4. AT+MIDFunction: Query module IDFormat:AT+MID<CR>+ok=<module_id><CR><LF><CR><LF>Parameters:module_id: module IDUSR-C215Note: can set this parameter by AT+WRMID5.3.1.5. AT+RELDFunction: Reload to factory defaultsFormatAT+ RELD<CR>+ok=rebooting...<CR><LF><CR><LF>This command restore factory defaults, then restart automatically5.3.1.6. AT+ZFunction: ResetFormat:
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com29AT+ Z<CR>5.3.1.7. AT+H (not available now)Function: HelpFormat:AT+H<CR>+ok=<command help><CR><LF><CR><LF>Parameters:command help: command help instruction5.3.1.8. AT+CFGTFFunction: Copy user config parameters tobe factory defaultsFormat:QueryAT+CFGTF<CR>+ok=<status><CR><LF><CR><LF>Parameters:status: response operate statusSAVED: set succeedNON-SAVED: set failed5.3.1.9. AT+UARTFunction: Query/Set UART settingsFormat:QueryAT+UART<CR>+ok=<baudrate,data_bits,stop_bit,parity,flowctrl><CR><LF><CR><LF>SetAT+UART=<baudrate,data_bits,stop_bit,parity,flowctrl><CR>+ok<CR><LF><CR><LF>Parameters:baudrate:1200,2400,4800,9600,14400,19200,38400,57600,115200,128000,153600,230400 bit/sdata_bits:8stop_bits:1parity:NONE
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com30EVENODDMARKSPACEflowctrl:hardware flow control CTSRTSNFC: no flow control5.3.1.10. AT+UARTTEFunction: Query/Set time interval of free framingFormat:QueryAT+ UARTTE<CR>+OK=<num><CR><LF><CR><LF>SetAT+ UARTTE=<num ><CR>+OK<CR><LF><CR><LF>Parameters:num: range from 20-250, unit in ms. Time interval between 2 bytes in free frame mode.Note: now parameters will automatically change when setting baudrate. If need modifying time interval,need to set baudrate in advance.When baudrate <= 1200, num=250msWhen baudrate >= 20000, num=20msWhen 1200 < baudrate < 20000, num=2000/baudrate*10*20, num take integer5.3.1.11. AT+NETPFunction: Query/Set network protocol parameterFormat:QueryAT+NETP<CR>+ok=<protocol,CS,port,IP><CR><LF><CR><LF>SetAT+NETP=<protocol,CS,port,IP><CR>+ok<CR><LF><CR><LF>Parameters:protocol:TCPUDPCS: network modeSERVERCLIENTPort: protocol port, in decimal, less than 65535
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com31IP: when module is set to be “Client”, the destination IP addressIf module set to be UDP, SERVER mode, IP address and port can be saved. Module will automaticallysave the latest received IP address and port, and send data to this address. Module in initialization mode, willsend data to this address and port.If set to be UDP, CLIENT mode, no remeber function.5.3.1.12. AT+TCPLKFunction: Query whether TCP link is establishedFormat:AT+ TCPLK<CR>+ok=<sta><CR><LF><CR><LF>Parameters:sta.: whether TCP link is establishedon: establishedoff: not established5.3.1.13. AT+TCPDISFunction: Connect/Disconnect TCP linkFormat:QueryAT+TCPDIS<CR>+ok=<sta><CR><LF><CR><LF>SetAT+ TCPDIS =<on/off><CR>+ok<CR><LF><CR><LF>Parameters:sta: reply the TCP Client status, if can be connect or noton: can be connectoff: can’t be connect5.3.1.14. AT+SOCKBFunction: Query/Set SOCKB network protocol parametersFormat:QueryAT+SOCKB<CR>+ok=<protocol,port,IP><CR><LF><CR><LF>SetAT+SOCKB=<protocol,port,IP><CR>+ok<CR><LF><CR><LF>Parameters:
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com32protocol:TCP: TCP ClientUDP: UDP ClientUSPS: UDP ServerPort: protocol port, in decimal, less than 65535IP: destination IP address, support DNSIf module set to be UDPS, IP address and port can be saved. Module will automatically save the latestreceived IP address and port, and send data to this address. Module in initialization mode, will send data to thisaddress and port.Note: SOCKETB can be closed by command AT+SOCB=NONE5.3.1.15. AT+TCPDISBFunction: Connect/Disconnect TCP_B linkFormat:QueryAT+TCPDISB<CR>+ok=<sta><CR><LF><CR><LF>SetAT+ TCPDISB =<on/off><CR>+ok<CR><LF><CR><LF>Parameters:off: module will not try to establish link, that is, when module receive the command, it willdisconnect and not connect again.on: module will connect to server immediately.This command will not be saved, default open after reset.5.3.1.16. AT+TCPLKBFunction: Query whether TCP_B link is establishedFormat:AT+ TCPLKB<CR>+ok=<sta><CR><LF><CR><LF>Parameterssta.: whether TCP_B link is establishedon: establishedoff: not established5.3.1.17. AT+WSSSIDFunction: Query/Set SSID of APFormat:Query
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com33AT+WSSSID<CR>+ok=<ap's ssid><CR><LF><CR><LF>SetAT+ WSSSID=<ap's ssid ><CR>+ok<CR><LF><CR><LF>Parameters:ap's ssid:SSID of AP, max 32 bytes5.3.1.18. AT+WSKEYFunction: Query/Set encryption parameters of STAFormat:QueryAT+WSKEY<CR>+ok=<auth,encry,key><CR><LF><CR><LF>SetAT+ WSKEY=< auth,encry,key><CR>+ok<CR><LF><CR><LF>Parameters:auth: authentication mode, includingOPENSHAREDWPAPSKWPA2PSKencry: encryption, indludingNONE: valid when “auth=OPEN”WEP-H: valid when “auth=OPEN” or “SHARED”, in HEX password formatWEP-A: valid when “auth=OPEN” or “SHARED”, in ASCII password formatTKIP: valid when “auth= WPAPSK or WPA2PSK”AES: valid when “auth= WPAPSK or WPA2PSK”key: passworkWhen encry=WEP-H, password in HEX, 10 or 26 bytesWhen encry=WEP-A, password in ASCII, 5 or 13 bytesOthers in ASCII code, greater than 8 bytes and less than 64 bytes5.3.1.19. AT+WANNFunction: Query/Set network parameters of STAFormat:QueryAT+WANN<CR>+ok=<mode,address,mask,gateway><CR><LF><CR><LF>SetAT+ WANN=< mode,address,mask,gateway ><CR>
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com34+ok<CR><LF><CR><LF>Parameters:mode: network IP mode of STAstatic: static IPDHCP: dynamic IPaddress: IP address of STAmask: subnet mask of STAgateway: gateway of STA5.3.1.20. AT+WSMACFunction: Query/Set MAC assress of STAFormat:QueryAT+WSMAC<CR>+ok=<mac_address><CR><LF><CR><LF>Parameters:mac_address: MAC assress of STA, example: D8B0CFFF12345.3.1.21. AT+WSLKFunction: Query the wireless link status of STAFormat:QueryAT+ WSLK<CR>+ok=<ret><CR><LF><CR><LF>Parameters:retIf no link, reply “Disconnected”If link, reply “SSID(MAC) of AP”If wireless is closed, reply “RF Off”5.3.1.22. AT+WSLQFunction: Query the wireless signal strength of STAFormat:QueryAT+ WSLQ<CR>+ok=<ret><CR><LF><CR><LF>Parameters:retIf no link, reply “Disconnected”If link, reply signal strength of AP
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com355.3.1.23. AT+WSCANFunction: Scan APFormat:QueryAT+ WSCAN<CR>+ok=<LF><CR>Ch,SSID,BSSID,Security,Indicator<LF><CR><ap_site_1><LF><CR><ap_site_2><LF><CR><ap_site_3><LF><CR>...<ap_site_N><LF><CR><CR><LF>Parameters:ap_site_N: the AP site that scanned, format is <Ch,SSID,BSSID,Security,Indicator>Ch: channel no. of WiFi networkSSID: SSID of routerBSSID: MAC address of routerSecurity: security mode of routerIndicator: signal strengthExample: “11,TP_LINK_USR,D8:15:0D:C6:3E:14,WPA2PSK/AES,76”5.3.1.24. AT+WSDNSFunction: Query/Set DNS server address in STA mode, staticFormat:QueryAT+WSDNS<CR>+ok=<address><CR><LF><CR><LF>SetAT+ WSDNS =<address><CR>+ok<CR><LF><CR><LF>Parameters:address: DNS server address in STA5.3.1.25. AT+LANNFunction: Query/Set network parameters of APFormat:QueryAT+LANN<CR>+ok=<ipaddress,mask><CR><LF><CR><LF>SetAT+ LANN=< ipaddress,mask><CR>+ok<CR><LF><CR><LF>Parameters:ipaddress: IP address in AP modemask: subnet mask in AP mode
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com365.3.1.26. AT+WAPFunction: Query/Set WiFi settings of APFormat:QueryAT+WAP<CR>+ok=< wifi_mode,ssid,channel ><CR><LF><CR><LF>SetAT+ WAP =<wifi_mode,ssid,channel ><CR>+ok<CR><LF><CR><LF>Parameters:wifi_mode: Wi-Fi mode, including11B11BG11BGN (default)ssid: SSID in AP modechannel: Wi-Fi channelSelect AUTO or CH1~CH11, default CH65.3.1.27. AT+WAKEYFunction: Query/Set encryption of APFormat:QueryAT+WAKEY<CR>+ok=<auth,encry,key><CR><LF><CR><LF>SetAT+ WAKEY=< auth,encry,key><CR>+ok<CR><LF><CR><LF>Parameters:auth: authentication type, includingOPENWPA2PSKencry: encryption type, includingNONE: valid when “auth=OPEN”AES: valid when “auth=WPA2PSK”key: password, in ASCII, less than 64bytes and greater than 8 bytes5.3.1.28. AT+WALKFunction: Query the MAC address of STA device, which linked to moduleFormat:Query
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com37AT+WALK<CR>+ok=<status><CR><LF><CR><LF>Parameters:status: the MAC address of STA device, which linked to moduleNo Connection: no STA devices linked to module AP5.3.1.29. AT+PLANGFunction: Query/Set language of webpageFormat:QueryAT+PLANG<CR>+ok=<language><CR><LF><CR><LF>SetAT+PLANG =<language><CR>+ok<CR><LF><CR><LF>Parameters:language: language of webpageCN Chinese(default)EN English5.3.1.30. AT+DTDDISFunction: Open/Close function of send D2D registration packetFormat:QueryAT+DTDDIS<CR>+ok=<status><CR><LF><CR><LF>SetAT+DTDDIS=<status><CR>+ok<CR><LF><CR><LF>Parameters:status:on: openoff: closeNote: we no longer recommend this function now.5.3.1.31. AT+DTDIDFunction: Query/Set registration ID of D2DFormat:QueryAT+DTDID<CR>
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com38+ok=<id><CR><LF><CR><LF>SetAT+DTDID=<id><CR>+ok<CR><LF><CR><LF>Parameters:id: registration ID, range from 1~65535Note: we no longer recommend this function now.5.3.1.32. AT+WRMIDFunction: Set module IDFormat:SetAT+ WRMID =<wrmid><CR><LF><CR><LF>+ok<CR><LF><CR><LF>Parameters:wrmid: set module ID, in 20 characters5.3.1.33. AT+ASWDFunction: Query/Set module search passwordFormat:QueryAT+ ASWD <CR>+ok=<aswd><CR><LF><CR><LF>SetAT+ASWD =<aswd><CR><LF><CR><LF>Parameters:aswd: module search password5.3.1.34. AT+SMTLKFunction: start Simplelink functionFormat:QueryAT+SMTLK<CR>Smartlink function us used to connect module to router easily. When function on, module work in thismode, led lights quickly and waiting for the APP to push configuration information5.3.1.35. AT+USERVERFunction: Query user version and edit timeFormat:
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com39AT+USERVER<CR>+ok=<user_version,generated_time><CR><LF><CR><LF>Parameters:user_version:V1.1generated_time: edit time2014-08-15 10:155.3.1.36. AT+RPTMACFunction: Query whether report MACFormat:AT+RPTMAC<CR>+ok=<status><CR><LF><CR><LF>Parameters:status:ON: openOFF: closed5.3.1.37. AT+WRRPTMACFunction: Set whether report MACFormat:AT+WRRPTMAC=<status><CR>+ok<CR><LF><CR><LF>Parameters:status:ON: openOFF: closed
h.usriot.comJinan USR IOT Technology Limited / 40 www.usriot.com406. Contact UsCompany: Jinan USR IOT Technology LimitedAddress: Floor 11, Building1, No.1166 Xinluo Street, Gaoxin Distric, Jinan, Shandong, 250101, ChinaTel: 86-531-55507297, 86-531-88826739Web: http://www.usriot.comSupport : http://h.usriot.comEmail: sales@usriot.com7. DisclaimerThis document provide the information of USR-C215 products, hasn’t been granted any theintellectualproperty license by forbid speak or other ways either explicitly or implicitly. Except for the duty of salesconditions and conditional declarations, we don’t take any other responsibilities. We don’t warrant the productssales and use explicitly or implicitly, including particular purpose merchantability and marketability, the tortliability of any other patent right, copyright, intellectual property right. We may modify specification anddescription at any time without prior notice.8. Update History2016-04-29 Establish V1.0
Federal Communication Commission Statement (FCC, U.S.)This equipment has been tested and found to comply with the limits for a Class B digitaldevice, pursuant to Part 15 of the FCC Rules. These limits are designed to providereasonable protection against harmful interference in a residential installation. Thisequipment generates, uses and can radiate radio frequency energy and, if not installedand used in accordance with the instructions, may cause harmful interference to radiocommunications. However, there is no guarantee that interference will not occur in aparticular installation. If this equipment does cause harmful interference to radio ortelevision reception, which can be determined by turning the equipment off and on, theuser is encouraged to try to correct the interference by one of the following measures:- Reorient or relocate the receiving antenna.- Increase the separation between the equipment and receiver.- Connect the equipment into an outlet on a circuit different from that to which thereceiver is connected.- Consult the dealer or an experienced radio/TV technician for help.This device complies with Part 15 of the FCC Rules. Operation is subject to the followingtwo conditions: (1) This device may not cause harmful interference, and (2) this devicemust accept any interference received, including interference that may cause undesiredoperation.FCC Caution:Any changes or modifications not expressly approved by the party responsible forcompliance could void the user's authority to operate this equipment.IMPORTANT NOTESFCC Radiation Exposure Statement:This equipment complies with FCC radiation exposure limits set forth for an uncontrolledenvironment. This equipment should be installed and operated with minimum distance20cm between the radiator & your body.Co-location warning:This transmitter must not be co-located or operating in conjunction with any otherantenna or transmitter.Limited Channels fixed for use in the US:IEEE 802.11b or 802.11g or 802.11n(HT20) operation of this product in the U.S. isfirmware-limited to Channel 1 through 11. IEEE 802.11n(HT40) operation of this productin the U.S. is firmware-limited to Channel 3 through 9.OEM integration instructions:This device is intended only for OEM integrators under the following conditions:The antenna must be installed such that 20 cm is maintained between the antenna andusers, and the transmitter module may not be co-located with any other transmitter orantenna. The module shall be only used with the external antenna(s) that has beenoriginally tested and certified with this module.As long as 3 conditions above are met, further transmitter test will not be required.However, the OEM integrator is still responsible for testing their end-product for anyadditional compliance requirements required with this module installed (for example,digital device emissions, PC peripheral requirements, etc.).Validity of using the module certification:
In the event that these conditions cannot be met (for example certain laptopconfigurations or co-location with another transmitter), then the FCC authorization for thismodule in combination with the host equipment is no longer considered valid and theFCC ID of the module cannot be used on the final product. In these circumstances, theOEM integrator will be responsible for re-evaluating the end product (including thetransmitter) and obtaining a separate FCC authorization.End product labeling:This transmitter module is authorized only for use in device where the antenna may beinstalled such that 20 cm may be maintained between the antenna and users. The finalend product must be labeled in a visible area with the following: “Contains TransmitterModule FCC ID: 2AJDA-USR-C215A”.Information that must be placed in the end user manual:The OEM integrator has to be aware not to provide information to the end user regardinghow to install or remove this RF module in the user's manual of the end product whichintegrates this module. The end user manual shall include all required regulatoryinformation/warning as show in this manual.

Navigation menu