Tool/software: Code Composer Studio
Hi TI Support Team,
I am having some confusion regarding the used functions in the zed_genericapp examples to process incoming messages.
When I am about to transmit (from concentrator) to my zigbee end device that has zed_genericapp example, and I am trying to debug print to the following functions it seems to be not working as I have been expecting:
1.) zclGenericApp_processAfIncomingMsgInd()
I was able to get a successful debug print on this function
static void zclGenericApp_processAfIncomingMsgInd(
zstack_afIncomingMsgInd_t *pInMsg)
{
testPrintWithInput(53); //This is just for debugging purposes. It gets triggered everytime I receive a zcl write payload
}
2.) zclGenericApp_ProcessIncomingMsg
On this function I wasn't able to get a successful debug print. In this function too is where I can identify if it is zcl_read or zcl_write command.
And it also says in the comment Process ZCL Foundation incoming message. On what specific condition needed to call this function?
here is a snippet code from my project
static uint8_t zclGenericApp_ProcessIncomingMsg(zclIncoming_t *pInMsg)
{
uint8_t handled = FALSE;
testPrintWithInput(54); //this line is for debugging purposes, but it never gets triggered even if I I have already sent a zcl write command to this device.
switch (pInMsg->hdr.commandID)
{
#ifdef ZCL_READ
case ZCL_CMD_READ_RSP:
zclGenericApp_ProcessInReadRspCmd(pInMsg);
handled = TRUE;
break;
#endif
#ifdef ZCL_WRITE
case ZCL_CMD_WRITE_RSP:
zclGenericApp_ProcessInWriteRspCmd(pInMsg);
handled = TRUE;
break;
#endif
}
Update: I have added the source code from my project for better understanding.
Any help would be appreciated.
Thank you and Regards,
Jonathan