TW03模组使用rtthread的sdk时扫描不到wifi 热点

发布于 2019-10-09 15:57:34

用的是TW-03模组 使用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

使用rtthread的sdk 例程16时 调用wifi scan无法扫描到热点 log如下:

 \ | /
- RT -     Thread Operating System
 / | \     4.0.2 build Oct  9 2019
 2006 - 2019 Copyright by rt-thread team
lwIP-2.0.2 initialized!
ERROR: SPI device fl_spi not found!
[I/sal.skt] Socket Abstraction Layer initialize success.
[D/FAL] (fal_flash_init:61) Flash device |              w60x_onchip | addr: 0x08000000 | len: 0x00100000 | blk_size: 0x00001000 |initialized finish.
ERROR: Flash device w25q128 not found!
[D/FAL] (fal_flash_init:61) Flash device |                 norflash | addr: 0x00000000 | len: 0x00000000 | blk_size: 0x00000000 |initialized finish.
[D/FAL] (fal_partition_init:176) Find the partition table on 'w60x_onchip' offset @0x0000ff88.
[I/FAL] ==================== FAL partition table ====================
[I/FAL] | name       | flash_dev   |   offset   |    length  |
[I/FAL] -------------------------------------------------------------
[I/FAL] | app        | w60x_onchip | 0x00010100 | 0x000d0000 |
[I/FAL] | easyflash  | w60x_onchip | 0x000e0100 | 0x00004000 |
[I/FAL] | filesystem | w60x_onchip | 0x000e4100 | 0x00019000 |
[I/FAL] =============================================================
[I/FAL] RT-Thread Flash Abstraction Layer (V0.3.0) initialize success.
[Flash] (packages\EasyFlash-v3.3.0\src\ef_env.c:152) ENV start address is 0x00000000, size is 8192 bytes.
[Flash] (packages\EasyFlash-v3.3.0\src\ef_env.c:821) Calculate ENV CRC32 number is 0xD6114A34.
[Flash] (packages\EasyFlash-v3.3.0\src\ef_env.c:833) Verify ENV CRC32 result is OK.
[Flash] (packages\EasyFlash-v3.3.0\src\ef_env.c:821) Calculate ENV CRC32 number is 0x78CA81B2.
[Flash] (packages\EasyFlash-v3.3.0\src\ef_env.c:833) Verify ENV CRC32 result is OK.
[Flash] EasyFlash V3.3.0 is initialize success.
[Flash] You can get the latest version on https://github.com/armink/EasyFlash .
[I/WLAN.dev] wlan init success
[I/WLAN.lwip] eth device init ok name:w0
[D/main] start to scan ap ...
msh />[E/WLAN.mgnt] F:rt_wlan_scan_with_info L:1802 scan wait timeout!
[D/main] the scan is complete, results is as follows: 
             SSID                      MAC            security    rssi chn Mbps
------------------------------- -----------------  -------------- ---- --- ----

[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!
[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 ...

查看更多

关注者
0
被浏览
117
1 个回答
zailushang
zailushang 2019-10-09

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

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览