FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
67 views 0 comments
by anonymous
Hello,
since a few days I own a rutx11 and want to deal with modbus.
I proceeded with the help of this document (https://wiki.teltonika-networks.com/wikibase/index.php?title=RUTX11_Monitoring_via_Modbus&mobileaction=toggle_view_mobile) and try to install modbus-cli:
$ sudo apt-get install ruby
$ sudo gem install modbus-cli

apt-get does not work, so I installed ruby with "opkg install ruby". Ok.

But now I have problems with "gem install modbus-cli": "gem" not found.

Please help a newbie. :-)
Thanks in advance

1 Answer

0 votes
by anonymous

Hello,

  

As RutOS is based on OpenWRT, the default (and the only) package installer available on these devices is opkg. Before installing any packages run opkg update. Some repositories will fail to update - this is okay.

Afterward, you can install the packages using opkg install <package_name> command.

However, the package modbus-cli does not seem to be available on opkg. I'd recommend exploring this comment, perhaps the provided commands will suit your needs, as they are preinstalled on the device.

  

Best regards,
DaumantasG