Skip to content

Y201-W Mini WiFi DTU Technical Manual

Table of Contents

  1. Introduction
  2. System Overview
  3. Hardware Interfaces
  4. Electrical Specifications
  5. Serial Configuration & Packaging
  6. WiFi Networking & Web Console
  7. Socket Protocol Workflows
  8. Modbus Gateway & JSON Services
  9. Advanced Functions
  10. Remote Management & Diagnostics
  11. AT Command Highlights

1. Introduction

Y201-W is the WiFi-enabled member of the MiniLink Y201 DTU family. It keeps the compact 74.6 × 22.6 × 18.1 mm enclosure while adding 2.4 GHz WLAN uplink (AP/STA/AP+STA) and retaining a single selectable serial interface (RS485 / RS232 / TTL). Dual sockets (A/B) per UART support TCP/UDP/HTTP/MQTT/EDP, Modbus RTU ↔ TCP gateway, registration packets, heartbeats, JSON uploader, remote AT, and HTTP OTA upgrades—matching the firmware capabilities of Y201-R/Y202-W so mixed fleets share identical workflows.

ItemDescription
MCU & OSDual-core 240 MHz MCU + RTOS, hardware + software watchdog
Serial InterfaceOne configurable RS485/RS232/3.3 V TTL port
Wireless802.11 b/g/n (2.4 GHz) AP / STA / AP+STA
Power5–36 V DC via 2-pin terminal
ServicesTCP/UDP/HTTP/MQTT/EDP, Modbus gateway, JSON uploader, OTA

Mechanical, ordering, and SKU details are documented in the Y201-W Specification.


2. System Overview

  • Architecture – Industrial MCU with RTOS, dual watchdog, and programmable reboot-on-silence.
  • Serial Port – Single UART mapped to RS485/RS232/TTL terminals; firmware setting chooses the active interface while Socket A/B share the same stream.
  • Wireless Stack – Integrated 2.4 GHz radio with AP (default W100), STA for router uplink, or AP+STA for maintenance + backend simultaneously.
  • Web Console – Embedded HTTP UI (Status/System/Port) at 192.168.4.1 (AP) mirrors AT commands for IP, WiFi, serial, socket, Modbus, and OTA settings.
  • Use Cases – Retrofits lacking RJ45 cabling, portable testers, and sensor gateways needing WiFi-only connectivity while keeping wiring footprint minimal.

3. Hardware Interfaces

GroupDescription
Power2-pin terminal (V+, V-) accepting 5–36 V DC; reverse-polarity guarded.
SerialShared pins labeled RS485 A/B, RS232 TX/RX/GND, TTL TX/RX/GND. Only the ordered interface is populated; wiring must respect the label on the shell.
WiFiSMA female antenna connector (use supplied whip).
USBMicro-USB (CDC) for local AT console and firmware loading.
ButtonReload – hold 3–5 s to restore last saved profile, >5 s for factory defaults.
QR LabelEncodes SN + MAC for quick onboarding.

LED Behavior

LEDBehaviorMeaning
POWERSteady onDC supply OK
WORKSlow blink (~1 s)WiFi connected (STA) / AP broadcasting
WORKFast blink (~300 ms)WiFi disconnected or searching
TXBlinkSerial TX (network→serial data)
RXBlinkSerial RX (serial→network data)

Always install the antenna before powering on to avoid PA damage and guarantee coverage.


4. Electrical Specifications

ParameterValue
Supply Voltage5–36 V DC
Typical Current60 mA @ 12 V (WiFi idle, single socket)
Startup Current≥600 mA required momentarily when using 5 V supplies
Operating Temp-35 °C ~ +75 °C (extended -40 °C ~ +85 °C)
Humidity5% ~ 95% RH, non-condensing
ProtectionReverse polarity, surge clamp, watchdog reset

Recommendation: avoid powering from unstable USB ports; use regulated DC supply or dedicated adapter.


5. Serial Configuration & Packaging

5.1 UART Parameters

Command: AT+UART=<baud>,<databits>,<stopbits>,<parity>,<fc>

FieldOptionsDefault
Baud Rate1,200–460,800 bps115,200
Data Bits7 / 88
Stop Bits1 / 21
ParityNONE / EVEN / ODDNONE
Flow ControlNFC (RS232) / 485 (auto-direction)NFC

