smartconfig不成功

DJZ1992
Posts: 72
Joined: Fri Jul 09, 2021 9:15 am

smartconfig不成功

Postby DJZ1992 » Mon Aug 02, 2021 6:02 am

smartconfig,按照例程,每次刚开始扫描,就结束了,不知道为什么。
深入源码去看,有些源代码的api具体内部是怎么运行的,还找不到。比如:esp_smartconfig_internal_start
报错如下:

I (2977) smartconfig: SC version: V3.0.1
I (7067) wifi:ic_enable_sniffer
I (7067) smartconfig: Start to find channel...
D (7067) event: running post SC_EVENT:0 with handler 0x400dab6c and context 0x3f
fdcef0 on loop 0x3ffc805c
0x400dab6c: event_handler at D:\ESP\esp-idf\examples\user\Ai-Thinker-Open_ESP32-
CAMERA_LAN\build/../main/app_smart_wifi.c:43

I (7067) app_smart_wifi: Scan done

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: smartconfig不成功

Postby ESP_Gargamel » Mon Aug 02, 2021 8:47 am

哪个版本的 idf?你先基于 examples/wifi/smart_config 示例跑通再说。esp_smartconfig_internal_start 在库里,未开放代码。

DJZ1992
Posts: 72
Joined: Fri Jul 09, 2021 9:15 am

Re: smartconfig不成功

Postby DJZ1992 » Mon Aug 02, 2021 11:47 am

ESP_Gargamel wrote:
Mon Aug 02, 2021 8:47 am
哪个版本的 idf?你先基于 examples/wifi/smart_config 示例跑通再说。esp_smartconfig_internal_start 在库里,未开放代码。
4.3的版本, examples/wifi/smart_config 例程刚试过,一样的问题,是不是sdkconfig里要打开什么配置
I (462) wifi_init: WiFi IRAM OP enabled
I (462) wifi_init: WiFi RX IRAM OP enabled
I (472) phy_init: phy_version 1800,e7ef680,Apr 13 2021,11:45:08
I (602) wifi:mode : sta (7c:df:a1:41:06:38)
I (602) wifi:enable tsf
I (662) smartconfig: SC version: V3.0.1
I (4762) wifi:ic_enable_sniffer
I (4762) smartconfig: Start to find channel...
I (4762) smartconfig_example: Scan done
Last edited by DJZ1992 on Mon Aug 02, 2021 12:07 pm, edited 1 time in total.

DJZ1992
Posts: 72
Joined: Fri Jul 09, 2021 9:15 am

Re: smartconfig不成功

Postby DJZ1992 » Mon Aug 02, 2021 12:05 pm

ESP_Gargamel wrote:
Mon Aug 02, 2021 8:47 am
哪个版本的 idf?你先基于 examples/wifi/smart_config 示例跑通再说。esp_smartconfig_internal_start 在库里,未开放代码。
另外问一个问题,eclipse下的烧写速度怎么设置?默认的有点慢

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: smartconfig不成功

Postby ESP_Gargamel » Tue Aug 03, 2021 3:41 am

你用手机 APP 了么?没看到配网的 log。

DJZ1992
Posts: 72
Joined: Fri Jul 09, 2021 9:15 am

Re: smartconfig不成功

Postby DJZ1992 » Mon Aug 09, 2021 5:57 am

ESP_Gargamel wrote:
Tue Aug 03, 2021 3:41 am
你用手机 APP 了么?没看到配网的 log。
程序一运行就直接扫描结束,app都没来得及打开。每次都这样

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: smartconfig不成功

Postby ESP_Gargamel » Mon Aug 09, 2021 10:21 am

这个本来起来就会默认扫描,记录下周围环境的路由。你可以继续用手机配网。

chenxinyuan
Posts: 4
Joined: Wed Mar 15, 2023 6:35 am

Re: smartconfig不成功

Postby chenxinyuan » Fri Apr 28, 2023 9:14 am

虽然过去很久了,但还是想问解决了吗,因为我也遇到了同样的问题。。。。

ESP_Eavo
Posts: 186
Joined: Tue Jun 08, 2021 6:23 am

Re: smartconfig不成功

Postby ESP_Eavo » Tue May 09, 2023 9:00 am

chenxinyuan wrote:
Fri Apr 28, 2023 9:14 am
虽然过去很久了,但还是想问解决了吗,因为我也遇到了同样的问题。。。。
请提供 idf 版本,芯片,用的什么示例,log 等基础信息。

wanglong126
Posts: 3
Joined: Tue Mar 05, 2024 7:52 am

Re: smartconfig不成功

Postby wanglong126 » Fri Jul 05, 2024 2:45 am

ESP_Eavo wrote:
Tue May 09, 2023 9:00 am
chenxinyuan wrote:
Fri Apr 28, 2023 9:14 am
虽然过去很久了,但还是想问解决了吗,因为我也遇到了同样的问题。。。。
请提供 idf 版本,芯片,用的什么示例,log 等基础信息。
这是我的日志信息,使用的esp32c3,wifi smartconfig示例,完全没有改动,配网始终失败

I (24) boot: ESP-IDF v5.4-dev-610-g003f3bb5dc 2nd stage bootloader
I (24) boot: compile time Jul 5 2024 10:41:02
I (25) boot: chip revision: v0.4
I (29) boot.esp32c3: SPI Speed : 80MHz
I (34) boot.esp32c3: SPI Mode : DIO
I (38) boot.esp32c3: SPI Flash Size : 4MB
I (43) boot: Enabling RNG early entropy source...
I (49) boot: Partition Table:
I (52) boot: ## Label Usage Type ST Offset Length
I (59) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (67) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (74) boot: 2 factory factory app 00 00 00010000 00100000
I (82) boot: End of partition table
I (86) esp_image: segment 0: paddr=00010020 vaddr=3c0a0020 size=20edch (134876) map
I (116) esp_image: segment 1: paddr=00030f04 vaddr=3fc92a00 size=02d00h ( 11520) load
I (118) esp_image: segment 2: paddr=00033c0c vaddr=40380000 size=0c40ch ( 50188) load
I (131) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=9b540h (636224) map
I (233) esp_image: segment 4: paddr=000db568 vaddr=4038c40c size=064d0h ( 25808) load
I (244) boot: Loaded app from partition at offset 0x10000
I (244) boot: Disabling RNG early entropy source...
W (244) boot: after mapping text, starting from paddr=0x00040000 and vaddr=0x42000000, 0xa0000 bytes are mapped
I (266) cpu_start: Unicore app
I (275) cpu_start: Pro cpu start user code
I (275) cpu_start: cpu freq: 160000000 Hz
I (275) app_init: Application information:
I (278) app_init: Project name: LDG_TCP_Server2
I (283) app_init: App version: 1
I (288) app_init: Compile time: Jul 5 2024 10:40:43
I (294) app_init: ELF file SHA256: 972ab38d4...
I (299) app_init: ESP-IDF: v5.4-dev-610-g003f3bb5dc
I (305) efuse_init: Min chip rev: v0.3
I (310) efuse_init: Max chip rev: v1.99
I (315) efuse_init: Chip rev: v0.4
I (320) heap_init: Initializing. RAM available for dynamic allocation:
I (327) heap_init: At 3FC99B10 len 000264F0 (153 KiB): RAM
I (333) heap_init: At 3FCC0000 len 0001C710 (113 KiB): Retention RAM
I (340) heap_init: At 3FCDC710 len 00002950 (10 KiB): Retention RAM
I (347) heap_init: At 50000200 len 00001DE8 (7 KiB): RTCRAM
I (354) spi_flash: detected chip: gd
I (358) spi_flash: flash io: dio
I (362) sleep: Configure to isolate all GPIO pins in sleep state
I (368) sleep: Enable automatic switching of GPIO sleep configuration
I (376) main_task: Started on CPU0
I (376) main_task: Calling app_main()
I (386) pp: pp rom version: 9387209
I (386) net80211: net80211 rom version: 9387209
I (396) wifi:wifi driver task: 3fca2500, prio:23, stack:6656, core=0
I (396) wifi:wifi firmware version: f9a71af
I (396) wifi:wifi certification version: v7.0
I (406) wifi:config NVS flash: enabled
I (406) wifi:config nano formating: disabled
I (406) wifi:Init data frame dynamic rx buffer num: 32
I (416) wifi:Init static rx mgmt buffer num: 5
I (416) wifi:Init management short buffer num: 32
I (426) wifi:Init dynamic tx buffer num: 32
I (426) wifi:Init static tx FG buffer num: 2
I (436) wifi:Init static rx buffer size: 1600
I (436) wifi:Init static rx buffer num: 10
I (436) wifi:Init dynamic rx buffer num: 32
I (446) wifi_init: rx ba win: 6
I (446) wifi_init: accept mbox: 6
I (456) wifi_init: tcpip mbox: 32
I (456) wifi_init: udp mbox: 6
I (456) wifi_init: tcp mbox: 6
I (466) wifi_init: tcp tx win: 5760
I (466) wifi_init: tcp rx win: 5760
I (466) wifi_init: tcp mss: 1440
I (476) wifi_init: WiFi IRAM OP enabled
I (476) wifi_init: WiFi RX IRAM OP enabled
I (486) phy_init: phy_version 1170,f4aea9b,Apr 30 2024,10:49:24
I (526) wifi:mode : sta (9c:9e:6e:09:7a:9c)
I (526) wifi:enable tsf
I (536) main_task: Returned from app_main()
I (586) smartconfig: SC version: V3.0.1
I (5406) wifi:ic_enable_sniffer
I (5406) smartconfig: Start to find channel...
I (5406) smartconfig_example: Scan done
I (10936) smartconfig: TYPE: ESPTOUCH
I (10936) smartconfig: T|AP MAC: 50:98:b8:72:07:ac
I (10936) smartconfig: Found channel on 1-1. Start to get ssid and password...
I (10936) smartconfig_example: Found channel
I (61936) wifi:ic_disable_sniffer
I (61936) smartconfig: smartconfig restart
I (61986) smartconfig: SC version: V3.0.1

Who is online

Users browsing this forum: No registered users and 37 guests