Skip to content

Y502-L LoRaWAN Serial DTU User Manual ​

Y502-L Specification

Applicable model: Y502-L

Interfaces: 1 isolated RS485 + 1 isolated RS232

Direct I/O: None

Contents ​

  1. Product Scope
  2. Safety and Preparation
  3. Hardware Installation
  4. Serial Configuration
  5. LoRaWAN Commissioning
  6. Operating Modes
  7. Data and Port Mapping
  8. Gateway and Application Integration
  9. Maintenance and Troubleshooting

1. Product Scope ​

Y502-L is an industrial LoRaWAN serial DTU. It connects PLCs, meters, data loggers, and serial sensors to a LoRaWAN network through RS485 or RS232.

The DTU forwards serial data, polls equipment at scheduled intervals, and reports data changes. It accepts Modbus RTU or custom polling commands in ASCII or HEX format. Remote commands and configuration use the installed firmware's downlink protocol.

For direct digital or analog signal wiring, use the Y503-2220-L RTU.

1.1 Data Path ​

Serial field device → Y502-L → LoRaWAN → Y501-L or Y511-L → Network Server or local service → Application

Match the DTU, gateway, and Network Server radio plan and channel group. Set activation and device class on the DTU and its server profile; decode payloads in the application.

1.2 Main Limits ​

ItemValue
Supply voltageDC 9–28 V
Recommended adapterDC 12 V / 1 A
LoRaWAN version1.0.3
Device classesClass A / Class C
Transmit powerUp to 22 dBm
Serial ports1 RS485 + 1 RS232
Mounting35 mm DIN rail

2. Safety and Preparation ​

2.1 Safety Notes ​

  • Connect the LoRa antenna before applying power.
  • Use a regulated DC 9–28 V supply and observe the polarity.
  • Remove power before changing the power, RS485, or RS232 wiring.
  • Do not install the unit in direct sunlight, near heat sources, or in a flammable, explosive, wet, dusty, or smoky environment.
  • Keep the antenna away from large metal surfaces, high-current cables, and other radio antennas.
  • Keep the device away from strong electromagnetic fields and severe vibration.
  • Prevent liquid from entering the enclosure.
  • Check voltage levels and serial wiring before attaching the field device.

2.2 Prepare Before Installation ​

  • Y502-L DTU and the supplied mounting hardware
  • LoRa antenna
  • DC 12 V / 1 A adapter supplied with the standard package
  • A USB-to-RS485 or USB-to-RS232 adapter for local configuration
  • A computer and the PC configuration tool supplied for the firmware
  • The RS485 or RS232 field device
  • A Y501-L or Y511-L gateway with the same regional plan
  • Network Server or local-service access details
  • Device identity and LoRaWAN activation credentials
  • Field-device protocol and firmware payload definition

3. Hardware Installation ​

3.1 Mount the DTU ​

  1. Inspect the enclosure, terminals, antenna, and power adapter for shipping damage.
  2. Mount the DTU on a stable 35 mm DIN rail.
  3. Leave enough space for the antenna connector, serial wiring, and power wiring.
  4. Keep the unit ventilated and accessible for service.
  5. Keep the antenna away from metal enclosures and high-interference equipment.

The nominal enclosure size is 87.65 × 36.54 × 59.3 mm.

3.2 Connect the Antenna and Power ​

  1. Connect the LoRa antenna to the SMA antenna connector.
  2. Measure the supply voltage; it must be within DC 9–28 V.
  3. Connect the power wires with the correct polarity.
  4. Check the adapter rating against the DTU and field-equipment load.
  5. Apply power only after checking the antenna and serial wiring.

The standard package includes a DC 12 V / 1 A adapter. The connected field device may require a separate power supply.

3.3 Connect RS485 ​

  1. Connect the field bus to the labeled A+ and B- terminals.
  2. Match the baud rate, data bits, stop bits, and parity at both ends.
  3. Set the field-device address and protocol.
  4. Use shielded twisted-pair cable when required by the site environment.
  5. Install termination and biasing only at the positions required by the bus design.

If the bus does not communicate, check the A/B polarity and the reference wiring before changing software parameters.

3.4 Connect RS232 ​

Connect the three-wire RS232 interface according to the terminal labels:

SignalFunction
TXDDTU transmit; connect to the field device RXD
RXDDTU receive; connect to the field device TXD
GNDConnect to the field device signal ground

Match serial settings with the field device. Check the supplied wiring drawing for DB9 pin assignments before making a cable. Use an appropriate converter for TTL UART or RS485 equipment; this port uses RS232 voltage levels.

3.5 Buttons and Indicators ​

Control or indicatorFunction
Factory reset button, short pressReset the DTU
Factory reset button, double-clickEnter configuration mode
Factory reset button, hold for 5 sRestore factory settings
POWEROn when power is normal
RUNBlinks during normal operation
LoRa TXLights or blinks during LoRa transmission
RS232 RXBlinks when RS232 data is received
RS485 RXBlinks when RS485 data is received

