{"repo":"simonvetter/modbus","free":true,"listed":false,"github":"https://github.com/simonvetter/modbus","clone":"git clone https://github.com/simonvetter/modbus.git","description":"Go modbus stack (client and server)","language":"Go","stars":442,"topics":["modbus","golang","go","server","client","modbus-tcp","modbus-rtu","modbus-security"],"license":"MIT","category":"dev-tools","readme_excerpt":"Go modbus stack Description This package is a go implementation of the modbus protocol. It aims to provide a simple-to-use, high-level API to interact with modbus devices using native Go types. Both client and server components are available. The client supports the following modes: - modbus RTU (serial, over both RS-232 and RS-485), - modbus TCP (a.k.a. MBAP), - modbus TCP over TLS (a.k.a. MBAPS or Modbus Security), - modbus TCP over UDP (a.k.a. MBAP over UDP), - modbus RTU over TCP (RTU tunneled in TCP for use with e.g. remote serial ports or cheap TCP to serial bridges), - modbus RTU over UDP (RTU tunneled in UDP). Please note that UDP transports are not part of the Modbus specification. Some devices expect MBAP (modbus TCP) framing in UDP packets while others use RTU frames instead. The client support both so if unsure, try with both udp:// and rtuoverudp:// schemes. The server supports: - modbus TCP (a.k.a. MBAP), - modbus TCP over TLS (a.k.a. MBAPS or Modbus Security). A CLI client is available in cmd/modbus-cli.go and can be built with Getting started Using the client Using the server component See: examples/tcp server.go for a modbus TCP example examples/tls server.go for TLS and Modbus Security features Supported function codes, golang object types and endianness/word ordering Function codes: Read coils (0x01) Read discrete inputs (0x02) Read holding registers (0x03) Read input registers (0x04) Write single coil (0x05) Write single register (0x06) Write multiple coil","default_branch":null,"files":null,"tree":[],"storefront":"/r/simonvetter","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/simonvetter/modbus/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}