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

AT Commands For MIFI W58/W58L

 

 

No Command Description
L2701 AT+CWMAP Open/Close WIFI
L2702 AT+CWSSID SSID setting
L2703 AT+CWBCAST Broadcast setting
L2704 AT+CWAUTH Authentication setting
L2705 AT+CWMOCH 80211 mode and channel setting
L2706 AT+CWISO Client isolation setting, W58 Only
L2707 AT+CWDHCP Get the current DHCP configuration
L2708 AT+CWNAT NAT type setting, W58 Only
L2709 AT+CWCLICNT Get client number connected to the WIFI
L2710 AT+CWRSTD Restore to default setting
L2711 AT+CWMAPCFG WIFI configuration setting, W58 Only
L2712 AT+CWLANSRV LAN SERVER setting
L2713 AT+CWLANMSG Send message
L2714 AT+CWLANMGET Manual get cached bytes
L2715 AT+CWMACADDR Get MAC address
L2716 AT+CWNETCNCT Query the connection to the network
L2717 AT+CWSTAIP Get STA mode IP address
L2718 AT+CWSTASCAN Scan WIFI network
L2719 AT+CWSTACFG STA mode configuration setting
L2720 AT+CWSTAINIT STA mode setting, W58L Only
L2721 AT+CWUSRINFO Auth information of wifi data call setting

 

 

 

 

 

L2701   AT+CWMAP     Open/Close WIFI

  

T) AT+CWMAP=?

+CWMAP: (0-1)

 OK

R) AT+CWMAP?

+CWMAP: <flag>

 OK

W) AT+CWMAP=<flag> OK

  

<flag>

0     Close

1     Open

 

Example

AT+CWMAP?

+CWMAP: 1

OK

AT+CWMAP=0

OK

 

 

 

 

L2702   AT+CWSSID     SSID Setting

 

R) AT+CWSSID?

+CWSSID: <ssid>

 OK

W) AT+CWSSID=<ssid> OK

  

<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 SIM7600MIFI.

 

Example

AT+CWSSID?

+CWSSID: “SIM7600MIFI”

OK

 

 

 

 

L2703   AT+CWBCAST     Broadcast Setting

 

T) AT+CWBCAST=?

+CWBCAST: (0-1)

 OK

R) AT+CWBCAST?

+CWBCAST: <broadcast>

 OK

W) AT+CWBCAST=<broadcast>  OK

  

<broadcast>

0     disabled

1     enabled

 

Example

AT+CWBCAST?

+CWBCAST: 1

OK

AT+CWBCAST=0

OK

 

 

 

 

L2704   AT+CWAUTH     Authentication Setting

 

R) AT+CWAUTH?

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

OK

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

 

<auth>

0     open/share

1     open

2     share

3     wpa

4     wpa2

5     wpa/wpa2

<encrypt>

0     null

1     WEP

2     TKIP

3     AES

4     TKIP-AES

<password>

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

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

 

NOTE

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 character) or (10 hexadecimal number) or(13 ASCII character) or(26 hexadecimal number)

}

6. if(encrypt >= 2) then

{

1) password can’t be set null

2) password format: ( 8~63 ASCII character or 64 hexadecimal number)

}

 

 

Example

AT+CWAUTH?

+CWAUTH: 0,1, “11111”

OK

AT+CWAUTH?

+CWAUTH: 5,4, “12345678”

OK

AT+CWAUTH=0,0

OK    //Auth:open/share   encrypt:null

AT+CWAUTH=0,1,”11111”

OK      //Auth:open/share encrypt:WEP

AT+CWAUTH=2,1,”12345”                                        

OK       //Auth:share encrypt:WEP,   (ASCII character password:12345)

 

AT+CWAUTH=2,1,”3132333435”                                 

OK        //Auth:share encrypt :WEP, (sixteen hexadecimal number:password 12345)

AT+CWAUTH=5,4,”abcd1234”

OK      //Auth:WPA/WPA2 encrypt:TIKP-AES

 

 

 

 

L2705   AT+CWMOCH     80211 Mode And Channel Setting

 

