SMS (Short Message Service) is a text messaging service component of most telephone, Internet, and mobile device systems. It uses standardized communication protocols to enable mobile devices to exchange short text messages. An intermediary service can facilitate a text-to-voice conversion to be sent to landlines. SMS was the most widely used data application at the end of 2010, with an estimated 3.5 billion active users, or about 80% of all mobile subscribers.
SMS, as used on modern devices, originated from radio telegraphy in radio memo pagers that used standardized phone protocols. These were defined in 1985 as part of the Global System for Mobile Communications (GSM) series of standards. The first SMS message was sent in 1992.
The protocols allowed users to send and receive messages of up to 160 characters (when entirely alpha-numeric) to and from GSM mobiles. Although most SMS messages are mobile-to-mobile text messages, support for the service has expanded to include other mobile technologies, such as ANSI CDMA networks and Digital AMPS.
-
Python 2.7 or Python 3.4 and newer
-
If running on Windows: Windows 7 or newer
This installs a package that can be used from Python:
import serial
pySerial can be installed from PyPI:
python -m pip install pyserial
Using the python
/python3
executable of the desired version (2.7/3.x).
Developers also may be interested to get the source archive, because it contains examples, tests and the this documentation. By using PyPI, you will be using the latest stable version.
- NOTICE: Be prepared to handle huge power consumption with peek up to 2A. Maximum voltage on UART in this module is 2.8V. Higher voltage will kill the module.
Command | Description |
---|---|
AT+CPMS | Preferred message storage |
AT+CMGF | Message format (we use format 0: PDU) |
AT+CSCA | Service centre address |
AT+CSCB | Select cell broadcast message types |
AT+CNMI | New message indications to TE |
AT+CMGL | List messages |
AT+CMGR | Read message |
AT+CMGS | Send message |
AT+CMGD | Delete message |
AT+CMMS | More messages to send |
+CMTI | Notification of SMS message delivery |
+CMT | Notification of a directly delievered SMS message |
+CDSI | Notification of an SMS status report message |
+CBM | Notification of a directly delivered cell broadcast message |
If this project help you, you can give me a tip ;)
- This version has been created by: Mortadha DAHMANI
- Initial Release : 20 June 2017
- Py-SIM800L-SMS is distributed under the LGPL version 3 license.