SERVICE


Some commands allow maintenance operations on the device:


CLEAR PENDING MESSAGES


All pending messages waiting to be sent will be deleted.


Command

AT#CLEARMSG

Response

OK

COMMAND ACCEPTED


ERROR

COMMAND REJECTED

CLEAR PENDING COMMANDS


All pending commands waiting to be executed will be deleted.


Command

AT#CLEARCMD

Response

OK

COMMAND ACCEPTED


ERROR

COMMAND REJECTED

SYNC CLOUD MAP


Send map to MQTT broker (map topic).
Overwrites the current value(s).


Command

AT#SMAP[=<p1>[,<p2>[,<p3>[,<p4>[,<p5>]]]]]

Response

OK

COMMAND ACCEPTED


ERROR

COMMAND REJECTED

PARAMETERS

<p1>,<p2>,<p3>,<p4>,<p5>

UP TO 5 PARAMETERS IDENTIFIED BY THEIR CODE,

SEPARATE BY COMMA

To upload the entire map:

AT#SMAP

OK


To update the average value of the 4 analog inputs:

AT#SMAP=A12,A22,A32,A42

OK

EVENT DETECTION


Event detection is disabled, no rules will be triggered until the service is disabled, restored automatically at the end of the day (23:59).


Command

AT#EVENT=<mode>

Response

OK

COMMAND ACCEPTED


ERROR

COMMAND REJECTED

PARAMETERS

<mode>

0 : EVENT DETECTION DISABLED

1 : EVENT DETECTION ENABLED

EVENT SIMULATION


Forces the execution of all  rules belonging to an event.

Any conditions included within the rule will also be checked.


Command

AT#TRIGGER=<event>

Response

OK

COMMAND ACCEPTED


ERROR

COMMAND REJECTED

PARAMETERS

<event>

CODE OF THE TRIGGER TO BE EXECUTED

LIST OF EVENTS


To trigger all rules belonging to digital input 1:

AT#TRIGGER=I1

OK

PLMN FIRMWARE UPGRADE


Starts the "over the air" upgrade procedure to the latest available version of the optional PLMN module firmware, downloaded from mobikey.eu

APN must be set and cellular data connection is required.

Once the download is completed and verified the unit will restart.


Command

AT+FOTA

Response

OK

COMMAND ACCEPTED


ERROR

COMMAND REJECTED

DEVICE INFO


Returns device information:

model, firmware, date of production, MAC address.


Command

AT#HEADER

Response

OK

COMMAND ACCEPTED


ERROR

COMMAND REJECTED

COM PORT SETTINGS


Set serial communication port (RJ45) parameters.


Command

AT#UART=<baud>,<bits>,<parity>,<stop>

Response

OK

COMMAND ACCEPTED


ERROR

COMMAND REJECTED

PARAMETERS

<baud>

BAUD RATE

1200 2400 4800 9600 19200 38400 57600 115200


<bits>

FRAME BIT NUMBER

5 6 7 8


<parity>

FRAME PARITY

N: NONE

E: EVEN

O: ODD


<stop>

FRAME STOP BITS

1 2


To set baudrate 9600, frame 8 bit, even parity and 1 stop bit:

AT#UART=9600,8,N,1

No answer when command is issued to com port itself.


To retrieve current settings:

AT#UART?

#UART:115200,8,N,1

CHECK INTERNET AVAILABLITY


Verify internet connection is available via cellular modem.


Command

AT#CHECKINTERNET

Response

OK

INTERNET  AVAILABLE


KO

INTERNET  NOT AVAILABLE


ERROR

COMMAND REJECTED


Anomalies may occur if this command is given when the cellular network  does not guarantee direct access to the public network.