5.2 Packaging (AT+UARTTL)

  • Length trigger: 64–1024 bytes (default 1024).
  • Gap trigger: 0–300 ms (default 0 = adaptive).
  • Either threshold flushes data toward both sockets simultaneously. Example: AT+UARTTL=30,512.

5.3 Modes

  • Transparent Mode – Default data tunnel.
  • AT Command Mode – Send +++, wait ≥500 ms, then a. Exit with AT+EXIT or reboot; sockets pause ≤3 s.
  • Remote AT – Enable via AT+EXAT=<mode>,<keyword> to accept AT commands over sockets once LAN discovery authenticates.

Match UART settings with the downstream device before wiring; mismatched baud/format can prevent WiFi provisioning per the Chinese quick guide.


6. WiFi Networking & Web Console

6.1 Default AP Mode

ParameterValue
SSIDW100 (broadcast)
SecurityOpen by default (change to WPA2/WPA3 immediately)
IP192.168.4.1
DHCPEnabled (1–6 clients)
HTTP Loginadmin / admin

Steps:

  1. Power on, connect a laptop/phone to SSID W100.
  2. Browse to http://192.168.4.1, log in, and change WiFi security (recommended).
  3. Configure serial, sockets, Modbus gateway, and WiFi STA parameters if needed.
  4. Save → Reboot → reconnect serial device.

6.2 STA & AP+STA

  • AT+NETIF=STA to join routers (2.4 GHz only); use AT+STA=<ssid>,<password> or set password to NONE for open APs.
  • AT+NETIF=APSTA keeps AP available while STA uplinks; note performance impact and ensure AP/STA IP ranges differ.
  • After switching to STA, use the WAN IP (DHCP or static) to reach the web UI or issue AT commands via remote AT.
  • Query STA state using AT+STALK; change AP channel via AT+WCH=<1-13> when acting as AP.

6.3 LAN Discovery & Virtual COM

  • UDP broadcast search: AT+SEARCH=8168,HuayunIOT (PC tool sends query and devices reply with IP,MAC,MODEL,VER).
  • Virtual COM helper replicates COM ports over TCP for legacy PC software; ensure Windows driver signature enforcement is disabled if installation fails (BIOS Secure Boot OFF + bcdedit /set nointegritychecks on).

7. Socket Protocol Workflows

Since Y201-W has one UART, Socket A and Socket B share the same serial stream. Enable with AT+SOCKENs=ON (s = A/B) and configure via AT+SOCKs=<type>,<addr>,<port>[,localport].

7.1 TCP Server / Client

  • Server: listens on default port 8010; supports up to 8 clients. Example:
    AT+SOCKENA=ON
    AT+SOCKA=TCPS,0.0.0.0,8010
    AT+REBOOT
  • Client: auto-reconnect every second. Example:
    AT+SOCKENB=ON
    AT+SOCKB=TCPC,10.10.10.50,9000
    AT+REBOOT

7.2 UDP Modes

  • UDPC targets fixed IP/port; set localport if firewalls expect a known source.
  • UDPS replies to the most recent sender—ideal for handheld maintenance apps.

7.3 HTTP Client

  1. Switch to HTPC.
  2. Configure headers (AT+HTPHD=Connection:keep-alive|Content-Type:application/json).
  3. Choose mode: AT+HTPREQ=GET/POST/AUTO.
  4. For POST, set AT+HTPURL=/api/v1/upload; for AUTO, embed URL + payload separated by \r\n.
  5. Heartbeats can trigger HTTP GET by setting NET heartbeat payload to the URL.

7.4 MQTT Client

  • AT+MQCONFn=<type>,<addr>,<port> for broker info (supports Aliyun shortcut).
  • AT+MQAUTHn=<user>,<password> for credentials.
  • AT+MQPUBn, AT+MQSUBn define topics and QoS (0/1/2).
  • Device behaves like a transparent tunnel: UART payloads map to publish frames, subscribed topics map back to UART.

7.5 Registration Packets & Heartbeats

  • Registration: AT+REGTP=MAC/CUS, AT+REGMD=OFF/FIRST/EVERY/ALL, AT+REGDAT=<hex>.
  • Heartbeats: AT+HEARTMD=NET/UART, AT+HEARTTM=<seconds>, AT+HEARTDAT=<hex>.
  • NET heartbeats support TCP/UDP Client; UART heartbeats trigger serial polls even when network is idle.

