Solved

Sending a Chinese SMS using PDU mode

Posted on 2001-09-17
4
1,139 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

Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

Join & Write a Comment

In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
Using in-flight Wi-Fi when you travel? Business travelers beware! In-flight Wi-Fi networks could rip the door right off your digital privacy portal. That’s no joke either, as it might also provide a convenient entrance for bad threat actors.
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now