EC200U internet on an ESP32-S3

Dear Team

What is the best way to use EC200U internet on an ESP32-S3 for video streaming?

We tried the following 2 options (ECM mode & PPP mode) but facing issues- kindly help:

OPTION 1- Use EC200U internet on an ESP32-S3 via USB tethering with ECM mode

We are trying to use EC200U internet on an ESP32-S3 via USB tethering with ECM mode enabled on the EC200U. The ESP32-S3 has two onboard USB ports: one USB-UART connected to a PC, and one USB-OTG connected to the EC200U’s onboard USB port using a USB-C to USB-C data cable.

We’re using the example code from Espressif’s repository: usb_cdc_4g_module. No modifications have been made to the example code. In menuconfig, under “Choose Modem Board,” we selected “User defined” but couldn’t find any option to set the Modem USB CDC IN endpoint address and Modem USB CDC OUT endpoint address.

After building and flashing the firmware, the ESP32-S3 crashes when the EC200U connects. The log shows:

I (6698) modem_board: DTE reconnect, reconnecting …

I (6703) 4g_main: Modem Board Event: USB connected

Guru Meditation Error: Core 0 panic’ed (LoadProhibited)

Please help us resolve this crash and guide us on how to properly configure the USB CDC endpoints if needed.

OPTION 2- use EC200U internet on an ESP32-S3 via USB tethering with PPP MODE-

In the second case, we tried to enable PPP mode in the EC200U-CN. We were able to do so by sending the AT command, but if the power gets cut, it resets and again needs the AT command to enable PPP mode. We want to know if it’s possible to keep the EC200U-CN in PPP mode even after a power-off?

Next, we tried to enable PPP mode in EC200U-CN by sending the AT command via ESP32-S3 firmware. For this, we modified the code named app_main.c at esp-iot-solution_master\esp-iot-solution-master\examples\usb\host\usb_cdc_4g_module\main\app_main.c, and similar to the above setup, we used menuconfig, then build flash monitor.

Log output:

:I (481) led_indicator: LED Indicator Version: 0.3.0

I (577) 4g_main: USB CDC driver installed

I (577) 4g_main: Waiting up to 30s for USB device to enumerate…

I (578) 4g_main: Enumeration attempt 1/6

E (959) ENUM: LANGID 0x409 not found

I (960) USBH_CDC: New device connected, address: 1

I (5579) 4g_main: Trying interface 0 on any USB device

Guru Meditation Error: Core 0 panic’ed (LoadProhibited). Exception was unhandled.

Backtrace: 0x420186b5:0x3fca9160 0x4201913d:0x3fca91b0 0x4200c591:0x3fca9200 0x420a33b7:0x3fca9270

Please provide detailed instructions on how to enable internet sharing from the EC200U-CN module to the ESP32-S3 via USB tethering, specifically by configuring the EC200U-CN in PPP (Point-to-Point Protocol) mode. The goal is to allow the ESP32-S3 to access the internet through the EC200U-CN’s data connection using USB.

We are here attaching the app_main.c for your reference

Warm Regards

If you are using the EC200U, Please select it in the menuconfig.


The ppp will not work after reboot.
As I know, the eample

esp-iot-solution/examples/usb/host/usb_cdc_4g_module at 72358cc1a1c9825a9859e1b509176644634f263b · espressif/esp-iot-solution

It only support the PPP and it do not support the ECM.

By the way, the ESP32 module we are using is ESP32 S3 WROOM.

Hope it is suitable / compatible enough to achieve our objective of streaming video through EC200U internet?

Look forward to an early response.

We tried to enable PPP mode in EC200U-CN by sending the AT command via ESP32-S3 firmware. For this, we modified the code named app_main.c at esp-iot-solution_master\esp-iot-solution-master\examples\usb\host\usb_cdc_4g_module\main\app_main.c, and in menuconfig followed the steps what you have asked to do . Then build flash monitor.And I am attaching the app_main.c as well as the monitor log below.
It will be beneficial if get any support to enable ppp mode via esp32s3 firmware by sending the AT command .We are sending the following AT command in the code
“AT”, “AT+CPIN?”,“AT+CREG?”,"AT+CGDCONT=2,“IP”,“airtelgprs.com”,“ATD99**2”
To set the APN we use AT+CGDCONT=2 since Context Identifier (CID) 1 is already occupied by ECM mode.

Log output:

