-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
32 lines (21 loc) · 787 Bytes
/
README
File metadata and controls
32 lines (21 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 (https://github.com/msaunby/ble-sensor-pi).
System:
* Linux Mint 16 - kernel 3.11.0-12-generic
* bluez - 4.101-0ubuntu8b1
Prerequisite -
sudo pip install pexpect
sudo pip install intelhex
Usage -
python dfu.py -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)