---
title: "Connect Quectel module with quectel-CM"
description: "Build Quectel's QConnectManager and use quectel-CM to connect an EC25 or EG25-G module in QMI mode; it sets the IP address, DNS and routes of the interface."
url: "https://docs.sixfab.com/guides/connect-quectel-module-quectel-cm/"
last_updated: "2026-10-12"
---

# Connect Quectel module with quectel-CM

Build Quectel’s QConnectManager and use quectel-CM to connect an EC25 or EG25-G module in QMI mode; it sets the IP address, DNS and routes of the interface.

**Works with:** [Base HAT](https://docs.sixfab.com/cellular/base-hat/), [4G/LTE Cellular Modem Kit](https://docs.sixfab.com/cellular/4g-lte-cellular-modem-kit/)

QConnectManager is Quectel’s connection manager for Linux; its program, `quectel-CM`, starts the data connection of the module and configures the IP address, DNS and routing of the interface. The commands are shown with the EG25-G.

## Requirements

Finish the quickstart of the board first: [Get started with Base HAT](https://docs.sixfab.com/cellular/base-hat/quickstart/) or [Get started with 4G/LTE Cellular Modem Kit](https://docs.sixfab.com/cellular/4g-lte-cellular-modem-kit/quickstart/).

**Required**

**Hardware**

- **Base HAT or 4G/LTE Cellular Modem Kit with a Quectel module**: Assembled as in the quickstart of the [Base HAT](https://docs.sixfab.com/cellular/base-hat/quickstart/) or the [4G/LTE kit](https://docs.sixfab.com/cellular/4g-lte-cellular-modem-kit/quickstart/), with the USB cable connected. For example an EC25 or EG25-G.

**SIM**

- **SIM card with data service**: Its APN: `super` for the Sixfab SIM. For another SIM, ask its provider.

**Software**

- **Linux with kernel 3.4 or later**: For example Raspberry Pi OS, Debian or Ubuntu.
- **Serial terminal**: To send AT commands: see [Send AT commands](https://docs.sixfab.com/guides/send-at-commands-cellular-module/).

## Stop ModemManager

1. **Stop and disable ModemManager**

   On Raspberry Pi OS Bookworm and later, ModemManager is installed by default and can take over the module. Stop and disable it, or remove it with `sudo apt purge modemmanager -y`:

   ```bash
   sudo systemctl stop ModemManager.service
   sudo systemctl disable ModemManager.service
   ```

## Install tools

1. **Install build tools and udhcpc**

   ```bash
   sudo apt update
   sudo apt install -y build-essential wget unzip udhcpc
   ```

   `quectel-CM` uses `udhcpc` and its `default.script` to set the IP address, DNS servers and routes of the interface.

## Set module to QMI mode

QMI mode is the factory setting of the EC25 and EG25-G. These commands apply to Quectel USB modules with the `AT+QCFG="usbnet"` setting; other module families can differ, see the [QConnectManager Linux User Guide](https://sixfab.com/wp-content/uploads/2024/01/Quectel_QConnectManager_Linux_User_Guide_V1.0.pdf).

1. **Check setting**

   ```text
   AT+QCFG="usbnet"
   ```

   QMI mode answers `+QCFG: "usbnet",0`. With another value, continue.

2. **Set QMI mode and restart module**

   ```text
   AT+QCFG="usbnet",0
   AT+CFUN=1,1
   ```

3. **Check QMI control device**

   After 10 to 15 seconds:

   ```bash
   ls /dev/cdc-wdm*
   ```

   The answer lists a device, for example `/dev/cdc-wdm0`.

## Download and build QConnectManager

1. **Download and build quectel-CM**

   ```bash
   cd ~
   wget https://sixfab.com/wp-content/uploads/2023/09/Quectel_QConnectManager_Linux_V1.6.5.zip
   unzip -q Quectel_QConnectManager_Linux_V1.6.5.zip
   mv Quectel_QConnectManager_Linux_V1.6.5 quectel-cm
   cd quectel-cm
   make
   ```

   `make` builds the `quectel-CM` program in the same directory.

## Connect

1. **Start quectel-CM with APN**

   Start `quectel-CM` with the APN of your SIM, here `super` for the Sixfab SIM:

   ```bash
   sudo ./quectel-CM -s super &
   ```

   `-s` takes the APN, then a username, a password and the authentication type (0 none, 1 PAP, 2 CHAP) if the operator uses them. The connection lasts as long as `quectel-CM` runs.

## Verify

1. **Check interface address**

   After a few seconds, `wwan0` has an IP address:

   ```bash
   ip a show wwan0
   ```

   **Result:** `wwan0` has an IP address.

2. **Ping through cellular interface**

   Ping an address and a name through the interface; replies to the second also show that DNS works:

   ```bash
   ping -I wwan0 -c 3 8.8.8.8
   ping -I wwan0 -c 3 sixfab.com
   ```

   **Result:** replies to both; the replies to `sixfab.com` also show that DNS works.

## Details

### Stop connection

```bash
sudo killall quectel-CM
```

## Troubleshooting

### The control device /dev/cdc-wdm0 does not appear

Check the USB cable and that the module is powered, the QMI mode (`AT+QCFG="usbnet"`), and that `lsusb -t` shows the `qmi_wwan` driver for the module.

### The wwan0 interface has no IP address, route or DNS

Check that `udhcpc` is installed: `quectel-CM` uses it to configure the interface.

### The module does not connect

Check the SIM (`AT+CPIN?`), the registration (`AT+CREG?`) and the APN.

Power, SIM, antenna and USB checks are in the [Base HAT troubleshooting](https://docs.sixfab.com/cellular/base-hat/troubleshooting/); questions about QConnectManager in the [Quectel forum](https://forums.quectel.com/search?q=quectel-cm).

## Next steps

- [QConnectManager Linux User Guide](https://sixfab.com/wp-content/uploads/2024/01/Quectel_QConnectManager_Linux_User_Guide_V1.0.pdf): Quectel’s guide: supported modules, options and troubleshooting.
- [Connect cellular module in QMI mode with libqmi](https://docs.sixfab.com/guides/connect-cellular-module-qmi-mode-libqmi/): Another QMI method, for Quectel and Telit modules.
- [Connect cellular module to internet in ECM mode](https://docs.sixfab.com/guides/connect-cellular-module-internet-ecm-mode/): The module as a USB Ethernet interface, without extra software.
- [Send AT commands to cellular module](https://docs.sixfab.com/guides/send-at-commands-cellular-module/): Find the AT port and send commands with Minicom or ATCom.
