This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Sniffer for nRF52 DK

Hi,

I got one of nRF52 DKs. Is there any chance that we can use this DK similar to nRF51 DK as a sniffer in near future?

I tried to program the board with the HEX file for nRF51. It will say successfully programmed, but when the Sniffer application is running, it can not detect the board on the COM port. I checked and the board is on COM5, but I think maybe the HEX file need to be changed for nRF52.

Farzad

  • @kirchki When you type 'w' into the sniffer console does wire shark actually start up? Does it give you an error? I tried with latest version of wireshark and was unsuccessful. I installed v1.10.14 and got it to work. I am using nRF52840 DK and can capture packets. Also make sure you are running the Sniffer.exe as admin

  • @lbehhhh. When I type 'w' the wireshark does start up. But, doesn't show any packets. However, I could see atleast the initial advertising packets before starting the wireshark. I will try with v1.10.14. Also, can you please let me know which particular hex file you used for testing. Because, there are multiple hex files on this forum, which works for some and doesn't for some others. So, I would prefer having the same hex file as yours.

  • I'm just going to include all the stuff I used to get this working:

    1. nRFgo Studio: www.nordicsemi.com/.../nRFgo-Studio

    2. nRF command line tools - this might be your problem. I couldnt get setup working with the package that came bundled with nRFgo Studio, so I uinstalled the version that came with nRFgo studio (via computer -> Uninstall programs) and downloaded the latest v9.3.1 from here and installed with defaults: www.nordicsemi.com/.../33444

    3. The hex file I used was the one from directly below this post posted by Hung Bui: Unofficial_nRF_Sniffer_4_nRF52DK.hex

    4. nRF Sniffer.exe: www.nordicsemi.com/.../

    5. Wireshark v1.10.14: www.wireshark.org/.../

    Let me know if that does/doesnt work. I wrote down a bunch of notes as I was troubleshooting.

  • Is there an official nRF sniffer released for nRF52840?

  • When i run the sniffer, it crashed and give the following log.

    12:59:49 (China Standard Time) ERROR: Traceback (most recent call last): File "C:\bamboo\xml-data\build-dir\BLESNIFFER-RELEASEBUILD-JOB1\Host\Application\SnifferAPI\Packet.py", line 160, in getPacket File "C:\bamboo\xml-data\build-dir\BLESNIFFER-RELEASEBUILD-JOB1\Host\Application\SnifferAPI\Packet.py", line 137, in decodeFromSLIP UARTPacketError: Unexpected character after SLIP_ESC: 124. 04-Oct-2017 12:59:49 (China Standard Time) ERROR: CRASH Traceback (most recent call last): File "C:\bamboo\xml-data\build-dir\BLESNIFFER-RELEASEBUILD-JOB1\Host\Application\SnifferAPI\Sniffer.py", line 150, in run File "C:\bamboo\xml-data\build-dir\BLESNIFFER-RELEASEBUILD-JOB1\Host\Application\SnifferAPI\Sniffer.py", line 175, in runSniffer File "C:\bamboo\xml-data\build-dir\BLESNIFFER-RELEASEBUILD-JOB1\Host\Application\SnifferAPI\SnifferCollector.py", line 153, in _continuouslyPipe AttributeError: 'NoneType' object has no attribute 'valid'

    any clues?

Related