The results of machine learning predictions are sent back to the local machine

pohan 26 Reputation points
2021-07-04T13:10:18.037+00:00

Build IoT Edge and deploy a machine learning model to predict data, and send the prediction results back to the local machine.

The C2D of the teaching file does not seem to solve my problem.

The idea is

  1. The IoT Hub sends data to the Stream analytics service.
  2. The Stream analysis service filters out exceptions and sends the exception messages to the Function service.
  3. Write HTTP Post to the local machine in the Function service.

I don’t know if this is okay?

Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
405 questions
1 vote

Accepted answer
  1. Sander van de Velde 16,041 Reputation points MVP
    2021-07-06T19:55:01.353+00:00

    Hello @pohan ,

    So it seems you want to send Azure IoT Edge data to Azure Stream Analytics, make decisions in the cloud and send an action back to the device.

    This is perfectly fine and achievable using Azure IoT Cloud2Device communication.

    Yes, you need to send exception? messages to an Azure Function. You need to pass the device name to the Azure Function too so the Azure Function knows which device to send the C2D message to.

    To reach the Azure IoT Edge you need to instrument one of the modules on the edge device with one of these two ways to communicate:

    1. Direct Method. You connect directly to the edge device module and wait for an answer (blocking call)
    2. Desired properties. You set the desired property in a fire-and-forget way. If the device is connected to the internet, it will pick up the desired property. This is non-blocking. If the device connects at a later moment, it will still get the desired property.

    An example of a direct method in a module is seen here. You have to make this call in the Azure function.

    An example of supporting desired properties is seen here. Here is an example of patching the desired properties (the example should work for Azure IoT Edge modules too).

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful