I'm trying to get DFU to work on my Xamarin iOS project. Has anyone managed to get the library binding of the iOS DFU library with Xamarin iOS?
I'm trying to get DFU to work on my Xamarin iOS project. Has anyone managed to get the library binding of the iOS DFU library with Xamarin iOS?
Hi, I'll check what's possible with our DFU library. Sadly the product management guy is on holyday until next week. Hopefully I'll have some news then.
Update: I've talked to the product manager and we decided to release a Xamarin demo project that includes the required library's for the Nordic DFU. The Nordic DFU library will be free but with limited support.
The library will as told before be based on the Arendi.BleLibrary. This Xamarin component is free for evaluation with the limitation that it only works for 2minutes. For the demo project this will be fine as an update shouldn't take longer than these two minutes.
As counter part I'm using the Nordic SDK 11 running the bootloader example and the ble_app_hrs with DFU support.
I hope that I can publish the demo project with the library's before next week. Probably a blog post would be the best way to do this?
Regards Adrian
@AdrianEggenberger Thanks so much Adrian. Can't wait to see it. If he doesn't mind, can we get via public github to see the source code? Thanks for telling the manager about it.
Hi Adrian,
Thanks a lot for your help!
-- Shay
Hi Folks,
It took some time and I had to do some adaptions but it's working now. I've setup a public Git repository at Bitbucket. The repository includes a Xamarin project for iOS and Android. Feel free to comment and propose changes for upcoming releases.
This repository shows a demo app of the Nordic DFU implementation on Xamarin.
Git: https://bitbucket.org/arendiag/arendi_nordicdfu.git
Web: https://bitbucket.org/arendiag/arendi_nordicdfu/overview
This library provides the implementation of the Nordic DFU. It may be used free but no official support is provided.
The library provides Bluetooth Low Energy support for multiple platforms. It handles all the various API's of the different operating systems and offers a common high level interface for the application.
The BLE library is an official Xamarin component of Arendi AG. The provided version may be used for evaluation, but it has to be licensed for usage in any product.
Without providing a license key the library will block any BLE operation after two minutes.
For more information see: http://ble-library.arendi.ch
This library provides a few basic functions for all of our projects.
The DotNETLibrary is a supporting component of Arendi AG. The provided version may be used for evaluation, but it has to be licensed for usage in any product.
To test the implemention a device with support for the Nordic DFU is required. In the repository a firmware to test the app is included. Attach a PCA10028 developer board to your system and start the "App/Firmware/SDK11/erase_program_unprotected.bat" batch file. This will programm your developper board with a HRS application including a softdevice and bootloader.
Check out a copy of the git repo for the Arendi Nordic DFU app.
Open the solution for iOS or Android with your Visual Studio 2015 incl. Xamarin Support. Rebuild the project an deploy it to your device.
NOTE: Building apps with Xamarin for iOS needs a build server, a apple developer account and development certificates.
After the app started you should press the "select peripheral" button to select the device to update. If the test device is not visible it may have entered the power off state and a reset is required first. If the device is selected the update can be started by pressing "Start Update".
Arendi is a company based in Switzerland.
We provide embedded software for any sized devices:
BLE competence - More about the BLE competence of Arendi you can find in the Brochure BLE competence.
E-Mail: [email protected]
Web: http://www.arendi.ch