1.连接wifi- 例如
- AT+WJAP=test,123456789
- ---- 已发送 utf8 编码消息: "AT+WJAP=test,123456789\r\n" ----
- test
- 123456789length:9
- wifi_mgmr_sta_connect: ssid:<test>/<4> key:<123456789>/<9> akm:<>/<0> 0-0-0-1
- start connecting ...
- wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### DISCONNECTED -> INACTIVE
- wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### INACTIVE -> DISCONNECTED
- OK
- Exec key_mgmt WPA-PSK WPA-PSK-SHA256 SAE
- Exec pairwise TKIP CCMP GCMP GCMP-256 CCMP-256
- Exec group TKIP CCMP GCMP GCMP-256 CCMP-256
- Exec ieee80211w 0
- Exec scan_ssid 1
- Exec bl_flags 0
- Exec ssid "test"
- Exec psk "123456789"
- WPA network 0: created and configuredwpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### DISCONNECTED -> SCANNING
- Starting AP scan for specific SSID: test, ssid_len:4, BSSID: 00:00:00:00:00:00
- �[WPA] CTRL-EVENT-BSS-ADDED 0 76:04:2B:1D:8D:C7
- �[WPA] CTRL-EVENT-SCAN-RESULTS
- �[WPA] Trying to associate with 76:04:2B:1D:8D:C7 (SSID='test' freq=2462 MHz)
- wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### SCANNING -> ASSOCIATING
- === sm_connect_req_handler sm_env.auth_retry_gap = 0
- --- OPT rxu_mgmt_ind is detected
- rc_init: station_id=0 format_mod=2 pre_type=0 short_gi=1 max_bw=0
- rc_init: nss_max=0 mcs_max=7 r_idx_min=0 r_idx_max=3 no_samples=10
- [FU]Set timer,state is 5,ongoing++
- [FU]Tx cfm ongoing--, value is 0
- [FL]RECV AUTH,sn:341
- [FU]RECV AUTH,sn:341
- [FU]Rx handler,state:5,fctl:0xb0
- [FU]Clear timer in auth handler
- [FU]Set timer,state is 8,ongoing++
- [FU]Tx cfm ongoing--, value is 0
- [FL]RECV ASSOCRSP,sn:342
- [FU]RECV ASSOCRSP,sn:342
- [FU]Rx handler,state:8,fctl:0x10
- [FU]Clear timer in assoc rsp handler
- === sm_connect_ind sm_env.auth_retry_gap = 0
- wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### ASSOCIATING -> ASSOCIATED
- �[WPA] Associated with 76:04:2B:1D:8D:C7
- �[WPA] CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
- wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### ASSOCIATED -> 4WAY_HANDSHAKE
- wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### 4WAY_HANDSHAKE -> GROUP_HANDSHAKE
- �[WPA] WPA: Key negotiation completed with 76:04:2B:1D:8D:C7 [PTK=CCMP GTK=CCMP]
- �[WPA] CTRL-EVENT-CONNECTED - Connection to 76:04:2B:1D:8D:C7 completed [id=0 id_str=]
- wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is CTRL-EVENT-CONNECTED - Connection to 76:04:2B:1D:8D:C7 completed [id=0 id_str=]
- ===========================================================================================================================================
- [AT][RX] Connection Status
- [AT][RX] status_code 0
- [AT][RX] reason_code 0
- [AT][RX] status detail: sm connect ind ok
- [AT][RX] MAC 76:04:2B:1D:8D:C7
- [AT][RX] vif_idx 1
- [AT][RX] ap_idx 0
- [AT][RX] ch_idx 0
- [AT][RX] qos 1
- [AT][RX] aid 1
- [AT][RX] band 2.4G
- [AT][RX] channel 11
- =====================
- start dhcping ...
- wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### GROUP_HANDSHAKE -> COMPLETED
- IP:192.168.43.203
- MASK: 255.255.255.0
- Gateway: 192.168.43.1
- {FVIF-0} ip=I4 gw=I4bl618_wifi_got_ip_process
- [0] wl1: MAC=b4:0e:cf:3a:49:df ip=192.168.43.203/24 UP,CONNECTED
- accept start
复制代码 2.查询ip- ---- 已发送 utf8 编码消息: "AT+WJAP?\r\n" ----
- 192.168.43.203
- OK
复制代码 3.错误示范,带引号的参数 也无法连接 报错,wifi认证 未通过
- ---- 已发送 utf8 编码消息: "AT+WJAP=test,"123456789"\r\n" ----
- test
- "123456789"length:11
- wifi_mgmr_sta_connect: ssid:<test>/<4> key:<"123456789">/<11> akm:<>/<0> 0-0-0-1
- start connecting ...
- wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### DISCONNECTED -> INACTIVE
- wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### INACTIVE -> DISCONNECTED
- OK
- Exec key_mgmt WPA-PSK WPA-PSK-SHA256 SAE
- Exec pairwise TKIP CCMP GCMP GCMP-256 CCMP-256
- Exec group TKIP CCMP GCMP GCMP-256 CCMP-256
- Exec ieee80211w 0
- Exec scan_ssid 1
- Exec bl_flags 0
- Exec ssid "test"
- Exec psk ""123456789""
- WPA network 0: created and configuredwpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### DISCONNECTED -> SCANNING
- Starting AP scan for specific SSID: test, ssid_len:4, BSSID: 00:00:00:00:00:00
- �[WPA] CTRL-EVENT-BSS-ADDED 0 76:04:2B:1D:8D:C7
- �[WPA] CTRL-EVENT-SCAN-RESULTS
- �[WPA] Trying to associate with 76:04:2B:1D:8D:C7 (SSID='test' freq=2462 MHz)
- wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### SCANNING -> ASSOCIATING
- === sm_connect_req_handler sm_env.auth_retry_gap = 0
- --- OPT rxu_mgmt_ind is detected
- rc_init: station_id=0 format_mod=2 pre_type=0 short_gi=1 max_bw=0
- rc_init: nss_max=0 mcs_max=7 r_idx_min=0 r_idx_max=3 no_samples=10
- [FU]Set timer,state is 5,ongoing++
- [FU]Tx cfm ongoing--, value is 0
- [FL]RECV AUTH,sn:675
- [FU]RECV AUTH,sn:675
- [FU]Rx handler,state:5,fctl:0xb0
- [FU]Clear timer in auth handler
- [FU]Set timer,state is 8,ongoing++
- [FU]Tx cfm ongoing--, value is 0
- [FL]RECV ASSOCRSP,sn:676
- [FU]RECV ASSOCRSP,sn:676
- [FU]Rx handler,state:8,fctl:0x10
- [FU]Clear timer in assoc rsp handler
- === sm_connect_ind sm_env.auth_retry_gap = 0
- wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### ASSOCIATING -> ASSOCIATED
- �[WPA] Associated with 76:04:2B:1D:8D:C7
- �[WPA] CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
- wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### ASSOCIATED -> 4WAY_HANDSHAKE
- [FU]Rx handler,state:0,fctl:0xc0
- ��========================== Keyram Config ========================
- �� start 08 -->> end 11; nVAP 02; max 31
- ========================== Keyram Dump =========================
- [id] MAC Address Key Len VLan ID Default Key Hexdump(16Bytes MAX)
- [00] FF:FF:FF:FF:FF:FF 64-Bit 00 0�� 00000000 00000000 00000000 00000000
- [01] FF:FF:FF:FF:FF:FF 64-Bit 00 0�� 00000000 00000000 00000000 00000000
- [02] FF:FF:FF:FF:FF:FF 64-Bit 00 0�� 00000000 00000000 00000000 00000000
- [03] FF:FF:FF:FF:FF:FF 64-Bit 00 0�� 00000000 00000000 00000000 00000000
- [04] FF:FF:FF:FF:FF:FF 64-Bit 00 0�� 00000000 00000000 00000000 00000000
- [05] FF:FF:FF:FF:FF:FF 64-Bit 00 0�� 00000000 00000000 00000000 00000000
- [06] FF:FF:FF:FF:FF:FF 64-Bit 00 0�� 00000000 00000000 00000000 00000000
- [07] FF:FF:FF:FF:FF:FF 64-Bit 00 0�� 00000000 00000000 00000000 00000000
- [08] 76:04:2B:1D:8D:C7 64-Bit 01 1�� 00000000 00000000 00000000 00000000
- [09] FF:FF:FF:FF:FF:FF 64-Bit 00 0�� 00000000 00000000 00000000 00000000
- [10] FF:FF:FF:FF:FF:FF 64-Bit 00 0�� 00000000 00000000 00000000 00000000
- [11] FF:FF:FF:FF:FF:FF 64-Bit 00 0�� 00000000 00000000 00000000 00000000
- ========================== MAC Address =========================
- MAC B4:0E:CF:3A:49:DF Mask 00:00:00:00:00:00
- BSSID 76:04:2B:1D:8D:C7 Mask 00:00:00:00:00:00
- =================================================================
- [AT][RX] Connection Status
- [AT][RX] status_code 7
- [AT][RX] reason_code 1
- [AT][RX] status detail: deauth by AP when connected
- [AT][RX] vif_idx 1
- =================================================================
- bl618_wifi_got_ip_process
- �[WPA] CTRL-EVENT-DISCONNECTED bssid=76:04:2B:1D:8D:C7 reason=1
- �[WPA] WPA: 4-Way Handshake failed - pre-shared key may be incorrect
- �[WPA] CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="test" auth_failures=1 duration=10 reason=WRONG_KEY
- wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### 4WAY_HANDSHAKE -> DISCONNECTED
复制代码 |