Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem reconnecting after loss of communication #594

Open
MaaG-dA opened this issue Nov 23, 2024 · 0 comments
Open

Problem reconnecting after loss of communication #594

MaaG-dA opened this issue Nov 23, 2024 · 0 comments

Comments

@MaaG-dA
Copy link
Contributor

MaaG-dA commented Nov 23, 2024

Describe the bug

In my modbus network I have 2 devices: id 11 and id12.
When for some reason a communication error occurs, the modbus server loses the query sequence - as a result - it cannot re-establish this communication. Only a restart of the adapter helps.

**Logfile 1: log of correct communication**
modbus.2
2024-11-23 20:05:38.296 debug [DevID_12/holdingRegs] Poll address 0 DONE

modbus.2
2024-11-23 20:05:38.144 debug [DevID_12/holdingRegs] Poll address 0 - 9 registers

modbus.2
2024-11-23 20:05:38.143 debug [DevID_12] Poll start ---------------------

modbus.2
2024-11-23 20:05:37.930 debug [DevID_11/holdingRegs] Poll address 15 DONE

modbus.2
2024-11-23 20:05:37.829 debug [DevID_11/holdingRegs] Poll address 15 - 14 registers

modbus.2
2024-11-23 20:05:37.822 debug [DevID_11/holdingRegs] Poll address 0 DONE

modbus.2
2024-11-23 20:05:37.719 debug [DevID_11/holdingRegs] Poll address 0 - 15 registers

modbus.2
2024-11-23 20:05:37.718 debug [DevID_11] Poll start ---------------------

modbus.2
2024-11-23 20:05:35.722 info Connected to slave 192.168.10.30`

**Logfile 2: log after error occurs**
modbus.2
2024-11-23 20:03:04.726 info Disconnected from slave 192.168.10.30

modbus.2
2024-11-23 20:03:04.725 debug Closing client on purpose.

modbus.2
2024-11-23 20:03:03.925 debug [DevID_12/holdingRegs] Poll address 0 - 9 registers

modbus.2
2024-11-23 20:03:03.925 debug [DevID_12] Poll start ---------------------

modbus.2
2024-11-23 20:03:03.726 debug Cleaning up request fifo.

modbus.2
2024-11-23 20:03:03.726 debug Clearing timeout of the current request.

modbus.2
2024-11-23 20:03:03.726 debug Socket closed with error

modbus.2
2024-11-23 20:03:03.725 warn [DevID_11] Poll error count: 1 code: {"err":"timeout","timeout":4000}

modbus.2
2024-11-23 20:03:03.724 error Client in error state.

modbus.2
2024-11-23 20:03:03.724 error Request timed out.

modbus.2
2024-11-23 20:03:03.723 warn Error: undefined

modbus.2
2024-11-23 20:03:01.139 debug [DevID_11/holdingRegs] Poll address 0 - 15 registers

modbus.2
2024-11-23 20:03:01.138 debug [DevID_11] Poll start ---------------------

modbus.2
2024-11-23 20:02:59.723 debug [DevID_12/holdingRegs] Poll address 0 DONE

modbus.2
2024-11-23 20:02:59.567 debug [DevID_11/holdingRegs] Poll address 0 - 15 registers

modbus.2
2024-11-23 20:02:59.566 debug [DevID_11] Poll start ---------------------

modbus.2
2024-11-23 20:02:59.565 info Connected to slave 192.168.10.30

Versions:

  • Adapter version: modbus v6.3.2
  • JS-Controller version: 6.0.11
  • Node version: 20.18.0
  • Operating system: Armbian v24.8.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant