TI中文支持网
TI专业的中文技术问题搜集分享网站

zstack3.0.2建立网络和入网问题

1.协调器建立网络问题:

在协调器初始化的时候,调用 bdb_StartCommissioning(BDB_COMMISSIONING_MODE_NWK_FORMATION | BDB_COMMISSIONING_MODE_FINDING_BINDING);是否就自行建立网络?但是zclGenericApp_NwkState并未等于DEV_ZB_COORD,是否可以判断为建立网络失败?

2.终端加网问题:

终端初始化调用bdb_StartCommissioning(BDB_COMMISSIONING_MODE_NWK_STEERING | BDB_COMMISSIONING_FINDING_BINDING);,协调器在BDB_COMMISSIONING_FORMATION成功的时候调用NLME_PermitJoiningRequest(0xff);允许入网,但是终端始终加网不成功。

YIFEI YUAN:

使能2592PA的话,是否#define HAL_PA_LNA_CC2592这样就可以了?

Viki Shi:

1、是的

2、提供一下抓包数据吧,仅凭描述无法判断

YIFEI YUAN:

回复 Viki Shi:

现在的问题是:协调器可以建立网络了,但是终端设备在入网后会不断的重连,ubiqua抓包显示网络中有41个设备了。但其实是只有一个终端设备,每次重连后悔重新分配到一个短地址,这是咋回事啊?麻烦啦

Viki Shi:

回复 YIFEI YUAN:

终端request key,协调器没有transport key,所以就leave了。协调器也是zigbee3.0的设备吗? 把BDB_DEFAULT_TC_REQUIRE_KEY_EXCHANGE 设置为false关闭TCLK exchange,位于bdb_interface.h中

YIFEI YUAN:

回复 Viki Shi:

还是不行啊,我把BDB_DEFAULT_TC_REQUIRE_KEY_EXCHANGE 设为FALSE了,但是终端还是频繁掉线,协调器和终端都是3.0.2的zstack。

Viki Shi:

回复 YIFEI YUAN:

把这边的补丁打一下e2e.ti.com/…/902631
你的问题跟问题8有些类似:
8. NWK/APS packet retries/failure when ZED polls during commissioning (Transport Key, Simple Descriptor Request, etc)

Issue description:
Sometimes ZC will fail to send out a NWK/APS layer packet during network commissioning, e.g. Transport Key, to a joining ZED, and this requires the ZED to poll again to get the packet. This will not cause functionality issues for the joining device since it will retry and eventually get the packet, but it is not ideal to need to retry to receive the same packet multiple times. This issue is caused by a race condition involving a blocking NV write operation that happens on the ZC after a new device joins the network.

Proposed Fix:
Change the value of ZDAPP_UPDATE_NWK_NV_TIME from it's default of 700 (ms) to a larger value, like 3500. This will cause the NV write operation to start at a later time and thus not interfere with network commissioning.

YIFEI YUAN:

回复 Viki Shi:

还是不行呀,我把700改为3500,10000,60000都试过了,还是会不停的掉线。

YIFEI YUAN:

回复 Viki Shi:

每次掉线都会初始化,我猜是重启了

Viki Shi:

回复 YIFEI YUAN:

你把完整抓包数据附件传一下吧

YIFEI YUAN:

回复 Viki Shi:

这是最近几次的抓包数据:

0284.data.zip

赞(0)
未经允许不得转载:TI中文支持网 » zstack3.0.2建立网络和入网问题
分享到: 更多 (0)