Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

(feature-request): Make PacketsReceiptNotificationsValue configurable #5

Closed
alfabetagama opened this issue Sep 5, 2020 · 6 comments
Labels
android Relates to Android platform bug A confirmed bug feature request A new feature, enhancement, or improvement investigate Further information is requested ios Relates to the iOS Platform

Comments

@alfabetagama
Copy link

alfabetagama commented Sep 5, 2020

PacketsReceiptNotificationsValue is currently hardcoded at 10 in:

.setPacketsReceiptNotificationsValue(10)

and

initiator.packetReceiptNotificationParameter = 10

We have some devices that need this set to 1, so we propose that PacketsReceiptNotificationsValue is set via:

DfuUpdate.updateFirmware = function (resultCallback, errorCallback, fileURL, deviceIdentifier) {

as additional parameter:

DfuUpdate.updateFirmware = function (resultCallback, errorCallback, fileURL, deviceIdentifier, packetReceiptNotificationsValue)

@EinfachHans
Copy link
Owner

Can you explain me more about what this Parameter means? I developed/forked this Plugin to work with our current environment and want to understand this change

@EinfachHans EinfachHans added awaiting response If no response, issue will be closed Edit feature request A new feature, enhancement, or improvement and removed triage labels Sep 5, 2020
@alfabetagama
Copy link
Author

alfabetagama commented Sep 5, 2020

Thanks for quick response. Here is link to documentation:

https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v11.0.0%2Fbledfu_transport_bleservice.html

And description:

Number of PacketsInformation: Parameter value for the Packet Receipt Notification Request Op Code C1 uint16 Number of packets of firmware data to be received by the DFU target before sending a new Packet Receipt Notification (control point notification with Op Code = 7). If this value is 0, the packet receipt notification will be disabled by the DFU target.

@EinfachHans
Copy link
Owner

Ok thank you. I will look into this and release a update the next days!

@EinfachHans EinfachHans added investigate Further information is requested bug A confirmed bug ios Relates to the iOS Platform and removed awaiting response If no response, issue will be closed Edit labels Sep 5, 2020
@alfabetagama
Copy link
Author

@EinfachHans thanks, looking forward to it.

@EinfachHans EinfachHans added the android Relates to Android platform label Sep 6, 2020
@EinfachHans
Copy link
Owner

Just released Version 1.3.0, which includes the availability to set an extra Option: packetReceiptNotificationsValue
Please notice that this is a Breaking Change as the Options are now all included into a JSON (See Usage)

Thanks for using 😊 If you have time would be great if you can like my PR to Include a Ionic Wrapper for this Plugin here

@alfabetagama
Copy link
Author

Thanks. Great work! I will try to test it on android today.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
android Relates to Android platform bug A confirmed bug feature request A new feature, enhancement, or improvement investigate Further information is requested ios Relates to the iOS Platform
Projects
None yet
Development

No branches or pull requests

2 participants