{"id":36667436,"url":"https://github.com/soldatov-s/go-modbus","last_synced_at":"2026-01-12T10:35:14.590Z","repository":{"id":57495786,"uuid":"175072488","full_name":"soldatov-s/go-modbus","owner":"soldatov-s","description":"Modbus protocol framework","archived":false,"fork":false,"pushed_at":"2019-04-01T20:14:09.000Z","size":2235,"stargazers_count":2,"open_issues_count":0,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-14T03:28:01.622Z","etag":null,"topics":["go","golang","grpc-go","modbus","modbus-tcp","rest-api"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soldatov-s.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-11T19:43:47.000Z","updated_at":"2023-09-10T08:54:42.000Z","dependencies_parsed_at":"2022-08-28T20:02:00.630Z","dependency_job_id":null,"html_url":"https://github.com/soldatov-s/go-modbus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/soldatov-s/go-modbus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soldatov-s%2Fgo-modbus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soldatov-s%2Fgo-modbus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soldatov-s%2Fgo-modbus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soldatov-s%2Fgo-modbus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soldatov-s","download_url":"https://codeload.github.com/soldatov-s/go-modbus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soldatov-s%2Fgo-modbus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","grpc-go","modbus","modbus-tcp","rest-api"],"created_at":"2026-01-12T10:35:14.328Z","updated_at":"2026-01-12T10:35:14.581Z","avatar_url":"https://github.com/soldatov-s.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GoDoc](https://godoc.org/github.com/golang/gddo?status.svg)](https://godoc.org/github.com/soldatov-s/go-modbus)\n[![Build Status](https://travis-ci.org/soldatov-s/go-modbus.svg?branch=master)](https://travis-ci.org/soldatov-s/go-modbus)\n[![Coverage Status](http://codecov.io/github/soldatov-s/go-modbus/coverage.svg?branch=master)](http://codecov.io/github/soldatov-s/go-modbus?branch=master)\n[![codebeat badge](https://codebeat.co/badges/b671ecf0-3e82-4e48-b220-e369d0ced46c)](https://codebeat.co/projects/github-com-soldatov-s-go-modbus-master)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n# go-modbus\n\n## About\nModbus protocol framework\n\n## Supported\n 1. Modbus RTU over TCP\n 2. Modbus Slave mode (Modbus Server)\n 3. Modbus Master mode (Modbus Client)\n 4. Rest server for read/write Modbus Data\n 5. gRPC service (Server/Client)\n 6. Dump Modbus packets\n 7. Function:  \n - Read Coil Status (0x1)\n - Read Discrete Inputs (0x2)\n - Read Holding Registers (0x3)\n - Read Input Registers (0x4)\n - Force Single Coil (0x5)\n - Preset Single Register (0x6)\n - Force Multiple Coils (0xF)\n - Preset Multiple Registers (0x10)\n\n## Installation\n```sh\ngo get github.com/soldatov-s/go-modbus\n```\nNext, build and run the examples:\n\n * [mb-server.go](mb-server/mb-server.go) for an Modbus RTU over TCP server example\n * [mb-client.go](mb-client/mb-client.go) for an Modbus RTU over TCP client example\n\n## Rest Server\n - /coils - Coils (GET and PUT)\n - /d_in - Discrete Inputs (only GET)\n - /hold_reg - Holding Registers (GET and PUT)\n - /in_reg - Input Registers (only GET)\n\nExample Read Holding Registers:\n```sh\ncurl -X GET -i 'http://localhost:8000/hold_reg?addr=0\u0026cnt=5'\n```\n\nExample Write Holding Registers:\n```sh\ncurl -X POST -i http://localhost:8000/hold_reg --data '{\n\"addr\": 0,\n\"data\": [77, 11]\n}'\n```\n\n## More Documentation\n\nMore documentation about Modbus is available on the\n- [Wiki](https://en.wikipedia.org/wiki/Modbus)\n- [Modbus Technical Specifications](http://www.modbus.org/specs.php)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoldatov-s%2Fgo-modbus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoldatov-s%2Fgo-modbus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoldatov-s%2Fgo-modbus/lists"}