Skip to content

Y201-G Mini 4G DTU Technical Manual

Table of Contents

  1. Introduction
  2. System Overview
  3. Hardware Interfaces
  4. Electrical Specifications
  5. Serial Configuration & Packaging
  6. Cellular Networking & Data Transmission
  7. Modbus Polling & JSON Reporting
  8. Advanced Functions
  9. Remote Management & Diagnostics
  10. AT Command Highlights

1. Introduction

Y201-G is the MiniLink Series 4G LTE member of the Y201 mini DTU family. It targets cabinets and edge panels that need cellular backhaul without changing existing RS485/RS232 wiring, delivering Cat1 LTE connectivity, SIM lifecycle management, and remote diagnostics inside a palm-sized DTU. With built-in TCP/UDP/HTTP/MQTT channels, MiniLink Y201-G moves factory, power, and environmental telemetry to cloud platforms even in harsh, power-constrained cabinets.

ItemDescription
MCU & OSIndustrial MCU with real-time task scheduler and hardware watchdog
Serial InterfacesRS485 (2-pin), RS232 (3-pin), TTL (3-pin), selectable
Cellular UplinkLTE Cat1 full-netcom with integrated SIM tray
Dimensions74.6 × 22.6 × 18.1 mm (without ears/antenna base)
MountingDIN-rail clip or panel mounting ears

Positioning Highlights

  • Palm-sized cellular DTU gateway for power, building automation, environmental monitoring, and OEM controller retrofits
  • Provides 4 concurrent socket pipelines for redundant or multi-host connectivity over LTE networks
  • Built-in Modbus polling and JSON reporting reduce SCADA workload and bandwidth consumption

2. System Overview

  • Architecture: Industrial MCU + RTOS scheduler; hardware watchdog + software exception handling for continuous uptime.
  • Serial Access: Shared UART routed to pluggable RS485 (2-pin), RS232 (3-pin), or TTL (3-pin) headers. Only one interface is active at a time and can be switched via firmware.
  • Cellular Stack: Cat1 LTE modem supporting LTE-FDD B1/B3/B5/B8 and LTE-TDD B34/B38/B39/B40/B41 with automatic network registration, APN selection, and SIM status detection.
  • Firmware Services: Multi-socket manager, HTTP client engine (GET/POST/AUTO modes), MQTT publish/subscribe including Aliyun-compatible auth, Modbus polling with JSON rendering, ASCII/HEX converters, remote upgrade routines.
  • Indicators: POWER LED (steady = powered), WORK LED (fast blink before network attach, slow blink after attach), DATA LED (off = server disconnected, on = connected, blink = data traffic).

3. Hardware Interfaces

3.1 Power & Connectors

GroupDescription
Power5-pin pluggable terminal (2.54 mm). Pins: V+, V- (9~36 VDC), plus RS485 A/B or RS232 TX/RX depending on SKU. Reverse-polarity protected.
CellularNano-SIM slot with card-detect + SMA antenna connector for LTE whip/patch antenna.
SerialRS485: 2-pin (A/B); RS232: 3-pin (TX/RX/GND); TTL: 3.3 V (TXD/RXD/GND).
USBMicro-USB for local firmware upgrade (driver required).
ButtonReload: Press 3–10 s to restore last saved parameters (equivalent to AT+RSTCFG).

3.2 LED Behavior

LEDStateMeaning
POWERSteady onPower OK
WORKFast blink (≈400 ms)LTE module booting / searching for base station
WORKSlow blink (≈2 s)Registered to network
DATAOffNo active socket
DATASteady onSocket connected
DATABlinkingSerial/network data exchanging

4. Electrical Specifications

ParameterValue
Dimensions74.6 × 22.6 × 18.1 mm (excluding mounting ears/terminal)
Weight35 g (typical)
Supply Voltage9~36 VDC
Typical Current100 mA @ 12 V (idle)
Operating Temp-35 °C ~ +75 °C (standard), -40 °C ~ +85 °C (extended)
Humidity5% ~ 95% RH, non-condensing
ProtectionReverse polarity, EFT/ESD up to IEC 61000-4-2 Level 4
MountingDIN rail clip or dual-ear screw mounting

