페이지 선택
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in pages

AT Commands For MIFI

 

 

No Command Description
F2601 AT+CWMAP Open/Close MiFi
F2602 AT+CWSSID SSID setting
F2603 AT+CWBCAST Broadcast setting
F2604 AT+CWAUTH Authentication type, encrypt mode and password setting
F2605 AT+CWMOCH 80211 mode and channel setting
F2606 AT+CWISO Client isolation setting
F2607 AT+CWDHCP Get the current DHCP configuration
F2608 AT+CWNAT NAT type setting
F2609 AT+CWCLICNT Get client number connected to the MiFi
F2610 AT+CWRSTD Restore to default setting
F2611 AT+CWMAPCFG MiFi configuration setting
F2612 AT+CWMACADDR Get MAC address
F2613 AT+CWNETCNCT Query the connection to the network
F2614 AT+CWSTASCAN Scan WIFI network
F2615 AT+CWSTACFG STA mode configuration setting
F2616 AT+CWSTAIP Get STA mode IP address

 

 

 

 

 

F2601   AT+CWMAP     Open/Close WIFI

  

T) AT+CWMAP=?

+CWMAP: (0-1)

 OK

R) AT+CWMAP?

+CWMAP: <cur_mifi_state>,<reboot_mifi_state>

 OK

W) AT+CWMAP=<cur_mifi_stat e>

[,<reboot_mifi_state>]

OK

or

ERROR

  

<cur_mifi_state> 0     Current MiFi off
1     Current MiFi on
<reboot_mifi_state> 0     MiFi off after reboot the module
1     MiFi on after reboot the module
The default value of cur_mifi_state and reboot_mifi_state are both 1

 

Example

AT+CWMAP?

+CWMAP: 1,1

OK

 AT+CWMAP=0

OK 

AT+CWMAP?

+CWMAP: 0,1

OK

AT+CWMAP=0,0

OK

 AT+CWMAP?

+CWMAP: 0,0

OK

 AT+CWMAP=1

OK

 AT+CWMAP?

+CWMAP: 1,0

OK

 AT+CWMAP=0,1

OK

AT+CWMAP?

+CWMAP: 0,1

OK

 AT+CWMAP=1

OK 

AT+CWMAP?

+CWMAP: 1,1

OK

 

 

 

 

F2602   AT+CWSSID     SSID Setting

 

R) AT+CWSSID?

+CWSSID: <ssid>

 OK

W) AT+CWSSID=<ssid>

OK

or

ERROR

  

<ssid>

new ssid string

1. The max length of <ssid> is 32 bytes when the <ssid> include only ASCII characters.

2. The max length of <ssid> is 20 bytes when <ssid> include only Chinese

(One Chinese characters is 2 bytes, so the max Chinese count is 10).

3. The max length of <ssid> is 22 bytes when <ssid> include ASCII and Chinese characters

(One Chinese character is 2 bytes, one ASCII character is 1 byte).

The default value is SIM8X00AP.

 

Example

AT+CWSSID?

+CWSSID: “SIM8X00AP”

OK

 AT+CWSSID=”SIM8200″

OK

 

 

 

 

F2603   AT+CWBCAST     Broadcast Setting

 

T) AT+CWBCAST=?

+CWBCAST: (0-1)

 OK

R) AT+CWBCAST?

+CWBCAST: <broadcast>

 OK

W) AT+CWBCAST=<broadcast> 

OK

or

ERROR

  

<broadcast>

Broadcast parameter, default:1.

0     disabled

1     enabled

 

Example

AT+CWBCAST?

+CWBCAST: 1

OK

AT+CWBCAST=0

OK

 

 

 

 

F2604   AT+CWAUTH     Authentication Setting

 

R) AT+CWAUTH?

+CWAUTH:<auth>,<encrypt>[,<password>]

OK

W) AT+CWAUTH=<auth>,<encrypt> [,password>]

OK

or

ERROR

 

<auth>

