Skip to content

USSD sender/decoder with AT Commands - PySerial - python environment

Notifications You must be signed in to change notification settings

MortadhaDAHMANI/Py-SIM800L-USSD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Py-SIM800L 📻 💻 ☎️

Summary

What is USSD?

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.

What is the difference between USSD and SMS?

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.

Examples of USSD usage

Some examples of service usage are airtime top-ups, "please call me" services, balance checking and mini statements delivery.

What about USSD short codes?

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.

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.

My Hackster Tutorial

Donation

Useful links

Donation

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

Donation

Author

In

Revision History

  • Initial Release : 25 Mars 2020

License

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