Dear Sirs,
According to Chapter 2.2.1.1 of JN-UG-3103 ("Reading a Set of Attributes of a Remote Cluster"), the Destination Node will send "Read Attributes" response to the Source Node.
Where can I find the .c file which handling the response action?
Thanks!
Solved! Go to Solution.
Hi Alan,
Please look at the Application Note: JN-AN-1216 Document A.2. Message Characteristics.
The PDF explains how is the packet is formed, so you could look at the B.1. Common Commandsthat described with the message description.
Regards,
Mario
Hi Alan,
I hope you are doing great.
Please look at the APP_ZCL_cbEndpointCallback in the app_zcl_event_handler.c file.
case E_ZCL_CBET_READ_INDIVIDUAL_ATTRIBUTE_RESPONSE:
You will find how the attribute response is handled, and the function is reading out the attribute response.
if((psEvent->eEventType == E_ZCL_CBET_READ_INDIVIDUAL_ATTRIBUTE_RESPONSE))
vSL_WriteMessage ( E_SL_MSG_READ_ATTRIBUTE_RESPONSE,
u16Length,
au8LinkTxBuffer );
Regards,
Mario
Dear Mario,
Thanks for your information. It seems behavior on Gateway Node.
How about on Device Node?
Where can I find the .c file which writing the attribute payload into response packet on Device Node?
Thanks!
Hi Alan,
It is the same, look at the APP_ZCL_cbEndpointCallback function. For example the JN-AN-1219 app_zcl_switch_task.c file.
case E_ZCL_CBET_READ_INDIVIDUAL_ATTRIBUTE_RESPONSE:
DBG_vPrintf(TRACE_SWITCH_TASK, " Read Attrib Rsp %d %02x\n", psEvent->uMessage.sIndividualAttributeResponse.eAttributeStatus,
*((uint8*)psEvent->uMessage.sIndividualAttributeResponse.pvAttributeData));
break;
Regards,
Mario
Hi Mario,
I run ZGWUI tool to read attribute of a device node based on JN-AN-1218. Captured picture as below:
I am interesting in the packet data marked with red block.
Which .c file build up this response packet on Device Node?
How to interpret this packet byte-by-byte?
Thanks!
Hi Alan,
Please look at the Application Note: JN-AN-1216 Document A.2. Message Characteristics.
The PDF explains how is the packet is formed, so you could look at the B.1. Common Commandsthat described with the message description.
Regards,
Mario
Hi Mario,
Thanks a lot.