The command line interface (CLI) included in this repository gives you full access to every feature of the card. It is the quickest way to get started and is all you need to operate the card.
If you would rather use a different platform, you can access the same functionality through dedicated, ready-to-use integrations:
For a firmware update, please follow the instructions in the link below:
1. Enable I2C communication
This only needs to be done once on each Raspberry Pi.
On Raspberry Pi OS, install raspi-config first:
sudo apt update
sudo apt install raspi-configThen run:
sudo raspi-configFollow the steps in the 3 screenshots below to enable I2C communication. After that, reboot the Raspberry Pi for the changes to take effect.
Reboot the Raspberry Pi:
sudo reboot2. Install git and build-essential packages
sudo apt update
sudo apt install git build-essentialInstall the CLI with:
cd
git clone https://github.com/SequentMicrosystems/megaind-rpi.git
cd megaind-rpi/
sudo make installTo update to the latest version:
cd ~/megaind-rpi/
git pull
sudo make installNow 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 -hFor a more detailed help message about a specific function, use the -h option after the function name. For example:
megaind -h rtcrdExample output:
megaind -h rtcrd
rtcrd: Get the internal RTC date and time(mm/dd/yy hh:mm:ss)
Usage: megaind <id> rtcrd
Example: megaind 0 rtcrd; Get the nternal RTC time and date on Board #0



