Device Debugging

Check the EG25-G status over the USB serial port, switch operating modes, and perform a factory reset.
Serial Connection
Checking the Serial Ports
root@OpenWrt:~# ls /dev/ttyUSB*
/dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2 /dev/ttyUSB3
| Port | Purpose |
|---|---|
/dev/ttyUSB0 | Diagnostics (DM) |
/dev/ttyUSB1 | NMEA |
/dev/ttyUSB2 | AT commands |
/dev/ttyUSB3 | AT / NMEA (backup) |
Starting minicom
minicom -D /dev/ttyUSB2 -b 9600
Send AT; a reply of OK means communication is working:
AT
OK
To exit: press Ctrl + A, then X, and select Yes.
- The AT port baud rate measured on this device is
9600; if another firmware does not respond, try115200. - Commands end with a carriage return; in minicom just press Enter.
Common AT Commands
Basic Information
| Command | Description | Example response |
|---|---|---|
AT | Test communication | OK |
ATI | Module model and firmware version | Quectel / EG25 / Revision: EG25GGBR07A08M2G |
AT+CPIN? | SIM card status | +CPIN: READY |
AT+CSQ | Signal quality | +CSQ: 31,99 |
AT+CFUN? | RF status | +CFUN: 1 |
AT+QTEMP | Module temperature | +QTEMP: 0,40,0 |
The first value of
AT+CSQis the signal strength (0~31, higher is better; 99 means unknown).If the signal is good but there is no Internet access, focus on whether the SIM has sufficient balance and whether the APN is correct.
USB Operating Mode
AT+QCFG="usbnet"
+QCFG: "usbnet",1
OK
| Parameter | Mode | Host-side driver |
|---|---|---|
| 0 | QMI / RMNET | kmod-usb-net-qmi-wwan + uqmi |
| 1 | ECM | kmod-usb-net-cdc-ether |
| 2 | MBIM | kmod-usb-net-cdc-mbim + umbim |
| 3 | RNDIS | kmod-usb-net-rndis |
Switching modes (ECM as an example):
AT+QCFG="usbnet",1
OK
AT+CFUN=1,1
The module must be restarted after the change; USB re-enumerates.
Reset and Reboot
| Command | Function | Description |
|---|---|---|
AT+CFUN=1,1 | Software reboot | Most commonly used; the module re-registers automatically after rebooting |
AT&F | Restore default AT command settings | Does not affect user data |
AT+QPRTPARA=3 | Restore factory NV configuration | Clears settings such as APN and USB mode |
AT+QPOWD=1 | Power off | Requires power cycling to start again |
AT+QPRTPARA=3 is a factory reset operation; run AT+CFUN=1,1 afterwards to reboot and reconfigure the usbnet mode.
Complete Reset Sequence
AT
OK
AT&F
OK
AT+QPRTPARA=3
OK
AT+CFUN=1,1
Wait 30~60 seconds for the module to re-enumerate, then follow Quick Install - Linux / OpenWrt to configure ECM mode.
FAQ
| Symptom | Troubleshooting |
|---|---|
| No response to AT commands | Confirm the port is /dev/ttyUSB2 and the baud rate is 9600 |
Command returns ERROR | Check the spelling; some commands require the SIM to be ready or the RF to be enabled |
| USB disappears after a command | Normal; the module is rebooting, wait for re-enumeration |
+CPIN: READY but no IP | Check the usbnet mode and whether the interface proto is dhcp |