zb_zdo_mgmt_lqi_req occasionally does not call the callback

We've noted that our coordinator sometimes hangs and it's because that sometimes, maybe once every 1000-10000th call, the zb_zdo_mgmt_lqi_req API never responds to the callback and our code gets stuck on a semaphore waiting on that reply. I've checked that we get a buffer from zb_buf_get_any and that zb_zdo_mgmt_lqi_req does not return 0xff, so everything looks right.

Is there a better, more preferred, way to get the list of connected end devices or is this it and I should rework the code to be prepared that it might not always get a response?

I guess this could be considered a bug in the Zboss library? We're running version 3.11.1.5.

Regards

/Martin 

Parents Reply
  • Hi, sorry for late reply again. Lots to do before release.

    I think I've found the problem. As the danes say: Error 30; the problem is approximately 30 cm in front of the screen.

    If I do check that I actually get a buffer allocated before trying to call the function I bet things will work better. I thought I checked, but apparently not.

    Sorry about that.

    I'll get back to you if there's still a problem remaining when I do check for a buffer.

    Regards

    /M

Children
Related