Skip to Content

AR Command — Voltage and Temperature Thresholds

Configuration of trigger “windows” for analog inputs, system voltages, and temperature sensors.


What is it for?

Use caseDescription
🔋 Battery monitoringAlert when voltage leaves safe range
🌡️ Temperature controlDetect over-temperature or freezing
Analog inputsMonitor external voltages on digital inputs
🚨 AutomationGenerate AR+ and AR- events for rules

Description

Rinho manages analog voltages on its digital inputs, allowing reading of external voltages and configuration of trigger thresholds or voltage range “windows”.

Can be used:

  • The device’s analog inputs (AD0-AD5)
  • The main power supply and backup battery as auxiliary inputs
  • Temperature values obtained via OneWire input

Generates AR+ when the value enters the configured range and AR- when it exits the range (both above and below).


Syntax

Query

QARaa

Response

RARaabbcddddeffffggg

Configure

SARaabbcddddeffffggg

Parameters

FieldDescriptionValues
aaThreshold index00 to 07
bbInput index to senseSee inputs table
cLower threshold sign+ or - (temperatures), + (voltages)
ddddMinimum value+0000 to +3000 cV or -5500 to +8500 °C
eUpper threshold sign+ or - (temperatures), + (voltages)
ffffMaximum value+0000 to +3000 cV or -5500 to +8500 °C
gggDebounce (optional)Tenths of second (IoT v1.04.03+)

Input Indices

IndexInputDescription
00-05AD0-AD5Digital/analog input
06VMain power supply
07VBUBackup battery
08OW0/DT0OneWire input 0
09OW1/DT1OneWire input 1
10TEMPInternal microcontroller temperature
11-16DT2-DT7Additional temperature sensors (IoT only)

The maximum allowable voltage on the measurement scale is 30.00 Vdc.


Examples

Main battery monitoring

>SAR0206+1050+1380<

Configures threshold 02 to sense the main battery (06) between 10.50V and 13.80V.

Behavior:

  • AR02+ → Voltage enters range 10.50V-13.80V
  • AR02- → Voltage exits range (< 10.50V or > 13.80V)

OneWire temperature control

>SAR0408+3000+3500<

Configures threshold 04 to sense the OneWire input (08) between 30°C and 35°C.

Behavior:

  • AR04+ → Temperature enters zone 30°C-35°C
  • AR04- → Temperature exits range (< 30°C or > 35°C)

Associated Signals

PropertyValue
SignalAR
Index00-07
Suitable for conditional useYes
Edges+ (enters range), - (exits range)

CommandDescription
ADAnalog voltage reading
AEExtended analog input reading
DTOneWire temperature reading
SSTrigger configuration

Compatibility

💾Firmware v1.03.00
SPLegacy
ULLegacy
8 thresholds
💾Firmware v1.00.00
SP-IOT
SM-IOT
ZE-IOT
8 thresholds, debounce v1.04.03+, DT2-DT7

See Also

Last updated