Upload not always completed
dingari opened this issue · comments
Daníel Grétarsson commented
It seems like upload procedure is somewhat dependent on the file size. In some cases it finishes without sending all the packets. Example output:
(60,3 kB file - FAIL)
Progress: |xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx| 99.8% Complete (60200 of 60300 bytes)
(60,796 kB - FAIL)
Progress: |xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx| 99.8% Complete (60700 of 60796 bytes)
(60,308 kB file - SUCCESS)
Progress: |xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx| 100.0% Complete (60300 of 60308 bytes)
(60,348 kB file - SUCCESS)
Progress: |xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx| 99.9% Complete (60300 of 60348 bytes)
The former stays in DFU mode, the latter restarts into application.
Note: The progress update is relying on the packet notification receipt, so it does not update for the last 1-5 packets (thus 60300 of 60308 is normal).