Authentication type parameter, default:4.

0     auto

1     open

2     share

3     wpa

4     wpa2

5     wpa/wpa2

6     wpa3

7     wpa2/wpa3

<encrypt>

Encrypt mode, default:3

0     null

1     WEP

2     TKIP

3     AES

4     TKIP-AES

<password>

password string, the length is 5 or between 8 to 64.

The char in the password is only allow the ASCII ‘s decimal code between 32 to 126.

The parameter need to meet the following conditions:

1. If (auth = 0 or auth = 1) then (encrypt = 0 or encrypt = 1)

2. If (auth =2) then (encrypt = 1)

3. If (auth >=3) then (encrypt >=2)

4. If(encrypt = 0) then (password is null)

5. If(encrypt = 1) then

1) password can’t be set null

2) password format: (5 ASCII characters) or

(10 hexadecimal numbers) or(13 ASCII characters) or(26 hexadecimal numbers)

6. if(encrypt >= 2) then

1) password can’t be set null

2) password format: ( 8~63 ASCII characters or 64 hexadecimal numbers)

 

Example

AT+CWAUTH?

+CWAUTH: 4,3,”1234567890″

OK

AT+CWAUTH=5,4,”abcd1234″

OK

 

 

 

 

F2605   AT+CWMOCH     80211 Mode And Channel and bandwidth setting

 

R) AT+CWMOCH?

+CWMOCH: <mode>,<channel>[,<bandwidth>]

 OK

W) AT+CWMOCH=<mode>,<ch annel>

[,<bandwidth>]

OK

or

ERROR

  

<mode>

80211 mode parameter, default:4.

1    a/n    5G mode

2    b    2.4G mode

3    b/g    2.4G mode

4    b/g/n    2.4G mode

5    ac/n    5G mode

6    ax    WIFI6 mode

<channel> Channel parameter, default: 0
0          auto select
1~11 2.         4Gmode channel number 36/40/44/48/149/153/157/161/165 5G mode channel number

When <mode> is 1/5 <channel> can be set 36/40/44/48/149/153/157/161/165

When <mode> is 2/3/4, <channel> range is 0~11

When <mode> is 6, <channel> can be set 36/40/44/48/149/153/157/161/165, or 0~11

<bandwidth>

MiFi band width, it is an optional parameter.

0       20MHz band width,  vht_oper_chwidth is 0 and vht_capab is HT20

1       40MHz band width,  vht_oper_chwidth is 0 and vht_capab is HT40+

2       40MHz band width,  vht_oper_chwidth is 0 and vht_capab is HT40-

3       80MHz band width,  vht_oper_chwidth is 1 and vht_capab is HT40+

4       80MHz band width,  vht_oper_chwidth is 1 and vht_capab is HT40-

When <bandwidth> is not set, the band width will be set automatically,

but if it is set, please fellow the following rules:
(1) When <mode> is set as 2/3/4, or <mode> is 6 and <channel> is set 1-11,

<bandwidth> can be only set 0~2

(2) When <channel> is set 1~4, <bandwidth> can’t be set to 2, and

when <channel> is set 8~11, <bandwidth> can’t be set to 1

(3) When <bandwidth> is set, 5G channels can be set 36/40/44/48/52/56/60/

64/100/104/108/112/116/120/124/128/132/136/140/144/149/153/ 157/ 161/165

As 52/56/60/ 64/100/104/108/112/116/120/124/128/132/136/140/144

are radar detections, they are not recommended to use.

(4) When <channel> is set 36/100/149, <bandwidth> can’t be set to 2/4

(5) When <channel> is set 64/144/165, <bandwidth> can’t be set to 1/3

 

Example

AT+CWMOCH?

+CWMOCH: 4,6

OK

AT+CWMOCH=4,0

OK

 

 

 

 

F2606   AT+CWISO     Client Isolation Setting

  

T) AT+CWISO=?

+CWISO: (0-1)

 OK

R) AT+CWISO?

