Difference between revisions of "Raspberry Pi Compute"

From Open Source Controls Wiki
Jump to navigation Jump to search
Line 40: Line 40:
  mkdir /home/pi/node-hiu/flows
  mkdir /home/pi/node-hiu/flows
  sudo chmod -R 775 /home/pi/node-hiu
  sudo chmod -R 775 /home/pi/node-hiu
cd ~
git clone https://github.com/SequentMicrosystems/ti-rpi.git
cd ti-rpi/
sudo make install
cd ~
git clone https://github.com/SequentMicrosystems/megabas-rpi.git
cd /home/pi/megabas-rpi
sudo make install





Revision as of 19:25, 31 July 2022

https://www.waveshare.com/wiki/Write_Image_for_Compute_Module_Boards_eMMC_version

https://www.waveshare.com/wiki/CM4-DUAL-ETH-4G/5G-BASE

https://github.com/SequentMicrosystems/ti-rpi/blob/main/README.md

Setup

Install image to Compute using imager software.

https://www.raspberrypi.com/software/


The following commands can be executed manually, or can be saved into an 'sh' file (e.g. setup.sh) and then run using bash setup.sh

sudo apt-get update
sudo apt-get upgrade
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
sudo systemctl enable nodered.service
sudo apt-get -y install mosquitto
sudo apt-get -y install pwgen
sudo apt-get -y install wget
sudo apt-get -y install zip
sudo apt-get -y install build-essential cmake
echo "Installing M-Bus Libraries..."
sudo apt-get -y install git libtool libltdl-dev autoconf automake
sudo git clone https://github.com/rscada/libmbus.git
cd libmbus
sudo sh clean.sh
sudo sh build.sh
make
sudo make install
sudo ln -s /usr/local/lib/libmbus.so.0 /usr/lib/libmbus.so.0
mkdir /home/pi/node-hiu
mkdir /home/pi/node-hiu/logs
mkdir /home/pi/node-hiu/iHIU
mkdir /home/pi/node-hiu/flows
sudo chmod -R 775 /home/pi/node-hiu
cd ~
git clone https://github.com/SequentMicrosystems/ti-rpi.git
cd ti-rpi/
sudo make install
cd ~
git clone https://github.com/SequentMicrosystems/megabas-rpi.git
cd /home/pi/megabas-rpi
sudo make install


The following nodes should be installed via the Node-RED Palette Manager. Items in bold may need manually installing.

  1. node-red
  2. node-red-contrib-arp
  3. node-red-contrib-crypt
  4. node-red-contrib-drawsvg
  5. node-red-contrib-heatweb
  6. node-red-contrib-m-bus
  7. node-red-contrib-play-audio
  8. node-red-contrib-ui-level
  9. node-red-contrib-ui-svg
  10. node-red-dashboard
  11. node-red-node-daemon
  12. node-red-node-email
  13. node-red-node-pi-gpio
  14. node-red-node-ping
  15. node-red-node-random
  16. node-red-node-serialport
  17. node-red-node-smooth
  18. node-red-node-ui-table