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.

LAUNCHXL-CC1352P: OTA EndPoint

Part Number: LAUNCHXL-CC1352P
Other Parts Discussed in Thread: Z-STACK

Hi All,

I have ported OTA client functionality to the zr_light with ZStack OTA Upgrade document.

I am able to do OTA with the help of OtaServer tool.

But my doubt is OTAClient_SetEndpoint if I Set as 8 then only the OTA is happening successfully. If I Set other than 8 and do image notify OTA is not happening.

Can anyone suggest any idea on this?

Thanks & Regards,

Yasar Arafath

  • I suppose you did something wrong to set OTA endpoint other than 8. Can you elaborate how you revise it?
  • Yasar,

    Why are you changing the endpoint to something different than what the application is using?

    The Z-Stack OTA Upgrade document states to add this "OTAClient_SetEndpoint(SAMPLESW_ENDPOINT);" to your code. What all are you doing differently than the document?
  • Chen & Sean, thanks for the reply.

    Hi Chen,

    The only place I am changing for endpoint is OTAClient_SetEndpoint(ENDPOINT); in zclSampleLight_initialization() .

    Hi Sean,

    In the sdk ota example of switch only the endpoint is mentioned as SAMPLESW_ENDPOINT but in the document it is not mentioned to make the same endpoint for OTA.

    I am changing the endpoint because I saw in sniffer that most of the sensors are doing OTA in endpoint 14. Also I want to know the OTA can happen in any endpoint which is already used for controlling over zigbee?

    Thanks & Regards,

    Yasar Arafath

  • I suppose you should change SAMPLELIGHT_ENDPOINT to the endpoint number you want and call "OTAClient_SetEndpoint(SAMPLELIGHT_ENDPOINT);" in zclSampleLight_initialization().
  • Hi Chen,

    Thanks for the reply.

    Changing SAMPLELIGHT_ENDPOINT to the desired endpoint number and doing OTA is working. But if we do OTAClient_SetEndpoint(ENDPOINT), it is not working.

    This means the endpoint whichever acting as a primary endpoint, in that only the OTA will happen?

    Also another thing I want to clarify is
    Sometimes the OTA process is automatically starting when Image Notify is not done from OtaServer tool. This I observed through Ubiqua Packet sniffer that Query Next Image Request is initiated by the node.

    Thanks & Regards,
    Yasar Arafath

  • The issue is that you only use ENDPOINT in OTAClient_SetEndpoint and still use SAMPLELIGHT_ENDPOINT in other places of application codes.