+CWISO: <isolation>

 OK

W) AT+CWISO=<isolation>

OK

or

ERROR

  

<isolation>

Isolation parameter, default: 0

0     close

1     open

 

Example

AT+CWISO?

+CWISO: 1

OK

AT+CWISO=0

OK

 

 

 

 

F2607   AT+CWDHCP     Get The Current DHCP Configuration

 

R) AT+CWDHCP?

+CWDHCP:<host_ip>,<range_start_ip>,<range_end_ip>,<leasetime>

OK

  

<host_ip> the AP IP
<range_start_ip> the start IP of the IP range that assigned to the client
<range_end_ip> the end IP of the IP range that assigned to the client
<leasetime> the lease time

 

Example

AT+CWDHCP?

+CWDHCP: “192.168.225.1”,”192.168.225.20″,”192.168.225.60″,12h

OK

 

 

 

 

F2608   AT+CWNAT     NAT Type Setting

 

T) AT+CWNAT=?

+CWNAT: (0-1)

 OK

R) AT+CWNAT?

+CWNAT: <type>

 OK

W) AT+CWNAT=<type>

OK

or

ERROR

 

<type>

NAT type parameter, default:0.

0     Symmetric

1     Cone

 

Example

AT+CWNAT?

+CWNAT: 0

OK

AT+CWNAT=1

OK

 

 

 

 

F2609   AT+CWCLICNT     Get The Client Number Connected To The WIFI

 

R) AT+CWCLICNT?

+CWCLICNT: <cnt>

 OK

  

<cnt> the connected client count, range is from 0 to 31.

 

Example

AT+CWCLICNT?

+CWCLICNT: 1

OK

 

 

 

 

F2610   AT+CWRSTD     Restore to default setting

 

E) AT+CWRSTD OK

 

Example

AT+CWRSTD

OK

 

 

 

 

F2611   AT+CWMAPCFG     WIFI Configuration Setting

 

T) AT+CWMAPCFG=?

+CWMAPCFG: (“enablessid2″,”configselect”),(0-2)

 OK

R) AT+CWMAPCFG?

+CWMAPCFG: <enablessid2_value>,<configselect_value>

 OK

W) AT+CWMAPCFG=<option>,<value>

OK

or

ERROR

  

<enablessid2_value>

0     AP mode

1     AP-AP mode

2     STA-AP mode

<configselect_value> Current AP ID: 0, 1, 2
<option>

”enablessid2”     set WIFI mode

”configselect”     set the current AP ID

<value>

The value of the options

If (option=”enablessid2”)

0       AP mode

1       AP-AP mode

2       STA-AP mode

If (option=”configselect”)

Current AP ID (0 or 1 or 2) to be set.

When current AP ID is 0, the AT+CWSSID/AT+CWBCAST/AT+CWAUTH/AT+CWMOCH/AT+CWISO

/AT+CWDHCP/AT+CWCLICNT/AT+CWMACADDR will modify the first AP’s settings;

When current AP ID is 1, the AT+CWSSID/AT+CWBCAST/AT+CWAUTH/AT+CWMOCH/AT+CWISO

/ AT+CWDHCP/AT+CWCLICNT/AT+CWMACADDR will modify the second AP’s settings;

When current AP ID is 2, the AT+CWSSID/AT+CWBCAST/AT+CWAUTH/AT+CWMOCH/AT+CWISO

/ AT+CWDHCP/AT+CWCLICNT/AT+CWMACADDR will modify the third AP’s settings,

the AT+CWSTAIP/AT+CWSTASCAN/AT+CWSTACFG will modify the STA’s settings.

 

NOTE

It can’t set the configselect value to 1 when enablessid2 is 0.

The configselect value will be changed due to enablessid2

enablessid2        configselect

0                          0

1                          0 OR 1

2                          2

 

Example

AT+CWMAPCFG=?

+CWMAPCFG: (“enablessid2″,”configselect”),(0-2)

OK

