Application Operation
Last updated
Last updated
The device has 2 operational modes
Normal Mode
Button Override Mode
In Normal Mode the Relay outputs are controlled by LoRaWAN downlinks.
In the Override Channel mode the user can control the output of each relay by a button operation on the device.
When an override of a channel is detected the State of the relay will change from automatic to manual, which will trigger an uplink event to the LoRaWAN network.
The relay channel is operated based on the flowdiagram shown above, both relay channels follow the same flowdiagram.
Within this documentation we speak of the relay being ON or OFF for clarity we define what this means.
Relay ON, means that there is current running between the terminals C and NO of the relay. Relay OFF, means that there is current running between the terminals C and NC of the relay.
The initial state is activated every time mains power is connected, of when the reset button is pressed. When reaching the initial state the relay will switch to a user programmable ādefault stateā this allows for applications where you want to resume the relay output after a power outage. The LoRaWAN communication watchdog makes it possible to handle LoRaWAN network outages.
The Desired Relay State is determined based on the last change of value to the controller, so the last command received will be the Desired Relay State. After the Normal Mode Desired Relay State is determined, the signal goes through the Button Override Mode followed by the Temperature Check which will determine if the relay can be powered without damaging the PCB, if the temperature check is not in an Alarm State the signal will be send onwards to Physical Relay.
The default state is a good mechanism to avoid unwanted activations of the relay for example after a power outage. The last known state of the relay channels are saved in the flash memory of the device, and so is the default state setting. This allows for setting the default state to 3 possible settings;
Off: switch the relay off
On: switch the relay on
Retain: go back to the last known state of the relay
Channel 1 - Default State
0
0 = Off 1 = On 2 = Retain
Channel 2 - Default State
0
0 = Off 1 = On 2 = Retain
The communication watchdog is a built-in mechanism to handle LoRaWAN network outages, the watchdog will check if the communication with the LoRaWAN network server is still āaliveā. When a communication watchdog alarm occurs the Desired Relay State is set back to the timeout state, the timeout for the watchdog alarm to be given is configurable.
The watchdog for communication comes from the LoRaWAN Communication.
Channel 1 State on Communication Watchdog
2
0 = Off 1 = On 2 = Retain
R/W
Channel 2 State on Communication Watchdog
0x65
2
0 = Off 1 = On 2 = Retain
R/W
The timeout state setting has 3 possible settings;
On: switch the relay on
Off: switch the relay off
Retain: go back to the last known state of the relay
The button override mode is stored in the flash memory of the device, after a power outage the last known override mode is restored.
The override mode can be changed by sending a downlink command, note that the override mode by downlink can only be set to āNormal Modeā.
Override Button Function - Channel 1
1
0 = Disabled 1 = Enabled
R/W
Button Override Status - Channel 1
-
0 = Normal Mode 1 = Manual On 2 = Manual Off
R
Reset Button Override - Channel 1
-
sent 1 to reset override back to Normal Mode
W
Override Button Function - Channel 1
1
0 = Disabled 1 = Enabled
R/W
Button Override Status - Channel 1
-
0 = Normal Mode 1 = Manual On 2 = Manual Off
R
Reset Button Override - Channel 1
-
sent 1 to reset override back to Normal Mode
W
The internal circuit of the device is monitored to detect abnormal internal device temperatures. Abnormal temperatures can result from overloading the relay or the internal circuit / busbar etc.
The temperature treshold is fixed at the maximum operating temperature as listed within the technical specifications. If the measures temperature goes above the treshold the relay channels will go OFF immediately regardless of the relay state or the manual override.
When the temperature drops 5Ā°C below the maximum operating temperature the device will return to the initial device state.