Arduino with Sensor Data Intelligence add-in in D365

Damian Malinowski 21 Reputation points
2022-12-07T18:26:35.967+00:00

Hello,
I have a problem with receiving data sent by Arduino in D365. My device is connecting to Azure IoT Hub using an X509 self-signed certificate, I am able to read that data using IoT Explorer but I can't receive it in the Sensor Data Intelligence add-in using the Machine Status scenario. Everything is configured exactly like in this example but can't see metric key for the newly added sensor:
https://learn.microsoft.com/en-us/dynamics365/supply-chain/sensor-data-intelligence/sdi-scenario-equipment-downtime
I did successful tests using the Raspberry Pi simulator and the only difference here is that I am using a physical device with a different connection method (simulator is using a SAS connection string). I am sending the same JSON message but with a different sensor id, the same one I added to the scenario config.
https://learn.microsoft.com/en-us/dynamics365/supply-chain/sensor-data-intelligence/sdi-set-up-simulated-sensor
I don't understand what could be wrong.

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
373 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SaBo-MSFT 20,016 Reputation points
    2023-03-09T23:56:29.03+00:00

    Hello @Damian Malinowski ,

    Thanks for the additional information.

    It seems like your device is successfully sending messages to Azure IoT Hub through MQTT. However, the Sensor Data Intelligence add-in in D365 is not receiving the data for the newly added sensor.

    Here are some things you can check:

    1. Ensure that the device is sending the data to the correct IoT Hub. Double-check the connection string and the IoT Hub name.
    2. Verify that the device is sending the data in the correct format. The message should have a JSON payload with a "data" field and a "timestamp" field. The "data" field should contain a key-value pair with the sensor name and the sensor reading.
    3. Check the Sensor Data Intelligence add-in configuration. Make sure that the scenario is configured to use the correct sensor name and metric key. Ensure that the metric key is unique and has not been used before.
    4. Verify that the data is being received by the IoT Hub. You can check the IoT Hub metrics to see if any data is being received from your device.
    5. Check the Sensor Data Intelligence add-in logs. You can enable logging for the add-in and check if there are any error messages that could help identify the issue.

    I hope these suggestions help you identify the problem. Let me know if you have any more questions and we are happy to get connected on this issue.

    Please leave your comment in the below section!

    0 comments No comments