-1

I'm currently in a planning phase for a project. I want to read some sensor data over Modbus TCP, do some simple calculations on the Arduino and publish the results over MQTT. Which means I have 2 RJ-45s and two different protocols.

Given a Arduino Mega with an Ethernet shield. Does it work if I simply add a network switch and connect the sensor and an internet router to it, and use both protocols in parallel? Or are there any problems running such a thing on only one Arduino?

1

1 Answer 1

1

Does it work if I simply add a network switch and connect the sensor and an internet router to it, and use both protocols in parallel?

Kind of, yes. You just connect both the MODBUS device and the Arduino to the network provided by the router. The Arduino is just a normal network device - the IP address for it allocated by the router, as is the MODBUS device.

Any device can communicate with any other device in a network.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.