|
Try this script included in AT Command Tester Tool.
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Script-at_cmee.at
//Test AT+CMEE AT command
//AT+CMEE Request Mobile Equipment Error
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//List of supported write values for AT+CMEE
AT+CMEE=?
//WAIT for 1 sec
WAIT=1
//Get current setting for error reporting
//If there is any error, CME error code is returned
AT+CMEE?
//WAIT for 1 sec
WAIT=1
//Disable +CME ERROR:
//is disabled
AT+CMEE=0
//WAIT for 1 sec
WAIT=1
//Try an AT command that will result in error condition
AT+CREG=5
//WAIT for 1 sec
WAIT=1
//Enable +CME ERROR:
AT+CMEE=1
//WAIT for 1 sec
WAIT=1
//Try an AT command that will result in error condition
AT+CREG=5
//WAIT for 1 sec
WAIT=1
//Enable +CME ERROR:
AT+CMEE=2
//WAIT for 1 sec
WAIT=1
//Try an AT command that will result in error condition
AT+CREG=5
Output of above script in AT Command Tester Tool.
AT+CMEE=?
+CMEE: (0-2)
OK
AT+CMEE?
+CMEE: 2
OK
AT+CMEE=0
OK
AT+CREG=5
ERROR
AT+CMEE=1
OK
AT+CREG=5
+CME ERROR: 604
AT+CMEE=2
OK
AT+CREG=5
+CME ERROR: Unspecified Error