Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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.

Active Publication Date: 2021-03-26
CHINA TOBACCO HENAN IND
View PDF8 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a communication method between a client and a data terminal server, which solves the problem that the communication between the existing client and the server is prone to service blocking, improves the efficiency of data communication, and reduces the number of threads opened by the client during the communication process. Alleviate the operating pressure of communication data

Method used

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
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Communication method for client and data terminal server
  • Communication method for client and data terminal server
  • Communication method for client and data terminal server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] In order to enable those skilled in the art to better understand the solutions of the embodiments of the present invention, the embodiments of the present invention will be further described in detail below in conjunction with the drawings and implementations.

[0044] In view of the current problem that the client and the data terminal server are prone to service blocking, the present invention provides a communication method between the client and the data terminal server, and establishes a Netty event-driven communication method. When the data terminal server sends data to the client , the channel processor is triggered in turn to make the data stream form a data packet in json format. For the data terminal server that fails to connect, reconnect until the connection succeeds. It solves the problem that the communication between the existing client and the server is prone to service blocking, improves the efficiency of data communication, reduces the number of threads...

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

PUM

No PUM Login to View More

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.

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

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/48G06F9/50G06F9/54H04L29/08
CPCG06F9/4843G06F9/505G06F9/542G06F9/546H04L67/141H04L67/145G06F2209/5011G06F2209/547Y02D10/00
Inventor 李秀芳郑智毅许佩黄全忠王建伟赵春元李明伟米存军范伟
Owner CHINA TOBACCO HENAN IND
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products