e42.uk Circle Device

 

Quick Reference

Update Own Number

Update Own Number (with AT commands)

Get to your terminal so that you can enter AT commands and enable extended error message reporting:

AT+CMEE=2

Look at the currently stored number (if there is one):

AT+CNUM
+CNUM: "MyNumberFieldUpdate","07900000000",129

Select the Own Number address book:

AT+CPBS="ON"

See that the ON address book is selected:

AT+CPBS?

On my SIM the response was:

+CPBS: "ON",1,6

The above indicates there are 6 spaces for "Own Numbers" and 1 is in use. To see what the first entry is:

AT+CPBR=1

This will respond with the entry:

+CPBR: 1,"07900000000",129,"MyNumberFieldUpdate"

If the AT+CNUM command worked earlier the results should be similar.

  • 1: this is the entry number in the phone book
  • "07900000000" this is the telephone number assigned to the SIM
  • 129 this indicates that the telephone number is in national dialing format, 145 is used if the number is specified in the international standard for MSISDN numbers
  • "MyNumberFieldUpdate" this is an arbitrary string used to identify the number, I don't think it is important.

To alter the number issue the command to write the phonebook entry

AT+CPBW=1,"07900000001",129,"MyNumberFieldUpdate"

To read all the numbers back (in this case there is only one):

AT+CPBR=1,6

I got the 6 from the earlier AT+CPBS? command. 1,6 indicates the query range, in this case show me numbers in slots 1 to 6 inclusive.

For more detail on the above commands check your module documentation, these are all fairly standard commands so should be supported. My reference is the Telit AT Reference Guide (linked in the references section).

References

Quick Links: Techie Stuff | General | Personal | Quick Reference