Skip to main content

iRidi server RPi

Install and run iRidi server on Raspberry hardware

Documentation updated 01.01.2024

iRidi server RPi is a software implementation of iRidi server that runs as a daemon or console application on Raspberry Pi 3 model B, Raspberry Pi 3 model B+, and Raspberry Pi 4 model B controllers. We have prepared a separate image for each model. You can read the setup instructions here:

iRidiumServerPiPicture2.jpg

Technical specifications:

Recommended load:

  • 15 control panels
  • more than 3000 iRidi server tags (no more than 5000 is recommended).

Warranty period: 12 (months)

iRidi server connects to equipment and sends it commands from control panels. Control panels connect to the server to control equipment through it, receive status feedback, and download logs and the database.

The database can store information on server and equipment operation for the entire period the server has been running. Using data from the database, a control panel can display logs and plot changes in server variables.

iRidiumServerHowItWorks.png

Install and set up Raspbian Buster Lite​

Important
  • This system image is suitable for Raspberry 3 Model B+ and Raspberry 4 Model B servers. We do not recommend using this image on Raspberry 3 Model B.

Prepare the following equipment:

  • A Raspberry Pi 3 B+ / Raspberry Pi 4 B device;
  • A class 10, 8 GB MicroSD memory card;
  • A power supply with a 5 V/2 A MicroUSB output (for Raspberry Pi 3 B+) or a 5 V/3 A USB-C output (for Raspberry Pi 4 B);
  • A Windows computer with a card reader and Ethernet port;
  • An Ethernet router with its DHCP server enabled;
  • Internet access (optional).
  1. Download the Raspbian Buster Lite image that includes iRidi server.
  1. Write the image to the memory card using a card reader and Win32 Disk Imager or balenaEtcher.
Note
  • You must use a class 10 MicroSD memory card with at least 8 GB of capacity.
  1. Insert the memory card into the Rapberry Pi device and connect power through its MicroUSB connector.

  2. Connect the Raspberry Pi device, computer, and router to the same LAN. In the installed image, network settings are obtained automatically using DHCP; the router must have its DHCP server enabled.

Note

If no router is available, you can connect the Raspberry Pi device and computer directly to each other. To do this, install and run any software DHCP server on the computer, for example:

  • Open DHCP Server;
  • TFTPD32.
  1. Find the IP address of the Rapberry Pi using Advanced Port Scanner.

2_Advanced_Port_Scanner1.png

  1. Connect to the device at the IP address found earlier (step 5) using Putty.
  • Host Name (or IP address) : the device IP address found earlier
  • Port : 22 (always)
  • Connection type : SSH (always)

You can also sign in through the web interface.

  1. Update the server to the latest version. For detailed instructions, see the section "Update the server".

Install and set up Linux Debian Jessie​

Note
  • Recommended for Raspberry 3 Model B hardware.

Authorized partners need to perform the following steps on a new Raspberry Pi 3 device before uploading a user i3 pro or i3 lite project to it.

  1. Prepare the following equipment:
  • A Raspberry Pi 3 device
  • A class 10, 8 GB MicroSD memory card
  • A power supply with a 5 V/2 A MicroUSB output
  • A Windows computer with a card reader and Ethernet port
  • An Ethernet router with its DHCP server enabled
  • Internet access (optional)
  1. Download the following software:
  • The Raspbian Jessie Lite OS image archive (Linux Debian Jessie for Raspberry Pi): Raspbian Jessie lite
Note
  • Raspbian Stretch is not supported
  1. Extract the Raspbian Jessie OS image archive. This produces an *.img image file.

  2. Write the Raspbian Jessie image to the memory card using a card reader and Win32 Disk Imager.

1_Win_Disk_Imager.png

  1. Add an empty ssh.txt file to the root folder of the memory card to enable the SSH remote command-line protocol.
Important

Important! You must add ssh.txt to the root folder before starting the RPi for the first time.

  1. Insert the memory card into the Rapberry Pi device and supply power through its MicroUSB connector.
Important
  • Follow this sequence: do not insert the memory card after applying power!
  1. Connect the Raspberry Pi device, computer, and router to the same LAN. The router must have its DHCP server enabled.
Note

If no router is available, you can connect the Raspberry Pi device and computer directly to each other and install and run any software DHCP server on the computer, for example,

  1. Use Advanced Port Scanner to find the IP address of the raspberrypi device.

