Effacer les filtres
Effacer les filtres

Configuring Jetson Nano as slave in MODBUS

2 vues (au cours des 30 derniers jours)
Erika Libanio
Erika Libanio le 21 Juil 2022
Commenté : Rodrigo Botelho le 26 Juil 2022
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 commentaires
Ramakrishna Mandalapu
Ramakrishna Mandalapu le 22 Juil 2022
Modifié(e) : Ramakrishna Mandalapu le 22 Juil 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 le 26 Juil 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

Connectez-vous pour commenter.

Réponses (1)

Ramakrishna Mandalapu
Ramakrishna Mandalapu le 26 Juil 2022
Above installation steps resolved the issue at the user.

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by