Skip to main content

Device Debugging

Navigation bar

Check the SIM, signal and registration status of the BG95-M3 over the USB serial port, and switch the USB composition.


First: Does the Current Composition Have an AT Port?​

USB compositionAT portNetwork interface
modemYes (/dev/ttyUSB*)No
ecmNoYes (eth2 / usb0)
rmnetYesYes (QMI)
rndisYesYes (usb0)
Limitations of the ECM Composition

When the BG95 is in the ecm composition, only the ECM network adapter is exposed over USB; no AT serial port appears at all (neither /dev/ttyUSB* nor /dev/ttyACM*).

This is a design limitation of the module itself, not a driver issue. To send AT commands, you must either:

  • Switch to the modem / rmnet / rndis composition, or
  • Use the module's MAIN_RXD / MAIN_TXD main serial port

Serial Connection (modem Composition)​

Installing the Serial Driver​

# opkg
opkg install kmod-usb-serial-option

# apk
apk add kmod-usb-serial-option

Checking the Serial Ports​

root@OpenWrt:~# ls /dev/ttyUSB*

Starting minicom​

minicom -D /dev/ttyUSB2 -b 115200

Send AT; a reply of OK means communication is working:

AT
OK

If you are not sure which port to use, send ATI to each of /dev/ttyUSB0 through /dev/ttyUSB3 to identify it.

The default baud rate is 115200; try 9600 if there is no response.

To exit: press Ctrl + A, then X, and select Yes.


Switching the USB Composition​

Querying the Current Composition​

AT+QCFGEXT="usbnet"
+QCFGEXT: "usbnet","ecm"
OK

Common Compositions​

CommandCompositionDescription
AT+QCFGEXT="usbnet","modem"ModemDIAG + GNSS + Modem + Modem, with an AT port
AT+QCFGEXT="usbnet","ecm"ECMDirect network adapter, no AT port
AT+QCFGEXT="usbnet","rmnet"RMNETQMI network adapter + AT port
AT+QCFGEXT="usbnet","rndis"RNDISRNDIS network adapter + AT port

The module must be restarted after switching:

AT+CFUN=1,1

Checking Registration Status​

The following commands must be executed in the modem / rmnet / rndis composition.

Basic Status​

CommandDescriptionNormal response
ATTest communicationOK
ATIModule model/firmwareQuectel / BG95-M3 / Revision: ...
AT+CPIN?SIM card status+CPIN: READY
AT+CSQSignal quality+CSQ: 20,99 (0~31, higher is better)
AT+CFUN?RF status+CFUN: 1

Network Registration​

CommandDescription
AT+CEREG?EPS registration status (the main indicator for LTE-M / NB-IoT)
AT+CGREG?GPRS registration status
AT+COPS?Current operator
AT+QNWINFOCurrent network standard and frequency band
AT+QCSQDetailed signal strength/quality

Meaning of the registration status:

ResponseMeaning
+CEREG: 0,1Registered (home network)
+CEREG: 0,5Registered (roaming)
+CEREG: 0,2Searching
+CEREG: 0,3Registration denied
+CEREG: 0,0Not registered, not searching

A Complete Check Sequence​

AT
OK

ATI
Quectel
BG95-M3
Revision: BG95M3LAR02A04_01.003.01.003
OK

AT+CPIN?
+CPIN: READY
OK

AT+CSQ
+CSQ: 24,99
OK

AT+CEREG?
+CEREG: 0,1
OK

AT+COPS?
+COPS: 0,0,"CHINA MOBILE",7
OK

AT+QNWINFO
+QNWINFO: "LTEM","46000",...
OK

+CEREG: 0,1 together with a +CSQ value other than 99 means the module has registered successfully.

If AT+CPIN? returns +CME ERROR: 10 (SIM not inserted), check the card slot orientation.

Data Connection (Optional)​

In the ECM/RNDIS composition the module dials automatically, so manual APN configuration is usually unnecessary. If you switch to the modem composition and need to activate the PDP context manually:

AT+QICSGP=1,1,"<APN>","","",1
OK

AT+QIACT=1
OK

AT+QILOCIP
192.168.225.x

<APN> is provided by the carrier, for example cmnet, ctnet, 3gnet.


Reset and Reboot​

CommandFunctionDescription
AT+CFUN=1,1Software rebootMost commonly used
AT&FRestore default AT command settingsDoes not affect user data
AT+QPRTPARA=3Restore factory NV configurationClears settings such as USB composition/APN
AT+QPOWD=1Power offRequires power cycling to restart
Note

After AT+QPRTPARA=3, the module restores the default USB composition (usually modem); run AT+CFUN=1,1 afterwards to reboot.


FAQ​

SymptomTroubleshooting
No /dev/ttyUSB*Currently in the ECM composition, which is normal; switch to the modem composition
No response to AT commandsVerify the serial port and baud rate (115200/9600), and try another ttyUSB port
+CEREG: 0,3The SIM does not have Cat M1/NB-IoT enabled, has insufficient balance, or the band is unsupported
+CSQ: 99,99No signal; check the antenna and location
Registered but no Internet accessCheck the APN, PDP activation status and data plan
Module keeps rebootingInsufficient USB power; use a powered hub
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 →