Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Modbus TCP: "Connection reset by peer" libmodbus

Modbus TCP: "Connection reset by peer" libmodbus 3 years 6 months ago #10773

  • Skallwar
  • Skallwar's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
Hi,

I'm building a 3D simulation with Godot. In the simulation there is 2 Modbus TCP devices that Godot exposes on localhost (127.0.0.1) on 2 different ports (5010 and 5040) and I want to control them using ProviewR.

With a build of ProviewR v5.7.1, my simulation works.

Yesterday I decided to use ProviewR 5.7.1 Ubuntu release package...
...and it does not work anymore :(

When running the simulation, libmodbus keeps returning "Connection reset by peer".

I have no idea what to do to debug this issue.

Any idea ?

GodotDemo source code
More context
Last Edit: 3 years 6 months ago by Skallwar.
The administrator has disabled public write access.

Modbus TCP: "Connection reset by peer" libmodbus 3 years 6 months ago #10780

  • Skallwar
  • Skallwar's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
Hi,

It's me again.

I have rebuild ProviewR version 5.7.1 and 5.7.0 but that not working either.

I have some Wireshark traces. It seems that ProviewR resets the connection every few packets and try again with an other port (old port + 2)

I have attached the trace. Sort by protocol and look at TCP packets

File Attachment:

File Name: modbus-trace.pcapng.gz
File Size: 4 KB
The administrator has disabled public write access.

Modbus TCP: "Connection reset by peer" libmodbus 3 years 6 months ago #10782

  • Bruce@Spang
  • Bruce@Spang's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 41
  • Karma: 0
Those are non-standard ports for ModbusTCP - but if you see SOME complete two-way traffic at all, that would not seem to be the problem.

Is your simulation slow responding (and by the way - is it the slave or the master on ModubusTCP??)?

"Reset by peer" often means a blocked port or protocol.
The administrator has disabled public write access.

Modbus TCP: "Connection reset by peer" libmodbus 3 years 6 months ago #10784

  • Skallwar
  • Skallwar's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
My simulation is quick responding, access to value are asynchronous so as soon as a modbus request is received, a response is sent.

I running this configuration:
I only have one input for the sensor but I have

ModbusMaster
| ________> ModbusSlave (Sensor)
|______> ModbusModule
|________> Signals
Same layout for the "pusher"
Last Edit: 3 years 6 months ago by Skallwar.
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 8.637 seconds