-
Notifications
You must be signed in to change notification settings - Fork 808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
用USB CDC 4G Module时,卡在了Modem state STAGE_WAIT_IP步骤 (AEGHB-586) #341
Comments
@tyrael-cui Please try with other SIM Card or change the APN same as the operator suggest. |
@leeebo 我设置了APN名字,打开了debug信息,发现已经连接成功了,但仍然无法获取IP。Log如下:
D (13958) esp_netif_lwip: call api in lwip: ret=0x0, give sem D (13991) modem_board: Handling bits = 0080, stage = 1, retry = 0 I (13980) USB_HCDC: rx0 flush -0 = 0 D (19013) USB_HCDC: cdc write itf: 0, buf = 0x3f00aaf8, len = 3 D (19048) USB_HCDC: cdc write itf: 0, buf = 0x3f00ab04, len = 5 W (19095) 4g_main: Modem Board Event: Network disconnected D (19228) USB_HCDC: cdc write itf: 0, buf = 0x3f00ab58, len = 9 I (19284) 4g_main: Modem Board Event: SIM Card Connected D (19405) USB_HCDC: cdc write itf: 0, buf = 0x3f00aba0, len = 7 D (19567) USB_HCDC: cdc write itf: 0, buf = 0x3f00ab30, len = 9 D (19742) USB_HCDC: cdc write itf: 0, buf = 0x3ffeaf3c, len = 26 D (19782) USB_HCDC: cdc write itf: 0, buf = 0x3f00abb0, len = 8 D (19830) esp_netif_handlers: esp_netif action has started with netif0x3ffeb4a8 from event_id=0 D (19862) esp-netif_lwip-ppp: Phase Establish D (19877) USB_HCDC: cdc write itf: 0, buf = 0x3ffedc9c, len = 46 D (19889) esp_netif_lwip: esp_netif_update_default_netif_lwip 0x3ffeb4a8 W (19912) modem_board: Modem event! 0 D (79887) esp-netif_lwip-ppp: Phase Dead I (79901) esp-netif_lwip-ppp: Connection lost D (79916) esp_netif_handlers: esp_netif action disconnected with netif0x3ffeb4a8 from event_id=7 D (79932) esp_netif_lwip: esp_netif_down_api esp_netif:0x3ffeb4a8 D (79951) esp_netif_lwip: esp_netif_update_default_netif_lwip 0x3ffeb4a8 I (79974) modem_board: IP event! 7 W (80024) esp-modem-dte: Not support sending command in ppp mode, please exit ppp mode first D (80058) USB_HCDC: cdc write itf: 0, buf = 0x3f00abc4, len = 3 D (90077) USB_HCDC: cdc write itf: 0, buf = 0x3f00aaf8, len = 3 D (90114) USB_HCDC: cdc write itf: 0, buf = 0x3f00ab04, len = 5 W (90161) 4g_main: Modem Board Event: Network disconnected D (90294) USB_HCDC: cdc write itf: 0, buf = 0x3f00ab58, len = 9 I (90350) 4g_main: Modem Board Event: SIM Card Connected D (90471) USB_HCDC: cdc write itf: 0, buf = 0x3f00aba0, len = 7 D (90633) USB_HCDC: cdc write itf: 0, buf = 0x3f00ab30, len = 9 D (90808) USB_HCDC: cdc write itf: 0, buf = 0x3ffed6a0, len = 26 D (90849) USB_HCDC: cdc write itf: 0, buf = 0x3f00abb0, len = 8 D (90896) esp_netif_handlers: esp_netif action has started with netif0x3ffeb4a8 from event_id=0 D (90928) esp-netif_lwip-ppp: Phase Establish D (90943) USB_HCDC: cdc write itf: 0, buf = 0x3ffedc9c, len = 47 D (90955) esp_netif_lwip: esp_netif_update_default_netif_lwip 0x3ffeb4a8 W (90978) modem_board: Modem event! 0 |
问题已经解决,所用的CAT1模块不支持PPP协议,但仍然在拨号命令时,返回connect,导致程序等待ip. |
Answers checklist.
General issue report
我的硬件是ESP32-S2连接EC600M-CN模块,直接用了USB_CDC_MODULE中的例程。IDF版本 5.1.2。开机log如下:
I (13525) USB_HCDC: rx0 flush -0 = 0
I (14530) modem_board: reconnect after 5s...
I (15530) modem_board: reconnect after 4s...
I (16530) modem_board: reconnect after 3s...
I (17530) modem_board: reconnect after 2s...
I (18530) modem_board: reconnect after 1s...
I (18530) modem_board: Modem state STAGE_SYNC, Start
I (18544) modem_board: Network Auto reconnecting ...
W (18544) 4g_main: Modem Board Event: Network disconnected
E (18544) led_indicator: ./managed_components/espressif__led_indicator/src/led_indicator.c:461 (led_indicator_stop):invalid p_handle
I (18557) modem_board: Modem state STAGE_SYNC, Success!
I (18663) modem_board: Modem state STAGE_CHECK_SIM, Start
I (18666) modem_board: SIM Card Ready
I (18666) 4g_main: Modem Board Event: SIM Card Connected
I (18668) modem_board: Modem state STAGE_CHECK_SIM, Success!
I (18774) modem_board: Modem state STAGE_CHECK_SIGNAL, Start
I (18776) modem_board: Signal quality: rssi=28, ber=99
I (18776) modem_board: Modem state STAGE_CHECK_SIGNAL, Success!
I (18881) modem_board: Modem state STAGE_CHECK_REGIST, Start
I (18883) modem_board: Network registed, Operator: "CHINA MOBILE"
I (18883) modem_board: Modem state STAGE_CHECK_REGIST, Success!
I (18989) modem_board: Modem state STAGE_START_PPP, Start
I (18996) modem_board: Modem state STAGE_START_PPP, Success!
W (18997) modem_board: Modem event! 0
I (19096) modem_board: Modem state STAGE_WAIT_IP, Start
I (78997) esp-netif_lwip-ppp: Connection lost
I (78997) modem_board: IP event! 7
I (78997) modem_board: Modem Disconnect from PPP Server
W (79096) modem_board: Modem Got IP timeout, retry from start!
E (79096) modem_board: Modem state STAGE_WAIT_IP, retry 5, timeout !
W (79098) modem_board: Retry From Start !
I (79103) modem_board: Modem state STAGE_SYNC, Start
W (79118) esp-modem-dte: Not support sending command in ppp mode, please exit ppp mode first
response timeoutem_dce: esp_modem_dce_generic_command(26): Command:AT
I (79136) modem_board: Current timeouts: 1 and errors: 0
W (79136) modem_board: Try to exit ppp mode........
E (89138) esp-modem-dte: esp_modem_dte_send_cmd(272): process command timeout
W (89138) esp_modem_dce: esp_modem_dce_generic_command(26): Command:+++ response timeout
I (89148) modem_board: Network Auto reconnecting ...
W (89149) 4g_main: Modem Board Event: Network disconnected
E (89155) led_indicator: ./managed_components/espressif__led_indicator/src/led_indicator.c:461 (led_indicator_stop):invalid p_handle
I (89168) modem_board: Modem state STAGE_SYNC, Success!
I (89273) modem_board: Modem state STAGE_CHECK_SIM, Start
I (89275) modem_board: SIM Card Ready
I (89275) 4g_main: Modem Board Event: SIM Card Connected
I (89278) modem_board: Modem state STAGE_CHECK_SIM, Success!
I (89384) modem_board: Modem state STAGE_CHECK_SIGNAL, Start
I (89386) modem_board: Signal quality: rssi=25, ber=99
I (89386) modem_board: Modem state STAGE_CHECK_SIGNAL, Success!
I (89491) modem_board: Modem state STAGE_CHECK_REGIST, Start
I (89493) modem_board: Network registed, Operator: "CHINA MOBILE"
I (89493) modem_board: Modem state STAGE_CHECK_REGIST, Success!
I (89599) modem_board: Modem state STAGE_START_PPP, Start
I (89605) modem_board: Modem state STAGE_START_PPP, Success!
W (89606) modem_board: Modem event! 0
I (89705) modem_board: Modem state STAGE_WAIT_IP, Start
I (149606) esp-netif_lwip-ppp: Connection lost
I (149606) modem_board: IP event! 7
I (149606) modem_board: Modem Disconnect from PPP Server
W (149705) modem_board: Modem Got IP timeout, retry from start!
E (149705) modem_board: Modem state STAGE_WAIT_IP, retry 5, timeout !
W (149707) modem_board: Retry From Start !
I (149712) modem_board: Modem state STAGE_SYNC, Start
W (149728) esp-modem-dte: Not support sending command in ppp mode, please exit ppp mode first
response timeoutdem_dce: esp_modem_dce_generic_command(26): Command:AT
I (149746) modem_board: Current timeouts: 1 and errors: 0
W (149746) modem_board: Try to exit ppp mode........
E (159747) esp-modem-dte: esp_modem_dte_send_cmd(272): process command timeout
W (159747) esp_modem_dce: esp_modem_dce_generic_command(26): Command:+++ response timeout
I (159757) modem_board: Network Auto reconnecting ...
W (159758) 4g_main: Modem Board Event: Network disconnected
E (159764) led_indicator: ./managed_components/espressif__led_indicator/src/led_indicator.c:461 (led_indicator_stop):invalid p_handle
I (159777) modem_board: Modem state STAGE_SYNC, Success!
I (159883) modem_board: Modem state STAGE_CHECK_SIM, Start
I (159885) modem_board: SIM Card Ready
I (159885) 4g_main: Modem Board Event: SIM Card Connected
I (159888) modem_board: Modem state STAGE_CHECK_SIM, Success!
I (159995) modem_board: Modem state STAGE_CHECK_SIGNAL, Start
I (159997) modem_board: Signal quality: rssi=25, ber=99
I (159997) modem_board: Modem state STAGE_CHECK_SIGNAL, Success!
I (160103) modem_board: Modem state STAGE_CHECK_REGIST, Start
I (160105) modem_board: Network registed, Operator: "CHINA MOBILE"
I (160105) modem_board: Modem state STAGE_CHECK_REGIST, Success!
I (160211) modem_board: Modem state STAGE_START_PPP, Start
I (160217) modem_board: Modem state STAGE_START_PPP, Success!
W (160218) modem_board: Modem event! 0
I (160317) modem_board: Modem state STAGE_WAIT_IP, Start
========================================================
目前已经检查过EC600M模块,是正常工作的,SIM卡也可以注册上网,但就是无法获取IP。
请大家指教是什么原因造成的?
谢谢!
The text was updated successfully, but these errors were encountered: