question

CdricMelanon-3710 avatar image
0 Votes"
CdricMelanon-3710 asked SandervandeVelde42 commented

How can IoT Edge Module send data as a downstream device to Azure IoT Central

I created an Azure IoT Central application with a gateway and 4 downstream devices.

I have a PLC that gather the information from 4 machines. The data from the PLC is sent to an edge database. I have an IoT Edge module that is doing the aggregation and I would like to send the data as a downstream device, so not on the Module output stream.

Basically, what I want is to see the data in the correct downstream device in IoT Central.

How can I do that?

azure-iot-edgeazure-iot-centralazure-iot
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SandervandeVelde42 avatar image
2 Votes"
SandervandeVelde42 answered SandervandeVelde42 commented

Hello @CdricMelanon-3710,

so the custom iot edge module is aggregating data from the PLC/four machines and this aggregated data has to arrive in the cloud as being sent by the actual devices (with their own device registration).

It seems you want to set up an edge gateway that does Identity translation.

44144-image.png

I have not seen any out-of-the-box configuration solution for this.

You will have to program this yourself. A starting point could this example.


image.png (202.1 KiB)
· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Is it compatible with Azure IoT Central. I don't have the connection string of the IoT Hub.

So if I understand well, I use the IoT Edge SDK for the aggregation and all and the device SDK for the communication with the IoT Central? Am I right?

Thank you

0 Votes 0 ·

You need separate security credentials for the devices.

With the SDK, you create a connection to IoT central for one or more devices.

Off-topic: Never use an IoT Hub outside Azure. That key is to be kept in the cloud.

0 Votes 0 ·

How can I create one connection to IoT Central for many devices? Is there a documentation somewhere?

0 Votes 0 ·
Show more comments

Also, when I want to attach my device to the gateway in IoT Central, I get the following error:

Invalid relationship for instanceof dtmi:x3tpblntie:v2 between devices <gateway device ID> and <device ID> with relationshipType undefined

Any idea of what I did wrong?

0 Votes 0 ·

Building an identity translation solution is very delicate due to handling multiple device identities.

Adding IoT Central to the equation makes it even more complex.

Please try to code a custom IoT Central device first. Then migrate that code into a container.

Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer.

0 Votes 0 ·