Clearance recommendation: keep ≥10 mm around the shell for heat dissipation and allow ≥50 mm front access for wiring.


5. Serial Configuration & Packaging

5.1 UART Parameters

AT+UARTn=<baud>,<databits>,<stopbits>,<parity>,<flow>

FieldOptions
Baud Rate1200~460800 bps (default 115200)
Data Bits8 (default) or 7
Stop Bits1 (default) or 2
ParityNONE (default) / EVEN / ODD
Flow ControlNFC (no flow control) or 485 (auto-direction)

5.2 Data Packaging

AT+UARTTLn=<interval_ms>,<length_bytes>

  • Length trigger: frame forwarded once it reaches length (64–1024 bytes, default 1024).
  • Gap trigger: frame forwarded when inter-character gap ≥ interval (1–300 ms, default 5 ms).
  • TCP stream users should implement application-level delimiters because of unavoidable packet coalescing.

5.3 UART Modes

  • Transparent Mode (default): Serial payload forwarded directly to active sockets.
  • AT Command Mode: Enter by sending +++ + delay + a; exit via AT+EXIT or reboot. Network data pauses up to 3 s after +++ to prevent interference.

6. Cellular Networking & Data Transmission

6.1 Socket Channels

  • Up to 4 sockets (A/B/C/D) per serial channel. Configure via AT+SOCKns=<type>,<addr>,<port> and enable with AT+SOCKENns=ON.
  • Supported types: TCPC, UDPC, HTPC (HTTP client), MQTT.
  • Keepalive and reconnect behaviors are built-in; failed TCP dial attempts back off up to 60 s.

6.2 TCP Client Workflow

  1. Insert SIM, connect antenna, power on, and wait for WORK LED slow blink.
  2. Set socket type to TCPC with target host/port.
  3. Configure APN if needed via AT+APN=1,<apn>,<user>,<pass>,<auth>.
  4. Save + reboot (or AT+REBOOT). Device auto-connects and mirrors serial data bidirectionally.

6.3 UDP Client Workflow

  • Works peer-to-peer with fixed remote IP/port.
  • Local source port is random; remote must echo a packet before it knows the port number.

6.4 HTTP Client

  • Modes: GET, POST, AUTO (URI-driven). Configure base parameters with AT+HTPURLn, AT+HTPHDn, AT+HTPREQn.
  • AUTO mode allows on-the-fly URI + payload separation using \r\n between URL and data.
  • Timeout configurable via AT+HTPTOn (1–30 s, default 6 s).

6.5 MQTT

  • Authentication via AT+MQAUTHn=<clientID>,<user>,<pass>.
  • Connection profile: AT+MQCONFn=<version>,<clean>,<keepalive>.
  • Publish/subscribe topics set with AT+MQPUBn and AT+MQSUBn (QoS0/1/2 supported).
  • Aliyun shortcut mode available: AT+MQMDn=ALI auto-generates signatures.

6.6 Modbus TCP/RTU Gateway

AT+MODBUSn=ON converts incoming Modbus TCP into RTU frames (and vice versa). Non-Modbus packets are dropped to protect fieldbus integrity.


7. Modbus Polling & JSON Reporting

7.1 Polling Scheduler

  • Enable scheduler with AT+MBCFGn=<enable>,<interval_ms>,<period_s>.
  • Upload commands via AT+MBCMDn=<hex_cmd>|<hex_cmd2>|... (total ≤240 bytes).

7.2 JSON Mapping

  • Mode selection: AT+MBJSn=<mode>,<interval_s>
    • OFF: disabled
    • POLL: only upload Modbus data (serial transparent mode disabled)
    • ALL: upload Modbus + allow pass-through
  • Define datapoints using AT+HJREG JSON arrays (factor, dev_id, fun, reg, type, multiple).
  • Optional fields:
    • Device IMEI/ICCID via AT+JSIMEIn, AT+JSICCIDn
    • Timestamp formatting (UNIX, UTC, LOCAL) via AT+JSTMn
    • IO snapshot, GPS placeholders (hardware dependent)
  • Error handling: AT+JSERRn=ON pushes null when polling fails; OFF pushes zero.
json
{
  "imei": "860061060041515",
  "time": 1681105255,
  "data": {
    "k1": 12.3,
    "k2": null,
    "k3": 666
  }
}

(Actual keys follow user-defined factor names.)


8. Advanced Functions

FeatureCommandDescription
Offline CacheAT+CACHEn=ON/OFFStores up to 50 frames (≈20 KB). Buffered data flushes automatically when link recovers.
Data Format ConversionAT+DTCVTn=<uplink_mode>,<downlink_mode>Convert RAW↔ASCII HEX for serial/network directions independently.
Enhanced AT (透传AT)AT+EXAT=<mode>,<keyword>Accept AT commands over serial, network, or SMS streams using trigger keyword (default NAT@).
Base Station LocationAT+LBS returns CID/LAC for approximate positioning via third-party services.
Offline Cache to CloudCombine AT+CACHEn with Modbus JSON to resend buffered data when LTE reconnects.
Firmware Upgrade (USB)Use Micro-USB + vendor driver; behaves like CDC COM port for DFU utility.
Firmware Upgrade (HTTP)AT+DOWNLOAD=<host:port/path> downloads firmware via HTTP; device reboots automatically after success.

9. Remote Management & Diagnostics

9.1 Heartbeat & Registration Packets

  • Heartbeat mode: AT+HEARTMDn=UART/NET, interval via AT+HEARTTMn (1–86400 s). Payload defined by AT+HEARTDATn=<data>,<fmt>.
  • Registration packets: type via AT+REGTPn=IMEI/ICCID/USER, send mode via AT+REGMDn=FIRST/EVERY/ALL, and custom payload via AT+REGDATn.

9.2 Remote Device Management

  • Enable service with AT+RDM=ON to allow centralized status monitor.

9.3 Exception Handling

  • No-data watchdog: AT+SOCKRTO=<minutes> (0 disables, default 1440). Device reboots if no network data is received within the window.
  • Reload button or AT+RSTCFG restores backed-up parameters; AT+CLRCFG reverts to factory defaults, while AT+BKCFG saves current runtime settings as the new backup.

9.4 Diagnostics

  • AT+DEVINFO reports module, firmware, MAC, manufacturing info.
  • AT+SOCKLK displays per-socket connection state.
  • AT+PING=<host> assists in verifying network reachability.

10. AT Command Reference

This section mirrors the "3.1 AT指令" chapter of the Chinese manual, summarizing syntax, error codes, and major commands in tabular form. Commands follow the standard query (AT+CMD?), set (AT+CMD=value), and help (AT+CMD=?) patterns and accept CR/LF line endings. Single-line commands can be up to 256 bytes and must wait for the previous response before issuing the next one.

10.1 Error Codes

Error CodeMeaningTypical Cause
ARGSInvalid argumentValue out of range / bad format
ARGCInvalid argument countMissing or extra parameters
CMD_UNKNOWNUnknown commandMisspelled or unsupported command
CMD_FORMATBad formatNot prefixed with AT+
CMD_LENGTHExceeds max lengthPayload >256 bytes
DEV_MEMORYMemory errorInternal buffer issue
DEV_SAVESave failedFlash write error

10.2 Frequently Used Commands

CommandPurposeKey Parameters / Notes
AT+LISTList supported commandsReturns +LIST:AT+CMD lines
AT+EXITLeave AT mode → transparentResponds OK then resumes data mode
AT+VERQuery firmware versionReturns +VER:<ver>
AT+DEVINFODevice info (model, version, IMEI, SN, etc.)Multiple +FIELD:<value> lines
AT+REBOOTSoft rebootNo parameters
AT+RSTCFG / AT+BKCFG / AT+CLRCFGRestore backup / save backup / factory resetManage parameter partitions
AT+RDM=<state>Remote device management enableON/OFF (default OFF)
AT+DOWNLOAD=<uri>HTTP firmware downloadURI such as host:port/file.bin; responds OK or +ERROR:FAIL

