Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Sniffer on OSX - revisited

It looks like the last discussion of Sniffer on Devzone was 2-3 yrs ago.

I’ve ordered the nRF Dongle and will download the Windows-based nRF Sniffer app.

i can run this with WireShark on a Windows VM on my Mac, though I would like a Mac OSX option.

- Any news on that front?

- Any way the Bluetooth hardware built into the MacBook could serve a Mac Sniffer app?

thanks!

  • Actions:

    pyserial 3.4.x does not seem to work on OS X. OS X 10.13.3 has been successfully tested only with pyserial 3.2.1.
    You need to be on pyserial 3.2.1

    Have you verified that the jlink 6.16c is loaded on the jlink emulator IC on the nRF5x-DK ? Use the troubleshooting step "nRF Sniffer occasionally works and appears unstable" in the nRF Sniffer v2.1 user guide and verify using jlinkconfig.exe that the emulator is also downgraded correctly to 6.16c.

    Verify that Jlink emulator firmware is correct version, using the section "Verify that Jlink emulator firmware is correct version" in the nRF Sniffer v2.1 uder guide.

  • Can you summarize your versions so I can look at it.

    OS Version:
    Wireshark version:
    Python version:
    Pyserial version:

    Segger jlink version on PC:
    Segger jlink version or build date on the jlink emulator on nRF5x-DK:

    nRF Sniffer version:

    PCA board number: 

    =

    Python 32 bit or 64 bit:

    Use: 

    import ctypes
    ctypes.sizeof(ctypes.c_void_p)

    8 -> 64 bit
    4 -> 32 bit

  • Thanks!

    Here's the config.   ?????? where I don't know how to look for it

    OS Version:            OSX 10.13.3 (High Sierra)
    Wireshark version: 2.4.5
    Python version:      2.7.14
    Pyserial version:    3.2.1

    Segger jlink version on PC:    6.16c
    Segger jlink version or build date on the jlink emulator on nRF5x-DK:               ??????

    nRF Sniffer version:   nrf_sniffer_2.0.0-beta-1_51296aa

    PCA board number:    
    - PCA10040 (Dev Kit)
    - PCA10031 (Dongle)

    =

    Python 32 bit or 64 bit:                                 ??????

    Use: 

    import ctypes                                                ??????
    ctypes.sizeof(ctypes.c_void_p)                    ??????        

    8 -> 64 bit                                                     ??????
    4 -> 32 bit                                                     ??????

  • Segger jlink version or build date on the jlink emulator on nRF5x-DK: 

    Look at the nRF Sniffer User guide v2.1 section "Verify that Jlink emulator firmware is correct version"

    =

    Find if the python program running on your computer is 32 bit or 64 bit:

    type "python" to enter the python interpreter

    Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    > import ctypes
    > ctypes.sizeof(ctypes.c_void_p)
    4

  • I don see the bit-ness of the python from this, though the physical machine is a 64-bit, intel-based Mac, less than a year old.

    Davids-MacBook-Pro-2:~ davidelvig$ python
    Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 12:01:12) 
    [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> 
    

    and ctypes...

    >>> import ctypes
    >>> ctypes.sizeof(ctypes.c_void_p)
    8
    >>> 

    and jlinkexe in the OSC terminal app shows:

    Davids-MacBook-Pro-2:~ davidelvig$ jlinkexe
    SEGGER J-Link Commander V6.16c (Compiled Jun 16 2017 18:19:39)
    DLL version V6.16c, compiled Jun 16 2017 18:19:20
    
    Connecting to J-Link via USB...O.K.
    Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jul 24 2017 17:30:12
    Hardware version: V1.00
    S/N: 682504093
    VTref = 3.300V
    
    
    Type "connect" to establish a target connection, '?' for help
    J-Link>
    

    Thanks a bunch for sticking with this!

    Dave

Related