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

ZigBee controller read connected device info

When restrating the controller, are there any information stored in memory regarding the paired devices or is this up to each implementation to do this manually.

1. If there is information stored, what is the best way to list the devices ? 

2. If not are there any best practice on how to do this available ? 

/Jimmy

Parents
  • Hey Jimmy, 
    Our Zigbee guys are a bit preoccupied at the moment, we'll get back to you ASAP.

    Cheers,

    Håkon.

  • Think I figured it out =)

        for( zb_uint16_t i=0; i <ZB_CONFIG_IEEE_ADDR_TABLE_SIZE; ++i )
        {
            if( gc_addr_map[i].used != 0 )
            {
                zb_ieee_addr_t ieee_addr;
                zb_address_map_t t  = gc_addr_map[i];
                zb_ieee_addr_decompress(ieee_addr, &t.ieee_addr);
                printf("0x%04hX %s\n", t.addr, zb_ieee_addr_to_string(ieee_addr));
            }
        }

  • Hi,Jimmy。

    The “gc_addr_map”  in your code saved automatically by statck or manually?

     

  • I just read it so, some one saves it. The used flag is not the only one you need to look at if you want the long address as the compressed version might be 0000 or ffff and then its regarded as invalid too.

  • Thanks for your reply and tips!

Reply Children
No Data