node-modbus-serial icon indicating copy to clipboard operation
node-modbus-serial copied to clipboard

What is the diff between TcpPort and TcpRTUBufferedPort

Open yarosdev opened this issue 4 years ago • 3 comments

Could you explain use cases ?

yarosdev avatar Mar 05 '21 13:03 yarosdev

Thanks for the question :+1:

TcpPort, is naive, it expects the complete modbus frames to come in one TCP packet, this is usually the case in small networks. TcpRTUBufferedPort can buffer data coming over TCP channel and build complete modbus frames from several disconnected TCP , this is useful in bigger network that split the message over several routes.

use cases: TcpPort - use on small networks TcpRTUBufferedPort - use on large networks, or if TcpPort has lots of errors related to receiving broken modbus frames (e.g. CRC erros).

yaacov avatar Mar 05 '21 13:03 yaacov

It seems that TelnetPort is also buffered. Why dont you called it TelnetRTUBufferedPort ?

yarosdev avatar Mar 06 '21 11:03 yarosdev

Why not have only a buffered version, what is the advantage of TcpPort over its buffered counter part?

AuspeXeu avatar Jan 27 '23 15:01 AuspeXeu