Other Parts Discussed in Thread: CC2530, Z-STACK
Hi,
I'm using Z-Stack version 2.3.1 on TI CC2530.
I want to ask some questions about router capacity and device capacity bits in the beacon payload. As I’ve seen so far, the zigbee coordinator won’t allow any additional routers or enddevices to join if RtrCap and DevCap bits are both 0 even if the Assoc bit is 1 in the superframe specification. So, it is dangerous to judge if the coordinator is now allowing others to join by looking at Assoc bit only.
1. How can I get the current settings of router capacity and device capacity of the local zigbee node (zigbee coordinator).
2. When router capacity and device capacity bits become 0?
Actually, when the coordinator has already associated maximum devices (=NWK_MAX_DEVICE_LIST+1) , router capacity and device capacity bits become 0. That is expected behavior. But I've seen that router capacity and device capacity bits are both 0 even if the num of associated devices doesn’t reach to maximum. I’m sure there was enough space to associate by checking ...
SYS_OSAL_NV_READ( ZCD_NV_DEVICE_LIST and ZCD_NV_ADDRMGR )
Why?
***
ZMAC.h
typedef struct
{
byte protocolID;
byte stackProfile; // 4 bit in native
byte protocolVersion; // 4 bit in native
byte reserved; // 2 bit in native
byte routerCapacity; // 1 bit in native <=
byte deviceDepth; // 4 bit in native
byte deviceCapacity; // 1 bit in native <=
byte extendedPANID[Z_EXTADDR_LEN];
byte txOffset[3];
byte updateId;
} beaconPayload_t;
***
Thanks
Yusuke,
