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 don’t have a program for

i don’t have a program for

|

Microcontroller › AVR › read and comapare message in ATmega16 › i don’t have a program for

May 27, 2013 at 1:50 pm #9834
Sagar
Participant

i don’t have a program for atmega16. actually i wrote one for RD2 uC and it worked great for me.  the logic remains same.

set up usart (check atmeg16 usart tutorial) with 9600 baud rate.

write serial send and serial receive function.

the next thing is to set your modem in text mode format.

the command to do so is AT+CMGF=1

now whenever a new sms is received u’ll recv this string

+CMTI: “SM”,1

where SM indicates sim card and 1 is the memory location.

you have to collect these bytes in charecter array one by one.

then to read sms send this command AT+CMGR=1

after executing this command you will get your sms charecters 1 by 1.

study the message format in some terminals (like senders no and newline blah blah). i used putty. extract the string and then write/use function strcmp function.

Hope you are good at writing c codes. check out ur modem datasheet.

all the best.

RSS Recent Posts

  • Looking for amplifier ic August 12, 2022
  • alternate of 80386/486 microprocessor August 12, 2022
  • Trying to troubleshot 1960s Panasonic transistor radio August 12, 2022
  • Company name: any suggestions? August 12, 2022
  • uc3843 Buck-boost August 11, 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