Configuring Jetson Nano as slave in MODBUS

6 views (last 30 days)
Hello, we are trying to configure on Jetson Nano as slave in MODBUS, but we is not working.
We already run this models
Client version ok . Server version is not ok
After this, we tried another way, but the target is Raspberry Pi.4, in this test, both, client model and server model ran well
We noticed that the libmodbus-dev version, using Raspberry Pi 4, the OS from MathWorks (https://github.com/mathworks/Raspbian_OS_Setup) is already installed and is version 3.1.4.
In NVIDIA case, when we intalled throught apt-get, the lib is version 3.0.6. until this moment is the only difference that we could find.
By the other side, we didnt find any documentation in NVDIA Support Package about need to install the libmodbus-dev.
  2 Comments
Ramakrishna Mandalapu
Ramakrishna Mandalapu on 22 Jul 2022
Edited: Ramakrishna Mandalapu on 22 Jul 2022
Hi Erika,
This might be due to the mismatched Modbus library installation on the Jetson.
Can you please install the Modbus library from below repository?
Follow the below steps to install
git clone https://github.com/stephane/libmodbus
cd libmodbus
./autogen.sh
./configure && sudo make install
Note: You need to uninstall the previously installed library using below command.
sudo apt autoremove libmodbus-dev
Let us know if you have any other questions.
Thanks,
Ramakrishna
Rodrigo Botelho
Rodrigo Botelho on 26 Jul 2022
Hi, Ramakrishna,
Just sharing our experience. On one of the Jetson Nanos, we had to also run ldconfig after installing the libmodbus-dev from source. Otherwise, it wouldn't find the libmodbus.so.5.
rcbb

Sign in to comment.

Answers (1)

Ramakrishna Mandalapu
Ramakrishna Mandalapu on 26 Jul 2022
Above installation steps resolved the issue at the user.

Products


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!