EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key 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
  • Advertise
You are here: Home / Topics / how to read the received message/number from microcontroller

how to read the received message/number from microcontroller

|

Microcontroller › 8051 › how to read the received message/number from microcontroller

  • This topic has 5 replies, 5 voices, and was last updated 9 years, 8 months ago by Anonymous.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • March 24, 2012 at 8:08 am #1549
    Chandan
    Participant

    Dear Sir, 

                   We, a group of four are involved in a GSM-microcontroller interfaced project in which we are trying to receive acknowledgement from the specific number. ie,  

                 I command the GSM to dial a particular number through 89c51 and after some time I need an acknowledgement from the same number either via call  or SMS. I need the phone number for valid verification. In this regard can you please help us how to extract the number through AT commands.                                          

    April 21, 2012 at 6:27 pm #7531
    AJISH ALFRED
    Participant

    The GSM modem can be configured like the following to response immediate when a SMS is received, the SMS’s details are immediately sent serially

    AT+CMGF=1 To format SMS as a TEXT message
    AT+CNMI=1,2,0,0,0   Set how the modem will response when a SMS is received

    When a new SMS is received by the GSM modem serially send the following data

    +CMT :  “+91xxxxxxxxxx” , , “04/08/30,23:20:00+40”
    This the text SMS message sent to the modem

    If you take a close look, it can be found that the 8th character is the starting of the mobile number after a character ‘+’ has been received for the first time.

    So just wait till the ‘+’ is received for the first time, then count the next 7 characters received, start storing from the 8 th charater onwards into an array till the 20 th character and you have the mobile number in that array, like +91xxxxxxxxxx

    March 26, 2016 at 2:17 am #13826
    raju
    Participant

    sir,

    how to read sms using gsm & 8051 & display on 16×2 lcd.

    April 1, 2016 at 9:58 am #13834
    nilesh
    Participant
    Hi,
     
           You need to write some code .I hope you successfully interface UART and modem.When you receive the msg on GSM  collect the data in the buffer and at the end of the msg you will get +CMT. check +CMT and set the flag. I am going to write some rough logic.
     
    if((MSSG[3] == '+')&& (MSSG[2] == 'C')&& (MSSG[1] == 'M')&& (MSSG[0] == 'T'))
    {  
    sms_rcv = 1;
    } 
     
     
    if(sms_rcv)
    {
    sms_rcv = 0;
    delayMs(1000);
    parse_msg();       // here check the buffer in which you received the data.and send it on LCD
    del_sms();
    }
    August 16, 2016 at 6:13 am #14110
    Anonymous
    Guest

    Sorry… did not get your point….

    can you please explain this bit clearly…

    August 16, 2016 at 2:04 pm #14113
    Anonymous
    Guest

    Enable the uart interrupt.once msg recived you will get symbol < .collect the msg in uart receive buffer.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Getting into an LED bulb April 21, 2026
  • understanding of resonance in time domain April 21, 2026
  • Beginner Questions About CNC Machines – G-code, Control Systems & Accuracy April 21, 2026
  • A Must-Watch Video Showing Dangerous Construction of Cheap Lithium-Ion Cells April 21, 2026
  • S1MJ ? April 20, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 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 | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key 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
  • Advertise