Multi-Tech Systems GPRS (MTSMC-G) ユーザーズマニュアル

ページ / 203
Chapter 4 – General AT Commands 
Multi-Tech Systems, Inc. Wireless GSM/GPRS AT Commands (Document Number S000293I) 
18 
 
Clock Management   +CCLK 
Description: 
Sets or gets the current date and time of the ME real-time clock. 
 
Values: 
<date and time string> 
 
 
String format for date/time is “yy/MM/dd,hh:mm:ss” 
 
Note: Valid years are 98 (for 1998) to 97 (for 2097). The second field is not mandatory. Default 
date/time is “98/01/01,00:00:00” (January 1
st
, 1998 / midnight). 
Syntax: 
AT+CCLK=<date and time string>  
Command 
Possible responses
AT+CCLK=”00/06/09,17:33:00” 
Note: set date to June 9th, 2000, and 
time to 5:33pm 
OK 
Note: Date/Time stored 
AT+CCLK=”00/13/13,12:00:00” 
Note: Incorrect month entered 
+CME ERROR 3 
AT+CCLK? 
Note: Get current date and time 
+CCLK: “00/06/09,17:34:23” 
OK 
Note: current date is June 9th, 2000 
current time is 5:34:23 pm 
 
 
 
 
Alarm Management   +CALA 
Description: 
Sets the alarm date/time in the modem. The maximum number of alarms is 16. 
 Note: 
The date/time should be set with the AT+CCLK command prior to using AT+CALA. 
Values: 
<date and time string> String format for alarms: “yy/MM/dd,hh:mm:ss” (see +CCLK) 
 
 
Note: Seconds are taken into account. 
 
<index> Offset in the alarm list, range 1 to 16 
Syntax: 
AT+CALA=<date and time string> (set alarm) 
 AT+CALA=””,<index> 
(delete 
alarm) 
Command 
Possible responses 
AT+CALA=”00/06/09,07:30” 
Note: set an alarm for June 9
th
, 2000 at 7:30 am 
OK 
Note: Alarm stored 
AT+CALA=”99/03/05,13:00:00” 
Note: set an alarm for March 5
th
, 1999 at 1:00 pm 
+CME ERROR 3  
Note: Invalid alarm (date/time expired) 
AT+CALA? 
 
Note: list all alarms 
+CALA: “00/06/08,15:25:00”,1 
+CALA: “00/06/09,07:30:00”,2 
+CALA: “00/06/10,23:59:00”,3 
Note: three alarms are set (index 1, 2, 3) 
 
+CALA: “00/06/08,15:25:00”,1  
Note: an alarm occurs (index 1) 
AT+CALA=””,3 
Note: delete alarm index 3 
OK 
Note: Alarm index 3 deleted 
AT+CALA? 
Note: list all alarms 
+CALA: “00/06/09,07:30:00”,2 
Note: Only one alarm (index 2)