Solved

Sending a Chinese SMS using PDU mode

Posted on 2001-09-17
4
1,204 Views
Last Modified: 2007-12-19
Can anyone give me an example on how to send a chinese SMS using PDU mode (AT Command set)??

Thanks
0
Comment
Question by:boonhui78
4 Comments
 

Accepted Solution

by:
kwyshell earned 80 total points
ID: 7432891
I think to send Chinese SMS using PDU mode you need to use Unicode encoding for PDU format. PDU format is simpler for Unicode (16Bits) Encoding. Because you don't have to perform a 7bit compressing and decompressing. All you have to do is to swap hign and low byte.

To send SMS in pdu format, you need parse your sms into two parts of PDU. One is header for PDU to saved your phone information. Another is content of SMS.

For unicode format,

Kwyshell SMS
[Receive Format]
  +-----------Data Length (AT+CMGS= 22)---------------------------------------------------+
  |  +- Add Len --+        +- Add Len --+                                                 |
  |  |            |        |            |                                                 |
07|91|889653704434|04|0C|91|889622892190|00|08|10309022541423|80|591C76E16597661F5E0C00209B
|  |  |            |  |  |  |            |  |  |              |  |
|  |  |            |  |  |  |            |  |  |              |  +------------------ TP-DATA
|  |  |            |  |  |  |            |  |  |              +--------------------- TP-UDL
|  |  |            |  |  |  |            |  |  +------------------------------------ TP-SCTS Time Stamp
|  |  |            |  |  |  |            |  +--------------------------------------- TP-DCS. Data coding scheme
|  |  |            |  |  |  |            +------------------------------------------ TP-PID
|  |  |            |  |  |  +------------------------------------------------------- Delivering Address
|  |  |            |  |  +---------------------------------------------------------- Type of deliver Address
|  |  |            |  +------------------------------------------------------------- Length of deliver Address
|  |  |            +---------------------------------------------------------------- SMS_DELIVER = 8
|  |  +----------------------------------------------------------------------------- Service Center Address
|  +-------------------------------------------------------------------------------- Type of Address
+----------------------------------------------------------------------------------- SMSC Message Length
*/

You must fellow the GSM_03.38 to encode this header and encode the content bytes in BigEnd.

The AT command sequences: (I have tried on Nokia and Erisson's phone)

// Reset modem
> ATZ<CR>
< OK
// Turn off echo
> ATE0<CR>
< OK
// Using PDU format
> AT+CMGF=0<CR>
< OK
// Set PDU length
> AT+CMGS=<SMS_LEN>
< <
// After get '<' you can start to write pdu content
> <SMS_PDU_DATA>
// Write a ending character
>< CTRL+Z>
< OK

Finish!
Kwyshell
http://home.kimo.com.tw/kwyshell/
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Working settings for French ISP Orange "Prêt à Surfer" SIM cards for data connections only. Can't be found anywhere else !
This paper addresses the security of Sennheiser DECT Contact Center and Office (CC&O) headsets. It describes the DECT security chain comprised of “Pairing”, “Per Call Authentication” and “Encryption”, which are all part of the standard DECT protocol.
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question