Coder Social home page Coder Social logo

Comments (5)

saty9 avatar saty9 commented on August 22, 2024

fixed by increasing the expected swap time but would be helpful if it gave a clearer/ more consistent error message

from mcumgr-android.

bgiori avatar bgiori commented on August 22, 2024

Hi @saty9,

Thanks for submitting this issue.

io.runtime.mcumgr.exception.McuMgrException: io.runtime.mcumgr.ble.callback.TransactionTimeoutException: Transaction 2 timed out without receiving a response

There are some bugs in the 0.12.0-beta versions (assuming you are using one of those for faster DFU) with a new implementation of the BLE transport layer. As of now I am still working them out, so you may want to switch to 0.11.0 until the non-beta release gets tagged. If 0.11.0 doesn't work for you please let me know .

io.runtime.mcumgr.exception.McuMgrException: UNKNOWN(-5)

This seems a bit problematic, as there is no code -5. I would suppose that some non-standard data is getting received and parsed out. Does this happen often?

fixed by increasing the expected swap time but would be helpful if it gave a clearer/ more consistent error message

For sure, this is a good callout. I can wrap any exceptions received during the reset step in an exception with additional info about the amount of time waited and a message suggesting increasing the swap time. Should be less confusing for developers.

from mcumgr-android.

philips77 avatar philips77 commented on August 22, 2024

-5 error may be coming from here.

from mcumgr-android.

saty9 avatar saty9 commented on August 22, 2024

@bgiori I encountered these errors in 0.11 and tried 0.12 in the hope it would make them go away but they also appeared then too

from mcumgr-android.

bgiori avatar bgiori commented on August 22, 2024

-5 error may be coming from here.

That would make sense. Would be worth cleaning up the error message, via wrapping he exception in a failure rather than using the status as an mcumgr error code.

@bgiori I encountered these errors in 0.11 and tried 0.12 in the hope it would make them go away but they also appeared then too

The TransactionTimeoutException is specific to 0.12.0-beta releases and was caused by a bug in one of the early releases. The bug has since been fixed in the most recent 0.12.0-beta4 release.


My conclusion is that we need better and more consistent exceptions for some error cases with regards to resets during DFU.

from mcumgr-android.

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.