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 or Get started with 4G/LTE Cellular Modem Kit.
Hardware
- Base HAT or 4G/LTE Cellular Modem Kit with a Quectel moduleAssembled as in the quickstart of the Base HAT or the 4G/LTE kit, with the USB cable connected. For example an EC25 or EG25-G.
SIM
- SIM card with data serviceIts APN:
superfor the Sixfab SIM. For another SIM, ask its provider.
Software
- Linux with kernel 3.4 or laterFor example Raspberry Pi OS, Debian or Ubuntu.
- Serial terminalTo send AT commands: see Send AT commands.
Stop ModemManager
-
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:sudo systemctl stop ModemManager.service sudo systemctl disable ModemManager.service
Install tools
-
Install build tools and udhcpc
sudo apt update sudo apt install -y build-essential wget unzip udhcpcquectel-CMusesudhcpcand itsdefault.scriptto 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.
-
Check setting
AT+QCFG="usbnet"QMI mode answers
+QCFG: "usbnet",0. With another value, continue. -
Set QMI mode and restart module
AT+QCFG="usbnet",0 AT+CFUN=1,1 -
Check QMI control device
After 10 to 15 seconds:
ls /dev/cdc-wdm*The answer lists a device, for example
/dev/cdc-wdm0.
Download and build QConnectManager
-
Download and build quectel-CM
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 makemakebuilds thequectel-CMprogram in the same directory.
Connect
-
Start quectel-CM with APN
Start
quectel-CMwith the APN of your SIM, heresuperfor the Sixfab SIM:sudo ./quectel-CM -s super &-stakes 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 asquectel-CMruns.
Verify
-
Check interface address
After a few seconds,
wwan0has an IP address:ip a show wwan0Result:wwan0has an IP address. -
Ping through cellular interface
Ping an address and a name through the interface; replies to the second also show that DNS works:
ping -I wwan0 -c 3 8.8.8.8 ping -I wwan0 -c 3 sixfab.comResult: replies to both; the replies tosixfab.comalso show that DNS works.
Details
Stop connection
sudo killall quectel-CM
Troubleshooting
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.
Check that udhcpc is installed: quectel-CM uses it to configure the interface.
Check the SIM (AT+CPIN?), the registration (AT+CREG?) and the APN.
Power, SIM, antenna and USB checks are in the Base HAT troubleshooting; questions about QConnectManager in the Quectel forum.
Next steps
- QConnectManager Linux User Guide Quectel’s guide: supported modules, options and troubleshooting.
- Connect cellular module in QMI mode with libqmi Another QMI method, for Quectel and Telit modules.
- Connect cellular module to internet in ECM mode The module as a USB Ethernet interface, without extra software.
- Send AT commands to cellular module Find the AT port and send commands with Minicom or ATCom.