zsmartsystems / com.zsmartsystems.zigbee

ZigBee Cluster Library Java framework supporting multiple dongles
Eclipse Public License 1.0
143 stars 88 forks source link

TelegesisFirmwareUpdateHandler fails very often on slow machines #1261

Closed TomTravaglino closed 3 years ago

TomTravaglino commented 3 years ago

This is the same problem as with the Ember dongle in #1254

These are some logs

2021-09-09T09:51:30.227+0200  157 DEBUG [TelegesisFirmwareUpdateHandler,com.zsmartsystems.zigbee.dongle.telegesis.internal.TelegesisFirmwareUpdateHandler] Telegesis bootloader: Starting.
2021-09-09T09:51:31.747+0200  157 DEBUG [TelegesisFirmwareUpdateHandler,com.zsmartsystems.zigbee.dongle.telegesis.internal.TelegesisFirmwareUpdateHandler] Telegesis bootloader: Serial port opened.
2021-09-09T09:51:33.267+0200  157 DEBUG [TelegesisFirmwareUpdateHandler,com.zsmartsystems.zigbee.dongle.telegesis.internal.TelegesisFirmwareUpdateHandler] Telegesis bootloader: Got bootloader prompt.
2021-09-09T09:51:34.777+0200  158 DEBUG [TelegesisFirmwareUpdateHandler,com.xxx.binding.zigbee.telegesis.handler.TelegesisHandler] Telegesis dongle firmware status: FIRMWARE_TRANSFER_STARTED
2021-09-09T09:51:34.797+0200  157 DEBUG [TelegesisFirmwareUpdateHandler,com.zsmartsystems.zigbee.dongle.telegesis.internal.TelegesisFirmwareUpdateHandler] Telegesis bootloader: Clearing input stream...
2021-09-09T09:51:34.807+0200  157 DEBUG [TelegesisFirmwareUpdateHandler,com.zsmartsystems.zigbee.dongle.telegesis.internal.TelegesisFirmwareUpdateHandler] Telegesis bootloader: Starting transfer.
2021-09-09T09:51:34.807+0200  157 DEBUG [TelegesisFirmwareUpdateHandler,com.zsmartsystems.zigbee.dongle.telegesis.internal.TelegesisFirmwareUpdateHandler] Telegesis bootloader: Transfer frame 1, attempt 0.
2021-09-09T09:51:34.827+0200   49 DEBUG [cpool-100: com.xxx.smarthome,org.eclipse.smarthome.core.thing.firmware.FirmwareUpdateProgressInfoEvent] The firmware update progress for thing zigbee:coordinator_telegesis:05001B25 changed. Step: TRANSFERRING Progress: null.
2021-09-09T09:51:36.427+0200  157 DEBUG [TelegesisFirmwareUpdateHandler,com.zsmartsystems.zigbee.dongle.telegesis.internal.TelegesisFirmwareUpdateHandler] Telegesis bootloader: Transfer frame 1, attempt 1.
2021-09-09T09:51:36.477+0200  157 DEBUG [TelegesisFirmwareUpdateHandler,com.zsmartsystems.zigbee.dongle.telegesis.internal.TelegesisFirmwareUpdateHandler] Telegesis bootloader: Transfer frame 1, attempt 2.
2021-09-09T09:51:36.517+0200  157 DEBUG [TelegesisFirmwareUpdateHandler,com.zsmartsystems.zigbee.dongle.telegesis.internal.TelegesisFirmwareUpdateHandler] Telegesis bootloader: Transfer frame 1, attempt 3.
2021-09-09T09:51:36.547+0200  157 DEBUG [TelegesisFirmwareUpdateHandler,com.zsmartsystems.zigbee.dongle.telegesis.internal.TelegesisFirmwareUpdateHandler] Telegesis bootloader: Transfer frame 1, attempt 4.
2021-09-09T09:51:36.577+0200  157 DEBUG [TelegesisFirmwareUpdateHandler,com.zsmartsystems.zigbee.dongle.telegesis.internal.TelegesisFirmwareUpdateHandler] Telegesis bootloader: Transfer frame 1, attempt 5.
2021-09-09T09:51:36.627+0200  157 DEBUG [TelegesisFirmwareUpdateHandler,com.zsmartsystems.zigbee.dongle.telegesis.internal.TelegesisFirmwareUpdateHandler] Telegesis bootloader: Transfer frame 1, attempt 6.
2021-09-09T09:51:36.687+0200  157 DEBUG [TelegesisFirmwareUpdateHandler,com.zsmartsystems.zigbee.dongle.telegesis.internal.TelegesisFirmwareUpdateHandler] Telegesis bootloader: Transfer frame 1, attempt 7.
2021-09-09T09:51:36.767+0200  157 DEBUG [TelegesisFirmwareUpdateHandler,com.zsmartsystems.zigbee.dongle.telegesis.internal.TelegesisFirmwareUpdateHandler] Telegesis bootloader: Transfer frame 1, attempt 8.
2021-09-09T09:51:36.837+0200  157 DEBUG [TelegesisFirmwareUpdateHandler,com.zsmartsystems.zigbee.dongle.telegesis.internal.TelegesisFirmwareUpdateHandler] Telegesis bootloader: Transfer frame 1, attempt 9.
2021-09-09T09:51:36.877+0200  157 DEBUG [TelegesisFirmwareUpdateHandler,com.zsmartsystems.zigbee.dongle.telegesis.internal.TelegesisFirmwareUpdateHandler] Telegesis bootloader: Transfer frame 1, attempt 10.
2021-09-09T09:51:36.917+0200  157 DEBUG [TelegesisFirmwareUpdateHandler,com.zsmartsystems.zigbee.dongle.telegesis.internal.TelegesisFirmwareUpdateHandler] Telegesis bootloader: Transfer frame 1, attempt 11.
2021-09-09T09:51:36.977+0200  158 DEBUG [TelegesisFirmwareUpdateHandler,com.xxx.binding.zigbee.telegesis.handler.TelegesisHandler] Telegesis dongle firmware status: FIRMWARE_UPDATE_FAILED

Here the main changes made to fix it (same as described for Ember in #1254):

I will create a PR for it.