Device Debugging

minicom operations, RNDIS / NCM / ECM and dial-up settings, and reboot commands for the GT400 (MT5710-CN). It comes in two versions:
- 📋 Simplified version (quick reference): a ready-to-use list of concise commands.
- 📖 Detailed version (with meanings and usage): explains each item's function, parameters, scenarios and precautions.
📋 Simplified Version (Quick Reference)
1. Serial Port Binding and Connection
# Bind option (VID:PID = 3466:3301)
echo 3466 3301 > /sys/bus/usb-serial/drivers/option1/new_id
# Enter minicom (the AT port is usually /dev/ttyUSB1)
minicom -D /dev/ttyUSB1 -b 115200
# To exit: Ctrl + A, then Q (or X), select Yes
2. Basic Test
AT # Test communication; a reply of OK means normal
ATE0 # Disable echo
ATI # Manufacturer / model / version / IMEI
3. Network Mode (USB Data Mode)
AT^SETMODE? # Query
AT^SETMODE=6 # Windows RNDIS (first choice)
AT^SETMODE=1 # Windows NCM (alternative)
AT^SETMODE=4 # Linux NCM (first choice for OpenWrt)
AT^SETMODE=0 # ECM (Mac requires USB E5)
AT^SETE5STICK=0 # USB Stick mode
AT^CFGMASKMODE=2 # /32 mask, avoids large subnet conflicts (common on Linux)
4. APN and Dial-Up
AT+CGDCONT=1,"IPV4V6","ctnet" # Configure the APN (China Telecom example)
AT^NDISSTATQRY? # Query the dial-up status
AT^NDISDUP=1,1,"ctnet" # Dial immediately
AT^DHCP? # View the module-side IP
AT^SETAUTODIAL=1,1,"IPV4V6","ctnet","","",0 # Auto-dial on boot
AT^SETAUTODIAL? # Query auto-dial
5. Network Status
AT+CSQ # Signal quality
AT+COPS? # Operator
AT^SYSINFOEX # System / RAT information
AT^HCSQ? # 5G signal quality
6. Module Reboot
AT+CFUN=0 # Disable RF
AT+CFUN=1 # Enable RF
AT^RESET # Module reset
📖 Detailed Version (with Meanings and Usage)
🔌 Serial Tool Operations (minicom)
| Operation | Command/Key | Description |
|---|---|---|
| Bind the serial port | echo 3466 3301 > /sys/bus/usb-serial/drivers/option1/new_id | Required when the VID/PID is not in the whitelist |
| Connect to the module | minicom -D /dev/ttyUSB1 -b 115200 | Baud rate 115200 |
| Send AT commands | Type the command and press Enter | A reply of OK means success |
| Exit the terminal | Ctrl + A → Q/X → Yes | Exits minicom |
The AT port measured on this device is usually
/dev/ttyUSB1(PC UI Interface). If there is no response, tryttyUSB0/2in turn.
🆔 Identity Commands
ATI / AT+CGMI / AT+CGMM / AT+CGMR / AT+CGSN
- Function: read the manufacturer, model, firmware and IMEI.
- Sample device example:
Manufacturer: TD Tech Ltd.
Model: MT5710_CN
Revision: V100R001C00B156
IMEI: 863495062411317
🌐 Network Mode Settings (RNDIS / NCM / ECM)
AT^SETMODE=<mode>
- Function: sets the USB data mode.
- Common values:
| Value | Mode | Recommendation |
|---|---|---|
6 | RNDIS | First choice for Windows |
1 | Win10 NCM | Alternative for Windows |
4 | Linux NCM | First choice for OpenWrt / Linux |
0 | ECM | Mac (requires USB E5) / alternative for Linux |
- Note: after changing, run
AT^RESET, orAT+CFUN=0→AT+CFUN=1, or replug USB.
AT^SETE5STICK=0 / 1
0: USB Stick; the host obtains the carrier-side IP (daily Windows / Linux use).1: used withAT^TDCFG="infcfg","mode",2for USB E5 (LAN NAT, recommended for Mac).
AT^CFGMASKMODE=2
- Function: sets the mask policy to /32, avoiding the module advertising too large a subnet (such as
/8) that overrides LAN routes.
📶 Dial-Up and Auto-Dial
AT+CGDCONT=1,"IPV4V6","ctnet"
- Function: configures the APN for CID 1.
- Parameter: change the APN according to the carrier (China Telecom
ctnetis only an example).
AT^NDISDUP=1,1,"ctnet"
- Function: dials immediately.
AT^SETAUTODIAL=1,1,"IPV4V6","ctnet","","",0
- Function: auto-dial on boot.
- How to read it: the first
1= enable; the second1= USB data transfer mode; empty username/password;0= no authentication.
🔄 Module Reboot Commands
| Command | Function | Use case |
|---|---|---|
AT+CFUN=0 / AT+CFUN=1 | Disable / enable RF | Re-search for a network after changing parameters |
AT^RESET | Module reset | Recover from abnormal configuration or USB descriptors |
✅ Comprehensive Example Workflow (Linux NCM)
echo 3466 3301 > /sys/bus/usb-serial/drivers/option1/new_id
minicom -D /dev/ttyUSB1 -b 115200
AT
ATI
AT^SETMODE=4
AT^SETE5STICK=0
AT^CFGMASKMODE=2
AT+CFUN=0
AT+CFUN=1
AT+CGDCONT=1,"IPV4V6","ctnet"
AT^NDISDUP=1,1,"ctnet"
AT^SETAUTODIAL=1,1,"IPV4V6","ctnet","","",0
AT^NDISSTATQRY?
After exiting minicom:
ip addr show usb0
ping -I usb0 -c 4 223.5.5.5
📌 Important Notes
- All AT commands are sent with Enter.
- The
new_idbinding is lost after a reboot; write it to a startup script if persistence is needed. - After changing the mode / mask, reboot the RF or replug the device.
- Support for extended commands may differ slightly between firmware versions; refer to the module manual.
- For complete steps on each platform, see the Windows / Linux / Mac installation documents.