Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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.