7.6 Peer-to-Peer (EDP)

  • Configure AT+SOCKA=EDP,huayuniot,888 and assign peer ID using AT+EDP=<target_id>,OFF.
  • Supports one-to-one, one-to-many, or many-to-one without additional servers (IDs obtained from Yanji support).

8. Modbus Gateway & JSON Services

  • Enable gateway with AT+MBMD=ON (or Port tab). Ethernet-side Modbus TCP converts to RTU on the serial bus; disable when running pure transparent sockets.
  • Polling scheduler:
    AT+MBCFG=ON,200,5    # 200 ms interval, report every 5 s
    AT+MBCMD=010300000002C40B
  • JSON uploader:
    AT+HJREG=loop_current,40001,U16,0.1,A
    AT+MBJS=ON,30
    Payloads can be sent via HTTP (HTPC) or MQTT sockets. Error handling controlled by AT+JSERR.

9. Advanced Functions

FeatureCommandDescription
Offline CacheAT+CACHE=ON/OFFStores up to 50 frames (~20 KB) when WiFi drops; auto-flush on recovery.
Data ConversionAT+DTCVT=<uplink>,<downlink>Converts RAW↔HEX or custom formats per direction.
No-Data RebootAT+SOCKRTO=<minutes>Reboots after prolonged inactivity (default 1440 min, 0 disables).
HTTP OTAAT+DOWNLOAD=<host:port/path>Downloads firmware over HTTP; reboot to apply.
Backup/RestoreAT+BKCFG, AT+RSTCFG, AT+CLRCFGSnapshot, reload, or factory reset.
WiFi ScanAT+SCANLists nearby SSID/RSSI/auth types for siting.
AP Client ListAT+APLKDisplays STA MAC + RSSI when acting as AP.

10. Remote Management & Diagnostics

  1. Commissioning Flow – Wire power only, configure WiFi + serial via AP, then connect the serial device after UART parameters match.
  2. Registration & Heartbeats – Enable FIRST registration packets so backend systems log MAC/SN at every connect; set NET heartbeat (60 s typical) to detect WiFi drops.
  3. Auto-Recovery – Configure AT+SOCKRTO=30 (minutes) plus watchdog so the DTU reboots if no data arrives for extended periods.
  4. Firmware Maintenance – Host firmware on HTTP server and trigger AT+DOWNLOAD=host:port/file.bin; schedule upgrades during maintenance windows.
  5. LAN Discovery – Use UDP search or remote AT to audit devices without physical access; credential prompts protect remote AT sessions.
  6. Troubleshooting
    • AT+DEVINFO – model, firmware, MAC, SN.
    • AT+SOCKLK – reports socket states (ON/OFF, peer IP).
    • AT+PING=<host> – verifies WAN reachability.
    • AT+NETSTAT – displays interface (AP/STA) statistics.
    • AT+LOG=<level> – temporary debug verbosity.
    • Reload button – quick restore of last saved config without PC.

11. AT Command Highlights

CommandPurpose
AT+LISTDisplay supported AT commands
AT+VERFirmware version
AT+NETIFSelect AP / STA / AP+STA
AT+AP, AT+STA, AT+WCH, AT+NUMSTAWiFi SSID/password/channel/STA limit
AT+LAN, AT+WAN, AT+DNS, AT+SEARCHAP IP, STA IP/DNS, discovery keyword/port
AT+UART, AT+UARTTLSerial parameters & packaging
AT+SOCKs, AT+SOCKENsSocket definition/enabling (s = A/B)
AT+REGTP, AT+REGMD, AT+REGDATRegistration packet type/mode/payload
AT+HEARTMD, AT+HEARTTM, AT+HEARTDATHeartbeat mode/interval/data
AT+MBCFG, AT+MBCMD, AT+MBJS, AT+HJREGModbus polling and JSON mapping
AT+MQCONFn, AT+MQAUTHn, AT+MQPUBn, AT+MQSUBnMQTT configuration
AT+HTPURL, AT+HTPHD, AT+HTPREQ, AT+HTPFTHTTP client settings
AT+EDPPeer-to-peer ID targeting
AT+CACHE, AT+SOCKRTO, AT+DOWNLOADCache, auto-reboot, OTA
AT+BKCFG, AT+RSTCFG, AT+CLRCFGBackup/restore/factory reset