Multiple clients on the RS485 bus #1535
-
Hi, On one equipment, there is only one RS485 bus on which there already are one client and one server. The existing client polls every X seconds and then waits for Y seconds. I would like to know if there is a clean solution to wait until the bus is free in order to send requests during the idle time. while True:
time.sleep(1)
rr = client.read_holding_registers(some parameters)
if not rr.isError():
break
decoder = BinaryPayloadDecoder.fromRegisters(rr.registers)
... But to me this solution isn't proper. Would there be a better solution? Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
No there are no clean solution, because the modbus protocol is designed to have only one client (called master in the protocol spec). |
Beta Was this translation helpful? Give feedback.
No there are no clean solution, because the modbus protocol is designed to have only one client (called master in the protocol spec).