Description
The EC20-4G module is a 4G LTE communication module produced by Quectel, supporting multi-band LTE network connections, suitable for IoT, vehicle communication and other application scenarios. This module integrates rich interfaces and features to meet various data transmission requirements.
- Model:
EC20CEHDLG-MINIPCIE-C - Interface Type:
Mini PCIe - LCSC Mall Number:
C2916192 - LCSC Mall Purchase Link: 👉:EC20-4G Module (Mini PCIe Interface)

Downloading Corresponding Image
Use Network Disk🚀 to download the provided .img image file in the System Image/Ubuntu24/ directory.
The image used in this document is: TaishanPi-3M-RK3576_Ubuntu24-Xubuntu_AP6256-EC20.img
Select an image with
ec20in its name.
Connecting the Module
Insert SIM card:
Important Note: The SIM card must be a
4Gnetwork card and must have data service enabled, otherwise it cannot connect to the internet.
Insert the EC20-4G module into the development board's Mini PCIe interface and connect the antenna.
Flashing Image to Development Board
Reference Finished Image Flashing to flash the downloaded image to the development board.
Configuring EC20-4G Module
Note
When the EC20-4G module is powered on for the first time, we need to configure some basic settings and use WWAN dial-up to use the 4G network normally.
Switch to root user with the following command:
sudo suThen enter the following command:
echo -e 'AT+QCFG="usbnet",1\r' > /dev/ttyUSB2Then restart the development board:
rebootNetwork Testing
Start the system, log in to the serial terminal, and check if the device starting with enx exists:
Serial terminal reference: Serial Debug Usage
ifconfigMake sure WiFi is disconnected and only use 4G network for testing.
Use ping command to test if the network is working:
ping www.baidu.com