Hello,
I am using Zigbee 3 on a CC2538 and I want to implement MT in generic app. The only thing that I have done is enable the MT flags. What else do I have to do to be able to use Z-Tool?
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.
Hello,
I am using Zigbee 3 on a CC2538 and I want to implement MT in generic app. The only thing that I have done is enable the MT flags. What else do I have to do to be able to use Z-Tool?
Hello Panagiotis,
Basically compare the ZNP and GenericApp projects for any differences where it concerns the MT interface and adjust accordingly. This is documented for SimpleLink devices which may also provide some clues as to what else you may need to do. You will also need to confirm that the correct UART baud rate and flow control settings configured by the NPI layer are used by Z-Tool.
Regards,
Ryan
I want to use Z-Tool through UART_USB. I tried ZNP with HAL_UART_USB and USB_SETUP_MAX_NUMBER_OF_INTERFACES=5 enabled and it works, but when I do the same in GenericApp not only it doesn't work but also it doesn't recognize the device in device manager
I recommend defining ZTOOL_P1, adding CDC libraries to the linker and Compiler Preprocessor directories, and further debugging HalUARTInit as well as other NP/MT interface initialization APIs. Since you have a working setup with the ZNP project, you can compare the setup/initialization between the two. https://e2e.ti.com/f/1/t/921097
Regards,
Ryan
These instructions did it. I can now see my device.
Now when I try to get the node description of the device it gives me NwkInvalidRequest
What can I do about this?
After some testing, when I perform bdb commissioning, I get a response for the node description. I want this to happen without having to do commission
You have to perform Zigbee network commissioning somewhere, whether from the generic application initialization or by MT command should not make a difference. As DstAddr and NwkAddrOfInterest are parameters specific to a Zigbee network you will need to first form/join through commissioning.
Regards,
Ryan
I added bdb_StartCommissioning(BDB_COMMISSIONING_MODE_NWK_FORMATION); in zclGenericApp_Init and it works now.
One final question. When I do a SYS_RESET, the uart loses connection and I have to unplug and plug the usb in order to work again. Is this supposed to happen and if not how can I avoid the replugging part?
That occurs due to the USB peripheral mixed with a "Hard" SYS_RESET. You could use the UART peripheral instead or attempt to use the "Soft" SYS_RESET option.
Regards,
Ryan