📖
User Manual - Relay Module - RM200
  • Introduction
  • About this document
  • DEVICE
    • Device Overview
      • Installation
    • Technical Specifications
      • Bluetooth Low Energy (BLE)
    • Physical Interfaces
      • Power Supply
    • Operation
      • Application Operation
    • Registers
      • Generic Data
      • Device Data
      • LoRaWAN Data
  • LoRaWAN
    • LoRaWAN Communication
      • Payloads
        • Uplinks
        • Downlinks
  • Support and Maintenance
    • Troubleshooting
    • Maintenance
    • Changelog
Powered by GitBook
On this page
  • Restart Device
  • Device Configuration
  • Device Parameter Reading
  • Periodic Transmissions
  1. LoRaWAN
  2. LoRaWAN Communication
  3. Payloads

Downlinks

Restart Device

The device supports downlink commands to restart the device, the application port is 50 by default.

Channel
Type
Description

ff

6f (Reboot)

1 Byte, Uint8 01 => Reboot the device

ff

a2 (Restart)

1 Byte, Uint8

01 => Restart the LoRaWAN Interface.

Example

To restart the LoRaWAN interface you send the following HEX payload over fPort 50.

ffa201
// ff -> channel -> ff
// a2 -> type -> Restart LoRaWAN Interface
// 01 -> action -> Restart

Device Configuration

The device supports downlink commands to configure the working of the device, and control the relay outputs.

The application port for sending the device configuration is fPort 50

Channel
Type
Description

ff

0x1B

Relay Status - Channel 1

0x1D

Default State - Channel 1

0x1E

State on Communication Watchdog - Channel 1

0x1F

Override Button Function - Channel 1

0x11

Reset Button Override - Channel 1

0x2B

Relay Status - Channel 2

0x2D

Default State - Channel 2

0x2E

State on Communication Watchdog - Channel 2

0x2F

Override Button Function - Channel 2

0x21

Reset Button Override - Channel 2

Example

To set the channel 1 output to on and disable the button function override for channel 1 you send the following HEX payload over fPort 50.

ff1b01ff1f00
// ff -> channel -> ff
// 1b -> type -> Relay Status - Channel 1
// 01 -> action -> ON
// ff -> channel -> ff
// 1f -> type -> Override Button Function - Channel 1
// 00 -> action -> Disabled

Device Parameter Reading

The device supports downlink commands to read its readable parameters, the application port is 100 by default.

Channel
Type
Description

FF

CC (Read Parameters)

Maximum of 10 parameter types (only readable parameters)

Example

To read the model, serial number and battery percentage you send the following HEX payload over fPort 100.

ffcc67686d
// ff -> channel -> ff
// cc -> type -> Read Parameters
// 67 -> register -> Model
// 68 -> register -> Serial Number
// 6d -> register -> Battery Percentage

Periodic Transmissions

To configure the periodic uplinks by the device you can send a downlink to fPort 1.

If confirmed mode is off, the device will send a package 1 time; if confirmed mode is on, the device will resend a package maximum of 3 times if it does not get an acknowledgement from the network.

Channel
Type
Description

ff

14 (Interval)

2 Bytes, Uint 16

Set the interval of the uplink, in minutes.

15 (Confirmed)

1 Byte, Uint 8

Confirmed mode off => 0 or confirmed mode on => 1

16 (Active)

1 Byte, Uint 8

Set the status of the fPort : inactive => 0 or active => 1

17 (Registers)

Maximum of 10 registers to include in the uplink.

Example

To configure the device to transmit every 30 minutes over fPort 2 a confirmed uplink containing the following registers (the current status, the counter and the button override status of both channels, ambient temperature and humidity) you send the following HEX payload

ff14001eff1501ff1601ff171a1c102a2c208283
// ff -> channel -> ff
// cc -> type -> Interval
// 001e-> action -> 30 minutes of uplink interval
// ff -> channel -> ff
// 15 -> type -> Confirmed
// 01 -> action -> Confirmed mode on
// ff -> channel -> ff
// 16 -> type -> Active
// 01 -> action -> Uplink on fPort 2 active
// ff -> channel -> ff
// 17 -> type -> Registers
// 1a -> register -> Current status of channel 1
// 1c -> register -> Counter of channel 1
// 10 -> register -> Button Override Status of channel 1
// 2a -> register -> Current status of channel 2
// 2c -> register -> Counter of channel 2
// 20 -> register -> Button Override Status of channel 2
// 82 -> register -> Ambient Temperature
// 83 -> register -> Ambient Humidity
PreviousUplinksNextTroubleshooting

Last updated 5 months ago