How to use manufacturer specific cluster in nxp zigbee?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to use manufacturer specific cluster in nxp zigbee?

跳至解决方案
1,912 次查看
sChameleoNz
Contributor III

I'm using the MCUXpress IDE and SDK_2_6_3_JN5189DK6.

I created a ZC project with importing the zigbee_coordinator_bm.

And, I added some clusters include own manufacturer specific cluster.

I want to accept packet from this manufacturer specific cluster.

I think I need to register my cluster using vZCL_RegisterCheckForManufCodeCallBack function.

Is it right?

Then, where can I find the example code?

I couldn't find it in the SDK and JN_AN_1247.

I'd appreciate it if you would help me from this.

标签 (2)
0 项奖励
回复
1 解答
1,904 次查看
nxf56274
NXP Employee
NXP Employee

Hi,

You can refer this link.

Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 days after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

在原帖中查看解决方案

2 回复数
1,905 次查看
nxf56274
NXP Employee
NXP Employee

Hi,

You can refer this link.

Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 days after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

1,895 次查看
sChameleoNz
Contributor III

I've already done it, except the Zigbee Configuration Editor.

After I done it, I can receive packet from the manufacturer specific cluster.

 

if (u8Error != 0)
{
  // send response if possible/required
  // Trac 6 - don't send default response from a default response.
  if (sZCL_HeaderParams.u8CommandIdentifier != E_ZCL_DEFAULT_RESPONSE ||
    sZCL_HeaderParams.eFrameType != eFRAME_TYPE_COMMAND_ACTS_ACCROSS_ENTIRE_PROFILE)
  {
    sZCL_CallBackEvent.eEventType = E_ZCL_CBET_ERROR;
    sZCL_CallBackEvent.eZCL_Status = E_ZCL_ERR_EP_UNKNOWN;
    sZCL_CallBackEvent.u8EndPoint = pZPSevent->uEvent.sApsDataIndEvent.u8DstEndpoint;
    vZCL_PassEventToUser(&sZCL_CallBackEvent);
    eZCL_SendDefaultResponse(pZPSevent, u8Error);
  }
  // free buffer and return
  PDUM_eAPduFreeAPduInstance(pZPSevent->uEvent.sApsDataIndEvent.hAPduInst);
  return;
}

 

Previously, I got this error.

0 项奖励
回复