2 alarm function, 1 regulate the alarm time & behavior, At+cala="<time>",0,<type>,"<text>"<cr – Rainbow Electronics GM862-QUAD-PY User Manual

Page 85

Advertising
background image





GM862-QUAD / PY Software User Guide

1vv0300747 Rev. 3 - 10/07/07

Reproduction forbidden w ithout Telit Communications S.p.A. w ritten authorization - All Rights Reserved

page 85 of 96

3.7.2 Alarm function

Once the current time has been set, the alarm function can be setup.

3.7.2.1 Regulate the Alarm time & behavior

Send command

AT+CALA="<time>",0,<type>,"<text>"<cr>

where:
<time> is the Alarm time string in the same format of the clock setting command:

yy/MM/dd,hh:mm:ss±zz
where:
yy : two digits year (00-99)
MM : two digits month (01-12)
dd : two digits day (01-31)
hh : two digits hour (00-24)
mm : two digits minute (00-60)
ss : two digits seconds (00-60)
±zz: signed two digits timezone (-11 - +11)


<type> is the Alarm behavior:
0 - reserved for other equipment use.
1 - the MODULE simply wakes up fully operative as if the ON/OFF button had been pressed. If the

device is already ON at the alarm time, then it does nothing.

2 - the MODULE wakes up in "alarm mode" if at the alarm time it was off, otherwise it remains fully

operative. In both cases the MODULE issues an unsolicited code every 3s:

+ALARM: <text>
where <text> is the +CALA optional parameter previously set.

The device keeps on sending the unsolicited code every 3s until a #WAKE or #SHDN command is
received or a 90s timeout occurs. If the device is in "alarm mode" and it does not receive the
#WAKE command within 90s then it shuts down. (default)

3 - the MODULE wakes up in "alarm mode" if at the alarm time it was off, otherwise it remains fully

operative. In both cases the MODULE starts playing the alarm tone on the selected path for the
ringer (see command #SRP)
The device keeps on playing the alarm tone until a #WAKE or #SHDN command is received or a
90s timeout occurs. If the device is in "alarm mode" and it does not receive the #WAKE command
within 90s then it shuts down.

4 - the MODULE wakes up in "alarm mode" if at the alarm time it was off, otherwise it remains fully

operative. In both cases the MODULE brings the pin GPIO6 high, provided its <direction> has
been set to alarm output, and keeps it in this state until a #WAKE or #SHDN command is received
or a 90s timeout occurs. If the device is in "alarm mode" and it does not receive the #WAKE
command within 90s then it shuts down.

5 - the MODULE will make both the actions as for <type>=2 and <type>=3.
6 - the MODULE will make both the actions as for <type>=2 and <type>=4.
7 - the MODULE will make both the actions as for <type>=3 and <type>=4.

<text>
- unsolicited alarm code text string. It has meaning only if <type> is equal to 2 or 5 or 6.

wait for response

OK

Advertising