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

nrf52832 sniffer

I am trying to set up the sniffer on nRF52832 DK PCA10040. I am not seeing the COM port on the Wireshark interface. I can see it on the device manager. I have looked at other threads, but I am not able to resolve my issue.

I tried the following command "nrf_sniffer.py --extcap-interfaces" . I get the following error.

I am using beta sniffer firmware nrf_sniffer_2.0.0-beta-1_51296aa and Wireshark version 2.4.3. Can you help me setting this up? Thanks.

C:\Program Files\Wireshark\extcap\nrf_sniffer_2.0.0-beta-1_51296aa\extcap>nrf_sniffer.py --extcap-interfaces Traceback (most recent call last): File "C:\Program Files\Wireshark\extcap\nrf_sniffer_2.0.0-beta-1_51296aa\extcap\nrf_sniffer.py", line 62, in from SnifferAPI import Sniffer, myVersion, Logger, UART File "C:\Program Files\Wireshark\extcap\nrf_sniffer_2.0.0-beta-1_51296aa\extcap\SnifferAPI\Sniffer.py", line 36, in import Logger, Version ModuleNotFoundError: No module named 'Logger'

C:\Program Files\Wireshark\extcap\nrf_sniffer_2.0.0-beta-1_51296aa\extcap>

Parents
  • It appears that your python version is incorrect, or you have not placed all the files and folders correctly in the Wireshark extcap folder. Please follow the installation steps and the trouble shooting steps in the nRF Sniffer user guide.

    Edit:

    The user guide explicity mentions that you use python v2.7.x , see the required software section in the user guide. 

    If you are seeing import issues you need to verify that the python 2.7.x is in the path so typing "python --version" will invoke the python 2.7 version.

    or edit the nrf_sniffer.bat (for windows users only) to call the 2.7.x version of python.

    If you are mixing python 3 and python 2 in your PC you will have import issues. Point the sniffer python script only at python 2.7.x

    Additionally ensure that you have the pyserial installed for python 2.7.x.

    C:>c:\Python27\Scripts\pip list
    pyserial (3.1.1)
    

Reply
  • It appears that your python version is incorrect, or you have not placed all the files and folders correctly in the Wireshark extcap folder. Please follow the installation steps and the trouble shooting steps in the nRF Sniffer user guide.

    Edit:

    The user guide explicity mentions that you use python v2.7.x , see the required software section in the user guide. 

    If you are seeing import issues you need to verify that the python 2.7.x is in the path so typing "python --version" will invoke the python 2.7 version.

    or edit the nrf_sniffer.bat (for windows users only) to call the 2.7.x version of python.

    If you are mixing python 3 and python 2 in your PC you will have import issues. Point the sniffer python script only at python 2.7.x

    Additionally ensure that you have the pyserial installed for python 2.7.x.

    C:>c:\Python27\Scripts\pip list
    pyserial (3.1.1)
    

Children
No Data
Related