Skip to content

Instantly share code, notes, and snippets.

@tralamazza
Last active August 25, 2017 16:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tralamazza/8834c7665ebf559809d87368fc454ce8 to your computer and use it in GitHub Desktop.
Save tralamazza/8834c7665ebf559809d87368fc454ce8 to your computer and use it in GitHub Desktop.
[How-to] wireshark nordic BTLE plugin

sniffer firmware

  • Download and extract the latest Sniffer firmware

  • Flash the .hex file found in the /Firmware:

      $> JLinkExe -if SWD -device nrf51
      h
      w4 0x4001e504, 0x2
      w4 0x4001e50c, 0x1
      loadbin ble-sniffer_nRF51822_1.0.1_1111_Sniffer.hex, 0
      r
      g
    

build wireshark 1.12

note: On archlinux you need to setup a python2 env.

curl https://2.na.dl.wireshark.org/src/wireshark-1.12.12.tar.bz2 | tar x
cd wireshark-1.12.12
./autogen.sh
./configure --without-lua --without-qt --with-gtk3=yes --enable-shared=yes
make
make install 

build nordic_ble plugin

git clone git@github.com:ambrice/nordic_ble.git
cd nordic_ble
mkdir build
cd build
cmake -DWIRESHARK_INCLUDE_DIRS=../wireshark-1.12.12 ..
make
make install

install&run adafruit ble sniffer python

git clone git@github.com:adafruit/Adafruit_BLESniffer_Python.git
cd Adafruit_BLESniffer_Python
python2 sniffer.py /dev/ttyACM0

launch wireshark

wireshark-gtk -Y btle -k -i logs/ble.pipe
@theadib
Copy link

theadib commented Oct 10, 2016

does it work with Wireshark 2.x? Thx, Adib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment