开源软件名称(OpenSource Name):NordicSemiconductor/IOS-DFU-Library开源软件地址(OpenSource Url):https://github.com/NordicSemiconductor/IOS-DFU-Library开源编程语言(OpenSource Language):Swift 95.0%开源软件介绍(OpenSource Introduction):Device Firmware Update applicationDFU 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. iOS DFU LibraryInstallationFor Cocoapods:
target 'YourAppTargetName' do
use_frameworks!
pod 'iOSDFULibrary'
end
pod install
For Carthage:
carthage update --platform iOS //also OSX platform is available for macOS builds
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, e.g. 4.13.0>")
)
],
targets: [.target(name: "<Your Target Name>", dependencies: ["NordicDFU"])]
) Device Firmware Update (DFU)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. Service Changed characteristicIn 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. Service Changed characteristic behaviour:
Secure DFU from SDK 12:
Secure DFU from SDK 14:
DocumentationSee the documentation for more information. RequirementsThe library is compatible with nRF51 and nRF52 devices with S-Series Soft Device and the DFU Bootloader flashed on. DFU HistoryLegacy DFU
Secure DFU
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. Other frameworksReact NativeAn unofficial library for both iOS and Android that is based on this library is available for React Native: react-native-nordic-dfu FlutterA library for both iOS and Android that is based on this library is available for Flutter: flutter-nordic-dfu XamarinSimple binding library for iOS is available on nuget: Laerdal.Xamarin.Dfu.iOS Resources
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论