Clock Management +Cclk; Alarm Management +Cala - Multitech MMCModem GPRS (MTMMC-G) Reference Manual

Wireless gsm/gprs modems at commands reference guide
Table of Contents

Advertisement

Clock Management +CCLK

Description:
Sets or gets the current date and time of the ME real-time clock.
Values:
<date and time string>
Syntax:
AT+CCLK=<date and time string>
Command
AT+CCLK="00/06/09,17:33:00"
Note: set date to June 9th, 2000, and
time to 5:33pm
AT+CCLK="00/13/13,12:00:00"
Note: Incorrect month entered
AT+CCLK?
Note: Get current date and time

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)
<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
AT+CALA="00/06/09,07:30"
Note: set an alarm for June 9
AT+CALA="99/03/05,13:00:00"
Note: set an alarm for March 5
AT+CALA?
Note: list all alarms
AT+CALA="",3
Note: delete alarm index 3
AT+CALA?
Note: list all alarms
Multi-Tech Systems, Inc. Wireless GSM/GPRS AT Commands (Document Number S000293I)
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
Note: Seconds are taken into account.
th
st
, 1998 / midnight).
Possible responses
OK
Note: Date/Time stored
+CME ERROR 3
+CCLK: "00/06/09,17:34:23"
OK
Note: current date is June 9th, 2000
current time is 5:34:23 pm
Possible responses
OK
, 2000 at 7:30 am
Note: Alarm stored
+CME ERROR 3
th
, 1999 at 1:00 pm
Note: Invalid alarm (date/time expired)
+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)
OK
Note: Alarm index 3 deleted
+CALA: "00/06/09,07:30:00",2
Note: Only one alarm (index 2)
Chapter 4 – General AT Commands
18

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents