Skip to main content
VWu.1
Visitor II
February 28, 2022
Question

How do I disable Zigbee security level?

  • February 28, 2022
  • 1 reply
  • 839 views

I am using STM32WB Discovery kit for STM32WBB5MM MCUs for development. I've setup the board as a RFD, Centralized End Device. How do I disable Zigbee security level if I don't need it? Currently, I have to set it manually in APP_ZIGBEE_NwkForm() by

  config.security.level = 0;

However, this would get erased once I regenerate the code with STMCubeMX.

Thanks in advance for any help.

This topic has been closed for replies.

1 reply

Remy ISSALYS
ST Technical Moderator
April 12, 2022

Hello,

Default security level is ZB_SEC_LEVEL_ENC_MIC32 (0x05). Security level 0 & 4 shall not be used as per Zigbee standard. Anyway, security level can be forced to 0 for debug purpose. Unfortunately, there is no way to set Security Level at CubeMX level. So, you have to set it manually each time you regenerate your project. 

Using Zigbee default security level with Z09 Link Key is quite easy and handled transparently by protocol analyzer such as Wireshark.

Best Regards