Serial Port Function; Serial Port Parameter Introduction; Serial Port Framing Mechanism; Socket Function - Ebyte E810-DTU User Manual

Ethernet to rs232/rs485/rs422
Hide thumbs Also See for E810-DTU:
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd

3.2 Serial port function

3.2.1 Serial port parameter introduction

The basic parameters of the serial port include: baud rate, data bit, stop bit, check bit, flow control switch.
Baud rate: The serial communication rate can be set from 300bps to 3Mbps. The baud rate supports the custom baud rate.
Data bits: The length of the data bits, the range is: 7, 8, 9.
Stop bit: The range can be set: 1~2
Check bits: Check bits for data communication, supporting three kinds of check modes: None (none), Odd (odd), Even (even).
Flow control switch: The serial port supports the flow control switch. When the flow control is turned on, the transmission and
transmission of data are controlled by RTS/CTS.
Note: By setting serial port parameters, keeping the same parameters with serial port connection equipment can ensure the normal
communication.

3.2.2 Serial Port Framing Mechanism

Because the data on the network end are transmitted by data frames, it is necessary to send the frame data through the serial port to the
network end, so that the data can be transmitted more efficiently and quickly.
Serial port packing time: The default is 10ms, which can be set, the range is 0~255.
Serial port packing length: The default is 1460 bytes, which can be set. The range is from 0 to 1460.
Note: When the two parameters are not 0, the packing rule is to pack data to satisfy any one of them.
When one parameter is 0, the packing rule is another non-zero value.
When both parameters are 0, the packing rule is the default parameter value.

3.3 SOCKET function

The E810-TTL module can establish two Sockets, namely Socket A1 and Socket B1. Among them, Socket A1 supports all
types of TCP Client, TCP Server, UDP Client, and UDP Server. Socket B1 only supports TCP Client, UDP Client, and UDP Server.
Two Sockets run simultaneously. It can connect to different networks for data transmission at the same time.

3.3.1 TCP Client Function

(1) The TCP Client provides a client connection for the TCP network service. Proactively initiate a connection request to the
server and establish a connection for interaction between serial data and server data. According to the relevant provisions of the TCP
protocol, the TCP Client has the difference of connection and disconnection, thereby ensuring reliable exchange of data. It is
commonly used for data interaction between devices and servers and is the most commonly used method of networked
communication.
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd
E810-DTU(1RS1E) User Manual
7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents