This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Z-Stack increase number of indirect messages stored on coordinator

Other Parts Discussed in Thread: Z-STACK, CC2530

Hi,

I am using the CC2530 with Z-Stack and IAR toolchain.  I have sleepy EDs and so the Coordinator needs to use indirect messaging for store and forward of messages.  The messages originate at the coordinator.  My sleepy devices sleep for a very long time and the poll rate is very long and so the coordinator needs to store multiple messages for multiple EDs.  Currently, the coordinator seems to only be able to store a few messages before it runs out of memory.  Is there anyway to increase the memory allocated for indirect messages?  Or, possibly define the maximum number of messages to store?

Thanks

  • Hi Schneiderham,

    The maximum number of outgoing messages including indirect messages is defined with NWK_MAX_DATABUFS_TOTAL in nwk_globals.c. Also, the maximum number of indirect messages per device is defined with NWK_INDIRECT_MSG_MAX_PER in the same file. So I would say you can increase the maximum number of indirect messages by increasing both NWK_MAX_DATABUFS_TOTAL and NWK_MAX_INDIRECT_MSG_MAX_PER. By the way, please note that NWK_MAX_INDIRECT_MSG_MAX_PER should not be greater than half NWK_MAX_DATABUFS_TOTAL.

    - Cetri

  • Thank you Cetri,

    That appears to be the answer I was looking for.