CoBox & UDS - What TCP port #s should I use to connect to a serial port?

I need to open a TCP Socket Connection to a serial port on CoBox, UDS, XPort, WiPort or XPress DR product. What TCP socket numbers should I use?


On the CoBox, UDS, XPort and WiPort products the TCP ports for the serial ports are configurable.

On a CoBox-E2, CoBox-FL, UDS200 or WiPort the default TCP port for Channel 1 is 10001 and Channel 2 is 10002.
On a UDS-10 or UDS-100 the default TCP port for the serial port is 10001.
On XPort devices the default TCP port for the serial port is 10001.
On XPress DR devices the default TCP port for the serial port is 10001.

These values can be changed in the configuration for the appropriate Channel. It's recommended that values lower than 1025 not be used, those ports are reserved for "well known" ports, such as port 23 for telnet. Also, on a CoBox with more than one port, the port numbers must not be the same.

Example:
On a CoBox-FL you will get a port display and configuration menu that looks like this:
...
***************** Channel 1 *****************
Baudrate 9600, I/F Mode 4C, Flow 00
Port 10001
Remote IP Adr: --- none ---, Port 00000
Connect Mode : C0 Disconn Mode: 00
Flush Mode: 00

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


Change Setup : 0 Server configuration
1 Channel 1 configuration
2 Channel 2 configuration
6 Security
7 Factory defaults
8 Exit without save
9 Save and exit Your choice?

If you want to change channel 2 so it is listening on port 3002 instead of 10002 type in a 2 to open the Channel 2 Configuration script:
...
9 Save and exit Your choice ? 2
Baudrate (9600)
I/F Mode (4C)?
Flow (00)?
Port No (10002) ?3002
ConnectMode (C0)?
Remote IP Address : (000) .(000) .(000) .(000)
Remote Port (00000)?
DisConnMode (00)?
FlushMode (00)?
DisConnTime ( 00:00)?:
SendChar 1 (00)?
SendChar 2 (00)?

The default values are in parentheses. If you want a new value for any of the parameters type it in and press Enter. If you want to keep the default value just press Enter without typing anything.

Once you've changed the port number the Channel 2 display will change to show the new number:

***************** Channel 2 *****************
Baudrate 9600, I/F Mode 4C, Flow 00
Port 03002<-------------------------------------Port number has changed to 03002
Remote IP Adr: --- none ---, Port 00000
Connect Mode : C0 Disconn Mode: 00
Flush Mode : 00

The procedure is similar on the UDS-10 and UDS100.


[Originally Published On: 06/28/2002 06:28 PM]