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 等基础信息。

Who is online

Users browsing this forum: No registered users and 23 guests