I want to use Node-Red to emulate the Modbus slave

I want to use node-red to simulate the modbus slave.
Let me first explain why I have such a strange need.
I'm using an Internet of things cloud platform, which uses the standard modbus protocol. I have a lot of devices in node-red, and I need to upload values and control devices to this cloud platform, so this demand arises.
My node-red currently communicates with the cloud platform by:
Cloud platform → hardware for Ethernet to 485 communication provided by cloud platform →485 to usb →A node-red running in a docker container on an armbian system.
I can currently test the normal communication between node-red and the cloud platform to send and receive data, but there are no nodes in the node market about modbus slaves. Is there any other way to achieve this problem? I don't want to build wheels.
Thank you in advance for your help.

Yes there is.

slave == server

Doesn't this "Internet of things cloud platform" support MQTT? Seems like it not a great platform if not.

MQTT is far simpler and far more extensible than ModBus.

Unfortunately, he does not support MQTT

I tried the node you mentioned, and I found that it might be running as a mainframe rather than a slave
Maybe I did it the wrong way.

There are both client and server capabilities in that node.

The read / write nodes are master/client nodes.

The server nodes are slave/server nodes.

Do you know what you want/need?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.