Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transaction 122 timed out without receiving a response #18

Closed
cyberwaelder1 opened this issue Oct 27, 2021 · 3 comments
Closed

Transaction 122 timed out without receiving a response #18

cyberwaelder1 opened this issue Oct 27, 2021 · 3 comments

Comments

@cyberwaelder1
Copy link

cyberwaelder1 commented Oct 27, 2021

Hello,

I am trying to perform an update.

         val settings = ScanSettings.Builder()
                .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY)
                .setLegacy(false)
                .setReportDelay(500)
                .setUseHardwareBatchingIfSupported(false)
                .build()

            val scanner = BluetoothLeScannerCompat.getScanner()
            scanner.startScan(null, settings, scanCallback)

then I receive always:

I/BLE: onUploadProgressChanged 1635374864707: 13269/285440
W/System.err: io.runtime.mcumgr.exception.McuMgrException: io.runtime.mcumgr.ble.callback.TransactionTimeoutException: Transaction 122 timed out without receiving a response
W/System.err:     at io.runtime.mcumgr.ble.McuMgrBleTransport$2.onFailure(McuMgrBleTransport.java:346)
W/System.err:     at io.runtime.mcumgr.ble.callback.SmpProtocolSessionKt.onFailure$lambda-2(SmpProtocolSession.kt:154)
W/System.err:     at io.runtime.mcumgr.ble.callback.SmpProtocolSessionKt.$r8$lambda$7L6qCCwSP_thKdWCrsPHc5-FQUM(Unknown Source:0)
W/System.err:     at io.runtime.mcumgr.ble.callback.SmpProtocolSessionKt$$ExternalSyntheticLambda0.run(Unknown Source:4)
W/System.err:     at android.os.Handler.handleCallback(Handler.java:938)
W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err:     at android.os.Looper.loop(Looper.java:223)
W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:7700)
W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
W/System.err:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)
W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:997)
W/System.err: Caused by: io.runtime.mcumgr.ble.callback.TransactionTimeoutException: Transaction 122 timed out without receiving a response
W/System.err:     at io.runtime.mcumgr.ble.callback.SmpProtocolSession$writer$2$1.invokeSuspend(SmpProtocolSession.kt:102)
W/System.err:     at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
W/System.err:     at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
W/System.err:     at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
W/System.err:     at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
W/System.err:     at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
W/System.err:     at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

Its working with the sample. What will cause this Exception?

@philips77
Copy link
Member

philips77 commented Nov 2, 2021

Your code snippet is not related. Please paste how you start the dfu process and which version of the library are you using.

I think the timeout may occur if the device is busy, for example erasing the flash memory. Hand a look at

@lukasbrchl
Copy link

Hi @cyberwaelder1, did you solve this issue? We have the same problem and tried to document it more thoroughly in #58.

@philips77 could you advise please?

@philips77
Copy link
Member

Sure, let's continue in the other issue.

@philips77 philips77 closed this as not planned Won't fix, can't repro, duplicate, stale May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants