Comments (7)
Thank you for reporting this feature request.
The Device Firmware Upgrade (DFU) process supported by nrfutil
is a feature for deployed products where firmware can be automatically or semi-automatically updated by end-users in a secure way. Most devices connected to internet (like smartphones, home automation devices, etc) sometimes ask to update their firmware. DFU from nrfutil is a feature that helps to implement secure firmware update procedures in end products. It involves security operations to ensure that the firmware being updated was created by the device vendor, to prevent firmware version rollback, etc.
nRF Sniffer for 802.15.4 is intended to be a simple development tool. It is not intended to be deployed as a part of final products. Because of that DFU or FOTA are overkill for this tool and these features are not planned in its roadmap.
The idea is that an engineer that intends to use the sniffer, uses nrfjprog (from nRF Command Line Tools package) or nRF Connect for Desktop to flash a sniffer device. If an engineer is interested in flashing newer firmware version, he/she should use nrfjprog or nRF Connect for Desktop again. However, the firmware is released rarely and because of that flashing newer firmware version is not an operation performed often by users.
from nrf-sniffer-for-802.15.4.
@cederom, I've just read in NordicSemiconductor/pc-nrfutil#335 that you are interested in Bluetooth protocol. Please note that nRF Sniffer for 802.15.4 is a sniffer of 802.15.4 packets. 802.15.4 and Bluetooth are incompatible radio protocols.
Have a look at this tool to sniff Bluetooth protocol: https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE
As a result I got umodem device up and running :-)
ugen0.12: <ZEPHYR nRF Sniffer for Bluetooth LE> at usbus0 umodem0 on uhub0 umodem0: <ZEPHYR nRF Sniffer for Bluetooth LE, class 0/0, rev 2.00/2.03, addr 30> on usbus0 umodem0: data interface 1, has CM over data, has no break
It seems that you have nRF Sniffer for Bluetooth LE running. It is other tool than nRF Sniffer for 802.15.4. I believe you are interested in nRF Sniffer for Bluetooth LE, not 802.15.4.
However, if you need any help with nRF Sniffer for 802.15.4, please add your questions in this repository, or reopen this issue.
from nrf-sniffer-for-802.15.4.
NordicSemiconductor/pc-nrfutil#335
from nrf-sniffer-for-802.15.4.
It seems I made the debug package with a blind guess of parameters just to make things work.. but it would be nice to have this nice DFU ZIP package provided too for platforms where only nrfutil
is available :-)
nrfutil pkg generate --debug-mode --application sniffer_nrf52840dongle_nrf52840_7cc811f.hex --hw-version 52 --sd-req 0 sniffer_nrf52840dongle_nrf52840_7cc811f.zip
Failed to import ecdsa, cannot do signing
|===============================================================|
|## ## ### ######## ## ## #### ## ## ###### |
|## ## ## ## ## ## ## ### ## ## ### ## ## ## |
|## ## ## ## ## ## ## #### ## ## #### ## ## |
|## ## ## ## ## ######## ## ## ## ## ## ## ## ## ####|
|## ## ## ######### ## ## ## #### ## ## #### ## ## |
|## ## ## ## ## ## ## ## ### ## ## ### ## ## |
| ### ### ## ## ## ## ## ## #### ## ## ###### |
|===============================================================|
|You are generating a package with the debug bit enabled in the |
|init packet. This is only compatible with a debug bootloader |
|and is not suitable for production. |
|===============================================================|
|===============================================================|
|## ## ### ######## ## ## #### ## ## ###### |
|## ## ## ## ## ## ## ### ## ## ### ## ## ## |
|## ## ## ## ## ## ## #### ## ## #### ## ## |
|## ## ## ## ## ######## ## ## ## ## ## ## ## ## ####|
|## ## ## ######### ## ## ## #### ## ## #### ## ## |
|## ## ## ## ## ## ## ## ### ## ## ### ## ## |
| ### ### ## ## ## ## ## ## #### ## ## ###### |
|===============================================================|
|You are not providing a signature key, which means the DFU |
|files will not be signed, and are vulnerable to tampering. |
|This is only compatible with a signature-less bootloader and is|
|not suitable for production environments. |
|===============================================================|
Zip created at sniffer_nrf52840dongle_nrf52840_7cc811f.zip
Flashed it with
nrfutil --verbose dfu usb-serial -p /dev/cuaU0 -pkg sniffer_nrf52840dongle_nrf52840_7cc811f.zip
Failed to import ecdsa, cannot do signing
[####################################] 100%
Device programmed.
As a result I got umodem device up and running :-)
ugen0.12: <ZEPHYR nRF Sniffer for Bluetooth LE> at usbus0
umodem0 on uhub0
umodem0: <ZEPHYR nRF Sniffer for Bluetooth LE, class 0/0, rev 2.00/2.03, addr 30> on usbus0
umodem0: data interface 1, has CM over data, has no break
The OS is FreeBSD :-)
FreeBSD 0xCFMX4 12.2-RELEASE FreeBSD 12.2-RELEASE r366954 GENERIC amd64
from nrf-sniffer-for-802.15.4.
Hello @hubertmis and thank you for quick response! Whoops, so this 802.15.4 sniffer is something different than BT sniffer, sorry and thanks for pointing this out, my first steps here :-)
If possible I am still interested in a DFU ZIP for DONGLE for this 802.15.4 (also for the BT project) :-)
There is only nrf802154_sniffer_dongle.hex
provided and this cannot be uploaded to the DONGLE without external debug probe while there is a still DFU mode that we could use, right?
nRF Connect is not available on my platform so I need to use nrfutil
and I stick only to the Open-Source :-)
from nrf-sniffer-for-802.15.4.
Well I can talk to the 802.15.4 sniffer over minicom terminal! I have generated DFU ZIP exactly the same way as described above. This probably means a problem with BT sniffer firmware. Maybe --sd-req
needs something else than 0
.
Why there is only one dedicated repo on github for 802.15.4 while not for BT? These solutions are very similar from the computer perspective :-)
Thank you for your feedback and time @hubertmis :-)
from nrf-sniffer-for-802.15.4.
If possible I am still interested in a DFU ZIP for DONGLE for this 802.15.4 (also for the BT project)
I've explained above why DFU is overkill for the sniffer project. We don't plan to add such feature.
this cannot be uploaded to the DONGLE without external debug probe
You can upload firmware to dongle using nRF Connect for Desktop. You don't need debug probe or nrfutil.
nRF Connect is not available on my platform so I need to use
nrfutil
Perhaps that's the source of the problem. I recommend to create a devzone ticket to run nRF Connect for Desktop on your platform.
Maybe
--sd-req
needs something else than0
.
I can't help you with bluetooth sniffer. Here again I recommend to create a devzone ticket.
Why there is only one dedicated repo on github for 802.15.4 while not for BT?
The goal of these tools is similar, but the implementation is different. We are in the process of unification distribution methods of all tools delivered by Nordic. Currently some tools are deployed to GitHub, while other are not.
from nrf-sniffer-for-802.15.4.
Related Issues (20)
- LED indicators need to be described in readme.md HOT 1
- Remove DFU Trigger Library from the firmware HOT 5
- nRF52840-DK not recognized HOT 1
- Missing packets using the nRF52840 Dongle HOT 1
- Channel always goes to 11 after a reset in Wireshark with no way to change. HOT 3
- Could not Capture from multiple hardware interfaces on Windows HOT 1
- [question] 802.15.4 capabilities HOT 3
- Segfault on capture start Wireshark 3.2.0 HOT 2
- Q: Is the source code for the hex files available? HOT 14
- FreeBSD umodem detect baudrate HOT 5
- Startup time is too long when start capturing packets HOT 2
- sniffer not support xiaomi phone's BLE packet HOT 1
- Firmware for other devkits, PCA10100
- Linux, Python, error after channel switching HOT 1
- nRF5340 DK support? HOT 1
- nRF52840 support for tshark? HOT 2
- nrf802154_sniffer.py doesn't exit on macOS when the capture is stopped HOT 8
- Cannot capture on a custom board with external JLINK! HOT 1
- `SyntaxWarning: invalid escape sequence '\s'` when compiling RCV_REGEX HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nrf-sniffer-for-802.15.4.