9.12 AT+CPUC Price Per Unit and Currency Table
Description:
Test Command Syntax:
Response:
Read Command Syntax:
Response:
Write Command Syntax:
Response:
Parameter Descriptions:
<currency>
Three-character currency code (e.g., "GBP", "EUR"). If the currency name is longer than three characters, all
characters will be cut off after the third position. Before they are written to the SIM Card, these characters are
converted to the standard GSM alphabet.
<ppu>
Price per unit; dot is used as a decimal separator (e.g., "2.66"). The length is limited to 20 characters. If the string
length is exceeded, the command is terminated with an error. This string may only contain digits and a dot.
Leading zeros are removed from the string. The minimum and maximum value are determined by the structure of
the SIM-PUCT file. The maximum price per unit value is 999 999 999.00. When successfully entered, this value
is rounded to maximum accuracy.
Note:
Due to storage in mantisse (range 0-4095) and exponent (-7 to 7) it is possible that rounding errors occur.
<passwd>
SIM PIN2. String parameter which can contain any combination of characters. The maximum string length is
limited to 8 characters. If this value is exceeded, the command terminates with an error message. If the PIN2 is
incorrect, a CME error (+CME ERROR: incorrect password) is output.
Example:
Two ways to change currency and/or price per unit:
1. You can enter PIN2 along with the AT+CPUC command:
AT+CPUC="EUR","0.10","8888" (where "8888" = PIN2)
OK
2. Alternatively, you can first use the AT+CPIN2 command to enter PIN2. When you execute the AT+CPUC
command, subsequently, take into account that PIN2 authentication expires after 300ms (see notes in
AT+CPIN2).
AT+CPUC="EUR","0.10"
OK
AT+CPUC="EUR","0.10"
+CME ERROR: SIM PIN2 required
Multi-Tech Systems, Inc. AT Commands for EDGE Modems (S000371G)
The read command returns the current parameters of PUC.
The write command sets the parameters of Advice of Charge related price per unit and
currency table. SIM PIN2 is usually required to set the parameters.
AT+CPUC=?
OK
AT+CPUC?
+CPUC: <currency>, <ppu>
OK
ERROR
+CME ERROR: <err>
AT+CPUC=<currency>, <ppu>[, <passwd>]
OK
ERROR
+CME ERROR: <err>
Chapter 9 – Supplementary Service Commands
Successful
Attempt not successful. PIN2 authentication has expired.
128
Need help?
Do you have a question about the MultiModem EDGE and is the answer not in the manual?