RT-Thread / W601_IoT_Board

IoT Board SDK with WinnerMicro W601
Apache License 2.0
57 stars 35 forks source link

使用基于w600的 TW-03模组 扫描不到ap #9

Closed xupenghu closed 4 years ago

xupenghu commented 4 years ago

先使用自带的AT固件,可以扫描到ap信息并连接,AT 固件log如下所示:

AT+CWLAP

+CWLAP:(4,"浜旀ゼ鏃犵嚎缃戠粶",-89,"24:69:68:ed:43:38",1) +CWLAP:(4,"www.ghtech.cn",-51,"c8:3a:35:74:51:20",2) +CWLAP:(4,"CMCC-QeZM",-59,"f8:48:fd:b1:c8:a8",2) +CWLAP:(3,"PDCN",-52,"74:7d:24:ea:45:be",6) +CWLAP:(0,"TP-LINK_F55C",-85,"50:bd:5f:73:f5:5c",6) +CWLAP:(4,"yitai123",-93,"c8:3a:35:6d:6b:28",10)

OK

AT+CWJAP="www.ghtech.cn","123wu123"

WIFI CONNECTED WIFI GOT IP

OK

然后下载此sdk的16_iot_wifi_manager例程,rtconfig.h中的宏已更改为w600 使用wifi scan命令 只扫描到一个ap, log如下:

CCCCCCC[SFUD]Warning: Read SFDP parameter header information failed. The norflash is not support JEDEC SFDP. [SFUD]Warning: This flash device is not found or not support. [SFUD]Warning: Read SFDP parameter header information failed. The norflash is not support JEDEC SFDP. [SFUD]Warning: This flash device is not found or not support. [SFUD]Error: norflash flash device is initialize fail. [I/FAL] RT-Thread Flash Abstraction Layer (V0.4.0) initialize success. [E/OTA] (ota_main:41) download partition is not exist, please check your configuration! [D/OTA] (ota_main:105) jump to APP! redirect_addr:8010100, stk_addr:20002468, len:851968

\ | /

[D/main] start to connect ap ... [E/WLAN.mgnt] F:rt_wlan_scan_with_info L:1802 scan wait timeout! [E/WLAN.mgnt] F:rt_wlan_scan_with_info L:1802 scan wait timeout! [W/WLAN.mgnt] F:rt_wlan_connect L:1091 not find ap! ssid:www.ghtech.cn [E/main] The AP(www.ghtech.cn) is connect failed! [D/main] ready to disconect from ap ... [E/WLAN.mgnt] F:rt_wlan_disconnect L:1250 disconnect failed! [D/main] start to autoconnect ...

msh /> msh /> msh />wifi scan SSID MAC security rssi chn Mbps


sysfwl d8:32:14:b4:ee:a0 WPA2_MIXED_PSK -91 1 300 五楼无线网络 24:69:68:ed:43:38 WPA2_MIXED_PSK -93 1 450 msh /> msh /> msh />wifi scan [E/WLAN.mgnt] F:rt_wlan_scan_with_info L:1802 scan wait timeout! SSID MAC security rssi chn Mbps


msh />wifi scan [E/WLAN.mgnt] F:rt_wlan_scan_with_info L:1802 scan wait timeout! SSID MAC security rssi chn Mbps


msh />wifi scan SSID MAC security rssi chn Mbps


sysfwl d8:32:14:b4:ee:a0 WPA2_MIXED_PSK -93 1 300 msh /> msh /> msh />

扫描到的这两个ap 信道都是1 而且有时候能扫到 有时候又没有

xupenghu commented 4 years ago

特地将路由器信道该为1 然后扫描 发现能扫到 而且连接正常 ping外网也能通 所以怀疑是只能扫描1信道的热点

thingsturn commented 4 years ago

您好,更换SDK前,请勾选下载前擦除,这个问题是因为AT兼容固件的WiFi参数结构体和RTT的WiFi参数结构体不一样导致的。后续出货的兼容版本已经修复这个问题。

xupenghu commented 4 years ago

好的 验证已🆗 谢谢支持