Coder Social home page Coder Social logo

Comments (15)

philips77 avatar philips77 commented on May 14, 2024

Check out this issue: NordicSemiconductor/IOS-DFU-Library#8
Maybe adding 1.5 sec fixes the issue.

from ios-nrf-toolbox.

matthewchung74 avatar matthewchung74 commented on May 14, 2024

Thanks @philips77 . to double check, the fix might be apply a 1.5 s delay before calling my equvalient of https://github.com/NordicSemiconductor/IOS-nRF-Toolbox/blob/master/nRF%20Toolbox/DFU/DFUViewController/DFUViewController.m#L132 ?

i'll give that a shot. but what is pretty interesting is i did not have this issue occur with the current version in the app store. is there a delta between the two?

from ios-nrf-toolbox.

philips77 avatar philips77 commented on May 14, 2024

The complete source is available here. The current version from master will be available as 3.0.1 soon, but you'll find a commit with version 3.0. But I see no reason why would such a difference in behavior exists.

from ios-nrf-toolbox.

matthewchung74 avatar matthewchung74 commented on May 14, 2024

Hi @philips77 I'm not 100%, since my failures are intermittent, but I'm trying things with the 1.5 second delay and I 'think' it seems better (as per your suggestion) . Do you have any thoughts as why that would make a difference?

from ios-nrf-toolbox.

philips77 avatar philips77 commented on May 14, 2024

It may be related to the flash operations timings. It depends when do you get this error, just after sending Start DFU command and sizes? Or later. You may ask this question on the DevZone, at nordicsemi.com. Our support team will be much more qualified to speak about the bootloader.

from ios-nrf-toolbox.

mostafaberg avatar mostafaberg commented on May 14, 2024

@foobar8675 Sorry to refresh the old issue, did you get this working ? we have just released v4.0.4 and would like you to try it and see if your issue still reproduces, I'll give it a couple of days before closing this issue since it's been "resolved" for a few months now ๐Ÿ‘ , just feel free to reopen if you still encounter issues later

from ios-nrf-toolbox.

liuyan3176 avatar liuyan3176 commented on May 14, 2024

Sometimes also meet this issue...
And I found the reason is my phone try to re-connect the device nor to update it, so the device is in invalid state.
But I also have a little problem,when I update the device successful(StateCompleted),I have to re-scan the retrieveConnectedArray,wait the device name appear and can be connected.
Does anything matter in my update process?Is there anything method to auto-connect the device after the updating is successful?
Thanks a lot ~

from ios-nrf-toolbox.

philips77 avatar philips77 commented on May 14, 2024

Fyi. If the previous DFU operation failed during uploading and you try to repeat it, the device will be in a state that allows resuming only. Sending Start DFU command will respond with Invalid State. The next retry will succeed.
We don't have resuming implemented in legacy DFU in ios nor Android. However, since 0.6.3(?) Android DFU library will try to reconnect itself if Invalid State error received.

from ios-nrf-toolbox.

mostafaberg avatar mostafaberg commented on May 14, 2024

@liuyan3176 Your issue is different it seems, first of all the library is only responsible for flashing, anything happening after that is up to you as a developer.

regarding the invalid state is that if you disconnect you will have to restart the whole process since we don't support resuming in the Legacy DFU mode.

from ios-nrf-toolbox.

matthewchung74 avatar matthewchung74 commented on May 14, 2024

@mostafaberg we have a delayed timer which seems to fix things but can you share what is different in 4.0.4 that would make this behave better?

from ios-nrf-toolbox.

qszdjj avatar qszdjj commented on May 14, 2024

Version 4.0.4(12). IOS 10 The above all this problem.

from ios-nrf-toolbox.

mostafaberg avatar mostafaberg commented on May 14, 2024

@foobar8675 Can you take a look at today's release and see if there's anything different than what you're doing ?

from ios-nrf-toolbox.

matthewchung74 avatar matthewchung74 commented on May 14, 2024

Hi, I'm not working on this project anymore, but am cc'ing a couple people
who are.

On Tue, Oct 4, 2016 at 9:48 AM, Mostafa Torbjรธrn Berg <
[email protected]> wrote:

@foobar8675 https://github.com/foobar8675 Can you take a look at today's
release
https://github.com/NordicSemiconductor/IOS-nRF-Toolbox/releases/tag/4.1.0
and see if there's anything different than what you're doing ?

โ€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#17 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABm4xPIW23334nZE-a4cGLludt_LLBqcks5qwoNrgaJpZM4INF7o
.

Regards,
Matt

from ios-nrf-toolbox.

mostafaberg avatar mostafaberg commented on May 14, 2024

that's great, keep us posted, if we don't hear back in a couple of days we'll assume issue is resolved, you can ask the new person responsible to re-open a new issue if the bug is still there

from ios-nrf-toolbox.

mostafaberg avatar mostafaberg commented on May 14, 2024

Issue resolved ? :)

from ios-nrf-toolbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.