GithubHelp home page GithubHelp logo

Comments (7)

philips77 avatar philips77 commented on August 22, 2024

Hi, I think it may be related with PRNs. A bug in Android causing the outgoing buffer to overflow has been fixed in Android 6, so I disabled the PRNs by default on 6+, but it looks like Nexus 5X is not working properly. There is another issue regarding this here.
I'll debug it today and release a new version.
For now, as a workaround, you may set the SharedPreferences value related to it to "12" (String), and anther value to enable it. Check BaseCustomDfuImpl constructor for details.

from android-dfu-library.

LucasLeung1024 avatar LucasLeung1024 commented on August 22, 2024

OK.Thanks for your attention about this issue.

from android-dfu-library.

philips77 avatar philips77 commented on August 22, 2024

Hi, Ive just tested it on Nexus 5X with Android 7.0 (NRD90S), security patch from 6 Sep 2016, and it managed to send the fw correctly.
I was sending the HRM_DFU sample from SDK 8 using Legacy DFU (the ble_app_hrm_dfu_s110_v8_0_0_sdk_v9_0.zip file from sdcard/Nordic Semiconductor/Board/pca10028/..).
The application bin is 20.85 KB.

from android-dfu-library.

philips77 avatar philips77 commented on August 22, 2024

I've just release version 1.0.4. It shouldn't change the behaviour you experience (I couldn't replicate it on my Nexus 5X). However, it adds new methods to DfuServiceInitiator. Using setPacketReceiptNotificationsEnabled(boolean) method you force enabling PRN notifications. This should help, I suppose.

from android-dfu-library.

LucasLeung1024 avatar LucasLeung1024 commented on August 22, 2024

thanks,So what I need is add the method of setPacketReceiptNotificationsEnabled(boolean) to block the PRNs? I will test my application today to check the performance.

from android-dfu-library.

LucasLeung1024 avatar LucasLeung1024 commented on August 22, 2024

It's seems ok, It's not happened again.Thanks

from android-dfu-library.

philips77 avatar philips77 commented on August 22, 2024

Great, closing issue.

from android-dfu-library.

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.