Controller reset issue after sending sms

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

HI all,

 

I am using Atmega 164A for my project. In this project I control relay using Text message.

By the time I need to send acknowledgement message to list of mobile numbers (say 6 Numbers). I successfully sending the sms but after sending last one the controller getting reset means starts executing from main. What will be the problem? If I send only 1 or 2 SMS it doesnt happen. Please help me to solve this issue.

Thank you. 

This topic has a solution.
Last Edited: Tue. Apr 18, 2017 - 03:00 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

There's nothing that can be said or done with the amount of info you have given. If you had problems with your car this would be like "my car won't start every sixth time. Why?"

There are no magic mindreaders here. Sit down and THINK about what info someone might need to help you with your problem.

One obvious thing would be to show schematics and code. Please reduce the code to the absolute minimum that builds and runs and displays the problem.

Happy 75th anniversary to one of the best movies ever made! Rick Blane [Bogart]: "Of all the gin joints, in all the towns, in all the world, she walks into mine."

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

As JohanEkdahl says, you really haven't given enough information to go on!

 

It's your project: only you have the code and the hardware in front of you;  nobody else knows anything about them - let alone has any access to them!

 

So you need to make the effort to dig into your project and find out where & why it's going wrong - again, nobody else has access to do this.

 

Debugging is an essential skill in any form of development:

 

http://www.8052.com/faqs/120313

http://www.ganssle.com/articles/...

 

Gangusa wrote:
I am using Atmega 164A

The ATmega164A has JTAG - so use it to debug your problem!

 

I successfully sending the sms but after sending last one the controller getting reset means starts executing from main.

Or, in other words, you code is crashing.

 

So look for stuff in your code that could cause it to crash.

 

If I send only 1 or 2 SMS it doesnt happen.

So, as JohanEkdahl said, THINK about why that might be.

 

Use that Debugger to see what's happening.

 

One thing that springs to mind is that sending 6 SMS is going to take a lot longer than just 2 - so THINK about the possible impacts of that extra processing time on your system ...

 

Image result for ibm think

 

Last Edited: Tue. Apr 11, 2017 - 06:57 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

My first guess is your running out of ram as that is a very limited resource, perhaps your program is running out of stack space!!!

 

Jim

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ki0bk wrote:
My first guess is your running out of ram as that is a very limited resource

 

http://www.microchip.com/wwwprod... tells us:

 

1KB SRAM

Which is, indeed, quite small!

 

 

 

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi, All It Solved Thank you all for your help.

 

Actually there were delay problem, after sending each message I need to give proper delay, I changed and changed finally It worked.

 

Conclusion: The delay also a main thing to consider.

 

Thank you all.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Gangusa wrote:
Conclusion: The delay also a main thing to consider.

Really?

 

Are you sure you shouldn't have been paying proper attention to responses from the module ... ?

 

http://www.avrfreaks.net/comment...