digidotcom / xbee-python

Python library to interact with Digi International's XBee radio frequency modules.
Mozilla Public License 2.0
183 stars 93 forks source link

OTA Failure #287

Open mateusz- opened 1 year ago

mateusz- commented 1 year ago

Hello,

I am using this library to perform an OTA update on my company's product. I started off with the RemoteFirmwareUpdateSample.py. During the update, I see the following output:

Starting firmware update process... Preparing for update: 0% Preparing for update: 33% Preparing for update: 66% Preparing for update: 100% Updating remote XBee firmware: 0% Updating remote XBee firmware: 1% .... Updating remote XBee firmware: 99% Updating remote XBee firmware: 100% Could not initialize remote device: TX failure Could not initialize remote device: TX failure Could not initialize remote device: TX failure Could not initialize remote device: TX failure Could not initialize remote device: TX failure Could not initialize remote device: TX failure Could not initialize remote device: TX failure Could not initialize remote device: TX failure Could not initialize remote device: TX failure Could not initialize remote device: TX failure Could not initialize remote device: TX failure ERROR: Timeout communicating with target device after the firmware update Error reading new target information: Timeout communicating with target device after the firmware update Restoring after update: 0% Restoring after update: 50% Restoring after update: 100% Error: Error reading new target information: Timeout communicating with target device after the firmware update: 100% ERROR: Error reading new target information: Timeout communicating with target device after the firmware update

I abbreviated some output above with "...". I verified the firmware update actually succeeded by using the VR command. In the output above, I updated from the "XBP9X_9004.ebin" to "XBP9X_9009.ebin", which I obtained from XCTU's installation. My product is using the XBee SX module. ATVR, ATHV and ATHS return the following:

ATVR: 9009 ATHV: 3146 ATHS: A00

I obtained the XBee Python library from pip. The version I am using is 1.4.1.