AT+CWMAPCFG?

+CWMAPCFG: 0,0

OK

AT+CWMAPCFG=”enablessid2”,1                                   

OK

AT+CWMAPCFG=”configselect”,1

OK

AT+CWMAPCFG=”enablessid2″,0

OK

 

 

 

 

F2612   AT+CWMACADDR     Get MAC Address

  

R) AT+CWMACADDR?

OK

 +CWMACADDR:

<number>,<mac_addr> [             ]

or

ERROR

  

<number>

0     host mac addr

1     client mac addr

…     client mac addr

<mac_addr> Device mac address

 

Example

AT+CWMACADDR?

OK

+CWMACADDR:

0,02:03:7F:93:62:62

1,cc:29:f5:e0:ef:f3

 

 

 

 

 

F2613   AT+CWNETCNCT     Query The Connection To The Network

 

R) AT+CWNETCNCT?

+CWNETCNCT: <flag>

 OK

  

<flag>

0     disconnect

1     connect

 

Example

AT+CWNETCNCT?

+CWNETCNCT: 1

OK

 

 

 

 

 

F2614   AT+CWSTASCAN     Scan WIFI Network

  

R) AT+CWSTASCAN?

+CWSTASCAN: <flag_show_signal>

 OK

W) AT+CWSTASCAN=<flag_show_signal>

OK

or

ERROR

R) AT+CWSTASCAN

[+CWSTASCAN:

<bssid>,<ssid>[,signal][… …]]

 OK

or

ERROR

  

<flag_show_signal>

0     Don’t show the signal level. It’s the default value.

1     Show the signal level.

<bssid> The MAC address of external wireless network.
<ssid> The SSID name of external wireless network.
<signal> The signal level of external wireless network.

 

Example

AT+CWSTASCAN

+CWSTASCAN:

4c:e6:76:49:2a:48, simtest

OK

AT+CWSTASCAN=1

OK

AT+CWSTASCAN?

+CWSTASCAN: 1

OK

AT+CWSTASCAN

+CWSTASCAN:

f4:83:cd:d8:24:c8,TP-LINK_24C8,-52

80:89:17:10:e6:23,TP-LINK_SW2, -58

14:2d:27:24:98:61,Public,-58

bc:46:99:38:e2:ca,TP-LINK_E2CA,-64

0c:72:d9:49:25:8b,nubia-WD670-258B, -92

50:2b:73:c0:aa:d9,Tenda_C0AAD9,-68

OK

 

 

 

 

F2615   AT+CWSTACFG     STA Mode Configuration Setting

 

R) AT+CWSTACFG?

+CWSTACFG: <ssid>[,<security>,<proto>,<psk>]

 OK

W) AT+CWSTACFG=<ssid>

[,<security>,<proto>,<psk>]

OK

or

ERROR

  

<ssid> The SSID name of external wireless network. Refer to +CWSSID command for details.
<security> Reserved value.
<proto> Reserved value.
<psk> The password of external wireless network. The length of <psk> string is 8-63

 

Example

AT+CWSTACFG= “simtest”,2,1,”1234567890″

OK

AT+CWSTACFG?

+CWSTACFG: “simtest”,,,”1234567890″

OK

AT+CWSTACFG= “simtest”,,,”1234567890″

OK

AT+CWSTACFG?

+CWSTACFG: “simtest”,,,”1234567890″

OK

 

 

 

 

F2616   AT+CWSTAIP    Get STA mode IP address

 

R) AT+CWSTAIP?

[+CWSTAIP: <ip address>]

OK

 

<ip address> The station IP address

 

Example AT+CWSTAIP?
+CWSTAIP: 192.168.11.27

 

 

 

 

 

 

 

Adsense

 

 WiFi IoT Module

 

www.mxchip.com

 

 

 Bluetooth Module

www.feasycom.com

 

 

 5G/LTE/CAT-M1/NB-IoT

 

www.simcom.com

 

Viewed Page List