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.

关于zigbee终端无法入网的问题

Other Parts Discussed in Thread: CC2530

我使用的芯片是CC2530,使用的协议栈为ZStack-CC2530-2.5.1a,使用的工程为SampleAPP。

工程可以在workspace中选择设备是协调器CoordinatorEB、路由器RouterEB还是终端EndDeviceEB,经过测试为两个模块分别烧录选择CoordinatorEB和EndDeviceEB的代码可以实现入网。但是我想实现基于Coordinator工程将路由器和终端的功能也加入进去,最终能通过串口发送配置这里设置设备类型为协调器、路由器或终端。

现在我将一个设备下载原本的coordinator的代码作为协调器,另一个设备作为终端,终端方的代码为基于coordinator的工程上做出如下修改:

1. 在main函数中将zgDeviceLogicType改为ZG_DEVICETYPE_ENDDEVICE;

2. 将引用库改为AllDevice-Pro.lib

3. 加入BUILD_ALL_DEVICES宏定义

4. 将ZSTACK_DEVICE_BUILD设置为(DEVICE_BUILD_COORDINATOR | DEVICE_BUILD_ROUTER | DEVICE_BUILD_ENDDEVICE)

但是通过抓包发现,终端发送beacon request后,协调器不会回复beacon,终端无法入网,请问还需要修改哪些东西才能实现基于coordinator工程将功能修改为enddevice呢?感谢回答!!