你好。我用Z-Stack Lighting 1.0.2作为协调器,philips hue灯作为终端设备,做智能家居实验。通过抓包发现。看到hue灯发出beacon Request请求,也看到了协调器的超帧回应。之后又发现hue灯发出beacon request,也有协调器的超帧回应。持续循环这样子。据我分析hue灯还没成功入网。帮忙分析一下原因。谢谢!
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.
你上面说的帖子,那个客户用的是3.0和你的不一样,我给你的帖子是基于1.22a的提供了工程文件需要修改的,你下载下来去看,此外不需要interpan
Beacon requests 会由Coordinator 的network 层去回應、應用程序無需也無法處理,但是coordinator 要使能permitjoin 才能讓設備入網
我下载了你给我参考的帖子上的工程文件,直接替换Z-Stack Home 1.2.2a.44539中SampleSwitch例程中zcl_samplesw.c和zcl_samplesw.h这两个文件。在工程配置中定义了宏ZHAZLL。工程是选择CoordinatorEB编译。
测试抓包结果是:
有收到philips hue灯发出的beacon request
也有协调器发出的beacon
但是没看到associate request以及后续的数据交互