Skip to content
Embedded World – Anything about Embedded Systems design and development
  • About
  • Embedded
  • Android
  • Project Ideas
    • Embedded Projects
    • MATLAB Projects
    • DSP Projects
  • Search Parts
  • Web

SIM900 / SIM800 USSD Code AT Commands – Working example

March 6, 2021 190-sim900-sim800-ussd-code-at-commands-working-example

SIM900 and SIM800 GSM modules provide a set of commands to check the balance of the SIM card. Here they are,

Before you dial a USSD code, you need to enable USSD commands and response notification using the command AT+CUSD=1.

Once you enter AT+CUSD=1 and receive a OK string as response , your USSD command response notification will be enabled and for the next USSD code you enter you will get a response notification. 

Now in this example  i have used Vodafone SIM card to check the balance. There are two ways to do it,

  • #Option 1: Using the standard number *111# and get a USSD response string with multiple options to select, and selecting the balance check in the options. 
  • #Option 2: Using the shortcut number *111*2# and get a direct balance information string as a USSD response. 

 


#Option 1  :


 

Enable USSD

Now to check balance using a two step process, you have to first enable the command USSD command response using command AT+CUSD=1 followed by rn or carriage return.

– You shoud get a response as OK. 

 

Dial the command 

Next dial the USSD code of your respective SIM card, in my case it is *111#, using the command AT+CUSD=1,”*111#” followed by rn or carriage return.

– You should get a response as shown in above image. Here the network gives you multiple options to select, like Tariff details or Balance check etc. 

 

Dial the selected option number 

In the response above, we need to check balance so we need to dial 2 since it is the corresponding code for checking balance as shown in options.

Select 2 as the next input using the command AT+CUSD=1,”2″ followed by rn or carriage return.

– You will receive response as OK followed by the balance information. 

 


#Option 2  : (Note this might not always work with all network operators)


 

 

Enable USSD

Now to check balance using the shortcut method, you have to first enable the command USSD command response using command AT+CUSD=1 followed by rn or carriage return.

– You should get a response as OK. 

 

Dial the command 

Next dial the USSD code of your respective SIM card along with the option value, in my case it is *111*2#, using the command AT+CUSD=1,”*111*2#” followed by rn or carriage return.

– You will receive response as OK followed by the balance information. 

 

 

PrevNext

SIM900 / SIM800 USSD Code AT Commands -…

SIM900 / SIM800 USSD Code AT Commands - Working example
Are you wondering how to check the SIM card balance using USSD code using AT commands, You have come…

Read more

Using SIM900 as TCP server ? – Read…

Using SIM900 as TCP server ? - Read this first !!
Are you thinking to use your SIM900 GSM/GPRS module as TCP server then you should re consider your d…

Read more

Construction of an Elevator – Controllers Point of…

Construction of an Elevator - Controllers Point of view
Almost everyone today knows and uses a Elevator in their daily life. But how many of us know how exa…

Read more

SIMCOM got acquired by UBLOX ! -…

SIMCOM got acquired by UBLOX !  - Is it a GOOD news or BAD news
Recently in a shocking(for me ) turn of events i heard form my client that SIMCOM (My bread and butt…

Read more

Cheapest ARM debugger

Cheapest ARM debugger
STM32-VL-DISCOVERY is a low cost devlopment kit by STM Microelectronics for its STM32F100 ARM Cortex…

Read more

APR9600 sound recorder IC is no more- Use…

APR9600 sound recorder IC is no more- Use APR33A3
APR9600 is no longer manufacured and entered the obsolete parts list. APR9600 was a low cost high pe…

Read more

TCS230 RGB color sensor operation and Code

TCS230 RGB color sensor operation and Code
The TAOS TCS230 is the most widely used color sensor by hobbyists and embedded system practitioners….

Read more

Designing a Low cost GSM/GPS tracker – Introduction…

Designing a Low cost GSM/GPS tracker - Introduction - Part 1
This is a introduction post regarding my new GPS tracker design VALTRACK V2. This is a second versio…

Read more

PK2Error0049: VPP Voltage error. Check target and retry…

PK2Error0049: VPP Voltage error. Check target and retry operation
My PICKIT2 debugger/programmer started giving this PK2Error0049: VPP Voltage error. Check target and…

Read more

Don’t use SIM900,SIM908,SIM800,SIM808 modules in USA (2G sunset)…

Don't use SIM900,SIM908,SIM800,SIM808 modules in USA (2G sunset)
Right now SIM900 and SIM800 GSM/GPRS modules might seem like the perfect choice for using in your up…

Read more

Online compilers for C,C++,JAVA,PERL,HTML,PHP, PYTHON

Online compilers for C,C++,JAVA,PERL,HTML,PHP, PYTHON
I wanted to compile my source code written in Visual C++ and get an executable file. But i was too l…

Read more

SIM900 DTMF commands

SIM900 DTMF commands
This article shows how to use the inbuilt DTMF decoder present in SIM900/SIM800/SIM908 GSM modules. …

Read more

Mobile DDR / mDDR / Low Power DDR…

Mobile DDR / mDDR / Low Power DDR / LPDDR
Mobile DDR or mDDR or Low Power DDR or LPDDR memory is a low power and low size version of the Doubl…

Read more

Started a SMT PCB assembly unit – #MakeInIndia…

Started a SMT PCB assembly unit - #MakeInIndia
I had been tired of waiting to get my boards assembled, There was lot of time wasted in sending boar…

Read more

Low cost RFID readers for purchase in India…

Low cost RFID readers for purchase in India
Looking for purchasing a RFID reader/writer for using in your project? Here is a compiled list of ch…

Read more

blog comments powered by DISQUS back to top

Post navigation

Previous: Best discussion forums for Embedded systems
Next: Intelligent Hospital admission machine

Recent Posts

  • 5G deployment opportunities for developers
  • Designing optimized embedded systems
  • Microcontroller testing and game tactics
  • Choosing the right gsm module for IoT
  • Evolution of GSM and 5G communication
Copyright © 2022 Valetron Systems