I (31) boot: ESP-IDF v5.4 2nd stage bootloader
I (31) boot: compile time Apr 7 2025 10:00:42
I (31) boot: Multicore bootloader
I (32) boot: chip revision: v0.2
I (34) boot: efuse block revision: v1.3
I (38) qio_mode: Enabling default flash chip QIO
I (42) boot.esp32s3: Boot SPI Speed : 80MHz
I (46) boot.esp32s3: SPI Mode : QIO
I (50) boot.esp32s3: SPI Flash Size : 4MB
I (53) boot: Enabling RNG early entropy source…
I (58) boot: Partition Table:
I (61) boot: ## Label Usage Type ST Offset Length
I (67) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (73) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (80) boot: 2 factory factory app 00 00 00010000 00100000
I (86) boot: 3 storage Unknown data 01 82 00110000 00100000
I (93) boot: End of partition table
I (96) esp_image: segment 0: paddr=00010020 vaddr=3c0b0020 size=257ech (153580) map
I (126) esp_image: segment 1: paddr=00035814 vaddr=3fc9d400 size=04a98h ( 19096) load
I (130) esp_image: segment 2: paddr=0003a2b4 vaddr=40374000 size=05d64h ( 23908) load
I (135) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=a7cf8h (687352) map
I (240) esp_image: segment 4: paddr=000e7d20 vaddr=40379d64 size=135a0h ( 79264) load
I (255) esp_image: segment 5: paddr=000fb2c8 vaddr=600fe100 size=0001ch ( 28) load
I (265) boot: Loaded app from partition at offset 0x10000
I (265) boot: Disabling RNG early entropy source…
I (275) cpu_start: Multicore app
I (284) cpu_start: Pro cpu start user code
I (284) cpu_start: cpu freq: 240000000 Hz
I (284) app_init: Application information:
I (284) app_init: Project name: usb_cdc_4g_module
I (289) app_init: App version: 1
I (292) app_init: Compile time: Apr 7 2025 09:58:40
I (297) app_init: ELF file SHA256: 304bbab94…
I (302) app_init: ESP-IDF: v5.4
I (305) efuse_init: Min chip rev: v0.0
I (309) efuse_init: Max chip rev: v0.99
I (313) efuse_init: Chip rev: v0.2
I (317) heap_init: Initializing. RAM available for dynamic allocation:
I (323) heap_init: At 3FCA56F8 len 00044018 (272 KiB): RAM
I (328) heap_init: At 3FCE9710 len 00005724 (21 KiB): RAM
I (333) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (339) heap_init: At 600FE11C len 00001ECC (7 KiB): RTCRAM
I (344) spi_flash: detected chip: gd
I (347) spi_flash: flash io: qio
W (350) spi_flash: Detected size(8192k) larger than the size in the binary image header(4096k). Using the size
in the binary image header.
I (362) sleep_gpio: Configure to isolate all GPIO pins in sleep state
I (369) sleep_gpio: Enable automatic switching of GPIO sleep configuration
I (375) main_task: Started on CPU0
I (394) main_task: Calling app_main()
I (394) led_indicator: LED Indicator Version: 0.3.0
I (394) gpio: GPIO[15]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (400) led_indicator: blink_lists is null, use default blink list
W (406) led_indicator: ./managed_components/espressif__led_indicator/src/led_indicator.c:280 (_led_indicator_create_com):LED indicator does not have the hal_indicator_set_brightness function
I (422) led_indicator: Indicator create successfully. type:GPIO mode, hardware_data:0xf, is_active_level_high:1, blink_lists:default
I (434) led_indicator: LED Indicator Version: 0.3.0
I (438) gpio: GPIO[17]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (447) led_indicator: blink_lists is null, use default blink list
W (453) led_indicator: ./managed_components/espressif__led_indicator/src/led_indicator.c:280 (_led_indicator_create_com):LED indicator does not have the hal_indicator_set_brightness function
I (469) led_indicator: Indicator create successfully. type:GPIO mode, hardware_data:0x11, is_active_level_high:1, blink_lists:default
I (481) led_indicator: LED Indicator Version: 0.3.0
I (485) gpio: GPIO[16]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (494) led_indicator: blink_lists is null, use default blink list
W (500) led_indicator: ./managed_components/espressif__led_indicator/src/led_indicator.c:280 (_led_indicator_create_com):LED indicator does not have the hal_indicator_set_brightness function
I (516) led_indicator: Indicator create successfully. type:GPIO mode, hardware_data:0x10, is_active_level_high:1, blink_lists:default
I (540) 4g_main: ====================================
I (540) 4g_main: ESP 4G Cat.1 Wi-Fi Router
I (540) 4g_main: ====================================
I (543) USBH_CDC: iot usbh cdc version: 1.0.2
I (577) 4g_main: USB CDC driver installed
I (577) 4g_main: Waiting up to 30s for USB device to enumerate…
I (578) 4g_main: Enumeration attempt 1/6
E (959) ENUM: LANGID 0x409 not found
I (960) USBH_CDC: New device connected, address: 1
I (5579) 4g_main: Trying interface 0 on any USB device
Guru Meditation Error: Core 0 panic’ed (LoadProhibited). Exception was unhandled.

Core 0 register dump:
PC : 0x420186b8 PS : 0x00060a30 A0 : 0x82019140 A1 : 0x3fca9160
— 0x420186b8: _cdc_transfers_allocate at G:/espiotsolutionmaster_FIFTHAPR/esp-iot-solution-master/components/usb/iot_usbh_cdc/iot_usbh_cdc.c:482
(inlined by) _cdc_open at G:/espiotsolutionmaster_FIFTHAPR/esp-iot-solution-master/components/usb/iot_usbh_cdc/iot_usbh_cdc.c:631

A2 : 0x00000000 A3 : 0x00000000 A4 : 0x3fca91d0 A5 : 0x3fca91b0
A6 : 0x8200c594 A7 : 0x3fcb1310 A8 : 0x3fcb0f90 A9 : 0x3fca9140
A10 : 0x00000000 A11 : 0x00000000 A12 : 0x3fcb1328 A13 : 0x3fcb1334
A14 : 0x3fca9170 A15 : 0x00000000 SAR : 0x00000009 EXCCAUSE: 0x0000001c
EXCVADDR: 0x8200c596 LBEG : 0x400570e8 LEND : 0x400570f3 LCOUNT : 0x00000000
— 0x400570e8: memset in ROM
0x400570f3: memset in ROM

Backtrace: 0x420186b5:0x3fca9160 0x4201913d:0x3fca91b0 0x4200c591:0x3fca9200 0x420a33b7:0x3fca9270

It stopped here because there is something wrong with the USB enumeration.
Please check the USB cable first.

I’ve tested it.
分享-ESP32S3 USB外挂EC20CE/EC200U - 功能分类 / 驱动相关 - 移远支持社区

The normal log should be something like this.