Back up settings and arrange local access before a factory reset.

4. Serial Configuration ​

4.1 Connect the PC ​

Use RS485 or RS232 for local configuration.

  1. Power off the DTU and the field device.
  2. Connect the PC to the required serial interface through a suitable USB converter.
  3. Leave field equipment disconnected during initial configuration. Check the wiring, then power the DTU.
  4. Open the supplied PC tool and scan the serial ports. If discovery fails, select the port manually. Double-click the reset button if the supplied procedure requires configuration mode.
  5. Select the computer serial port and the communication parameters for the selected DTU interface.
  6. Back up the current configuration. Write the new settings, then read them back.
  7. Exit configuration mode using the supplied procedure. Reconnect the field device with power off, then verify normal operation.

4.2 Factory Serial Parameters ​

ParameterRS485RS232
Baud rate9600 bps115200 bps
Data bits88
Stop bits11
ParityNoneNone

The supported serial settings are:

ParameterAvailable values
Baud rate2400, 4800, 9600, 19200, 38400, 57600, 115200 bps
Data bits8
Stop bits1 or 2
ParityNone, odd, or even

Match these settings with the field device. For Modbus RTU, also check the slave address, function code, register map, byte order, and scaling.

If the configuration tool offers additional baud rates, check firmware support and test both interfaces before using them.

4.3 Serial Acquisition Delay ​

Increase the serial acquisition delay for low baud rates or sequential polling tasks when the equipment needs more time to respond. A short delay can truncate responses or cause acquisition failures.

5. LoRaWAN Commissioning ​

5.1 Select the Regional Plan ​

Select a plan supported by the DTU hardware and permitted in the installation region:

PlanAvailability
CN470Reference deployment plan
EU433Supported regional variant
EU868Supported regional variant
AU915Supported regional variant
IN865Supported regional variant
AS923Supported regional variant
RU864Supported regional variant
US915Supported regional variant

Match the selected plan and channel group with the gateway and Network Server.

5.2 Configure Activation ​

OTAA is recommended for new deployments.

For OTAA, prepare:

  • DevEUI
  • JoinEUI or AppEUI, according to the Network Server
  • AppKey

For ABP, prepare:

  • DevAddr
  • Network session key
  • Application session key

Enter the credentials in the DTU tool and Network Server device record. Store keys and passwords in the project credential store.

5.3 Select the Device Class ​

  • Class A: The DTU opens receive windows after an uplink. Use this mode for normal low-duty-cycle applications.
  • Class C: The powered DTU listens for downlinks almost continuously, except while transmitting and during the Class A receive-window sequence. Use this mode when the application needs more responsive downlinks and the power budget permits it.

Set the same device class on the DTU and its Network Server profile. The gateway forwards the scheduled downlinks.

5.4 Configure Radio Parameters ​

Set radio parameters to match the Network Server:

  • Start and end channel
  • Spreading factor, SF7 to SF12
  • Transmit power
  • ADR
  • Confirmed or unconfirmed uplink
  • RX1 and RX2 parameters
  • Uplink and downlink timing

Use ADR for stationary devices when the Network Server supports it and the radio environment is stable. Match the RX2 frequency and spreading factor to the Network Server.

5.5 Register the DTU ​

  1. Configure the selected regional plan on the Y501-L or Y511-L gateway.
  2. Register the gateway in the Network Server, or enable the local service when the ordered gateway configuration includes it.
  3. Register Y502-L with the selected activation method.
  4. Apply the device class, channel, and application settings.
  5. Reset or power-cycle the DTU when the configuration tool requests it.
  6. For OTAA, look for a successful join and uplink in the logs. For ABP, check that the server accepts an uplink with the provisioned session.

Commission one DTU first. Add other devices after the complete uplink and downlink path works.

6. Operating Modes ​

6.1 Transparent Transmission Mode ​

Transparent transmission is the factory operating mode:

  1. When the field device sends data, the DTU forwards the serial bytes through LoRaWAN.
  2. When the application sends a downlink command, the DTU passes it to the field device and returns the response.

Use this mode when the application handles the serial protocol. LoRaWAN packet size and scheduling limit throughput and change serial timing. Set request timeouts for the complete wireless path and test the longest expected message.

6.2 Active Acquisition Mode ​

In active acquisition mode, the DTU sends scheduled read commands locally, reducing the need for downlink polling.

Configure each task with:

  • Serial interface
  • Command format: HEX or ASCII
  • Command content
  • Acquisition interval
  • Uplink port
  • Enable or disable state

The DTU supports up to 16 acquisition scripts. The script interval is 10–86,400 seconds. Each script can contain up to 40 bytes.

The configuration tool can generate Modbus read commands from the device address, function code, starting register, and register count. Verify the command against the field-device manual. With the sensor connected, use the script-test function and check its response before enabling periodic acquisition.

