Home/Support/Support Forum/What calls xbee_ota_server_cmd()?

What calls xbee_ota_server_cmd()?

0 votes
If you enable OTA upates, what actually calls xbee_ota_server_cmd()? I tried to use References/Project in the IDE to find it, but it says zero references. I'd like to see what actually triggers it to be called, because I have my own triggering mechanism in mind. I suppose what I really want to do is disable the default code from triggering it and then activate the OTA / reset myself.
asked Oct 30, 2014 in XBee Programmable Development by wz2b New to the Community (36 points)

Please log in or register to answer this question.

1 Answer

0 votes
which module is this for and where are you seeing the command in quesiton?
answered Oct 31, 2014 by mvut Veteran of the Digi Community (13,472 points)
It's in the ota_firmware update module under Zigbee.  It's somehow attached to listening to endpoint 0xE8 but I can't find where.  Is this in some library code for which we don't have source in the SDK?
What XBee product are you referring to?
It's an XBee Programmable zigbee unit, so I'm talking about the OTA firmware update component that you can select in code composer.
Have you looked it up in the Help file yet? there is quite a bit of information on it within the help file.
Yeah, there's documentation that explains how it works:
ftp://ftp1.digi.com/support/documentation/html/90001120/appendices/ota_pxbee.html

which is great if you want to use it exactly the way they intended ... but I don't quite.  I have my own sequence I want to use to initiate the process.  That's why I'm just tryiing to find out where the listener for endpoint 0xE8, cluster 0x0011 is defined so that I can replace it.

That's really the root of my question.  I'm not asking how to make OTA programming work.  I'm asking why "Find References" doesn't tell me from where that handler gets invoked.
Cluster ID 11 and End point E8 tells the RF processor to pass the data out the UART of the RF processor to the 2nd processor.
ah okay so that means the HCS09 is already in the bootloader at that point, so what I care about is before that.
Regardless though ... my question still remains and is fairly simple: what function calls xbee_ota_server_cmd()
...