AT+M2M=2

AT+M2M=2 starts only the default M2M application, regardless if a user M2M application has the RUN permission set through AT#M2MRUN command.

For example, assume that the module has factory-setting configuration +M2M=0,10,0, and no user M2M application installed on it. Enter the following command to upload the user_m2mapz.bin application. Use the procedure shown in previous examples.

AT#M2MWRITE=”user_m2mapz.bin”,61684,1

>>> 

OK

 

Enter /MOD directory, and verify if the just uploaded .bin file has been stored in it.

AT#M2MLIST

#M2MLIST: <.>

#M2MLIST: <..>

#M2MLIST: "user_m2mapz.bin",61684

#M2MLIST: free bytes: 6097920

OK

 

Enter the next command to check which M2M application has RUN permission. The command works on executable binary files and compressed files stored in the /MOD directory (drive 0).

AT#M2MRUN?

OK                                           à no user applications have RUN permission

 

Use the following command to set the RUN permission for user_m2mapz.bin application and reset RUN permission for all other applications included the default M2M application.

AT#M2MRUN=2,"user_m2mapz.bin"

OK

 

Enter again the AT#M2MRUN? command to check which M2M application has RUN permission.

AT#M2MRUN?

#M2MRUN: “user_m2mapz.bin"              à user application has RUN permission

OK

 

Check the current +M2M value defining the application start mode on next reboot.

AT+M2M?

+M2M: 0,10,0                                      àthe execution of any application is disabled on next reboot (default)

OK

 

Enter the next command to reboot the module.

AT+M2M=2

OK

 

After rebooting, the default M2M application is executed even if the user M2M application has the RUN permission. The default M2M application displays on DTE the following message:

Telit Communications S.p.A - AppZone M2M Default Application...

OK

 

The AT parser can still receive AT commands from the operator on the serial line. Check the current +M2M value stored in NVM after the previous rebooting.

AT+M2M?

+M2M: 2,10,0

OK

 

Enter again the AT#M2MRUN? command to check which M2M application has RUN permission.

AT#M2MRUN?

#M2MRUN: “user_m2mapz.bin"              à user application has RUN permission

OK

 

Now, turn off/on the module. The module reboots and starts the default application even if the user M2M application has the RUN permission. The default M2M application displays on DTE the following message:

Telit Communications S.p.A - AppZone M2M Default Application...

OK

 

The AT parser can still receive AT commands from the operator on the serial line.