BLE plugin, what is the python program nrf_sniffer.py looking for?

asked 2018-11-06 23:14:25 +0000

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

I have an Adafruit sniffer dongle nrF51822 and have installed the Wireshark plugin they supplied. I'm using Windows 10. Other plugins are DLL's but this one is coded in Python, and the call from Wireshark is contained in a .bat file as follows

@echo off C:\Python27\python "%~dp0nrf_sniffer.py" %*

the actual program file is nrf_sniffer.py, I have no idea what the preamble %~dp0 means, nor the 2nd argument %* either.. (help!)

I verified the path and edited to: @echo off C:/Python27/python "C:\Program Files\Wireshark\extcap\nrf_sniffer.py" %*

which python find and tries to execute in a command window. Submitted as is I get the error "An interface must be provided or the selection must be displayed"

It has been suggested to me means that it's probably looking for the serial port where the USB CDC device enumerated. I verified that I see the dongle on (say: COM10) and I tried permutations around

C:/Python27/python "C:\Program Files\Wireshark\extcap\nrf_sniffer.py" COM10 to no avail.

edit retag flag offensive close merge delete

Comments

As this is externally supplied software, you should take it up with the vendors of that software, i.e. Adafruit. They seem to have a tutorial for that device here.

grahamb gravatar imagegrahamb ( 2018-11-07 10:31:25 +0000 )edit

This is a Wireshark extcap plugin and is intended to be called from Wireshark. Have a look at the provided tutorial how to setup and use.

Stig gravatar imageStig ( 2018-11-12 12:44:10 +0000 )edit