This is the command to control Industrial Automation Stackable Card for Raspberry Pi.
Enable I2C communication first:
~$ sudo raspi-config
A good article about I2C on Raspberry can be found here.
If you use Ubuntu you need to install raspi-config
first:
~$ sudo apt update
~$ sudo apt install raspi-config
Make sure you have all tools you need:
~$ sudo apt update
~$ sudo apt-get install git
~$ sudo apt-get install build-essential
Install the command:
~$ git clone https://github.com/SequentMicrosystems/megaind-rpi.git
~$ cd megaind-rpi/
~/megaind-rpi$ sudo make install
Now you can access all the functions of the Industrial Automation Stackable Card for Raspberry Pi through the command "megaind". Use -h option for help:
~$ megaind -h
If you clone the repository any update can be made with the following commands:
~$ cd megaind-rpi/
~/megaind-rpi$ git pull
~/megaind-rpi$ sudo make install
The board can act as Modbus RTU slave device, checkout modbus instructions.