Skip to content

IMST/Raspberry Guide

Raspberry Gateway Guide

This installer targets the SPI version of the board. IMST iC880a + Raspberry Pi.

  • Download Raspbian Jessie Lite
  • Follow the installation instructions to create the SD card
  • Start your RPi connected to Ethernet
  • Plug the iC880a (WARNING: first power plug to the wall socket, then to the gateway DC jack, and ONLY THEN USB to RPi!)
  • Login with the default user pi and password raspberry
  • Run raspi-config
    $ sudo raspi-config  
  • Enable SSH mode in Interface Options
  • Enable SPI in Advanced Options
  • Save
  • Write down your IP address if you want to use your machine to connect to the Rpi. By default DHCP is enabled.
  • Reboot
  • Now if you want you can ssh into the RPi using the default hostname
    local $ ssh pi@<youripaddress>   
  • Configure locales and time zone:
    $ sudo dpkg-reconfigure locales
    $ sudo dpkg-reconfigure tzdata   
  • Make sure you have an updated installation and install git
    $ sudo apt-get update
    $ sudo apt-get upgrade
    $ sudo apt-get install git
  • Create new user for ResIOT and add it to sudoers
    $ sudo adduser resiot
    $ sudo adduser resiot sudo
  • Logout and login as resiot and remove the default pi user
    $ sudo userdel -rf pi
  • Now You can setup a wifi connection if you wish to:
    $ sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
  • And add the following block at the end of the file, replacing SSID and password to match your network:
  • Clone the installer and start the installation
    $ git clone ~/resiot
    $ cd ~/resiot/<yourserver>
    $ sudo chmod 775 ./
    $ sudo chmod 775 ./
    $ sudo ./

Finally, to know the Gateway EUI of your gateway, which is required by the ResIOT platform, enter the following command:

echo "$(ip link show eth0 | awk '/ether/ {print $2}' | awk -F\: '{print $1$2$3"FFFE"$4$5$6}')"

If you get an empty text, try with the following instead:

echo "$(ip link show wlan0 | awk '/ether/ {print $2}' | awk -F\: '{print $1$2$3"FFFE"$4$5$6}')"