Quantcast
Viewing all articles
Browse latest Browse all 262198

CC2530: ZNP project added OTA server feature but don't work correctly

Part Number:CC2530

I added OTA server feature upon ZNP project,but zclOTA_HdlIncoming callback function can't be call on OTA server side. Z-Stack 3.0 ZNP project.

zcl_registerPlugin ( ZCL_CLUSTER_ID_OTA,ZCL_CLUSTER_ID_OTA,zclOTA_HdlIncoming );

This is my following steps:

1. add zclOTA_Init( taskID++ ); at last of osalInitTasks() func;

2. add zclOTA_event_loop events callback at last tasksArr arrary;

3. add Preprocessor MT_OTA_FUNC OTA_SERVER=TRUE OTA_HA in ZNP project options per line;

  zcl_registerPlugin ( ZCL_CLUSTER_ID_OTA,
                       ZCL_CLUSTER_ID_OTA,
                       zclOTA_HdlIncoming );

4. But zclOTA_HdlIncoming callback function can't be call when other OTA client sent a "Query Next Image Request" to ZNP(coordinator mode),what's wrong with me?following image is Ubiqua sniffer capture log:

Image may be NSFW.
Clik here to view.

5. The following image is IAR workbench step through when OTA client(0xF033) sent image request to ZNP(0x0000):

Image may be NSFW.
Clik here to view.


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>