+M2M – Enable/disable M2M Application execution |
SELINT 2 | |
AT+M2M=<start_mode>[,<start_to>,<start_shell>] |
Set command sets the M2M Application execution start mode
Parameters: <start_mode> 0 – disable the M2M Application execution at the next startup (default). 1 – enable the M2M Application execution at the next startup. 2 – enable the default M2M Application execution at the next startup. 3 – enable the M2M Application execution only if, at the next startup, the DTR line is found Low (that is: COM is not open on a PC). 4 – enable the M2M Application execution only if, at the next startup, the user does not send any AT command on the serial port for time interval specified in. <start_to> parameter. The DTR line is not tested.
<start_to> – M2M Application execution start time-out; 10..60 - time interval in seconds; this parameter is used only if parameter <start_mode> is set to 4; it is the waiting time for an AT command on the serial port to disable active script execution start. If the user does not send any AT command on the serial port for the time specified in this parameter the M2M Application will not be executed (default is 10).
<start_shell> – Reserved for future use.
Note: after issuing the AT command, the module will automatically restart. Note: an optional way to disable the M2M application execution (when <start_mode>=1 or 2) consists to flash an appropriate the stream. | |
AT+M2M? |
Read command reports the M2M Application execution start mode, start time-out, and start shell in the format: +M2M: <start_mode>,< start_to>,<start_shell> | |
AT+M2M=? |
Test command returns the range of available values for parameters < start_mode>, < start_to>, and <start_shell>. |