Found IN endpoint: 138
Found OUT endpoint: 7
I (6232) USBH_CDC: Opened cdc device: 1
Found IN endpoint: 132
Found OUT endpoint: 2
*** Device descriptor ***
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0x0
bDeviceSubClass 0x0
bDeviceProtocol 0x0
bMaxPacketSize0 64
idVendor 0x2c7c
idProduct 0x901
bcdDevice 3.10
iManufacturer 1
iProduct 2
iSerialNumber 3
bNumConfigurations 1
*** Configuration descriptor ***
bLength 9
bDescriptorType 2
wTotalLength 263
bNumInterfaces 9
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
bMaxPower 400mA
*** Interface Association Descriptor ***
bLength 8
bDescriptorType 11
bFirstInterface 0
bInterfaceCount 2
bFunctionClass 0x2
bFunctionSubClass 0x6
bFunctionProtocol 0x0
iFunction 4
        *** Interface descriptor ***
        bLength 9
        bDescriptorType 4
        bInterfaceNumber 0
        bAlternateSetting 0
        bNumEndpoints 1
        bInterfaceClass 0x2
        bInterfaceSubClass 0x6
        bInterfaceProtocol 0x0
        iInterface 6
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x81   EP 1 IN
                bmAttributes 0x3        INT
                wMaxPacketSize 16
                bInterval 32
        *** Interface descriptor ***
        bLength 9
        bDescriptorType 4
        bInterfaceNumber 1
        bAlternateSetting 0
        bNumEndpoints 0
        bInterfaceClass 0xa
        bInterfaceSubClass 0x0
        bInterfaceProtocol 0x0
        iInterface 0
        *** Interface descriptor ***
        bLength 9
        bDescriptorType 4
        bInterfaceNumber 1
        bAlternateSetting 1
        bNumEndpoints 2
        bInterfaceClass 0xa
        bInterfaceSubClass 0x0
        bInterfaceProtocol 0x0
        iInterface 5
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x82   EP 2 IN
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x1    EP 1 OUT
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
        *** Interface descriptor ***
        bLength 9
        bDescriptorType 4
        bInterfaceNumber 2
        bAlternateSetting 0
        bNumEndpoints 3
        bInterfaceClass 0xff
        bInterfaceSubClass 0x0
        bInterfaceProtocol 0x0
        iInterface 8
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x84   EP 4 IN
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x2    EP 2 OUT
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x83   EP 3 IN
                bmAttributes 0x3        INT
                wMaxPacketSize 64
                bInterval 32
        *** Interface descriptor ***
        bLength 9
        bDescriptorType 4
        bInterfaceNumber 3
        bAlternateSetting 0
        bNumEndpoints 2
        bInterfaceClass 0xff
        bInterfaceSubClass 0x0
        bInterfaceProtocol 0x0
        iInterface 8
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x85   EP 5 IN
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x3    EP 3 OUT
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
        *** Interface descriptor ***
        bLength 9
        bDescriptorType 4
        bInterfaceNumber 4
        bAlternateSetting 0
        bNumEndpoints 2
        bInterfaceClass 0xff
        bInterfaceSubClass 0x0
        bInterfaceProtocol 0x0
        iInterface 8
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x86   EP 6 IN
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x4    EP 4 OUT
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
        *** Interface descriptor ***
        bLength 9
        bDescriptorType 4
        bInterfaceNumber 5
        bAlternateSetting 0
        bNumEndpoints 2
        bInterfaceClass 0xff
        bInterfaceSubClass 0x0
        bInterfaceProtocol 0x0
        iInterface 8
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x87   EP 7 IN
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x5    EP 5 OUT
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
        *** Interface descriptor ***
        bLength 9
        bDescriptorType 4
        bInterfaceNumber 6
        bAlternateSetting 0
        bNumEndpoints 2
        bInterfaceClass 0xff
        bInterfaceSubClass 0x0
        bInterfaceProtocol 0x0
        iInterface 8
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x88   EP 8 IN
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x6    EP 6 OUT
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
        *** Interface descriptor ***
        bLength 9
        bDescriptorType 4
        bInterfaceNumber 7
        bAlternateSetting 0
        bNumEndpoints 3
        bInterfaceClass 0xff
        bInterfaceSubClass 0x0
        bInterfaceProtocol 0x0
        iInterface 8
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x8a   EP 10 IN
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x7    EP 7 OUT
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x89   EP 9 IN
                bmAttributes 0x3        INT
                wMaxPacketSize 64
                bInterval 32
        *** Interface descriptor ***
        bLength 9
        bDescriptorType 4
        bInterfaceNumber 8
        bAlternateSetting 0
        bNumEndpoints 2
        bInterfaceClass 0xff
        bInterfaceSubClass 0x0
        bInterfaceProtocol 0x0
        iInterface 8
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x8b   EP 11 IN
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
                *** Endpoint descriptor ***
                bLength 7
                bDescriptorType 5
                bEndpointAddress 0x8    EP 8 OUT
                bmAttributes 0x2        BULK
                wMaxPacketSize 64
                bInterval 0
I (6736) modem_board: DTE reconnect, reconnecting ...

I (6741) 4g_main: Modem Board Event: USB connected
I (6746) USBH_CDC: Opened cdc device: 1
I (6749) USBH_CDC: New device connected, address: 1
I (7741) modem_board: reconnect after 5s...
I (8741) modem_board: reconnect after 4s...
I (9741) modem_board: reconnect after 3s...
I (10741) modem_board: reconnect after 2s...
I (11741) modem_board: reconnect after 1s...
I (11741) modem_board: Modem state STAGE_SYNC, Start
I (11773) modem_board: Network Auto reconnecting ...
I (11773) modem_board: Modem state STAGE_SYNC, Success!
W (11773) 4g_main: Modem Board Event: Network disconnected
I (11873) modem_board: Modem state STAGE_CHECK_SIM, Start
I (11884) modem_board: SIM Card Ready
I (11884) modem_board: Modem state STAGE_CHECK_SIM, Success!
I (11884) 4g_main: Modem Board Event: SIM Card Connected
I (11985) modem_board: Modem state STAGE_CHECK_SIGNAL, Start
I (11997) modem_board: Signal quality: rssi=30, ber=99
I (11998) modem_board: Modem state STAGE_CHECK_SIGNAL, Success!
I (12098) modem_board: Modem state STAGE_CHECK_REGIST, Start
I (12111) modem_board: Network registered, Operator: "CHINA MOBILE"
I (12111) modem_board: Modem state STAGE_CHECK_REGIST, Success!
I (12211) modem_board: Modem state STAGE_START_PPP, Start
I (12242) modem_board: Modem state STAGE_START_PPP, Success!
W (12243) modem_board: Modem event! 0
I (12343) modem_board: Modem state STAGE_WAIT_IP, Start
I (18400) esp-netif_lwip-ppp: Connected
I (18400) modem_board: IP event! 6
I (18400) modem_board: Modem Connected to PPP Server
I (18400) modem_board: ppp ip: 10.96.61.137, mask: 255.255.255.255, gw: 192.168.0.1
I (18408) modem_board: Main DNS: 211.138.180.4
I (18412) modem_board: Backup DNS: 211.138.180.5
I (18416) esp-modem-netif: PPP state changed event 0: (NETIF_PPP_ERRORNONE)
I (18416) modem_board: Modem state STAGE_WAIT_IP, Success!
I (18423) 4g_main: Modem Board Event: Network connected
I (18423) 4g_router_server: ssid : Can't find in NVS!
I (18438) 4g_router_server: password : Can't find in NVS!
I (18443) 4g_router_server: auth_mode : Can't find in NVS!
I (18448) 4g_router_server: channel : Can't find in NVS!
I (18453) 4g_router_server: hide_ssid : Can't find in NVS!
I (18458) 4g_router_server: bandwidth : Can't find in NVS!
I (18463) 4g_router_server: max_connection : Can't find in NVS!
I (18508) 4g_router_server: Partition size: total: 956561, used: 182477
I (18508) 4g_router_server: Starting server on port: '80'
I (18510) 4g_router_server: Registering URI handlers
I (18513) 4g_router_server: Starting webserver
I (18518) pp: pp rom version: e7ae62f
I (18521) net80211: net80211 rom version: e7ae62f
I (18526) wifi:wifi driver task: 3fccf974, prio:23, stack:6656, core=0
I (18540) wifi:wifi firmware version: 48ea317a7
I (18540) wifi:wifi certification version: v7.0
I (18540) wifi:config NVS flash: enabled
I (18543) wifi:config nano formatting: disabled
I (18548) wifi:Init data frame dynamic rx buffer num: 32
I (18553) wifi:Init static rx mgmt buffer num: 5
I (18557) wifi:Init management short buffer num: 32
I (18562) wifi:Init dynamic tx buffer num: 32
I (18566) wifi:Init static tx FG buffer num: 2
I (18570) wifi:Init static rx buffer size: 1600
I (18574) wifi:Init static rx buffer num: 10
I (18578) wifi:Init dynamic rx buffer num: 32
I (18583) wifi_init: accept mbox: 6
I (18586) wifi_init: tcpip mbox: 32
I (18589) wifi_init: udp mbox: 6
I (18592) wifi_init: tcp mbox: 6
I (18595) wifi_init: tcp tx win: 5760
I (18598) wifi_init: tcp rx win: 5760
I (18601) wifi_init: tcp mss: 1440
I (18605) wifi_init: WiFi IRAM OP enabled
I (18608) wifi_init: WiFi RX IRAM OP enabled
I (18612) wifi_init: LWIP IRAM OP enabled
I (18617) phy_init: phy_version 680,a6008b2,Jun  4 2024,16:41:10
W (18657) phy_init: saving new calibration data because of checksum failure, mode(0)
I (18670) wifi:mode : softAP (f4:12:fa:cb:a9:8d)
I (18673) wifi:Total power save buffer number: 16
I (18673) wifi:Init max length of beacon: 752/752
I (18673) wifi:Init max length of beacon: 752/752
I (18677) modem_wifi: Wi-Fi AP started
I (18678) esp_netif_lwip: DHCP server started on interface WIFI_AP_DEF with IP: 192.168.4.1
I (18693) wifi:Total power save buffer number: 16
I (18694) modem_wifi: softap ssid: esp_4g_router password: 12345678
I (18695) esp_netif_lwip: DHCP server started on interface WIFI_AP_DEF with IP: 192.168.4.1
I (18707) modem_wifi: ap dns addr(default): 8.8.8.8
I (18726) 4g_main: rssi=30, ber=99
I (18726) 4g_main: changed: ap dns addr (auto): 211.138.180.4
I (18726) 4g_main: Ping addr 8.8.8.8 Restart..
W (20728) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (28742) 4g_main: rssi=30, ber=99
I (28742) 4g_main: Ping addr 8.8.8.8 Restart..
I (28975) 4g_main: 64 bytes from 8.8.8.8 icmp_seq=1 ttl=52 time=232 ms

