pymodbus icon indicating copy to clipboard operation
pymodbus copied to clipboard

Opening twice a port with a sync RTU client

Open dacalin opened this issue 7 years ago • 3 comments

Versions

  • Python: 3
  • OS: mac
  • Pymodbus: 2.2
  • Modbus Hardware (if used):

Pymodbus Specific

  • Server: rtu - sync
  • Client: rtu- sync

Description

Hello,

I have a service running as a master device (sync, rtu, rs485). Now, I want to create another service in the same machine and in the same port. I know I need to implement a communication mecanism between the two services in order to ensure that only one talk at the same time.

But...Is it posible or could i get errors because I am opening the port twice in different services... I make a few test and it seems like it works.

dacalin avatar May 23 '19 18:05 dacalin

You can technically use the same port but as you have correctly mentioned you need to make sure only one is talking on the bus at any given point of time.

dhoomakethu avatar May 27 '19 14:05 dhoomakethu

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Mar 03 '21 02:03 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Mar 08 '21 02:03 github-actions[bot]