MiCO-AT Firmware Reference Manual€¦ · MiCO-AT Firmware Reference Manual [Page 1] RM1021EN...
Transcript of MiCO-AT Firmware Reference Manual€¦ · MiCO-AT Firmware Reference Manual [Page 1] RM1021EN...
Shanghai MXCHIP Information Technology Co., Ltd. Address:Floor 9, Building 5, No. 2145, Putuo District, Shanghai (200333) Telephone:021-52709556 Website:http://mxchip.com/
MiCO Documentation Working Group Quanquan Ding&MaoJian
Track Number:RM1021EN MXCHIP Co., Ltd
Version: 1.0 June 2016
Category: Application Note Open
MiCO-AT Firmware Reference Manual
Abstract
MiCO-AT firmware developed by MXCHIP is one software system which could be easily and conveniently used to
set wireless network on embedded device.
Users can set the Wi-Fi connection without any programming work.
More Help
Please login the website: http://mxchip.com/ to get Mxchip's latest product information.
Copyright Notice
Copyright (c) 2016 MDWG Trust and the persons identified as the document authors. All rights reserved.
MiCO-AT Firmware Reference Manual [Page 1]
RM1021EN
Version Record
Date Version Update content
6-17-2016 V1.0 Initial version.
MiCO-AT Firmware Reference Manual [Page 2]
RM1021EN
Catalog
Version Record .................................................................................................................................................................... 1
1. Working mode ............................................................................................................................................................. 3
Boot mode ......................................................................................................................... 错误!未定义书签。 1.1
Test mode .......................................................................................................................... 错误!未定义书签。 1.2
Normal mode .................................................................................................................... 错误!未定义书签。 1.3
2. Burning method ........................................................................................................................... 错误!未定义书签。
With J-link ........................................................................................................................ 错误!未定义书签。 2.1
2.1.1 Bootloader ............................................................................................................ 错误!未定义书签。
2.1.2 RF driver .............................................................................................................. 错误!未定义书签。
2.1.3 Application ........................................................................................................... 错误!未定义书签。
With serial ......................................................................................................................... 错误!未定义书签。 2.2
MiCO-AT Firmware Reference Manual [Page 3]
RM1021EN
Picture Catalog
Figure 1 Serial output ........................................................................................................... 错误!未定义书签。
Figure 2 The serial outputs ................................................................................................... 错误!未定义书签。
Figure 3 Create new project .................................................................................................. 错误!未定义书签。
Figure 4 Option setting ......................................................................................................... 错误!未定义书签。
Figure 5 Select device ........................................................................................................... 错误!未定义书签。
Figure 6 Target interface ....................................................................................................... 错误!未定义书签。
Figure 7 Select MCU ............................................................................................................ 错误!未定义书签。
Figure 8 Flash setting............................................................................................................ 错误!未定义书签。
Figure 9 Production setting ................................................................................................... 错误!未定义书签。
Figure 10 Connect device ..................................................................................................... 错误!未定义书签。
Figure 11 Erase flash ............................................................................................................ 错误!未定义书签。
Figure 12 Open “bootloader.bin” .......................................................................................... 错误!未定义书签。
Figure 13 Programming ........................................................................................................ 错误!未定义书签。
Figure 14 Open serial............................................................................................................ 错误!未定义书签。
Figure 15 Enter the bootloader mode ................................................................................... 错误!未定义书签。
Figure 16 start address .......................................................................................................... 错误!未定义书签。
Figure 17 Serial setting ......................................................................................................... 错误!未定义书签。
Figure 18 Switch Setting ...................................................................................................... 错误!未定义书签。
Figure 19 programming part ................................................................................................. 错误!未定义书签。
Figure 20 File Transferring ................................................................................................... 错误!未定义书签。
Figure 21 Programming Successfully ................................................................................... 错误!未定义书签。
Figure 22 Test Result ............................................................................................................ 错误!未定义书签。
Table Catalog
Table 1 EMW3165 working mode ........................................................................................ 错误!未定义书签。
Table 2 Boot mode function.................................................................................................. 错误!未定义书签。
Table 3 Working commands ................................................................................................. 错误!未定义书签。
MiCO-AT Firmware Reference Manual [Page 4]
RM1021EN
1. Overview
MiCO-AT firmware 1.1
MiCO-AT firmware developed by MXCHIP is one software system which could be easily and conveniently used to
set wireless network on embedded device.
Users can set the Wi-Fi connection without any programming work.
MiCO-AT firmware version: EMW3162, EMW3165.
Firmware version description 1.2
Figure 1 Firmware version description
Type: 3162
3165
Wi-Fi Module
Firmware
Version AT Commands
MiCO-AT Firmware Reference Manual [Page 5]
RM1021EN
2. Operation Modes
Operation Modes 2.1
1. DTU mode
Module connects Wi-Fi automatically by the preset setting. It receives the data from serial and packs it as TCP/UDP
package, then sends it out by Wi-Fi. At the same time, it can also receive the TCP/UDP package by Wi-Fi and send
the data to serial.
2. AT command mode
In this mode, it could set parameterss and control the module by AT commands.
3. Boot mode
In this mode, it could update the firmware by serial with Ymodem protocol.
4. Testing mode
In this mode, it could do some testing work by serial.
Initial operation mode 2.2
The firmware could lead the module into different operation mode by testing the PIN status of BOOT and STATUS.
Table 1 operation mode
BOOT STATUS Operation mode
0 0 Testing mode
0 1 Boot mode
1 1 DTU/ AT command mode
Operation mode switching 2.3
The firmware could lead the module into different operation mode by testing the PIN status of BOOT and STATUS.
1. DTU mode -> AT command mode
(1) Input “+++” by serial, it returns “a” after module receiving the “+++”;
(2) Input “a”, it returns “+OK” and goes into AT command mode after module receiving the “a”;
2. DTU mode -> AT command mode (Close WLAN, TCP and UDP)
(1) Input “+++” by serial, it returns “a” after module receiving the “+++”;
Input “b”, it returns “+OK”, goes into AT command mode and closes WLAN, TCP, UDP after module
MiCO-AT Firmware Reference Manual [Page 6]
RM1021EN
receiving the “b”; It needs controlling the time interval at typing “+++” and “a” in order to ensure the module going
into the right mode.
Figure 2 DTU mode
3. AT command mode -> DTU mode
It switches to DTU mode by command “AT+QUIT” at AT command mode.
Default setting 2.4
It could set the default settings on the base of factory settings. Users can contact with MXCHIP to add some new
commands or settings whether the default ones are not satisfied.
1. Factory settings
(1) Serial setting: baud rate (115200), data bit (8), stop bit (1), parity (none), flow control (none).
(2) Wi-Fi setting: mode (Soft AP), ssid (MXCHIP_XXXXXX), passward (none);
(3) IP setting: IP address (10.10.10.1), net mask (255.255.255.0), gateway (10.10.10.1);
(4) DHCP server: Enable;
(5) Bonjour server: Enable;
(6) TCP server: Enable, Port: 8080;
(7) HTTP server: user (admin), password (admin);
2. Restore default settings
(1) Restore user factory settings:
Press down “EASYLINK” button for 5s at all modes;
Input “AT+FACTORY” command at AT command mode;
(2) Restore MXCHIP factory settings:
Input “AT+FCLR” command at AT command mode;
PIN arrangements 2.5
UART PINs 2.5.1
In AT firmware, module has different UART PINS at different modes.
Input “+” Input “+” Input “+” Input “a”
<100ms <100ms <3s
MiCO-AT Firmware Reference Manual [Page 7]
RM1021EN
Table 2 UART PINs
Type Bootloader AT
commands
MFG DEBUG CLI commands
EMW3165 Pin8(TX), Pin12(RX),
Baud rate: 921600bps
Pin8(TX), Pin12(RX)
Baud rate: 115200bps
Pin29(TX), Pin30(RX)
Baud rate: 115200bps
EMW3162 Pin22(TX), Pin23(RX)
Baud rate: 115200bps
Pin14(TX), Pin4(RX)
Baud rate: 115200bps
LED PINs 2.5.2
Table 3 System led
Type Pin Function
EMW3162 On board Main function: show system status
1. Easylink status:
blink fast—getting ssid and password after easylink starts;
blink slowly—connecting after getting ssid and password;
normally on—connecting successfully;
1. AP status: normally on;
2. STATION status: normally on;
3. AP+STATION status: normally on;
EMW3165
Pin17
Table 4 RF led
Type Pin Function
EMW3162 On board Main function: show system status
1. Easylink status:
Configuring unsuccessfully: OFF,
Configuring successfully: ON;
2. AP status:
AP up: ON,
AP down: OFF;
3. STATION status:
EMW3165
Pin38
MiCO-AT Firmware Reference Manual [Page 8]
RM1021EN
Type Pin Function
STATION up: ON
STATION down: OFF;
Figure 3 LED circuit
Easylink PINs 2.5.3
Table 5 Easylink pin arrangements
Type Easylink pins
3162 Pin11
3165 Pin9
Figure 4 Easylink pin circuit
Please refer more information about the circuit design on www.en.mxchip.com.
MiCO-AT Firmware Reference Manual [Page 9]
RM1021EN
3. QUICK START
Website setting 3.1
Connect PC to Wi-Fi module by Wi-Fi. The default SSID is MXCHIP_XXXXXX (XXXXXX is the after 6 numbers
of MAC address). Open the browser and go to “10.10.10.1”. it will show as below.
Default user: admin.
Default password: admin.
Figure 5 QUICK START
It opens the website manager.
MiCO-AT Firmware Reference Manual [Page 10]
RM1021EN
Figure 6 Open the website manager.
Wi-Fi mode select 3.1.1
Select the needed Wi-Fi status and save. It works after rebooting.
Working status:
1. AP mode;
2. STATION mode;
3. AP+STATION mode;
MiCO-AT Firmware Reference Manual [Page 11]
RM1021EN
Figure 7 Wi-Fi mode select
AP mode setting 3.1.2
AP mode settings: AP SSID, password, channel and IP.
1. AP SSID setting: when it is set as “ssid+MAC”, AP SSID shows like “ssid_XXXXXX” (XXXXXX is the after
6 numbers of MAC address).
2. AP password: two encryption ways.
One is Disable, which means the encryption is OPEN.
One is Enable, which means the encryption is WAP with that the length of password must be set over 8 digits.
Figure 8 AP password: two encryption ways
Station mode setting 3.1.3
Station mode settings: SSID, password, IP.
MiCO-AT Firmware Reference Manual [Page 12]
RM1021EN
Figure 9 Station mode setting
Station search function: click “search”, it shows the APs and signal level around.
Figure 10 Aps shows
UART setting 3.1.4
UART settings: baud rate, data bit, parity, stop bit, flow control, auto framing setting.
1. Auto framing setting: default to be “Disable”;
2. Auto framing time: default to be “500ms”. Auto framing length: default to be “1024byte”.
MiCO-AT Firmware Reference Manual [Page 13]
RM1021EN
Figure 11 UART setting
Network setting 3.1.5
TCP and UDP protocol are available in the modules:
1. TCP server;
2. TCP client;
3. UDP unicast;
4. UDP boardcast;
Figure 12 Network setting
MiCO-AT Firmware Reference Manual [Page 14]
RM1021EN
Module management 3.1.6
Module management:
1. User and password for website manager;
2. Module version information;
3. Reboot;
4. Restore factory setting;
5. OTA;
Figure 13 Module management
MiCO-AT Firmware Reference Manual [Page 15]
RM1021EN
4. AT commands
Format 4.1
1. Symbol
(1) <>: essential part;
(2) []: optional part;
2. COMMAND format
AT+< CMD > [𝑜𝑝][𝑝𝑎𝑟𝑎 − 1, 𝑝𝑎𝑟𝑎 − 2, 𝑝𝑎𝑟𝑎 − 3,⋯⋯ ] < CR >
(1) AT+: COMMAND prefix;
(2) CMD: COMMAND name;
(3) [op]: COMMAND operator:
1) “=”: parameter setting;
2) “none”: parameter querying;
(4) [para-n]: parameters when setting parameter, “?” when querying parameter;
(5) <CR>: end mark, =”ENTER”, ASICC code= “0x0d”;
3. RESPOND format
+< RSP >= [𝑝𝑎𝑟𝑎 − 1, 𝑝𝑎𝑟𝑎 − 2, 𝑝𝑎𝑟𝑎 − 3,⋯⋯ ] < CR >< LF >
(1) +: RESPOND prefix;
(2) RSP: RESPOND result:
1) “OK”: success;
2) “ERR”: failure;
(3) [para-n]: returned parameters when quirying or err code when respond err;
(4) <CR>: ASICC code= “0x0d”;
(5) <LF>: ASICC code= “0x0a”;
EVENT format 4.2
It indicates the parameters of network and status of Wi-Fi connection.
EVENT format:
(1) <TYPE>: EVENT type;
(2) [para-n]: EVENT parameters;
(3) <CR>: ASICC code= “0x0d”;
MiCO-AT Firmware Reference Manual [Page 16]
RM1021EN
(4) <LF>: ASICC code= “0x0a”;
Error code 4.3
Table 6 Error code
Error code Description
-1 Invalid command format
-2 Invalid command
-3 Invalid operator
-4 Invalid parameters
-5 Illegal operating
-6 No existing SOCKET
-30 No existing AP
4 invalid key
AT commands 4.4
AT commands include three parts:
1. Fundamental AT commands;
2. Net AT commands;
3. Factory reset AT commands;
Fundamental AT commands 4.4.1
Table 7 Fundamental AT commands
Fundamental AT commands
Commands Description
Fundamental management commands
1 AT+HELP AT help to query commands information
2 AT+FMVER Query firmware version
3 AT+SYSTIME Query system working time
4 AT+SAVE Save setting parameters
MiCO-AT Firmware Reference Manual [Page 17]
RM1021EN
5 AT+FACTORY Factory reset
6 AT+REBOOT Reboot
7 AT+EVENT Query/set whether to open event notify function
8 AT+ECHO Query/set whether to echo on commands
UART management commands
1 AT+UART Query/set UART parameters
2 AT+UARTF Query/set whether to open auto framing mode
3 AT+UARTT Query/set auto framing time
4 AT+UARTL Query/set auto framing length
Power management commands
1 AT+PMSLP Query/set whether to open MCU low power mode
2 AT+PRSLP Query/set whether to open RF low power mode
Net AT commands 4.4.2
Table 8 Net AT commands
Net AT commands
Commands Description
Wi-Fi management commands
1 AT+WFVER Query RF library version
2 AT+WMAC Query MAC of module
3 AT+WSCAN Scan the SSID and power strength of Aps around
4 AT+WGHBN DNS
5 AT+WMODE Query/set Wi-Fi working mode
6 AT+WAP Query/set SSID and password at Soft AP mode
7 AT+WAPCH Query/set channel at Soft AP mode
8 AT+WSTA Query/set connected AP’s SSID and password at STATION mode
9 AT+WLANF Query/set whether to open Soft AP or STATION
MiCO-AT Firmware Reference Manual [Page 18]
RM1021EN
10 AT+WSTATUS Query status of Soft AP setting or STATION connection
11 AT+WLINK Query STATION connection status, AP power strength and AP
channels
IP management commands
1 AT+IPCONFIG Query/set IP address
2 AT+DHCP Query/set whether to open DHCP
One key configuration commands
1 AT+OCFG Enter net configuration mode
2 AT+OCFGT Query/set timeout of net configuration
TCP/UDP management commands
1 AT+CON1 Query/set parameters of TCP/UDP connection 1
2 AT+CON2F Query/set whether to open TCP/UDP connection 2
3 AT+CON2 Query/set parameters of TCP/UDP connection 2
4 AT+CONF Query/set whether to open or close TCP/UDP
5 AT+CONS Query TCP connection status
6 AT+CONSN Query/set connection numbers on TCP server
Socket management commands
1 AT+SSEND Send Wi-Fi message
2 AT+SSSEND Send Wi-Fi message with data
3 AT+SUNSEND Send UDP message to assigned target
Web management commands
1 AT+WEBF Query/set whether to open web setting function
2 AT+WEBU Query/set SSID and password for web login
AT management commands
1 AT+QUIT Quit AT command mode
Factory reset AT commands 4.4.3
Table 9 Factory reset AT commands
Factory reset AT commands
Commands Description
Factory reset management commands
MiCO-AT Firmware Reference Manual [Page 19]
RM1021EN
1 AT+FHELP HELP to factory reset
2 AT+FAT Query/set whether to enter AT function
3 AT+FMODE Query/set whether to open WLAN and TCP/UDP function after
entering AT command mode
4 AT+FEVENT Query/set whether to open event callback
5 AT+FBONJOUR Query/set whether to open bonjour
6 AT+FWMODE Query/set Wi-Fi working status
7 AT+FWAP Query/set SSID, password and channel at Soft AP mode
8 AT+FWAPIP Query/set IP address at Soft AP mode
9 AT+FOCFGT Query/set timeout of net setting mode
10 AT+FCON1 Query/set parameters of TCP/UDP connection 1
11 AT+FCON2F Query/set whether to open TCP/UDP connection 2
12 AT+FCON2 Query/set parameters of TCP/UDP connection 2
13 AT+FUART Query/set UART parameters
14 AT+FWEBF Query/set whether to open web setting function
15 AT+FWEBU Query/set user and password for web login
16 AT+FCLR Clear user default setting and restore MXCHIP factory reset
setting
EVENT list 4.4.4
Table 10 EVENT list
EVENT
EVENT type Description
EVENT message
1 +EVENT=Wi-Fi_LINK Soft AP or station status
MiCO-AT Firmware Reference Manual [Page 20]
RM1021EN
2 +EVENT=CON_FAIL Connection fails
3 +EVENT=EASYLINK Easylink status
4 +EVENT=WPS WPS status
5 +EVENT=TCP_CLIENT Connection status at TCP Client
6 +EVENT=TCP_SERVER Connection status at TCP Server
7 +EVENT=UDP_BOADCAST UDP broadcast status
8 +EVENT=UDP_UNICAST UDP unicast status
9 +EVENT=SOCKET Socket message received
10 +EVENT=REBOOT Rebooting
MiCO-AT Firmware Reference Manual [Page 21]
RM1021EN
5. AT command details
Fundamental management commands 5.1
AT+HELP 5.1.1
Table 11 AT+HELP
Function: AT help to query commands information
Command format Details
Setting:
AT+HELP<CR>
Respond:
+OK=[command list]<CR><LF>
Parameter:
Command list.
5.1.1. AT+FMVER
Table 12 AT+FMVER
Function: Query firmware version
Command format Details
Setting:
AT+FMVER<CR>
Respond:
+OK=[revision]<CR><LF>
Parameter:
[revision]: “firmware revision”.
AT+SYSTEM 5.1.2
Table 13 AT+SYSTEM
Function: Query system working time
Command format Details
Setting:
AT+SYSTEM<CR>
Respond:
+OK=[time]<CR><LF>
MiCO-AT Firmware Reference Manual [Page 22]
RM1021EN
Parameter:
[time]: “system working time (ms)”
5.1.2. AT+SAVE
Table 14 AT+SAVE
Function: Save setting parameters
Command format Details
Setting:
AT+ SAVE<CR>
Respond:
+OK<CR><LF>
Parameter:
None
5.1.3. AT+FACTORY
Table 15 AT+FACTORY
Function: Factory reset
Command format Details
Setting:
AT+ FACTORY<CR>
Respond:
+OK<CR><LF>
Parameter:
None
AT+REBOOT 5.1.3
Table 16 AT+REBOOT
Function: Reboot
Command format Details
Setting: Respond:
MiCO-AT Firmware Reference Manual [Page 23]
RM1021EN
AT+ REBOOT<CR> +OK=[]<CR><LF>
Parameter:
None
5.1.4. AT+EVENT
Table 17 AT+EVENT
Function: Query/set whether to open event notify function
Command format Details
Setting:
AT+ EVENT<CR>
Respond:
+OK=[state]<CR><LF>
Parameter:
Refer to “Setting Parameters” for more information.
Querying:
AT+ EVENT=[state]<CR>
Respond:
+OK<CR><LF>
Parameter:
[state]:
ON: “open event notify function”;
OFF: “close event notify function”.
NOTE:
Works immediately
5.1.5. AT+ECHO
Table 18 AT+ECHO
Function: Query/set whether to echo on commands
Command format Details
Setting: Respond:
MiCO-AT Firmware Reference Manual [Page 24]
RM1021EN
AT+ ECHO<CR> +OK=[state]<CR><LF>
Parameter:
None
Setting:
AT+ ECHO=[state]<CR>
Respond:
+OK<CR><LF>
Parameter:
[state]:
ON: “open echo function”;
OFF: “close echo function”.
NOTE:
Works immediately
UART management commands 5.2
AT+UART 5.2.1
Table 19 AT+UART
Function: Query/set UART parameters
Command format Details
Setting:
AT+ UART<CR>
Respond:
+OK=[baud_rate,data_bits,parity,stop_bit,flow_control]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+ UART =
[baud_rate,data_bits,parity,
stop_bit,flow_control]<CR
>
Respond:
+OK<CR><LF>
Parameter:
[baud_rate]:
9600, 19200,38400,57600, 115200, 230400, 460800,
921600, 1843200, 3686400;
MiCO-AT Firmware Reference Manual [Page 25]
RM1021EN
[data_bits]:
8, 9;
[parity]:
NONE;
ODD;
EVEN;
[stop_bit]:
1, 2;
[flow_control]:
NONE;
CTS;
RTS;
CTSRTS;
NOTE:
AT+SAVE to save settings;
Works after reboot;
AT+UARTF 5.2.2
Table 20 AT+UARTF
Function: Query/set whether to open auto framing mode
Command format Details
Setting:
AT+ UARTF<CR>
Respond:
+OK=[state]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+ UARTF=[state]<CR>
Respond:
+OK<CR><LF>
Parameter:
MiCO-AT Firmware Reference Manual [Page 26]
RM1021EN
[state]:
ON: “open auto framing mode function”;
OFF: “close auto framing mode function”.
NOTE:
AT+SAVE to save settings;
Works immediately;
AT+UARTFL 5.2.3
Table 21 AT+UARTFL
Function: Query/set auto framing length
Command format Details
Setting:
AT+ UARTFL<CR>
Respond:
+OK=[length]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+
UARTFL=[length]<CR>
Respond:
+OK<CR><LF>
Parameter:
[length]: “Auto framing length (byte, 10-1024)”.
NOTE:
Default auto framing length is 1024. It is 65 in AT command mode.
Works immediately.
AT+UARTFT 5.2.4
Table 22 AT+UARTFT
Function: Query/set auto framing time
Command format Details
MiCO-AT Firmware Reference Manual [Page 27]
RM1021EN
Setting:
AT+ UARTFT<CR>
Respond:
+OK=[time]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+
UARTFT=[time]<CR>
Respond:
+OK<CR><LF>
Parameter:
[time]: “auto framing time, (ms, 100-1000)”
NOTE:
Default auto framing time is 500;
Works immediately.
Power management commands 5.3
AT+PMSLP 5.3.1
Table 23 AT+PMSLP
Function: Query/set whether to open MCU low power mode
Command format Details
Setting:
AT+ PMSLP<CR>
Respond:
+OK=[state]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+ PMSLP=[state]<CR>
Respond:
+OK<CR><LF>
Parameter:
[state]:
ON: “open MCU low power mode”;
MiCO-AT Firmware Reference Manual [Page 28]
RM1021EN
OFF: “close MCU low power mode”.
NOTE:
Works immediately.
AT+PRSLP 5.3.2
Table 24 AT+PRSLP
Function: Query/set whether to open RF low power mode
Command format Details
Setting:
AT+ PRSLP<CR>
Respond:
+OK=[state]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+ PRSLP=[state]<CR>
Respond:
+OK<CR><LF>
Parameter:
[state]:
ON: “open RF low power mode”;
OFF: “close RF low power mode”;
NOTE:
Works immediately.
Wi-Fi management commands 5.4
AT+WFVER 5.4.1
Table 25 AT+WFVER
Function: Query RF library version
Command format Details
Setting: Respond:
MiCO-AT Firmware Reference Manual [Page 29]
RM1021EN
AT+ WFVER<CR> +OK=[revision]<CR><LF>
Parameter:
[revision]: “RF driver version”
AT+WMAC 5.4.2
Table 26 AT+WMAC
Function: Query MAC of module
Command format Details
Setting:
AT+ WMAC<CR>
Respond:
+OK=[mac]<CR><LF>
Parameter:
[mac]: “mac address of module”
NOTE:
MAC format: XX:XX:XX:XX:XX:XX
AT+WSCAN 5.4.3
Table 27 AT+WSCAN
Function: Scan the SSID and power strength of Aps around
Command format Details
Setting:
AT+ WSCAN<CR>
Respond:
+OK=[ssid,strength]<CR><LF>
Parameter:
[ssid]: “AP name around”;
[strength]: “Aps’ signal power strength around (%, 0-100)”.
NOTE:
Up to 32 APs
MiCO-AT Firmware Reference Manual [Page 30]
RM1021EN
AT+WGHBN 5.4.4
Table 28 AT+WGHBN
Function: DNS
Command format Details
Setting:
AT+
WGHBN=[domain]<CR>
Respond:
+OK=[ip]<CR><LF>
Parameter:
[domain]: “domain name”;
[ip]: “ip address”.
NOTE:
AT+WMODE 5.4.5
Table 29 AT+WMODE
Function: Query/set Wi-Fi working mode
Command format Details
Setting:
AT+ WMODE<CR>
Respond:
+OK=[mode]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+
WMODE=[mode]<CR>
Respond:
+OK<CR><LF>
Parameter:
[mode]: “Wi-Fi working mode”;
AP: “Soft AP”
STA: “Station”
MiCO-AT Firmware Reference Manual [Page 31]
RM1021EN
AP_STA: “Soft AP + Station”
NOTE:
AT+SAVE to save the settings.
Works after reboot.
AT+WAP 5.4.6
Table 30 AT+WAP
Function: Query/set SSID and password at Soft AP mode
Command format Details
Setting:
AT+WAP<CR>
Respond:
+OK=[ssid,key]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+WAP=[ssid,key]<CR>
Respond:
+OK<CR><LF>
Parameter:
[ssid]: “name of Soft AP”
[key]: “passward of Soft AP. (up to 64 digits)”
NOTE:
AT+SAVE to save the settings.
Works after reboot.
AT+WAPCH 5.4.7
Table 31 AT+WAPCH
Function: Query/set channel at Soft AP mode
Command format Details
MiCO-AT Firmware Reference Manual [Page 32]
RM1021EN
Function: Query/set channel at Soft AP mode
Setting:
AT+ WAPCH<CR>
Respond:
+OK=[channel]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+
WAPCH=[channel]<CR>
Respond:
+OK<CR><LF>
Parameter:
[channel]: “channel of Soft AP. (0-13, 0 means auto channel)”
NOTE:
AT+SAVE to save the settings.
Works after reboot.
AT+WSTA 5.4.8
Table 32 AT+WSTA
Function: Query/set connected AP’s SSID and password at STATION mode
Command format Details
Setting:
AT+ WSTA <CR>
Respond:
+OK=[ssid,key]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+ WSTA
=[ssid,key]<CR>
Respond:
+OK<CR><LF>
Parameter:
[ssid]: “name of Station. (up to 32 digits)”
[key]: “password of Station. (up to 64 digits)”
MiCO-AT Firmware Reference Manual [Page 33]
RM1021EN
NOTE:
AT+SAVE to save the settings.
AT+WLANF 5.4.9
Table 33 AT+WLANF
Function: Query/set whether to open Soft AP or STATION
Command format Details
Setting:
AT+ WLANF <CR>
Respond:
+OK=[mode,state]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+ WLANF
=[mode,state]<CR>
Respond:
+OK<CR><LF>
Parameter:
[mode]:
AP: “Soft AP”.
STA: “Station”.
[state]:
ON;
OFF.
NOTE:
Dynamic command, no saving state.
Works immediately.
MiCO-AT Firmware Reference Manual [Page 34]
RM1021EN
AT+WSTATUS 5.4.10
Table 34 AT+WSTATUS
Function: Query status of Soft AP setting or STATION connection
Command format Details
Setting:
AT+ WSTATUS <CR>
Respond:
+OK=[AP_state,Station_state]<CR><LF>
Parameter:
[AP_state]:
UAP_UP: “Soft AP up”;
UAP_DOWN: “Soft AP down”;
[Station_state]:
STATION_UP: “Station up”;
STATION_DOWN: “Station down”;
NOTE:
AT+WLINK 5.4.11
Table 35 AT+WLINK
Function: Query STATION connection status, AP power strength and AP channels
Command format Details
Setting:
AT+ WLINK <CR>
Respond:
+OK=[state,strength,channel]<CR><LF>
Parameter:
[state]:
0: “station closes connection successfully”;
1: “station sets up connection successfully”;
MiCO-AT Firmware Reference Manual [Page 35]
RM1021EN
[strength]: “the AP’s signal strength. (%,0-100)”
[channel]: “the AP’s channel. (1-13)”
NOTE:
IP management commands 5.5
AT+IPCONFIG 5.5.1
Table 36 AT+IPCONFIG
Function: Query/set IP address
Command format Details
Setting:
AT+ IPCONFIG <CR>
Respond:
+OK=[ip,mask,gateway,ip,mask,gateway]<CR><LF>
Parameter:
Refer to ”setting parameters”
“The pre 3 parameters are for Soft AP.”
“The after 3 parameters are for Station.”
Setting:
AT+ IPCONFIG
=[mode,ip,mask,gateway]
<CR>
Respond:
+OK<CR><LF>
Parameter:
[mode]:
AP;
STA.
[ip]: “local IP address”;
[mask]: “local network mask”;
MiCO-AT Firmware Reference Manual [Page 36]
RM1021EN
[gateway]: “gateway of network”;
NOTE:
AT+DHCP 5.5.2
Table 37 AT+DHCP
Function: Query/set whether to open DHCP
Command format Details
Setting:
AT+ DHCP <CR>
Respond:
+OK=[state]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+ DHCP =[state]<CR>
Respond:
+OK<CR><LF>
Parameter:
[state]:
ON: “enable DHCP”
OFF: “disable DHCP”
NOTE:
AT+SAVE to save the settings.
Works after reboot.
One key configuration commands 5.6
AT+OCFG 5.6.1
Table 38 AT+OCFG
Function: Enter net configuration mode
Command format Details
MiCO-AT Firmware Reference Manual [Page 37]
RM1021EN
Setting:
AT+ OCFG =[mode]<CR>
Respond:
+OK<CR><LF>
Parameter:
[mode]:
EASYLINK: “EASYLINK or AIRKISS configuration method”;
WPS: “WPS configuration method”.
NOTE:
Reboot after inputting this command and then go into configure mode. If it is out of time,
the module will start the Wi-Fi with the pre-configuration.
Power down the EASYLINK PIN for 50ms~3s, it goes into configure mode too.
AT+OCFGT 5.6.2
Table 39 AT+OCFGT
Function: Query/set timeout of net configuration
Command format Details
Setting:
AT+ OCFGT=[time]<CR>
Respond:
+OK<CR><LF>
Parameter:
[time]: “timeout of configure mode. (unit: s, 0~4294967295)”
NOTE:
The default timeout of configure mode is 60s;
AT+SAVE to save the settings.
Works after reboot.
MiCO-AT Firmware Reference Manual [Page 38]
RM1021EN
TCP/UDP management commands 5.7
AT+CON1 5.7.1
Table 40 AT+CON1
Function: Query/set parameters of TCP/UDP connection 1
Command format Details
Setting:
AT+ CON1<CR>
Respond:
+OK=[ protocol,local_port,remote_port,domain]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+ CON1=
[protocol,local_port,remot
e_port,domain]<CR>
Respond:
+OK<CR><LF>
Parameter:
[protocol] :
SERVER: “TCP server”;
CLIENT: “TCP client”;
BOARDCAST: “UDP broadcast”;
UNICAST: “UDP unicast”;
[local_port]: “local port of connection 1”.
[remote_port]: “remote port of connection 1”.
[domain]: “the IP and domain of target server.”
NOTE:
At UDP broadcast: when local_port=0, disable UDP broadcast receiving;
When remote_port=0, disable UDP broadcast sending;
At UDP unicast: when remote_port=0, no setting UDP unicast target. It is set from
MiCO-AT Firmware Reference Manual [Page 39]
RM1021EN
the data source.
AT+SAVE to save the settings.
Works after reboot.
AT+CON2F 5.7.2
Table 41 AT+CON2F
Function: Query/set whether to open TCP/UDP connection 2
Command format Details
Setting:
AT+ CON2F <CR>
Respond:
+OK=[state]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+ CON2F =[state]<CR>
Respond:
+OK<CR><LF>
Parameter:
[state]:
ON: “open TCP/UDP connection 2 function”.
OFF: “close TCP/UDP connection 2 function”
NOTE:
AT+SAVE to save the settings.
Works after reboot.
AT+CON2 5.7.3
Table 42 AT+CON2
Function: Query/set parameters of TCP/UDP connection 2
Command format Details
Setting:
AT+ CON2<CR>
Respond:
+OK=[ protocol,local_port,remote_port,domain]<CR><LF>
MiCO-AT Firmware Reference Manual [Page 40]
RM1021EN
Function: Query/set parameters of TCP/UDP connection 2
Command format Details
Parameter:
Refer to ”setting parameters”
Setting:
AT+
CON2=[protocol,local_por
t,remote_port,domain]<CR
>
Respond:
+OK<CR><LF>
Parameter:
[protocol] :
SERVER: “TCP server”;
CLIENT: “TCP client”;
BOARDCAST: “UDP broadcast”;
UNICAST: “UDP unicast”;
[local_port]: “local port of connection 1”.
[remote_port]: “remote port of connection 1”.
[domain]: “the IP and domain of target server.”
NOTE:
At UDP broadcast: when local_port=0, disable UDP broadcast receiving;When
remote_port=0, disable UDP broadcast sending;
At UDP unicast: when remote_port=0, no setting UDP unicast target. It is set from the
data source. the data source.
AT+SAVE to save the settings.
Works after reboot.
AT+CONF 5.7.4
Table 43 AT+CONF
Function: Query/set whether to open or close TCP/UDP
Command format Details
Setting: Respond:
MiCO-AT Firmware Reference Manual [Page 41]
RM1021EN
Function: Query/set whether to open or close TCP/UDP
Command format Details
AT+ CONF=[sn] <CR> +OK=[sn,state]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+ CONF
=[sn,state]<CR>
Respond:
+OK<CR><LF>
Parameter:
[sn]: “connection serial number”;
1: “connection 1”;
2: “connection 2”;
[state]:
ON: “open”;
OFF: “close”;
NOTE:
Achieve TCP/UDP when power on;
No saving states;
AT+CONS 5.7.5
Table 44 AT+CONS
Function: Query TCP connection status
Command format Details
Setting:
AT+ CONS <CR>
Respond:
+OK=[server1_link,client1_link,server2_link,client2_link]<CR><LF>
Parameter:
[server1_link]: “number of connections of TCP server 1”;
MiCO-AT Firmware Reference Manual [Page 42]
RM1021EN
Function: Query TCP connection status
Command format Details
[client1_link]: “whether server connected of TCP client 1”;
0: no connection;
1: connected;
[server2_link]: “number of connections of TCP server 2”;
[client2_link]: “whether server connected of TCP client 2”;
0: no connection;
1: connected;
NOTE:
AT+CONSN 5.7.6
Table 45 AT+CONSN
Function: Query/set connection numbers on TCP server
Command format Details
Setting:
AT+ CONSN =[sn]<CR>
Respond:
+OK=[sn,num]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+ CONSN
=[sn,num]<CR>
Respond:
+OK<CR><LF>
Parameter:
[sn]: “connection serial number”.
1: “connection 1”;
2: “connection 2”;
[num]: “the maximum client connection, max=5”;
MiCO-AT Firmware Reference Manual [Page 43]
RM1021EN
Function: Query/set connection numbers on TCP server
Command format Details
NOTE:
When num=1, set tcp timeout with parameter “remote port” at command “CON”.
SOCKET management commands 5.8
AT+SSEND 5.8.1
Table 46 AT+SSEND
Function: Send Wi-Fi message
Command format Details
Setting:
AT+ SSEND
=[socket,length]<CR>
Respond:
+OK<CR><LF>
Parameter:
[socket]: “If socket=0, data will be transmitted to all sockets. It can
get the socket by (AT+EVENT)”.
[length]: “transmitted data length”.
NOTE:
It returns “>” and the serial begins to wait for 3 seconds. It fails if no data within 3 seconds or
otherwise sends data out. It is over for data if the time interval between two bytes exceeds
10ms.
It returns +ERR=-1 if parameter is not right;
It returns +ERR=-6 if the assigned socket is not existing;
It returns +OK if send successfully;
There is no return when socket=0;
AT+SSSEND 5.8.2
Table 47 AT+SSSEND
Function: Send Wi-Fi message with data
Command format Details
MiCO-AT Firmware Reference Manual [Page 44]
RM1021EN
Function: Send Wi-Fi message with data
Command format Details
Setting:
AT+ SSSEND
=[socket,length,data]<CR>
Respond:
+OK<CR><LF>
Parameter:
[socket]: “If socket=0, data will be transmitted to all sockets. It can
get the socket by (AT+EVENT).”
[length]: “transmitted data length”.
[data]: “data needed to transmit”;
NOTE:
It sends data out on serial receiving;
It returns +ERR=-1 if parameter is not right;
It returns +ERR=-6 if the assigned socket is not existing;
It returns +OK if send successfully;
There is no return when socket=0;
AT+SUNSEND 5.8.3
Table 48 AT+SUNSEND
Function: Send UDP message to assigned target
Command format Details
Setting:
AT+
SUNSEND=[socket,port,ip
,length,data]<CR>
Respond:
+OK<CR><LF>
Parameter:
[socket]: “assigned socket”;
[port]: “target port”;
[ip]: “target ip”;
MiCO-AT Firmware Reference Manual [Page 45]
RM1021EN
Function: Send UDP message to assigned target
Command format Details
[length]: “data length”;
[data]: “needed to send”;
NOTE:
It sends data to default address if port=0 and IP=0;
It sends data out on serial receiving;
It returns +ERR=-1 if parameter is not right;
It returns +ERR=-6 if the assigned socket is not existing;
It returns +OK if send successfully;
There is no return when socket=0;
WEB management commands 5.9
AT+WEBF 5.9.1
Table 49 AT+WEBF
Function: Query/set whether to open web setting function
Command format Details
Setting:
AT+ WEBF <CR>
Respond:
+OK=[state]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+ WEBF =[state]<CR>
Respond:
+OK<CR><LF>
Parameter:
[state]:
ON: “open web setting function”;
OFF: “close web setting function”;
MiCO-AT Firmware Reference Manual [Page 46]
RM1021EN
Function: Query/set whether to open web setting function
Command format Details
NOTE:
AT+SAVE to save the settings.
Works after reboot.
AT+WEBU 5.9.2
Table 50 AT+WEBU
Function: Query/set SSID and password for web login
Command format Details
Setting:
AT+ WEBU <CR>
Respond:
+OK=[]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+ WEBU
=[name,pass]<CR>
Respond:
+OK<CR><LF>
Parameter:
[name]: “web user name”;
[pass]: “web user password”;
NOTE:
AT+SAVE to save the settings.
Works after reboot.
MiCO-AT Firmware Reference Manual [Page 47]
RM1021EN
AT management commands 5.10
AT+QUIT 5.10.1
Table 51 AT+QUIT
Function: Quit AT command mode
Command format Details
Setting:
AT+ QUIT <CR>
Respond:
+OK<CR><LF>
Parameter:
none
NOTE:
It enters again by “+++” and “a”;
Factory reset commands 5.11
AT+FHELP 5.11.1
Table 52 AT+FHELP
Function: HELP to factory reset
Command format Details
Setting:
AT+ FHELP <CR>
Respond:
+OK=[command list]<CR><LF>
Parameter:
[command list]: “AT commands list”;
NOTE:
MiCO-AT Firmware Reference Manual [Page 48]
RM1021EN
AT+FAT 5.11.2
Table 53 AT+FAT
Function: Query/set whether to enter AT function
Command format Details
Setting:
AT+ FAT <CR>
Respond:
+OK=[state]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+ FAT =[state]<CR>
Respond:
+OK<CR><LF>
Parameter:
[state]:
ON: “enter AT command mode at default factory setting”;
OFF: “no enter AT command mode at default factory setting”;
NOTE:
AT+SAVE to save the settings;
It works at “AT+FACTORY”;
AT+FMODE 5.11.3
Table 54 AT+FMODE
Function: Query/set whether to open WLAN and TCP/UDP function after
Command format Details
Setting:
AT+ FMODE <CR>
Respond:
+OK=[state]<CR><LF>
Parameter:
Refer to ”setting parameters”
MiCO-AT Firmware Reference Manual [Page 49]
RM1021EN
Function: Query/set whether to open WLAN and TCP/UDP function after
Command format Details
Setting:
AT+ FMODE
=[state]<CR>
Respond:
+OK<CR><LF>
Parameter:
[state]:
AT: “enter AT command mode at default factory setting”;
AT_NONE: “enter AT command mode at default factory setting
without open WLAN, TCP, UDP function”;
DATA: “enter DTU mode at default factory setting”;
NOTE:
AT+SAVE to save the settings;
It works at “AT+FACTORY”;
AT+FEVENT 5.11.4
Table 55 AT+FEVENT
Function: Query/set whether to open event callback
Command format Details
Setting:
AT+FEVENT<CR>
Respond:
+OK=[state]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+ FEVENT
=[state]<CR>
Respond:
+OK<CR><LF>
Parameter:
[state]:
ON: “open event callback at default factory setting”;
MiCO-AT Firmware Reference Manual [Page 50]
RM1021EN
Function: Query/set whether to open event callback
Command format Details
OFF: “close event callback at default factory setting”;
NOTE:
AT+SAVE to save the settings;
It works at “AT+FACTORY”;
AT+FBONJOUR 5.11.5
Table 56 AT+FBONJOUR
Function: Query/set whether to open bonjour
Command format Details
Setting:
AT+ FBONJOUR <CR>
Respond:
+OK=[state]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+ FBONJOUR
=[state]<CR>
Respond:
+OK<CR><LF>
Parameter:
[state]:
ON: “open bonjour at default factory setting”;
OFF: “close bonjour at default factory setting”;
NOTE:
AT+SAVE to save the settings;
It works at “AT+FACTORY”;
MiCO-AT Firmware Reference Manual [Page 51]
RM1021EN
AT+FWMODE 5.11.6
Table 57 AT+FWMODE
Function: Query firmware version
Command format Details
Setting:
AT+ FWMODE <CR>
Respond:
+OK=[mode]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+ FWMODE
=[mode]<CR>
Respond:
+OK<CR><LF>
Parameter:
[mode]: “Wi-Fi working mode”.
AP: “work on Soft_AP mode at default factory setting”;
STA: “work on Station mode at default factory setting”;
AP_STA: “work on both modes at default factory setting”;
NOTE:
AT+SAVE to save the settings;
It works at “AT+FACTORY”;
AT+FWAP 5.11.7
Table 58 AT+FWAP
Function: Query/set SSID, password and channel at Soft AP mode
Command format Details
Setting:
AT+ FWAP <CR>
Respond:
+OK=[ ssid,key,channel]<CR><LF>
Parameter:
MiCO-AT Firmware Reference Manual [Page 52]
RM1021EN
Function: Query/set SSID, password and channel at Soft AP mode
Command format Details
Refer to ”setting parameters”
Setting:
AT+ FWAP
=[ssid,key,channel]<CR>
Respond:
+OK<CR><LF>
Parameter:
[ssid]: “the name of Soft_AP. When it is set as “ssid+MAC”, AP
SSID shows like “ssid_XXXXXX” (XXXXXX is the after 6
numbers of MAC address)”.
[key]: “the key of Soft_AP. When its length is less than 8 digits, the
encryption method is OPEN. When its length is more than 8
digits, the encryption method is WPA”.
[channel]: “the channel if Soft_AP”.
NOTE:
AT+SAVE to save the settings;
It works at “AT+FACTORY”;
AT+FWAPIP 5.11.8
Table 59 AT+FWAPIP
Function: Query/set IP address at Soft AP mode
Command format Details
Setting:
AT+ FWAPIP <CR>
Respond:
+OK=[ address,mask,gateway]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+ FWAPIP
Respond:
+OK<CR><LF>
MiCO-AT Firmware Reference Manual [Page 53]
RM1021EN
Function: Query/set IP address at Soft AP mode
Command format Details
=[address,mask,gateway]<CR> Parameter:
[address]: “standard IP address”;
[mask]: “standard network mask”;
[gateway]: “standard gateway address”;
NOTE:
AT+SAVE to save the settings;
It works at “AT+FACTORY”;
AT+FOCFGT 5.11.9
Table 60 AT+FOCFGT
Function: Query/set timeout of net configuration mode
Command format Details
Setting:
AT+ FOCFGT
=[time]<CR>
Respond:
+OK=[time]<CR><LF>
Parameter:
[time]: “timeout of configuration mode. (unit: s, 0~4294967295)”
NOTE:
AT+SAVE to save the configurations;
It works at “AT+FACTORY”;
AT+FCON1 5.11.10
Table 61 AT+FCON1
Function: Query/set parameters of TCP/UDP connection 1
Command format Details
MiCO-AT Firmware Reference Manual [Page 54]
RM1021EN
Function: Query/set parameters of TCP/UDP connection 1
Command format Details
Setting:
AT+ FCON1<CR>
Respond:
+OK=[ protocol, local_port,remote_port,domain]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+ FCON1=[protocol,
local_port,remote_port,domain]<CR>
Respond:
+OK<CR><LF>
Parameter:
[protocol]: “TCP or UDP protocol”.
SERVER: “TCP server”;
CLIENT: “TCP client”;
BROADCAST: “UDP broadcast”;
UNICAST: “UDP unicast”;
[local_port]: “local port”;
[remote_port]: “remote port”;
[domain]: “the IP address or domain of target server”.
NOTE:
AT+FCON2F 5.11.11
Table 62 AT+FCON2F
Function: Query/set whether to open TCP/UDP connection 2
Command format Details
MiCO-AT Firmware Reference Manual [Page 55]
RM1021EN
Function: Query/set whether to open TCP/UDP connection 2
Command format Details
Setting:
AT+ FCON2F <CR>
Respond:
+OK=[state]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+ FCON2F
=[state]<CR>
Respond:
+OK<CR><LF>
Parameter:
[state]:
ON: “open TCP/UDP connection 2”;
OFF: “close TCP/UDP connection 2”;
NOTE:
Works immediately.
AT+FCON2 5.11.12
Table 63 AT+FCON2
Function: Query/set parameters of TCP/UDP connection 2
Command format Details
Setting:
AT+ FCON2<CR>
Respond:
+OK=[ protocol, local_port,remote_port,domain]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+ FCON2=[ protocol,
local_port,remote_port,domain]<CR>
Respond:
+OK<CR><LF>
Parameter:
MiCO-AT Firmware Reference Manual [Page 56]
RM1021EN
Function: Query/set parameters of TCP/UDP connection 2
Command format Details
[protocol]: “TCP or UDP protocol”.
SERVER: TCP server;
CLIENT: TCP client;
BROADCAST: UDP broadcast;
UNICAST: UDP unicast;
[local_port]: “local port”;
[remote_port]: “remote port”;
[domain]: “the IP address or domain of target server.”
NOTE:
AT+FUART 5.11.13
Table 64 AT+FUART
Function: Query/set UART parameters
Command format Details
Setting:
AT+ FUART <CR>
Respond:
+OK=[ baud_rate,data_bits,parity,stop_bit,flow_control]<CR
><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+
=[baud_rate,data_bits,parity,stop_bit,flow_control]
<CR>
Respond:
+OK<CR><LF>
Parameter:
MiCO-AT Firmware Reference Manual [Page 57]
RM1021EN
Function: Query/set UART parameters
Command format Details
[baud_rate]:
9600, 19200, 38400, 57600, 115200, 230400, 460800,
921600, 1843200, 3686400;
[data_bits]:
5,6,7,8,9;
[parity]:
NONE;
ODD;
EVEN;
[stop_bit]:
1, 2;
[flow_control]:
NONE: “no flow control”;
CTS: “enable CTS”;
RTS: “enable RTS”;
CTSRTS; “enable CTS&RTS”;
NOTE:
AT+FWEBF 5.11.14
Table 65 AT+FWEBF
Function: Query/set whether to open web setting function
Command format Details
Setting:
AT+ FWEBF <CR>
Respond:
+OK=[state]<CR><LF>
Parameter:
Refer to ”setting parameters”
MiCO-AT Firmware Reference Manual [Page 58]
RM1021EN
Function: Query/set whether to open web setting function
Command format Details
Setting:
AT+ FWEBF
=[state]<CR>
Respond:
+OK<CR><LF>
Parameter:
[state]:
ON: “open web setting”;
OFF: “close web setting”;
NOTE:
AT+FWEBU 5.11.15
Table 66 AT+FWEBU
Function: Query/set user and password for web login
Command format Details
Setting:
AT+ FWEBU <CR>
Respond:
+OK=[ name,pass]<CR><LF>
Parameter:
Refer to ”setting parameters”
Setting:
AT+ FWEBU
=[name,pass]<CR>
Respond:
+OK<CR><LF>
Parameter:
[name]: “user name for web login”;
[pass]: “user password for web login”;
NOTE:
MiCO-AT Firmware Reference Manual [Page 59]
RM1021EN
AT+FCLR 5.11.16
Table 67 AT+FCLR
Function: Clear user default setting and restore MXCHIP factory reset setting
Command format Details
Setting:
AT+ FCLR <CR>
Respond:
+OK=[]<CR><LF>
Parameter:
NOTE:
EVENT 5.12
+EVENT=Wi-Fi_LINK 5.12.1
Table 68 +EVENT=Wi-Fi_LINK
Function: Soft AP or station status
Command format Details
Event format:
+EVENT=
Wi-Fi_LINK,[state]<CR><LF>
Parameters:
[state]: “the status of Wi-Fi connection”;
UAP_UP: “set up Soft_AP”;
UAP_DOWN: “close Soft_AP”;
STATION_UP: “station connected”;
STATION_DOWN: “station disconnected”;
NOTE:
The event callback returns when Soft_AP sets up or closes at AP mode and Station is
connected or disconnected at STA mode.
MiCO-AT Firmware Reference Manual [Page 60]
RM1021EN
+EVENT=CON_FAIL 5.12.2
Table 69 +EVENT=CON_FAIL
Function: Connection fails
Command format Details
Event format:
+EVENT=
CON_FAIL,[err_code]<CR><LF>
Parameters:
[err_code]: “error code”;
NOTE:
The event callback returns when the connection status changes at STA mode.
+EVENT=EASYLINK 5.12.3
Table 70 +EVENT=EASYLINK
Function: Easylink status
Command format Details
Event format:
+EVENT=
EASYLINK,[result]<CR><LF>
Parameters:
“No parameters when going into EASYLINK or AIRKISS mode”;
[result]:
0: “configuration is timeout or failed”;
1: “configuration is successful”;
NOTE:
The event callback returns when configuration status changes at EASYLINK or AIRKISS
mode.
+EVENT=WPS 5.12.4
Table 71 +EVENT=WPS
Function: WPS status
Command format Details
MiCO-AT Firmware Reference Manual [Page 61]
RM1021EN
Function: WPS status
Command format Details
Event format:
+EVENT=
WPS,[result]<CR><LF>
Parameters:
“No parameters when going into WPS mode”;
[result]:
0: “configuration is timeout or failed”;
1: “configuration is successful”;
NOTE:
The event callback returns when configuration status changes at WPS mode.
+EVENT=TCP_CLIENT 5.12.5
Table 72 +EVENT=TCP_CLIENT
Function: Connection status at TCP client
Command format Details
Event format:
+EVENT=
TCP_CLIENT,[state,fd]<CR><LF>
Parameters:
[state]:
CONNECT: “client is connected”;
DISCONNECT: “client is disconnected”;
[fd]: “file descriptor”.
NOTE:
The event callback returns when connection status changes at TCP Client mode.
+EVENT=TCP_SERVER 5.12.6
Table 73 +EVENT=TCP_SERVER
Function: Connection status at TCP server
Command format Details
MiCO-AT Firmware Reference Manual [Page 62]
RM1021EN
Function: Connection status at TCP server
Command format Details
Event format:
+EVENT=
TCP_SERVER,[state,fd]<CR><LF>
Parameters:
[state]:
CONNECT: “client is connected”;
DISCONNECT: “client is disconnected”;
[fd]: “file descriptor”.
NOTE:
The event callback returns when connection status changes at TCP Server mode.
+EVENT=UDP_UNICAST 5.12.7
Table 74 +EVENT=UDP_UNICAST
Function: UDP unicast status
Command format Details
Event format:
+EVENT=
UDP_UNICAST,[state,fd]<CR><LF>
Parameters:
[state]:
CONNECT: “UDP unicast sets up”;
DISCONNECT: “UDP unicast closes”;
[fd]: “file descriptor”.
NOTE:
The event callback returns when UDP status changes at UDP UNICAST mode.
+EVENT=UDP_BOARDCAST 5.12.8
Table 75 +EVENT=UDP_BOARDCAST
Function: UDP broadcast status
Command format Details
MiCO-AT Firmware Reference Manual [Page 63]
RM1021EN
Function: UDP broadcast status
Command format Details
Event format:
+EVENT=
UDP_BOARDCAST,[state,fd]<CR><LF>
Parameters:
[state]:
RX_UP: “UDP broadcast receiving function sets up”;
RX_DOWN: “UDP broadcast receiving function closes”;
TX_UP: “UDP broadcast sending function sets up”;
TX_DOWN: “UDP broadcast sending function closes”;
[fd]: “file descriptor”.
NOTE:
The event callback returns when UDP status changes at UDP BOARDCAST mode.
+EVENT=SOCKET 5.12.9
Table 76 +EVENT=SOCKET
Function: Socket message received
Command format Details
Event format:
+EVENT=
SOCKET,[fd,length,data]<CR><LF>
Parameters:
[fd]: “file descriptor”;
[length]: “data length”;
[data]: “data content”;
NOTE:
The event callback returns when receiving data.
MiCO-AT Firmware Reference Manual [Page 64]
RM1021EN
+EVENT=REBOOT 5.12.10
Table 77 +EVENT=REBOOT
+EVENT=REBOOT 5.12.11
Table 78 +EVENT=REBOOT
Function: Rebooting
Command format Details
Event format:
+EVENT=
REBOOT<CR><LF>
Parameters:
NONE
NOTE:
The event callback returns when using REBOOT, FACTORY, FCLR, WCFG commands.
Function: Rebooting
Command format Details
Event format:
+EVENT=
REBOOT<CR><LF>
Parameters:
NONE
NOTE:
The event callback returns when using REBOOT, FACTORY, FCLR, WCFG commands.
MiCO-AT Firmware Reference Manual [Page 65]
RM1021EN
6. Application
Tools:
1. Serial debug tool: secure CRT.
2. TCP/UDP testing tool.
Firmware downloading 6.1
1. Hardware:
MiCOKit development kit: MiCOKit-3165.
2. Software:
AT firmware.
3. Operation:
(1) Connecting:
Connect the development kit to PC by Mini USB line and find the COM number on device manager. Open
secureCRT, set up serial connection.
MiCO-AT Firmware Reference Manual [Page 66]
RM1021EN
Figure 14 Operation
(2) Enter “bootloader”:
BOOT: set low “0”; STATUS: set high “1”;
Press RESET to reboot.
It shows on secureCRT as below:
MiCO-AT Firmware Reference Manual [Page 67]
RM1021EN
Figure 15 Enter “bootloader”
(3) Downloading:
Input: 1, update application. It returns:
Figure 16 Downloading
MiCO-AT Firmware Reference Manual [Page 68]
RM1021EN
Select TransferSend Ymodem, and take the right firmware.
Figure 17 Send the right firmware.
(4) Switch to normal mode
BOOT: set high “1”;
STATUS: set high “1”;
The firmware enters into normal mode after rebooting.
Working mode switching 6.2
DTU mode to AT command mode 6.2.1
1. PIN status:
(1) BOOT: high;
(2) STATUS: high;
(3) Serial setting:
MiCO-AT Firmware Reference Manual [Page 69]
RM1021EN
Figure 18 Serial setting
2. Input switching command
Open secureCRT. Input switching command: “+++” first and then input “a” after it returns “a”.
MiCO-AT Firmware Reference Manual [Page 70]
RM1021EN
Figure 19 Input switching command
3. Test
Input “AT+HELP” to check the AT commands list.
MiCO-AT Firmware Reference Manual [Page 71]
RM1021EN
Figure 20 check the AT commands list
AT command mode to DTU mode 6.2.2
1. PIN status:
BOOT: high;
STATUS: high;
2. Quit AT command mode
Input “AT+QUIT”. It quit AT command mode after it returns “+OK”.
MiCO-AT Firmware Reference Manual [Page 72]
RM1021EN
Figure 21 Quit AT command mode
Wi-Fi case 6.3
Network at AP mode 6.3.1
The procedure:
Table 79 Network at AP mode
Procedure
number
Procedure Commands Return
1 Enter AT command mode +, +, +, (returns a), a a+OK
2 Set Wi-Fi working mode AT+WMODE=AP +OK
MiCO-AT Firmware Reference Manual [Page 73]
RM1021EN
Procedure
number
Procedure Commands Return
3 Set ssid and key of AP;
encryption: WPA
AT+WAP=MXCHIP_3165,
1234567890
+OK
4 Set IP of AP AT+IPCONFIG=AP,
10.10.10.10, 255.255.255.0,
10.10.10.1
+OK
5 Set channel of AP AT+WAPCH=6 +OK
6 Save and reboot AT+SAVE +OK
AT+REBOOT +OK
7 Enter AT command mode
again;
Query setting status.
+, +, +, (returns a), a a+OK
AT+WAP +OK=mxchip_3165,
1234567890
AT+IPCONFIG +OK=10.10.10.1,
255.255.255.0,
10.10.10.1,,,
AT+WAPCH +OK=6
8 Check AP status. AT+WSTATUS +OK=UAP_UP,
STATIOM_DOWN
Scan AP named mxchip_3165
and try to connect to.
AP exists and connect
successfully.
The serial output prints:
MiCO-AT Firmware Reference Manual [Page 74]
RM1021EN
Figure 22 serial output
Network at STA mode 6.3.2
The procedure:
Table 80 Network at STA mode
Procedure
number
Procedure Commands Return
1 Enter AT command mode +, +, +, (returns a), a a+OK
2 Set Wi-Fi working mode AT+WMODE=STA +OK
3 Set ssid and key of STA; AT+WSTA =ssid, 77777777 +OK
4 Set IP of
AP
Auto
Manual
AT+DHCP=ON +OK
AT+DHCP=OFF +OK
AT+IPCONFIG=STA,
192.168.1.106, 255.255.255.0,
192.168.1.1
+OK
6 Save and reboot AT+SAVE +OK
AT+REBOOT +OK
MiCO-AT Firmware Reference Manual [Page 75]
RM1021EN
Procedure
number
Procedure Commands Return
7 Enter AT command mode
again;
Query setting status.
+, +, +, (returns a), a a+OK
AT+WSTA +OK=ssid, 77777777
AT+IPCONFIG +OK=10.10.10.10,
255.255.255.0,
10.10.10.1,
192,168.1.106,
255.255.255.0,
192.168.1.1
AT+WAPCH +OK=6
8 Check Station status. AT+WSTATUS +OK=UAP_DOWN,
STATIOM_UP
The serial output prints:
Figure 23 serial output
DTU case 6.4
TCP server 6.4.1
1. AP mode
Set up one TCP server at AP mode:
MiCO-AT Firmware Reference Manual [Page 76]
RM1021EN
Table 81 AP mode
Procedure
number
Procedure Commands Return
1 Enter AT command mode +, +, +, (returns a), a a+OK
2 Set AP working mode Refer to 7.3.1 procedure
Get ssid and key of AP;
Get IP address.
+OK=mxchip_3165,
1234567890
+OK=10.10.10.1,
255.255.255.0, 10.10.10.1
3 Connect PC to AP and get
the IP address of PC.
PC connects to AP
(mxchip_3165)
Connect successfully
Check PC IP address IP: 10.10.10.2
4 Set connection 1 AT+CON1=SERVER, 20001,, +OK
5 Save and reboot AT+SAVE +OK
AT+REBOOT +OK
6 Enter AT command mode
again;
Query setting status.
+, +, +, (returns a), a a+OK
AT+CON1 +OK=SERVER, 20001,,
7 Open event callback AT+EVENT=ON +OK
8 Set one TCP connection
and get the socket fd
PC connects to AP
(mxchip_3165)
Connect successfully
Set one TCP server using
TCP/UDP testing tool.
Remote IP: 10.10.10.1,
Remote Port: 20001,
Local Port: auto
+EVENT=TCP_CLIENT,
CONNECT, 3
9 Send data at AT command
mode
AT+SSEND=3,5 (returns >),
1234
TCP/UDP tool
Receives: 1234
AT+SSEND=3,5,12345 TCP/UDP tool
Receives: 12345
10 Send data at DTU mode AT+QUIT +OK
secureCRT
Input: 1234567890
TCP/UDP tool
Receives: 1234567890
11 Receive data TCP/UDP tool
Input: 1234567890
SecureCRT
Receives: 1234567890
MiCO-AT Firmware Reference Manual [Page 77]
RM1021EN
2. STA mode
Set up one TCP server at STA mode:
Table 82 STA mode
Procedure
number
Procedure Commands Return
1 Enter AT command mode +, +, +, (returns a), a a+OK
2 Set STA working mode Refer to 7.3.2 procedure
Get ssid and key of STA;
Get IP address.
+OK=ssid, 77777777
+OK=192.168.1.106,
255.255.255.0,
191.168.1.1
3 Connect PC to AP and get
the IP address of PC.
PC connects to AP (ssid) Connect successfully
Check PC IP address IP: 192.168.1.147
3 Set connection 1 AT+CON1=SERVER, 20001,, +OK
4 Save and reboot AT+SAVE +OK
AT+REBOOT +OK
5 Enter AT command mode
again;
Query setting status.
+, +, +, (returns a), a a+OK
AT+CON1 +OK=SERVER, 20001,,
6 Open event callback AT+EVENT=ON +OK
7 Set one TCP connection
and get the socket fd
PC connects to AP (ssid) Connect successfully
Set one TCP server using
TCP/UDP testing tool.
Remote IP: 192.168.1.106,
Remote Port: 20001,
Local Port: auto
+EVENT=TCP_CLIENT,
CONNECT, 2
8 Send data at AT command AT+SSEND=2,5 (returns >), TCP/UDP tool
MiCO-AT Firmware Reference Manual [Page 78]
RM1021EN
mode 1234 Receives: 1234
AT+SSEND=2,5,12345 TCP/UDP tool
Receives: 12345
9 Send data at DTU mode AT+QUIT +OK
secureCRT
Input: 1234567890
TCP/UDP tool
Receives: 1234567890
10 Receive data TCP/UDP tool
Input: 1234567890
SecureCRT
Receives: 1234567890
TCP client 6.4.2
1. AP mode
Set up one TCP client at AP mode:
Table 83 AP mode
Procedure
number
Procedure Commands Return
1 Enter AT command mode +, +, +, (returns a), a a+OK
2 Set AP working mode Refer to 7.3.1 procedure
Get ssid and key of AP;
Get IP address.
+OK=mxchip_3165,
1234567890
+OK=10.10.10.1,
255.255.255.0, 10.10.10.1
3 Connect PC to AP and get
the IP address of PC.
PC connects to AP
(mxchip_3165)
Connect successfully
Check PC IP address IP: 10.10.10.2
4 Set connection 1 AT+CON1=CLIENT, 4001,
10.10.10.2,
+OK
5 Save and reboot AT+SAVE +OK
AT+REBOOT +OK
MiCO-AT Firmware Reference Manual [Page 79]
RM1021EN
6 Enter AT command mode
again;
Query setting status.
+, +, +, (returns a), a a+OK
AT+CON1 +OK=CLIENT,4001,
10.10.10.2
7 Open event callback AT+EVENT=ON +OK
8 Set one TCP connection
and get the socket fd
PC connects to AP
(mxchip_3165)
Connect successfully
Set one TCP server using
TCP/UDP testing tool.
Remote IP: 10.10.10.1,
Remote Port: 20001,
Local Port: auto
+EVENT=TCP_SERVER,
CONNECT, 1
9 Send data at AT command
mode
AT+SSEND=3,5 (returns >),
1234
TCP/UDP tool
Receives: 1234
AT+SSEND=3,5,12345 TCP/UDP tool
Receives: 12345
10 Send data at DTU mode AT+QUIT +OK
secureCRT
Input: 1234567890
TCP/UDP tool
Receives: 1234567890
11 Receive data TCP/UDP tool
Input: 1234567890
SecureCRT
Receives: 1234567890
2. Station mode
Set up one TCP client at Station mode:
Table 84 Station mode
Procedure
number
Procedure Commands Return
1 Enter AT command mode +, +, +, (returns a), a a+OK
2 Set STA working mode Refer to 7.3.2 procedure +OK=ssid, 77777777
MiCO-AT Firmware Reference Manual [Page 80]
RM1021EN
Procedure
number
Procedure Commands Return
Get ssid and key of STA;
Get IP address.
+OK=192.168.1.106,
255.255.255.0,
191.168.1.1
3 Connect PC to AP and get
the IP address of PC.
PC connects to AP (ssid) Connect successfully
Check PC IP address IP: 192.168.1.147
4 Set connection 1 AT+CON1=CLIENT, , 4001,
192.168.1.147
+OK
5 Save and reboot AT+SAVE +OK
AT+REBOOT +OK
6 Enter AT command mode
again;
Query setting status.
+, +, +, (returns a), a a+OK
AT+CON1 +OK=CLIENT, , 4001,
192.168.1.147
7 Open event callback AT+EVENT=ON +OK
8 Set one TCP connection
and get the socket fd
PC connects to AP (ssid) Connect successfully
Set one TCP server using
TCP/UDP testing tool.
Local Port: 4001
+EVENT=TCP_SERVER,
CONNECT, 1
9 Send data at AT command
mode
AT+SSEND=1,5 (returns >),
1234
TCP/UDP tool
Receives: 1234
AT+SSEND=1,5,12345 TCP/UDP tool
Receives: 12345
10 Send data at DTU mode AT+QUIT +OK
secureCRT
Input: 1234567890
TCP/UDP tool
Receives: 1234567890
11 Receive data TCP/UDP tool SecureCRT
MiCO-AT Firmware Reference Manual [Page 81]
RM1021EN
Procedure
number
Procedure Commands Return
Input: 1234567890 Receives: 1234567890
UDP broadcast 6.4.3
1. AP mode
Set up one UDP broadcast at AP mode:
Table 85 AP mode
Procedure
number
Procedure Commands Return
1 Enter AT command mode +, +, +, (returns a), a a+OK
2 Set AP working mode Refer to 7.3.1 procedure
Get ssid and key of AP;
Get IP address.
+OK=mxchip_3165,
1234567890
+OK=10.10.10.1,
255.255.255.0,
10.10.10.1
3 Connect PC to AP and get
the IP address of PC.
PC connects to AP
(mxchip_3165)
Connect successfully
Check PC IP address IP: 10.10.10.2
4 Set connection 1 AT+CON1=BOARDCAST,
20001, 4001, 10.10.10.2
+OK
5 Save and reboot AT+SAVE +OK
AT+REBOOT +OK
6 Enter AT command mode
again;
Query setting status.
+, +, +, (returns a), a a+OK
AT+CON1 +OK= BOARDCAST,
20001, 4001,
10.10.10.2
7 Open event callback AT+EVENT=ON +OK
8 Set one TCP connection
and get the socket fd
PC connects to AP
(mxchip_3165)
Connect successfully
MiCO-AT Firmware Reference Manual [Page 82]
RM1021EN
Procedure
number
Procedure Commands Return
Set one UDP broadcast using
TCP/UDP testing tool.
Remote IP: 10.10.10.2,
Remote Port: 20001,
Local Port: 4001
UDP broadcast set
successfully.
9 Send data at AT command
mode
AT+SSEND=0,5 (returns >),
1234
TCP/UDP tool
Receives: 1234
AT+SSEND=0,5,12345 TCP/UDP tool
Receives: 12345
10 Send data at DTU mode AT+QUIT +OK
secureCRT
Input: 1234567890
TCP/UDP tool
Receives: 1234567890
11 Receive data TCP/UDP tool
Input: 1234567890
SecureCRT
Receives: 1234567890
2. Station mode
Set up one UDP broadcast at STA mode:
Table 86 Station mode
Procedure
number
Procedure Commands Return
1 Enter AT command mode +, +, +, (returns a), a a+OK
2 Set STA working mode Refer to 7.3.2 procedure
Get ssid and key of STA;
Get IP address.
+OK=ssid, 77777777
+OK=192.168.1.106,
255.255.255.0,
191.168.1.1
3 Connect PC to AP and get
the IP address of PC.
PC connects to AP (ssid) Connect successfully
Check PC IP address IP: 192.168.1.147
MiCO-AT Firmware Reference Manual [Page 83]
RM1021EN
Procedure
number
Procedure Commands Return
4 Set connection 1 AT+CON1= BOARDCAST,
20001, 4001, 192.168.1.147
+OK
5 Save and reboot AT+SAVE +OK
AT+REBOOT +OK
6 Enter AT command mode
again;
Query setting status.
+, +, +, (returns a), a a+OK
AT+CON1 +OK= BOARDCAST,
20001, 4001,
192.168.1.147
7 Open event callback AT+EVENT=ON +OK
8 Set one TCP connection
and get the socket fd
PC connects to AP (ssid) Connect successfully
Set one TCP server using
TCP/UDP testing tool.
Remote IP: 192.168.1.106,
Remote Port: 20001,
Local Port: 4001
UDP set successfully.
9 Send data at AT command
mode
AT+SSEND=0,5 (returns >),
1234
TCP/UDP tool
Receives: 1234
AT+SSEND=0,5,12345 TCP/UDP tool
Receives: 12345
10 Send data at DTU mode AT+QUIT +OK
secureCRT
Input: 1234567890
TCP/UDP tool
Receives: 1234567890
11 Receive data TCP/UDP tool
Input: 1234567890
SecureCRT
Receives: 1234567890
MiCO-AT Firmware Reference Manual [Page 84]
RM1021EN
UDP unicast 6.4.4
1. AP mode
Set up one UDP unicast at AP mode:
Table 87 AP mode
Procedure
number
Procedure Commands Return
1 Enter AT command mode +, +, +, (returns a), a a+OK
2 Set AP working mode Refer to 7.3.1 procedure
Get ssid and key of AP;
Get IP address.
+OK=mxchip_3165,
1234567890
+OK=10.10.10.1,
255.255.255.0,
10.10.10.1
3 Connect PC to AP and get
the IP address of PC.
PC connects to AP
(mxchip_3165)
Connect successfully
Check PC IP address IP: 10.10.10.2
4 Set connection 1 AT+CON1=UNICAST, 20001,
4001, 10.10.10.2
+OK
5 Save and reboot AT+SAVE +OK
AT+REBOOT +OK
6 Enter AT command mode
again;
Query setting status.
+, +, +, (returns a), a a+OK
AT+CON1 +OK= UNICAST,
20001, 4001,
10.10.10.2
7 Open event callback AT+EVENT=ON +OK
8 Set one TCP connection
and get the socket fd
PC connects to AP
(mxchip_3165)
Connect successfully
Set one UDP broadcast using
TCP/UDP testing tool.
Remote IP: 10.10.10.1,
UDP broadcast set
successfully.
MiCO-AT Firmware Reference Manual [Page 85]
RM1021EN
Procedure
number
Procedure Commands Return
Remote Port: 20001,
Local Port: 4001
9 Send data at AT command
mode
AT+SSEND=0,5 (returns >),
1234
TCP/UDP tool
Receives: 1234
AT+SSEND=0,5,12345 TCP/UDP tool
Receives: 12345
10 Send data at DTU mode AT+QUIT +OK
secureCRT
Input: 1234567890
TCP/UDP tool
Receives: 1234567890
11 Receive data TCP/UDP tool
Input: 1234567890
SecureCRT
Receives: 1234567890
2. Station mode
Set up one UDP unicast at STA mode:
Table 88 Station mode
Procedure
number
Procedure Commands Return
1 Enter AT command mode +, +, +, (returns a), a a+OK
2 Set STA working mode Refer to 7.3.2 procedure
Get ssid and key of STA;
Get IP address.
+OK=ssid, 77777777
+OK=192.168.1.106,
255.255.255.0,
191.168.1.1
3 Connect PC to AP and get
the IP address of PC.
PC connects to AP (ssid) Connect successfully
Check PC IP address IP: 192.168.1.147
4 Set connection 1 AT+CON1= UNICAST, 20001,
4001, 192.168.1.147
+OK
MiCO-AT Firmware Reference Manual [Page 86]
RM1021EN
Procedure
number
Procedure Commands Return
5 Save and reboot AT+SAVE +OK
AT+REBOOT +OK
6 Enter AT command mode
again;
Query setting status.
+, +, +, (returns a), a a+OK
AT+CON1 +OK= UNICAST,
20001, 4001,
192.168.1.147
7 Open event callback AT+EVENT=ON +OK
8 Set one TCP connection
and get the socket fd
PC connects to AP (ssid) Connect successfully
Set one TCP server using
TCP/UDP testing tool.
Remote IP: 192.168.1.106,
Remote Port: 20001,
Local Port: 4001
UDP set successfully.
9 Send data at AT command
mode
AT+SSEND=0,5 (returns >),
1234
TCP/UDP tool
Receives: 1234
AT+SSEND=0,5,12345 TCP/UDP tool
Receives: 12345
10 Send data at DTU mode AT+QUIT +OK
secureCRT
Input: 1234567890
TCP/UDP tool
Receives: 1234567890
11 Receive data TCP/UDP tool
Input: 1234567890
SecureCRT
Receives: 1234567890