I (38756) 4g_main: rssi=30, ber=99
I (38756) 4g_main: Ping addr 8.8.8.8 Restart..
W (40756) 4g_main: From 8.8.8.8 icmp_seq=1 timeout

I (48769) 4g_main: rssi=31, ber=99
I (48769) 4g_main: Ping addr 8.8.8.8 Restart..
I (48970) 4g_main: 64 bytes from 8.8.8.8 icmp_seq=1 ttl=52 time=200 ms

You needn’t use the CID#2. Just make sure the ECM data call not be initialized.

I tried to disable the ECM mode but it is not working .So that after disabling the ECM MODE i CAN USE cid1 FOR SET THE APN.How to achieve this?CID 2 is acquired by airtel gprs ,I tried to post the output here but it is not taking ,error is throwing here

Here is the AT command output

AT
OK
AT+CPIN?
+CPIN: READY

OK
AT+CREG?
+CREG: 0,1

OK
AT+CGDCONT?
+CGDCONT: 1,“IP”,“”,“100.72.85.54”,0,0

OK
AT+QCFG=“usbnet”,0
+CME ERROR: 3
AT+QCFG=“usbnet”?
+CME ERROR: 58
AT+GMR
EC200UCNAAR03A06M08_OCPU

OK

Please check

AT+QNETDEVCTL?

Do you have the source code the Open firmware?

here is the AT command output
AT
OK
AT+QNETDEVCTL?
+QNETDEVCTL: 1,1,0,1

OK
AT+QNETDEVCTL=0,1,1
+CME ERROR: 53
AT+QNETDEVCTL?
+QNETDEVCTL: 1,1,0,1

OK

We enabled ECM mode earlier by compiling and flashing QuecOpen SDK firmware using QFlash tool. Now we are trying to disable ECM mode using AT commands, but it’s not working. Can you advise whether we need to rebuild our firmware without ECM mode,if yes it will be better to have detailed steps or readme file to perform this or if there’s a way to override it dynamically?

Just from the AT command

  AT+QNETDEVCTL?
  +QNETDEVCTL: 1,1,0,1

The ECM is not set up datacall internally. And so that you still could use the PDN#1 for PPP.

If the USB connection is OK, we should be able to see the USB descriptors in the debug port of the ESP32S3.

examples/usb/host/usb_cdc_4g_module

Right now I think you should check the USB connection first.

We checked the USB, able to transfer image file from one mobile to another mobile .We are following the connection as : type c cable one end is in ESP32 S3 USB UART port and one end is to PC.Next type C to C data cable , one end is in ESP32S3 USB -OTG port and one end is in on board USb port of EC200U CN .After connecting this EC200U USB PWR led is glowing ,3v8 led is glowing, NET REG LED is glowing and NET MODE LED is blinking.

We build flash monitor the examples/usb/host/usb_cdc_4g_module and get the following logs .Please advise what to do ?

Full log

