MyTetra Share
Делитесь знаниями!
Сотовый телефон Siemens - AT-команды для работы с SIM-картой, звонками, записной книжкой
Время создания: 13.05.2015 10:14
Раздел: Компьютер - Аппаратное обеспечение - Мобильные телефоны - Siemens M50
Запись: xintrea/mytetra_syncro/master/base/1431501245zza8w1jyhl/text.html на raw.github.com

Appendix A

Factory settings made by AT&F

ATE1 (only in case of RCCP mode)

ATQ0 ATV1

AT+CREG=0

AT+CLIP=0

AT+CRC=0

AT+CAOC=0 AT+CMEE=0

AT+CPBS=SM (if available)

AT+COPS=0

AT+VTS=1

AT+CSCS="GSM"

AT+CSSN=0,0

AT^SCKS=0

Reset pending locks (Phone Pin/Puk, Pin2/Puk2 ...) which are give as answer of AT+CPIN?

AT+CSMS=0

AT+CNMI=0,0,0,0,1

AT^SMGO=0 AT+CSCB=0


Features of the Telephone-Book Memory

Name

Description

Category /

Access

Write

Delete completely

FD

Fix-dialing number

(SIM fix-dialing telephone book)

GSM 07.07 /

+CPBS or

^SPBS

Allowed (PIN2 required)

 

SM

Abbreviate dialing number (SIM telephone book)

GSM 07.07 /

+CPBS or

^SPBS

Allowed

(device code required if FDN

replacement is active)

 

DC

(MD)

Mobile last dialing number (last number redial memory; only if ”LD” is not available)

GSM 07.07 /

+CPBS or

^SPBS

Not allowed

By means of AT^SDLD

ON

(OW)

Own Numbers

(SIM own telephone numbers)

GSM 07.07 (Siemens) /

+CPBS

(historical)

Allowed

 

 

LD

SIM last dialing number (last number redial memory on SIM)

GSM 07.07 /

+CPBS or

^SPBS

Not allowed

By means of AT^SDLD

ME

Mobile-equipment telephone book (ME dialing numbers)

GSM 07.07 /

+CPBS or

^SPBS

Allowed

(device code required if FDN

replacement is active)

 

BD

Barred dialing numbers (blocked numbers)

Siemens / ^SPBS

Not allowed

 

SD

Service dialing numbers (Service numbers)

Siemens / ^SPBS

Not allowed

 

MC

(MS)

Missed dialing numbers (unanswered calls)

GSM 07.07 (Siemens) /

+CPBS, ^SPBS

Not allowed

 

RC

(CD)

Callback dialing numbers  (answered calls)

GSM 07.07 (Siemens) /

+CPBS,^SPBS

Not allowed

 

BL

Blacklist dialing numbers (numbers that are blocked for a certain time in order to prevent continuous

accesses from remote

control)

Siemens / ^SPBS

Not allowed

 

MB

Mailbox dialing numbers (network-operator mailbox)

Siemens / ^SPBS

Not allowed

 

CS

Common sortable numbers

(sorted combination of

”SM”, ”ME”, ”FD”)

Siemens /

^SPBS

/^SPBC / ^SPBG

Not allowed

 

RD

Red book numbers

(”CS” entries with ‘!’ at the end of the name portion)

Siemens /

^SPBS

/^SPBC / ^SPBG

Not allowed

 


Writing to the FDN Phonebook / FDN Replacement

Writing to the fix-dialing number phonebook is protected by PIN2. A Write sequence (to e.g. record 5) runs as follows:

AT+CMEE=2    //Activate expanded error message OK

AT+CPBS=?                                       // Listing of available telephone books

+CPBS: (“FD”,”SM”,”LD”)

OK

AT+CPBS=”FD”           // Selection of the FDN telephone book OK

AT+CPBW=5,"1234",,”test”         //  A Write to record 5 is attempted... +CME ERROR: SIM PIN2 REQUIRED  //  ... PIN2 is required for this purpose

AT+CPIN?

//  Query of the PIN status...

+CPIN: SIM PIN2

//  ... PIN2 is to be entered

AT+CPIN="12345678" OK

