Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Sending a Chinese SMS using PDU mode

Posted on 2001-09-17
4
Medium Priority
?
1,339 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Accepted Solution

by:
kwyshell earned 240 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

Looking for the Wi-Fi vendor that's right for you?

We know how difficult it can be to evaluate Wi-Fi vendors, so we created this helpful Wi-Fi Buyer's Guide to help you find the Wi-Fi vendor that's right for your business! Download the guide and get started on our checklist today!

Question has a verified solution.

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

In this article I will describe how to setup a Cisco WLC 5508 to work with Apple's Bonjour protocol across VLANs.  I will also discuss using screen mirroring and Airplay on an AppleTV v3.  This article covers the wireless network only and requires m…
Working settings for French ISP Orange "Prêt à Surfer" SIM cards for data connections only. Can't be found anywhere else !
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…

636 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