http://www.wavecom.com/forum Open AT ® Release version: 3.13 |
This sample depends on the following libraries :
As this application uses the MultiApp library, the following start/stop command has to be used to control the application execution.
AT+CMONSTART (Call Monitoring start/stop command)
Command | Answers |
AT+CMONSTART? | +CMONSTART:
<state>
OK |
AT+CMONSTART=? | +CMONSTART:
(0-1)
OK |
AT+CMONSTART= <state> | +CME ERROR: 3 or OK |
Parameter | Values range | Description | Default value |
state | 0-1 | The current application running state. This parameter is stored in non-volatile memory. | 0 |
The init entry point sent to the MultiApp library is the cmon_init() function. The start/stop entry points linked to the +CMONSTART command are the cmon_run() and cmon_stop() functions.
This application provides unsolicited responses in order to inform the external application of the current call operations. The syntax of this unsolicited response is the following (Wavecom OpenAT Call Monitor) :
+WOCM: <ID>,<dir>,<status>,<mode>,<mpty>,<number>,<type>,<alpha>,<exit_cause>
All parameters are similar to the +CLCC response, except the <exit_cause> parameter. This one is equal to 0, except when the call is released : this parameter is then the error returned by the +CEER command. A new +WOCM unsolicited response is displayed when the <status> parameter has changed for this call <ID>. In addition with the +CLCC <status> values, the status value takes the value "6" when the call is released.
A log system is provided to save in Flash Memory the last unsolicited +WOCM responses for each call ID. This system is managed by the +WOCM command :
AT+WOCM (Call Monitoring Logs control command)
Command | Answers |
AT+WOCM? | +WOCM:
<mode>
,
<logs>
OK |
AT+WOCM=? | +WOCM:
(0-3)
,
(1-7)
OK |
AT+WOCM= <mode> , <ID> | +CME ERROR: 3 or OK |
Parameter | Values range | Description | Default value |
mode | 0-3 | 0 : to disable the log saving system (default) 1 : to enable the log saving system 2 : to read the saved log for provided call ID 3 : to delete the saved log for provided call ID | mandatory |
ID | 1-7 | Log ID to read or delete (for modes 2 and 3) | NA |
logs | 00-3E | hexadecimal string, each bit (from 0 to 6, for each call
ID) is set if a call log was saved for this call ID. For example : "01" : a log is saved in Flash Memory for call ID 1 "0A" : a log is saved in Flash Memory for call IDs 2 and 4 | NA |
Updated: Wed Apr 4 13:10:42 CEST 2007;