How to implement custom PAN ID for Zigbee in STM32WB55 MCU?
Hi,
Our product uses 2 x STM32WB55 MCUs, where one as Server/Coordinator and the other one as Client/Router for Zigbee. However, our customer prefer to use customized PAN ID or Extended PAN ID so that more controllable and traceable by their application software later. Below is the setup of the Server/Coordinator and Client/Router in my firmware (modify based on sample code "Zigbee_OnOff_Server_Coord & Zigbee_OnOff_Client_Router").
** Server/Coordinator :
startupControl = ZbStartTypeForm;
config.panId = 0x0001; // range from 0x0001 to 0xfffe
config.extendedPanId = 0x00001; // incremental from 0x01 onwards
** Client/Router:
startupControl = ZbStartTypeRejoin;
config.panId = 0x0001; // range from 0x0001 to 0xfffe
config.extendedPanId = 0x00001; // incremental from 0x01 onwards
Questions:
1. May I know the configuration above is enough and valid to do so?
2. What are the steps needed or I missed out in order to use customized PAN ID or extended PAN ID or even the short address if question 1 above is not valid and enough?
3. How to bypass the default auto PAN ID or extended PAN ID assignment by wireless stack?
4. Do I need to rebind my client/router with the server/coord after changing the PAN ID on client/router to match server/coord's PAN ID?
5. Under what circumstances we need to do binding? during pairing? and only once will do?
Thanks.