//   Input of PIN2

AT+CPBW=5,"1234",,”test”

// A Write to record 5 is attempted...

OK

// PIN2 remains active as long as you use the commands

// +CPIN, +CPBS, +CPBR, +CPBW, +CACM,

// +CAMM, +CPUC

// ^SPIC, ^SPBS, ^SPBC, ^SPBG,:

//  If you use other commands or if none of the //  above commands are executed within five //  minutes, the validity of PIN2 is voided.

AT+CPBW=6,"5678",,”new test”

OK

//  A Write to record 6 is attempted...

...

In addition, if there is no FDN phonebook available on the SIM, it is possible to activate a feature which activates FDN-like behavior for the ”SM” and ”ME” phonebooks (FDN replacement). (Currently this feature can only be activated via the MMI lock/device lock/excluding telephone book.)

In this case, the Write to the ”SM” and ”ME” phonebooks is ensured by the device code (PH-SIM PIN and PH-SIM PUK, respectively).

The sequence for entering the device code is analogous to the above example.


Special hints for using +CPBR/+CPBW command

String parameters ,like the <text> in +CPBW command shall be entered using quotation marks `"` ( Ascii=Windows=GSM=0x22).e.g. "Doe Joe"

It is possible to enter string parameters without `"` but not recommended, because following problems may occure:

If no `"` are used:

-        SPACEs (Space, Blank, Ascii=Windows=GSM=0x20) are skipped.

E.g.         at+cpbw=1,"123",,K.    H.  results in "K.H." L at+cpbw=1,"123",,"K.    H."SPACEs are kept J

-        No `,` (Ascii=Windows=GSM=0x2C) and

      `;` (Ascii=Windows=GSM=0x3B) in <text> is possible, because this characters are used as separator of parameters/commands.

E.g.         at+cpbw=1,"123",,Kurz,Helmut    result in ERROR L at+cpbw=1,"123",,"Kurz,Helmut"     J

But there are also some points to note when using quotation marks `"`:

There are some characters which cannot be entered in normal way:

e.g. quotation mark `"` character itself, because this is interpreted as the end of the <text>

To make this (and some other special characters) possible to be entered, the character with hex value 0x5c is used as escape character. In the ASCII character

set this is equal the `\` ,like proposed in V.25ter.  (Ascii=Windows=0x5C) Unfortunately there is no `\` in GSM character set. The 0x5C equals the `Ö`

The escape sequence has the following structure:

-        The sequence beginns with the escape character 0x5C

(ASCII=Windows=`\', GSM=`Ö`)

-        The special character follows and is entered 2 Byte representation of the GSM chacter set value .

e.g. the 2 Byte representation of the `@` (GSM=0x00)  is `00`


Following special characters shall be entered by using the escape sequence:

GSM

Hex

ASCII

GSM

Seq.(hex)

Note

Char

char.

 

Esc Seq

 

 

Ö

5C

\

Ö5C

5C 35 43

Backslash

"

22

Ö22

5C 32 32

String delimiter

ò

08

BSP

Ö08

5C 30 38

Backspace

@

00

NULL

Ö00

5C 30 30

GSM NULL


Examples:

GSM string wanted       String in AT+CPBW     String in AT+CPBW in Phonebook          Command(GSM)               Command (Hex)

Ölhändler                     "Ö5ClhÖ7Bndler"         22 5C 35 43 6C 68 7B 6E 64 6C 65 72 22

"Eddi" Kurz                  "Ö22EddiÖ22 Kurz"  22 5C 32 32 45 64 64 69 5C 32 32 20 4B 75 72 7A 22

Oòo                                      "OÖ08o"                 22 4F 5C 30 38 6F 22

@Adr.

"Ö00Adr."

22 5C 30 30 41 64 72 2E 22

[no problems with strlen()]

 

"@Adr."

22 00 41 64 72 2E 22

[may cause problems with strlen() in application]

Note:

When reading phonebook records, there is NO replacement. Every character will appear in normal GSM character set notation (like the left column in the example above).


Так же в этом разделе:
 
MyTetra Share v.0.59
Яндекс индекс цитирования