CONTROL


Commands that allow direct control of the device:



SWITCH OFF DEVICE


Powers down the device. The unit will remain powered until external power sources are removed, after which all peripherals (including the on-board real-time clock) are disconnected and power consumption is reduced to zero.

To restart the device, reconnect the external power supply.


Command

AT#OFF

Response

OK

COMMAND ACCEPTED


ERROR

COMMAND REJECTED

OUTPUT & MEMORY BITS


Although it is possible to control outputs and memory bits by modifying the parameters in the map file, a specific command allows setting the status and optional release time.


Command

<id>=<cmd>[,<time>]

Response

OK

COMMAND ACCEPTED


ERROR

COMMAND REJECTED


Parameters

<id>

OUTPUT NAME AS DEFINED IN TAG Ox1

MEMORY BIT NAME AS DEFINED IN TAG Mx0


<cmd>

0 or off : RESET OUTPUT OR MEMORY BIT

1 or on : SET OUTPUT OR MEMORY BIT

T : TOGGLE CURRENT STATUS


<time> 1

0001 ... 3600 : SECONDS TO RELEASE, or

hhmmss : HOURS, MINUTES,SECONDS TO RELEASE, or

YYMMDDhhmm : RELEASE DATE 2

1


2

For the outputs and the memory bits 0 ... F it is possible to use TAGs as long as they contain admissible values


If the on-board clock has never been set, the device will only count hours and minutes, ignoring the date.


Both the default and the assigned name can be used as an identifier, for example the default name for output 1 is out1 and the name lamp may have been assigned then out1=1 or lamp=1 are equivalent.

<time> is optional and ignored for reset and toggle commands.

WAIT


Pauses the execution of commands.

Omitting the pause time, forces the end of any pause in progress and immediately resumes the execution of the commands.


Command

AT#WAIT[=<time>]

Response

OK

COMMAND ACCEPTED


ERROR

COMMAND REJECTED

Parameters

<time>

1...9 : SECONDS


Useful within rules or in executing concatenated commands:

out1=1 at#wait=5 out2=1

in this sequence output 2 is activated  5 seconds after output 1

FORCE BATTERY CHARGE


Force battery charge on / off, disregarding battery management.

It's a temporary condition: battery management will take control at least 60 seconds later.


Command

AT#CHRG=<status>

Response

OK

COMMAND ACCEPTED


ERROR

COMMAND REJECTED

Parameters

<status>

0 : TURN OFF CHARGE

1 : TURN ON CHARGE

REBOOT


Device application restart (software reset).


Command

AT#REBOOT

Response

...

DEVICE STARTUP INFORMATION


ERROR

COMMAND REJECTED


Note: No response if commands is sent by SMS or MQTT.