R) AT+CWMOCH?

+CWMOCH: <mode>,<channel>

 OK

W) AT+CWMOCH=<mode>,<channel> OK

  

<mode>

2     b    2.4G mode

3     b/g    2.4G mode

4     b/g/n    2.4G mode

<channel>

0     auto select

1~11     2.4Gmode channel number

 

Example

AT+CWMOCH?

+ CWMOCH: 4,0

OK

AT+CWMOCH=3,1

OK

 

 

 

 

L2706   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>

0     close

1     open

 

Example

AT+CWISO?

+CWISO: 1

OK

AT+CWISO=0

OK

 

 

 

 

L2707   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.1.250”,”192.168.1.128″,”192.168.1.249″,240h

OK

 

 

 

 

L2708   AT+CWNAT     NAT Type Setting

 

T) AT+CWNAT=?

+CWNAT: (0-1)

 OK

R) AT+CWNAT?

+CWNAT: <type>

 OK

W) AT+CWNAT=<type> OK

 

<type>

0     Symmetric

1     Cone

 

Example

AT+CWNAT?

+CWNAT: 1

OK

AT+CWNAT=0

OK

 

 

 

 

L2709   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

 

 

 

 

L2710   AT+CWRSTD     Restore All MIFI Setting To Default

 

E) AT+CWRSTD

OK

or

ERROR

 

Example

AT+CWRSTD

OK

 

 

 

 

L2711   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

  

<enablessid2_value>

0     AP mode

1     AP-AP mode

2     STA-AP mode

<configselect_value> Current AP ID (0 or 1 or 2)
<option>

”enablessid2”     set WIFI mode

”configselect”     set the current AP ID

<value> the value of the options.
 

 

NOTE

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

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

2. The configselect value will be changed due to enablessid2.

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                                     // Set enablessid2

OK

AT+CWMAPCFG=”configselect”,0                                    // Set configselec

OK

 

 

 

 

L2712   AT+CWLANSRV     LAN Server Setting

 

R) AT+CWLANSRV?

+CWLANSRV: <server_ip>,<server_port>,<recv_mode>

 OK

W) AT+CWLANSRV=<value> OK
W) AT+CWLANSRV=0,<server_ port>[,<recv_mode>]

OK

or

ERROR

  

<server_ip> Default     192.168.225.1
<server_port>

Default     5555, The range of permitted values is 1024 to 65535.

<recv_mode>

0     Report messages directly with URC(+CWLANMSG) 

1     Report cached bytes when new messages are received (+CWLANMSG: <cached_len>).

And use AT+CWLANMGET to get cached bytes.

<value>

0     close the server

1     open the server

 

Example

AT+CWLANSRV?

+CWLANSRV: 192.168.225.1,5555,0

OK

AT+CWLANSRV=1

OK

 +CWLANMSG: 123456789

AT+CWLANSRV=0,44444,1

OK

AT+CWLANSRV?

+CWLANSRV: 192.168.225.1,44444,1

OK

AT+CWLANSRV=1

OK 

+CWLANMSG: 10

+CWLANMSG: 20

+CWLANMSG: 30

+CWLANMSG: 40

+CWLANMSG: 50

AT+CWLANMGET=30

+CWLANMGET: 030,123456789012345678901234567890

OK

AT+CWLANMGET=30

+CWLANMGET: 020,12345678901234567890

OK

 

 

 

 

L2713   AT+CWLANMSG     Send Message

Must open the lan server first (AT+CWLANSRV=1).

 

W) AT+CWLANMSG=<tx_msg>

OK

or

ERROR

Received urc message

+CWLANMSG:

<rx_msg>,<tail>

 

Received urc message

+CWLANMSG:

<cached_len>

 

 

<tx_msg>

Hexadecimal string. The max length of message is 512.

<rx_msg>

ASCII string.

(1) The message must end with 0x0A from the client.

(2) The max length of <message> is 1024,and ignore others.

<tail>

0x0D0A0D0D0A   Normal tail.

0x0D0D0A     The message has 0x00.

<cached_len>

