CN116346949B - Method, system and device for constructing protocol conversion rule chain - Google Patents

Method, system and device for constructing protocol conversion rule chain Download PDF

Info

Publication number
CN116346949B
CN116346949B CN202310610711.XA CN202310610711A CN116346949B CN 116346949 B CN116346949 B CN 116346949B CN 202310610711 A CN202310610711 A CN 202310610711A CN 116346949 B CN116346949 B CN 116346949B
Authority
CN
China
Prior art keywords
data
plug
data analysis
analysis plug
bus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310610711.XA
Other languages
Chinese (zh)
Other versions
CN116346949A (en
Inventor
崔海东
杨鹏
李吉龙
孟凡伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tongjian Technology Co ltd
Original Assignee
Tongjian Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tongjian Technology Co ltd filed Critical Tongjian Technology Co ltd
Priority to CN202310610711.XA priority Critical patent/CN116346949B/en
Publication of CN116346949A publication Critical patent/CN116346949A/en
Application granted granted Critical
Publication of CN116346949B publication Critical patent/CN116346949B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method, a system and a device for constructing a protocol conversion rule chain, and belongs to the technical field of data transmission. The method comprises the following steps: downloading corresponding data analysis plug-ins in a plug-in warehouse according to the user requirements, and importing the corresponding data analysis plug-ins into data acquisition equipment; drawing a data stream conversion rule in the data acquisition equipment; setting a configuration item of a data analysis plug-in data acquisition equipment; starting a data bus and a command bus to perform data flow among the data analysis plug-ins and interaction between the data analysis plug-ins and a preset data acquisition platform; starting an imported data analysis plug-in; and carrying out data analysis, circulation and pushing by using the data analysis plug-in. According to the invention, a configurable protocol analysis rule chain is constructed to replace an original complex data acquisition program, so that the use threshold is reduced, and the data acquisition efficiency is improved.

Description

Method, system and device for constructing protocol conversion rule chain
Technical Field
The present invention relates to the field of data transmission technologies, and in particular, to a method, a system, and an apparatus for constructing a protocol conversion rule chain.
Background
The internet of things (IoT, internet of things), namely the internet with everything connected, is an extended and expanded network based on the internet, and is a huge network formed by combining various information sensing devices with the network, so that the interconnection and the intercommunication of people, machines and things at any time and any place are realized. The internet of things is a network which is used for realizing intelligent identification, positioning, tracking, monitoring and management of objects by connecting any object with the internet through information sensing equipment such as radio frequency identification, an infrared sensor, a global positioning system, a laser scanner and the like according to a stipulated protocol and carrying out information exchange and communication.
Currently, in the implementation process of industrial internet projects, data acquisition of the internet of things is important and generally has a relatively long working period. When the data acquisition is performed, the Internet of things engineer needs to develop a program for analyzing the protocol according to the butt joint protocol of the sensor or the industrial control system, and deploy the program into the industrial control computer equipment at the edge side to acquire the data in real time.
However, when a plurality of projects are simultaneously implemented, engineer processing such as queuing may occur, which may delay project progress. The existing data acquisition program is complex, and most of the butted protocols of similar projects are similar to those of the integrated SDK (software development kit) butted interfaces of OPC, mudbus, H and parts of manufacturer equipment for acquiring data. Therefore, how to simplify the data acquisition process, improve the data acquisition efficiency and reusability of the same type of acquisition procedure are the problems to be solved.
Disclosure of Invention
Aiming at the problems, the invention aims to provide a method, a system and a device for constructing a protocol conversion rule chain, which are used for replacing an original complex data acquisition program by constructing a configurable protocol analysis rule chain, so that the use threshold is reduced, and the data acquisition efficiency is improved.
The invention aims to achieve the aim, and the aim is achieved by the following technical scheme:
in a first aspect, the invention discloses a method for constructing a protocol conversion rule chain, which comprises the following steps:
s1: downloading corresponding data analysis plug-ins in a plug-in warehouse according to the user requirements, and importing the corresponding data analysis plug-ins into data acquisition equipment;
s2: drawing a data stream conversion rule in the data acquisition equipment;
s3: setting a configuration item of a data analysis plug-in data acquisition equipment;
s4: starting a data bus and a command bus to perform data flow among the data analysis plug-ins and interaction between the data analysis plug-ins and a preset data acquisition platform;
s5: starting an imported data analysis plug-in;
s6: and carrying out data analysis, circulation and pushing by using the data analysis plug-in.
Further, the data parsing plug-in includes: basic plug-in program for receiving data according to standard communication protocol, analysis plug-in program according to industry general application protocol, and plug-in program for pushing data according to interface for receiving data by platform application.
Further, the bin file of the data analysis plug-in comprises a Docker mirror image source file and related configuration items; and merging and generating a bin file of the data analysis plug-in by converting the relevant configuration item into a JSON character string and adding the JSON character string to the dock mirror image source file.
Further, step S2 includes:
configuring a data flow rule in a visual interface according to user requirements; the data stream conversion rule supports the distribution of a data stream to a plurality of data parsing plug-ins for processing.
Further, the configuration items of the data parsing plug-in include: port configuration, environment variable configuration and parameter configuration;
port configuration, which is used for configuring the exposed port of the container through the API interface of the Docker;
an environment variable configuration for configuring environment variables applied to the container through an API interface of the Docker;
and the parameter configuration is used for issuing the configuration parameters to the corresponding data analysis plug-in through the command bus.
Further, step S3 further includes:
when the configuration items of the data analysis plug-in cannot meet the functions of the data analysis plug-in, the js script is compiled through the advanced configuration interface to perform configuration, and the data analysis plug-in operates corresponding actions after acquiring the compiled parameters.
Further, the data bus is used for data flow among the data analysis plug-ins; when the data analysis plug-in is started and is connected with the data bus, firstly, sending a plug-in id to the data bus, and marking Socket connection by the data bus according to the plug-in id; when the data analysis plug-in sends data to the data bus, the data bus forwards the data to the next data analysis plug-in according to a plasticizer circulation rule configured by a user, and multistage analysis of the data is performed.
Further, the command bus is used for acquiring configuration information of the data analysis plug-in and acquiring preset data acquisition platform information; after the data analysis plug-in is started, the data analysis plug-in is firstly connected with the command bus and sends plug-in id to the command bus, then configuration information is requested to the command bus, at the moment, the command bus returns the configuration information input by a user to the data analysis plug-in, and the data analysis plug-in performs data analysis according to the configuration information.
Further, step S5 includes:
creating a container according to the configuration information, wherein the mirror image of the container is an imported data analysis plug-in mirror image;
after the container is started, a data analysis plug-in main program is operated, and data analysis is started according to own logic;
when the data analysis plug-in main program is started, whether a stopped container exists or not is preferentially detected, and if so, the container is deleted.
Further, step S6 includes:
after the data bus, the command bus and the imported data analysis plug-in are started, the data analysis plug-in starts to acquire original data and starts to circulate;
in the circulation process, the data is analyzed by the plug-in to obtain a final format, and the final format is pushed to each service system through a preset push plug-in.
In a second aspect, the present invention also discloses a system for constructing a protocol conversion rule chain, including:
the plug-in adding module is used for downloading corresponding data analysis plug-ins in the plug-in warehouse according to the user requirements and importing the corresponding data analysis plug-ins into the data acquisition equipment;
the rule setting module is used for drawing a data stream conversion rule in the data acquisition equipment;
the configuration module is used for setting configuration items of the data analysis plug-in the data acquisition equipment;
the bus starting module is used for starting the data bus and the command bus so as to conduct data flow among the data analysis plug-ins and interaction between the data analysis plug-ins and a preset data acquisition platform;
the plug-in starting module is used for starting the imported data analysis plug-in;
and the operation module is used for pushing the data analysis flow by utilizing the data analysis plug-in.
In a third aspect, the present invention discloses a device for constructing a protocol conversion rule chain, including:
the memory is used for storing a construction program of the protocol conversion rule chain;
a processor for implementing the steps of the method for constructing a protocol conversion rule chain according to any one of the above when executing the program for constructing a protocol conversion rule chain.
Compared with the prior art, the invention has the beneficial effects that: the invention discloses a method, a system and a device for constructing a protocol conversion rule chain. Each plug-in can complete customization of the plug-in according to the port mapping, environment variables, parameter configuration and function configuration items according to actual requirements, the required plug-in is configured in a platform mode, and plug-in programs are connected together through a Web-end-friendly man-machine interaction interface, so that the whole protocol conversion rule chain can be manufactured rapidly.
According to the invention, a configurable protocol analysis rule chain is constructed to replace an original complex data acquisition program, so that the use threshold is reduced, the data acquisition efficiency is improved, and the method can be effectively applied to various scenes of industrial Internet of things data acquisition to realize efficient acquisition of Internet of things data.
It can be seen that the present invention has outstanding substantial features and significant advances over the prior art, as well as the benefits of its implementation.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method of an embodiment of the present invention.
Fig. 2 is a system configuration diagram of an embodiment of the present invention.
In the figure, 1, a plug-in adding module; 2. a rule setting module; 3. a configuration module; 4. a bus starting module; 5. a plug-in starting module; 6. and (5) operating the module.
Detailed Description
In order to better understand the aspects of the present invention, the present invention will be described in further detail with reference to the accompanying drawings and detailed description. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, the invention discloses a method for constructing a protocol conversion rule chain, which comprises the following steps:
s1: and downloading the corresponding data analysis plug-ins in a plug-in warehouse according to the user requirements, and importing the corresponding data analysis plug-ins into data acquisition equipment.
In a specific embodiment, the data analysis plug-ins of the plug-in warehouse are divided into three categories, namely, basic plug-ins for receiving data according to a standard communication protocol; 2. parsing plug-ins according to industry-generic application protocols, like mulbus, HJ212; 3. and the plug-in program is used for pushing the data according to interfaces for receiving the data by different platform applications.
The bin files of the data analysis plug-in are obtained by combining the Docker mirror image source file and related configuration items. When merging, the configuration item is converted into a JSON character string to be added to the front of the mirror source file.
S2: and drawing a data stream conversion rule in the data acquisition device.
Specifically, the data flow rule is configured in the visual interface according to the user demand. The data stream conversion rule supports the distribution of a data stream to a plurality of data parsing plug-ins for processing.
S3: and setting configuration items of the data analysis plug-in the data acquisition equipment.
In a specific embodiment, each data analysis plug-in has its own unique configuration items, such as port configuration, environment variable configuration, parameter configuration, etc., if the above three configurations cannot meet the functions of the plug-in, the plug-in can write js script for configuration through advanced configuration, and then run corresponding actions after obtaining parameters.
The port configuration content is an exposed port of the container, the configuration items of the environment variables are applied to the environment variables in the container, the configuration of the port and the environment variables is carried out through an API interface of the Docker, and the parameter configuration is issued to data analysis through a command bus.
S4: and starting the data bus and the command bus to perform data flow among the data analysis plug-ins and interaction between the data analysis plug-ins and a preset data acquisition platform.
Specifically:
the data bus mainly carries out data flow among the data analysis plug-ins. When the data analysis plug-in unit sends data to the data bus, the bus forwards the data to the next plug-in unit according to the circulation rule configured by the user so as to realize multistage analysis of the data.
The command bus mainly realizes interaction between the data analysis plug-in and the platform, such as obtaining configuration information of the plug-in, obtaining platform information and the like. After the data analysis plug-in is started, the data analysis plug-in is firstly connected to a command bus and sends a plug-in id, and then configuration information is requested to the command bus; at this time, the command bus returns the configuration information input by the user to the data analysis plug-in, and the data analysis plug-in performs data analysis according to the user configuration information.
S5: and starting the imported data analysis plug-in.
In the specific embodiment, firstly, a container is created according to configuration information, and the mirror image of the container is an imported data analysis plug-in mirror image; after the container is started, a data analysis plug-in main program is operated, and data analysis is started according to own logic. In addition, when the data analysis plug-in main program is started, whether a stopped container exists or not is preferentially detected, and if so, the container is deleted.
S6: and carrying out data analysis, circulation and pushing by using the data analysis plug-in.
After the starting of various buses and data analysis plug-ins is completed, the data analysis plug-ins start to acquire original data and start to circulate, and in the circulation process, the data is analyzed by the plug-ins to acquire a final format, and the final format is pushed to each service system by pushing the plug-ins.
Referring to fig. 2, the invention also discloses a system for constructing a protocol conversion rule chain, which comprises: a plug-in adding module 1, a rule setting module 2, a configuration module 3, a bus starting module 4, a plug-in starting module 5 and an operation module 6.
And the plug-in adding module 1 is used for downloading the corresponding data analysis plug-in the plug-in warehouse according to the user requirement and importing the corresponding data analysis plug-in into the data acquisition equipment.
The rule setting module 2 is used for drawing the data stream conversion rule in the data acquisition device.
The rule setting module 2 is specifically configured to: configuring a data flow rule in a visual interface according to user requirements; the data stream conversion rule supports the distribution of a data stream to a plurality of data parsing plug-ins for processing.
And the configuration module 3 is used for setting configuration items of the data analysis plug-in the data acquisition equipment.
The configuration module 3 is also configured to: when the configuration items of the data analysis plug-in cannot meet the functions of the data analysis plug-in, the js script is compiled through the advanced configuration interface to perform configuration, and the data analysis plug-in operates corresponding actions after acquiring the compiled parameters.
And the bus starting module 4 is used for starting the data bus and the command bus so as to carry out data flow among the data analysis plug-ins and interaction between the data analysis plug-ins and a preset data acquisition platform.
And the plug-in starting module 5 is used for starting the imported data analysis plug-in.
The plug-in starting module 5 is specifically configured to: creating a container according to the configuration information, wherein the mirror image of the container is an imported data analysis plug-in mirror image; after the container is started, a data analysis plug-in main program is operated, and data analysis is started according to own logic; when the data analysis plug-in main program is started, whether a stopped container exists or not is preferentially detected, and if so, the container is deleted.
And the operation module 6 is used for pushing the data analysis flow by utilizing the data analysis plug-in.
The operation module 6 is specifically configured to: after the data bus, the command bus and the imported data analysis plug-in are started, the data analysis plug-in is utilized to start obtaining original data and starting circulation; in the circulation process, the data is analyzed by the plug-in to obtain a final format, and the final format is pushed to each service system through a preset push plug-in.
In addition, the invention also discloses a device for constructing the protocol conversion rule chain, which comprises a processor and a memory; the processor executes the construction program of the protocol conversion rule chain stored in the memory to realize the following steps:
1. and downloading the corresponding data analysis plug-ins in a plug-in warehouse according to the user requirements, and importing the corresponding data analysis plug-ins into data acquisition equipment.
2. And drawing a data stream conversion rule in the data acquisition device.
3. And setting configuration items of the data analysis plug-in the data acquisition equipment.
4. And starting the data bus and the command bus to perform data flow among the data analysis plug-ins and interaction between the data analysis plug-ins and a preset data acquisition platform.
5. And starting the imported data analysis plug-in.
6. And carrying out data analysis, circulation and pushing by using the data analysis plug-in.
In summary, the invention replaces the original complex data acquisition procedure by constructing a configurable protocol analysis rule chain, thereby reducing the use threshold and improving the data acquisition efficiency.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the method disclosed in the embodiment, since it corresponds to the system disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed systems, and methods may be implemented in other ways. For example, the system embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, system or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each module may exist alone physically, or two or more modules may be integrated in one unit.
Similarly, each processing unit in the embodiments of the present invention may be integrated in one functional module, or each processing unit may exist physically, or two or more processing units may be integrated in one functional module.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The method, the system and the device for constructing the protocol conversion rule chain provided by the invention are described in detail. The principles and embodiments of the present invention have been described herein with reference to specific examples, the description of which is intended only to facilitate an understanding of the method of the present invention and its core ideas. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the invention can be made without departing from the principles of the invention and these modifications and adaptations are intended to be within the scope of the invention as defined in the following claims.

Claims (7)

1. The method for constructing the protocol conversion rule chain is characterized by comprising the following steps:
s1: downloading corresponding data analysis plug-ins in a plug-in warehouse according to the user requirements, and importing the corresponding data analysis plug-ins into data acquisition equipment;
s2: drawing a data stream conversion rule in the data acquisition equipment;
s3: setting a configuration item of a data analysis plug-in data acquisition equipment;
s4: starting a data bus and a command bus to perform data flow among the data analysis plug-ins and interaction between the data analysis plug-ins and a preset data acquisition platform;
s5: starting an imported data analysis plug-in;
s6: the data analysis plug-in is utilized to carry out data analysis flow pushing;
the data bus is used for data flow among the data analysis plug-ins; when the data analysis plug-in is started and is connected with the data bus, firstly, sending a plug-in id to the data bus, and marking Socket connection by the data bus according to the plug-in id; when the data analysis plug-in sends data to the data bus, the data bus forwards the data to the next data analysis plug-in according to the circulation rule configured by the user, and multistage analysis of the data is carried out;
the command bus is used for acquiring configuration information of the data analysis plug-in and acquiring preset data acquisition platform information; after the data analysis plug-in is started, the data analysis plug-in is firstly connected with the command bus and sends plug-in id to the command bus, then configuration information is requested to the command bus, at the moment, the command bus returns the configuration information input by a user to the data analysis plug-in, and the data analysis plug-in performs data analysis according to the configuration information;
the data parsing plug-in includes:
basic plug-in program for receiving data according to standard communication protocol, analysis plug-in program according to industry general application protocol, and plug-in program for pushing data according to interface for receiving data by platform application;
the bin file of the data analysis plug-in comprises a Docker mirror image source file and related configuration items;
and merging and generating a bin file of the data analysis plug-in by converting the relevant configuration item into a JSON character string and adding the JSON character string to the dock mirror image source file.
2. The method for constructing a protocol conversion rule chain according to claim 1, wherein the step S2 comprises:
configuring a data flow rule in a visual interface according to user requirements; the data stream conversion rule supports the distribution of a data stream to a plurality of data parsing plug-ins for processing.
3. The method for constructing a protocol conversion rule chain according to claim 1, wherein the configuration items of the data parsing plug-in include: port configuration, environment variable configuration and parameter configuration;
port configuration, which is used for configuring the exposed port of the container through the API interface of the Docker;
an environment variable configuration for configuring environment variables applied to the container through an API interface of the Docker;
parameter configuration, which is used for issuing configuration parameters to corresponding data analysis plug-ins through a command bus;
the step S3 further includes:
when the configuration items of the data analysis plug-in cannot meet the functions of the data analysis plug-in, the js script is compiled through the advanced configuration interface to perform configuration, and the data analysis plug-in operates corresponding actions after acquiring the compiled parameters.
4. The method for constructing a protocol conversion rule chain according to claim 1, wherein the step S5 comprises:
creating a container according to the configuration information, wherein the mirror image of the container is an imported data analysis plug-in mirror image;
after the container is started, a data analysis plug-in main program is operated, and data analysis is started according to own logic;
when the data analysis plug-in main program is started, whether a stopped container exists or not is preferentially detected, and if so, the container is deleted.
5. The method for constructing a protocol conversion rule chain according to claim 4, wherein the step S6 comprises:
after the data bus, the command bus and the imported data analysis plug-in are started, the data analysis plug-in starts to acquire original data and starts to circulate;
in the circulation process, the data is analyzed by the plug-in to obtain a final format, and the final format is pushed to each service system through a preset push plug-in.
6. A system for constructing a protocol conversion rule chain, comprising:
the plug-in adding module is used for downloading corresponding data analysis plug-ins in the plug-in warehouse according to the user requirements and importing the corresponding data analysis plug-ins into the data acquisition equipment;
the rule setting module is used for drawing a data stream conversion rule in the data acquisition equipment;
the configuration module is used for setting configuration items of the data analysis plug-in the data acquisition equipment;
the bus starting module is used for starting the data bus and the command bus so as to conduct data flow among the data analysis plug-ins and interaction between the data analysis plug-ins and a preset data acquisition platform;
the plug-in starting module is used for starting the imported data analysis plug-in;
the operation module is used for pushing the data analysis flow by utilizing the data analysis plug-in;
the data bus is used for data flow among the data analysis plug-ins; when the data analysis plug-in is started and is connected with the data bus, firstly, sending a plug-in id to the data bus, and marking Socket connection by the data bus according to the plug-in id; when the data analysis plug-in sends data to the data bus, the data bus forwards the data to the next data analysis plug-in according to the circulation rule configured by the user, and multistage analysis of the data is carried out;
the command bus is used for acquiring configuration information of the data analysis plug-in and acquiring preset data acquisition platform information; after the data analysis plug-in is started, the data analysis plug-in is firstly connected with the command bus and sends plug-in id to the command bus, then configuration information is requested to the command bus, at the moment, the command bus returns the configuration information input by a user to the data analysis plug-in, and the data analysis plug-in performs data analysis according to the configuration information;
the data parsing plug-in includes:
basic plug-in program for receiving data according to standard communication protocol, analysis plug-in program according to industry general application protocol, and plug-in program for pushing data according to interface for receiving data by platform application;
the bin file of the data analysis plug-in comprises a Docker mirror image source file and related configuration items;
and merging and generating a bin file of the data analysis plug-in by converting the relevant configuration item into a JSON character string and adding the JSON character string to the dock mirror image source file.
7. A protocol conversion rule chain constructing apparatus, comprising:
the memory is used for storing a construction program of the protocol conversion rule chain;
a processor for implementing the steps of the method for constructing a protocol conversion rule chain according to any one of claims 1 to 5 when executing the program for constructing a protocol conversion rule chain.
CN202310610711.XA 2023-05-29 2023-05-29 Method, system and device for constructing protocol conversion rule chain Active CN116346949B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310610711.XA CN116346949B (en) 2023-05-29 2023-05-29 Method, system and device for constructing protocol conversion rule chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310610711.XA CN116346949B (en) 2023-05-29 2023-05-29 Method, system and device for constructing protocol conversion rule chain

Publications (2)

Publication Number Publication Date
CN116346949A CN116346949A (en) 2023-06-27
CN116346949B true CN116346949B (en) 2023-10-03

Family

ID=86879077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310610711.XA Active CN116346949B (en) 2023-05-29 2023-05-29 Method, system and device for constructing protocol conversion rule chain

Country Status (1)

Country Link
CN (1) CN116346949B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617505A (en) * 2013-12-05 2014-03-05 用友软件股份有限公司 Dynamic analysis and display system and method for enterprise flow chart
CN104320415A (en) * 2014-11-13 2015-01-28 国家电网公司 Dynamic plug-in type protocol parsing method of substation equipment
CN111294235A (en) * 2020-01-17 2020-06-16 文思海辉元辉科技(无锡)有限公司 Data processing method, device, gateway and readable storage medium
CN115314571A (en) * 2022-06-20 2022-11-08 国网信息通信产业集团有限公司 Cloud protocol gateway implementation method and system supporting heterogeneous device access
CN116156012A (en) * 2023-04-21 2023-05-23 中国电子科技集团公司第二十八研究所 Universal heterogeneous Internet of things equipment standardized access and data analysis system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617505A (en) * 2013-12-05 2014-03-05 用友软件股份有限公司 Dynamic analysis and display system and method for enterprise flow chart
CN104320415A (en) * 2014-11-13 2015-01-28 国家电网公司 Dynamic plug-in type protocol parsing method of substation equipment
CN111294235A (en) * 2020-01-17 2020-06-16 文思海辉元辉科技(无锡)有限公司 Data processing method, device, gateway and readable storage medium
CN115314571A (en) * 2022-06-20 2022-11-08 国网信息通信产业集团有限公司 Cloud protocol gateway implementation method and system supporting heterogeneous device access
CN116156012A (en) * 2023-04-21 2023-05-23 中国电子科技集团公司第二十八研究所 Universal heterogeneous Internet of things equipment standardized access and data analysis system and method

Also Published As

Publication number Publication date
CN116346949A (en) 2023-06-27

Similar Documents

Publication Publication Date Title
CN112131636B (en) Device and method for accurately mapping building information model and Internet of things monitoring item
CN111638690B (en) Data acquisition method, device, system and equipment based on general information model
CN110875850B (en) Firmware upgrading method and system, readable storage medium and terminal equipment
CN111191332A (en) Stock data initialization system and method for dispatching master station transformer diagram module to GIS platform
CN113079198B (en) Method and device for converting cloud platform interface protocol
CN108132868A (en) A kind of data monitoring method, device, computing device and storage medium
CN112804730A (en) Equipment interconnection method and device, server, intelligent equipment and storage medium
Stavridou Integration in software intensive systems
CN114138246A (en) Topology automatic generation method and device, computing equipment and storage medium
CN110888672B (en) Expression engine implementation method and system based on metadata architecture
CN105550179A (en) Webpage collection method and browser plug-in
CN109471957B (en) Metadata conversion method and device based on uniform tags
CN116346949B (en) Method, system and device for constructing protocol conversion rule chain
CN115756472B (en) Cloud-edge cooperative industrial equipment digital twin operation monitoring method and system
CN110209722A (en) A kind of data-interface for data exchange
CN113805966A (en) Multi-terminal device dynamic view rendering implementation method and system
CN114610309A (en) Object configuration method, device, equipment and storage medium
CN114327709A (en) Control page generation method and device, intelligent device and storage medium
CN113434190A (en) Data processing method and device, storage medium and electronic equipment
CN113064627A (en) Service access data processing method, platform, terminal, equipment and system
CN111193765A (en) Device connection method, device, computer device and computer-readable storage medium
CN114785847B (en) Network control software development configuration method, terminal and storage medium
CN112114931A (en) Deep learning program configuration method and device, electronic equipment and storage medium
CN115713064A (en) Drawing file conversion method and device, electronic equipment and storage medium
CN117008909A (en) Linux kernel optimization processing method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant