How to send Coordinator data to SED

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to send Coordinator data to SED

1,226 Views
logum4
Contributor I

Hello Sir,

             I am using NXP JN5168-001-M00 module, application Note-JN-AN-1229-ZBPro-Application-Template-v1002.

I can send SED data to Coordinator. but i need to send coordinator data also to sed when sed's wakeup. Coordinator data received in SED some time only, that i mentioned below details. 
1. power on SED device ( Initial time) - Data received success 
PRIVATE void vHandleStackEvent(ZPS_tsAfEvent sStackEvent) ----------- app_coordinator.c
           

 case ZPS_EVENT_APS_DATA_INDICATION:
            {
            DBG_vPrintf(TRACE_APP, "APP: vCheckStackEvent: ZPS_EVENT_AF_DATA_INDICATION\n"); 

                PDUM_eAPduFreeAPduInstance(sStackEvent.uEvent.sApsDataIndEvent.hAPduInst);

                APP_vSendPayload_Ucast(tempbuf,6,Clust_ID, Des_Address);     ------- >  coordinator data to sed  function

}
2. After received  SED's data, every time I am sending coordinator data to SED, i got success ack in coordinator but i never received that data in SED. 
void APP_vtaskMyEndPoint (void)   ----- app_endpoint.c
 
case ZPS_EVENT_APS_DATA_INDICATION:
            {

    u16bytesread = PDUM_u16APduInstanceReadNBO(sStackEvent.uEvent.sApsDataIndEvent.hAPduInst, 0, "bbbbbbbbbbbbbbbbbbbbbbbbbbb",&payload);

                  DBG_vPrintf(TRACE_TRUE, "Read: %d, DATA : %x \r\n", u16bytesread,u8TempPayload);
                  PDUM_eAPduFreeAPduInstance(sStackEvent.uEvent.sApsDataIndEvent.hAPduInst);

                APP_vSendPayload_Ucast(tempbuf,6,Clust_ID, Des_Address);     ------- >  after received my sed data, i am sending coordinator data to sed function
}
Thanks & regards,
 Logan 
0 Kudos
Reply
1 Reply

1,176 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Loganathan,

Did you try to send this data when you received the data request from the SED?

Could you please provide your sniffer log?

The SED device needs the Pending internal flag when the coordinator wants to send some data.

Regards,

Mario 

0 Kudos
Reply