Cached bytes. The max length is 10*1024.

 

Example

AT+CWLANSRV=1

OK

AT+CWLANMSG=”31323434”

OK 

+CWLANMSG: 1234\r\n\r\r\n

 

 

 

 

L2714   AT+CWLANMGET     Manual Get Cached Bytes

Must open the lan server first (AT+CWLANSRV=1).

 

R) AT+CWLANMGET?

+CWLANMGET: <cached_len>

OK

W) AT+CWLANMGET=<len>

+CWLANMGET: <len>

<msg>

OK

 

<len>

The length customer want to get. Max length is 100.

<msg> Received message.
<cached_len>

Cached bytes. The max length is 10*1024.

 

Example

AT+CWLANSRV=1

OK 

+CWLANMSG: 110

AT+CWLANMGET=100

+CWLANMGET: 100

123456789012345678901234567890123456789012345678901234567890123456789012345678901

2345678901234567890

OK

AT+CWLANMGET?

+CWLANMGET: 10

OK

 

 

 

 

L2715   AT+CWMACADDR     Get MAC Address

  

R) AT+CWMACADDR?

[<number>,<mac_addr>

[… …]]

OK

  

<number>

0     host mac addr

1     client mac addr

…     client mac addr

<mac_addr> Device mac address

 

Example

AT+CWMACADDR?

0,00:0A:F5:88:88:8F

1,74:23:44:8f:64:fd

OK

 

 

 

 

L2716   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

 

 

 

 

L2717   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

OK

 

 

 

 

L2718   AT+CWSTASCAN     Scan WIFI Network

  

R) AT+CWSTASCAN?

+CWSTASCAN: <flag_show_signal>

 OK

or

ERROR

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

 

 

 

 

L2719   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.
<security> Reserved value.
<proto> Reserved value.
<psk> The password of external wireless network.
 

NOTE

1. The configselect value must set to 2;

2. The <security> and <proto> are reserved value which is in ort to compatible with previous versions.

These 2 parameters can be entered NULL or any combination.  

 

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

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

OK

AT+CWSTACFG?

+CWSTACFG: “simtest”

OK

AT+CWSTACFG= “simtest”

OK

AT+CWSTACFG?

+CWSTACFG: “simtest”

OK

 

 

 

 

L2720   AT+CWSTAINIT     STA Mode Setting

 

T) AT+CWSTAINIT=?

+CWSTAINIT: (0-1)

OK

R) AT+CWSTAINIT?

+CWSTAINIT: <type>

 OK

W) AT+CWSTAINIT=<type> OK

   

<type>

0     close station mode

1     open station mode

 

Example

AT+CWSTAINIT=?

+CWSTAINIT: (0-1)

OK

AT+CWSTAINIT=0

OK

AT+CWSTAINIT?

+CWSTAINIT: 0

OK

 

 

 

 

 

L2721   AT+CWUSRINFO     Auth Information Of Wifi Data Call Setting

The username and password are only for CDMA/EVDO network mode.

 

T) AT+CWUSRINFO=?

+CWUSRINFO: (1-127),(1-127)

OK

R) AT+CWUSRINFO?

+CWUSRINFO: <usrname>,<password>

OK

W) AT+CWUSRINFO=<usrname>,<password>

OK

or

ERROR

 

<usrname>

username string. The length is from 1 to 127.

<password>

password string. The length is from 1 to 127.

 

NOTE

1. It need to reset when set the username and password.

2. If not set the username and password, the default value is “ctnet@mycdma.cn” and “vnet.mobi”.

 

 

Example

AT+CWUSRINFO=?

+CWUSRINFO: (1-127),(1-127)

OK

AT+CWUSRINFO?

+CWUSRINFO: “ctnet@mycdma.cn“,”vnet.mobi”

OK

AT+CWUSRINFO=”username”,”pwd”

OK

 

 

 

 

 

 

 

Adsense

 

 WiFi IoT Module

 

www.mxchip.com

 

 

 Bluetooth Module

www.feasycom.com

 

 

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

 

www.simcom.com

 

Viewed Page List