FreeMODBUS
A portable MODBUS ASCII/RTU and TCP implementation
A portable MODBUS ASCII/RTU and TCP implementation
The Linux port adds Modbus RTU/ASCII slave functionality to an embedded Linux device. It should be possible to run it on uCLinux, a Linux distribution tailored for embedded systems. In addition it was tested on Redhat Enterprise Linux 4.
The basic operation is the same as for the other embedded platforms. One typically creates a thread in which the main Modbus polling loop function is called. For a Modbus RTU/ASCII example see demo.c.
Recently the TCP port has been added which can be found in the directory demo/LINUXTCP. This port was contributed and is therefore untested.