2024-Cam-D200 AT固件 初探

[复制链接]
查看1298 | 回复3 | 2024-9-27 21:10:39 | 显示全部楼层 |阅读模式
1.连接wifi
  1. AT+WJAP=SSID,PASSWORD
复制代码
  1. 例如
  2. AT+WJAP=test,123456789


  3. ---- 已发送 utf8 编码消息: "AT+WJAP=test,123456789\r\n" ----
  4. test
  5. 123456789length:9
  6. wifi_mgmr_sta_connect: ssid:<test>/<4> key:<123456789>/<9> akm:<>/<0> 0-0-0-1
  7. start connecting ...
  8. wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### DISCONNECTED -> INACTIVE
  9. wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### INACTIVE -> DISCONNECTED
  10. OK
  11. Exec key_mgmt WPA-PSK WPA-PSK-SHA256 SAE
  12. Exec pairwise TKIP CCMP GCMP GCMP-256 CCMP-256
  13. Exec group TKIP CCMP GCMP GCMP-256 CCMP-256
  14. Exec ieee80211w 0
  15. Exec scan_ssid 1
  16. Exec bl_flags 0
  17. Exec ssid "test"
  18. Exec psk "123456789"
  19. WPA network 0: created and configuredwpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### DISCONNECTED -> SCANNING
  20. Starting AP scan for specific SSID: test, ssid_len:4, BSSID: 00:00:00:00:00:00
  21. �[WPA] CTRL-EVENT-BSS-ADDED 0 76:04:2B:1D:8D:C7
  22. �[WPA] CTRL-EVENT-SCAN-RESULTS
  23. �[WPA] Trying to associate with 76:04:2B:1D:8D:C7 (SSID='test' freq=2462 MHz)
  24. wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### SCANNING -> ASSOCIATING
  25. === sm_connect_req_handler sm_env.auth_retry_gap = 0
  26. --- OPT rxu_mgmt_ind is detected
  27. rc_init: station_id=0 format_mod=2 pre_type=0 short_gi=1 max_bw=0
  28. rc_init: nss_max=0 mcs_max=7 r_idx_min=0 r_idx_max=3 no_samples=10
  29. [FU]Set timer,state is 5,ongoing++
  30. [FU]Tx cfm ongoing--, value is 0
  31. [FL]RECV AUTH,sn:341
  32. [FU]RECV AUTH,sn:341
  33. [FU]Rx handler,state:5,fctl:0xb0
  34. [FU]Clear timer in auth handler
  35. [FU]Set timer,state is 8,ongoing++
  36. [FU]Tx cfm ongoing--, value is 0
  37. [FL]RECV ASSOCRSP,sn:342
  38. [FU]RECV ASSOCRSP,sn:342
  39. [FU]Rx handler,state:8,fctl:0x10
  40. [FU]Clear timer in assoc rsp handler
  41. === sm_connect_ind sm_env.auth_retry_gap = 0
  42. wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### ASSOCIATING -> ASSOCIATED
  43. �[WPA] Associated with 76:04:2B:1D:8D:C7
  44. �[WPA] CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
  45. wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### ASSOCIATED -> 4WAY_HANDSHAKE
  46. wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### 4WAY_HANDSHAKE -> GROUP_HANDSHAKE
  47. �[WPA] WPA: Key negotiation completed with 76:04:2B:1D:8D:C7 [PTK=CCMP GTK=CCMP]
  48. �[WPA] CTRL-EVENT-CONNECTED - Connection to 76:04:2B:1D:8D:C7 completed [id=0 id_str=]
  49. 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=]
  50. ===========================================================================================================================================

  51. [AT][RX] Connection Status
  52. [AT][RX]   status_code 0
  53. [AT][RX]   reason_code 0
  54. [AT][RX]   status detail: sm connect ind ok
  55. [AT][RX]   MAC 76:04:2B:1D:8D:C7
  56. [AT][RX]   vif_idx 1
  57. [AT][RX]   ap_idx 0
  58. [AT][RX]   ch_idx 0
  59. [AT][RX]   qos 1
  60. [AT][RX]   aid 1
  61. [AT][RX]   band 2.4G
  62. [AT][RX]   channel 11
  63. =====================

  64. start dhcping ...
  65. wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### GROUP_HANDSHAKE -> COMPLETED
  66. IP:192.168.43.203
  67. MASK: 255.255.255.0
  68. Gateway: 192.168.43.1
  69. {FVIF-0} ip=I4 gw=I4bl618_wifi_got_ip_process
  70. [0] wl1: MAC=b4:0e:cf:3a:49:df ip=192.168.43.203/24 UP,CONNECTED
  71. accept start
复制代码
2.查询ip
  1. AT+WJAP?
复制代码
  1. ---- 已发送 utf8 编码消息: "AT+WJAP?\r\n" ----
  2. 192.168.43.203
  3. OK
复制代码
3.错误示范,带引号的参数 也无法连接 报错,wifi认证 未通过
  1. AT+WJAP=test,"123456789"
复制代码
  1. ---- 已发送 utf8 编码消息: "AT+WJAP=test,"123456789"\r\n" ----
  2. test
  3. "123456789"length:11
  4. wifi_mgmr_sta_connect: ssid:<test>/<4> key:<"123456789">/<11> akm:<>/<0> 0-0-0-1
  5. start connecting ...
  6. wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### DISCONNECTED -> INACTIVE
  7. wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### INACTIVE -> DISCONNECTED
  8. OK
  9. Exec key_mgmt WPA-PSK WPA-PSK-SHA256 SAE
  10. Exec pairwise TKIP CCMP GCMP GCMP-256 CCMP-256
  11. Exec group TKIP CCMP GCMP GCMP-256 CCMP-256
  12. Exec ieee80211w 0
  13. Exec scan_ssid 1
  14. Exec bl_flags 0
  15. Exec ssid "test"
  16. Exec psk ""123456789""
  17. WPA network 0: created and configuredwpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### DISCONNECTED -> SCANNING
  18. Starting AP scan for specific SSID: test, ssid_len:4, BSSID: 00:00:00:00:00:00
  19. �[WPA] CTRL-EVENT-BSS-ADDED 0 76:04:2B:1D:8D:C7
  20. �[WPA] CTRL-EVENT-SCAN-RESULTS
  21. �[WPA] Trying to associate with 76:04:2B:1D:8D:C7 (SSID='test' freq=2462 MHz)
  22. wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### SCANNING -> ASSOCIATING
  23. === sm_connect_req_handler sm_env.auth_retry_gap = 0
  24. --- OPT rxu_mgmt_ind is detected
  25. rc_init: station_id=0 format_mod=2 pre_type=0 short_gi=1 max_bw=0
  26. rc_init: nss_max=0 mcs_max=7 r_idx_min=0 r_idx_max=3 no_samples=10
  27. [FU]Set timer,state is 5,ongoing++
  28. [FU]Tx cfm ongoing--, value is 0
  29. [FL]RECV AUTH,sn:675
  30. [FU]RECV AUTH,sn:675
  31. [FU]Rx handler,state:5,fctl:0xb0
  32. [FU]Clear timer in auth handler
  33. [FU]Set timer,state is 8,ongoing++
  34. [FU]Tx cfm ongoing--, value is 0
  35. [FL]RECV ASSOCRSP,sn:676
  36. [FU]RECV ASSOCRSP,sn:676
  37. [FU]Rx handler,state:8,fctl:0x10
  38. [FU]Clear timer in assoc rsp handler
  39. === sm_connect_ind sm_env.auth_retry_gap = 0
  40. wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### ASSOCIATING -> ASSOCIATED
  41. �[WPA] Associated with 76:04:2B:1D:8D:C7
  42. �[WPA] CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
  43. wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### ASSOCIATED -> 4WAY_HANDSHAKE
  44. [FU]Rx handler,state:0,fctl:0xc0
  45. ��==========================  Keyram Config ========================
  46. ��  start 08 -->> end 11; nVAP 02; max 31
  47. ==========================  Keyram Dump =========================
  48. [id]   MAC Address     Key Len  VLan ID  Default        Key Hexdump(16Bytes MAX)
  49. [00] FF:FF:FF:FF:FF:FF  64-Bit    00        0��     00000000 00000000 00000000 00000000
  50. [01] FF:FF:FF:FF:FF:FF  64-Bit    00        0��     00000000 00000000 00000000 00000000
  51. [02] FF:FF:FF:FF:FF:FF  64-Bit    00        0��     00000000 00000000 00000000 00000000
  52. [03] FF:FF:FF:FF:FF:FF  64-Bit    00        0��     00000000 00000000 00000000 00000000
  53. [04] FF:FF:FF:FF:FF:FF  64-Bit    00        0��     00000000 00000000 00000000 00000000
  54. [05] FF:FF:FF:FF:FF:FF  64-Bit    00        0��     00000000 00000000 00000000 00000000
  55. [06] FF:FF:FF:FF:FF:FF  64-Bit    00        0��     00000000 00000000 00000000 00000000
  56. [07] FF:FF:FF:FF:FF:FF  64-Bit    00        0��     00000000 00000000 00000000 00000000
  57. [08] 76:04:2B:1D:8D:C7  64-Bit    01        1��     00000000 00000000 00000000 00000000
  58. [09] FF:FF:FF:FF:FF:FF  64-Bit    00        0��     00000000 00000000 00000000 00000000
  59. [10] FF:FF:FF:FF:FF:FF  64-Bit    00        0��     00000000 00000000 00000000 00000000
  60. [11] FF:FF:FF:FF:FF:FF  64-Bit    00        0��     00000000 00000000 00000000 00000000
  61. ==========================  MAC Address =========================
  62.     MAC B4:0E:CF:3A:49:DF Mask 00:00:00:00:00:00
  63.   BSSID 76:04:2B:1D:8D:C7 Mask 00:00:00:00:00:00
  64. =================================================================
  65. [AT][RX] Connection Status
  66. [AT][RX]   status_code 7
  67. [AT][RX]   reason_code 1
  68. [AT][RX]   status detail: deauth by AP when connected
  69. [AT][RX]   vif_idx 1
  70. =================================================================
  71. bl618_wifi_got_ip_process
  72. �[WPA] CTRL-EVENT-DISCONNECTED bssid=76:04:2B:1D:8D:C7 reason=1
  73. �[WPA] WPA: 4-Way Handshake failed - pre-shared key may be incorrect
  74. �[WPA] CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="test" auth_failures=1 duration=10 reason=WRONG_KEY
  75. wpa_supplicant_ctrl_iface_msg_cb: cmd send succeded, txt is State### 4WAY_HANDSHAKE -> DISCONNECTED
复制代码
回复

使用道具 举报

爱笑 | 2024-9-29 08:30:49 | 显示全部楼层
不错不错,以后再有连接WiFi问题,直接看这个帖子。
用心做好保姆工作
回复 支持 反对

使用道具 举报

bzhou830 | 2024-9-29 08:37:27 | 显示全部楼层
细致
选择去发光,而不是被照亮
回复

使用道具 举报

ssgy1312 | 2024-10-9 19:29:47 | 显示全部楼层
AT固件在哪?怎么在资料那里没有找到
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则