Skip to content

MortadhaDAHMANI/Py-SIM800L-SMS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Py-SIM800L-SMS 📻 💻 ☎️ 📨

Summary

What is SMS?

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.

Requirements

  • Python 2.7 or Python 3.4 and newer

  • If running on Windows: Windows 7 or newer

Installation

This installs a package that can be used from Python:

   import serial

From PyPI

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.


Pinout

alt iviny

- 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.

SMS AT Commands

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

Useful links

Donation

If this project help you, you can give me a tip ;)

Donation

Author

In

Revision History

  • Initial Release : 20 June 2017

License

  • Py-SIM800L-SMS is distributed under the LGPL version 3 license.