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

Trying to install Sniffer based on nRF52840 USB Dongle

Hi

Trying to install and operate the Sniffer based on nRF52840 USB Dongle

Having the nRF Connect for Desktop installed and burned the Dongle in accordance with the instructions using the Programmer in nRF Connect

Now trying to follow the instruction to install the Sniffer software as described here:

https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrf52840_dongle%2FUG%2Fnrf52840_Dongle%2Fgetting_started.html

The problem I encountered on the page: https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_sniffer_ble%2FUG%2Fsniffer_ble%2Finstalling_sniffer_plugin.html

is at step 1b - typing the command pip3 install -r requirements.txt as required does not produce the required result and generates an error:

which is "pip3 is not recognized as an internal or external command...."

Of course, I'm in the correct folder of Sniffer /extcap as required at step 1a..

Of course, without completion of the 1b the rest of the procedure does not work

Please advise

Thank you

Alex

Parents
  • Have you installed the required python version, Section 3 of the nRF Sniffer User Guide mentions that python 3.6 or later should be installed.
    If you have installed python3, then pip3 will be inside your python3 installation so use the full path to pip3.

    For example on my Windows PC, 64 bit running python 3.7

    C:\Users\user>c:\python37\Scripts\pip3 --version
    pip 19.2.3 from c:\python37\lib\site-packages\pip (python 3.7)

  • Think you very much David

    It took time to figure out where the Phyton has been installed, weird thing, but finally found it:

    C:\Users\Alex\AppData\Local\Programs\Python\Python39\Scripts

    But the content of this folder only includes 3 files:

    pip.exe

    pip3.9.exe

    pip3.exe

    There is no file requirements.txt

    Therefore going to this folder in Command prompt and trying to run the required command: pip3 install -r requirements.txt

    produces an error message:

    "could not open requirements file: [errno 2]: No such file or directory: requirements.txt

    It turns that the requirements.txt was in a different location - where there Sniffer software was extracted to. So copied it from there to the phyton/scripts folder and run the pip3 install....command again and it worked!

    Continued with Wireshark setup for the Sniffer and now looks like it is installed properly

    Appreciate your help, David

Reply
  • Think you very much David

    It took time to figure out where the Phyton has been installed, weird thing, but finally found it:

    C:\Users\Alex\AppData\Local\Programs\Python\Python39\Scripts

    But the content of this folder only includes 3 files:

    pip.exe

    pip3.9.exe

    pip3.exe

    There is no file requirements.txt

    Therefore going to this folder in Command prompt and trying to run the required command: pip3 install -r requirements.txt

    produces an error message:

    "could not open requirements file: [errno 2]: No such file or directory: requirements.txt

    It turns that the requirements.txt was in a different location - where there Sniffer software was extracted to. So copied it from there to the phyton/scripts folder and run the pip3 install....command again and it worked!

    Continued with Wireshark setup for the Sniffer and now looks like it is installed properly

    Appreciate your help, David

Children
No Data
Related