LibModbus is a simple modbus toolbox for Linux. LibModbus contents master, slave and serial port configuration routines.
type : make install
Linking with your program:
After installing libmodbus, just type #include on the top of your program and compile it with the following line :
gcc -o my_program my_program.c -lmodbus
Libmodbus is a dynamic library, you can easily link it with your own program. It use linux thread library for more efficiency.
Today libmodus is on 0.0.1 version, maybe there is a lot of bugs and things to change. Write to me if you found one.
This library is under GPL (GNU Public Licence). You can download, use and copping it. You can also modifying program sources.
Libmodbus and all other software and programs on this website are free and distributed without any warranty.
- Fix CRC error when a slave RTU send a response. Thanks to Justin Carroll to have reported and tested my patch.
- Remove an assignment in compute_response_length()
- Remove duplicate counter in read_io_status()
- Fix #274511 reported by 'Kylesch'. Invalid error check in modbus_init_listen_tcp