Skip to main content

Device Debugging

Navigation bar

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
PortPurpose
/dev/ttyUSB0Diagnostics (DM)
/dev/ttyUSB1NMEA
/dev/ttyUSB2AT commands
/dev/ttyUSB3AT / 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.

Tip
  • The AT port baud rate measured on this device is 9600; if another firmware does not respond, try 115200.
  • Commands end with a carriage return; in minicom just press Enter.

Common AT Commands​

Basic Information​

CommandDescriptionExample response
ATTest communicationOK
ATIModule model and firmware versionQuectel / EG25 / Revision: EG25GGBR07A08M2G
AT+CPIN?SIM card status+CPIN: READY
AT+CSQSignal quality+CSQ: 31,99
AT+CFUN?RF status+CFUN: 1
AT+QTEMPModule temperature+QTEMP: 0,40,0

The first value of AT+CSQ is 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
ParameterModeHost-side driver
0QMI / RMNETkmod-usb-net-qmi-wwan + uqmi
1ECMkmod-usb-net-cdc-ether
2MBIMkmod-usb-net-cdc-mbim + umbim
3RNDISkmod-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​

CommandFunctionDescription
AT+CFUN=1,1Software rebootMost commonly used; the module re-registers automatically after rebooting
AT&FRestore default AT command settingsDoes not affect user data
AT+QPRTPARA=3Restore factory NV configurationClears settings such as APN and USB mode
AT+QPOWD=1Power offRequires power cycling to start again
Note

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​

SymptomTroubleshooting
No response to AT commandsConfirm the port is /dev/ttyUSB2 and the baud rate is 9600
Command returns ERRORCheck the spelling; some commands require the SIM to be ready or the RF to be enabled
USB disappears after a commandNormal; the module is rebooting, wait for re-enumeration
+CPIN: READY but no IPCheck the usbnet mode and whether the interface proto is dhcp
AI Translation Notice

This page was translated into English by AI and is provided for reference only. The original document is written in Chinese. If there is any discrepancy, the Chinese version prevails.

本页英文内容由 AI 自动翻译生成,仅供参考;原文为中文,如有差异请以中文原文为准。

查看中文原文 / View the Chinese original →