Overview
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 functions 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 the Corresponding Image
Download our provided .img image file from the Network Disk🚀 in the System Image/Debian12/ directory.
The image used in this document is: TaishanPi-3M-RK3576_Debian12-Xfce_AP6256-EC20.img
Choose the image with
ec20in its name.
Connecting the Module
Insert the 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 board's Mini PCIe interface and connect the antenna properly.
Flashing the Image to the Development Board
Refer to Finished Image Flashing to flash the downloaded image file to the development board.
Configuring the EC20-4G Module
Note
When the EC20-4G module is powered on for the first time, we need to perform some basic configuration to use WWAN dial-up to connect to the internet and properly use the 4G network.
Use the following command to switch to root user:
sudo suThen enter the following command:
echo -e 'AT+QCFG="usbnet",1\r' > /dev/ttyUSB2Then restart the development board:
rebootNetwork Connection Test
Start the system, log in to the serial terminal, and check if the device starting with enx exists:
For serial terminal reference: Serial Debug Usage
ifconfigMake sure WiFi is disconnected and only use 4G network for testing.
Use the ping command to test if the network is working:
ping www.baidu.com