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
smartconfig不成功
-
- Posts: 786
- Joined: Wed Nov 14, 2018 8:45 am
Re: smartconfig不成功
哪个版本的 idf?你先基于 examples/wifi/smart_config 示例跑通再说。esp_smartconfig_internal_start 在库里,未开放代码。
Re: smartconfig不成功
4.3的版本, examples/wifi/smart_config 例程刚试过,一样的问题,是不是sdkconfig里要打开什么配置ESP_Gargamel wrote: ↑Mon Aug 02, 2021 8:47 am哪个版本的 idf?你先基于 examples/wifi/smart_config 示例跑通再说。esp_smartconfig_internal_start 在库里,未开放代码。
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.
Re: smartconfig不成功
另外问一个问题,eclipse下的烧写速度怎么设置?默认的有点慢ESP_Gargamel wrote: ↑Mon Aug 02, 2021 8:47 am哪个版本的 idf?你先基于 examples/wifi/smart_config 示例跑通再说。esp_smartconfig_internal_start 在库里,未开放代码。
-
- Posts: 786
- Joined: Wed Nov 14, 2018 8:45 am
Re: smartconfig不成功
你用手机 APP 了么?没看到配网的 log。
Re: smartconfig不成功
程序一运行就直接扫描结束,app都没来得及打开。每次都这样
-
- Posts: 786
- Joined: Wed Nov 14, 2018 8:45 am
Re: smartconfig不成功
这个本来起来就会默认扫描,记录下周围环境的路由。你可以继续用手机配网。
-
- Posts: 4
- Joined: Wed Mar 15, 2023 6:35 am
Re: smartconfig不成功
虽然过去很久了,但还是想问解决了吗,因为我也遇到了同样的问题。。。。
Re: smartconfig不成功
请提供 idf 版本,芯片,用的什么示例,log 等基础信息。
Who is online
Users browsing this forum: No registered users and 109 guests