Serial Tunnel configuration between UDS - UDS

How do I set up a serial tunnel in between two UDS devices?

 

The below procedure is for creating a serial tunnel in between two UDS devices with step-by-step configuration changes that are required. We will use Setup mode on UDS as an example.

By default an UDS listens on port 10001 for serial port 1 and, if it has two ports, 10002 for serial port 2. These ports numbers are configurable. Port 10001 is used in the below example.

To have a reliable serial tunnel we need to assign both units a static (fixed) IP-address. Both IP-addresses should be part of the same network or Two different networks as well that have already been routed and communicable.

In the below example we will assign the following IP-addresses that are from the same network.

UDS1 : 192.168.1.17

UDS2 : 192.168.1.16

+------+ +-----+ +-----+ +------+ |Serial| | UDS | Ethernet | UDS | |Serial| |Device|--------| #1 |===============| #2 |-------|Device| +------+ +-----+ +-----+ +------+ 192.168.001.017 192.168.001.016

 

The commands necessary for this configuration to automatically establish this connection are as follows.

You will also need to ensure that the port parameters such as baud rate, Parity, Stop Bits, flow control etc. are correct for the serial devices.


Setup Mode:

UDS #1:
*** basic parameters
Hardware: Ethernet TPI
IP addr 192.168.001.017, no gateway set

******* Channel 1 *******
Baudrate 09600, I/F Mode 4C, Flow 00
Port 10001
Remote IP Adr: --- none ---, Port 00000
Connect Mode: C0 Disconn Mode: 00
Flush Mode: 00


UDS #2:
*** basic parameters
Hardware: Ethernet TPI
IP addr 192.168.001.016, no gateway set

******* Channel 1 *******
Baudrate 09600, I/F Mode 4C, Flow 00
Port 10001
Remote IP Adr: 192.168.001.017, Port 10001
Connect Mode: C5 Disconn Mode: 00
Flush Mode: 00


Below are the screenshots of the configurations required on the Web Manager

Web Manager:

UDS #1:

First assign an IP address to the first UDS:

Change to Channel 1 Connection

Leave the first UDS configured to accept incoming network connections:

UDS #2

Assign an IP address to the second UDS:

Change to Channel 1 Connection

Configure the second UDS to open a connection to port 10001 on the first UDS: