微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI Zigbee设计交流 > 新的ZigBee3.0协议栈从哪里调用ZDOInitDeviceEx()呢?

新的ZigBee3.0协议栈从哪里调用ZDOInitDeviceEx()呢?

时间:10-02 整理:3721RD 点击:

新版Zigbee 3.0协议栈中,去掉了编译项HOLD_AUTO_START,设备状态devState默认为DEV_HOLD,如下:

3.2.2 ZDO Device Network Startup
By default ZDApp_Init() [in ZDApp.c] starts the device’s startup in a Zigbee network, but an application can override this default behavior. The compilation flag HOLD_AUTO_START is not longer used, the compile flag NV_RESTORE is by default enabled. It is suggested that the user do not use the ZDO interface to commission the device to the network, but instead use the BDB API.

请问:

1.开发手册中建议使用BDB API来实现相应功能,具体是哪个函数呢,找了半天没找到相关的;

2.如果不用BDB API,能否直接更改devState=DEV_INIT,并且手动调用ZDOInitDeviceEx()呢?

BDB是整个过程都是按照状态机来实现的,你可以参考第一个状态

可以,但是这样就是失去使用3.0 意义了么

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top