[ENG] 12.2. [DKSF 70/71.6 IU] How to Configure a Serial Port?
A UniPing server solution v3 device does not support COM port operation.
To configure a serial port, there is a need to go to the page «SERIAL PORT» of a device web interface:
Using the UART Port
Serial Port Function – is an operation mode of a serial port. Possible variants are: «Disabled», «TCP-COM». On default: Disabled
The function «Serial Port» is used for tunneling the RS-232/RS-485 pinout through the TCP/IP network.
Settings of the Network-Port Connection
In this section parameters of the operation of the function «Serial Port» are set:
Local TCP Server Port – a device plays a role of a server. This parameter sets the number of a TCP port, which listens to a device, waiting for connecting of client software. It is necessary to configure a suitable port number explicitly. It is possible to choose any value from the range 1 – 65535, except for 80 port, which is used by a built-in HTTP server. It is recommended to use the value more than 1024. On default: 0
Amount of Received Serial Data to Form next network packet (1..512 byte) – is the number of bytes, received from the port RS-232/RS-485. When reaching this amount, a device will send the accumulated data in a form of a «useful load» of the TCP/IP package using Ethernet interface. If the amount of bytes is not reached, then a package will be sent as the timeout of receiving data from the RS-232/RS-485 port. On default: 96 bytes
Timeout to form network packet if no new serial data (5..999 ms) – is the timeout period of data on the serial port. If there are no new data during this period, then a device will send the data that are in the buffer for the moment to the network even if their amount haven't reached the necessary size indicated in the field «Amount of Received Serial Data to Form next network packet (1..512 byte)». On default: 100 ms
Buffer Overflow Event Counter – a counter rises each time when an internal buffer of a device for sending data to the RS-232/RS-485 port is overfilled. A counter is zeroed when a device is rebooted.
A data flow in a direction from the network to the serial port is regulated by changing the field WINDOW on a device side. The flow is not regulated in the opposite direction because the Ethernet network is clearly faster than a serial port. The signals «CTS», «RTS» are not used for controlling the flow.
Serial Port Settings
Interface Type – determines what interface will be used: RS-232 or RS-485. On default: RS-232
The pinouts RS-232 and RS-485 use a common internal bus of a device, therefore the UART receives the signal from any of two interfaces without the need to switch the type in settings! Therefore, the choice of an interface type is blocked on the page «SERIAL PORT».
The pinouts RS-232 and RS-485 use a common internal bus of a device, therefore it is impossible to use these interfaces simultaneously! In addition, when using the RS-485, there is a need to physically disconnect all devices plugged to the socket RS-232 and vice versa.
Serial Port Rate, bit/s – is a speed of the port RS-232/RS-485. On default: 9600 bit/s
Word Length, bit – is the number of bits in a word, which is sent/received through RS-232/RS-485. On default: 8
Parity – is a type of controlling the parity in data sent through RS-232/RS-485. «No» – the parity control is disabled, «Odd» – adds the number of single data bits to the odd, «Even» – adds the number of single data bits to the even. On default: No
Stop Bits – is the number of stop bits in the word RS-232/RS-485. On default: 1
After setting all necessary parameters click the button «Apply changes».