Skip to content

Forwarding

Andrey Fedorov edited this page Jan 23, 2017 · 6 revisions

The daemon can transfer terminal data to another servers. Data can be transcoding to another terminal format (currently Wialon NIS or EGTS only) before transfering. Data can be stored for transfer later if remote server is down. The connection restoring to remote server if lost. The daemon can answer to remote server messages simulate behavior of the terminal. Each terminal can be transferring up to three servers.

Set up forwarding

To enable forwarding edit glonassd.conf file first. Create section [forward] if not exists and add remote server parameters as described below.
Example:

[forward]
list=forward.conf
wialon_egts=193.193.165.165,20629,0,egts
;name=address,port,ip-protocol,terminal-protocol

Parameter list point to file containing transfered terminals list.
Next lines in this section describe remote servers. One line for one server. In this example:

  • wialon_egts is a name of the server;
  • 193.193.165.165 is IP-address for server;
  • 20629 is port of the server;
  • 0 - tcp, 1 - udp (not available currently) protocol;
  • egts is terminal protocol wich server wait at the this address/port/protocol.

Then, create (or edit) forward.conf file. Example:

;ID=server_name
71108=wialon_egts
;71108=server2
;71108=server3

Up to three servers for one terminal available.
The daemon will transcode terminal data from terminal protocol to server protocol if they do not match.

To disable forwarding commenting line with required server in glonassd.conf, or commenting lines with terminals ID in forward.conf file.

Restart the daemon after edit any of *.conf files.

To be continued.

Clone this wiki locally