CN109861998B - Plug-in type dynamic analysis system and method based on Beidou short message protocol - Google Patents
Plug-in type dynamic analysis system and method based on Beidou short message protocol Download PDFInfo
- Publication number
- CN109861998B CN109861998B CN201910054304.9A CN201910054304A CN109861998B CN 109861998 B CN109861998 B CN 109861998B CN 201910054304 A CN201910054304 A CN 201910054304A CN 109861998 B CN109861998 B CN 109861998B
- Authority
- CN
- China
- Prior art keywords
- plug
- module
- protocol
- main program
- short message
- 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
Links
Images
Landscapes
- Stored Programmes (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a plug-in type dynamic analysis system and a method based on a Beidou short message protocol, wherein the system comprises a main program module, a registration center module and a plug-in module, when the main program is started, the main program service is registered in the registration center, a registration interface is issued, when the plug-in program is started, the plug-in service is registered in the registration center, the registration interface issued by the main program is called, a plug-in is registered, the main program sends the received Beidou short message content to a corresponding plug-in service, and the plug-in analyzes the short message content sent by the main program into corresponding data according to the protocol and then returns to the main program.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a plug-in type dynamic analysis system and method based on a Beidou short message protocol.
Background
In the prior art, because the available byte number of the Beidou short message is limited, when the Beidou short message is used for sending data, the data is coded, and the most information is transmitted by the least bytes.
Disclosure of Invention
The invention aims to reduce the coupling of a system, improve the performance of the system and design a plug-in type dynamic analysis system and method based on the Beidou short message protocol.
The invention aims to be realized by the following technical scheme: a plug-in type dynamic analysis system based on a Beidou short message protocol comprises a main program module, a registration center module and a plurality of plug-in modules; when the main program module is started, the main program service is registered to the registration center module, and a registration interface is released; when the plug-in module is started, the plug-in service is registered in the registration center module, and meanwhile, the registration interface issued by the main program module is called to register the plug-in; the main program module sends the received Beidou short message content to corresponding plug-in service, and the plug-in module analyzes the short message content sent by the main program module into corresponding data according to a protocol and then returns the corresponding data to the main program module.
Furthermore, the main program module comprises a theme consumption module, a protocol type judgment module and a plug-in sending and receiving module, wherein the theme consumption module consumes the theme of the input protocol, then the protocol type judgment module judges the protocol type according to the protocol header, the plug-in sending and receiving module distributes the protocol content to the corresponding protocol analysis plug-in module, receives the result analyzed by the plug-in module, and finally writes the returned data object into the database.
Furthermore, the plug-in module comprises a receiving module, an analysis module and an encapsulation module, wherein the receiving module receives the protocol content sent by the server, the analysis module analyzes the corresponding protocol content according to a protocol analysis rule, and the encapsulation module encapsulates the analyzed data into an object and returns the data or performs the next work.
Furthermore, the plug-in module is configured according to different protocol types, and different Beidou short message protocols are independently analyzed.
Further, a plug-in type dynamic analysis method based on the Beidou short message protocol comprises the following steps:
s51: when the main program module is started, the main program service is registered to the registration center module, and a registration interface is issued;
s52: when the plug-in module is started, the plug-in service is registered in the registration center module, and meanwhile, the registration interface issued by the main program module is called to register the plug-in;
s53, the main program module preprocesses the received Beidou short message and sends the protocol content to the corresponding plug-in module to analyze the protocol;
s54: the plug-in module analyzes the short message content sent by the main program module into corresponding data according to the protocol and then returns the short message content to the main program module.
Further, the plug-in dynamic analysis method based on the Beidou short message protocol comprises the following steps:
s61: when the data support service is started, a node is registered with the zookeeper, and a plug-in registration service is provided for the dubbo;
s62: when the plug-in is started, registering a node to the zookeeper, and providing corresponding protocol analysis service to the dubbo;
s63: calling a plug-in registration service of the data support service after the plug-in is started, and registering the plug-in into the data support service;
s64: and after the data support service acquires the plug-in, writing plug-in information into the redis.
Further, the plug-in module analyzes the Beidou short message protocol, and the method comprises the following steps:
s71, the plug-in module receives the protocol content sent from the server;
s72, analyzing the corresponding protocol content according to the protocol analysis rule;
and S73, packaging the analyzed data into the object and returning the data.
Further, the main program module preprocesses the Beidou short message and comprises the following steps:
s81, consuming the theme in the Beidou short message;
s82, judging the protocol type according to the protocol header;
and S83, acquiring the data object returned by the plug-in module and then warehousing the data.
Has the advantages that: the invention reduces the coupling of the analysis protocol flow and the whole service by the plug-in analysis mode, can rapidly improve the performance by newly adding and disposing under the environment of rapid increase of data volume, is simpler and faster when developing new protocol analysis work, simultaneously runs independently among all plug-ins, and does not influence the normal analysis of other protocols when disposing the new analysis protocol work.
Drawings
Fig. 1 is a system configuration diagram.
Fig. 2 is a flow chart of the main program.
FIG. 3 is a plug-in flow diagram.
Detailed Description
The invention will be further described with reference to the accompanying drawings, but the scope of the invention is not limited to the following description
As shown in fig. 1, a plug-in type dynamic parsing system based on the beidou short message protocol includes a main program module, a registry module and a plurality of plug-in modules; when the main program module is started, the main program service is registered to the registration center module, and a registration interface is released; when the plug-in module is started, the plug-in service is registered in the registration center module, and meanwhile, the registration interface issued by the main program module is called to register the plug-in; the main program module sends the received Beidou short message content to corresponding plug-in service, and the plug-in module analyzes the short message content sent by the main program module into corresponding data according to a protocol and then returns the corresponding data to the main program module.
Furthermore, the main program module comprises a theme consumption module, a protocol type judgment module and a plug-in sending and receiving module, wherein the theme consumption module consumes the theme of the input protocol, then the protocol type judgment module judges the protocol type according to the protocol header, the plug-in sending and receiving module distributes the protocol content to the corresponding protocol analysis plug-in module, receives the result analyzed by the plug-in module, and finally writes the returned data object into the database.
Furthermore, the plug-in module comprises a receiving module, an analysis module and an encapsulation module, wherein the receiving module receives the protocol content sent by the server, the analysis module analyzes the corresponding protocol content according to a protocol analysis rule, and the encapsulation module encapsulates the analyzed data into an object and returns the data or performs the next work.
Furthermore, the plug-in module is configured according to different protocol types, and different Beidou short message protocols are independently analyzed.
Further, a plug-in type dynamic analysis method based on the Beidou short message protocol comprises the following steps:
s51: when the main program module is started, the main program service is registered to the registration center module, and a registration interface is issued;
s52: when the plug-in module is started, the plug-in service is registered in the registration center module, and meanwhile, the registration interface issued by the main program module is called to register the plug-in;
s53, the main program module preprocesses the received Beidou short message and sends the protocol content to the corresponding plug-in module to analyze the protocol;
s54: the plug-in module analyzes the short message content sent by the main program module into corresponding data according to the protocol and then returns the short message content to the main program module.
Further, the plug-in dynamic analysis method based on the Beidou short message protocol comprises the following steps:
s61: when the data support service is started, a node is registered with the zookeeper, and a plug-in registration service is provided for the dubbo;
s62: when the plug-in is started, registering a node to the zookeeper, and providing corresponding protocol analysis service to the dubbo;
s63: calling a plug-in registration service of the data support service after the plug-in is started, and registering the plug-in into the data support service;
s64: and after the data support service acquires the plug-in, writing plug-in information into the redis.
Further, as shown in fig. 3, the plug-in module analyzes the beidou short message protocol, which includes the following steps:
s71, the plug-in module receives the protocol content sent from the server;
s72, analyzing the corresponding protocol content according to the protocol analysis rule;
and S73, packaging the analyzed data into the object and returning the data.
Further, as shown in fig. 2, the main program module preprocesses the beidou short message, including the following steps:
s81, consuming the theme in the Beidou short message;
s82, judging the protocol type according to the protocol header;
and S83, acquiring the data object returned by the plug-in module and then warehousing the data.
Has the advantages that: the invention reduces the coupling of the analysis protocol flow and the whole service by the plug-in analysis mode, can rapidly improve the performance by newly adding and disposing under the environment of rapid increase of data volume, is simpler and faster when developing new protocol analysis work, simultaneously runs independently among all plug-ins, and does not influence the normal analysis of other protocols when disposing the new analysis protocol work.
The foregoing shows and describes the general principles and broad features of the present invention and advantages thereof. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.
Claims (6)
1. A plug-in type dynamic analysis system based on a Beidou short message protocol is characterized by comprising a main program module, a registration center module and a plurality of plug-in modules; when the main program module is started, the main program service is registered to the registration center module, and a registration interface is released; when the plug-in module is started, the plug-in service is registered in the registration center module, and meanwhile, the registration interface issued by the main program module is called to register the plug-in; the main program module sends the received Beidou short message content to corresponding plug-in service, and the plug-in module analyzes the short message content sent by the main program module into corresponding data according to a protocol and returns the corresponding data to the main program module; the main program module comprises a theme consumption module, a protocol type judgment module and a plug-in sending and receiving module, wherein the theme consumption module consumes the theme of an input protocol, then the protocol type judgment module judges the protocol type according to a protocol header, the plug-in sending and receiving module distributes the protocol content to a corresponding protocol analysis plug-in module, receives the result analyzed by the plug-in module and finally writes a returned data object into a database; the plug-in module comprises a receiving module, an analysis module and an encapsulation module, wherein the receiving module receives the protocol content sent by the server, the analysis module analyzes the corresponding protocol content according to a protocol analysis rule, and the encapsulation module encapsulates the analyzed data into an object and returns the data or carries out the next work.
2. The system according to claim 1, wherein the plug-in modules are configured according to different protocol types to independently analyze different beidou short message protocols.
3. A plug-in type dynamic analysis method based on a Beidou short message protocol is characterized by comprising the following steps:
s51: when the main program module is started, the main program service is registered to the registration center module, and a registration interface is issued;
s52: when the plug-in module is started, the plug-in service is registered in the registration center module, and meanwhile, the registration interface issued by the main program module is called to register the plug-in;
s53, the main program module preprocesses the received Beidou short message and sends the protocol content to the corresponding plug-in module to analyze the protocol;
s54: the plug-in module analyzes the short message content sent by the main program module into corresponding data according to the protocol and then returns the short message content to the main program module.
4. The plug-in dynamic analysis method based on the Beidou short message protocol is characterized by comprising the following steps of:
s61: when the data support service is started, a node is registered with the zookeeper, and a plug-in registration service is provided for the dubbo;
s62: when the plug-in is started, registering a node to the zookeeper, and providing corresponding protocol analysis service to the dubbo;
s63: calling a plug-in registration service of the data support service after the plug-in is started, and registering the plug-in into the data support service;
s64: and after the data support service acquires the plug-in, writing plug-in information into the redis.
5. The plug-in type dynamic analysis method based on the Beidou short message protocol as claimed in claim 3, wherein the plug-in module analyzes the Beidou short message protocol, comprising the following steps:
s71, the plug-in module receives the protocol content sent from the server;
s72, analyzing the corresponding protocol content according to the protocol analysis rule;
and S73, packaging the analyzed data into the object and returning the data.
6. The plug-in dynamic analysis method based on the Beidou short message protocol as claimed in claim 3, wherein the main program module preprocesses the Beidou short message, comprising the following steps:
s81, consuming the theme in the Beidou short message;
s82, judging the protocol type according to the protocol header;
and S83, acquiring the data object returned by the plug-in module and then warehousing the data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910054304.9A CN109861998B (en) | 2019-01-21 | 2019-01-21 | Plug-in type dynamic analysis system and method based on Beidou short message protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910054304.9A CN109861998B (en) | 2019-01-21 | 2019-01-21 | Plug-in type dynamic analysis system and method based on Beidou short message protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109861998A CN109861998A (en) | 2019-06-07 |
CN109861998B true CN109861998B (en) | 2021-06-11 |
Family
ID=66895428
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910054304.9A Active CN109861998B (en) | 2019-01-21 | 2019-01-21 | Plug-in type dynamic analysis system and method based on Beidou short message protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109861998B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111555915A (en) * | 2020-04-24 | 2020-08-18 | 科大国创云网科技有限公司 | Dynamic network element control system based on plug-in configuration |
CN112003937B (en) * | 2020-08-21 | 2023-08-15 | 西安寰宇卫星测控与数据应用有限公司 | Satellite data transmission method, device, computer equipment and storage medium |
CN113656092B (en) * | 2021-07-29 | 2024-04-19 | 浙江中控信息产业股份有限公司 | Plug-in-based SCADA system driving protocol efficient management method |
CN114338439B (en) * | 2021-12-27 | 2023-08-08 | 上海观安信息技术股份有限公司 | Universal network flow analysis device and method |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW550465B (en) * | 2002-02-22 | 2003-09-01 | Taiwan Knowledge Bank Co Ltd | Video multi-media message-recording discussing area and announcement system and method |
CN101426000A (en) * | 2007-10-30 | 2009-05-06 | 北京启明星辰信息技术有限公司 | General protocol parsing method and system |
CN102761545A (en) * | 2012-06-30 | 2012-10-31 | 华为技术有限公司 | Service processing method, service processor and service processing system |
CN103176795A (en) * | 2013-02-04 | 2013-06-26 | 中国电子科技集团公司第二十八研究所 | Method for applying plug-in technology to data filtering of information distribution software |
CN103645919A (en) * | 2013-12-18 | 2014-03-19 | 用友软件股份有限公司 | Method for extending functions of management information system through plugins |
CN105554160A (en) * | 2016-01-29 | 2016-05-04 | 四川长虹电器股份有限公司 | Dubbo distributed cluster system architecture method based on nginx load balancing |
CN106817353A (en) * | 2015-11-30 | 2017-06-09 | 任子行网络技术股份有限公司 | For MAC collections and the wireless aps and method of network security audit |
CN108111496A (en) * | 2017-12-13 | 2018-06-01 | 杭州安恒信息技术有限公司 | The method, apparatus and system of http services are exposed for dubbo Distributed Applications |
-
2019
- 2019-01-21 CN CN201910054304.9A patent/CN109861998B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW550465B (en) * | 2002-02-22 | 2003-09-01 | Taiwan Knowledge Bank Co Ltd | Video multi-media message-recording discussing area and announcement system and method |
CN101426000A (en) * | 2007-10-30 | 2009-05-06 | 北京启明星辰信息技术有限公司 | General protocol parsing method and system |
CN102761545A (en) * | 2012-06-30 | 2012-10-31 | 华为技术有限公司 | Service processing method, service processor and service processing system |
CN103176795A (en) * | 2013-02-04 | 2013-06-26 | 中国电子科技集团公司第二十八研究所 | Method for applying plug-in technology to data filtering of information distribution software |
CN103645919A (en) * | 2013-12-18 | 2014-03-19 | 用友软件股份有限公司 | Method for extending functions of management information system through plugins |
CN106817353A (en) * | 2015-11-30 | 2017-06-09 | 任子行网络技术股份有限公司 | For MAC collections and the wireless aps and method of network security audit |
CN105554160A (en) * | 2016-01-29 | 2016-05-04 | 四川长虹电器股份有限公司 | Dubbo distributed cluster system architecture method based on nginx load balancing |
CN108111496A (en) * | 2017-12-13 | 2018-06-01 | 杭州安恒信息技术有限公司 | The method, apparatus and system of http services are exposed for dubbo Distributed Applications |
Also Published As
Publication number | Publication date |
---|---|
CN109861998A (en) | 2019-06-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109861998B (en) | Plug-in type dynamic analysis system and method based on Beidou short message protocol | |
EP2512163A1 (en) | Method, system for defining message in machine-to-machine platform, and machine-to-machine platform | |
CN111970353A (en) | Data processing method and device for heterogeneous equipment in Internet of things of cloud computing platform | |
CN111294235B (en) | Data processing method, device, gateway and readable storage medium | |
CN102571732A (en) | Method, device and system for processing sensor protocol information | |
CN111061678B (en) | Service data processing method, device, computer equipment and storage medium | |
CN111683066A (en) | Heterogeneous system integration method and device, computer equipment and storage medium | |
CN113360301B (en) | Message transmission system and method | |
CN114500690A (en) | Interface data processing method and device, electronic equipment and storage medium | |
CN101247434B (en) | Traffic analyzing method and system | |
CN107368334B (en) | Business plug-in interaction system and method | |
CN112131087A (en) | Decoupling system of simulation software communication layer and service application layer and implementation method | |
CN112416557B (en) | Method and device for determining call relation, storage medium and electronic device | |
CN108881124B (en) | Method, system, storage medium and device for realizing high-performance communication between modules | |
CN108763127B (en) | Method for realizing Modbus adapter capable of realizing interconversion of source data and target data | |
CN110839022A (en) | Vehicle-mounted control software communication protocol analysis method based on xml language | |
CN112769741B (en) | Message communication method and electronic equipment | |
CN113949640B (en) | Service data processing method and device | |
CN108845995A (en) | Data processing method, device, storage medium and electronic device | |
CN107707492B (en) | Method and device for reporting and issuing message | |
CN114827188B (en) | Platform equipment management method, system, terminal and storage medium | |
CN112953988A (en) | Data docking method and device based on FTP | |
CN113836211B (en) | Data extraction method for accessing data of internet of things equipment to JAVA platform | |
CN115965008A (en) | Big data feature extraction and matching method based on Antlr4 | |
CN106992923B (en) | Tree structure based module communication method and 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 |