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

Wireshark 2.4.3 cannot detect PCA10031 COM port interface

-Dear Nordic Devteam

Thanks for your endeavor for the nRF Sniffer 2. Although it is a beta version, this is sincerely anticipating.

To set up the Sniffer you will need one of the following kits:

nRF51 Development Kit (PCA10028) v1.0 or later and a micro USB cable

nRF51 Dongle (PCA10031)

nRF52 Development Kit (PCA10040) and a micro USB cable

I'm testing this with

  • nrf_sniffer_2.0.0-beta-1_51296aa

  • 64-bit Windows 10 PC

  • J-Link v6.22c

  • 64-bit Wireshark 2.4.3

  • PCA10031(v1.1.0, 2016.22, nRF51422 based dongle)

In my screenshot, due to the Korean language pack, you will see the WON sign instead of the backslash. That symbol doesn't affect anything and that currency sign is equivalent to the backslash character.

I followed the User Guide v2.0 and I used the sniffer_pca10031_51296aa.hex file for flashing.

The jlink.exe showed the O.K. message.

The Install firmware with SEGGER J-Link. step is done. My PC10031 dongle turns on the purple looking LED.

Open Wireshark. You should see “nRF Sniffer on xxxxx” as one of the interfaces.

Unfortunately, I do not see that.

Troubleshooting - The nRF sniffer is not listed in the Wireshark interface.

Check

See if the hardware has been enumerated on USB and the drivers are loaded

My dongle was connected; the Device Manager showsCOM6 port and that's my nRF dongle.

I connected only my dongle while doing this.

Check that the HEX file for the hardware has been flashed.

HexCheck

Although the jlink.exe showed the O.K. message, I didn't observe the SoftDevice for Region 0 using the nRFgo Studio. Looks like this doesn't use the SoftDevice.

When I use the nRFgo Studio, my PC10031 dongle turns on the purple looking LED as well.

So this step is passed.

For Windows: Run nrf_sniffer.bat --extcap-interfaces to list the interface

For OS X and Linux: Run nrf_sniffer.py --extcap-interfaces to list the interface.

I tried both methods. When executing nrf_sniffer.bat, I executed the bat file as a normal user and the admin, just in case.

PyCheck

The pyserial was installed so no errors were observed from the terminal.

However, I cannot see my nRF dongle interface from Wireshark.

///////////////////////////////////////////////

0.Compared to the manual,

View

I couldn't find the Interface Toolbars. Would this be the problem?

It would be a great help if you can elaborate why I don't have that Interface Toolbars menu.

  1. I placed the nRF Sniffer 2 file location correctly, didn't I?

JLinkDir

I placed all the files in the C:\Program Files\Wireshark\extcap directory.

2.What might have I missed to make that interface appear?

Or is the PCA10031's purple LED indicating some kind of error?

Hope to sniff packets with the new Sniffer in the future.

-Warm Regards (and Merry Christmas to everyone who reads this), MANGO

////////////// Added in 1/10/2018

Before

I compared my Wireshark Plugin paths referring Petter Myhre's picture.

Find and copy the nrf_sniffer__ ZIP file to the folder associated with “Extcap path”.

Unzip the ZIP's extcap content to the Wireshark Extcap path found in "About Wireshark” (shown here as C:\Program Files\Wireshark\extcap).

I followed the nRF Sniffer User Guide v2.0 and I comprehended that I have to unzip nrf_sniffer_2.0.0-beta-1_51296aa in C:\Program Files\Wireshark\extcap.

So the file directory was C:\Program Files\Wireshark\extcap\nrf_sniffer_2.0.0-beta-1_51296aa\extcap\nrf_sniffer.bat .

Whereas Petter's configured path was C:\Program Files\Wireshark\extcap\nrf_sniffer.bat.

Step

So I moved all the files, just like the above picture shows.

After moving files and executing the nrf_sniffer.bat, now I was able to see the Wireshark - View - Interface Toolbars - nRF Sniffer menu.

Click View>Interface Toolbars>nRF Sniffer to enable the Sniffer interface.

While reading the user guide, I felt like I was able to see that View - Interface Toolbars as a default option regardless of executing the nrf_sniffer.bat.

Since the guide didn't mention something like "After executing nrf_sniffer.bat or nrf_sniffer.py, the Interface Toolbars has to appear`", this made me confusing.

After

After changing files path, I can observe nrf_sniffer.bat in the Plugins menu.

NoPacket

Although I'm having this INFO: Packet read timed out. problem, I wish to discuss this in another thread later on.

The point is, where should the user unzip the nrf_sniffer_2.0.0-beta-1_51296aa.zip?

Let's clear things out and help other users.

Parents
  • I could not even see the interface toolbar or the sniffer in it. Per suggestion from Mango, this was because I did not execute nrf_sniffer.bat correctly. So I solved this as follows, and the problem is solved:

    Copy nrf_sniffer.bat and nrf_sniffer.py, and the folder SnifferAPI to this folder: C:\Program Files\Wireshark\extcap

    Then I reran this command from cmd.exe window:

    C:\Program Files\Wireshark\extcap>nrf_sniffer.bat --extcap-interfaces extcap {version=2.0.0}{display=nRF Sniffer}{help=www.nordicsemi.com/.../P roducts/Bluetooth-low-energy/nRF-Sniffer#Downloads} control {number=0}{type=selector}{display=Device}{tooltip=Device list} control {number=1}{type=string}{display=Passkey / OOB key}{tooltip=6 digit tempo rary key or 16 byte Out-of-band (OOB) key in hexadecimal starting with '0x', big endian format. If the entered key is shorter than 16 bytes, it will be zero-pad ded in front'}{validation=\b^(([0-9]{6})|(0x[0-9a-fA-F]{1,32}))$\b} control {number=2}{type=string}{display=Adv Hop}{default=37,38,39}{tooltip=Adver tising channel hop sequence. Change the order in which the siffer switches adver tising channels. Valid channels are 37, 38 and 39 separated by comma.}{validatio n=^\s*((37|38|39)\s*,\s*){0,2}(37|38|39){1}\s*$}{required=true} control {number=3}{type=button}{role=help}{display=Help}{tooltip=Access user gui de (launches browser)} control {number=4}{type=button}{role=restore}{display=Defaults}{tooltip=Resets t he user interface and clears the log file} control {number=5}{type=button}{role=logger}{display=Log}{tooltip=Log per interf ace} value {control=0}{value= }{display=All advertising devices}{default=true}

    The problem was then solved, and I can see the interface toolbar with the sniffer shown, which I then selected. However, the interface was then not added to the interfaces list to select for capture, what else needs to be done ?

    I am using Wireshark latest 2.4.4 version. Windows7 32 bit. Device Manager shows Com port: Jlink CDC UART Port (Com19). Having other USB connections or unplugging them did not make any difference. All other software versions installed from the sniffer user guide are matched correctly, although I installed pyserial using install command: "python setup.py install", since I could not get the pip command to be installed or work (HELP: anyone know how to install pip ?

    pyserial installation log, (does this look successful ?):

    C:\1code\pyserial-master>pip install pyserial 'pip' is not recognized as an internal or external command, operable program or batch file.

    C:\1code\pyserial-master>python setup.py install running install install_dir c:\Python27\Lib\site-packages
    running bdist_egg running egg_info creating pyserial.egg-info writing pyserial.egg-info\PKG-INFO writing top-level names to pyserial.egg-info\top_level.txt writing dependency_links to pyserial.egg-info\dependency_links.txt writing manifest file 'pyserial.egg-info\SOURCES.txt' reading manifest file 'pyserial.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'pyserial.egg-info\SOURCES.txt' installing library code to build\bdist.win32\egg running install_lib running build_py creating build creating build\lib creating build\lib\serial copying serial\rfc2217.py -> build\lib\serial copying serial\rs485.py -> build\lib\serial copying serial\serialcli.py -> build\lib\serial copying serial\serialjava.py -> build\lib\serial copying serial\serialposix.py -> build\lib\serial copying serial\serialutil.py -> build\lib\serial copying serial\serialwin32.py -> build\lib\serial copying serial\win32.py -> build\lib\serial copying serial_init.py -> build\lib\serial creating build\lib\serial\tools copying serial\tools\hexlify_codec.py -> build\lib\serial\tools copying serial\tools\list_ports.py -> build\lib\serial\tools copying serial\tools\list_ports_common.py -> build\lib\serial\tools copying serial\tools\list_ports_linux.py -> build\lib\serial\tools copying serial\tools\list_ports_osx.py -> build\lib\serial\tools copying serial\tools\list_ports_posix.py -> build\lib\serial\tools copying serial\tools\list_ports_windows.py -> build\lib\serial\tools copying serial\tools\miniterm.py -> build\lib\serial\tools copying serial\tools_init.py -> build\lib\serial\tools creating build\lib\serial\urlhandler copying serial\urlhandler\protocol_alt.py -> build\lib\serial\urlhandler copying serial\urlhandler\protocol_hwgrep.py -> build\lib\serial\urlhandler copying serial\urlhandler\protocol_loop.py -> build\lib\serial\urlhandler copying serial\urlhandler\protocol_rfc2217.py -> build\lib\serial\urlhandler copying serial\urlhandler\protocol_socket.py -> build\lib\serial\urlhandler copying serial\urlhandler\protocol_spy.py -> build\lib\serial\urlhandler copying serial\urlhandler_init.py -> build\lib\serial\urlhandler creating build\lib\serial\threaded copying serial\threaded_init.py -> build\lib\serial\threaded creating build\bdist.win32 creating build\bdist.win32\egg creating build\bdist.win32\egg\serial copying build\lib\serial\rfc2217.py -> build\bdist.win32\egg\serial copying build\lib\serial\rs485.py -> build\bdist.win32\egg\serial copying build\lib\serial\serialcli.py -> build\bdist.win32\egg\serial copying build\lib\serial\serialjava.py -> build\bdist.win32\egg\serial copying build\lib\serial\serialposix.py -> build\bdist.win32\egg\serial copying build\lib\serial\serialutil.py -> build\bdist.win32\egg\serial copying build\lib\serial\serialwin32.py -> build\bdist.win32\egg\serial creating build\bdist.win32\egg\serial\threaded copying build\lib\serial\threaded_init_.py -> build\bdist.win32\egg\serial\th readed creating build\bdist.win32\egg\serial\tools copying build\lib\serial\tools\hexlify_codec.py -> build\bdist.win32\egg\serial
    tools copying build\lib\serial\tools\list_ports.py -> build\bdist.win32\egg\serial\too ls copying build\lib\serial\tools\list_ports_common.py -> build\bdist.win32\egg\ser ial\tools copying build\lib\serial\tools\list_ports_linux.py -> build\bdist.win32\egg\seri al\tools copying build\lib\serial\tools\list_ports_osx.py -> build\bdist.win32\egg\serial \tools copying build\lib\serial\tools\list_ports_posix.py -> build\bdist.win32\egg\seri al\tools copying build\lib\serial\tools\list_ports_windows.py -> build\bdist.win32\egg\se rial\tools copying build\lib\serial\tools\miniterm.py -> build\bdist.win32\egg\serial\tools

    copying build\lib\serial\tools_init_.py -> build\bdist.win32\egg\serial\tools

    creating build\bdist.win32\egg\serial\urlhandler copying build\lib\serial\urlhandler\protocol_alt.py -> build\bdist.win32\egg\ser ial\urlhandler copying build\lib\serial\urlhandler\protocol_hwgrep.py -> build\bdist.win32\egg
    serial\urlhandler copying build\lib\serial\urlhandler\protocol_loop.py -> build\bdist.win32\egg\se rial\urlhandler copying build\lib\serial\urlhandler\protocol_rfc2217.py -> build\bdist.win32\egg \serial\urlhandler copying build\lib\serial\urlhandler\protocol_socket.py -> build\bdist.win32\egg
    serial\urlhandler copying build\lib\serial\urlhandler\protocol_spy.py -> build\bdist.win32\egg\ser ial\urlhandler copying build\lib\serial\urlhandler_init.py -> build\bdist.win32\egg\serial
    urlhandler copying build\lib\serial\win32.py -> build\bdist.win32\egg\serial copying build\lib\serial_init
    .py -> build\bdist.win32\egg\serial byte-compiling build\bdist.win32\egg\serial\rfc2217.py to rfc2217.pyc byte-compiling build\bdist.win32\egg\serial\rs485.py to rs485.pyc byte-compiling build\bdist.win32\egg\serial\serialcli.py to serialcli.pyc byte-compiling build\bdist.win32\egg\serial\serialjava.py to serialjava.pyc byte-compiling build\bdist.win32\egg\serial\serialposix.py to serialposix.pyc byte-compiling build\bdist.win32\egg\serial\serialutil.py to serialutil.pyc byte-compiling build\bdist.win32\egg\serial\serialwin32.py to serialwin32.pyc byte-compiling build\bdist.win32\egg\serial\threaded_init_.py to init.pyc

    byte-compiling build\bdist.win32\egg\serial\tools\hexlify_codec.py to hexlify_co dec.pyc byte-compiling build\bdist.win32\egg\serial\tools\list_ports.py to list_ports.py c byte-compiling build\bdist.win32\egg\serial\tools\list_ports_common.py to list_p orts_common.pyc byte-compiling build\bdist.win32\egg\serial\tools\list_ports_linux.py to list_po rts_linux.pyc byte-compiling build\bdist.win32\egg\serial\tools\list_ports_osx.py to list_port s_osx.pyc byte-compiling build\bdist.win32\egg\serial\tools\list_ports_posix.py to list_po rts_posix.pyc byte-compiling build\bdist.win32\egg\serial\tools\list_ports_windows.py to list_ ports_windows.pyc byte-compiling build\bdist.win32\egg\serial\tools\miniterm.py to miniterm.pyc byte-compiling build\bdist.win32\egg\serial\tools_init.py to init.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_alt.py to protoc ol_alt.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_hwgrep.py to pro tocol_hwgrep.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_loop.py to proto col_loop.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_rfc2217.py to pr otocol_rfc2217.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_socket.py to pro tocol_socket.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_spy.py to protoc ol_spy.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler_init.py to init.p yc byte-compiling build\bdist.win32\egg\serial\win32.py to win32.pyc byte-compiling build\bdist.win32\egg\serial_init_.py to init.pyc creating build\bdist.win32\egg\EGG-INFO installing scripts to build\bdist.win32\egg\EGG-INFO\scripts running install_scripts running build_scripts creating build\scripts-2.7 copying and adjusting serial\tools\miniterm.py -> build\scripts-2.7 creating build\bdist.win32\egg\EGG-INFO\scripts copying build\scripts-2.7\miniterm.py -> build\bdist.win32\egg\EGG-INFO\scripts copying pyserial.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO copying pyserial.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO copying pyserial.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-INFO

    copying pyserial.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO zip_safe flag not set; analyzing archive contents... creating dist creating 'dist\pyserial-3.4-py2.7.egg' and adding 'build\bdist.win32\egg' to it removing 'build\bdist.win32\egg' (and everything under it) Processing pyserial-3.4-py2.7.egg creating c:\python27\lib\site-packages\pyserial-3.4-py2.7.egg Extracting pyserial-3.4-py2.7.egg to c:\python27\lib\site-packages Adding pyserial 3.4 to easy-install.pth file error: c:\python27\lib\site-packages\easy-install.pth: Permission denied

    C:\1code\pyserial-master>python setup.py install running install install_dir c:\Python27\Lib\site-packages
    running bdist_egg running egg_info writing pyserial.egg-info\PKG-INFO writing top-level names to pyserial.egg-info\top_level.txt writing dependency_links to pyserial.egg-info\dependency_links.txt reading manifest file 'pyserial.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'pyserial.egg-info\SOURCES.txt' installing library code to build\bdist.win32\egg running install_lib running build_py creating build\bdist.win32\egg creating build\bdist.win32\egg\serial copying build\lib\serial\rfc2217.py -> build\bdist.win32\egg\serial copying build\lib\serial\rs485.py -> build\bdist.win32\egg\serial copying build\lib\serial\serialcli.py -> build\bdist.win32\egg\serial copying build\lib\serial\serialjava.py -> build\bdist.win32\egg\serial copying build\lib\serial\serialposix.py -> build\bdist.win32\egg\serial copying build\lib\serial\serialutil.py -> build\bdist.win32\egg\serial copying build\lib\serial\serialwin32.py -> build\bdist.win32\egg\serial creating build\bdist.win32\egg\serial\threaded copying build\lib\serial\threaded_init_.py -> build\bdist.win32\egg\serial\th readed creating build\bdist.win32\egg\serial\tools copying build\lib\serial\tools\hexlify_codec.py -> build\bdist.win32\egg\serial
    tools copying build\lib\serial\tools\list_ports.py -> build\bdist.win32\egg\serial\too ls copying build\lib\serial\tools\list_ports_common.py -> build\bdist.win32\egg\ser ial\tools copying build\lib\serial\tools\list_ports_linux.py -> build\bdist.win32\egg\seri al\tools copying build\lib\serial\tools\list_ports_osx.py -> build\bdist.win32\egg\serial \tools copying build\lib\serial\tools\list_ports_posix.py -> build\bdist.win32\egg\seri al\tools copying build\lib\serial\tools\list_ports_windows.py -> build\bdist.win32\egg\se rial\tools copying build\lib\serial\tools\miniterm.py -> build\bdist.win32\egg\serial\tools

    copying build\lib\serial\tools_init_.py -> build\bdist.win32\egg\serial\tools

    creating build\bdist.win32\egg\serial\urlhandler copying build\lib\serial\urlhandler\protocol_alt.py -> build\bdist.win32\egg\ser ial\urlhandler copying build\lib\serial\urlhandler\protocol_hwgrep.py -> build\bdist.win32\egg
    serial\urlhandler copying build\lib\serial\urlhandler\protocol_loop.py -> build\bdist.win32\egg\se rial\urlhandler copying build\lib\serial\urlhandler\protocol_rfc2217.py -> build\bdist.win32\egg \serial\urlhandler copying build\lib\serial\urlhandler\protocol_socket.py -> build\bdist.win32\egg
    serial\urlhandler copying build\lib\serial\urlhandler\protocol_spy.py -> build\bdist.win32\egg\ser ial\urlhandler copying build\lib\serial\urlhandler_init.py -> build\bdist.win32\egg\serial
    urlhandler copying build\lib\serial\win32.py -> build\bdist.win32\egg\serial copying build\lib\serial_init
    .py -> build\bdist.win32\egg\serial byte-compiling build\bdist.win32\egg\serial\rfc2217.py to rfc2217.pyc byte-compiling build\bdist.win32\egg\serial\rs485.py to rs485.pyc byte-compiling build\bdist.win32\egg\serial\serialcli.py to serialcli.pyc byte-compiling build\bdist.win32\egg\serial\serialjava.py to serialjava.pyc byte-compiling build\bdist.win32\egg\serial\serialposix.py to serialposix.pyc byte-compiling build\bdist.win32\egg\serial\serialutil.py to serialutil.pyc byte-compiling build\bdist.win32\egg\serial\serialwin32.py to serialwin32.pyc byte-compiling build\bdist.win32\egg\serial\threaded_init_.py to init.pyc

    byte-compiling build\bdist.win32\egg\serial\tools\hexlify_codec.py to hexlify_co dec.pyc byte-compiling build\bdist.win32\egg\serial\tools\list_ports.py to list_ports.py c byte-compiling build\bdist.win32\egg\serial\tools\list_ports_common.py to list_p orts_common.pyc byte-compiling build\bdist.win32\egg\serial\tools\list_ports_linux.py to list_po rts_linux.pyc byte-compiling build\bdist.win32\egg\serial\tools\list_ports_osx.py to list_port s_osx.pyc byte-compiling build\bdist.win32\egg\serial\tools\list_ports_posix.py to list_po rts_posix.pyc byte-compiling build\bdist.win32\egg\serial\tools\list_ports_windows.py to list_ ports_windows.pyc byte-compiling build\bdist.win32\egg\serial\tools\miniterm.py to miniterm.pyc byte-compiling build\bdist.win32\egg\serial\tools_init.py to init.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_alt.py to protoc ol_alt.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_hwgrep.py to pro tocol_hwgrep.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_loop.py to proto col_loop.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_rfc2217.py to pr otocol_rfc2217.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_socket.py to pro tocol_socket.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_spy.py to protoc ol_spy.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler_init.py to init.p yc byte-compiling build\bdist.win32\egg\serial\win32.py to win32.pyc byte-compiling build\bdist.win32\egg\serial_init_.py to init.pyc creating build\bdist.win32\egg\EGG-INFO installing scripts to build\bdist.win32\egg\EGG-INFO\scripts running install_scripts running build_scripts creating build\bdist.win32\egg\EGG-INFO\scripts copying build\scripts-2.7\miniterm.py -> build\bdist.win32\egg\EGG-INFO\scripts copying pyserial.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO copying pyserial.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO copying pyserial.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-INFO

    copying pyserial.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO zip_safe flag not set; analyzing archive contents... creating 'dist\pyserial-3.4-py2.7.egg' and adding 'build\bdist.win32\egg' to it removing 'build\bdist.win32\egg' (and everything under it) Processing pyserial-3.4-py2.7.egg removing 'c:\python27\lib\site-packages\pyserial-3.4-py2.7.egg' (and everything under it) creating c:\python27\lib\site-packages\pyserial-3.4-py2.7.egg Extracting pyserial-3.4-py2.7.egg to c:\python27\lib\site-packages Adding pyserial 3.4 to easy-install.pth file Installing miniterm.py script to c:\Python27\Scripts

    Installed c:\python27\lib\site-packages\pyserial-3.4-py2.7.egg Processing dependencies for pyserial==3.4 Finished processing dependencies for pyserial==3.4


    I found how to install pip here: pip.pypa.io/.../

    result log: C:\1code\pyserial-master>python get-pip.py install c:\Python27\lib\site-packages\setuptools\command\install_scripts.py:3: UserWarni ng: Module pip was already imported from c:\users\dcollier\appdata\local\temp\tm pzltby6\pip.zip\pip_init.py, but c:\python27\lib\site-packages is being adde d to sys.path from pkg_resources import Distribution, PathMetadata, ensure_directory Collecting install c:\users\dcollier\appdata\local\temp\tmpzltby6\pip.zip\pip_vendor\requests\pack ages\urllib3\util\ssl.py:318: SNIMissingWarning: An HTTPS request has been made , but the SNI (Subject Name Indication) extension to TLS is not available on thi s platform. This may cause the server to present an incorrect TLS certificate, w hich can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see urllib3.readthedocs.io/.../late st/security.html#snimissingwarning. c:\users\dcollier\appdata\local\temp\tmpzltby6\pip.zip\pip_vendor\requests\pack ages\urllib3\util\ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see urllib3.readthedocs.io/ en/latest/security.html#insecureplatformwarning. Could not find a version that satisfies the requirement install (from versions : ) No matching distribution found for install c:\users\dcollier\appdata\local\temp\tmpzltby6\pip.zip\pip_vendor\requests\pack ages\urllib3\util\ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see urllib3.readthedocs.io/ en/latest/security.html#insecureplatformwarning. You are using pip version 0.8.2, however version 9.0.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' comm and.


    still cannot run pip:

    C:\1code\pyserial-master>pip install pyserial 'pip' is not recognized as an internal or external command, operable program or batch file.


    Question: how to run "pip" commands ? Answer: run from scripts subfolder under the python folder, eg. C:\Python27\Scripts

    I finally solved why the sniffer Com19 interface was not listed in the interfaces !

    It was because the sniffer was not erased and programmed correctly !

    here is how I followed the sniffer guide page 5 figure2, note used quotes around the hex file location for programming the sniffer:

    C:\Program Files\SEGGER\JLink_V616c>JLink.exe SEGGER J-Link Commander V6.16c (Compiled Jun 16 2017 18:15:26) DLL version V6.16c, compiled Jun 16 2017 18:14:49

    Connecting to J-Link via USB...O.K. Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jun 9 2017 14:57:23 Hardware version: V1.00 S/N: 680894940 VTref = 3.300V

    Type "connect" to establish a target connection, '?' for help J-Link>erase Target connection not established yet but required for command. Please specify device / core. : NRF52832_XXAA Type '?' for selection dialog Device>NRF51422_XXAA Please specify target interface: J) JTAG (Default) S) SWD TIF>s Specify target interface speed [kHz]. : 4000 kHz Speed>1000 Device "NRF51422_XXAA" selected.

    Connecting to target via SWD Found SW-DP with ID 0x0BB11477 Scanning APs, stopping at first AHB-AP found. AP[0] IDR: 0x04770021 (AHB-AP) AHB-AP ROM: 0xF0000000 (Base addr. of first ROM table) CPUID reg: 0x410CC200. Implementer code: 0x41 (ARM) Found Cortex-M0 r0p0, Little endian. FPUnit: 4 code (BP) slots and 0 literal slots CoreSight components: ROMTbl[0] @ F0000000 ROMTbl[0][0]: E00FF000, CID: B105100D, PID: 000BB471 ROM Table ROMTbl[1] @ E00FF000 ROMTbl[1][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS ROMTbl[1][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT ROMTbl[1][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB ROMTbl[0][1]: F0002000, CID: B105900D, PID: 000BB9A3 ??? Cortex-M0 identified. Erasing device (nRF51422_xxAA)... J-Link: Flash download: Total time needed: 5.428s (Prepare: 0.045s, Compare: 0.0 00s, Erase: 5.376s, Program: 0.000s, Verify: 0.000s, Restore: 0.006s) Erasing done. J-Link>loadfile "C:\Program Files\Wireshark\extcap\nrf_sniffer_2.0.0-beta-1_5129 6aa\hex\sniffer_pca10028_51296aa.hex" Downloading file [C:\Program Files\Wireshark\extcap\nrf_sniffer_2.0.0-beta-1_512 96aa\hex\sniffer_pca10028_51296aa.hex]... J-Link: Flash download: Flash programming performed for 1 range (14336 bytes) J-Link: Flash download: Total time needed: 0.390s (Prepare: 0.078s, Compare: 0.0 07s, Erase: 0.000s, Program: 0.259s, Verify: 0.000s, Restore: 0.045s) O.K. J-Link>r Reset delay: 0 ms Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit. Setting AIRCR.SYSRESETREQ J-Link>g J-Link>

    then toggled interface toolbar sniffer enable, interface appeared !

Reply
  • I could not even see the interface toolbar or the sniffer in it. Per suggestion from Mango, this was because I did not execute nrf_sniffer.bat correctly. So I solved this as follows, and the problem is solved:

    Copy nrf_sniffer.bat and nrf_sniffer.py, and the folder SnifferAPI to this folder: C:\Program Files\Wireshark\extcap

    Then I reran this command from cmd.exe window:

    C:\Program Files\Wireshark\extcap>nrf_sniffer.bat --extcap-interfaces extcap {version=2.0.0}{display=nRF Sniffer}{help=www.nordicsemi.com/.../P roducts/Bluetooth-low-energy/nRF-Sniffer#Downloads} control {number=0}{type=selector}{display=Device}{tooltip=Device list} control {number=1}{type=string}{display=Passkey / OOB key}{tooltip=6 digit tempo rary key or 16 byte Out-of-band (OOB) key in hexadecimal starting with '0x', big endian format. If the entered key is shorter than 16 bytes, it will be zero-pad ded in front'}{validation=\b^(([0-9]{6})|(0x[0-9a-fA-F]{1,32}))$\b} control {number=2}{type=string}{display=Adv Hop}{default=37,38,39}{tooltip=Adver tising channel hop sequence. Change the order in which the siffer switches adver tising channels. Valid channels are 37, 38 and 39 separated by comma.}{validatio n=^\s*((37|38|39)\s*,\s*){0,2}(37|38|39){1}\s*$}{required=true} control {number=3}{type=button}{role=help}{display=Help}{tooltip=Access user gui de (launches browser)} control {number=4}{type=button}{role=restore}{display=Defaults}{tooltip=Resets t he user interface and clears the log file} control {number=5}{type=button}{role=logger}{display=Log}{tooltip=Log per interf ace} value {control=0}{value= }{display=All advertising devices}{default=true}

    The problem was then solved, and I can see the interface toolbar with the sniffer shown, which I then selected. However, the interface was then not added to the interfaces list to select for capture, what else needs to be done ?

    I am using Wireshark latest 2.4.4 version. Windows7 32 bit. Device Manager shows Com port: Jlink CDC UART Port (Com19). Having other USB connections or unplugging them did not make any difference. All other software versions installed from the sniffer user guide are matched correctly, although I installed pyserial using install command: "python setup.py install", since I could not get the pip command to be installed or work (HELP: anyone know how to install pip ?

    pyserial installation log, (does this look successful ?):

    C:\1code\pyserial-master>pip install pyserial 'pip' is not recognized as an internal or external command, operable program or batch file.

    C:\1code\pyserial-master>python setup.py install running install install_dir c:\Python27\Lib\site-packages
    running bdist_egg running egg_info creating pyserial.egg-info writing pyserial.egg-info\PKG-INFO writing top-level names to pyserial.egg-info\top_level.txt writing dependency_links to pyserial.egg-info\dependency_links.txt writing manifest file 'pyserial.egg-info\SOURCES.txt' reading manifest file 'pyserial.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'pyserial.egg-info\SOURCES.txt' installing library code to build\bdist.win32\egg running install_lib running build_py creating build creating build\lib creating build\lib\serial copying serial\rfc2217.py -> build\lib\serial copying serial\rs485.py -> build\lib\serial copying serial\serialcli.py -> build\lib\serial copying serial\serialjava.py -> build\lib\serial copying serial\serialposix.py -> build\lib\serial copying serial\serialutil.py -> build\lib\serial copying serial\serialwin32.py -> build\lib\serial copying serial\win32.py -> build\lib\serial copying serial_init.py -> build\lib\serial creating build\lib\serial\tools copying serial\tools\hexlify_codec.py -> build\lib\serial\tools copying serial\tools\list_ports.py -> build\lib\serial\tools copying serial\tools\list_ports_common.py -> build\lib\serial\tools copying serial\tools\list_ports_linux.py -> build\lib\serial\tools copying serial\tools\list_ports_osx.py -> build\lib\serial\tools copying serial\tools\list_ports_posix.py -> build\lib\serial\tools copying serial\tools\list_ports_windows.py -> build\lib\serial\tools copying serial\tools\miniterm.py -> build\lib\serial\tools copying serial\tools_init.py -> build\lib\serial\tools creating build\lib\serial\urlhandler copying serial\urlhandler\protocol_alt.py -> build\lib\serial\urlhandler copying serial\urlhandler\protocol_hwgrep.py -> build\lib\serial\urlhandler copying serial\urlhandler\protocol_loop.py -> build\lib\serial\urlhandler copying serial\urlhandler\protocol_rfc2217.py -> build\lib\serial\urlhandler copying serial\urlhandler\protocol_socket.py -> build\lib\serial\urlhandler copying serial\urlhandler\protocol_spy.py -> build\lib\serial\urlhandler copying serial\urlhandler_init.py -> build\lib\serial\urlhandler creating build\lib\serial\threaded copying serial\threaded_init.py -> build\lib\serial\threaded creating build\bdist.win32 creating build\bdist.win32\egg creating build\bdist.win32\egg\serial copying build\lib\serial\rfc2217.py -> build\bdist.win32\egg\serial copying build\lib\serial\rs485.py -> build\bdist.win32\egg\serial copying build\lib\serial\serialcli.py -> build\bdist.win32\egg\serial copying build\lib\serial\serialjava.py -> build\bdist.win32\egg\serial copying build\lib\serial\serialposix.py -> build\bdist.win32\egg\serial copying build\lib\serial\serialutil.py -> build\bdist.win32\egg\serial copying build\lib\serial\serialwin32.py -> build\bdist.win32\egg\serial creating build\bdist.win32\egg\serial\threaded copying build\lib\serial\threaded_init_.py -> build\bdist.win32\egg\serial\th readed creating build\bdist.win32\egg\serial\tools copying build\lib\serial\tools\hexlify_codec.py -> build\bdist.win32\egg\serial
    tools copying build\lib\serial\tools\list_ports.py -> build\bdist.win32\egg\serial\too ls copying build\lib\serial\tools\list_ports_common.py -> build\bdist.win32\egg\ser ial\tools copying build\lib\serial\tools\list_ports_linux.py -> build\bdist.win32\egg\seri al\tools copying build\lib\serial\tools\list_ports_osx.py -> build\bdist.win32\egg\serial \tools copying build\lib\serial\tools\list_ports_posix.py -> build\bdist.win32\egg\seri al\tools copying build\lib\serial\tools\list_ports_windows.py -> build\bdist.win32\egg\se rial\tools copying build\lib\serial\tools\miniterm.py -> build\bdist.win32\egg\serial\tools

    copying build\lib\serial\tools_init_.py -> build\bdist.win32\egg\serial\tools

    creating build\bdist.win32\egg\serial\urlhandler copying build\lib\serial\urlhandler\protocol_alt.py -> build\bdist.win32\egg\ser ial\urlhandler copying build\lib\serial\urlhandler\protocol_hwgrep.py -> build\bdist.win32\egg
    serial\urlhandler copying build\lib\serial\urlhandler\protocol_loop.py -> build\bdist.win32\egg\se rial\urlhandler copying build\lib\serial\urlhandler\protocol_rfc2217.py -> build\bdist.win32\egg \serial\urlhandler copying build\lib\serial\urlhandler\protocol_socket.py -> build\bdist.win32\egg
    serial\urlhandler copying build\lib\serial\urlhandler\protocol_spy.py -> build\bdist.win32\egg\ser ial\urlhandler copying build\lib\serial\urlhandler_init.py -> build\bdist.win32\egg\serial
    urlhandler copying build\lib\serial\win32.py -> build\bdist.win32\egg\serial copying build\lib\serial_init
    .py -> build\bdist.win32\egg\serial byte-compiling build\bdist.win32\egg\serial\rfc2217.py to rfc2217.pyc byte-compiling build\bdist.win32\egg\serial\rs485.py to rs485.pyc byte-compiling build\bdist.win32\egg\serial\serialcli.py to serialcli.pyc byte-compiling build\bdist.win32\egg\serial\serialjava.py to serialjava.pyc byte-compiling build\bdist.win32\egg\serial\serialposix.py to serialposix.pyc byte-compiling build\bdist.win32\egg\serial\serialutil.py to serialutil.pyc byte-compiling build\bdist.win32\egg\serial\serialwin32.py to serialwin32.pyc byte-compiling build\bdist.win32\egg\serial\threaded_init_.py to init.pyc

    byte-compiling build\bdist.win32\egg\serial\tools\hexlify_codec.py to hexlify_co dec.pyc byte-compiling build\bdist.win32\egg\serial\tools\list_ports.py to list_ports.py c byte-compiling build\bdist.win32\egg\serial\tools\list_ports_common.py to list_p orts_common.pyc byte-compiling build\bdist.win32\egg\serial\tools\list_ports_linux.py to list_po rts_linux.pyc byte-compiling build\bdist.win32\egg\serial\tools\list_ports_osx.py to list_port s_osx.pyc byte-compiling build\bdist.win32\egg\serial\tools\list_ports_posix.py to list_po rts_posix.pyc byte-compiling build\bdist.win32\egg\serial\tools\list_ports_windows.py to list_ ports_windows.pyc byte-compiling build\bdist.win32\egg\serial\tools\miniterm.py to miniterm.pyc byte-compiling build\bdist.win32\egg\serial\tools_init.py to init.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_alt.py to protoc ol_alt.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_hwgrep.py to pro tocol_hwgrep.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_loop.py to proto col_loop.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_rfc2217.py to pr otocol_rfc2217.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_socket.py to pro tocol_socket.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_spy.py to protoc ol_spy.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler_init.py to init.p yc byte-compiling build\bdist.win32\egg\serial\win32.py to win32.pyc byte-compiling build\bdist.win32\egg\serial_init_.py to init.pyc creating build\bdist.win32\egg\EGG-INFO installing scripts to build\bdist.win32\egg\EGG-INFO\scripts running install_scripts running build_scripts creating build\scripts-2.7 copying and adjusting serial\tools\miniterm.py -> build\scripts-2.7 creating build\bdist.win32\egg\EGG-INFO\scripts copying build\scripts-2.7\miniterm.py -> build\bdist.win32\egg\EGG-INFO\scripts copying pyserial.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO copying pyserial.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO copying pyserial.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-INFO

    copying pyserial.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO zip_safe flag not set; analyzing archive contents... creating dist creating 'dist\pyserial-3.4-py2.7.egg' and adding 'build\bdist.win32\egg' to it removing 'build\bdist.win32\egg' (and everything under it) Processing pyserial-3.4-py2.7.egg creating c:\python27\lib\site-packages\pyserial-3.4-py2.7.egg Extracting pyserial-3.4-py2.7.egg to c:\python27\lib\site-packages Adding pyserial 3.4 to easy-install.pth file error: c:\python27\lib\site-packages\easy-install.pth: Permission denied

    C:\1code\pyserial-master>python setup.py install running install install_dir c:\Python27\Lib\site-packages
    running bdist_egg running egg_info writing pyserial.egg-info\PKG-INFO writing top-level names to pyserial.egg-info\top_level.txt writing dependency_links to pyserial.egg-info\dependency_links.txt reading manifest file 'pyserial.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'pyserial.egg-info\SOURCES.txt' installing library code to build\bdist.win32\egg running install_lib running build_py creating build\bdist.win32\egg creating build\bdist.win32\egg\serial copying build\lib\serial\rfc2217.py -> build\bdist.win32\egg\serial copying build\lib\serial\rs485.py -> build\bdist.win32\egg\serial copying build\lib\serial\serialcli.py -> build\bdist.win32\egg\serial copying build\lib\serial\serialjava.py -> build\bdist.win32\egg\serial copying build\lib\serial\serialposix.py -> build\bdist.win32\egg\serial copying build\lib\serial\serialutil.py -> build\bdist.win32\egg\serial copying build\lib\serial\serialwin32.py -> build\bdist.win32\egg\serial creating build\bdist.win32\egg\serial\threaded copying build\lib\serial\threaded_init_.py -> build\bdist.win32\egg\serial\th readed creating build\bdist.win32\egg\serial\tools copying build\lib\serial\tools\hexlify_codec.py -> build\bdist.win32\egg\serial
    tools copying build\lib\serial\tools\list_ports.py -> build\bdist.win32\egg\serial\too ls copying build\lib\serial\tools\list_ports_common.py -> build\bdist.win32\egg\ser ial\tools copying build\lib\serial\tools\list_ports_linux.py -> build\bdist.win32\egg\seri al\tools copying build\lib\serial\tools\list_ports_osx.py -> build\bdist.win32\egg\serial \tools copying build\lib\serial\tools\list_ports_posix.py -> build\bdist.win32\egg\seri al\tools copying build\lib\serial\tools\list_ports_windows.py -> build\bdist.win32\egg\se rial\tools copying build\lib\serial\tools\miniterm.py -> build\bdist.win32\egg\serial\tools

    copying build\lib\serial\tools_init_.py -> build\bdist.win32\egg\serial\tools

    creating build\bdist.win32\egg\serial\urlhandler copying build\lib\serial\urlhandler\protocol_alt.py -> build\bdist.win32\egg\ser ial\urlhandler copying build\lib\serial\urlhandler\protocol_hwgrep.py -> build\bdist.win32\egg
    serial\urlhandler copying build\lib\serial\urlhandler\protocol_loop.py -> build\bdist.win32\egg\se rial\urlhandler copying build\lib\serial\urlhandler\protocol_rfc2217.py -> build\bdist.win32\egg \serial\urlhandler copying build\lib\serial\urlhandler\protocol_socket.py -> build\bdist.win32\egg
    serial\urlhandler copying build\lib\serial\urlhandler\protocol_spy.py -> build\bdist.win32\egg\ser ial\urlhandler copying build\lib\serial\urlhandler_init.py -> build\bdist.win32\egg\serial
    urlhandler copying build\lib\serial\win32.py -> build\bdist.win32\egg\serial copying build\lib\serial_init
    .py -> build\bdist.win32\egg\serial byte-compiling build\bdist.win32\egg\serial\rfc2217.py to rfc2217.pyc byte-compiling build\bdist.win32\egg\serial\rs485.py to rs485.pyc byte-compiling build\bdist.win32\egg\serial\serialcli.py to serialcli.pyc byte-compiling build\bdist.win32\egg\serial\serialjava.py to serialjava.pyc byte-compiling build\bdist.win32\egg\serial\serialposix.py to serialposix.pyc byte-compiling build\bdist.win32\egg\serial\serialutil.py to serialutil.pyc byte-compiling build\bdist.win32\egg\serial\serialwin32.py to serialwin32.pyc byte-compiling build\bdist.win32\egg\serial\threaded_init_.py to init.pyc

    byte-compiling build\bdist.win32\egg\serial\tools\hexlify_codec.py to hexlify_co dec.pyc byte-compiling build\bdist.win32\egg\serial\tools\list_ports.py to list_ports.py c byte-compiling build\bdist.win32\egg\serial\tools\list_ports_common.py to list_p orts_common.pyc byte-compiling build\bdist.win32\egg\serial\tools\list_ports_linux.py to list_po rts_linux.pyc byte-compiling build\bdist.win32\egg\serial\tools\list_ports_osx.py to list_port s_osx.pyc byte-compiling build\bdist.win32\egg\serial\tools\list_ports_posix.py to list_po rts_posix.pyc byte-compiling build\bdist.win32\egg\serial\tools\list_ports_windows.py to list_ ports_windows.pyc byte-compiling build\bdist.win32\egg\serial\tools\miniterm.py to miniterm.pyc byte-compiling build\bdist.win32\egg\serial\tools_init.py to init.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_alt.py to protoc ol_alt.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_hwgrep.py to pro tocol_hwgrep.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_loop.py to proto col_loop.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_rfc2217.py to pr otocol_rfc2217.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_socket.py to pro tocol_socket.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_spy.py to protoc ol_spy.pyc byte-compiling build\bdist.win32\egg\serial\urlhandler_init.py to init.p yc byte-compiling build\bdist.win32\egg\serial\win32.py to win32.pyc byte-compiling build\bdist.win32\egg\serial_init_.py to init.pyc creating build\bdist.win32\egg\EGG-INFO installing scripts to build\bdist.win32\egg\EGG-INFO\scripts running install_scripts running build_scripts creating build\bdist.win32\egg\EGG-INFO\scripts copying build\scripts-2.7\miniterm.py -> build\bdist.win32\egg\EGG-INFO\scripts copying pyserial.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO copying pyserial.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO copying pyserial.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-INFO

    copying pyserial.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO zip_safe flag not set; analyzing archive contents... creating 'dist\pyserial-3.4-py2.7.egg' and adding 'build\bdist.win32\egg' to it removing 'build\bdist.win32\egg' (and everything under it) Processing pyserial-3.4-py2.7.egg removing 'c:\python27\lib\site-packages\pyserial-3.4-py2.7.egg' (and everything under it) creating c:\python27\lib\site-packages\pyserial-3.4-py2.7.egg Extracting pyserial-3.4-py2.7.egg to c:\python27\lib\site-packages Adding pyserial 3.4 to easy-install.pth file Installing miniterm.py script to c:\Python27\Scripts

    Installed c:\python27\lib\site-packages\pyserial-3.4-py2.7.egg Processing dependencies for pyserial==3.4 Finished processing dependencies for pyserial==3.4


    I found how to install pip here: pip.pypa.io/.../

    result log: C:\1code\pyserial-master>python get-pip.py install c:\Python27\lib\site-packages\setuptools\command\install_scripts.py:3: UserWarni ng: Module pip was already imported from c:\users\dcollier\appdata\local\temp\tm pzltby6\pip.zip\pip_init.py, but c:\python27\lib\site-packages is being adde d to sys.path from pkg_resources import Distribution, PathMetadata, ensure_directory Collecting install c:\users\dcollier\appdata\local\temp\tmpzltby6\pip.zip\pip_vendor\requests\pack ages\urllib3\util\ssl.py:318: SNIMissingWarning: An HTTPS request has been made , but the SNI (Subject Name Indication) extension to TLS is not available on thi s platform. This may cause the server to present an incorrect TLS certificate, w hich can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see urllib3.readthedocs.io/.../late st/security.html#snimissingwarning. c:\users\dcollier\appdata\local\temp\tmpzltby6\pip.zip\pip_vendor\requests\pack ages\urllib3\util\ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see urllib3.readthedocs.io/ en/latest/security.html#insecureplatformwarning. Could not find a version that satisfies the requirement install (from versions : ) No matching distribution found for install c:\users\dcollier\appdata\local\temp\tmpzltby6\pip.zip\pip_vendor\requests\pack ages\urllib3\util\ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see urllib3.readthedocs.io/ en/latest/security.html#insecureplatformwarning. You are using pip version 0.8.2, however version 9.0.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' comm and.


    still cannot run pip:

    C:\1code\pyserial-master>pip install pyserial 'pip' is not recognized as an internal or external command, operable program or batch file.


    Question: how to run "pip" commands ? Answer: run from scripts subfolder under the python folder, eg. C:\Python27\Scripts

    I finally solved why the sniffer Com19 interface was not listed in the interfaces !

    It was because the sniffer was not erased and programmed correctly !

    here is how I followed the sniffer guide page 5 figure2, note used quotes around the hex file location for programming the sniffer:

    C:\Program Files\SEGGER\JLink_V616c>JLink.exe SEGGER J-Link Commander V6.16c (Compiled Jun 16 2017 18:15:26) DLL version V6.16c, compiled Jun 16 2017 18:14:49

    Connecting to J-Link via USB...O.K. Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jun 9 2017 14:57:23 Hardware version: V1.00 S/N: 680894940 VTref = 3.300V

    Type "connect" to establish a target connection, '?' for help J-Link>erase Target connection not established yet but required for command. Please specify device / core. : NRF52832_XXAA Type '?' for selection dialog Device>NRF51422_XXAA Please specify target interface: J) JTAG (Default) S) SWD TIF>s Specify target interface speed [kHz]. : 4000 kHz Speed>1000 Device "NRF51422_XXAA" selected.

    Connecting to target via SWD Found SW-DP with ID 0x0BB11477 Scanning APs, stopping at first AHB-AP found. AP[0] IDR: 0x04770021 (AHB-AP) AHB-AP ROM: 0xF0000000 (Base addr. of first ROM table) CPUID reg: 0x410CC200. Implementer code: 0x41 (ARM) Found Cortex-M0 r0p0, Little endian. FPUnit: 4 code (BP) slots and 0 literal slots CoreSight components: ROMTbl[0] @ F0000000 ROMTbl[0][0]: E00FF000, CID: B105100D, PID: 000BB471 ROM Table ROMTbl[1] @ E00FF000 ROMTbl[1][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS ROMTbl[1][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT ROMTbl[1][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB ROMTbl[0][1]: F0002000, CID: B105900D, PID: 000BB9A3 ??? Cortex-M0 identified. Erasing device (nRF51422_xxAA)... J-Link: Flash download: Total time needed: 5.428s (Prepare: 0.045s, Compare: 0.0 00s, Erase: 5.376s, Program: 0.000s, Verify: 0.000s, Restore: 0.006s) Erasing done. J-Link>loadfile "C:\Program Files\Wireshark\extcap\nrf_sniffer_2.0.0-beta-1_5129 6aa\hex\sniffer_pca10028_51296aa.hex" Downloading file [C:\Program Files\Wireshark\extcap\nrf_sniffer_2.0.0-beta-1_512 96aa\hex\sniffer_pca10028_51296aa.hex]... J-Link: Flash download: Flash programming performed for 1 range (14336 bytes) J-Link: Flash download: Total time needed: 0.390s (Prepare: 0.078s, Compare: 0.0 07s, Erase: 0.000s, Program: 0.259s, Verify: 0.000s, Restore: 0.045s) O.K. J-Link>r Reset delay: 0 ms Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit. Setting AIRCR.SYSRESETREQ J-Link>g J-Link>

    then toggled interface toolbar sniffer enable, interface appeared !

Children
No Data
Related