Hi,
I am using the BMD340 module from Rigado. The module is connected to a raspberry compute module via UART. The design implemented is the “CLI co-processor design” where the ZigBee stack is installed and running on the SoC (https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v3.2.0%2Fzigbee_example_cli_agent.html). I am able to connect to the CLI and interact with it using the zb-cli-wrapper python package on python3.7.6. But for some reason when I am trying to run my application (simple application based on the example in the package) from a python virtual environment (also python3.7.6), the application hangs. I can create the ZbCliDevice object, but when I want to set channels and the role (cli_dev.bdb.channels = [16] and cli_dev.bdb.role = 'zc'), the application hangs.
I tried to debug it and found that the function that hangs is tcdrain(). This function is called by zb_cli_wrapper/src/utils/connection.py module at line 240. It tries to flush the serial buffer but hangs and I don't understand why.
Greetings,
Damien