This repository contains a simple python script that can patch any .hex image with a patch file.
It is being used to patch Nordic's BLE Sniffer firmware to enable LDO-only nRF52840 boards to work with it.
Currently, only sniffer_nrf52840dongle_nrf52840_4.1.1.hex firmware is supported, mostly targeting the Holyiot 22046 dongle (but should work with any nRF52840 board that exposes its USB).
- Download / clone this repository
- Download the sniffer firmware from Nordic's website.
- Copy the
sniffer_nrf52840dongle_nrf52840_4.1.1.hexfile to the directory where you downloaded / cloned this repository. - Run the patcher:
$ python patch.py sniffer_nrf52840dongle_nrf52840_4.1.1.patch sniffer_nrf52840dongle_nrf52840_4.1.1.hex patched_sniffer.hex - Flash the
patched_sniffer.hexwith Nordic's nRF Connect for Desktop (Programmer App)- For Holyiot 22046 dongle, you can enter bootloader mode by holding its button for a couple seconds.
- Install Wireshark
- Copy the
extcapfolder from the Nordic'snrf_sniffer_for_bluetooth_le_4.1.1.zipyou downloaded to the folder where Wireshark was installed (if asked, allow for files to be overwritten and folders to be merged)- On Windows it is installed by default at:
C:\Program Files\Wireshark
- On Windows it is installed by default at:
- Copy the
Profile_nRF_Sniffer_Bluetooth_LEfolder from the zip to the Wiresharkprofilesfolder- On Windows it would be:
C:\Program Files\Wireshark\profiles
- On Windows it would be:
- Open Wireshark and change the profile (At the bottom right of the window) to the nRF one.
- Double click the nRF Sniffer on the capture list and you should start to see packets being sniffed.
- You can find more information at Nordic's infocenter.