A terminal equipment data acquisition system based on a Netty framework

A data acquisition system and data acquisition technology, applied in the direction of electrical digital data processing, program control design, resource allocation, etc., can solve the problems of inability to dynamically adjust the number of threads, lack of versatility, etc., to improve data transmission efficiency and reduce resources High cost, high versatility

Inactive Publication Date: 2019-03-01
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF5 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The present invention provides a terminal equipment data acquisition system based on the Netty framework to solve the technical problem that the

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0026] The following uses an inverter device as a terminal device and a kafka database server as an example for specific description.

[0027] The terminal device data collection system based on the Netty framework in this example includes an inverter device, a data collection server, and a kafka database server. The inverter device communicates with the data collection server, and the data collection server communicates with the kafka database server.

[0028] The data collection server builds a server for data collection services based on the Netty framework. The data collection server provides a data collection interface. The data collection interface is programmed based on the spring framework and adopts a restful interface. The data collection server creates thread pool 1 and thread pool 2. The threads in thread pool 1 are used to process the connection requests of inverter devices, and the threads in thread pool 2 are used to process network read and write operations.

...

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 relates to the technical field of data acquisition, and solves the problems that an existing data acquisition system does not have universality and the number of threads cannot be dynamically adjusted. The technical scheme is summarized as follows: the method comprises the steps of: the method is based on a Netty framework; wherein the data acquisition server is provided with a server side of a data acquisition service based on a Netty framework; providing a data acquisition interface, creating a thread pool I and a thread pool II; wherein a thread in the thread pool I is used for processing a connection request of the terminal equipment; wherein the threads in the thread pool II are used for processing network read-write operation and dynamically adjusting the number of thethreads running in the thread pool I and the thread pool II according to the number of connection requests initiated by the terminal equipment, and data are transmitted between the data acquisition server and the terminal equipment in a ByteBuf format. According to the invention, the terminal equipment data is acquired based on the Netty framework, the server and the terminal uniformly transmit the data according to the ByteBuf format, the universality is high, the number of running threads can be dynamically adjusted, and the resource consumption is reduced. The method is especially suitablefor big data acquisition systems.

Description

technical field [0001] The invention relates to the technical field of data collection, in particular to the data collection technology based on the Netty framework. Background technique [0002] With the development of the Internet of Things and big data, more and more terminal data requires access to the big data platform. The existing data collection is basically customized development: (1) According to the characteristics of the terminal equipment, the communication method and data protocol for reporting are agreed, and the back-end is based on the Spring framework, and the interface development based on the HTTP protocol is carried out, and provided to the terminal equipment for calling, Complete data reporting, not universal. (2) In order to meet the data collection needs of a large number of terminal devices, the existing collection mode relies on the monitoring, receiving and processing modes of traditional multi-threaded services. Blockage, interruption, data leak...

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
IPC IPC(8): G06F9/50G06F9/54
CPCG06F9/505G06F9/546G06F2209/5011G06F2209/548
Inventor 唐永瑞
Owner SICHUAN CHANGHONG ELECTRIC CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products