Hello,
how can I increase the number of ZBOSS buffer (zboss_api_buf.h)? Currently they are 25.
We are using nrf52840 with nrf5 sdk for thread and Zigbee v4.2.0 without soft device library.
Best regards
Laura
Hello,
how can I increase the number of ZBOSS buffer (zboss_api_buf.h)? Currently they are 25.
We are using nrf52840 with nrf5 sdk for thread and Zigbee v4.2.0 without soft device library.
Best regards
Laura
Hello Laura,
You could increase the amount of in/out buffers by increasing ZB_CONFIG_IOBUF_POOL_SIZE, which you can using a custom memory file (ie. zb_mem_config_xxx.h).
For more info, see here.
Regards,
Elfving
Hello Elfving,
thank you for your reply. I can now have max 64 buffers.
Can I increase more? Or is there a limit at 64?
zb_buf_get_out() is now returning IDs until 64 and then it returns ZB_BUF_INVALID, which is not what I expected.
I set ZB_CONFIG_IOBUF_POOL_SIZE to 127 since, in zb_mem_config_context.h, there is written "some data structures use 7 bits to address a buffer, so can have up to 127 buffers."
Best
Laura
Hello Elfving,
thank you for your reply. I can now have max 64 buffers.
Can I increase more? Or is there a limit at 64?
zb_buf_get_out() is now returning IDs until 64 and then it returns ZB_BUF_INVALID, which is not what I expected.
I set ZB_CONFIG_IOBUF_POOL_SIZE to 127 since, in zb_mem_config_context.h, there is written "some data structures use 7 bits to address a buffer, so can have up to 127 buffers."
Best
Laura
Hmm I am not sure. Could you try the same thing with zb_buf_get_out_delayed() or zb_buf_get_in_delayed() instead of zb_buf_get_out()?
And btw, if this is a new design you are planning, you should also note that it might be worth switching to nRF Connect SDK. nRF5 SDK is in maintenance mode, and in addition to that the Zigbee SDK is deprecated.
Regards,
Elfving