Azure IoT Hub Device Update deployment failed with Arduino ADU

Rene Prins 46 Reputation points
2024-01-03T00:09:04.1166667+00:00

Hi,

I do have an Azure IoT Hub with several devices, I'm using the Azure SDK for C Arduino (Azure IoT Adu ESP32 example from Github). I followed the instructions exactly as described in the readme. Unfortunately, if I'm deploying an update through Azure IoT hub > Devices, I'm getting an Deployment failed status. When I add an Log Upload Operation to my Device Update I do see for every device that the error reason is "Device or Module does not support a diagnostics interface".

What does this mean? I'm unable to verify what this is. If I'm flashing the device from my local computer, it's working fine. The only code change is a version upgrade.

Used device: esp32c3

Azure IoT Hub: Standard tier

Azure Device Update is enabled

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,127 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. LeelaRajeshSayana-MSFT 13,471 Reputation points
    2024-01-03T02:16:54.0633333+00:00

    Hi @Rene Prins Greetings! Thank you for posting the question on this forum.

    "Device or Module does not support a diagnostics interface".

    The remote log diagnostics is not supported by all the devices inherently. The device needs to implement Diagnostic interface and be able to upload files to Azure Blob storage container for the log upload operation to work. Please refer the following articles for more details on this.

    Coming to the main issue, I see that you are encountering the issue when deploying the update. Could you please confirm the following

    1. Are you able to Upload the Device Update manifest to you IoT Update without any issues using the steps provided in the article Import an update to Device Update for IoT Hub
    2. Once you update the manifest file, are you able to see the any pending deployments on the Groups and deployments tab as indicated in the following image Screenshot that shows the Groups and Deployments tab.

    Please also refer to the common troubleshooting steps for issues when Deploying an update and see if it helps.

    Kindly keep us posted on your findings and share the above requested information to help us better assist you with the issue.

    0 comments No comments

  2. Rene Prins 46 Reputation points
    2024-01-03T10:43:37.9133333+00:00

    Thanks for your quick reply.

    Understood the diagnostic interface. Coming to your questions:

    Yes, I followed this manual to do a deployment. I connect my esp32 device and opening the serial monitor, when I do a deployment I see in the serial monitor that the update is downloading to the device (note: I only did a version upgrade of the package). The device is restarting after the update and then I'm seeing this in the serial monitor:

    User's image

    In the 'Groups and Deployments' tab I do see that the device is on the latest update. When I open the ADUGroup I do see this:

    device list

    The installed update is version 1.1.3 from the Device Update and thats my latest version, but the column on latest update says 'No' and the deployment status is Failed.

    Device ID and Device Key are valid.