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

  • Capacitor to eliminate speaker hum August 16, 2022
  • Help identify a part August 16, 2022
  • Digital Display Information August 16, 2022
  • Is there a discord for this forum? August 16, 2022
  • Peltier control August 16, 2022

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2022 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