Changing The Character Set - Motorola G24 Guide Developer's Manual

At commands
Hide thumbs Also See for G24 Guide:
Table of Contents

Advertisement

Changing the Character Set

Example
When an SMS messages with the following text: "Motorola G24 OEM Module", is saved inside
the G24 at entry 128, you can read it using several character sets.
When the "ASCII" character set is used, the following is received by the terminal:
AT+CSCS?
+CSCS: "ASCII"
OK
AT+CMGR=128
+CMGR: "STO UNSENT",""
Motorola G24 OEM Module
OK
When the "USC2" character set is used, the following is received by the terminal:
AT+CSCS?
+CSCS: "UCS2"
OK
AT+CMGR=128
+CMGR: "STO UNSENT",""
004D006F0074006F0072006F006C006100200067003200300020004F0045004D
0020004D006F00640075006C0065
OK
The following is an ASCII translation of the SM contents:
004D
006F
0074
006F
0072
006F
006C
0061
0020
0067
0032
0030
0020
004F
0045
004D
0020
004D
006F
0064
0075
006C
0065
As this SMS was originally written in ENGLISH, meaning ASCII letters, each digit quadruplet
starts with double zeros (00). When other languages are used, the quadruplets have different
values.
December 31, 2007
//Read the current character set
//Currently using ASCII character set
//Read SMS entry 128
//The content of SMS entry 128
//Read the current character set
//Currently using UCS2 character set
//The content of SM entry 128
M
o
t
o
r
o
l
a
[space]
g
2
0
[space]
O
E
M
[space]
M
o
d
u
l
e
AT Commands Reference Manual
Chapter 4: Using the Commands
4-21

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents