DFU application allows to flash new firmware on the DK. The process has three steps:
Settings screen allows to change the DFU library parameters used for uploading firmawre.
For Cocoapods:
target 'YourAppTargetName' do
use_frameworks!
pod 'iOSDFULibrary'
end
pod install
Open the newly created .xcworkspace
Import the library to any of your classes by using import NordicDFU
and begin working on your project
For Carthage:
github "NordicSemiconductor/IOS-DFU-Library" ~> x.y // Replace x.y with your required version
carthage update --use-xcframeworks --platform iOS // other supported platforms: macOS, tvOS, watchOS
For Swift Package Manager:
// swift-tools-version:5.6
import PackageDescription
let package = Package(
name: "<Your Product Name>",
dependencies: [
.package(
url: "https://github.com/NordicSemiconductor/IOS-DFU-Library",
.upToNextMajor(from: "<Desired Version>")
)
],
targets: [.target(name: "<Your Target Name>", dependencies: ["NordicDFU"])]
)
The nRF5x Series chips are flash-based SoCs, and as such they represent the most flexible solution available. A key feature of the nRF5x Series and their associated software architecture and S-Series SoftDevices is the possibility for Over-The-Air Device Firmware Upgrade (OTA-DFU). See Figure 1. OTA-DFU allows firmware upgrades to be issued and downloaded to products in the field via the cloud and so enables OEMs to fix bugs and introduce new features to products that are already out on the market. This brings added security and flexibility to product development when using the nRF5x Series SoCs.
This repository contains a tested library for iOS 8+ platform which may be used to perform Device Firmware Update on the nRF5x device using an iPhone or an iPad.
DFU library has been designed to make it very easy to include these devices into your application. It is compatible with all Bootloader/DFU versions.
In order the DFU to work with iOS, the target device MUST have the Service Changed characteristic with Indicate property in the Generic Attribute service. Without this characteristic iOS will assume that services of this device will never change and will not invalidate them after switching to DFU bootloader mode.
See the documentation for more information.
The library is compatible with nRF51 and nRF52 devices with S-Series Soft Device and the DFU Bootloader flashed on.
This library is fully backwards compatible and supports both the new and legacy DFU. The experimental buttonless DFU service from SDK 12 is supported since version 1.1.0. Due to the fact, that this experimental service from SDK 12 is not safe, you have to set enableUnsafeExperimentalButtonlessServiceInSecureDfu to true to enable it, this is off by default. Read the method documentation for details. It is recommended to use the Buttonless service from SDK 13 (for non-bonded devices, or 14 for bonded). Both are supported since DFU Library 1.3.0.
Check platform folders for mode details about compatibility for each library.
An unofficial library for both iOS and Android that is based on this library is available for React Native: react-native-nordic-dfu
A library for both iOS and Android that is based on this library is available for Flutter: nordic_dfu
Simple binding library for iOS is available on nuget: Laerdal.Dfu
link |
Stars: 490 |
Last commit: 2 days ago |
iOSDFULibrary
to NordicDFU
to match one used in SPM. The Pod name has not changed. Migrate by replacing:
import iOSDFULibrary
to:
import NordicDFU
Full Changelog: https://github.com/NordicSemiconductor/IOS-DFU-Library/compare/4.13.0...4.14.0
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics