espressif / esp-modbus

ESP-Modbus - the officially suppported library for Modbus protocol (serial RS485 + TCP over WiFi or Ethernet).
Apache License 2.0
100 stars 48 forks source link

port0 and port1 work with modbus RTU two instance of a slave at the same time (IDFGH-7798) #9

Closed dorry3 closed 7 months ago

dorry3 commented 2 years ago

port0 and port1 work with modbus RTU two instance of a slave at the same time?

alisitsyn commented 2 years ago

Hello @dorry3,

The esp-modbus supports one instance of master and one slave of each type to work simultaneously. It is not possible to start two Modbus RTU slaves at the same time.

Silvesterrr commented 1 year ago

Hello @dorry3,

The esp-modbus supports one instance of master and one slave of each type to work simultaneously. It is not possible to start two Modbus RTU slaves at the same time.

"of each type?" So does it means that now it's possible to have for example 1 rtu master, 1 rtu slave and 1 tcp slave simultaneously?

alisitsyn commented 1 year ago

No, it was not clear enough. Only one master and one slave instance can work simultaneously in the application. For example: Slave RTU + Master TCP, Slave RTU + Master RTU, Master RTU + Slave TCP.

alisitsyn commented 1 year ago

the status of it is in progress and will be implemented in stack v2.0.0_beta1.

alisitsyn commented 7 months ago

This functionality is implemented in v2.0.0-beta release: https://github.com/espressif/esp-modbus/discussions/45 This version is able to create several Master and Slave instances in one user application. Each instance has its own communication options. The documentation, examples, tests are part of this initial release.

The issue will be closed. Feel free to reopen the issue or submit a separate issue.