I have tried working upon sample code of zigbee 3.0 coordinator and router from SDK version 2.0 but couldn't rectify the code to generate any data/message for transmission from coordinator to router and vice versa. I am using MCUXpresso IDE, Please let me know which functions from which file can be used for data transmission and from where we can call them. as these examples are command based.
Yes now string data is transmitting normally, But there is problem with hex data, I am sending int data_packet[] = { 0x45,0x43,0x75,0x67}
by using this code i am putting data
for (i = 0; i < result; i++) {
uint32 reversedByte = (uint32) data_packet[i];
u16Offset += PDUM_u16APduInstanceWriteNBO(hAPduInst,u16Offset ,"la\x04", reversedByte);
DBG_vPrintf(TRUE,"-------%d",u16Offset);
DBG_vPrintf(TRUE, "%02x ", reversedByte);
}
and retrieving data
for (int i = 0; i < payloadSize; i++)
PDUM_u16APduInstanceReadNBO(hAPduInst, u16Offset + i * sizeof(int),"w", &received[i]);
from this code but data is coming in wrong format
please let me know where i am going wrong
Hello,
I'm glad to know you are able to send data.
Please find the following community post, where is explained the parameters that are required in order to send the data in a proper way.
This include the szFormat string of the data:
Note that the compiler will not correctly interpret the format string “a\xnnb” for a data array followed by a single byte, e.g. “a\x0ab”. In this case, to ensure that the ‘b’ (for byte) is not interpreted as a hex value, use the format “a\xnn” “b”, e.g. “a\x0a” “b”.
Please let me know if there is anything else where I can help you.
Sure Sir,
I want to know the maximum data packet we can send over zigbee from one node to another Node in Apdu Instance ?
Hello,
Sure, please find the following community post that can help you with this information.
Please let me know if there is anything else where I can help you.
Please let me know if i want to send 1kb of file or buffer to any another node which function is suitable for that and do i have to change any flag for this as one maximum packet size is 100-127 byte for single transmission and how can i receive that 1kb of data.
Hello,
In this case if the APDU size is larger than the maximum packet size allowed on the network, in this case the APDU will be broken up into fragments (NPDUs) for transmission, for this is necessary to have enable fragmentation in the ZigBee Network by setting the parameter Maximum Number of Transmitted Simultaneous Fragmented Messages to a non-zero value.
You can find information about this, and how to implement this on the ZigBee 3.0 Stack User Guide (located on the KW41Z documentation).
Please let me know if there is anything else where I can help you.
Hi Sir,
Thanks for the response, I have changed the parameter Maximum Number of Transmitted Simultaneous Fragmented Messages to a non-zero value on both the coordinator side and router side(Rx parameter), again tried to send larger data with the help of function
Hi Sir,
We are using FRDM-KW41Z board and SDK version is latest only, though I had already downloaded SDK_2.2.0 for FRDM-KW41Z board, and already gone through that document (AN12061) but found nothing about data transmission
and also gone through many document but did find any help.
Please let me help regarding data transmission.
Hello,
Thank you for contacting NXP support.
I have the following recommendations:
In the SDK documentation you will find the AN12061 that describe in a more detailed way how to use the examples of the Coordinator and Router. This documentation can be found on the following path sdk_documentation->docs->wireless->ZigBee->ApplicationNotes
Also can you please confirm that you are using the KW41Z-EVK board.
Hi Sr,
I found these functions below which seems helpful for sending data but don't know how to use them and how to initiate the communication.
ZPS_eAplAfApsdeDataReq
ZPS_eAplAfUnicastDataReq
ZPS_eAplAfUnicastIeeeDataReq
ZPS_eAplAfUnicastAckDataReq
ZPS_eAplAfUnicastIeeeAckDataReq
Please let me know how to use them and from where to call them for data transmission.
warm regards
Tushar
Hello,
You can find some documentation that have the description of this functions and also explains how this should be used and how they work.
This information is located inside the SDK documentation inside the ZigBee 3.0 Stack User Guide. On the chapter 7.1.2 Data Transfer Functions you will find each function and how each one works.
Please let me know if there is anything else where I can help you.
Hello,
Yes I found these functions in the documentation, but as we are running coordinator and router application they are command based only few commands are there regarding connection formation nothing about send data or receive data, please let me know how to implement data transmission.
Hello,
Please find the following community post that I think can help you out, with the data transmission on the ZigBee with the KW41Z.
Please let me know if you found useful this information.
Hi Sir,
I have implemented data receive and data send function on both coordinator and router application
void Send_Data(uint8* data,uint8 len){
Hello,
There should not be any problem by using a custom cluster ID, but can you please try with a default cluster ID.
Also I recommend for debug proposes to use an sniffer, do you have a KW41 dongle?
And if you have one please share with me the captures from the sniffer.