2_Advanced_Port_Scanner1.png

  1. Start Putty and configure it as follows:
  • Host Name (or IP address) : the device IP address found earlier
  • Port : 22 (always)
  • Connection type : SSH (always)

Click Open.

5_Putty.png

  1. Update the server to the latest version. For detailed instructions, see the section "Update the server".

Updating the server​

  1. Start Putty. The command line of Linux Debian installed on the server appears on the computer screen. Enter the username (pi) and password (raspberry).

6_Debian_CLI.png

Note
  • The password is not displayed in the console; this is normal. Press Enter when you finish typing.
  1. Download the iRidi server distribution for Raspberry directly to the device and name it iridiumserver.deb:
  • for i3 pro

wget -O /home/pi/iridiumserver.deb https://iridi.com/ru/redirects/?go=iRidium_Server_Rapsberry

  • for i3 lite

wget -O /home/pi/iridiumserver.deb https://iridi.com/ru/redirects/?go=iRidium_SERVER_RASPBERRY_LITE

Note

If a certificate error prevents you from downloading the distribution, add the parameter --no-check-certificate

  • for i3 pro: wget -O /home/pi/iridiumserver.deb --no-check-certificate https://iridi.com/ru/redirects/?go=iRidium_Server_Rapsberry

  • for i3 lite: wget -O /home/pi/iridiumserver.deb --no-check-certificate https://iridi.com/ru/redirects/?go=iRidium_SERVER_RASPBERRY_LITE

  • If Internet access is unavailable, skip this step and follow the instructions in "Install iRidi server without Internet access".

Download_Iridium_Server.png

  1. Check the contents of the current folder (/home/pi) using the command:

ls

  1. Install iRidi server using the command:

sudo dpkg -i iridiumserver.deb

Install_Iridium_server.png

  1. The device is ready for a user i3 pro or i3 lite project to be uploaded.

Change the access password​

For security, you should change the default password (raspberry) using the command:

sudo passwd pi

and enter the new password twice.

Change_password.png

Remove project data from the server​

If you experience problems with server operation, you can remove the project, database, and log files from the server, then try uploading them again.

  1. Delete the files.

sudo rm -rf /var/lib/iRidium\ Server/Documents/

  1. Restart the device.

sudo reboot

8_Debian_CLI.png

Install iRidi server without Internet access​

In some cases, you may need to install iRidi server on a Raspberry Pi without direct Internet access. Perform the following steps.

  1. Download:
  1. Start WinSCP. Specify:
  • File protocol : SCP
  • Host name : the device IP address found earlier
  • Port number : 22
  • User name : pi
  • Password : raspberry

Click Login.

3_WinSCP.png

  1. Copy the iRidi server distribution (iridiumserver_x.x.x_xxxxx_RPI.deb) from the computer to the /home/pi folder on the Raspberry Pi device.

4_WinSCP.png

  1. Check the contents of the current folder (/home/pi) using the command:

ls

  1. Install iRidi server using the command:

sudo dpkg -i iridiumserver_x.x.x_xxxxx_RPI.deb

  1. The device is ready for a user i3 pro or i3 lite project to be uploaded.

Test mode​

Sign in to the server using the username and password of a registered iRidium Mobile integrator. The server cannot be used without signing in.

LogInonServerStep1.png ServerTestModeOn.png

Complete all sign-in steps to access the server settings. Enable the Test mode ON option in the server settings to use its full functionality. For more information about operating modes, see Licensing policy.

With Test Mode active, you can test cloud projects and upload projects from iRidi Transfer (locally, without using iRidi Cloud).

Add the server to an i3 lite project​

There are two ways to add the server to a project:

  1. Add the server when creating a project

Start i3 lite and begin creating a project. The application asks you to add a server. Accept this prompt.

AddServerOnStart.png

A window lists the servers available on the local network. Select your server

ServerScanner.png

The application asks you to enter the activation code using a QR scanner or manually.

QRCode.png

The server is now added to the project.

  1. Add the server to an existing project

Open the project and open Config.

PortForwarding10.png

Open the Server tab and click "Select server".

SelectServer.png

A window lists the servers available on the local network. Select your server. The application asks you to enter the server PIN (the default PIN is 2007). After entering the PIN, activate the server by clicking the corresponding button

Server configuration​

Once the server is installed, you can develop its configuration and logic: Server project in iRidi Studio

Upload the completed project to the iRidi server: Starting the iRidi server configuration