question

kaushikroy-7024 avatar image
0 Votes"
kaushikroy-7024 asked mode8086 answered

I am not able to communicate between modules on iot edge device

Here is my situation.
135413-image.png


I am not able to send the message from simulated temp sensor to any other module. i tried asa job and echo modules.
my routes are also looking ok
FROM /messages/modules/SimulatedTemperatureSensor/outputs/temperatureOutput INTO BrokeredEndpoint("/modules/asajob/inputs/temperature")
FROM /messages/modules/SimulatedTemperatureSensor/outputs/* INTO BrokeredEndpoint("/modules/EchoonIoTEdge/inputs/Input1")

The only messages i can see are the ones i send to iot hub
FROM /messages/modules/SimulatedTemperatureSensor/outputs/temperatureOutput INTO $upstream

I even tried to turn on runtime log level to verbose. please help me
135432-image.png


azure-iot-edge
image.png (29.6 KiB)
image.png (226.6 KiB)
· 2
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.

Hi, could you elaborate on the steps you have taken to see if the other modules are receiving messages?

0 Votes 0 ·

Hi,

Thanks for your reply. yes i tried many things. like using the echo module to see if im getting anythig. i tried to use iot explorer to see the telemetry messages . i also tried to test the ASAS query using the data, but it does not show any data in the test area below. however, some weird this is, the edge hub screenshot shows its getting messages. i checked the asa job input events metrics and it shows zero input events even tohugh in the log i see some input events. im confused and not able ot run anything.

0 Votes 0 ·

1 Answer

mode8086 avatar image
2 Votes"
mode8086 answered

Hi,
How did you create the "EchoonIoTEdge" module?
If you are using the Microsoft's sample code as is, I think you need to set the route to "input1" instead of "Input1".

like this.
INTO BrokeredEndpoint("/modules/EchoonIoTEdge/inputs/input1")

(Sample URL)
Tutorial: Develop a C# IoT Edge module using Linux containers
https://docs.microsoft.com/en-us/azure/iot-edge/tutorial-csharp-module?view=iotedge-2020-11

Use Visual Studio Code to develop and debug modules for Azure IoT Edge
https://docs.microsoft.com/en-us/azure/iot-edge/how-to-vs-code-develop-module?view=iotedge-2020-11


· 1
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.

aha! let me check these and get back to you.

0 Votes 0 ·