Sniffer on OSX - revisited

It looks like the last discussion of Sniffer on Devzone was 2-3 yrs ago.

I’ve ordered the nRF Dongle and will download the Windows-based nRF Sniffer app.

i can run this with WireShark on a Windows VM on my Mac, though I would like a Mac OSX option.

- Any news on that front?

- Any way the Bluetooth hardware built into the MacBook could serve a Mac Sniffer app?

thanks!

Parents Reply Children
  • I was having issues with Wireshark not showing the extcap interface in it's UI on Mac OS X 10.13.5, even though the files were in the correct location, inside the .app /Applications/Wireshark.app/Contents/MacOS/extcap/

    While trying to debug the issue, i decided to run wireshark directly from my shell to see any possible output via /Applications/Wireshark.app/Contents/MacOS/Wireshark

    Turns out, this was enough to get nrf_sniffer.py to load, so if you've been having trouble getting it to load, it might be worth running the executable directly from Terminal.app 

    I suspect it has something to do with environment variables that Wireshark inherits from the shell, but haven't debugged further. 

    EDIT: Turns out, the best way to fix this so regular app launches work was to change the shebang at the top of nrf_sniffer.py to point directly to your local python2 instance. For me, this was #!/usr/local/bin/python2

  • Wow!  This appears to be the magic bullet.  With that one change to the nrf_sniffer.py file, I now see this when launching Wireshark.

    I'll check this more thoroughly tomorrow, end-to-end, and with the otherwise-default installation options.

    Thanks a million!  I'll validate the answer after that checking.

  • Would this have been caught if the the "python --version" as requested in nRF Sniffer User guide v2.1 was verified ?

    Install nRF Sniffer Step 6.

    C:>python --version
    Python 2.7.x

  • My python version is (and has been throughout) 2.7.14 as display now below:

    Davids-MacBook-Pro-2:~ davidelvig$ python --version
    Python 2.7.14

    I posted that step way back ups in this thread.

    The only change I made recently, based on the post by @Richard was to edit the top of nrf_sniffer.py

    I've been delayed in my end-to-end testing, but still plan to do that in the coming days

    Thanks, all for your posts!

  • Can you also provide the output of "which python" ?

Related