This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2538: zigbee afIncomingMSGPacket_t not giving endpoint

Part Number: CC2538


hello,


If i read endpoint from afIncomingMSGPacket_t structure as below

afIncomingMSGPacket_t *MSG_packet;

case DEV_ROUTER:

MSG_packet->endPoint;

break;

Not able to get my coordinator endpoint when my device gets added in the network.

Please let me know if anything wrong here.

Thank you.

  • Couldn’t understand your question well? Can you elaborate what you want to achieve?
  • I want to get coordinator endpoint using afIncomingMSGPacket_t when my device gets connected in network.

    for now when i send ON command from server
    My device zclonoffCB function is execuited.
    Inside my zclonoffCB function i have written below code to get coordinator primary end point

    afIncomingMSGPacket_t *pPtr = zcl_getRawAFMsg();

    Here if i debug and monitor pPtr variable i can see
    scrAddr->endPoint giving me the primary endpoint of coordinator and
    scrAddr->panId giving me pan id of coordinator.

    I want to achieve same thing when my device joins the network, is there any callback that is called immediately my device joins the network so i need not wait for user to send ON from server and then proceed further.
  • This is incorrect way to get active endpoint. I suppose you should call ZDP_ActiveEPIFReq from your device to request active endpoint from coordinator.
  • Not only end point, basically i want to know details like pan id, endpoint etc of the coordinator once my device connects in its network. I would prefer to have a callback for this or is there any better solution.
  • There’s no callback to get PANID. You can get PANID from global structure _NIB on device side.