This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Zigbee Group ID Generation

Hello,

I am testing a light switch system where each switch is capable of controlling multiple bulbs via multiple groups stored on the switch. I have noticed in the example code, a default group ID is already defined via #define DEFAULT_GROUP_ID  0xB331. 

I plan on generating my own group IDs, and hence have a 3 questions I would like to have answered.

  1. Is there a specific format or range that group IDs must follow in order to be valid (other than being 16 bits long)?
  2. Do you have any suggestions for generating unique group IDs during run time or on device startup?
  3. I'm considering using the short address of the first bulb found as the group ID. Do you foresee any issues this might cause?

Thank you very much for your time in answering these,
Angry Oatmeal Slight smile

Parents
  • Hello,

     

    Is there a specific format or range that group IDs must follow in order to be valid (other than being 16 bits long)?

     I don't think there are any limitations.

    I don't think the group IDs and the short addresses are using the same "space". They are different sets of IDs. Do you get any issues when using the first light bulbs address as a group ID?

    What you need to think about is how the light switch(es) will know about this group ID, and where to send the messages. Is your coordinator handling this?

    BR,

    Edvin

  • Hello Edvin,

    I have tested this out, and can confirm that using a bulb's 16bit short address works just fine for setting group IDs. 

    In terms of the switch knowing the group ID, I am maintaining an internal struct which keeps track of found devices and their associated groups. It works well for its current purpose.  

    Thank you very much, 
    Angry Oatmeal

Reply Children
No Data
Related