Материал из for iRidium developers
Перейти к: навигация, поиск
Эта страница является переводом страницы IRidium Server Raspberry. Перевод выполнен на 94%.

Other languages:
English • ‎русский

iRidium Server RPi

Installation and launch of iRidium Server on the Raspberry hardware platform

the documentation is updated 30.5.2017


iRidium Sever RPi - it is a software implementation of iRidium Server. It is launched as a daemon or a console application on Raspberry Pi 3 controller.

Download iRidium Server for Raspberry Pi

IRidiumServerPiPicture2.jpg

Technical specifications:


Recommended load:

  • 15 of control panels
  • up to 800 of iRidium Server tags


iRidium Server connects to equipment and sends commands from control panels to it. The control panels connect to the server to control equipment through it, get feedback, download logs and databases.

The database can store information about server work for the time since the server was launched. The control panels can output logs from the database and build graphs of changes in server variables.

IRidiumServerHowItWorks.png


Installation and Setting up

To install iRidium Server on Raspberry Pi, download and install the required software:

  1. Download the (*.deb) file of the server for Raspberry Pi
  2. Download and install the WinSCP software
  3. Download and install the PuTTY software


Connect and set up Raspberry Pi following instructions from the web site raspberrypi.org.
The device must have Raspbian OS (the operating system officially supported Raspberry Pi system on the base of Debian).


1 Start WinSCP. In the software interface set up:

SetupPiServer1.png
  • File Protocol: SCP
  • Host name: the IP-address of Raspberry Pi (to learn the address, input ifconfig in the pi console)
  • Port number: 22
  • User name: your login (by default: pi)
  • Password: your password (by default: raspberry)


2 Save the settings with the Save button. Connect to Raspberry by clicking the Login button. If the connection properties were indicated correctly, you will see the window in the right part of which there is a menu for working with files of your Raspberry:

SetupPiServer2.png

3 Copy the (*.deb) file which is downloaded by link #1 in the folder /home/pi

SetupPiServer3.png

4 Start PuTTY. In the software interface set up:

SetupPiServer4.png
  • Host Name (or IP address): the IP-address of your Raspberry
  • Port: 22 (by default)
  • Connection Type: SSH
  • Saved Session: input the name of the current setting and click Save
  • Close window on exit: Only on clean exit


5 In the set up PuTTY click Open to open the console. Input the login and password for connection to the server.

SetupPiServer5.png
the input password is not displayed on the console - it is ok. Click Enter when you finish the input

6 If the login and password are input correctly, you will see a message about successful connection to Raspberry

SetupPiServer9.png


7 Install the package downloaded in Raspberry memory with the help of the command:

sudo dpkg -i /<path_to_package>/<packet_name>.deb

for example:

sudo dpkg -i /home/pi/iridiumserver_1.0.0-5934_PI.deb
SetupPiServer6.png

you can set the static IP address for your Raspberry via Putty, using this instruction

Wait until the installation is finished. Do not switch off the device. As a result you will see:

SetupPiServer7.png

After the installation the server is launched as a daemon - no information about its work will be output in the PuTTY log. At reload of Raspberry the server will start automatically.
You can click the Search button in Transfer and upload a project and license on it.


If Search does not work or you do not see the message about the launch:
Check the availability of the iridiumserver forlder: go to the root catalog with the help of the cd /command
Then input the ls command to see the catalog

SetupPiServer8.png

Go to the iridiumserver folder with the help of the cd /iridiumserver command and input ls again to make sure you are in the right catalog

SetupPiServer10.png

8 Запустите Сервер, находясь в каталоге iridiumserver. Для этого есть команды:

  • sudo ./iridium - запустить сервер. При закрытии консоли сервер закроется
  • sudo ./iridium --hidden - запустить сервер в фоновом режиме (как демон). При закрытии консоли сервер не закроется


The successful server launch:

SetupPiServer11.png

Error: it can occur when trying to launch the server in the background mode again:

SetupPiServer12.png

In case of such error input the command:

sudo rm /tmp/irdaemon.pid
SetupPiServer13.png

and repeat the server launch (8).


9 Open the server settings: in order to do that follow the link in the browser

http://<host>:8888/

<host> - the local Raspberry IP-address


Test mode

Authorize on the server using the integrator's login and password from the iRidium mobile web site. You cannot use the server without authorization.

LogInonServerStep1.png
ServerTestModeOn.png

Go through all authorization steps to get access to the server settings. Activate the option "Test Mode: ON" in the server settings to use it in the fully functional mode. You can see more information about the use modes in the section Licensing Policy.

With the activated Test Mode you can also test work of cloud projects and upload projects from iRidium Transfer (locally, without iRidium Cloud).


Настройка сервера

Когда сервер установлен, можно перейти к разработке его конфигурации и логики:


You have to upload the ready project to iRidium Server: