What is USSD?

Also known as quick codes or resource codes, USSD (Unstructured Supplementary Service Data) is a messaging protocol used in GSM-based cellular networks.

Like SMS (Short Message Service), USSD allows the transmission of short text messages. In the case of USSD, the maximum message size is 182 characters or 16 bits of data.

The main difference between USSD and SMS is that USSD is session-based.

SMS works on a store-and-forward model. When a device sends an SMS to another, no dedicated communication channel is opened, and there is always a slight delay in the recipient receiving the message. In USSD, when a device sends a request, a transparent channel is automatically established between the sender and the recipient, allowing for real-time responses.

A USSD communication exchange usually begins with a query sent from a mobile device (for example, a balance reading request). To send it, the user must dial a specific short code. After being sent, a USSD gateway forwards the message to a USSD application, which responds to the request. The response returns to the USSD gateway and is displayed on the sender's device screen.

Examples of USSD usage

  • Banking: provides an instant and secure way for users to connect to financial institutions, check balances, and conduct transactions.
  • Customer Service: when integrated with CRM (customer relationship management) systems, it allows customers to access account information and receive instant automated responses.
  • Confirmations: is an effective and cost-effective way to send alerts, updates, and other short messages to customers.
  • Industrial IoT: applications such as production monitors and environmental sensors can be configured to transmit status updates via USSD.
  • IoT in remote locations: USSD is useful for transmitting data from IoT devices even in industrial facilities in remote regions.

What is a USSD code and how is it used?

A USSD code is a short sequence (usually four or five digits) used to access information via the USSD protocol. The code typically begins with an asterisk and ends with a hashtag.

On the network, each unique code corresponds to a specific function. For example, there may be codes to check account balances, verify the status of an order, or check data usage on a connected device.

What are the benefits of USSD?

  • No installation required: Unlike SMS, USSD doesn't require a dedicated messaging application. This makes it viable for smaller IoT devices with limited memory and capacity.
  • Cost: Sending and receiving messages via USSD does not incur data charges.
  • Speed: USSD establishes a real-time communication channel without the need to store and forward messages. This makes it suitable for IoT applications that require immediate responses, such as in manufacturing or health monitoring.
  • Energy efficiency: Because it transmits very small packets of information, USSD consumes little energy, helping to extend the battery life of devices.
  • Coverage: As GSM networks are still widely available, USSD has coverage in virtually all locations where devices can be deployed.

What are the disadvantages of USSD?

  • Data volume: The maximum size of a USSD message is 182 characters or 16 bits. If devices need to transmit messages longer than this limit, the protocol may not be suitable.
  • Text only: USSD only supports text messages; it is not possible to transmit images, audio, or video.
  • End of support in the future: Although GSM is still available, its deactivation is becoming increasingly frequent due to the progressive shutdown of 2G and 3G networks.
For more explanations about IoT, access our glossary.