Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

Mobile Phone Simulator using GSM module

By Himanshu Choudhary April 21, 2008

[[wysiwyg_imageupload:3223:]]  This Project is submitted by Mr. Himanshu Choudhary from MNIT, Jaipur


 

This is an interesting application which controls the GSM modem using software designed and developed in C# on .Net framework. There is no need of microcontroller in between. The GSM modem is connected to the PC using a cross connection serial cable. This is a sort of mini simulator for mobile phones. Using this application you can call a number, send SMS etc. It is recommended to read our earlier articles on GSM Modem, interfacing GSM modem and AT commands before for better understanding this project.
 
GSM Communication
Description
GSM module acts as a gateway to connect you to the mobile network. It can take input from the PC using serial port. The module used here has an onboard MAX 232 IC and hence can be connected directly to the computers serial port using a cross connection serial cable. In case the modem is not having on board MAX 232 you need to build a circuit using MAX 232 to connect the GSM module to the PC. The rest of the work is of software. This software has been designed in C#. The software interacts with the serial port using the inbuilt .NET Libraries. It sends AT commands to the GSM modem using serial port corresponding to the function which needs to be performed. Similarly the output of the GSM modem is taken serially and displayed on the software.  This is a demo version and can perform four functions:
1.      Check_Modem:
It will tell you the status of Modem i.e., whether the modem is ready to use or not. When you press the “Check Modem” button, it will display “OK” in the Display box box in case modem is properly connected and is ready else nothing will be returned. Check the modem connection, modem, and serial cable in case it is not working.
 
This functionality is achieved by using the command “AT”. Whenever modem receives AT followed by <enter> it responds to command and send ‘OK’ back to host if it is ready.
 
Algorithm: When we press “Check modem” button
a.       Serial port is opened and GSM modem gets connected with baud rate of 9600.
b.      Command ‘AT<enter> ‘ is send serially to modem.
c.       If modem is working properly it retunes ‘OK’ that is displayed in text box.

 

 

2.      IMEI:  

Each GSM modem has a unique IMEI number which can be checked using the “AT+GSN<enter>” command.

Algorithm

a.       Serial port is opened and GSM modem gets connected with baud rate of 9600.
 
b.      Command “AT+GSN<enter>” is send serially to modem.

c.       Modem respond to this command by returning its IMEI number back to host which is displayed in display box.

 
3.      Dial
This function is used to make a call to a particular number. This is done by sending the command “ATD<number><enter>” to the modem. Modem responds to this command by dialing the number.
Let’s assume you want to make a call to a number “9999999999”. The number should be a 10 digit number. In case you want to dial to landline number type the std code followed by the number.

Algorithm  

a.       Serial port is opened and GSM modem gets connected with baud rate of 9600.
b.      Type the number you want to dial in the text box given in the right side.
c.       Command “AT9345671234<enter>” is send serially to modem.
d.      Modem responds to this command by dialing the number.

 

4.      Send_Message

This function is used to send a message to a mobile numbers. This is done through set of AT commands:
 
AT+CMFG=1
AT+CMGS=<number>
<Message body
to be send>
Control +Z (ASCII): To terminate the message body.
 
Algorithm 
a.       Serial port is opened and GSM modem gets connected with baud rate of 9600.
b.      Type the number (10 digit) you want to dial in the Phone number text box given in the right side.
c.       Type the message you want to send in the message box at the bottom (maximum 160 characters).
d.      The aforesaid sets of command are sent serially to the modem using the serial port.
e.       Modem responds to this command by sending messages to the number.
This software can be further extended incorporating many functionality. This can be done by using more AT commands depending on the application.

Video

Video:

 

 

 

 

Project Datasheet

https://www.engineersgarage.com/wp-content/uploads/2019/10/gsm-application.zip



Filed Under: Electronic Projects
Tagged With: cellphone, gsm
 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on Electro-Tech-Online.com and EDAboard.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: 5G Technology
This Tech Toolbox covers the basics of 5G technology plus a story about how engineers designed and built a prototype DSL router mostly from old cellphone parts. Download this first 5G/wired/wireless communications Tech Toolbox to learn more!

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions

  • System for measuring the amount of Joules delivered from a capacitor discharge.
  • Two sections broadband impedance matching
  • The GaN revolution must now happen?
  • How to find the resonance frequency and impedance of a planar spiral coil in HFSS?
  • PhD for Electronics Designers

RSS Electro-Tech-Online.com Discussions

  • The Analog Gods Hate Me
  • Impact of Tariffs on PCB Fab
  • More fun with ws2812 this time XC8 and CLC
  • I Wanna build a robot
  • Wierd makita battery

Featured – LoRa/LoRaWan Series

  • What is the LoRaWAN network and how does it work?
  • Understanding LoRa architecture: nodes, gateways, and servers
  • Revolutionizing RF: LoRa applications and advantages
  • How to build a LoRa gateway using Raspberry Pi
  • How LoRa enables long-range communication
  • How communication works between two LoRa end-node devices

Recent Articles

  • The top five AI startups to watch in 2025
  • STMicroelectronics unveils SoC based on secure MCU
  • Nexperia’s 48 V ESD diodes support higher data rates with ultra-low capacitance design
  • Taoglas releases Patriot antenna with 18 integrated elements covering 600 to 6000 MHz
  • Amphenol RF introduces SMPM to SMPM assemblies on RG-178 cable

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe