AnsweredAssumed Answered

Simple Data transfer

Question asked by David Ashraf on Feb 26, 2017
Latest reply on Nov 18, 2017 by Dheeraj Sawant

I am new to Zigbee and I've been trying simple data transfer between two JN5168-001-M00 modules , using Zigbee 3.0 ( JN-SW- 4170 ) and Application Note AN 1229.
The destination get notified correctly when a message arrives , yet I couldn't read the payload successfully.

 

on the SED node
PDUM_thAPduInstance myInstance =PDUM_hAPduAllocateAPduInstance(apduMyData);
PDUM_u16APduInstanceWriteNBO(myInstance,0,"b",5);
ZPS_teStatus myStatus= ZPS_eAplAfBroadcastDataReq(myInstance,1234,1,255,ZPS_E_BROADCAST_ZC_ZR,ZPS_E_APL_AF_UNSECURE,0,NULL);

 


on the coordinator endpoint
uint8 u8Payload;
PDUM_u16APduInstanceReadNBO(sStackEvent.uEvent.sApsDataIndEvent.hAPduInst,0,'b',&u8Payload);


whatever the message I try at the SED node , when I check the payload of the coming message it gives 0.

Any one can help ? 
Thanks in advance .

Outcomes