I (5801) esp-modem: ----------------------------------------------------
I (5807) gpio: GPIO[12]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (5816) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
E (6206) ENUM: LANGID 0x409 not found
Found IN endpoint: 138
Found OUT endpoint: 7
I (6207) USBH_CDC: Opened cdc device: 1
*** Device descriptor ***
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0x0
bDeviceSubClass 0x0
bDeviceProtocol 0x0
bMaxPacketSize0 64
idVendor 0x2c7c
idProduct 0x901
bcdDevice 3.10
iManufacturer 1
iProduct 2
iSerialNumber 3
bNumConfigurations 1
*** Configuration descriptor ***
bLength 9
bDescriptorType 2
wTotalLength 263
bNumInterfaces 9
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
bMaxPower 400mA
*** Interface Association Descriptor ***
bLength 8
bDescriptorType 11
bFirstInterface 0
bInterfaceCount 2
bFunctionClass 0x2
bFunctionSubClass 0x6
bFunctionProtocol 0x0
iFunction 4
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 0x2
bInterfaceSubClass 0x6
bInterfaceProtocol 0x0
iInterface 6
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 0x3 INT
wMaxPacketSize 16
bInterval 32
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 0xa
bInterfaceSubClass 0x0
bInterfaceProtocol 0x0
iInterface 0
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 1
bNumEndpoints 2
bInterfaceClass 0xa
bInterfaceSubClass 0x0
bInterfaceProtocol 0x0
iInterface 5
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x1 EP 1 OUT
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 0xff
bInterfaceSubClass 0x0
bInterfaceProtocol 0x0
iInterface 8
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x2 EP 2 OUT
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 0x3 INT
wMaxPacketSize 64
bInterval 32
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 3
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 0xff
bInterfaceSubClass 0x0
bInterfaceProtocol 0x0
iInterface 8
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x3 EP 3 OUT
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 4
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 0xff
bInterfaceSubClass 0x0
bInterfaceProtocol 0x0
iInterface 8
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x86 EP 6 IN
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x4 EP 4 OUT
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 5
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 0xff
bInterfaceSubClass 0x0
bInterfaceProtocol 0x0
iInterface 8
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x87 EP 7 IN
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x5 EP 5 OUT
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 6
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 0xff
bInterfaceSubClass 0x0
bInterfaceProtocol 0x0
iInterface 8
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x88 EP 8 IN
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x6 EP 6 OUT
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 7
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 0xff
bInterfaceSubClass 0x0
bInterfaceProtocol 0x0
iInterface 8
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x8a EP 10 IN
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x7 EP 7 OUT
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x89 EP 9 IN
bmAttributes 0x3 INT
wMaxPacketSize 64
bInterval 32
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 8
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 0xff
bInterfaceSubClass 0x0
bInterfaceProtocol 0x0
iInterface 8
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x8b EP 11 IN
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x8 EP 8 OUT
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
I (6707) modem_board: DTE reconnect, reconnecting …

I (6712) 4g_main: Modem Board Event: USB connected
Found IN endpoint: 132
Found OUT endpoint: 2
I (6721) USBH_CDC: Opened cdc device: 1
I (6725) USBH_CDC: New device connected, address: 1
I (7712) modem_board: reconnect after 5s…
I (8712) modem_board: reconnect after 4s…
I (9712) modem_board: reconnect after 3s…
I (10712) modem_board: reconnect after 2s…
I (11712) modem_board: reconnect after 1s…
I (11712) modem_board: Modem state STAGE_SYNC, Start
E (13722) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutem_dce: esp_modem_dce_generic_command(26): Command:AT
I (13735) modem_board: Current timeouts: 1 and errors: 0
W (13735) modem_board: Try to exit ppp mode…
E (23735) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
W (23735) esp_modem_dce: esp_modem_dce_generic_command(26): Command:+++ response timeout
E (25738) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutem_dce: esp_modem_dce_generic_command(26): Command:AT
I (25751) modem_board: Current timeouts: 2 and errors: 0
W (25751) modem_board: Reset modem through reset pin…
W (25752) 4g_main: Modem Board Event: Hardware restart
I (25752) modem_board: modem_board_reset!
I (30960) 4g_main: Modem Board Event: Hardware restart done
E (32960) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutem_dce: esp_modem_dce_generic_command(26): Command:AT
I (32973) modem_board: Current timeouts: 3 and errors: 0
W (32973) modem_board: Reset modem through reset pin…
W (32974) 4g_main: Modem Board Event: Hardware restart
I (32974) modem_board: modem_board_reset!
I (38182) 4g_main: Modem Board Event: Hardware restart done
E (40182) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutem_dce: esp_modem_dce_generic_command(26): Command:AT
I (40195) modem_board: Current timeouts: 4 and errors: 0
W (40195) modem_board: Reset modem through power pin…
W (40196) 4g_main: Modem Board Event: Hardware restart
I (40196) modem_board: modem_board_power_down!
I (48705) modem_board: modem_board_power_up!
I (57205) 4g_main: Modem Board Event: Hardware restart done
E (59205) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutem_dce: esp_modem_dce_generic_command(26): Command:AT
I (59218) modem_board: Current timeouts: 5 and errors: 0
W (59218) modem_board: Reset modem through power pin…
W (59219) 4g_main: Modem Board Event: Hardware restart
I (59219) modem_board: modem_board_power_down!
I (67728) modem_board: modem_board_power_up!
I (76228) 4g_main: Modem Board Event: Hardware restart done
E (78228) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutem_dce: esp_modem_dce_generic_command(26): Command:AT
E (78231) modem_board: modem_board_start_up(225): sending sync failed
I (78237) modem_board: Modem state STAGE_SYNC, Start
E (80252) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutem_dce: esp_modem_dce_generic_command(26): Command:AT
I (80265) modem_board: Current timeouts: 1 and errors: 0
W (80265) modem_board: Try to exit ppp mode…
E (90265) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
W (90265) esp_modem_dce: esp_modem_dce_generic_command(26): Command:+++ response timeout
E (92268) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutem_dce: esp_modem_dce_generic_command(26): Command:AT
I (92281) modem_board: Current timeouts: 2 and errors: 0
W (92281) modem_board: Reset modem through reset pin…
W (92282) 4g_main: Modem Board Event: Hardware restart
I (92282) modem_board: modem_board_reset!
I (97490) 4g_main: Modem Board Event: Hardware restart done
E (99490) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutem_dce: esp_modem_dce_generic_command(26): Command:AT
I (99503) modem_board: Current timeouts: 3 and errors: 0
W (99503) modem_board: Reset modem through reset pin…
W (99504) 4g_main: Modem Board Event: Hardware restart
I (99504) modem_board: modem_board_reset!
I (104712) 4g_main: Modem Board Event: Hardware restart done

Have you selected this?


CONFIG_MODEM_TARGET_USER=y
CONFIG_MODEM_TARGET_NAME="User Defined"
CONFIG_MODEM_SUPPORT_SECONDARY_AT_PORT=y

#
# USB CDC interface config
#
CONFIG_MODEM_USB_ITF=0x02
CONFIG_MODEM_USB_ITF2=0x07

Yes we have followed the instruction asked by you in menuconfig.We selcet user defined , CDC interface (0x02) ,(0x07)

And here is I am attaching the relevant part from sdkconfig, still we are facing the issue as post above response .

Here is the sdkconfig relevant part

CONFIG_MODEM_TARGET_EC20_CE is not set

CONFIG_MODEM_TARGET_USER=y

CONFIG_MODEM_TARGET_NAME=“User Defined”

CONFIG_MODEM_SUPPORT_SECONDARY_AT_PORT=y

USB CDC interface config

CONFIG_MODEM_USB_ITF=0x02

CONFIG_MODEM_USB_ITF2=0x07

end of USB CDC interface config

CONFIG_MODEM_DIAL_RETRY_TIMES=5

CONFIG_MODEM_PPP_APN=“internet”

CONFIG_MODEM_SIM_PIN_PWD=“1234”

CONFIG_MODEM_PRINT_DEVICE_DESCRIPTOR=y

Just from the ESP32 log, the AT port is not working.
I am not sure whether there is any difference between the standard firmware and the Open firmware you flashed.

Ok got it.But it will be very helpful if we get the clarification from your side which firmware should we use ?We will use the firmware which will resolve the issue ,so it will be beneficial if we get support for the firmware , particularly which one should we use and please provide the link of that firmware or the firmware/source code directly whatever is possible .

Here we are attaching the new log output ,we pulled the latest esp-iot-example and build flash monitor .

PS G:\espNinethApr\esp-iot-solution-master\examples\usb\host\usb_cdc_4g_module> idf.py monitor
Executing action: monitor
Serial port COM22
Connecting…
Detecting chip type… ESP32-S3
Running idf_monitor in directory G:\espNinethApr\esp-iot-solution-master\examples\usb\host\usb_cdc_4g_module
Executing “G:.espressif\python_env\idf5.4_py3.11_env\Scripts\python.exe G:\esp\v5.4\esp-idf\tools/idf_monitor.py -p COM22 -b 115200 --toolchain-prefix xtensa-esp32s3-elf- --target esp32s3 --revision 0 G:\espNinethApr\esp-iot-solution-master\examples\usb\host\usb_cdc_4g_module\build\usb_cdc_4g_module.elf --force-color -m ‘G:.espressif\python_env\idf5.4_py3.11_env\Scripts\python.exe’
‘G:\esp\v5.4\esp-idf\tools\idf.py’”…
— Warning: GDB cannot open serial ports accessed as COMx
— Using \.\COM22 instead…
— esp-idf-monitor 1.5.0 on \.\COM22 115200
— Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x28 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce2820,len:0x170c
load:0x403c8700,len:0x4
load:0x403c8704,len:0xec4
load:0x403cb700,len:0x3170
entry 0x403c8950
I (27) boot: ESP-IDF v5.4 2nd stage bootloader
I (27) boot: compile time Apr 9 2025 09:55:09
I (27) boot: Multicore bootloader
I (27) boot: chip revision: v0.2
I (30) boot: efuse block revision: v1.3
I (33) qio_mode: Enabling default flash chip QIO
I (38) boot.esp32s3: Boot SPI Speed : 80MHz
I (42) boot.esp32s3: SPI Mode : QIO
I (45) boot.esp32s3: SPI Flash Size : 4MB
I (49) boot: Enabling RNG early entropy source…
I (54) boot: Partition Table:
I (56) boot: ## Label Usage Type ST Offset Length
I (62) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (69) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (75) boot: 2 factory factory app 00 00 00010000 00100000
I (82) boot: 3 storage Unknown data 01 82 00110000 00100000
I (89) boot: End of partition table
I (92) esp_image: segment 0: paddr=00010020 vaddr=3c0b0020 size=2577ch (153468) map
I (122) esp_image: segment 1: paddr=000357a4 vaddr=3fc9d400 size=04a98h ( 19096) load
I (126) esp_image: segment 2: paddr=0003a244 vaddr=40374000 size=05dd4h ( 24020) load
I (131) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=a885ch (690268) map
I (236) esp_image: segment 4: paddr=000e8884 vaddr=40379dd4 size=135f4h ( 79348) load
I (251) esp_image: segment 5: paddr=000fbe80 vaddr=600fe100 size=0001ch ( 28) load
I (261) boot: Loaded app from partition at offset 0x10000
I (261) boot: Disabling RNG early entropy source…
I (271) cpu_start: Multicore app
I (280) cpu_start: Pro cpu start user code
I (280) cpu_start: cpu freq: 240000000 Hz
I (280) app_init: Application information:
I (280) app_init: Project name: usb_cdc_4g_module
I (285) app_init: App version: 1
I (288) app_init: Compile time: Apr 9 2025 09:48:24
I (293) app_init: ELF file SHA256: 1f64ba8c8…
I (298) app_init: ESP-IDF: v5.4
I (301) efuse_init: Min chip rev: v0.0
I (305) efuse_init: Max chip rev: v0.99
I (309) efuse_init: Chip rev: v0.2
I (313) heap_init: Initializing. RAM available for dynamic allocation:
I (319) heap_init: At 3FCA5708 len 00044008 (272 KiB): RAM
I (324) heap_init: At 3FCE9710 len 00005724 (21 KiB): RAM
I (329) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (335) heap_init: At 600FE11C len 00001ECC (7 KiB): RTCRAM
I (341) spi_flash: detected chip: gd
I (343) spi_flash: flash io: qio
W (346) spi_flash: Detected size(8192k) larger than the size in the binary image header(4096k). Using the size in the binary image header.
I (359) sleep_gpio: Configure to isolate all GPIO pins in sleep state
I (365) sleep_gpio: Enable automatic switching of GPIO sleep configuration
I (372) main_task: Started on CPU0
I (391) main_task: Calling app_main()
I (391) led_indicator: LED Indicator Version: 0.3.0
I (391) gpio: GPIO[15]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (397) led_indicator: blink_lists is null, use default blink list
W (403) led_indicator: ./managed_components/espressif__led_indicator/src/led_indicator.c:280 (_led_indicator_create_com):LED indicator does not have the hal_indicator_set_brightness function
I (419) led_indicator: Indicator create successfully. type:GPIO mode, hardware_data:0xf, is_active_level_high:1, blink_lists:default
I (431) led_indicator: LED Indicator Version: 0.3.0
I (435) gpio: GPIO[17]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (444) led_indicator: blink_lists is null, use default blink list
W (450) led_indicator: ./managed_components/espressif__led_indicator/src/led_indicator.c:280 (_led_indicator_create_com):LED indicator does not have the hal_indicator_set_brightness function
I (466) led_indicator: Indicator create successfully. type:GPIO mode, hardware_data:0x11, is_active_level_high:1, blink_lists:default
I (478) led_indicator: LED Indicator Version: 0.3.0
I (483) gpio: GPIO[16]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (491) led_indicator: blink_lists is null, use default blink list
W (497) led_indicator: ./managed_components/espressif__led_indicator/src/led_indicator.c:280 (_led_indicator_create_com):LED indicator does not have the hal_indicator_set_brightness function
I (513) led_indicator: Indicator create successfully. type:GPIO mode, hardware_data:0x10, is_active_level_high:1, blink_lists:default
I (537) 4g_main: ====================================
I (537) 4g_main: ESP 4G Cat.1 Wi-Fi Router
I (537) 4g_main: ====================================
I (540) modem_board: iot_usbh_modem, version: 1.1.4
I (544) modem_board: Force reset modem board…
I (549) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (557) modem_board: Resetting modem using io=13, level=0
I (762) modem_board: Waiting for modem initialize ready
I (5762) USBH_CDC: iot usbh cdc version: 1.0.3
I (5792) esp-modem-dte: Enable second AT port
I (5793) esp-modem: --------- Modem PreDefined Info ------------------
I (5793) esp-modem: Model: User Defined
I (5795) esp-modem: Modem itf 2
I (5798) esp-modem: Secondary AT itf 7
I (5802) esp-modem: ----------------------------------------------------
I (5808) gpio: GPIO[12]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (5817) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
E (6207) ENUM: LANGID 0x409 not found
Found IN endpoint: 138
Found OUT endpoint: 7
I (6208) USBH_CDC: Opened cdc device: 1
*** Device descriptor ***
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0x0
bDeviceSubClass 0x0
bDeviceProtocol 0x0
bMaxPacketSize0 64
idVendor 0x2c7c
idProduct 0x901
bcdDevice 3.10
iManufacturer 1
iProduct 2
iSerialNumber 3
bNumConfigurations 1
*** Configuration descriptor ***
bLength 9
bDescriptorType 2
wTotalLength 263
bNumInterfaces 9
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
bMaxPower 400mA
*** Interface Association Descriptor ***
bLength 8
bDescriptorType 11
bFirstInterface 0
bInterfaceCount 2
bFunctionClass 0x2
bFunctionSubClass 0x6
bFunctionProtocol 0x0
iFunction 4
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 0x2
bInterfaceSubClass 0x6
bInterfaceProtocol 0x0
iInterface 6
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 0x3 INT
wMaxPacketSize 16
bInterval 32
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 0xa
bInterfaceSubClass 0x0
bInterfaceProtocol 0x0
iInterface 0
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 1
bNumEndpoints 2
bInterfaceClass 0xa
bInterfaceSubClass 0x0
bInterfaceProtocol 0x0
iInterface 5
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x1 EP 1 OUT
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 0xff
bInterfaceSubClass 0x0
bInterfaceProtocol 0x0
iInterface 8
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x2 EP 2 OUT
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 0x3 INT
wMaxPacketSize 64
bInterval 32
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 3
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 0xff
bInterfaceSubClass 0x0
bInterfaceProtocol 0x0
iInterface 8
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x3 EP 3 OUT
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 4
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 0xff
bInterfaceSubClass 0x0
bInterfaceProtocol 0x0
iInterface 8
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x86 EP 6 IN
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x4 EP 4 OUT
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 5
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 0xff
bInterfaceSubClass 0x0
bInterfaceProtocol 0x0
iInterface 8
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x87 EP 7 IN
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x5 EP 5 OUT
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 6
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 0xff
bInterfaceSubClass 0x0
bInterfaceProtocol 0x0
iInterface 8
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x88 EP 8 IN
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x6 EP 6 OUT
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 7
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 0xff
bInterfaceSubClass 0x0
bInterfaceProtocol 0x0
iInterface 8
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x8a EP 10 IN
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x7 EP 7 OUT
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x89 EP 9 IN
bmAttributes 0x3 INT
wMaxPacketSize 64
bInterval 32
*** Interface descriptor ***
bLength 9
bDescriptorType 4
bInterfaceNumber 8
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 0xff
bInterfaceSubClass 0x0
bInterfaceProtocol 0x0
iInterface 8
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x8b EP 11 IN
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
*** Endpoint descriptor ***
bLength 7
bDescriptorType 5
bEndpointAddress 0x8 EP 8 OUT
bmAttributes 0x2 BULK
wMaxPacketSize 64
bInterval 0
I (6708) modem_board: DTE reconnect, reconnecting …

