Communication method for client and data terminal server

A technology of a data terminal and a communication method, applied in the field of data communication, can solve the problems of client and server service blocking, etc.
CN112559146AActive Publication Date: 2021-03-26CHINA TOBACCO HENAN IND

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
CHINA TOBACCO HENAN IND
Publication Date
2021-03-26

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention provides a communication method for a client and a data terminal server, and the method comprises the steps: building a synchronous non-blocking event thread pool based on an event-driven communication mode of Netty; acquiring configuration information of the data terminal servers, and registering all the data terminal server information to the client startup class; for the data terminal server with connection failure, starting a timer, performing reconnecting until the connection is successful, and when the data terminal server sends data to the system, sequentially triggering an offline reconnection processor, an idle state processor, an idle processor, a decoding processor and an IO reading processor, so that a data stream forms a data packet in a json format; and for thedata terminal server with connection failure, carrying out reconnecting until the connection is successful. According to the method, the data communication efficiency can be improved, the number of threads started by the client in the communication process is reduced, and the operation pressure of communication data is relieved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the technical field of data communication, in particular to a communication method between a client and a data terminal server. Background technique

[0002] In the current Internet of Things technology has been widely used in many fields, the data transmission technology of the data terminal plays a vital role in the application of the Internet of Things technology in these fields. Usually, the method in which the data terminal initiates a request to the server requires that the relevant information of the server be configured in advance for each data terminal before the connection can be established. This method is difficult to maintain, and it is difficult to change the server after a connection is established with a server.

[0003] In view of this defect, most of the current data terminal manufacturers use the data terminal as the server. At present, there are two collection methods for the data terminal as the server. T...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More