Air602 AT Command User Manual V1.
Air602_AT Instruction User Manual Document version Version Data Modify record Author Review Approve V1.0.0 2018-03-29 create Mrbenlu Craoy Luat V1.0.1 2018-08-04 Improve documentation Mrbenlu Craoy Luat V1.0.2 2018-08-05 Improve documentation Mrbenlu Craoy Luat V1.1 Improve documentation, add 2018-08-08 examples, add MQTT Winny Bill Seeed Completed the English translation V1.1 English 2018-10-24 based on version 1.
Air602_AT Instruction User Manual Contents 1 Introduction ......................................................................................................................................................6 1.1 Overview....................................................................................................................................................6 . 1.2 Control Command Protocol............................................................................................................
Air602_AT Instruction User Manual 2.2.2.6 Socket connection in automatic operating mode :AT+ATRM ............................. 25 2.2.2.7 Wireless Network Name :AT+SSID .................................................................... 27 2.2.2.8 SoftAP Wireless Network Name :AT+APSSID................................................... 27 2.2.2.9 Wireless Network Security Mode :AT+ENCRY.................................................. 28 2.2.2.
Air602_AT Instruction User Manual 2.2.3.11 Send data through the specified socket :AT+SKSND .......................................... 52 2.2.3.12 Read the data in the receive buffer of the specified socket :AT+SKRCV............ 53 2.2.3.13 Get the specified socket state :AT+SKSTT ........................................................... 54 2.2.3.14 Close the specified socket :AT+SKCLS ................................................................. 55 2.2.3.
Air602_AT Instruction User Manual 1 Introduction 1.1 Overview This manual describes the AT+ command communication protocol of the Luat embedded Wi-Fi module. The AT+ command protocol uses a set of command based on ascii to communicate with the Wi-Fi chip through the UART interface. 1.2 Control Command Protocol 1.2.1 Command Code This section is a user command for implementing parameter configuration and networking transmission of the product.
Air602_AT Instruction User Manual 12 13 ENCRY Switch serial port character echo Set/Query Wireless Network Security Mode 14 ENTM Enter serial port transparent transmission mode 15 ENTS Set the system to enter energy saving mode 16 HTTPC 17 KEY Set/Query Wireless Network Key 18 LKSTT Query network connection status 19 LKSTT2 Query network connection status 2, valid only in APSTA mode 20 NIP 21 Luat E ONESHOT HTTP post get data function Set/query the local IP address Turn one-click
Air602_AT Instruction User Manual Luat 33 SKRPTM Open or close the socket to actively report the receiving data function 34 SKSDF Set the default send socket connection 35 SKSND Send data over a socket connection 36 SKSRCIP Query socket data source IP address 37 SKSTT 38 SLIST Query the STAs that have been connected, valid only in AP and APSTA modes.
Air602_AT Instruction User Manual 1.2.
Air602_AT Instruction User Manual 2 AT Command Protocol 2.1 Syntax Description This module uses the AT+ command protocol as the user control protocol. The AT+ instruction protocol uses a set of command line format instruction sets based on ascii. The syntax format and processing flow are described below. 2.2.
Air602_AT Instruction User Manual :Carriage Return,ascii character 0x0d :Line feed,ascii character 0x0a Data Type • String:String, Surrounded by double quotes, the content does not contain quotes, e.g.:"this is a string" Dec: Decimal number , e.g.:10 Hex: Hexadecimal number , e.g.:a Ip:ip address string , e.g.:192.168.0.1 MAC: Consists of 12 hexadecimal digits , e.g.: 001EE3A80102 2.1.1.1 Processing flow The AT+ instruction protocol takes the form of command + response.
Air602_AT Instruction User Manual For some special commands, such as AT+SKSND, AT+SKRCV, it is necessary to transmit binary data after the instruction or response details.
Air602_AT Instruction User Manual AT+ATPT=!500 +OK Example 5: Using the Query Operator > AT+ATPT=? +OK=500 2.2 Instruction Definition 2.2.1 System Control Class Instruction 2.2.1.1 Null Operation Instruction:AT+ • Function: empty operation, can be used to detect whether the program is responding normally • Format(ASCII): AT+ +OK • Parameter:Null • e.g.:( → indicates input, ← indicates return or ac ve report, the same below ) → AT+ ← +OK 2.2.1.
Air602_AT Instruction User Manual AT+Z +OK • Parameter:Null • e.g.: → AT+Z ← +OK ready 2.2.1.3 Set Echo:AT+E • Function: Switch serial port command echo • Format(ASCII): AT+E +OK • Parameter:Null • e.g.: → AT+E ← +OK 2.2.1.
Air602_AT Instruction User Manual • Format(ASCII): AT+ENTM +OK • Parameter:Null • e.g.: Entering the transparent mode requires the following steps: 1. Connect to the internet → AT+E ← +OK → AT+KEY=1,0,"" ← +OK → AT+WJOIN ← +OK=3c46d82bd81e,0,11,0,"TP-LINK_ Luat_AP ",51 2. Creat a socket → AT+SKCT=0,0, 36.7.87.76,1000,2000 ← +OK=1 3.
Air602_AT Instruction User Manual 4. Entering the transparent mode → AT+ENTM ← +OK 2.2.1.
Air602_AT Instruction User Manual Attention: ① In the Wi-Fi OFF energy saving mode, the setting is valid only when the network is disconnected, and the wake_time parameter is meaningless. ② Standby and sleep power-saving modes will cause the network connection to be disconnected and the wake-up will be reset. ③ Set WAKEUP pin wake mode, the wake_time parameter is meaningless. • e.g.: 1.
Air602_AT Instruction User Manual • E.g.: → AT+RSTF ← +OK 2.2.1.7 Save in-memory parameters to FLASH :AT+PMTF • Function: Update all parameters saved in memory to FLASH • Format(ASCII): AT+PMTF +OK • Parameter:Null • e.g.
Air602_AT Instruction User Manual ← +OK → AT+SSID=!TP-LINK_HyFi_1E ← +OK → AT+KEY=!1,0,"" ← +OK 2.2.1.8 Get the physical address of the wireless network card in STA mode :AT+QMAC • Function: Get the physical address of the wireless network card. • Format(ASCII): AT+QMAC +OK= • Parameter: mac address: Physical address, the return format is as follows Format ASCII Format command Description a hexadecimal number of length 12, like: 001EE3A34455 • e.g.
Air602_AT Instruction User Manual • Format(ASCII): AT+APMAC +OK= • Parameter: mac address: Physical address, the return format is as follows Format ASCII Format command Description a hexadecimal number of length 12, like : 001EE3A34455 e.g.: → AT+APMAC ← +OK=2a6dcd004e7d 2.2.1.10 Get version information :AT+QVER • Function:Get system version information, including hardware version and firmware version.
Air602_AT Instruction User Manual → AT+QVER ← +OK=AirM2M_Luat_WiFi_V008_WM 2.2.2 Parameter Setting Class Instruction 2.2.2.1 Wireless Network Type:AT+WPRT • Function: Set/Query Wireless Network Type • Format(ASCII): AT+WPRT=[!?][type] +OK[=type] Parameter: type:Network Type Value Description 0 infra Network(STA mode) 1 adhoc Network 2 infra Network(AP mode) 3 infra Network(APSTA mode) e.g.
Air602_AT Instruction User Manual 2.2.2.2 Query/set the local IP address in STA mode :AT+NIP • Function: When the wireless network card is used as a STA, this command is used to set/query the local IP address. It should be noted that when the address type is set to DHCP Server, you cannot use this command to query the IP address information that the wireless network card actually allocates dynamically. Queries can use the AT+LKSTT command.
Air602_AT Instruction User Manual → AT+KEY=!1,0,"" ← +OK → AT+WJOIN ← +OK=3c46d82bd81e,0,11,0,"TP-LINK_HyFi_1E",59 → AT+LKSTT ← +OK=1,"192.168.1.124","255.255.255.0","192.168.1.1","192.168.1.1","0.0.0.0" → AT+NIP=? ← +OK=0,192.168.1.1,255.255.255.0,192.168.1.1,192.168.1.1 Note: The above test shows that in the case of DHCP enabled, the second parameter queried by AT+NIP=? is not the IP address actually obtained by the module, and the second parameter queried by AT+LKSTT is. 2.2.2.
Air602_AT Instruction User Manual ip:ip address,data format "192.168.1.22", Without quotes netmask: Subnet mask, data format is the same as ip address gateway: Gateway address, data format is the same as ip address dns: DNS address, data format is the same as ip address • e.g.: → AT+APNIP=1,192.168.1.1,255.255.255.0,192.168.1.1,192.168.1.1 ← +OK Please refer to this document for specific applications. Create a SoftAP process 2.2.2.
Air602_AT Instruction User Manual Set / query the operating mode. • Format(ASCII): AT+ATM=[!?][mode] +OK[=mode] • Parameter: mode:operating mode Value • Dscription 0 Automatic working mode 1 Command mode e.g.: Query current working mode: → AT+ATM=? ← +OK=1 Modify mode to automatic working mode : → AT+ATM=!0 ← +OK 2.2.2.
Air602_AT Instruction User Manual • Parameter: protocol:Protocol type Value Dscription 0 TCP 1 UDP cs:C/S Mode Value Dscription 0 Client 1 Server host_timeout:according to protocol and cs, its meaning is as follows cs protocol 0 X Dscription Destination server name, you can enter the domain name or ip address,e.g. "192.168.1.100" or "www.sina.com.
Air602_AT Instruction User Manual 2.2.2.7 Wireless network name :AT+SSID • Function: Set/Query the name of the wireless network to be joined in STA mode ,i.e.ssid。 • Format(ASCII): AT+SSID=[!?][ssid] +OK[=ssid] • Parameter: ssid: Wireless network name, 1~32 characters, with or without double quotes • e.g.: → AT+SSID=! Air_Test_WiFi ← +OK Please refer to this part for details. : STA joins the AP process 2.2.2.
Air602_AT Instruction User Manual → AT+APSSID=!"AAAA-Test-Wifi" ← +OK Please refer to this part for specific applications. Create a SoftAP process 2.2.2.9 Wireless network security mode :AT+ENCRY • Function: Set/query wireless network security mode. It is important to note that in addition to the OPEN mode, other security modes need to be set with the correct network key in conjunction with the AT+KEY command. In addition, in AP or AD-HOC mode, the module only supports setting OPEN, WEP64, and WEP128.
Air602_AT Instruction User Manual • e.g.: Query network security mode : → AT+ENCRY=? ← +OK=0 Set the network security mode to WEP64: → AT+ENCRY=!1 ← +OK 2.2.2.10 SoftAP wireless network security mode :AT+APENCRY • Function: Set/Query SoftAP Wireless Network Security Mode. In addition to the OPEN mode, other security modes require the correct network key to be set with the AT+APKEY command.
Air602_AT Instruction User Manual 4 WPA-PSK(CCMP/AES) 5 WPA2-PSK(TKIP) 6 WPA2-PSK(CCMP/AES) • e.g.: Set the network security mode to WEP64: → AT+APENCRY=!1 ← +OK 2.2.2.11 Network key :AT+KEY • Function: Set/query the network key. It should be noted that before using this command to set the network key, you sometimes need to set the network security mode using the AT+ENCRY command.
Air602_AT Instruction User Manual Key Format Safe Mode HEX ASCII WEP64 10 hexadecimal characters(note1) 5 ASCII characters(note2) WEP128 26 hexadecimal characters 13 ASCII characters WPA-PSK(TKIP) 64 hexadecimal characters 8~63 ASCII characters WPA-PSK(CCMP/AES) 64 hexadecimal characters 8~63 ASCII characters WPA2-PSK(TKIP) 64 hexadecimal characters 8~63 ASCII characters WPA2-PSK(CCMP/AES) 64 hexadecimal characters 8~63 ASCII characters Note1:The hexadecimal characters are 0~9, a~f (no
Air602_AT Instruction User Manual • Parameter: format: Key Format Value Dscription 0 HEX 1 ASCII Index: Key index number, 1 to 4 is used for WEP encryption key. Other encryption methods are fixed at 0.
Air602_AT Instruction User Manual 2.2.2.13 Set/query the BSSID address of the specified AP :AT+BSSID • Function: Set/query the BSSID address of the specified AP. This setting is valid only on the infra network when the module functions as a STA. • Format(ASCII): AT+BSSID=[!?][mode],[bssid] +OK[=mode,bssid] • Parameter: mode:BSSID Mode Value Dscription 0 automatic 1 Designation bssid:Network BSSID, A hexadecimal number of 12 in the format 001EE3A34455 2.2.2.
Air602_AT Instruction User Manual 0 automatic 1 Designation channel: Wireless channel number , effective range 1~14 . 2.2.2.15 Set / Query SoftAP Wireless Channel Mode :AT+APCHL • Function: Set / Query SoftAP Wireless Channel Mode . • Format(ASCII): AT+APCHL=[!?][ mode],[channel] +OK[=mode,channel] • Parameter: mode: Channel mode Value Dscription 0 automatic 1 Designation channel: Wireless channel number , effective range 1~14 . 2.2.2.
Air602_AT Instruction User Manual • Parameter: channel list: The list of wireless channels, in hexadecimal format, starting from the lowest bit, each bit representing a channel, the default is 3fff, indicating 1~14 all channels 2.2.2.17 Enable automatic creation of adhoc network functions :AT+WATC • Function: Set/Query whether to enable the automatic creation of the adhoc network function.
Air602_AT Instruction User Manual external wake-up, the WiFi is turned on when the time period indicated by the TIM information element of the beacon frame [minimum 100ms] comes, according to the TIM in the Beacon frame. The domain determines whether there is data to be received [including broadcast frames and unicast frames]. If there is no data, it will immediately enter the WiFi_off state. If there is data after processing, the wireless access will enter the WiFi_off state.
Air602_AT Instruction User Manual 2.2.2.19 Enable/disable AP SSID broadcast :AT+BRDSSID • Function: Enable/disable AP SSID broadcast. This setting is valid only when the module is an AP. • Format(ASCII): AT+BRDSSID=[!?][enable] +OK[=enable] • Parameter: enable: Whether to enable SSID broadcast Value Dscription 0 Ban AP SSID broadcast 1 Enable AP SSID broadcast 2.2.2.20 UART port data format :AT+UART • Function:Set/query the uart interface data format.
Air602_AT Instruction User Manual 38400 38400 bps 19200 19200 bps 9600 9600 bps 4800 4800 bps 2400 2400 bps 1200 1200 bps data bit:data bit Value Dscription 0 8 bit 1 7 bit stop bit: Stop bit Value Dscription 0 1 bit 1 not support 2 2 bit parity: parity Value Luat Dscription 0 No parity 1 Odd parity 2 Even parity 38 /73 page
Air602_AT Instruction User Manual 2.2.2.21 Built-in enable WEB management server :AT+WEBS • Function: Set/Query whether built-in enabled WEB Management Server • Format(ASCII): AT+WEBS=[!?][enable],[port] +OK[=enable,port] • Parameter: enable: Enable flag Value Dscription 0 Not enabled 1 enable port: Server port number, default is 80 2.2.2.22 Device name :AT+DNAME • Function:Set/query the device name.
Air602_AT Instruction User Manual AT+PASS=[!?][pass] +OK[=pass] • Parameter: pass: 6 ASCII characters 2.2.2.24 Receiving user data :AT+CUSTDATA • Function: Receive the user data sent by the one-click configuration tool. Send the AT+ONESHOT=1 command before use to configure the module in one-button configuration mode. • Format: AT+CUSTDATA[=?] +OK=data • Parameter:Null 2.2.2.
Air602_AT Instruction User Manual Value Dscription 0 BSSID is not enabled 1 Enable BSSID networking If the BSSID is enabled, it returns 1, bssid, key If BSSID is not enabled ,returns 0, ssid, key 2.2.3 Network control class 2.2.3.1 NIC interface mode :AT+PORTM • Function: Set/query the interface mode of the Network Card.
Air602_AT Instruction User Manual → AT+PORTM=? ← +OK=0 2.2.3.2 Get the IP address of the external domain name :AT+SKGHBN • Function: Obtain the IP of the external domain name. • Format(ASCII): AT+SKGHBN =[!?][URL] +OK[=IP] • Parameter: URL: External domain name IP: Corresponding IP address • e.g.: After the network is successfully added, the IP address of the external domain name can be queried as follows.
Air602_AT Instruction User Manual AT+WWPS=[!?][mode],[pin] +OK[=mode],[pin] • Parameter: mode: WPS function selection, empty parameters do not need to be filled out. mode pin get_pin set_pin Dscription Get the pin code Pin Code Set the pin code start_pin Start networking start_pbc Start networking pin: PIN code of the wireless router 2.2.3.4 Join the specified AP :AT+WJOIN • Function: Join/create the specified network depending on the type of network you have set up.
Air602_AT Instruction User Manual Value Dscription 0 STA Mode 1 Adhoc Mode 2 SoftAP Mode 3 APSTA Mode channel: Channel number b_encry: Encryption mode Value Dscription 0 Open 1 Encryption SSID: Wireless network name, 1~32 characters, surrounded by double quotes rssi: Network signal strength, without negative sign, unit Db, ie 50 means signal strength is -50Db • e.g.
Air602_AT Instruction User Manual 2.2.3.5 Disconnect the current network :AT+WLEAV • Function: This command is only valid when the module is acting as a STA and is used to disconnect the current wireless network. • Format(ASCII): AT+WLEAV +OK • Parameter: Null • e.g.: Query the connection status after screening, and then query the connection status after exiting the network.
Air602_AT Instruction User Manual 2.2.3.6 Scan wireless network:AT+WSCAN • Function: This command is valid only when the module is acting as a STA. It is used to scan the wireless network and return after completion. • Format(ASCII): AT+WSCAN +OK=,,,,, ,,,,, …… • Parameter: The same as AT+WJOIN • e.g.
Air602_AT Instruction User Manual 789682A20C18,2,11,1,"xiaoman-ZTE-2.4G-A20C18",62 00226C68DDE8,2,11,0,"RT8580_DDE8",78 08107999C460,2,11,1,"Netcore_air",76 A8574ED51AFE,2,12,1,"MEVIUS",82 30FC68606128,2,11,1,"Carebao717",72 2.2.3.7 Query the local network connection status :AT+LKSTT • Function: Query the status of the local network connection.
Air602_AT Instruction User Manual ← +OK → AT+KEY=1,0,"" ← +OK → AT+WJOIN ← +OK=3c46d82bd81e,0,11,0,"TP-LINK_HyFi_1E",53 → AT+LKSTT ← +OK=1,"192.168.1.109","255.255.255.0","192.168.1.1","192.168.1.1","0.0.0.0" → AT+WLEAV ← +OK → AT+LKSTT ← +OK=0 2.2.3.8 Set / Query SoftAP Status :AT+APLKSTT • Function: Set/query SoftAP wireless channel status, valid only in SoftAP and APSTA modes.
Air602_AT Instruction User Manual 1 connection Ip: Ip address, the data format is "192.168.1.22“, without quotes netmask: Subnet mask, data format is the same as ip address gateway: Gateway address, data format is the same as ip address dns1: DNS1 address, data format is the same as ip address dns2: DNS2 address, data format is the same as ip address • e.g.
Air602_AT Instruction User Manual ← +OK=1,"192.168.1.1","255.255.255.0","192.168.1.1","192.168.1.1","0.0.0.0" 9. Query the connected station :AT+SLIST • Function: Query the station that is connected. • Format: AT+SLIST +OK[=sta_number,sta_mac1,sta_ip1,sta_mac2,sta_ip2…] • Parameter: sta_number: Number of stations that have been connected sta_mac: mac address of station sta_ip: ip address of station • e.g.: Follow the example in Setting/Querying SoftAP Status: AT+APLKSTT.
Air602_AT Instruction User Manual Create a socket. In client mode, it returns after waiting for the connection to complete (success or failure); in server mode, it returns directly after the creation is completed.
Air602_AT Instruction User Manual local_port: Local port number socket:socket number • e.g.: → AT+SKCT=0,0,180.97.81.180,51950,37189 ← +OK=1 1 is socket id 2.2.3.11 Send data through the specified socket :AT+SKSND • Function: Send data through the specified socket and return when finished. This command sends data in binary format and the user should start sending the raw data after receiving the response message (+OK) from the module.
Air602_AT Instruction User Manual → AT+SKSND=1,5 ← +OK=1 → abcde 2.2.3.12 Read the data in the receive buffer of the specified socket :AT+SKRCV • Function: Reads the data in the receive buffer of the specified socket and returns after completion. After receiving this command, the module will transfer the specified length data in binary format after sending the corresponding message (+OK). • Format(ASCII): AT+SKRCV=, +OK= [data steam] • Parameter: • e.g.
Air602_AT Instruction User Manual 2.2.3.13 Get the specified socket state :AT+SKSTT • Function: Gets the specified socket state. The first line of the return value indicates the status information of the socket specified by the user. If the socket type is a TCP server, each line from the next line indicates the socket state of an accessed client.
Air602_AT Instruction User Manual → AT+SKSTT=1 ← +OK=1,2,"36.7.87.100",6100,59749,0 2.2.3.14 Close the specified socket :AT+SKCLS • Function: Close the specified socket. • Format(ASCII): AT+SKCLS= +OK • Parameter: socket:socket number • e.g.: → AT+SKCLS=1 ← +OK 2.2.3.15 Set the socket sent by the system by default:AT+SKSDF • Function: Set the socket that the system sends by default.
Air602_AT Instruction User Manual socket:socket number • e.g.: Please refer to Serial port enters transparent transmission mode: AT+ENTM demo 2.2.3.16 Get the source IP address of the current socket received data :AT+SKSRCIP • Function: Get the source IP address of the current socket received data. • Format(ASCII): AT+SKSRCIP=? +OK=[host] • Parameter: Host: Source IP address of the data • e.g.: → AT+SKSRCIP=? ← +OK=36.7.87.106 2.2.3.
Air602_AT Instruction User Manual Mode: Value Dscription 0 Close 1 Open • e.g.: → AT+ SKRPTM=1 ← +OK 2.2.3.18 One-click configuration :AT+ONESHOT • Function: Turns the one-click configuration feature on or off. • Format(ASCII): AT+ONESHOT= +OK • Parameter: status: Value Dscription 0 close 1 open • e.g.
Air602_AT Instruction User Manual → AT+ONESHOT=1 ← +OK Then the mobile phone opens the one-click configuration APP, enters the user name and password of the router A in the APP, and then, enters the one-click configuration process. After the one-click configuration is successful, the APP will prompt, the mobile phone will automatically exit the one-click configuration function at this time, or you can manually exit, as follows: → AT+ONESHOT=0 ← +OK 2.2.3.
Air602_AT Instruction User Manual 2.2.4 MQTT Instruction 2.2.4.1 Set up the MQTT server :AT+MSERVER • Function:Set the MQTT server IP address and port. • Format(ASCII): AT+MSERVER=, +OK • Parameter: : MQTT server port number, without double quotes : MQTT server IP address (Do not support domain name address), do not need to add double quotes 2.2.4.2 Set login account and password :AT+MLOGIN • Function: Set the MQTT username and password.
Air602_AT Instruction User Manual AT+MID= +OK • Parameter: :client id, no need to add double quotes 2.2.4.4 Connect to the MQTT server :AT+MCONNECT • Function:Connect to the MQTT server. • Format(ASCII): AT+MCONNECT +OK Success:+MQTT:CONNECTED Failure:+MQTT:FAIL • Parameter: Null 2.2.4.5 Subscribe to a topic :AT+MSUB • Function: Subscribe to a topic.
Air602_AT Instruction User Manual 2.2.4.6 Post a message :AT+MPUB • Function: Post a message. • Format(ASCII): AT+MPUB=,,< retatin>, +OK Success:+MPUB:OK Failure:+MPUB: • Parameter: :Result Code 2.2.4.7 Received a message :AT+MTOPIC,AT+MQD • Function: Received a message.
Air602_AT Instruction User Manual Format(ASCII): AT+MCLOSE +OK Parameter • Null 2.2.4.
Air602_AT Instruction User Manual -16 Illegal argument 10. MQTT usage example Note: Currently, the MQTT server address in the MSERVER command does not support domain names at present, only IP addresses are supported. -→ AT+WPRT=0 ← +OK -→ AT+SSID=TP-LINK_HyFi_1E ← +OK → AT+KEY=1,0,"" ← +OK → AT+WJOIN ← +OK=3c46d82bd81e,0,11,0,"TP-LINK_HyFi_1E",53 -→ AT+LKSTT ← +OK=1,"192.168.1.109","255.255.255.0","192.168.1.1","192.168.1.1","0.0.0.0" → AT+MSERVER=1883,120.55.137.
Air602_AT Instruction User Manual ← +OK +MQTT:CONNECTED → AT+MSUB=HELLO_WORLD ← +OK → AT+MPUB=Fred,0,0,888AAA ← +OK +MPUB:OK ← +MTOPIC:11, HELLO_WORLD +MQD:10,12345_test → AT+MCLOSE ← +OK Luat Note: Received an MQTT message 64 /73 page
Air602_AT Instruction User Manual 3 Common operation 3.
Air602_AT Instruction User Manual (6) PMTF saves the above parameters to spi flash, just start from step 7 with the next boot. AT+PMTF (7) WJOIN Create wireless network MyAp AT+WJOIN (8) SLIST Query the STA information which connected to your SoftAP. AT+SLIST 3.2 Scan AP Process Wireless network card scanning AP's AT command is : AT+WSCAN 3.3 STA joins the AP process (1) WPRT Set the working mode to STA AT+WPRT=0 (2) SSID Set the AP name to join. e.g.
Air602_AT Instruction User Manual (5) PMTF Save the above parameters to spi flash , Just start from step 6 with the next boot AT+PMTF (6) WJOIN Join the wireless network TEST_AP AT+WJOIN 3.4 Create an APSTA process (1) WPRT Set the working mode to APSTA AT+WPRT=3 (2) SSID Set the AP name to be joined, such as TEST_AP AT+SSID=TEST_AP (3) KEY Set the wireless key of the AP you want to join. e.g.
Air602_AT Instruction User Manual (8) PMTF Save the above parameters to spi flash, just start from step 9 AT+PMTF (9) WJOIN Join the wireless network TEST_AP AT+WJOIN 5. How the STA disconnects the AP The wireless network card disconnects the AP's AT command: AT+WLEAV 6. SoftAP disconnected The AT command of SoftAP disconnected network is: AT+WLEAV=2 3.7 How STA view current status The AT command for the wireless network card to view the status of the current network card is: AT+LKSTT 3.
Air602_AT Instruction User Manual (2) Create a Socket: TX: AT+SKCT=0,0,192.168.1.100,1000,1000 RX: +OK=1 ---> 1 is the socket number Note: Before sending SKCT, please ensure that the module is connected to a WIFI hotspot with an INTERNET connection.
Air602_AT Instruction User Manual TX: AT+SKSND=1,5 kevin RX: +OK=5 TCP server Received the data interface as : (4) Receive data: Enter hello on the TCP Debugging Assistant interface and click Send Luat 70 /73 page
Air602_AT Instruction User Manual TX: AT+SKRCV=1,5 RX: +OK=5 hello (5) 查询Socket 状态: TX: AT+SKSTT=1 RX: +OK=1,2,"192.168.1.
Air602_AT Instruction User Manual (6) Close Socket connection TX: AT+SKCLS=1 RX: +OK Luat 72 /73 page
Air602_AT Instruction User Manual 3.