10.3 Networking & Diagnostics

CommandPurposeNotes
AT+SOCKENns=<state>Enable/disable socket A/B for UART nDefault enables SOCK1A only
AT+SOCKns=<type>,<addr>,<port>Configure socket protocol & endpointTypes: TCPC, UDPC, HTPC, EDP, SMS, MQTT
AT+SOCKLK[=ns]Query TCP client link statusReports ON/OFF per socket
AT+APN=<mode>,<apn>,<user>,<pass>,<auth>Custom APN/VPDNmode=0 use default; auth = 0/1/2 (NONE/PAP/CHAP)
AT+CSQ / AT+CEREG / AT+CGATTSignal, registration, data attachReport RSSI, network attach state
AT+IPQuery current IP addressReturns IPv4 string
AT+IMEI / AT+ICCID / AT+IMSISIM identifiers15/20/15-digit strings
AT+PING=<host>Connectivity testReturns latency or error cause
AT+HEARTMDn / AT+HEARTTMn / AT+HEARTDATnHeartbeat mode, interval, payloadModes: OFF/NET/UART
AT+REGTPn / AT+REGMDn / AT+REGDATnRegistration packet type/mode/payloadTypes: IMEI/ICCID/USER; modes: OFF/FIRST/EVERY/ALL
AT+SOCKRTO=<minutes>Reboot on no data0 disables; default 1440 min

10.4 Serial & Data Handling

CommandPurposeKey Parameters
AT+UARTn=<baud>,<databits>,<stopbits>,<parity>,<flow>Configure UART nBaud options 1200–460800; parity NONE/EVEN/ODD; flow NFC/485
AT+UARTTLn=<interval>,<length>Set UART packingInterval 1–300 ms; length 64–1024 bytes
AT+CACHEn=<state>Offline cache ON/OFFStores up to 50 frames (≈20 KB)
AT+DTCVTn=<uplink_mode>,<downlink_mode>ASCII/HEX conversionRAW/BTS/STB per direction
AT+EXAT=<mode>,<keyword>Enhanced AT keywordModes OFF/NET/UART/ALL; default keyword NAT@

10.5 HTTP / MQTT / Cloud

CommandPurposeNotes
AT+HTPREQn / AT+HTPURLn / AT+HTPHDn / AT+HTPTOnHTTP method, URL, headers, timeoutSupports GET/POST/AUTO; headers separated by `
AT+MQCONFn / AT+MQAUTHn / AT+MQSUBn / AT+MQPUBn / AT+MQWILLnMQTT connect/auth/subscribe/publish/willQoS 0/1/2, retain flag, keepalive 30–65535 s
AT+MQMDn=ALIAliyun MQTT shortcutAuto-calculates auth fields
AT+EDPn=<id_list>,<save>Point-to-point bindingIDs separated by `
AT+MODBUSn=<enable>Modbus TCP/RTU conversionDrops packets when disabled
AT+MBCFGn, AT+MBCMDn, AT+MBJSn, AT+HJREGModbus polling & JSON mappingMatches Section 7 descriptions

10.6 JSON & Auxiliary Fields

CommandPurposeNotes
AT+JSERRn=<mode>Report null or 0 on read failureON = null, OFF = 0
AT+JSUDn=<en>,<key>,<val>Custom JSON key/valueUp to 64 bytes each
AT+JSTMn=<en>,<key>,<fmt>Timestamp field (UNIX/UTC/LOCAL)Format strings match PDF examples
AT+JSIMEIn, AT+JSICCIDn, AT+JSIOn, AT+JSGPSnInclude IMEI, ICCID, IO status, GPS fieldsGPS formats: JSON / RMC

  • Manufacturer: Hunan Yanji Tech Co.,Ltd
  • Address: Room 21014, Unit 1, Fudixingguang plaza, Yuhua district Yingxin road, Changsha, Hunan, P.R. China
  • Email: hi@yanjiiot.com
  • Website: www.yanjiiot.com