This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Zigbee CLI communication failure

Hello,

I am able to use the Zigbee CLI Agent and send some commands. I am using the zb-cli-wrapper python package to send commands from python. I wrote an application that configures the module as a zigbee coordinator. If it is already configured as such, that means if the zigbee stack is already running, I just connect the cli with bdb start command (so it will not create a new network). Then, when nodes join the network, I retrieve some information using simple descriptor command. Once I have all the informations about the network, I want to be able to control and monitor the nodes.

But for some reason that I don't understand, after sending some commands to the CLI, the communication stops working. I can not communicate with the CLI until I reset the module. What could be the issue? Do you think that I am sending commands too fast? Because when I send commands manually using Minicom, it never crashes or hangs.

Best regards,

Damien

Parents Reply
  • Hi,

    I still struggle to find the issue. I am not sure but maybe something goes wrong with threading. The memory is locked by the cli device thread when it handles a new line. But when sending a command using the write methods, the memory is never locked. Could that be that because it is not locked, it mixes stuff and sends a wrong command? I am not in ease with threading so... it is a bit hard for me to understand exactly how it works.

    BR,
    Damien

Children
Related