6.3 Heartbeat and Data-Change Reporting ​

The heartbeat task (script 0) reports device information at the configured interval. Its payload is fixed in the documented firmware. Set its interval separately from the user acquisition scripts.

Data-change reporting compares consecutive acquisition results. Set the acquisition interval and change rule to capture relevant changes without unnecessary uplinks.

6.4 Remote Configuration ​

Remote parameter and command configuration uses LoRaWAN downlinks. Establish stable uplinks and downlinks before changing settings remotely.

The documented protocol responds on FPort 43 and restarts the DTU about one minute after a successful change. Check this behavior on the installed firmware, then read back the settings and verify uplinks after restart.

Keep server frame-counter validation enabled. Check counter and session retention before a reset or firmware change. Fast-send modes can reduce downlink reception; test command/response operation before enabling them.

7. Data and Port Mapping ​

LoRaWAN carries bytes. HEX is a display or entry format; server APIs may use Base64. Check the encoding before sending or decoding payloads. These default FPorts apply to the documented firmware; read back the configuration for any changed script ports.

PortFunction
1–16Acquisition script 1 to script 16
40Heartbeat packet
51RS232 transparent uplink
52RS485 transparent uplink
214Restart packet
215Power-on packet

7.2 Response Ports ​

PortFunction
42Command response
43Downlink configuration response

Build the parser from the installed firmware's payload definition, including byte positions, scaling, and FPort behavior.

7.3 Commissioning Record ​

Record each DTU's deployment settings:

  • Model and hardware variant
  • Device identifier and DevEUI
  • Regional plan and channel group
  • Activation method and device class
  • RS485 or RS232 selection
  • Serial parameters
  • Field-device address and protocol
  • Script commands and intervals
  • Uplink ports and payload version
  • Gateway identifier and Network Server application

Reference the credential store separately; omit keys and passwords from the commissioning record.

8. Gateway and Application Integration ​

8.1 Gateway Checks ​

Check the gateway-to-application path:

  • Bring Y501-L or Y511-L online in the Network Server.
  • Match its frequency plan and channel group with the DTU.
  • Look for gateway traffic in the server.
  • Inspect the gateway antenna connection.
  • Test the application decoder with a known payload.

Inspect the application records for:

  • Device identity
  • Uplink timestamp
  • Serial interface and port
  • Heartbeat or device status
  • Acquisition command and response
  • Parsed field values
  • Communication error status

Compare one received value with the field-device display or a reference tool before enabling long-term polling.

  1. Verify stable uplinks.
  2. Send one supported serial or control command to a test device.
  3. Read the command response and check the field-device state or returned value.
  4. Record the result.

For Class A, queue the command before the next uplink so the server can use a receive window. Class C offers more receive opportunities; server scheduling and radio capacity still affect command timing. A radio acknowledgement alone does not prove execution.

9. Maintenance and Troubleshooting ​

9.1 Maintenance ​

  • Keep the antenna connected during normal operation.
  • Inspect the power adapter, antenna connector, DIN-rail mounting, and serial terminals during scheduled maintenance.
  • Back up the configuration before changing serial or LoRaWAN parameters.
  • Record firmware, regional plan, class, serial settings, and payload version with the device identifier.
  • Test one transparent transmission and one active acquisition after a firmware or configuration change.
  • Keep stable power during configuration updates.
  • Restore factory settings only after saving the current configuration.

9.2 Troubleshooting ​

SymptomChecks and corrective action
DTU does not startCheck supply voltage, polarity, adapter current, terminals, and visible damage.
No LoRaWAN joinCheck the regional plan, antenna, gateway status, DevEUI, activation credentials, device class, and Network Server record.
Uplink does not arriveCheck gateway-to-server connectivity, channel group, antenna, frame counters, payload routing, and application configuration.
RS485 data is missingCheck A/B polarity, baud rate, data format, device address, protocol, termination, and polling command.
RS232 data is missingCheck TXD/RXD/GND wiring, baud rate, data format, and field-device protocol.
Script acquisition failsCheck the command format, response timeout, serial acquisition delay, field-device address, and script interval.
Data values are incorrectCheck byte order, register type, scaling, signedness, unit conversion, and payload decoding.
Downlink is delayedCheck Class A receive-window timing, confirmed-uplink settings, RX2 parameters, and gateway downlink capacity.
Communication drops repeatedlyCheck antenna placement, interference, supply stability, gateway logs, and regional radio settings.

For support, provide the model, frequency plan, device and gateway identifiers, firmware version, failure time, RSSI/SNR, and redacted logs. Remove passwords, AppKeys, session keys, and private server credentials.


YenGear
Hunan YenGear Tech Co., Ltd.
Room 21014, Building 1, Fudi Xingguang Tiandi, Yingxin Road, Yuhua District, Changsha, Hunan, China
[email protected] · www.yengear.com