30.06.2014 Views

MC52i AT Command Set

MC52i AT Command Set

MC52i AT Command Set

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>MC52i</strong> <strong>AT</strong> <strong>Command</strong> <strong>Set</strong><br />

<br />

1.6 Supported character sets<br />

1.6 Supported character sets<br />

<strong>MC52i</strong> supports two character sets: GSM 03.38 (7 bit, also referred to as GSM alphabet or SMS alphabet) and<br />

UCS2 (16 bit, refer to ISO/IEC 10646). See <strong>AT</strong>+CSCS for information about selecting the character set. Character<br />

tables can be found below.<br />

Explanation of terms<br />

• Escape sequence<br />

The escape sequence used within a text coded in the GSM default alphabet (0x1B) must be correctly interpreted<br />

by the TE, both for character input and output. To the <strong>MC52i</strong>, an escape sequence appears like any<br />

other byte received or sent.<br />

• TE Character <strong>Set</strong><br />

The character set currently used by the Customer Application is selected with <strong>AT</strong>+CSCS. It is recommended<br />

to select UCS2 setting.<br />

• Data Coding Scheme (DCS)<br />

DCS is part of a short message and is saved on the SIM. When writing a short message to the SIM in text<br />

mode, the DCS stored with <strong>AT</strong>+CSMP is used and determines the coded character set.<br />

When you enter characters that are not valid characters of the supported alphabets the behavior is undefined.<br />

If GSM alphabet is selected, all characters sent over the serial line (between TE and ME) must be in the range<br />

from 0 to 127 (7 bit range).<br />

Note: If the ME is configured for GSM alphabet, but the Customer Application (TE) uses ASCII, bear in mind that<br />

some characters have different code values, such as the following:<br />

• "@" character with GSM alphabet value 0 is not displayable by an ASCII terminal program, e.g. Microsoft©<br />

Hyperterminal®.<br />

• "@" character with GSM alphabet value 0 will terminate any C string! This is because value 0 is defined as C<br />

string end tag. Therefore, the GSM Null character will cause problems on application level when using 'C'-<br />

functions, e.g. "strlen()". Using an escape sequence as shown in the table below solves the problem. By the<br />

way, this may be the reason why even network providers sometimes replace '@' with "@=*" in their SIM application.<br />

• Some other characters of the GSM alphabet may be misinterpreted by an ASCII terminal program. For example,<br />

GSM "ö" (as in "Börse") is assumed to be "|" in ASCII, thus resulting in "B|rse". This is because in both<br />

alphabets there are different characters assigned to value 7C (hexadecimal).<br />

If sending characters differently coded or undefined in ASCII or GSM (e.g. Ä, Ö, Ü), use of escape sequences is<br />

reasonable. The escape sequence will be translated into the corresponding GSM character value that can be<br />

correctly represented by any program using the GSM alphabet. However, trying to read the same string with an<br />

ASCII terminal program will display a wrong character.<br />

Table 1.6:<br />

GSM 03.38<br />

character<br />

Examples for character definitions depending on alphabet<br />

GSM character<br />

hex. value<br />

Corresponding<br />

ASCII character<br />

ASCII<br />

Esc sequence<br />

Hex Esc<br />

sequence<br />

Ö 5C \ \5C 5C 35 43<br />

" 22 " \22 5C 32 32<br />

@ 00 NULL \00 5C 30 30<br />

Some terminal programs do not recognize escape sequences, and thus, handle escape sequences as normal<br />

characters. How to use escape sequences depends on the terminal program.<br />

To prevent misinterpretation of control characters or special characters it is recommended to always use USC2<br />

alphabet and PDU mode.<br />

<strong>MC52i</strong>_<strong>AT</strong>C_V01.201 Page 21 of 551 4/16/10<br />

Confidential / Released

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!