nrf51_dfu_linux /

Filename Size Date modified Message
787 B
6.2 KB
Python nrf51822 DFU uploader

Wrapper for bluez gatttool using pexpect to achive DFU 
uploads to the nrf51822 (SDK 5.1.0 and S110 SoftDevice 6.0.0). 

The script does not handle any notifications given by the 
peer as it is strictly not needed for simple uploads.

Inspired by the gatttool wrapping solution by Michael 
Saunby (

* Linux Mint 16 - kernel 3.11.0-12-generic
* bluez - 4.101-0ubuntu8b1

Prerequisite - 
    sudo pip install pexpect
    sudo pip install intelhex

Usage - 
    python -f <hex_file> -a <address>

To figure out the address of DfuTarg do a hcitool lescan -
    $ sudo hcitool -i hci0 lescan
    LE Scan ... 
    CD:E3:4A:47:1C:E4 DfuTarg
    CD:E3:4A:47:1C:E4 (unknown)