CN108933771A - A kind of communications office site's device protocol analytic method of module level upgrading mode - Google Patents
A kind of communications office site's device protocol analytic method of module level upgrading mode Download PDFInfo
- Publication number
- CN108933771A CN108933771A CN201810006679.3A CN201810006679A CN108933771A CN 108933771 A CN108933771 A CN 108933771A CN 201810006679 A CN201810006679 A CN 201810006679A CN 108933771 A CN108933771 A CN 108933771A
- Authority
- CN
- China
- Prior art keywords
- module
- protocol
- parsing
- different
- protocol analysis
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/03—Protocol definition or specification
Abstract
The present invention designs communications office site's device protocol and parses field, and in particular to a kind of communications office site's device protocol analysis mode of module level upgrading mode, especially suitable for no operating system, without the system of compilation facility.First according to the process of protocol analysis, take out protocol analysis frame, frame can fill parsing module, this module has certain parameter and format, and Development of Module is carried out according to different device protocols, parsing module is generated into executable file using exploitation environment, i.e. an agreement generates an executable file.When system docking equipment, parsing module corresponding with equipment only need to be selected, is downloaded in system, system can call parsing module when executing protocol analysis, and then module body is run in systems, be finally completed device protocol parsing and data processing function.
Description
Technical field
The present invention is suitable for communications office site's internal unit protocol analysis, and in particular to a kind of communication of module level upgrading mode
Office's station equipment protocol analysis method.
Background technique
In communications office site's dynamic environment monitoring field, various equipment are had in computer room, including smart machine such as Switching Power Supply,
Intelligent electric meter, UPS, intelligent air condition, intelligent oil engine etc. and unintelligent device such as smoke sensor device, infrared sensor etc., it is all
Equipment all passes through intelligence interface or non intelligent interface was linked into dynamic environment monitoring system (claiming rotating ring system below).It is non intelligent
Equipment accesses rotating ring system by non intelligent interface such as dry contact or analog quantity, and non intelligent interface has versatility, rotating ring system
Unintelligent device state is easily identified, but smart machine accesses rotating ring system by intelligence interface such as serial ports, data communication is embedding
Enter in communication protocol, it is necessary to which data could be obtained by carrying out parsing to the agreement of smart machine, also must be according to when transmitting order to lower levels
Its defined agreement is controlled, and has numerous equipment in communications office site, every kind of equipment manufacturer is numerous, and model is different.
The method for solving the problems, such as this be currently by the protocol analysis of each equipment and conformation function be encapsulated as one it is biggish
Protocol library is put into system by protocol library, corresponding agreement is selected when needing to dock smart machine from protocol library, in local
Link generation executable file is compiled to be executed.This method is relatively easy from realization angle, but there are disadvantage, a sides
Higher in face of system requirements, system must have operating system and compilation facility, for no operating system SCM system without
Method realizes this function, and on the other hand, flexibility is relatively poor, and has especially when the agreement of some equipment or function point are sent out
When changing, need to modify and upgrade entire protocol library, expend it is more exploit natural resources and Internet resources, for the rotating ring of wireless transmission
System remains further need for a kind of upgrading mode of lightweight.
Summary of the invention
It is an object of the invention to be directed to the above-mentioned deficiency of the prior art, a kind of communication bureau of module level upgrading mode is provided
Station equipment protocol analysis method.This method only needs to develop a protocol resolution module, work for different smart machines
Work amount is small, and system maintenance is convenient.
A kind of communications office site's device protocol analytic method of module level upgrading mode, including the following contents:
Step 1:According to the service logic of rotating ring system and the process of protocol analysis, protocol analysis frame is taken out, and
Be cured protocol analysis frame and execution process in systems, and execution process is unrelated with specific data, pertains only to logic and process,
It can be filled the module for executing specific protocol analysis in frame, i.e., identical, the identical protocol entity of interface constitutes function by function
Block;
Step 2:It is the parsing module of a standard, this module tool by function package relevant to office's station equipment protocol processes
There are certain parameter and format, different types of device protocol has different templates;
Step 3:Absolute address and memory space are distributed for different parsing modules, system can be called when executing protocol analysis
Parsing module, and then the module body for having distributed absolute address is executed automatically;
Step 4:When carrying out device protocol parsing, different Development of Module is carried out according to different device protocols, using opening
This module is generated independent executable file by hair ring border, and different equipment produces different executable files;
Step 5:After rotating ring system connection installation, corresponding executable file is upgraded according to institute's attached device type and model,
The upgrading of corresponding equipment parsing module is completed, upgrading finishes system and runs this module body according to the service logic of setting;
Step 6:Facility information inquiry is carried out in module body, the work such as data parsing and data point creation are finally completed
Device protocol parses work.
All global variables and overall situation function in system must all be positioned by fixing address, device protocol parsing module
Global variable used in body and its inside and overall situation function also all necessary fixing address positioning, and stated in systems, it opens
The address for sending out overall situation function and variable in exploitation environment used in protocol resolution module must be with running environment in rotating ring system
Be consistent, this method suitable for no operating system, do not have the system of compilation facility, according to different program operation platforms,
Protocol resolution module generates the executable file of different-format, and all executable files constitute protocol library;Due to all
Executable file is encapsulated by parsing module, and each executable file is smaller, and the protocol library of composition is also smaller.
Since the executable file that module body generates is mutually independent, so when some device protocol is updated,
It only needs to update corresponding module executable file, does not need to update all accord library.Protocol library increases a smart machine association
When view, it is only necessary to increase relevant module executable file in library, be not required to do other any changes.Due to the executable text of module
Part is smaller, when system protocol adds or upgrades, expends less Internet resources, and success rate for upgrading can be improved, when shortening upgrading
Between, it is convenient for plant maintenance.
Detailed description of the invention
Fig. 1 module calling process figure
Fig. 2 protocol analysis flow chart
Specific embodiment
The present invention will be further described with reference to the accompanying drawings and examples.
The present invention is by the parsing function of module upgrade mode realization office station equipment agreement, especially suitable for being without operation
System, the system without compilation facility.
When developing rotating ring system, overall situation function and global variable used in system are subjected to specific addressed location,
All functions and variable can access in some fixing address, while defining module and being stored in starting point in Flash
Location and space size.Logic in rotating ring system executes program and is completed, and has sealed with the analytically dependent functional block of device protocol
Dress is standard module, and standard module exploitation environment is built on PC, and the configuration of this environment must be protected with rotating ring system development environment
It holds unanimously, i.e., function name used is consistent, global variable title is consistent, absolute address is consistent, guarantees the HEX file of module upgrade
Good execution can be obtained.Development of Module finishes, and exploitation environment compiling generates the HEX file of entire engineering, passes through the exhausted of module
To address, the HEX file of module body portion is isolated using tool, becomes an independent HEX file, uses upgrading tool
Upgrade HEX file, can determine whether the storage address of this module in upgrade procedure, completes module upgrade.
Fig. 1 is module calling process figure, and after module upgrade success, system circulation executes the logic flow of setting, full
Each functional block is executed when sufficient condition, and then calls module relevant to protocol analysis.The program storage area of rotating ring system is divided into
Logical program memory block, application program memory block and other program storage areas, wherein logical program has been cured rotating ring system
In, belong to Basic application, provide basic data for application program, application program be with protocol-dependent module, carrying out agreement
When parsing and need to upgrade, it is only necessary to the data in upgrade applications area.When system need to run this module, system can be executed PC
Pointer is directed toward the program origin of module, and then completes the execution function of module.
Fig. 2 is protocol analysis flow chart, and the protocol analysis and data processing function with office station equipment are encapsulated as a mark
Quasi-mode block, this module have certain parameter and format, and different types of equipment has different templates, and is set according to different
Standby agreement carries out module body exploitation, this module body is generated executable file using exploitation environment, i.e. an agreement generates one
Executable file.When system docking equipment, module executable file corresponding with equipment only need to be selected, is downloaded in system,
System can call this module when executing protocol analysis, and then module body is run in systems, be finally completed device protocol parsing
And data processing function.
Claims (4)
1. a kind of communications office site's device protocol analytic method of module level upgrading mode, is characterized in that, including the following contents:
Step 1:According to the service logic of rotating ring system and the process of protocol analysis, protocol analysis frame is taken out, and is being
Be cured protocol analysis frame and execution process in system, and execution process is unrelated with specific data, pertains only to logic and process, frame
In can be filled the module for executing specific protocol analysis, i.e., by function, identical, the identical protocol entity of interface constitutes functional block;
Step 2:It is the parsing module of a standard by function package relevant to office's station equipment protocol processes, this module has one
Fixed parameter and format, different types of device protocol have different templates;
Step 3:Absolute address and memory space are distributed for different parsing modules, system can call parsing when executing protocol analysis
Module, and then the module body for having distributed absolute address is executed automatically;
Step 4:When carrying out device protocol parsing, different Development of Module is carried out according to different device protocols, uses exploitation ring
This module is generated independent executable file by border, and different equipment produces different executable files;
Step 5:After rotating ring system connection installation, corresponding executable file is upgraded according to institute's attached device type and model, i.e., it is complete
At the upgrading of corresponding equipment parsing module, upgrading finishes system and runs this module body according to the service logic of setting;
Step 6:Facility information inquiry is carried out in module body, the work such as data parsing and data point creation are finally completed equipment
Protocol analysis work.
2. a kind of communications office site's device protocol analytic method of module level upgrading mode according to claim 1, feature
It is:All global variables and overall situation function in system must all be positioned by fixing address, device protocol parsing module body
And its also all necessary fixing address positioning of global variable used in inside and overall situation function, and stated in systems.
3. a kind of communications office site's device protocol analytic method of module level upgrading mode according to claim 1, feature
It is:Used in development agreement parsing module exploitation environment in overall situation function and variable address must with run in rotating ring system
Environment is consistent.
4. a kind of communications office site's device protocol analytic method of module level upgrading mode according to claim 1, feature
It is:This method suitable for no operating system, do not have the system of compilation facility, according to different program operation platforms, agreement
Parsing module generates the executable file of different-format, and all executable files constitute protocol library.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810006679.3A CN108933771A (en) | 2018-01-03 | 2018-01-03 | A kind of communications office site's device protocol analytic method of module level upgrading mode |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810006679.3A CN108933771A (en) | 2018-01-03 | 2018-01-03 | A kind of communications office site's device protocol analytic method of module level upgrading mode |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108933771A true CN108933771A (en) | 2018-12-04 |
Family
ID=64448364
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810006679.3A Pending CN108933771A (en) | 2018-01-03 | 2018-01-03 | A kind of communications office site's device protocol analytic method of module level upgrading mode |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108933771A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109739530A (en) * | 2018-12-07 | 2019-05-10 | 杭州义益钛迪信息技术有限公司 | A kind of power & environment supervision equipment software upgrading method recompiled based on cloud |
CN110769005A (en) * | 2019-11-11 | 2020-02-07 | 交控科技股份有限公司 | Multi-professional multi-system multi-protocol data acquisition method for rail transit |
CN112788040A (en) * | 2021-01-15 | 2021-05-11 | 广州汉光电气股份有限公司 | Communication manager implementation method and configuration system for rapid multi-protocol conversion |
CN113377362A (en) * | 2021-07-14 | 2021-09-10 | 深圳市集贤科技有限公司 | Automatic source code generation and adaptation method for private protocol analysis of electric control end |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101404656A (en) * | 2008-11-04 | 2009-04-08 | 深圳中兴力维技术有限公司 | Software interface design method for communicating with third party intelligent equipment protocol |
CN102508661A (en) * | 2011-10-28 | 2012-06-20 | 航天科工深圳(集团)有限公司 | Method and device of communication module development and configuration |
CN102624685A (en) * | 2011-11-24 | 2012-08-01 | 广东高新兴通信股份有限公司 | Encodable protocol processing method for intelligent equipment |
US9609058B2 (en) * | 2014-10-13 | 2017-03-28 | Commvault Systems, Inc. | Storage management operations based on executable files served on demand to storage management components |
CN106941501A (en) * | 2017-04-26 | 2017-07-11 | 田潇河 | A kind of data communications method and device |
-
2018
- 2018-01-03 CN CN201810006679.3A patent/CN108933771A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101404656A (en) * | 2008-11-04 | 2009-04-08 | 深圳中兴力维技术有限公司 | Software interface design method for communicating with third party intelligent equipment protocol |
CN102508661A (en) * | 2011-10-28 | 2012-06-20 | 航天科工深圳(集团)有限公司 | Method and device of communication module development and configuration |
CN102624685A (en) * | 2011-11-24 | 2012-08-01 | 广东高新兴通信股份有限公司 | Encodable protocol processing method for intelligent equipment |
US9609058B2 (en) * | 2014-10-13 | 2017-03-28 | Commvault Systems, Inc. | Storage management operations based on executable files served on demand to storage management components |
CN106941501A (en) * | 2017-04-26 | 2017-07-11 | 田潇河 | A kind of data communications method and device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109739530A (en) * | 2018-12-07 | 2019-05-10 | 杭州义益钛迪信息技术有限公司 | A kind of power & environment supervision equipment software upgrading method recompiled based on cloud |
CN110769005A (en) * | 2019-11-11 | 2020-02-07 | 交控科技股份有限公司 | Multi-professional multi-system multi-protocol data acquisition method for rail transit |
CN112788040A (en) * | 2021-01-15 | 2021-05-11 | 广州汉光电气股份有限公司 | Communication manager implementation method and configuration system for rapid multi-protocol conversion |
CN113377362A (en) * | 2021-07-14 | 2021-09-10 | 深圳市集贤科技有限公司 | Automatic source code generation and adaptation method for private protocol analysis of electric control end |
CN113377362B (en) * | 2021-07-14 | 2022-05-17 | 深圳市集贤科技有限公司 | Automatic source code generation and adaptation method for private protocol analysis of electric control end |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108933771A (en) | A kind of communications office site's device protocol analytic method of module level upgrading mode | |
CN102403034B (en) | DSP controls single-board device and remote upgrade method thereof and server | |
CN106707848B (en) | A kind of the control program construction and method for down loading of control system | |
US10705511B2 (en) | Abstraction layers for automation applications | |
WO2013114926A1 (en) | Support device, recording medium having support program recorded thereon, and method for generating executable program | |
CN105100191A (en) | Method, device and system for realizing Java application installation via cloud compilation | |
US8255065B2 (en) | Mobile function block for a PLC based distributed control system | |
CN111736954B (en) | Multi-intelligent contract virtual machine implementation method, multi-intelligent contract virtual machine and system | |
CN107797807B (en) | Method, device, terminal, server and system for generating container | |
CN101937356B (en) | Method for compiling WebKit browser and device thereof | |
CN114064152B (en) | Embedded multi-core debugging system based on dynamic loading and debugging method thereof | |
US20200104108A1 (en) | Method for adapting functionalities of a field device | |
CN105224753A (en) | The multi-specialized design verification platform of non-active nuclear power plant | |
CN107508846B (en) | Updating method and system of application client and terminal equipment | |
CN110119282A (en) | A kind of internet-of-things terminal and system based on general-purpose built-in type computer | |
CN113805882A (en) | Method and device for developing application program, electronic equipment and storage medium | |
CN109739530B (en) | Cloud recompilation-based software upgrading method for dynamic ring monitoring equipment | |
CN102043654A (en) | DSP simple development method based on TMS320VC55xx | |
CN109460280B (en) | Method and terminal for running program | |
CN102323885B (en) | Dynamic configuration method of sensing network node operation system | |
CN114510270A (en) | Programmable controller cloud development system architecture based on B/S architecture | |
CN104850015A (en) | Software packaging method and automobile electronic controller | |
CN110688099B (en) | Microprocessor development method for long-distance radio integrated programmable system on chip | |
Padilla | Self-adaptation for Internet of things applications | |
CN110018959B (en) | Embedded application debugging method and system |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20181204 |
|
WD01 | Invention patent application deemed withdrawn after publication |