Other Parts Discussed in Thread: Z-STACK
coo: #define NWK_MAX_DEVICE_LIST 10
网络:1个coo,若干en,无ro
开放入网窗口后,连续接入超过10个终端设备。目前第13个的终端设备依然可以加的进去,但是感觉入网相比10个内的慢了好多。
请问,不应该是限定多少,就只能加入多少了。
下面是抓包数据。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Other Parts Discussed in Thread: Z-STACK
coo: #define NWK_MAX_DEVICE_LIST 10
网络:1个coo,若干en,无ro
开放入网窗口后,连续接入超过10个终端设备。目前第13个的终端设备依然可以加的进去,但是感觉入网相比10个内的慢了好多。
请问,不应该是限定多少,就只能加入多少了。
下面是抓包数据。
以下是我用FIND IN FILES 找出来的NWK_MAX_DEVICE_LIST 。
nwk_globals.c CONST deviceTableIndex_t gNWK_MAX_DEVICE_LIST = NWK_MAX_DEVICES;
nwk_globals.h #if !defined( NWK_MAX_DEVICE_LIST )
nwk_globals.h #define NWK_MAX_DEVICE_LIST 10//20// // Maximum number of devices in the
nwk_globals.h // NWK_MAX_DEVICE_LIST above
nwk_globals.h #define NWK_MAX_DEVICES ( NWK_MAX_DEVICE_LIST + 1 ) // One extra space for parent
nwk_globals.h extern CONST deviceTableIndex_t gNWK_MAX_DEVICE_LIST;
请问一下,预编译如下设置可以么?
NWK_MAX_DEVICE_LIST=20
1.刚才在预编译添加#define NWK_MAX_DEVICE_LIST =10,确实有效果。抓包可以看到beacon里AssociationPermit:[0x0]NO.
2.后面不甘心,又从初始协议中,复制了
#if !defined( NWK_MAX_DEVICE_LIST )
#define NWK_MAX_DEVICE_LIST 10 // Maximum number of devices in the
// Assoc/Device list.
#endif
然后发现这回正常了。
3.在加入第12个失败后,我又NLME_PermitJoiningRequest(0xff); //开启设备入网功能
4.重新加入第12个的时候,通过抓包数据beacon来看AssociationPermit:[0x1]yes。
在尝试多次之后,终于加进去第12个了。
这样岂不是,一重新开放网络,就能继续加了?