Skip to main content

Remote Commands

This article describes some common remote commands that you can issue through the LoRaWAN server to achieve remote control of the device.

The port number is 3.

Query device parameters

DescriptionCommand typeADRConfirmIntervalDRPowerTimezoneBattery VoltageFirm versionBattery level
Length1byte1byte1byte2byte1byte1byte2byte2byte2byte1byte
Query00
Feedback00000100 64011600 08
Error Feedback00FF
  • ADR: 01 represents ADR, and 00 represents fixed DR.
  • Confirm: 01 represents confirm, and 00 represents no confirm.
  • Interval: LoRaWAN reporting interval, HRI-3633 will send the valve status to the server according to the Interval. In hexadecimal, in seconds. In this sample, 64 means 100 seconds.
  • DR: When fixed DR is enable. In this sample, 01 means DR 1.
  • Power: RF power, unit'dbm'. In hexadecimal, in seconds. In this sample , 16 means 22dbm.
  • Timezone: 00 represents East, 01 represents West. Example 00 08 means East 8.

Set device parameters

DescriptionCommand typeADRConfirmIntervalDRPowerTimezone
Length1byte1byte1byte2byte1byte1byte2byte
Query01000100 64011600 08
Feedback01000100 64011600 08
Error Feedback01FF
  • ADR: 01 represents ADR, and 00 represents fixed DR.
  • Confirm: 01 represents confirm, and 00 represents no confirm.
  • Interval: LoRaWAN reporting interval, HRI-3633 will send the valve status to the server according to the Interval. In hexadecimal, in seconds. In this sample, 64 means 100 seconds.
  • DR: When fixed DR is enable. In this sample, 01 means DR 1.
  • Power: RF power, unit'dbm'. In hexadecimal, in seconds. In this sample , 16 means 22dbm.
  • Timezone: 00 represents East, 01 represents West. Example 00 08 means East 8.

Query GPIO status

DescriptionCommand typeQuantityMode ChangeModeStatus
Length1byte1byte2byte2byte2byte
Query02
Feedback020200 0300 0300 03
Error02FF
  • Quantity: Quantity of GPIO.
  • Mode Change: Each bit representing the state of a GPIO. 0 means "Mode change enable", 1 means "mode change disable". In this sample, hexadecimal value 03 converted to binary value "11", means 2 GPIO are "change enable".
  • Mode 2byte: Each bit representing the state of a GPIO. 0 means "input", 1 means "output". In this sample, hexadecimal value 03 converted to binary value "11", means 2 GPIO are "output".
  • Status: Use 4 bits represent the state of a GPIO, and each representing the state of a GPIO. 0 means "low", 1 means "high". In this sample, hexadecimal value 03 converted to binary value "11", means 2 GPIO are "high".

Set a single GPIO state

DescriptionCommand typeQuantityNumberModeState
Length1byte1byte1byte1byte1byte
Set0300010000
Feedback0300010000
Error0300FF
  • Quantity: 00 means set a single GPIO.
  • Mode: 0 means 'input', 1 means 'output'.
  • State: 00 means 'low', 01 means 'high'.

Set multiple GPIO states

DescriptionCommand typeQuantityNumberModeState
Length1byte1byte2byte2byte1byte
Set030100 0300 0300 01
Feedback0301010000
Error0301FF
  • Quantity: 01 means set multiple GPIO.
  • Number: Each bit representing a GPIO. In this sample, hexadecimal value 03 converted to binary value "11", means 2 GPIO will be set.
  • Mode: Each bit representing a GPIO. In this sample, hexadecimal value 03 converted to binary value "11", means GPIO0 is 'high' and GPIO1 is 'high'.

Query RS485 commands

DescriptionCommand typeNumberStateOperation typeTime(Hour)Time(minute)Repeat
Length1byte1byte1byte1byte1byte1byte1byte
Query0601
Feedback0601010013107F
Error06FF
  • Number: Command number on the configuration page, 0~15.
  • State: Command state, 01 means enable, 00 means disable.
  • Operation type: 00 means periodic command, 01 means timed task.
  • Time(hour): Which hour in a timed task, in this sample, 13 means 1 p.m. When "Operation type" is 00 (periodic), this section is invalid.
  • Time(minute): Which minute in one hour in a timed task, in this sample, 10 means 13:10. When "Operation type" is 00 (periodic), this section is invalid.
  • Repeat: The way of repeat about timed task. We use 8 bits from low to high, representing Sunday to Saturday. For each bit, 0 means don't operation, 1 means operation, then converted to hexadecimal. In this sample, 7F == '0111 1111', means this command operation everyday.
DayN.ASATFRITHUWEDTUEMONSUN
Binary01111111
Hex7F

Set RS485 commands

DescriptionCommand typeNumberStateOperation typeTime(Hour)Time(minute)Repeat
Length1byte1byte1byte1byte1byte1byte1byte
Setting0701010013107F
Feedback07010113107F
Error07FF
  • Number: Command number on the configuration page, 0~15.
  • State: Command state, 01 means enable, 00 means disable.
  • Operation type: 00 means periodic command, 01 means timed task.
  • Time(hour): Which hour in a timed task, in this sample, 13 means 1 p.m. When "Operation type" is 00 (periodic), this section is invalid.
  • Time(minute): Which minute in one hour in a timed task, in this sample, 10 means 13:10. When "Operation type" is 00 (periodic), this section is invalid.
  • Repeat: The way of repeat about timed task. We use 8 bits from low to high, representing Sunday to Saturday. For each bit, 0 means don't operation, 1 means operation, then converted to hexadecimal. In this sample, 7F == '0111 1111', means this command operation everyday.
DayN.ASATFRITHWEDTUEMONSUN
Binary01111111
Hex7F