linkkitapp@esp32devkitc 异常log且无法连接阿里云 linkkitapp@esp32developerkit上正常运行
如题,上电后一直打印如下log,通过netmgr配网后不会有连接阿里云动作发生。请问是什么问题?
wifi_getset_ops 278: channe - 3
chan 3
wifi_getset_ops 278: channe - 6
chan 6
wifi_getset_ops 278: channe - 7
chan 7
wifi_getset_ops 278: channe - 11
chan 11
wifi_getset_ops 278: channe - 13
chan 13
wifi_getset_ops 278: channe - 1
chan 1
wifi_getset_ops 278: channe - 6
chan 6
wifi_getset_ops 278: channe - 11
chan 11
wifi_getset_ops 278: channe - 1
chan 1
wifi_getset_ops 278: channe - 2
chan 2
wifi_getset_ops 278: channe - 3
chan 3
wifi_getset_ops 278: channe - 4
chan 4
wifi_getset_ops 278: channe - 5
chan 5
wifi_getset_ops 278: channe - 6
chan 6
wifi_getset_ops 278: channe - 7
chan 7
看起来设备没有进入配网状态,cli中运行一下“active_awss”命令进入配网
运行 active_awss 得到 do_awss_active 1 然后netmgr配网 并没有连接阿里云动作,之前log依旧存在。
@leoadvance 还有更完整的日志吗,从启动开始,到命令执行之后的
`ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0010,len:4
load:0x3fff0014,len:5568
ho 0 tail 12 room 4
load:0x40078000,len:0
load:0x40078000,len:12484
entry 0x40078f74
W (72) rtc_clk: Possibly invalid CONFIG_ESP32_XTAL_FREQ setting (40MHz). Detected 40 MHz.
I (38) boot: ESP-IDF v3.0-dev-960-g6cc8099 2nd stage bootloader
I (38) boot: compile time 15:55:51
I (38) boot: Enabling RNG early entropy source...
I (44) boot: SPI Speed : 40MHz
I (49) boot: SPI Mode : DIO
I (53) boot: SPI Flash Size : 4MB
I (57) boot: Partition Table:
I (60) boot: ## Label Usage Type ST Offset Length
I (67) boot: 0 nvs WiFi data 01 02 00009000 00004000
I (75) boot: 1 otadata OTA data 01 00 0000d000 00002000
I (82) boot: 2 phy_init RF data 01 01 0000f000 00001000
I (90) boot: 3 factory factory app 00 00 00010000 00100000
I (97) boot: 4 ota_0 OTA app 00 10 00110000 00100000
I (105) boot: 5 ota_1 OTA app 00 11 00210000 00100000
I (112) boot: 6 parameter1 unknown 40 00 00310000 00001000
I (120) boot: 7 parameter2 unknown 40 00 00311000 00002000
I (127) boot: 8 parameter3 unknown 40 00 00313000 00001000
I (135) boot: 9 parameter4 unknown 40 00 00314000 00001000
I (143) boot: End of partition table
I (147) boot: Defaulting to factory image
I (152) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x18ef4 (102132) map
I (196) esp_image: segment 1: paddr=0x00028f1c vaddr=0x3ffb0000 size=0x02548 ( 9544) load
I (200) esp_image: segment 2: paddr=0x0002b46c vaddr=0x40080000 size=0x00400 ( 1024) load
I (203) esp_image: segment 3: paddr=0x0002b874 vaddr=0x40080400 size=0x0479c ( 18332) load
I (219) esp_image: segment 4: paddr=0x00030018 vaddr=0x400d0018 size=0x78120 (491808) map
I (391) esp_image: segment 5: paddr=0x000a8140 vaddr=0x40084b9c size=0x0f108 ( 61704) load
I (416) esp_image: segment 6: paddr=0x000b7250 vaddr=0x400c0000 size=0x00000 ( 0) load
I (428) boot: Loaded app from partition at offset 0x10000
I (428) boot: Disabling RNG early entropy source...
I (1319) cpu_start: Pro cpu up.
I (1330) cpu_start: Single core mode
I (1345) cpu_start: Pro cpu start user code
I (1399) cpu_start: Starting scheduler on PRO CPU.
wifi_init:346 0
I (1438) wifi: wifi firmware version: 803c265
I (1438) wifi: config NVS flash: enabled
I (1438) wifi: config nano formating: disabled
I (1438) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (1448) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (1468) wifi: Init dynamic tx buffer num: 32
I (1468) wifi: Init data frame dynamic rx buffer num: 32
I (1468) wifi: Init management frame dynamic rx buffer num: 32
I (1478) wifi: wifi driver task: 3fff1e98, prio:23, stack:4096
I (1478) wifi: Init static rx buffer num: 10
I (1488) wifi: Init dynamic rx buffer num: 32
I (1488) wifi: Init rx ampdu len mblock:7
I (1488) wifi: Init lldesc rx ampdu entry mblock:4
I (1498) wifi: wifi power manager task: 0x3fff7270 prio: 21 stack: 2560
trace config close!!!
[000070]
[000080]
[000080]
[000080]
[002220]
press
wifi_getset_ops 278: channe - 8
chan 8 wifi_getset_ops 278: channe - 9 chan 9 wifi_getset_ops 278: channe - 10 chan 10 wifi_getset_ops 278: channe - 11 chan 11 wifi_getset_ops 278: channe - 12 chan 12 wifi_getset_ops 278: channe - 13 chan 13 wifi_getset_ops 278: channe - 1 chan 1 wifi_getset_ops 278: channe - 2 chan 2 wifi_getset_ops 278: channe - 6 chan 6 wifi_getset_ops 278: channe - 7 chan 7 wifi_getset_ops 278: channe - 11 chan 11 active_awsswifi_getset_ops 278: channe - 13 chan 13 wifi_getset_ops 278: channe - 1 chan 1
[004930]
press
wifi_getset_ops 278: channe - 6
chan 6 wifi_getset_ops 278: channe - 11 chan 11 wifi_getset_ops 278: channe - 1 chan 1 wifi_getset_ops 278: channe - 2 chan 2 wifi_getset_ops 278: channe - 3 chan 3 wifi_getset_ops 278: channe - 4 chan 4 wifi_getset_ops 278: channe - 5 chan 5 wifi_getset_ops 278: channe - 6 chan 6 wifi_getset_ops 278: channe - 7 chan 7 wifi_getset_ops 278: channe - 8 chan 8 wifi_getset_ops 278: channe - 9 chan 9 wifi_getset_ops 278: channe - 10 chan 10 wifi_getset_ops 278: channe - 11 chan 11 wifi_getset_ops 278: channe - 12 chan 12 wifi_getset_ops 278: channe - 13 chan 13 wifi_getset_ops 278: channe - 1 chan 1 wifi_getset_ops 278: channe - 2 chan 2 `
@gofortime 看看这个问题呢
@leoadvance 有配网软件发配网包吗?从你的log看,没有收到任何配网包。
@gofortime 有用netmgr配网,能看到配网成功,但是依然有如上log,且不会连接“智能生活开发平台”。 而在developerkit上就能正常连接“智能生活开发平台”,你们是否有ESP32,直接跑下代码?
@leoadvance 你是通过netmgr connect联网?这个原来支持的,现在这个不支持了。你可以改一下代码来支持netmgr connect,具体修改可以参考附件的patch。

@gofortime 十分感谢,按照提示修改后问题解决了。问题是。1.为什么developerkit未修改前就正常。2.以后不用netmgr配网那用什么配网?
目前节点启动后,直接进入monitor模式,是应产品的需要。 后续我们会增加功能,输入netmgr后,会退出monitor模式,等待用户输入netmgr connect功能。