Short Message Service / SMS Tutorial
来源:互联网 发布:java伪静态 编辑:程序博客网 时间:2024/04/30 07:35
http://www.developershome.com/sms/
SMS (Short Message Service) has achieved huge success in the wireless world. Billions of SMS messages are sent every day. SMS is now a major revenue generator for wireless carriers. A lot of innovative applications are now built on top of the SMS technology and more are being developed.
This SMS tutorial provides information about SMS application development. It begins with an introduction of mobile messaging technologies like SMS, concatenated SMS and EMS. You will learn what SMS is, what causes SMS messaging to be so popular worldwide, what applications can be developed with the SMS technology, what SMS center and SMS gateway are, and some other basic concepts of SMS messaging.
After that, we will discuss in detail various ways to send and receive SMS messages from a computer, the advantages and disadvantages of each way, what SMS service providers are, the hardware (e.g. GSM / GPRS modem) and software (e.g. HyperTerminal) required to send and receive SMS messages from a computer, and where to find some free SMS messaging libraries and tools.
Note to non-developers:
This SMS tutorial contains technical information that non-developers may not interested in. If you are an ordinary user who do not want to develop SMS software or applications but just want to send and receive SMS messages from a PC, you may want to go directly to our quick guide for non-developers.
Table of Contents
1. Introduction to SMS Messaging
1.1. What is SMS (Short Message Service)?
1.2. Concatenated SMS Messages / Long SMS Messages
1.3. EMS (Enhanced Messaging Service)
2. What Makes SMS Messaging So Successful Worldwide?
2.1. SMS Messages can be Sent and Read at Any Time
2.2. SMS Messages can be Sent to an Offline Mobile Phone
2.3. SMS Messaging is Less Disturbing While You can Still Stay in Touch
2.4. SMS Messages are Supported by 100% GSM Mobile Phones and They can be Exchanged between Different Wireless Carriers
2.5. SMS is a Suitable Technology for Wireless Applications to Build on
3. Example Applications of SMS Messaging
3.1. Person-to-Person Text Messaging
3.2. Provision of Information
3.3. Downloading
3.4. Alerts and Notifications
3.4.1. Email, Fax and Voice Message Notifications
3.4.2. E-commerce and Credit Card Transaction Alerts
3.4.3. Stock Market Alerts
3.4.4. Remote System Monitoring
3.5. Two-way Interactive Text Messaging Applications
3.6. SMS Marketing
4. What is an SMS Center / SMSC?
5. Basic Concepts of SMS Technology
5.1. Validity Period of an SMS Message
5.2. Message Status Reports
5.3. Message Submission Reports
5.4. Message Delivery Reports
6. Intra-operator SMS Messages
6.1. Transmission Process of Intra-operator SMS Messages
7. Inter-operator SMS Messages
7.1. Transmission Process of Inter-operator SMS Messages
8. International SMS Messages
9. What is an SMS Gateway?
9.1. Open Source and Free SMS Gateway Software
10. How to Send SMS Messages from a Computer / PC?
10.1. The 1st Way: Sending SMS Messages from a Computer Using a Mobile Phone or GSM/GPRS Modem
10.1.1. Major Drawback of Sending SMS Messages through a Mobile Phone or GSM/GPRS Modem -- Low SMS Sending Rate
10.2. The 2nd Way: Sending SMS Messages from a Computer through a Connection to the SMSC or SMS Gateway of a Wireless Carrier or SMS Service Provider
10.2.1. Difficulties in Getting a Direct Connection to the SMSC or SMS Gateway of a Wireless Carrier
10.2.2. SMS Service Providers (SMS Gateway Providers, SMS Resellers, SMS Brokers)
10.2.3. Sending SMS Messages Using a Protocol / Interface Supported by an SMSC or SMS Gateway
11. How to Receive SMS Messages Using a Computer / PC?
11.1. The 1st Way: Using a Computer to Receive SMS Messages through a Mobile Phone or GSM/GPRS Modem
11.2. The 2nd Way: Using a Computer to Receive SMS Messages through a Connection to the SMSC or SMS Gateway of a Wireless Carrier
11.3. The 3rd Way: Using a Computer to Receive SMS Messages through a Connection to the SMS Gateway of an SMS Service Provider
11.3.1. SIM Hosting
11.3.1.1. Cost of SIM Hosting Service
11.3.2. Shared Phone Number
11.3.2.1. Registering Keywords
11.3.2.2. Cost of Shared Phone Number Service
11.4. Receiving SMS Messages Using a Protocol / Interface Supported by an SMSC or SMS Gateway
12. Introduction to GSM / GPRS Wireless Modems
12.1. What is a GSM Modem?
12.2. What is a GPRS Modem?
12.3. Which is Better: Mobile Phone or GSM / GPRS Modem?
13. How to Use Microsoft HyperTerminal to Send AT Commands to a Mobile Phone or GSM/GPRS Modem?
13.1. What is Microsoft HyperTerminal?
13.2. The Procedure for Sending AT Commands to a Mobile Phone or GSM/GPRS Modem Using MS HyperTerminal
14. Introduction to AT Commands
14.1. Basic Commands and Extended Commands
15. General Syntax of Extended AT Commands
15.1. Information Response and Final Result Code
15.2. Case Sensitivity of AT Commands
16. Result Codes of AT Commands
16.1. Final Result Codes of AT Commands
16.1.1. The OK Final Result Code
16.1.2. The ERROR Final Result Code
16.2. Final Result Code Specific to SMS AT Commands
16.2.1. The +CMS ERROR Final Result Code -- Notifies the Occurrences and Causes of Message Service Failures
16.2.1.1. Table of +CMS Error Codes and Their Meanings
16.3. Unsolicited Result Codes of AT Commands
17. AT Command Operations: Test, Set, Read and Execution
17.1. Test Command -- Checks Whether a Certain AT Command is Supported
17.2. Set Command -- Changes the Settings Used for Certain Tasks
17.3. Read Command -- Retrieves the Current Settings Used for Certain Tasks
17.4. Execution Command -- Performs an Action or Retrieve Information/Status about the GSM/GPRS Modem or Mobile Phone
18. Testing the Communication between the PC and GSM/GPRS Modem or Mobile Phone
19. Checking if the GSM/GPRS Modem or Mobile Phone Supports the Use of AT Commands to Send, Receive and Read SMS Messages
19.1. Using the AT Command +CSMS to Check if Mobile-originated SMS Messages and Mobile-terminated SMS Messages are Supported
19.2. Checking if the AT Commands Required for Sending, Receiving and Reading SMS Messages are Supported
19.2.1. Overview of the AT Commands Required
19.2.2. Beginning the Check
20. Operating Mode: SMS Text Mode and SMS PDU Mode
20.1. Comparison of SMS Text Mode and SMS PDU Mode
20.2. Selecting the Operating Mode (AT+CMGF)
21. Setting or Reading the Service Center Address / SMSC Address (AT+CSCA)
21.1. Syntax of the +CSCA AT Command
21.1.1. Setting the Service Center Address
21.1.2. Reading the Service Center Address
21.2. Example Demonstrating How to Use the +CSCA AT Command to Set and Read the Service Center Address
22. Preferred Message Storage (AT+CPMS)
22.1. Selecting the Message Storage Areas to be Used for SMS Reading, Writing, Deleting, Sending or Receiving
22.2. Format of the Information Response of the +CPMS AT Command
22.3. Finding the Message Storage Areas Supported by a GSM/GPRS Modem or Mobile Phone
22.4. Example Demonstrating How to Use the +CPMS AT Command to Select the Message Storage Areas to be Used
22.5. Finding the Message Storage Areas Currently Used, Number of Messages Currently Stored and Maximum Number of Messages Allowed
22.5.1. Example
23. Writing SMS Messages to Memory / Message Storage (AT+CMGW)
23.1. Syntax of the +CMGW AT Command in SMS Text Mode
23.2. SMSC Number Stored with the SMS Message (SMS Text Mode)
23.3. Format of the Information Response of the +CMGW AT Command in SMS Text Mode
23.4. Example Demonstrating How to Use the +CMGW AT Command to Write SMS Text Messages to Message Storage in SMS Text Mode
23.5. Syntax of the +CMGW AT Command in SMS PDU Mode
23.6. SMSC Number Stored with the SMS Message (SMS PDU Mode)
23.7. Format of the Information Response of the +CMGW AT Command in SMS PDU Mode
23.8. Example Demonstrating How to Use the +CMGW AT Command to Write SMS Text Messages to Message Storage in SMS PDU Mode
24. Deleting SMS Messages from Message Storage (AT+CMGD)
24.1. Syntax of the +CMGD AT Command
24.2. Finding the Supported Indexes and Flag Values
24.3. Example Demonstrating How to Use the +CMGD AT Command to Delete SMS Text Messages
25. Sending SMS Messages from a Computer / PC Using AT Commands (AT+CMGS, AT+CMSS)
25.1. Comparison Table of the AT Commands +CMGS and +CMSS
25.2. Syntax of the +CMGS AT Command in SMS Text Mode
25.3. Format of the Information Response of the +CMGS AT Command in SMS Text Mode
25.4. Example Demonstrating How to Use the +CMGS AT Command to Send SMS Text Messages in SMS Text Mode
25.5. Syntax of the +CMGS AT Command in SMS PDU Mode
25.5.1. Some Explanation about the Coding of the SMSC_number_and_TPDU Parameter Value of the +CMGS AT Command
25.5.1.1. The SMSC Part
25.5.1.2. The TPDU Part (SMS-SUBMIT TPDU)
25.6. Format of the Information Response of the +CMGS AT Command in SMS PDU Mode
25.7. Example Demonstrating How to Use the +CMGS AT Command to Send SMS Text Messages in SMS PDU Mode
25.8. Syntax of the +CMSS AT Command in SMS Text Mode and PDU Mode
25.9. Format of the Information Response of the +CMSS AT Command in SMS Text Mode and PDU Mode
25.10. SMSC Number to be Used by the +CMSS AT Command to Send SMS Messages
25.10.1. SMS Text Mode
25.10.2. SMS PDU Mode
25.10.2.1. Case 1: SMSC Part is Not "00"
25.10.2.2. Case 2: SMSC Part is "00"
25.10.3. Reading the SMSC Number Saved with an SMS Message
25.10.3.1. SMS Text Mode
25.10.3.2. SMS PDU Mode
25.11. Example Demonstrating How to Use the +CMSS AT Command to Send Text Messages from a Message Storage Area (SMS Text Mode and SMS PDU Mode)
26. Reading SMS Messages from a Message Storage Area Using AT Commands (AT+CMGR, AT+CMGL)
26.1. Comparison Table of the AT Commands +CMGR and +CMGL
26.2. Using the +CMGR AT Command to Read an SMS Message from a Message Storage Area
26.2.1. Syntax of the +CMGR AT Command in SMS Text Mode
26.2.2. Format of the Information Response of the +CMGR AT Command in SMS Text Mode
26.2.2.1. Incoming SMS Messages and Outgoing SMS Messages
26.2.2.2. Details of the Fields that Appear in the +CMGR Information Response
26.2.3. Example Demonstrating How to Use the +CMGR AT Command to Read SMS Text Messages from a Message Storage Area (SMS Text Mode)
26.2.4. Syntax of the +CMGR AT Command in SMS PDU Mode
26.2.5. Format of the Information Response of the +CMGR AT Command in SMS PDU Mode
26.2.6. Some Explanation about the Decoding of the SMSC_number_and_TPDU Field Value of the +CMGR AT Command
26.2.6.1. Incoming SMS Messages and Outgoing SMS Messages
26.2.6.2. The SMSC Part
26.2.6.3. The TPDU Part (SMS-DELIVER TPDU)
26.2.7. Example Demonstrating How to Use the +CMGR AT Command to Read SMS Text Messages from a Message Storage Area (SMS PDU Mode)
26.3. Using the +CMGL AT Command to List SMS Messages of a Certain Status from a Message Storage Area
26.3.1. Syntax of the +CMGL AT Command in SMS Text Mode
26.3.2. Format of the Information Response of the +CMGL AT Command in SMS Text Mode
26.3.3. Finding the Message Status Values Supported by the +CMGL AT Command in SMS Text Mode
26.3.4. Example Demonstrating How to Use the +CMGL AT Command to List SMS Text Messages from a Message Storage Area (SMS Text Mode)
26.3.5. Syntax of the +CMGL AT Command in SMS PDU Mode
26.3.6. Format of the Information Response of the +CMGL AT Command in SMS PDU Mode
26.3.7. Finding the Message Status Values Supported by the +CMGL AT Command in SMS PDU Mode
26.3.8. Example Demonstrating How to Use the +CMGL AT Command to List SMS Text Messages from a Message Storage Area (SMS PDU Mode)
- Short Message Service / SMS Tutorial
- GSM Sniffing入门之软件篇:GSMTAP抓取与SMS(Short Message Service)
- short message
- sms service
- ENGLISH SHORT MESSAGE
- short message 2
- Perl - Short tutorial about references
- Short Message Peer-to-Peer
- Short Message LPC机理分析
- Short URL service
- Message Driven Beans Tutorial
- Using Lua with C++: A short tutorial
- Anomaly Detection, a short tutorial using Python
- Web Service Tutorial
- Android Service Tutorial
- Android Service - Tutorial
- CXF Web Service Tutorial
- Java Message Service入门
- 题目56:约数的个数
- [JNI]学习笔记系列:二 基本数据类型,字符串,数据
- 利用GetPrivateProfileString读取配置文件(.ini)
- makefile 的简单模板
- 题目57:人见人爱 A ^ B
- Short Message Service / SMS Tutorial
- AndroidManifest.xml文件解析
- ldd3 源码编译之 scullc 字符设备驱动 错误解决办法
- 题目58:A sequence of numbers
- Java实现通用组合算法
- $PROFILES$ in Examine
- liunx命令
- poj 1845
- 黑盒测试和白盒测试之间的区别