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.

ZHA coordinator 和多个ZLL灯以ClasscalCommising组网死机问题

Other Parts Discussed in Thread: Z-STACK

你好:

条件:

Z-Stack Home 1.2.2a.44539协议栈,ZHA coordinator 烧写ZHA  SampleSwitch,按照VV的ZHA转ZLL,发现:

coordinator 使用 xHOLD_AUTO_START 编译。

ZLL灯,设置开机循环ClasscalCommising,每隔4秒触发一次,这个是我写的。

现象:

在同时组入三个或多个ZLL灯,Device_annce正常,但是会受到多个灯的Device_annce,然后选择一个进行Active_EP_rsp,最后Simple_Desc_rsp,在Sample层填入地址,然后就死机了,这个现象,目前是随机的,有时候有有时候没有,有时候会在第二个灯组完网后死机的。

必须重启coordinator 后才正常。

并且,有的灯ClasscalCommising不响应即没组进去。

感觉协议栈在Device_annce时就乱了,我想要的效果是多个ZLL灯能够一个一个按顺序的的组入coordinator 中。

求TI大神解答,非常感谢!!

  • 死机问题解决了:

    osal_mem_free(pSimpleDesc.simpleDesc.pAppInClusterList);

    osal_mem_free(pSimpleDesc.simpleDesc.pAppOutClusterList);

    改成:

    if(device_list.endpoint_info.num_in_clusters != 0)
    osal_mem_free(pSimpleDesc.simpleDesc.pAppInClusterList);
    if(device_list.endpoint_info.num_out_clusters != 0)
    osal_mem_free(pSimpleDesc.simpleDesc.pAppOutClusterList);

    现在有个问题是,Device_annce到多个ZLL设备,但只能选择一个进行Active_EP_rsp,最后Simple_Desc_rsp

    而其他的ZLL设备只进行了Device_annce

    VV的例子只适用于组网一个ZLL灯的场景

    你们TI回复效率太低了!