Hi all, I am trying to use the nrf52840 dongle with wireshark, I was having permission errors trying to open the device in the program section of the nrf desktop suite running on Ubuntu 20 and followed the suggestions found at https://devzone.nordicsemi.com/f/nordic-q-a/52546/nrf-connect-linux/211625#211625 , adding the user to the dialout group did not do anything, the method using https://github.com/NordicSemiconductor/nrf-udev and https://github.com/NordicSemiconductor/nrf-udev/releases made the dongle visible and readable. In the program section of the desktop suite I selected to add the hex nrf802154_sniffer_dongle.hex and ran the 'write' option. During or after it ran the write option i recieved the following log
2020-10-17T15:14:09.904Z INFO Parsing HEX file: /home/david/nRF-Sniffer-for-802.15.4/nrf802154_sniffer/nrf802154_sniffer_dongle.hex2020-10-17T15:14:10.036Z INFO File was last modified at 10/16/2020, 11:51:25 PM2020-10-17T15:14:15.204Z INFO Using USB SDFU protocol to communicate with target2020-10-17T15:14:15.271Z INFO Protocol Version: 1 found2020-10-17T15:14:15.306Z INFO Hardware: 52840 found2020-10-17T15:14:15.492Z INFO Firmware: Bootloader found2020-10-17T15:14:15.494Z INFO Firmware: Application found2020-10-17T15:14:51.577Z INFO Does not need to be reloaded: /home/david/nRF-Sniffer-for-802.15.4/nrf802154_sniffer/nrf802154_sniffer_dongle.hex2020-10-17T15:14:51.592Z INFO Hash is generated by SHA2562020-10-17T15:14:51.605Z INFO Performing DFU. This may take a few seconds2020-10-17T15:14:51.659Z INFO DFU procedure starts. This may take a few seconds.2020-10-17T15:14:56.693Z INFO DFU for Application completed successfully!2020-10-17T15:14:56.694Z INFO 0 dfu package(s) left.2020-10-17T15:14:56.694Z INFO Waiting for device2020-10-17T15:15:01.697Z ERROR Reopen device failed: Timeout while waiting for device C621B478D146 to be attached and enumerated2020-10-17T15:15:01.698Z INFO Nordic DFU Trigger Interface was not found.Please physically reset device.2020-10-17T15:15:01.718Z ERROR Device not found due to failure during DFU2020-10-17T15:15:25.178Z INFO Target device closed.
After this I had to press the reset button on the dongle for it to be recognized, but it did appear to show the hex in the dongles memory. However, I cannot find any protocol in wireshark despite having added the appropriate python script to the wireshark extcap directory (I have wireshark working successfully with the nrf BLE protocol using a dongle from Adafruit, so the pyserial and all that is in order) and wireshark does not see the dongle.
I'm very new to working with the wireless protocols and wireshark and the associated hardware so I'm not really sure where the real issue lies in this, if I've overlooked any imortant information please let me know.
Sorry it took so long to for me to get back about this, I have looked into the protocol starting with the link you provided. Again, I'm not very familiar with wireshark yet and am learning as I go but…
Have you tried running Wireshark as root, or have you changed the user permission for Wireshar as suggested in the install guide (ref. Installing Wireshark and extcap plugin)? It sounds like you have done everything else correctly. The programming log looks as expected.
Thanks for the response Vidar, yes I have done both of those, changing the user permissions didn't make any difference that I could tell. From setting up the Bluetooth LE dongle from Adafruit I did find out that running wireshark as sudo can make a difference but, it does not do anything to the protocols to choose from.
The python file is in the excap folder, and has its permission set to allow executing as a program, I hit the 'refresh interfaces' button in the capture menu, but I'm still not getting the selection for 'nRF Sniffer for 802.15.4'. I really don't know what I missed, I did the j-link and command line tools. I'm just stuck right now.
Thanks for any help,
Please try to program nrf802154_sniffer_dongle.hex from the latest release tagged with v0.7.2. It seems like there may be a problem with the one on Master. The green led should start to blink once you have programmed it. You should also see a new ttyACMx device popping up when the dongle is plugged in (ls /dev/ttyACM*)
Hi Vidar, I did that, and it does show up as /dev/ttyACM0 but there is still no protocol listed for it in wireshark, with only a mouse dongle and the nrf dongle plugged in when I open wireshark there are 3 that show activity, but the same 3 show the same activity without the nrf dongle plugged in. The 2 that are closest in terms of name are 'nflog' (no activity) and 'nfqueue' (also no activity), although I don't think those are actually related since it is nf and not nrf. From previously installing the Bluetooth LE protocol things it's not doing anything when I move the python scripts to the extcap folder and refresh the devices. I tried moving the entire nRF-Sniffer-for-802.15.4 folder into the extcap folder then running 'sudo python3 setup.py install' and it seems sucessful but made no differences, I also tried only moving the nrf802154_sniffer.py file, and moving the nrf802154_sniffer.py and __init__.py files to the folder. None of these got any new activity on the menu of protocols on the open page of wireshark.
Can you try opening wireshark from the terminal and see if any errors are logged. I tested this now on my setup which is also running Ubuntu 20 (LTS)