完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
描述:使用ESP-IDF4.4.1,4G模组使用EC600NCNLA-N05。编译成功,烧入成功,ppp成功并获取到了DNS,wifi-ap模式启用成功,并在手机上能搜索到该wifi热点。但连接该热点时,成功率非常低。
问题1:在使用手机连接该wifi热点时,模块发生重启。 I (15867) esp-netif_lwip-ppp: ConnectedI (15867) esp-netif_lwip-ppp: Name Server1: 211.136.17.107I (15871) esp-netif_lwip-ppp: Name Server2: 211.136.20.203I (15877) modem_board: IP event! 6I (15881) modem_board: Modem Connected to PPP ServerI (15887) modem_board: ppp ip: 10.169.211.89, mask: 255.255.255.255, gw: 10.64.64.64I (15895) modem_board: Main DNS: 211.136.17.107I (15900) modem_board: Backup DNS: 211.136.20.203W (15906) modem_board: PPP netif event = 266I (15911) main: ap dns addr(auto): 211.136.17.107I (15917) wifi:wifi driver task: 3ffe83e4, prio:23, stack:6656, core=0I (15922) system_api: Base MAC address is not setI (15928) system_api: read default base MAC address from EFUSEI (15936) wifi:wifi firmware version: 63017e0I (15938) wifi:wifi certification version: v7.0I (15942) wifi:config NVS flash: enabledI (15946) wifi:config nano formating: disabledI (15950) wifi:Init data frame dynamic rx buffer num: 32I (15955) wifi:Init management frame dynamic rx buffer num: 32I (15961) wifi:Init management short buffer num: 32I (15965) wifi:Init dynamic tx buffer num: 32I (15970) wifi:Init static rx buffer size: 1600I (15974) wifi:Init static rx buffer num: 10I (15978) wifi:Init dynamic rx buffer num: 32I (15982) wifi_init: tcpip mbox: 32I (15986) wifi_init: udp mbox: 6I (15990) wifi_init: tcp mbox: 6I (15994) wifi_init: tcp tx win: 5744I (15998) wifi_init: tcp rx win: 5744I (16002) wifi_init: tcp mss: 1440I (16007) wifi_init: WiFi IRAM OP enabledI (16011) wifi_init: WiFi RX IRAM OP enabledI (16016) wifi_init: LWIP IRAM OP enabledI (16021) phy_init: phy_version 2300,d67cf06,Feb 10 2022,10:03:07W (16028) phy_init: failed to load RF calibration data (0xffffffff), falling back to full calibrationI (16165) wifi:mode : softAP (7c:df:a1:4f:29:79)I (16166) wifi:Total power save buffer number: 16I (16167) wifi:Init max length of beacon: 752/752I (16167) phy: chan:1,max_power:78I (16171) phy: chan:2,max_power:78I (16175) phy: chan:3,max_power:78I (16179) phy: chan:4,max_power:78I (16183) phy: chan:5,max_power:78I (16187) phy: chan:6,max_power:78I (16191) phy: chan:7,max_power:78I (16196) phy: chan:8,max_power:78I (16200) phy: chan:9,max_power:78I (16204) phy: chan:10,max_power:78I (16208) phy: chan:11,max_power:78I (16212) phy: chan:12,max_power:78I (16216) phy: chan:13,max_power:78I (16220) phy: chan:14,max_power:78I (16225) wifi:Init max length of beacon: 752/752W (16230) modem_wifi: ESP WIFI STARTI (16236) wifi:Total power save buffer number: 16W (16238) modem_wifi: ESP WIFI STOPW (16243) modem_wifi: ESP WIFI STARTI (16246) modem_wifi: softap ssid: esp_4g_router password: 12345678I (16253) modem_wifi: NAT is enabledI (33231) wifi:new:<13,0>, old:<13,2>, ap:<13,2>, sta:<255,255>, prof:13I (33232) wifi:station: 58:20:59:7f:0a:a�ESP-ROM:esp32s2-rc4-20191025Build:Oct 25 2019rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)SPIWP:0xeemode:DIO, clock div:1load:0x3ffe6100,len:0x18c0load:0x4004c000,len:0xcd8load:0x40050000,len:0x2fb4entry 0x4004c22c 问题2:有时用手机连接成功之后,再使用一台手机连接,就会发生重启。 I (15738) esp-netif_lwip-ppp: ConnectedI (15739) esp-netif_lwip-ppp: Name Server1: 120.196.165.7I (15741) esp-netif_lwip-ppp: Name Server2: 221.179.38.7I (15747) modem_board: IP event! 6I (15751) modem_board: Modem Connected to PPP ServerI (15757) modem_board: ppp ip: 10.108.10.7, mask: 255.255.255.255, gw: 10.64.64.64I (15765) modem_board: Main DNS: 120.196.165.7I (15770) modem_board: Backup DNS: 221.179.38.7W (15776) modem_board: PPP netif event = 266I (15781) main: ap dns addr(auto): 120.196.165.7I (15787) wifi:wifi driver task: 3ffe8468, prio:23, stack:6656, core=0I (15792) system_api: Base MAC address is not setI (15797) system_api: read default base MAC address from EFUSEI (15806) wifi:wifi firmware version: 63017e0I (15808) wifi:wifi certification version: v7.0I (15812) wifi:config NVS flash: enabledI (15816) wifi:config nano formating: disabledI (15820) wifi:Init data frame dynamic rx buffer num: 32I (15825) wifi:Init management frame dynamic rx buffer num: 32I (15831) wifi:Init management short buffer num: 32I (15835) wifi:Init dynamic tx buffer num: 32I (15839) wifi:Init static rx buffer size: 1600I (15844) wifi:Init static rx buffer num: 10I (15848) wifi:Init dynamic rx buffer num: 32I (15852) wifi_init: tcpip mbox: 32I (15856) wifi_init: udp mbox: 6I (15860) wifi_init: tcp mbox: 6I (15864) wifi_init: tcp tx win: 5744I (15868) wifi_init: tcp rx win: 5744I (15872) wifi_init: tcp mss: 1440I (15876) wifi_init: WiFi IRAM OP enabledI (15881) wifi_init: WiFi RX IRAM OP enabledI (15886) wifi_init: LWIP IRAM OP enabledI (15891) phy_init: phy_version 2300,d67cf06,Feb 10 2022,10:03:07I (15931) wifi:mode : softAP (7c:df:a1:4f:29:79)I (15932) wifi:Total power save buffer number: 16I (15933) wifi:Init max length of beacon: 752/752I (15933) phy: chan:1,max_power:78I (15937) phy: chan:2,max_power:78I (15941) phy: chan:3,max_power:78I (15945) phy: chan:4,max_power:78I (15949) phy: chan:5,max_power:78I (15953) phy: chan:6,max_power:78I (15958) phy: chan:7,max_power:78I (15962) phy: chan:8,max_power:78I (15966) phy: chan:9,max_power:78I (15970) phy: chan:10,max_power:78I (15974) phy: chan:11,max_power:78I (15978) phy: chan:12,max_power:78I (15982) phy: chan:13,max_power:78I (15986) phy: chan:14,max_power:78I (15991) wifi:Init max length of beacon: 752/752W (15997) modem_wifi: ESP WIFI STARTI (16002) wifi:Total power save buffer number: 16W (16004) modem_wifi: ESP WIFI STOPW (16009) modem_wifi: ESP WIFI STARTI (16012) modem_wifi: softap ssid: esp_4g_router password: 12345678I (16019) modem_wifi: NAT is enabledI (31619) wifi:new:<13,2>, old:<13,2>, ap:<13,2>, sta:<255,255>, prof:13I (31619) wifi:station: 04:ea:56:76:4a:0d join, AID=1, bgn, 40DI (32633) modem_wifi: station 04:ea:56:76:4a:0d join, AID=1I (33247) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2I (33247) modem_board: IP event! 2I (65750) wifi:new:<13,2>, old:<13,2>, ap:<13,2>, sta:<255,255>, prof:13I (65750) wifi:station: 58:20:59:7f:0a:ad join, AID=2, bgn, 20I (65805) modem_wifi: station 58:20:59:7f:0a:ad join, AID=2I (66091) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.3I (66091) modem_board: IP event! 2assert failed: tlsf_free heap_tlsf.c:872 (!block_is_free(block) && "block already marked as free")Backtrace:0x40023b3e:0x3ffe82100x4002a1f5:0x3ffe8230 0x400336d2:0x3ffe8250 0x4002f40a:0x3ffe8370 0x4002fad0:0x3ffe8390 0x40023d41:0x3ffe83b0 0x40033721:0x3ffe83d0 0x400356ee:0x3ffe83f0 0x400c0d24:0x3ffe8410 0x40034dcd:0x3ffe8430 0x40023b3e: panic_abort at D:/Espressif/frameworks/esp-idf-v4.4.1/components/esp_system/panic.c:4020x4002a1f5: esp_system_abort at D:/Espressif/frameworks/esp-idf-v4.4.1/components/esp_system/esp_system.c:1280x400336d2: __assert_func at D:/Espressif/frameworks/esp-idf-v4.4.1/components/newlib/assert.c:850x4002f40a: tlsf_free at D:/Espressif/frameworks/esp-idf-v4.4.1/components/heap/heap_tlsf.c:872 (discriminator 1)0x4002fad0: multi_heap_free_impl at D:/Espressif/frameworks/esp-idf-v4.4.1/components/heap/multi_heap.c:220 (inlined by) multi_heap_free_impl at D:/Espressif/frameworks/esp-idf-v4.4.1/components/heap/multi_heap.c:2090x40023d41: heap_caps_free at D:/Espressif/frameworks/esp-idf-v4.4.1/components/heap/heap_caps.c:3400x40033721: free at D:/Espressif/frameworks/esp-idf-v4.4.1/components/newlib/heap.c:390x400356ee: esf_buf_recycle at ??:?0x400c0d24: ppProcTxDone at ??:?0x40034dcd: ppTask at ??:?ELF file SHA256: 2f52d92c93eb204aRebooting...ESP-ROM:esp32s2-rc4-20191025Build:Oct 25 2019rst:0x3 (RTC_SW_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)Saved PC:0x400237090x40023709: esp_restart_noos_dig at D:/Espressif/frameworks/esp-idf-v4.4.1/components/esp_system/esp_system.c:44 (discriminator 1)SPIWP:0xeemode:DIO, clock div:1load:0x3ffe6100,len:0x18c0load:0x4004c000,len:0xcd8load:0x40050000,len:0x2fb4entry 0x4004c22c |
|
相关推荐
1个回答
|
|
以下是一些建议来解决这个问题:
1. **检查电源稳定性**:确保模块的电源供应稳定,因为不稳定的电源可能会导致模块重启。 2. **检查固件版本**:确保您使用的是最新的固件版本,因为旧版本可能存在已知的问题。您可以在ESP-IDF的GitHub仓库中找到最新的固件。 3. **检查代码逻辑**:检查您的代码逻辑,确保在连接Wi-Fi热点时没有错误或异常操作。例如,确保在连接过程中没有调用任何可能导致模块重启的函数。 4. **检查Wi-Fi热点配置**:检查您的Wi-Fi热点配置,确保没有错误或不兼容的设置。例如,检查SSID、密码和加密方式是否正确。 5. **增加日志输出**:在代码中增加更多的日志输出,以便更好地了解模块在重启之前的状态。这可以帮助您找到问题的根本原因。 6. **减少模块负载**:尝试减少模块在连接Wi-Fi热点时的负载,例如减少同时运行的任务数量或降低任务优先级。 7. **检查硬件连接**:检查模块与其他硬件组件之间的连接,确保没有接触不良或损坏的连接。 8. **尝试其他设备**:尝试使用不同的手机或其他设备连接Wi-Fi热点,以确定问题是否与特定设备有关。 |
|
|
|
只有小组成员才能发言,加入小组>>
1106 浏览 1 评论
574浏览 6评论
477浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
460浏览 5评论
461浏览 4评论
435浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-18 12:20 , Processed in 0.732953 second(s), Total 50, Slave 43 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号