Skip to main content

Device Debugging

Navigation bar

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)​

OperationCommand/KeyDescription
Bind the serial portecho 3466 3301 > /sys/bus/usb-serial/drivers/option1/new_idRequired when the VID/PID is not in the whitelist
Connect to the moduleminicom -D /dev/ttyUSB1 -b 115200Baud rate 115200
Send AT commandsType the command and press EnterA reply of OK means success
Exit the terminalCtrl + A → Q/X → YesExits minicom

The AT port measured on this device is usually /dev/ttyUSB1 (PC UI Interface). If there is no response, try ttyUSB0/2 in 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:
ValueModeRecommendation
6RNDISFirst choice for Windows
1Win10 NCMAlternative for Windows
4Linux NCMFirst choice for OpenWrt / Linux
0ECMMac (requires USB E5) / alternative for Linux
  • Note: after changing, run AT^RESET, or AT+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 with AT^TDCFG="infcfg","mode",2 for 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 ctnet is 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 second 1 = USB data transfer mode; empty username/password; 0 = no authentication.

🔄 Module Reboot Commands​

CommandFunctionUse case
AT+CFUN=0 / AT+CFUN=1Disable / enable RFRe-search for a network after changing parameters
AT^RESETModule resetRecover 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_id binding 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.
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 →