Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

making leds glow and off using gsm and avr microcontroller

Status
Not open for further replies.

sravani.thatha

Newbie level 6
Joined
Oct 5, 2010
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
India
Activity points
1,376
hai,
i am trying to read the message we sends to gsm modem and perform accordingly,and immediatly needed to delete the message and gsm must be ready to receive new sms and should perfrorm the given action..and it must continue forever.........
and now i am able to do the thing once.
i mean i send an sms and performed action accordingly.........but i am little bit confused how to make it as an infinite loop.........
so plz kindly suggest me the way to make it infinite.......
 

while(1){
// your code here
}

i can use while(1) or for9;;) for making it an infinite loop but the problem is when ever i send command for reading an sms i.e.. AT+CMGR=1 the LEDs went off but i need to continue the previous state of LEDs until new sms found in the inbox which make the LEDs off.........

plz suggest an idea to make it possible..........
 

Just compliment the state of the LEDs after your use of blinking it & put this routine in an infinite loop.
Regards,
Jerin.
 

Post your code. It will be helpfull to find out the fault
 

Just compliment the state of the LEDs after your use of blinking it & put this routine in an infinite loop.
Regards,
Jerin.

we cant do the compliment if we do so then LEDs initially on and gets off and again we compliment it it again gets on but it should not happen this is state transition happens by what u said...
but i need to stay in the same state.....with out any transition
 

After your command has been one received as an acknowledgment do off the LED & just initialize it from first onwards.
Regards,
Jerin.
 

Always check UART receive equal to 'AT+CMTI'. If this code receive, perform to read the message and analyze it.
Example you can do like this GSM Signboard or GSM Switch.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top