Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

English

Pagetitle
Uploading files to the robot via SFTP-protocol
Uploading files to the robot via SFTP-protocol

Предупреждение

Please contact technical support to set up an SFTP-server for you.

General Information

To install an application on a robot, you need to upload the files of the builded application to certain directories on the robot.

You can upload the files on the robot in two ways:

You need to have user named uploadon robot to connect to SFTP-server.

Installation and configuration of the SFTP-server on the robot, as well as the creation of the upload user is performed by a Promobot technical specialist.

Connecting to a robot via SFTP

Since file transfer is done via an SFTP-server, an SFTP-client is required as well.

Some versions of linux OS have a pre-installed SFTP-client, and of course you can use third-party SFTP-clients (e.g, FileZilla, PuTTY, WinSCP etc.).


An example of an SFTP-connection in Ubuntu:

1. Open a terminal and start a connection via an SFTP-client.

To do this, enter this command in the terminal:


Блок кода
languagebash
sftp <user>@<host>
Example: sftp upload@192.168.0.2:9044
You should fill in the <user> field with upload value, and <host> field – with IP-address of robot in the network and port 9044.


Примечание

Important! The client-device should be in the same network as the robot, otherwise you will need to execute port forwarding.


2. When you connect for the first time, you will receive a notification that the server has been added to the list of known hosts. To confirm, type Yes.


3. Enter upload user password.

The password is provided by the Promobot technical specialist.


Uploading files to the robot

After connecting, it will be possible to transfer files via the SFTP-protocol. The downloaded files are immediately synchronized with the root directories in the robot storage.

Applications are stored in two directories:


  • /opt/promobot/plugin/ – Promobot GUI applications, plugins for launching JS-applications (so-files).
  • /var/www/ – JS-applications.

So, to upload a Promobot GUI application you need to place so-file into /opt/promobot/plugin/ directory. To upload JS API application you need to place so-file into /opt/promobot/plugin/ directory and place application files into /var/www/ directory.

Use this terminal command to transfer files:


Блок кода
languagebash
put -r <dir_name>
Example: put -r exampleApp
dir_name – the directory where the transferred files are located.


...