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 / Replies / From the AT Command set,

From the AT Command set,

|

Microcontroller › PIC › reading sms from gsm modem and comparing with predefind one › From the AT Command set,

September 16, 2016 at 7:09 pm #14138
narasimha rao
Participant

From the AT Command set,<CR><LF> are sent from the module before data(message) is sent.

So, try to collect the entire reply given by the module in an array.

After time delay, check from the array the character <CR> which is decimal 13.

Then, from the second character the message starts.

This code snippet may work:

         do
         {
             q++;
         }while(gsm_response[q]!=13);        //<CR><LF>MESSAGE<CR>   13=<CR>
         for(q=q+2,temp=0;gsm_response[q]!=13;q++,temp++)
         {
             message[temp]=gsm_response[q];
         }

 

RSS Recent Posts

  • Panasonic RQ-A170 Walkman recorder November 16, 2025
  • Looking for obsolete item from Parallax November 16, 2025
  • Can a small solar panel safely trickle-charge old NiMH AA batteries? November 16, 2025
  • TraxMaker Pro? I only have the non-Pro version. Looking for the Pro version that has the integrated pick and place coordinates export. November 16, 2025
  • ESP32-S3 started outputting NMEA GPS location frames after EMC disturbance — what mode is this? November 15, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

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 | 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