I (6713) 4g_main: Modem Board Event: USB connected
Found IN endpoint: 132
Found OUT endpoint: 2
I (6722) USBH_CDC: Opened cdc device: 1
I (6726) USBH_CDC: New device connected, address: 1
I (7713) modem_board: reconnect after 5s…
I (8713) modem_board: reconnect after 4s…
I (9713) modem_board: reconnect after 3s…
I (10713) modem_board: reconnect after 2s…
I (11713) modem_board: reconnect after 1s…
I (11713) modem_board: Modem state STAGE_SYNC, Start
E (11734) esp-modem-dte: esp_dte_handle_line(79): handle line failed
E (11746) esp-modem-dte: esp_dte_handle_line(79): handle line failed
I (11746) modem_board: Network Auto reconnecting …
I (11746) modem_board: Modem state STAGE_SYNC, Success!
W (11746) 4g_main: Modem Board Event: Network disconnected
I (11851) modem_board: Modem state STAGE_CHECK_SIM, Start
I (11862) modem_board: SIM Card Ready
I (11862) modem_board: Modem state STAGE_CHECK_SIM, Success!
I (11862) 4g_main: Modem Board Event: SIM Card Connected
I (11962) modem_board: Modem state STAGE_CHECK_SIGNAL, Start
I (11974) modem_board: Signal quality: rssi=31, ber=99
I (11975) modem_board: Modem state STAGE_CHECK_SIGNAL, Success!
I (12075) modem_board: Modem state STAGE_CHECK_REGIST, Start
I (12088) modem_board: Network registered, Operator: “IND airtel”
I (12088) modem_board: Modem state STAGE_CHECK_REGIST, Success!
I (12188) modem_board: Modem state STAGE_START_PPP, Start
E (22204) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutem_dce: esp_modem_dce_generic_command(26): Command:ATD99**1#
E (32208) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutem_dce: esp_modem_dce_generic_command(26): Command:ATO
E (32211) esp_modem_dce: esp_modem_switch_to_data_mode(145): Resume data mode failed
E (32219) esp_modem_dce: esp_modem_dce_set_working_mode(169): Setting data mode failed
E (32226) esp-modem-dte: esp_modem_dte_change_mode(366): set new working mode:1 failed
E (32234) esp-modem: esp_modem_start_ppp(46): enter ppp mode failed
W (32240) modem_board: Modem state STAGE_START_PPP, Failed, retry1, after 3000ms…
I (35247) modem_board: Modem state STAGE_START_PPP, Start
E (37247) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutem_dce: esp_modem_dce_generic_command(26): Command:AT+CGDCONT=1,“IP”,“internet”
E (37253) esp_modem_dce: esp_modem_switch_to_data_mode(139): setting pdp context failed
E (37260) esp_modem_dce: esp_modem_dce_set_working_mode(169): Setting data mode failed
E (37268) esp-modem-dte: esp_modem_dte_change_mode(366): set new working mode:1 failed
E (37276) esp-modem: esp_modem_start_ppp(46): enter ppp mode failed
W (37282) modem_board: Modem state STAGE_START_PPP, Failed, retry2, after 3000ms…
I (40289) modem_board: Modem state STAGE_START_PPP, Start
E (42289) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutem_dce: esp_modem_dce_generic_command(26): Command:AT+CGDCONT=1,“IP”,“internet”
E (42295) esp_modem_dce: esp_modem_switch_to_data_mode(139): setting pdp context failed
E (42302) esp_modem_dce: esp_modem_dce_set_working_mode(169): Setting data mode failed
E (42310) esp-modem-dte: esp_modem_dte_change_mode(366): set new working mode:1 failed
E (42318) esp-modem: esp_modem_start_ppp(46): enter ppp mode failed
W (42324) modem_board: Modem state STAGE_START_PPP, Failed, retry3, after 3000ms…
I (45331) modem_board: Modem state STAGE_START_PPP, Start
E (47331) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutem_dce: esp_modem_dce_generic_command(26): Command:AT+CGDCONT=1,“IP”,“internet”
E (47337) esp_modem_dce: esp_modem_switch_to_data_mode(139): setting pdp context failed
E (47344) esp_modem_dce: esp_modem_dce_set_working_mode(169): Setting data mode failed
E (47352) esp-modem-dte: esp_modem_dte_change_mode(366): set new working mode:1 failed
E (47360) esp-modem: esp_modem_start_ppp(46): enter ppp mode failed
W (47366) modem_board: Modem state STAGE_START_PPP, Failed, retry4, after 3000ms…
I (50373) modem_board: Modem state STAGE_START_PPP, Start
E (52373) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutem_dce: esp_modem_dce_generic_command(26): Command:AT+CGDCONT=1,“IP”,“internet”
E (52379) esp_modem_dce: esp_modem_switch_to_data_mode(139): setting pdp context failed
E (52386) esp_modem_dce: esp_modem_dce_set_working_mode(169): Setting data mode failed
E (52394) esp-modem-dte: esp_modem_dte_change_mode(366): set new working mode:1 failed
E (52402) esp-modem: esp_modem_start_ppp(46): enter ppp mode failed
E (52408) modem_board: Modem state STAGE_START_PPP, retry 5, timeout !
W (52414) modem_board: Retry From Start !
I (52417) modem_board: Modem state STAGE_SYNC, Start
E (54432) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutem_dce: esp_modem_dce_generic_command(26): Command:AT
I (54445) modem_board: Current timeouts: 1 and errors: 0
W (54445) modem_board: Try to exit ppp mode…
E (64445) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
W (64445) esp_modem_dce: esp_modem_dce_generic_command(26): Command:+++ response timeout
E (66448) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutem_dce: esp_modem_dce_generic_command(26): Command:AT
I (66461) modem_board: Current timeouts: 2 and errors: 0
W (66461) modem_board: Reset modem through reset pin…
W (66462) 4g_main: Modem Board Event: Hardware restart
I (66462) modem_board: modem_board_reset!
I (71670) 4g_main: Modem Board Event: Hardware restart done
E (73670) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutem_dce: esp_modem_dce_generic_command(26): Command:AT
I (73683) modem_board: Current timeouts: 3 and errors: 0
W (73683) modem_board: Reset modem through reset pin…
W (73684) 4g_main: Modem Board Event: Hardware restart
I (73684) modem_board: modem_board_reset!
I (78892) 4g_main: Modem Board Event: Hardware restart done
E (80892) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutem_dce: esp_modem_dce_generic_command(26): Command:AT
I (80905) modem_board: Current timeouts: 4 and errors: 0
W (80905) modem_board: Reset modem through power pin…
W (80906) 4g_main: Modem Board Event: Hardware restart
I (80906) modem_board: modem_board_power_down!
I (89415) modem_board: modem_board_power_up!
I (97915) 4g_main: Modem Board Event: Hardware restart done
E (99915) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutem_dce: esp_modem_dce_generic_command(26): Command:AT
I (99928) modem_board: Current timeouts: 5 and errors: 0
W (99928) modem_board: Reset modem through power pin…
W (99929) 4g_main: Modem Board Event: Hardware restart
I (99929) modem_board: modem_board_power_down!
I (108438) modem_board: modem_board_power_up!
I (116938) 4g_main: Modem Board Event: Hardware restart done
E (118938) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutdem_dce: esp_modem_dce_generic_command(26): Command:AT
E (118941) modem_board: modem_board_start_up(225): sending sync failed
I (118948) modem_board: Modem state STAGE_SYNC, Start
E (120962) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutdem_dce: esp_modem_dce_generic_command(26): Command:AT
I (120975) modem_board: Current timeouts: 1 and errors: 0
W (120975) modem_board: Try to exit ppp mode…
E (130975) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
W (130975) esp_modem_dce: esp_modem_dce_generic_command(26): Command:+++ response timeout
E (132978) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutdem_dce: esp_modem_dce_generic_command(26): Command:AT
I (132991) modem_board: Current timeouts: 2 and errors: 0
W (132991) modem_board: Reset modem through reset pin…
W (132992) 4g_main: Modem Board Event: Hardware restart
I (132992) modem_board: modem_board_reset!
I (138201) 4g_main: Modem Board Event: Hardware restart done
E (140201) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutdem_dce: esp_modem_dce_generic_command(26): Command:AT
I (140214) modem_board: Current timeouts: 3 and errors: 0
W (140214) modem_board: Reset modem through reset pin…
W (140215) 4g_main: Modem Board Event: Hardware restart
I (140215) modem_board: modem_board_reset!
I (145424) 4g_main: Modem Board Event: Hardware restart done
E (147424) esp-modem-dte: esp_modem_dte_send_cmd(280): process command timeout
response timeoutdem_dce: esp_modem_dce_generic_command(26): Command:AT
I (147437) modem_board: Current timeouts: 4 and errors: 0
W (147437) modem_board: Reset modem through power pin…
W (147438) 4g_main: Modem Board Event: Hardware restart

Just from this, it seems that the AT port is working.

From this, it seems that the usb serial port is not working.