CRS 40 V2
Installation, operation and service manual M2019/02a
Edit the file accordingly:
• <Assigned IP address> – replace it with unit B IP address. It can be found on identification label
(Illustration 6: I Identification label of the unit B).
• <Folder name> – replace it with folder name where you want to save the data downloaded from
control unit B. The best solution is to choose folder name same as name of reading network (e.g.
C:\crs40\prazska12). Folder name can not contain spaces. It is not necessary to create this folder
manually, it is created automatically during the synchronization.
Save edited file – name the file as you wish ( it is important to leave appendix .BAT). To perform
synchronization open the file. Before you launch script make sure VPN is connected.
If the encryption keys are set correctly, the synchronization is performed automatically. Only new data is
downloaded (since the last synchronization).
Downloading data will take longer when you do it for the first time (or after a long time). Next synchronization
will download only new data. Do not close window with text while synchronization is in progress – it will be
closed automatically once the downloading is finished.
To work with the data, open a folder where it was saved ( C:\crs40\metra) and launch file index.html
11.1.2. Advanced synchronization setting
You can make synchronization of more units using one synchronization script. It is in fact synchronization
script copied multiple times in one file and each script copy has different IP address and different download
folder for data.
The control units B you want to synchronize simultaneously must also belong to one network (for more
information, see chapter 9.1. VPN network structure) and a file with public key has to be loaded on them
(Copy the public key to the CRS).
Synchronization script will looks as follow:
@echo off
set LOGIN=<login 1>
set IP=<Given IP address 1>
set DESTDIR=<File name 1>
ping %IP%
mkdir %DESTDIR%
rsync -e "./ssh -i ./key_sync -o UserKnownHostsFile=./KnownHosts -o StrictHostKeyChecking=no" -avz
--delete %LOGIN%@%IP%:/metra/ %DESTDIR%
set LOGIN=<login 1>
set IP=< Given IP address 2>
set DESTDIR=< File name 2>
ping %IP%
mkdir %DESTDIR%
rsync -e "./ssh -i ./key_sync -o UserKnownHostsFile=./KnownHosts -o StrictHostKeyChecking=no" -avz
--delete %LOGIN%@%IP%:/metra/ %DESTDIR%
..
50 / 57