how can we know if the controlleur is full

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how can we know if the controlleur is full

1,269 次查看
zigbee1
Contributor III

We are currently maintaining a  Zigbee controller out of JN5169.
We are using the JN-SW-4170 SDK.
We have of course a good understanding of JN-AN-1216
Application Note: JN-AN-1216 ZigBee 3.0 IoT Control Bridge,

Is there a simple way to query the stack to know if there is any room left to allow a new association ?

can we get the current size of the Trust Center , in order to know if there is room ?

can we get the current child size ?

is there any other table which could prevent an association ?

0 项奖励
回复
5 回复数

1,220 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @zigbee1,

Please look at the vDisplayTableSizes function that is implemented appZpsExtendedDebug.c file 

"C:\NXP\bstudio_nxp\sdk\JN-SW-4170\Components\ZigbeeCommon\Source\appZpsExtendedDebug.c"

Regards,

Mario

0 项奖励
回复

1,218 次查看
zigbee1
Contributor III

so there is no real life possibility ? I don't want to use a debug version for production .

0 项奖励
回复

1,212 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @zigbee1,

The function provides the way how to read out the structure for the table sizes. You could copy the implementation.

 void * thisNet = ZPS_pvAplZdoGetNwkHandle();
    thisNib = ZPS_psNwkNibGetHandle(thisNet);

and the structure.

typedef struct
{
    uint16 u16NtActv;     /**< nwkNeighborTable (active) size */
    uint16 u16Rt;         /**< nwkRouteTable size */
    uint16 u16Rct;        /**< nwkRouteRecordTable size */
    uint16 u16AddrMap;    /**< nwkAddressMap size */
    uint8 u8NtDisc;     /**< nwkNeighborTable (discovery) size */
    uint8 u8RtDisc;     /**< Route discovery table (not strictly NIB) */
    uint8 u8Btt;        /**< nwkBroadcastTransactionTable size */
    uint8 u8SecMatSet;  /**< nwkSecurityMaterialSet size */
    uint8 u8NibDefault; /** size of the nib default struct **/
    uint8 u8ChildTable;
    uint16 u16MacAddTableSize;
} ZPS_tsNwkNibTblSize;

Hope it helps.

Regards,

Mario

0 项奖励
回复

1,252 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @zigbee1,

I hope you are doing great.

What do you mean by "if there is any room left to allow a new association"?

You set the child table size on the zpscfg.

Could you please explain in more details your requirement?

Regard,

Mario

 

 

0 项奖励
回复

1,248 次查看
zigbee1
Contributor III

What can I say more .

How can we now that the controller (or the network) is full and cannot accept a new device.

Like but not limited:

the Trust Center is Full

the controller child table is full

the other routers don't have more capacity

...

0 项奖励
回复