usb_cdc_4g_module工程存在问题,在使用手机连接wifi时,会发生重启。!!!!

Moderator: ESP_Bob

linshc
Posts: 59
Joined: Mon Feb 21, 2022 2:06 am

usb_cdc_4g_module工程存在问题,在使用手机连接wifi时,会发生重启。!!!!

Postby linshc » Wed May 11, 2022 2:33 pm

描述:使用ESP-IDF4.4.1,4G模组使用EC600NCNLA-N05。编译成功,烧入成功,ppp成功并获取到了DNS,wifi-ap模式启用成功,并在手机上能搜索到该wifi热点。但连接该热点时,成功率非常低。
问题1:在使用手机连接该wifi热点时,模块发生重启。

Code: Select all

I (15867) esp-netif_lwip-ppp: Connected
I (15867) esp-netif_lwip-ppp: Name Server1: 211.136.17.107
I (15871) esp-netif_lwip-ppp: Name Server2: 211.136.20.203
I (15877) modem_board: IP event! 6
I (15881) modem_board: Modem Connected to PPP Server
I (15887) modem_board: ppp ip: 10.169.211.89, mask: 255.255.255.255, gw: 10.64.64.64
I (15895) modem_board: Main DNS: 211.136.17.107
I (15900) modem_board: Backup DNS: 211.136.20.203
W (15906) modem_board: PPP netif event = 266
I (15911) main: ap dns addr(auto): 211.136.17.107
I (15917) wifi:wifi driver task: 3ffe83e4, prio:23, stack:6656, core=0
I (15922) system_api: Base MAC address is not set
I (15928) system_api: read default base MAC address from EFUSE
I (15936) wifi:wifi firmware version: 63017e0
I (15938) wifi:wifi certification version: v7.0
I (15942) wifi:config NVS flash: enabled
I (15946) wifi:config nano formating: disabled
I (15950) wifi:Init data frame dynamic rx buffer num: 32
I (15955) wifi:Init management frame dynamic rx buffer num: 32
I (15961) wifi:Init management short buffer num: 32
I (15965) wifi:Init dynamic tx buffer num: 32
I (15970) wifi:Init static rx buffer size: 1600
I (15974) wifi:Init static rx buffer num: 10
I (15978) wifi:Init dynamic rx buffer num: 32
I (15982) wifi_init: tcpip mbox: 32
I (15986) wifi_init: udp mbox: 6
I (15990) wifi_init: tcp mbox: 6
I (15994) wifi_init: tcp tx win: 5744
I (15998) wifi_init: tcp rx win: 5744
I (16002) wifi_init: tcp mss: 1440
I (16007) wifi_init: WiFi IRAM OP enabled
I (16011) wifi_init: WiFi RX IRAM OP enabled
I (16016) wifi_init: LWIP IRAM OP enabled
I (16021) phy_init: phy_version 2300,d67cf06,Feb 10 2022,10:03:07
W (16028) phy_init: failed to load RF calibration data (0xffffffff), falling back to full calibration
I (16165) wifi:mode : softAP (7c:df:a1:4f:29:79)
I (16166) wifi:Total power save buffer number: 16
I (16167) wifi:Init max length of beacon: 752/752
I (16167) phy: chan:1,max_power:78
I (16171) phy: chan:2,max_power:78
I (16175) phy: chan:3,max_power:78
I (16179) phy: chan:4,max_power:78
I (16183) phy: chan:5,max_power:78
I (16187) phy: chan:6,max_power:78
I (16191) phy: chan:7,max_power:78
I (16196) phy: chan:8,max_power:78
I (16200) phy: chan:9,max_power:78
I (16204) phy: chan:10,max_power:78
I (16208) phy: chan:11,max_power:78
I (16212) phy: chan:12,max_power:78
I (16216) phy: chan:13,max_power:78
I (16220) phy: chan:14,max_power:78
I (16225) wifi:Init max length of beacon: 752/752
W (16230) modem_wifi: ESP WIFI START
I (16236) wifi:Total power save buffer number: 16
W (16238) modem_wifi: ESP WIFI STOP
W (16243) modem_wifi: ESP WIFI START
I (16246) modem_wifi: softap ssid: esp_4g_router password: 12345678
I (16253) modem_wifi: NAT is enabled
I (33231) wifi:new:<13,0>, old:<13,2>, ap:<13,2>, sta:<255,255>, prof:13
I (33232) wifi:station: 58:20:59:7f:0a:a�ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6100,len:0x18c0
load:0x4004c000,len:0xcd8
load:0x40050000,len:0x2fb4
entry 0x4004c22c
问题2:有时用手机连接成功之后,再使用一台手机连接,就会发生重启。

Code: Select all

