stephane/libmodbus
A Modbus library for Linux, Mac OS, FreeBSD and Windows observed · 2026-08-28
Health v2 · maintenance only
81/100
- Activity 90
- Release rhythm 59
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 308.5
- age_days: 6068
- days_rel: 62
- days_push: 62
- n_releases_24m: 3
Adoption not part of the score
4239 stars · 1950 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
libmodbus is a free, dependency-free C library for sending and receiving data with devices that speak the Modbus protocol over serial (RTU) or Ethernet (TCP). It runs on Linux, macOS, FreeBSD, QNX, Windows, and even MCUs via the Embox RTOS.
Use cases
- communicate with a Modbus RTU device over a serial port
- read registers from a PLC over Modbus TCP
- implement a Modbus server/slave in C
- integrate industrial sensors into a Linux application
- poll Modbus devices on an embedded MCU
- build a Modbus master client for Windows
When to choose
- you need a mature, well-audited, dependency-free C implementation of Modbus
- you need cross-platform RTU and TCP support including embedded targets
- you want a library packaged in major Linux distributions with good documentation
When to avoid
- you need protocols beyond Modbus (e.g. CANopen, EtherCAT, PROFINET)
- you want a high-level managed-language binding without writing C
- LGPL-2.1 licensing constraints are unacceptable for your product (consider the commercial promodbus license instead)
Facets
library · maturity stable
sdk networking developer-tools iot embedded-systems developer-tools windows bsd cross-platform c embedded modbus rtu modbus-tcp serial-communication industrial-automation plc scada automation linux macos
2 sources
- readme: https://github.com/stephane/libmodbus · fetched 2026-08-28 · dddac3ecc487
- homepage: http://libmodbus.org · fetched 2026-08-29 · ba63636b00d2
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| stephane/libmodbus | main | 81 |
For agents
markdown · JSON · MCP: product_card(name="stephane/libmodbus")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem