Restarting AVR , how to do this? Zigbee Raven

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

Hi All

I am programing the RAVEN, as you know large part of the code is in stack which we can not edit.

What i am doing is added a switch, which basically say if pressed pair it with the Cordinator.

Is there away of restarting the AVR, so i goes back to first instruction? So when i press a button it would just reboot.

Yess i do agree i could get my self in big loop of start and restarts, but i cann add various flags.

The aim i trying to achive is simple, i make simple change on end node and then press the button so it restarts and joins the network with the new parameters.

Regards

DJ

Thanks

Regards

DJ

Last Edited: Fri. Oct 16, 2015 - 02:36 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Is there away of restarting the AVR, so i goes back to first instruction? So when i press a button it would just reboot.

Assuming that you have code to detect the press of the button: Activate the Watchdog Timer and then enter a tight loop doing nothing. The Watchdog will time out and reset your AVR. Search these forums for things like "watchdog" and "software reset" etc and all shall be revealed.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"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

djoshi wrote:

Is there away of restarting the AVR, so i goes back to first instruction? So when i press a button it would just reboot.

If you are using BitCloud then just call HAL_WarmReset().

djoshi wrote:

The aim i trying to achive is simple, i make simple change on end node and then press the button so it restarts and joins the network with the new parameters.

It is not necessary to restart in this case. You can just leave network and start it again.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

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

i will give that a go.

One seniro would be to connecting from on network to another. But if both are within the range the closet connects, but inorder to connect to a new close network you would need to restart so it see the new network as the closest.

DJ

Thanks

Regards

DJ

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

just tried and it works

DJ

Thanks

Regards

DJ

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

Hi All

When the RAVEN is within a network and i press the button it restarts and re joins, this is because the function is within the a loop appEndDeviceTaskHandler();

I am thinking a network A was no longer availble and network B has just appeared how do i join this network, without re powering.

I keep seeing

Quote:
joining
, but where would i place the code to restart the stack while its trying to join.

I can not manage to find it.

Dj

Thanks

Regards

DJ

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

Please describe step by step what are you doing, what results do you get and what was expected.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.