Command ‘Configure the local gateway’

Function: The command opens the dialog Gateway Configuration, where you can set up the block driver configuration for the local gateway. This is an alternative to manually editing of the configuration file Gateway.cfg.

Call: Context menu of a gateway entry in the Communication Settings dialog.

Hint

A correct gateway configuration requires detailed knowledge. In case of any doubts do not change the standard configuration settings!

Dialog ‘Gateway Configuration’

The configuration tree shown in the dialog corresponds to the currently valid configuration file gateway.cfg. For the concerned interfaces it shows the parameters and current settings. Changes of the configuration in the dialog, confirmed with OK effect an direct update of the configuration file.

Note

After having changed the gateway configuration file gateway.cfg, the gateway must be stopped and restarted in order to get the changes applied.

Add

Menu with commands for adding interfaces and settings. The commands are also available in the context menu of the dialog. The command set depends on the currently selected entry and on the already entered settings:

Add Top Level Interface: Choose an interface for the communication via the gateway. It will be inserted on top level of the tree. See the table below for the possible block driver interfaces.

Add Sub Level Interface: Choose an interface for the communication via the gateway. It will be inserted in the tree below the currently selected interface. See the table below for the possible block driver interfaces.

Add Configuration Setting: Choose a setting for the selected interface. It will be inserted in the tree below that interface. To get an edit field for the setting, perform a double-click in column Setting. See the table below for the possible settings for the block driver interface.

Delete Deletes the selected configuration settings.
Up, Down Moves the selected configuration setting one position up or down.
Possible block driver interfaces
COM Port Serial port on the device, for example for data exchange according to standard RS232 on a COM port intended for this purpose.
 

Possible configuration settings:

Name: just symbolic

Port: physical serial port used for this interface; for example COM 5 on a Windows computer

Baudrate: 2400, 4800, 9600, 19200, 38400, 57600, 115200

Enable auto addressing: (Standard = ): The setting Local address is evaluated; then the two devices communicating via the serial interface, will negotiate their addresses autonomously before they start exchanging messages; in case the two devices have equal addresses, then they will be re-negotiated; this setting will be useful if the local addresses cannot be set explicitly, for example at physically separated devices.

Local address: is evaluated only if Enable auto addressing is set! Standard = actual value for port

Shared Memory: Shared Memory driver
 

Possible settings:

Name: just symbolic

Forced address: Standard = -1 (= no forced address); Example: 42 means that the driver must use the fix address defined here, and that addresses are assigned freely in the range of 0-255; this setting may be useful when more than 1 Shared Memory driver is enabled within the configuration.

Ethernet UDP/IP: Ethernet interface for data exchange matching the “User Datagram Protocol”.
 

Possible settings:

Name: just symbolic

Port index: Port number for the communication; port indices are in the range of 0 - 3; they get mapped on the following Ethernet ports: 1740 - 1743

IP address: Standard = 127.0.0.1; this setting may be useful for explicitly setting an interface if there are multiple network interfaces on the device; Example: 127.0.0.1 stands for any local network interface, also named localhost; each other address - e.g. 10.27.7.72 - represents a real IP address which must be available on the device.

Network mask: Standard = 255.255.255.0; Example: 255.255.252.0; this setting may be useful for explicitly setting an interface if there are multiple network interfaces on the device;

PPP remote address: Standard = 127.0.0.1; Example: 10.13.42.240; establishes a logical point-to-point connection between the UDP interface and the node which is named by the here-defined address; this effects that the UDP interface will communicate exclusively with this node, and that no broadcasts will be sent within the network.

Ethernet TCP/IP: Ethernet interface for the data exchange matching the “Transmission Control Protocol”.
 

Possible settings:

Name, Port, IP address: see above: Ethernet UDP/IP

Inactivity timeout: Standard = 0; this setting defines the time in seconds, after which the TCP connections will be closed if no more data are exchanged

CAN Client

Name, just symbolic

For information on the other settings please see the description field the lower part of the dialog.

USB Port

Name, just symbolic

For information on the other settings please see the description field the lower part of the dialog.

See also