USSD (Unstructured Supplementary Service Data) is an interactive, menu-based technology communication protocol available on every GSM-enabled mobile device.
It is a session-based text communication without a store-and-forward mechanism (unlike SMS) that is practical for interactive communication, such as banking or education.
USSD messages can have up to 182 alphanumeric characters and the time it takes from a request to a response is 2 seconds while it takes 6 seconds for an SMS to reach a mobile phone.
While SMS is a store and forward technology, USSD texts and interactions are not stored on the mobile phone. SMS content remains stored in the mobile phone memory.
Some examples of service usage are airtime top-ups, "please call me" services, balance checking and mini statements delivery.
USSD short code format is defined by the * and # signs at the beginning and the end of the series of digits.
There are three types of USSD short codes available. The standard rate USSD short code is charged the standard fee for the USSD menu usage by the end-user. Reverse-billed short codes are free for the end-user. Premium rate USSD short codes are charging the end user a premium price for short code triggering. Generally, USSD short codes are either reverse-billed or standard rate.
-
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.
- AT Commands
- Hardware Design
- Specification
- Tutorial Arduino
- Arduino Library
- PySerial
- PySerial Git
- Data Coding Scheme
- Data Coding Scheme
If this project help you, you can give me a tip ;)
- This version has been created by: Mortadha DAHMANI
- Initial Release : 25 Mars 2020
- Py-SIM800L is distributed under the LGPL version 3 license.