flipperdevices / Flipper-iOS-App

iOS Mobile App to rule all Flipper's family
https://forum.flipperzero.one/c/mobile/14
MIT License
716 stars 93 forks source link

Uploading firmware to Flipper stops randomly #173

Closed krupers closed 11 months ago

krupers commented 1 year ago

07_27_00 05-08-2023.txt 01_07_32 05-08-2023.txt 00_58_17 05-08-2023.txt 00_39_12 05-08-2023.txt 01_08_25 05-08-2023.txt

Describe the bug.

With latest releases update 0.88.0 I am encountering an issue with update. I am using a mobile app and usually it takes 5-10 minutes to update the firmware. With 0.88.0 I am trying to update and it pauses on different moments of percentage progress. I tried to reboot the Flipper OS, the app, abandon Sync, and it always stops at random progress.

Reproduction

  1. Reboot the Flipper OS
  2. Start the Flipper app (iOS)
  3. Wait for Flipper to be connected and synced
  4. Click on update button to upgrade from 0.87.0 to 0.88.0

Target

Flipper zero update

Logs

No response

Anything else?

Tried this multiple times and maximum progress bar reached was 43%

krupers commented 1 year ago

Okay, I have found a solution, I think. I have noticed that after previous update my PIN disappeared and I was forced to create new one again. Then I charged flipper battery and then everything was okay. Now I have latest firmware. But this is strange.

doomwastaken commented 1 year ago

Could you provide version of iOS app, so we could try and reproduce it? We've tested with latest iOS app during release

krupers commented 1 year ago

Sure, my phone is iPhone 14 Pro Max (iOS 16.6) with installed latest Flipper App (v1.6.4). Always when I am having an old App it automatically notices me about the update.

doomwastaken commented 1 year ago

Alright, thank you for details. We will try to experiment with locking the device

skotopes commented 1 year ago

Next time you see this issue please try changing Settings->System->Sleep Method to legacy

krupers commented 1 year ago

Hey, thank you for the tip. Unfortunately I already have this mode enabled, because of that Core error we all having last time :( So this mode is not helping. Maybe should I disable it then?

skotopes commented 1 year ago

@krupers some logs from the device will help

krupers commented 1 year ago

@skotopes All the logs from the moment I have tried to update were attached to the first post. I hope they will help

skotopes commented 1 year ago

Logs says that data was transferred till the last moment before disconnect. Let's move this issue to appropriate github repo for further debug.

skotopes commented 1 year ago

@tonyfreeman can you take a look?

tonyfreeman commented 1 year ago

Can't see anything useful, it just loses connection for some reason. @krupers have you faced this issue since? We need debug logs from device.

tonyfreeman commented 11 months ago

This might be related to the UI issue when an update is happening but the progress bar is not responsive. Should be fixed in latest testflight release. Feel free to reopen if it's not.