How to update Movesense sensor firmware

The Movesense sensor can be updated with the process called DFU (="Device Firmware Update"). The update process takes a "DFU package", which contains all the relevant data, and sends it to the Movesense sensor for

The easiest way to update your Movesense sensor is to use either iOS or Android Showcase App. You can download the installation package for Android from https://bitbucket.org/movesense/movesense-mobile-lib/downloads/. For iOS, the Movesense Showcase App is available in AppStore.

The update process puts the sensor into a "DFU mode" which is recognized with the constantly lit LED. When the sensor is in the DFU mode it advertises with name "DfuTarg", the firmware can be updated with Showcase app or using Nordic Semiconductors "nRF Connect" application. The device also stays in the DFU mode if the update process was stopped in the middle or the sensor doesn't have a valid application for some reason.

Tutorial Videos

Detailed videos on how the firmware update is performed, can be seen in our Youtube channel:

Preparing your DFU package

There are two ways of getting a DFU package:

  1. Choose one from our selection of pre-built sample firmware.
  2. Build your own application and prepare dfu package. See the build commands here.

Transfer your zip DFU package to the mobile phone and run Showcase app.

NOTE: There are two different DFU packages available: The bigger one is marked _w_bootloader in the name and it contains also the BLE stack (Softdevice) and the bootloader. That version must be used if the bootloader needs to be updated between the two versions (e.g. updating from 1.9.x to 2.x).

Update using iOS Showcase app

Update using Android Showcase app

Note: It is a good idea to kill Android Showcase app before and after DFU process. It is known that sometimes the app goes in a non-connecting state.

DFU Recovery Mode

There could be situation that build package contains faulty application (it can happen during development process of new application). For those situations there is a mechanism to put Movesense into DFU mode manually:

  1. Remove battery
  2. Short circuit AFE pins (studs) and keep them connected (touch with fingers or use some other method)
  3. Insert battery and make sure not let it disconnect again
  4. The LED will stay lit for a few seconds and then start blinking
  5. As soon as led starts blinking, immediately release AFE pins to enter DFU mode (less than 1 second period)

When the Movesense device has entered DFU mode it will be visible as "DfuTarg" with different BT-MAC address.