Sending messages ED to ED

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

Hi !

I have network(with coordinaotr, Rs nad EDs) in which EDs(are sleeping) send messages to each other.

I use acknowledge transmission (BitCloud v13).

What happens if one ED sends message to another and doesn't receive ACK? Is message dropped after a APS_NO_ACK_STATUS is received on sending ED?

Is is good to start timer and when it elapses repeat this message?

What happens when one ED sends message to another and immediately goes to sleep and receiving ED receives message and sends ACK to sending ED?
Or to make it simple : does sending ED have to wait for ACK (APS_SUCCESS_STATUS or APS_NO_ACK_STATUS) and then can go to sleep?

Thank you !

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

You have to always wait for APS_DataConf() before going to sleep.

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

alexru wrote:
You have to always wait for APS_DataConf() before going to sleep.

OK.

When does callback functions rise?

For example, I'm writing data in flash memory and ZDO_MgmtNwkUpdateNotf() rise to interrupt my application. Can this happen?

Or ZDO_MgmtNwkUpdateNotf() will rise after I complete all jobs and BitCloud stack takes over everything?

Thanks, again !

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

No, callbacks can't interrupt application execution, they are called from main task scheduler.

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

And one more question just to be sure:

Can external interrupt(which is enabled) interrupt callback functions like ZDO_MgmtNwkUpdateNotf()?

I suppose the answer is yes.

Thanks Alexru !

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

Yes, hardware interrupts can interrupt any function.

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