Technical data

WMO2 G900 / G1800 / G1900
WCOM/GSM/WMO2/WMO2ATDOC Friday 21 May 1999
WAVECOM confidential © 65
4.7.8 Advice of charge +CAOC
Command syntax: AT+CAOC= <mode>
This refers to Advice of Charge supplementary service (GSM 02.24 [] and
GSM 02.86 []) that enables subscriber to get information about the cost of
calls. With <mode>=0, the execute command returns the current call meter
value (CCM) from the ME.
If AOC is supported, the command also includes the possibility to enable an
unsolicited event reporting of the CCM information.
The unsolicited result code +CCCM: <ccm> is sent when the CCM value
changes. Deactivation of the unsolicited event reporting is made with the
same command.
If AOC is supported, the Read command indicates whether the unsolicited
reporting is activated or not.
Defined values
<mode>:
0 query CCM value
1 deactivate the unsolicited reporting of CCM value
2 activate the unsolicited reporting of CCM value
<ccm>:
string type; three bytes of the current call meter value in hexadecimal
format
(e.g. "00001E" indicates decimal value 30); value is in home units and bytes are
similarly coded as ACMmax value in the SIM
Application to GSM AT+CAOC=0 Query CCM value
GSM to application +CAOC: "000A08"
OK
Display Current Call Meter value (CCM = 2568)
Application to GSM AT+CAOC=1 Deactivate unsolicited report of CCM value
GSM to application OK CCM report deactivated
Application to GSM AT+CAOC=2 Activate unsolicited report of CCM value
GSM to application OK CCM report activated
Application to GSM AT+CAOC ? Request mode
GSM to application +CAOC: <mode>
OK
Display unsolicited report mode (1 or 2)
Application to GSM AT+CAOC= ? Request supported modes
GSM to application +CAOC: (0-2)
OK
0,1,2 modes supported
4.7.9 Accumulated call meter +CACM
Set command resets the Advice of Charge related accumulated call meter
value in SIM file EF
ACM
. ACM contains the total number of home units for
both the current and preceding calls. SIM PIN2 is required to reset the
value. If setting fails in an ME error, +CME ERROR: <err> is returned.
Read command returns the current value of ACM.
Then ACM value (entered or displayed) is in hexadecimal format with 6
digits.
Application to GSM AT+CACM ? Request ACM value
GSM to application +CACM: "000400"
OK
Display ACM value
(ACM = 1024)
Application to GSM AT+CACM= 1234 Request ACM reset, real PIN2 is "1234"
GSM to application OK ACM value is reset
Application to GSM AT+CACM= 0000 Request ACM reset with wrong PIN2 value
GSM to application +CME ERROR: 17 SIM PIN2 required
Application to GSM AT+CACM ? Request ACM value
GSM to application +CACM: "000000"
OK
Display ACM value
(ACM = 0)