zigbee cluster can't call-back APP_ZCL_cbEndpointCallback function

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

zigbee cluster can't call-back APP_ZCL_cbEndpointCallback function

732 Views
13560436802
Contributor II

Hi,i have a question about zigbee as below:
I use the "zigbee gateway user interface" send command to a device(colorTemperatureLight),
case 1:when send the "MoveToHue","MoveToColor",MoveToSat,the Receiving device only have "ZCL_Task endpoint event:1" printf;
case 2:but when the "MoveToTemp",the Receiving device have "ZCL_Task endpoint event:1" and "EP EVT:Custom C1 0300" printf;
form the printf impromation,i know that case 1 didn't call-back the "APP_ZCL_cbEndpointCallback(tsZCL_CallBackEvent *psEvent)" function ,
and case 2 can call-back the "APP_ZCL_cbEndpointCallback(tsZCL_CallBackEvent *psEvent)" function .
why,and how to make case 1 can also call-back the the "APP_ZCL_cbEndpointCallback(tsZCL_CallBackEvent *psEvent)" function;
in addition, in other case, i add a "Level control cluster" by myself, it can't call-back the the "APP_ZCL_cbEndpointCallback(tsZCL_CallBackEvent *psEvent)" function
when receive a command;
can you tell me why and how to solve it;

thank you very much!

11_20181009094126.png

0 Kudos
Reply
1 Reply

585 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Dylan,

If you look into the Zigbee Cluster Library the Colour Control Cluster requires extra storage space to be allocated for use by internal functions. If you look into the eCLD_ColourControlCreateColourControl, the custom data structure is defining the E_ZCL_CBET_CLUSTER_CUSTOM.

    psCustomDataStructure->sCustomCallBackEvent.eEventType = E_ZCL_CBET_CLUSTER_CUSTOM;

That is the reason why are you looking the EP EVT: Custom Cl 0300.

Regards,

Mario

0 Kudos
Reply