NEED HELP WITH FOTA VIA DEVICE PROVISIONING ON MY NRF7002DK - AZURE FOTA - IOT HUB

Hello, I'm trying to do the fota via azure IoT hub, except I can't, I don't know if I'm doing it wrong because I followed the doc   Azure FOTA  https://shorturl.at/fsAJ1 ainsi que  Azure IoT Hub https://shorturl.at/eoT57 , maybe I missed something.

sdk 2.5.99-dev1

I would like to add this, when try to download the zephyr.bin on my azure

<err> download_client: Unable to connect, errno 113
[00:00:44.678,955] <err> fota_download: Download client error
[00:00:44.689,544] <err> azure_fota: FOTA download failed

If you need more information, I'm open, thank you, I hope to find a solution :)

Parents
  • Hi,

    When you repeatedly edit the ticket, it makes it hard for us to follow the history and development of the issue.

    In one of your previous images, it looked like you were able to download the new image. Has that changed, or do I remember the old image incorrectly?

    113 is ECONNABORTED, with the explanation "Software caused connection abort". My first guess is that something is wrong with the credentials you have written to the device.

    Best regards,

    Didrik

  • Hi Didrik,

    I hope this message finds you well. I'm reaching out to discuss the Azure IoT Hub + DPS + FOTA sample that your team provided. We appreciate your efforts in sharing this resource. However, we're encountering some challenges in implementing it effectively.

    Our team has been diligently working to follow the sample, particularly regarding the use of DPS as the provisioning point and the FOTA for firmware updates. Unfortunately, the current documentation doesn't seem to provide the level of detail necessary for us to replicate the process successfully.

    To enhance our understanding and expedite the deployment, it would be immensely helpful if you could confirm that someone from your team has successfully tested this sample. Could you try it yourself? Moreover, could you provide a step-by-step guide detailing the Azure configurations and processes your team followed? Specific areas where we require further clarity include:

    1. The Kconfig settings necessary for integrating with DPS and FOTA.
    2. The exact Azure certificates used in the setup, what certificate and rootCA were used where.
    3. The configurations related to CONFIG_FOTA_SEC_TAG, CONFIG_MQTT_HELPER_SEC_TAG, and CONFIG_MQTT_HELPER_SECONDARY_SEC_TAG.

    Given the current state of the documentation, I'm concerned that others attempting to use your sample might face similar roadblocks. Comprehensive guidance would not only benefit our team but also enhance the overall utility of the sample for everyone involved.

    If providing such detailed information is not feasible, we might consider developing a custom wrapper around the Azure library to meet our needs. However, I'm optimistic that with your team's expertise and support, we can effectively utilize the existing resources.

    Thank you in advance for your attention to this matter. I look forward to your response and any additional insights your team can offer to facilitate a smoother implementation process on our end.

    Best regards,
    Actif

  • Here's my configuration for FOTA and DPS

    CONFIG_AZURE_IOT_HUB_DPS=y


    # ID scope can be omitted and supplied at runtime
    CONFIG_AZURE_IOT_HUB_DPS_ID_SCOPE=""
    CONFIG_AZURE_IOT_HUB_HOSTNAME=""

    #We use the device ID in our case
    CONFIG_AZURE_IOT_HUB_SAMPLE_DEVICE_ID_USE_HW_ID=n
    CONFIG_AZURE_IOT_HUB_DPS_REG_ID="device-0000002"


    CONFIG_MQTT_HELPER_PROVISION_CERTIFICATES=y
    CONFIG_MQTT_HELPER_SEC_TAG=10
    CONFIG_MQTT_HELPER_SECONDARY_SEC_TAG=11
    CONFIG_MQTT_HELPER_STACK_SIZE=16384
    CONFIG_TLS_MAX_CREDENTIALS_NUMBER=6

    # FOTA
    CONFIG_AZURE_FOTA=y
    CONFIG_AZURE_FOTA_TLS=y
    CONFIG_AZURE_FOTA_APP_VERSION_AUTO=n
    CONFIG_AZURE_FOTA_APP_VERSION="v0.0.0"

    #FOTA TAG
    CONFIG_AZURE_FOTA_SEC_TAG=10

    # Change the security tag for the tag where certificates are provisioned
    # for the server where the FOTA image is hosted
    #
    CONFIG_BOOTLOADER_MCUBOOT=y
    CONFIG_FOTA_DOWNLOAD=y
    CONFIG_DFU_TARGET=y
    CONFIG_MCUBOOT_IMG_MANAGER=y
    CONFIG_IMG_MANAGER=y
    CONFIG_STREAM_FLASH=y
    CONFIG_FLASH_MAP=y
    CONFIG_FLASH=y
    CONFIG_IMG_ERASE_PROGRESSIVELY=y
    CONFIG_DOWNLOAD_CLIENT=y
    CONFIG_DOWNLOAD_CLIENT_STACK_SIZE=4096

    This is how my certificate files are reported
    ca-cert-2.pem
    private-key.pem
    ca-cert.pem
    client-cert.pem

    You can see the tags
    CONFIG_MQTT_HELPER_SEC_TAG=10
    CONFIG_MQTT_HELPER_SECONDARY_SEC_TAG=11

    and my FOTA TAG
    CONFIG_AZURE_FOTA_SEC_TAG=10
    at 10 or 11, it doesn't work any more.

    I feel like I'm missing something, I'm not sure what.

  • Do I need to do any configuration on  azure DPS and blobstorage, like a link or something? If so, which ones, as I don't know because I've just created a blobstorage as a resource and put its link  and the path of my .bin in my twin device.

  • I think we'll need some more information about your blob storage and device twin. You can create a new private ticket and share the content of the firmware object in the device twin, and then we can take it from there.

  • I JUST CREATE A PRIVATE TICKET, I HOPE TO GET A REPLY AS SOON AS. 

    THANKS!

Reply Children
No Data
Related