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


