Clone this repo:

Branches

  1. e1f08c9 Fix assert hit next time after dispatch EV_DEMAND_OF_EMISSION failed by Pau Espin Pedrol · 2 years, 8 months ago master
  2. bf318af Initial commit by Pau Espin Pedrol · 3 years, 4 months ago

libosmo-modbus - Osmocom Modbus interface library

This repository contains a C-Language library providing an implementation and interface to manage a Modbus node in a Modbus bus.

This library relies heavily on libosmocore library and it is aimed at being used by applications using that same library.

The Modbus specs can be found here: https://www.modbus.org/specs.php

Currently supported features include:

  • Master and Slave roles
  • RTU backend

TODO:

  • Implement ASCII backend
  • Implement TCP backend
  • Implement missing unicast messages/responses
  • Implement sending exceptions (both to protocol peer and to the upper layer)
  • Implement broadcast messages
  • Add a sniffer util to sniff traffic and store it in a pcap file using libpcap
  • Add a register storage using a rb_tree?
  • Add unit tests