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
  • I have the same problem. Using python 3.6.4 via Anaconda.

    If you change your import lines to look like the following, you'll get around the issue:

    import os
    import sys
    import argparse
    import re
    import time
    import struct
    import serial
    import logging
    sys.path.append('SnifferAPI')
    from SnifferAPI import Sniffer, myVersion, Logger, UART

    From here, I'm having problems with print statements, seems like the documentation is incorrect when it specifies we can use python 3.4 or newer -- all the code expects python 2 style print syntax.

Reply
  • I have the same problem. Using python 3.6.4 via Anaconda.

    If you change your import lines to look like the following, you'll get around the issue:

    import os
    import sys
    import argparse
    import re
    import time
    import struct
    import serial
    import logging
    sys.path.append('SnifferAPI')
    from SnifferAPI import Sniffer, myVersion, Logger, UART

    From here, I'm having problems with print statements, seems like the documentation is incorrect when it specifies we can use python 3.4 or newer -- all the code expects python 2 style print syntax.

Children
Related