libmodbus is a library written in C to communicate with devices which implement the modbus interface. libmodbus supports RS485(serial) and TCP/IP(network) mode of communication.
Questions tagged [libmodbus]
21 questions
0
votes
0 answers
Why I still get the x86-64 .so file, althrough using the ./configure -- host=arm-none-linux-gnueabihf?
I want to using libmodbus on PICO whhich is ARM. I'm using a x86-64 ubuntu PC.
Is that right to use ./configure -- host=arm-none-linux-gnueabihf ? and make,make install. No errors after these 3 steps. but I checked /usr/local/lib/, But the…

Limin
- 143
- 2
- 7
0
votes
0 answers
Filter messages by slave address
Just learning how the libmodbus works. I am using libmodbus v3.1.7 tag from git repository.
Wrote a very simple test, included as reference (error management has been removed for clarity):
ctx = modbus_new_rtu("/dev/ttyUSB0", 115200, 'N', 8,…

aicastell
- 2,182
- 2
- 21
- 33
0
votes
1 answer
Separate connect function for libmodbus
I am trying to group the operation under libmodbus for Mod-bus connection and get-value into two simpler function as below.
However, it always cause Segmentation fault (core dumped) when I try to get value from the device.(get_float,…

Troy Chan
- 71
- 6
0
votes
1 answer
Timeout Modbus RTU Devices after reconnect RS232/RS485 Adapter
I've problems with a MODBUS RTU connection to devices after a disconnect & reconnect of the RS232. The system is build up the following way:
MODBUS RTU device with A+ & B- clamps (no C = GND available, e.g. electricity meter SDM120, but problem…

Achim
- 442
- 1
- 3
- 13
0
votes
1 answer
Libmodbus library not found when trying to compile mbrtu
I tried:
cd ~
git clone git://github.com/stephane/libmodbus
cd libmodbus
./autogen.sh
./configure --enable-static
make
sudo make install
sudo cp ./src/.libs/libmodbus.a /usr/local/lib/
to download, compile and install the libmodbus library. Now I…

Nord
- 7
- 2
0
votes
0 answers
Is it possible to implement a Modbus Master based on libmodbuspp which uses RTU over TCP to talk to RTU slaves behind a TCP/RTU gateway?
I'm developing a C++ Modbus application which already uses the libmodbuspp library to implement a Modbus Master device to query Modbus Slaves either in TCP or RTU modes (respectively for devices connected over an Ethernet network or RS-232/485…

Claudio
- 2,191
- 24
- 49