NordicSemiconductor / IOS-nRF-Toolbox

The nRF Toolbox is a container app that stores your Nordic Semiconductor apps for Bluetooth Low Energy in one location.
https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Toolbox
BSD 3-Clause "New" or "Revised" License
590 stars 205 forks source link

Question: Obtain device hardware and firmware versions in DFU mode #118

Closed Dario-GoldenSpear closed 2 years ago

Dario-GoldenSpear commented 2 years ago

DFU Bootloader version (please complete the following information):

Device information (please complete the following information):

Your question we have an iOS app based on this project. We were able to:

Question: We would like to obtain the device hardware and firmware revision to obtain the latest .zip firmware package from the backend. Is it possible to do that in DFU mode (no buttonless) from the iOS application? and if so, how do we get that information?

ADDITIONAL NOTES: I've tried exposing the required data by setting this: #define NRF_DFU_PROTOCOL_REDUCED 0

in: .../nRF5_SDK_17.0.2_d674dde/examples/dfu/secure_bootloader/pca10040_s132_ble/config/sdk_config.h(1252

which in turn enables a couple of methods (that afaik may be part of the solution to expose the required data): static void on_hw_version_request(nrf_dfu_request_t const * p_req, nrf_dfu_response_t * p_res) static void on_fw_version_request(nrf_dfu_request_t const * p_req, nrf_dfu_response_t * p_res)

in: ...nRF5_SDK_17.0.2_d674dde/components/libraries/bootloader/dfu/nrf_dfu_req_handler.c(107)

philips77 commented 2 years ago

Duplicate of https://github.com/NordicSemiconductor/IOS-DFU-Library/issues/462.