I (15738) esp-netif_lwip-ppp: Connected
I (15739) esp-netif_lwip-ppp: Name Server1: 120.196.165.7
I (15741) esp-netif_lwip-ppp: Name Server2: 221.179.38.7
I (15747) modem_board: IP event! 6
I (15751) modem_board: Modem Connected to PPP Server
I (15757) modem_board: ppp ip: 10.108.10.7, mask: 255.255.255.255, gw: 10.64.64.64
I (15765) modem_board: Main DNS: 120.196.165.7
I (15770) modem_board: Backup DNS: 221.179.38.7
W (15776) modem_board: PPP netif event = 266
I (15781) main: ap dns addr(auto): 120.196.165.7
I (15787) wifi:wifi driver task: 3ffe8468, prio:23, stack:6656, core=0
I (15792) system_api: Base MAC address is not set
I (15797) system_api: read default base MAC address from EFUSE
I (15806) wifi:wifi firmware version: 63017e0
I (15808) wifi:wifi certification version: v7.0
I (15812) wifi:config NVS flash: enabled
I (15816) wifi:config nano formating: disabled
I (15820) wifi:Init data frame dynamic rx buffer num: 32
I (15825) wifi:Init management frame dynamic rx buffer num: 32
I (15831) wifi:Init management short buffer num: 32
I (15835) wifi:Init dynamic tx buffer num: 32
I (15839) wifi:Init static rx buffer size: 1600
I (15844) wifi:Init static rx buffer num: 10
I (15848) wifi:Init dynamic rx buffer num: 32
I (15852) wifi_init: tcpip mbox: 32
I (15856) wifi_init: udp mbox: 6
I (15860) wifi_init: tcp mbox: 6
I (15864) wifi_init: tcp tx win: 5744
I (15868) wifi_init: tcp rx win: 5744
I (15872) wifi_init: tcp mss: 1440
I (15876) wifi_init: WiFi IRAM OP enabled
I (15881) wifi_init: WiFi RX IRAM OP enabled
I (15886) wifi_init: LWIP IRAM OP enabled
I (15891) phy_init: phy_version 2300,d67cf06,Feb 10 2022,10:03:07
I (15931) wifi:mode : softAP (7c:df:a1:4f:29:79)
I (15932) wifi:Total power save buffer number: 16
I (15933) wifi:Init max length of beacon: 752/752
I (15933) phy: chan:1,max_power:78
I (15937) phy: chan:2,max_power:78
I (15941) phy: chan:3,max_power:78
I (15945) phy: chan:4,max_power:78
I (15949) phy: chan:5,max_power:78
I (15953) phy: chan:6,max_power:78
I (15958) phy: chan:7,max_power:78
I (15962) phy: chan:8,max_power:78
I (15966) phy: chan:9,max_power:78
I (15970) phy: chan:10,max_power:78
I (15974) phy: chan:11,max_power:78
I (15978) phy: chan:12,max_power:78
I (15982) phy: chan:13,max_power:78
I (15986) phy: chan:14,max_power:78
I (15991) wifi:Init max length of beacon: 752/752
W (15997) modem_wifi: ESP WIFI START
I (16002) wifi:Total power save buffer number: 16
W (16004) modem_wifi: ESP WIFI STOP
W (16009) modem_wifi: ESP WIFI START
I (16012) modem_wifi: softap ssid: esp_4g_router password: 12345678
I (16019) modem_wifi: NAT is enabled
I (31619) wifi:new:<13,2>, old:<13,2>, ap:<13,2>, sta:<255,255>, prof:13
I (31619) wifi:station: 04:ea:56:76:4a:0d join, AID=1, bgn, 40D
I (32633) modem_wifi: station 04:ea:56:76:4a:0d join, AID=1
I (33247) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2
I (33247) modem_board: IP event! 2
I (65750) wifi:new:<13,2>, old:<13,2>, ap:<13,2>, sta:<255,255>, prof:13
I (65750) wifi:station: 58:20:59:7f:0a:ad join, AID=2, bgn, 20
I (65805) modem_wifi: station 58:20:59:7f:0a:ad join, AID=2
I (66091) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.3
I (66091) modem_board: IP event! 2

assert 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:402

0x4002a1f5: esp_system_abort at D:/Espressif/frameworks/esp-idf-v4.4.1/components/esp_system/esp_system.c:128

0x400336d2: __assert_func at D:/Espressif/frameworks/esp-idf-v4.4.1/components/newlib/assert.c:85

0x4002f40a: 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:209

0x40023d41: heap_caps_free at D:/Espressif/frameworks/esp-idf-v4.4.1/components/heap/heap_caps.c:340

0x40033721: free at D:/Espressif/frameworks/esp-idf-v4.4.1/components/newlib/heap.c:39

0x400356ee: esf_buf_recycle at ??:?

0x400c0d24: ppProcTxDone at ??:?

0x40034dcd: ppTask at ??:?





ELF file SHA256: 2f52d92c93eb204a

Rebooting...
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x3 (RTC_SW_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40023709
0x40023709: esp_restart_noos_dig at D:/Espressif/frameworks/esp-idf-v4.4.1/components/esp_system/esp_system.c:44 (discriminator 1)

SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6100,len:0x18c0
load:0x4004c000,len:0xcd8
load:0x40050000,len:0x2fb4
entry 0x4004c22c

linshc
Posts: 59
Joined: Mon Feb 21, 2022 2:06 am

Re: usb_cdc_4g_module工程存在问题,在使用手机连接wifi时,会发生重启。!!!!

Postby linshc » Thu May 12, 2022 4:20 am

我使用的板子为ESP32S2,出现上述情况的概率很大。想请教一下如何解决这个问题?

ESP_Bob
Posts: 80
Joined: Fri Nov 27, 2020 12:52 pm

Re: usb_cdc_4g_module工程存在问题,在使用手机连接wifi时,会发生重启。!!!!

Postby ESP_Bob » Wed May 25, 2022 2:19 am

第一个 RESET 原因是 POWERON。请检查供电是否有问题,4G 模组峰值电流 2A,WiFi 峰值电流 500mA,在 WiFi 连接时,可能电源无法满足要求,导致硬件重启

第二个原因,需要等问题一已解决再跟进

Who is online

Users browsing this forum: No registered users and 70 guests