V
V
vladislav96199962019-04-10 07:54:35
linux
vladislav9619996, 2019-04-10 07:54:35

How to set up data reception using Modbus Rtu?

I need to set up modbus. The master is a single-board computer on Linux, the slave is the modbus slave program (in the future, the kinco device will act).
Initially, I need to write my Master on Linux, but in order to check the operation of the devices, I installed the mbpoll program on Linux - b 9600 - c3 - r 1 - t 0 - a 1 -P none - m rtu at startup gives an error Read discrete output (coil) failed: Connection timed out I checked the connection, I can’t understand what is the error? If anyone knows how to make the same request in C++ I would be grateful (I use the libmodbus library).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Papayaved, 2019-08-16
@Papayaved

Perhaps you need to give permission to the user to use the COM port
sudo usermod -a -G dialout

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question