ZDO_WakeUpReq() don't give a callback response.

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

Hi,

 

I was working on an End-device and it was sometimes not able to wake up instead WDT reset occurs., on checking with Debugger I found that ZDO_WakeUpReq() function is not giving the callback response.

My system is complete interrupt based with no timed base wakeup, and I'm using Sleep on Idle, so I actually don't know when system is in sleep and when awake after application layer becomes idle.

 

I tried one test and found that if my Device is not on sleep I call ZDO_WakeUpReq() I don't receive any callback, but when I was using BitCloud 1.14 I always get callback response with status as Invalid Command. Can you Please help why ZDO layer don't response?

 

This topic has a solution.
Last Edited: Fri. Oct 16, 2015 - 12:23 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

See my other response regarding sleep on idle. It is a bad idea by design.

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

Thanks for the response I'll try to work without using Sleep on Idle, but still the problem is same, why we are not getting any response from ZDO_WakeUpReq() if our system is not in sleep, even though in BitCloud 1.14 we get ZDO_INVALID_REQUEST_STATUS.

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

That I don't know. It is possible the there is a bug, probably introduced with sleep when idle feature. It is better to know if application is asleep or awake and call APIs accordingly.

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

Hi.
I'd like to know is there any condition in BitCloud 3.2 that when we make a device as end device due to some configuration or something we don't get response from ZDO_StartNetworkReq() or ZDO_WakeUpReq()?
I tried using avr dbg, my functions are getting executed but I never reach to the callback function for any of the respective functions.
The code for start network is unchanged as what was given in WSNDemoApp.c

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

At least ZDO_StartNetworkReq() should always work. Even if it is impossible to start a network, it still should return something.

 

ZDO_WakeUpReq() should also work, but I can see how it can fail because of this idle sleep stuff.

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