cancel
Showing results for 
Search instead for 
Did you mean: 

How do I disable Zigbee security level?

VWu.1
Associate

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.

1 REPLY 1
Remy ISSALYS
ST Employee

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