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 / i changed the steps, but i m

i changed the steps, but i m

|

Microcontroller › PIC › reading sms from gsm modem and comparing with predefind one › i changed the steps, but i m

July 29, 2012 at 10:40 am #8360
td
Participant

i changed the steps, but i m not getting the string…

+CMGR: “REC READ”,”+918108111649″,,”12/07/22,14:24:11+22″
Hello

OK

 

here is the pgm……

 

putrsUSART(“AT+CMGR=1”);
putcUSART(0x0D);

while(BusyUSART());
gets(a);
Delay1KTCYx(75);
putsUSART(a);

}

 

void gets(char *buffer)
{
  unsigned char data;
 do
  {
    while(!DataRdyUSART());// Wait for data to be received
    data = getcUSART();                         
    *buffer = data;
    buffer++;              // Increment the string pointer
  }
while(data!=’K’);
*buffer=’’;
}

 

please help me to print the modem response….

 

thank you

RSS Recent Posts

  • AI algorithm for bots April 17, 2026
  • SDCC Array Access In Timer 0 Interrupt Handler April 16, 2026
  • EasyEda program has a major bug April 16, 2026
  • ANOTHER OLD PROJECT REDO April 16, 2026
  • How to set the OSCAL in a PIC 12F675 April 16, 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