CN113190213A - Development framework of physical device component data processing program - Google Patents
Development framework of physical device component data processing program Download PDFInfo
- Publication number
- CN113190213A CN113190213A CN202110322373.0A CN202110322373A CN113190213A CN 113190213 A CN113190213 A CN 113190213A CN 202110322373 A CN202110322373 A CN 202110322373A CN 113190213 A CN113190213 A CN 113190213A
- Authority
- CN
- China
- Prior art keywords
- module
- message
- data processing
- physical device
- device component
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/547—Messaging middleware
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention belongs to the technical field of software development, and particularly relates to a development framework of a data processing program of a physical device component. The software function module standardized data interaction system comprises a function module, a management module and a database editing tool, an effective software function module standardized data interaction mechanism is provided, the software function module is further packaged and decoupled, repeated development is reduced to a greater extent, and the inheritance, flexibility and stability of the technology are enhanced. The method is suitable for system integration aiming at different development environments.
Description
Technical Field
The invention belongs to the technical field of software development, and particularly discloses a development framework of a data processing program of a physical device component.
Background
In a system formed by physical device components, data is often collected by a sensor and is analyzed and calculated for operations such as control and maintenance of the system. In practice, due to the wide variety of systems, their data processing software often requires extensive custom development. With the development of the technology, more and more systems are designed by adopting the technology related to the industrial internet, the functions become richer, more diversified, more flexible and more intelligent, and the speed of system development and iteration is always higher, so that the development difficulty is greatly increased.
If a more efficient iterative development and study of an cyber-physical system is to be performed, a faster and more flexible software development framework is needed, commonly used functions are packaged into standardized modules according to categories for multiplexing, and the functions are finely adjusted through configuration information, so that unnecessary repeated programming is reduced under the condition of function recombination and optimization of each physical device.
The common software multiplexing method is embedded into a program in the modes of code copying, subprogram calling, object packaging, interface function library packaging and the like, and certain code compiling, modifying, compiling and debugging work still exists in the development process. If a more efficient iterative development and research of an cyber-physical system is required, a faster and more flexible software development framework is needed, which can standardize and package the information processing modes of each unit of the cyber-physical system to meet the requirement of agile development of data processing software.
Disclosure of Invention
In industrial, medical, commercial, government affairs and other scenes, various systems are used for carrying out function integration and data integration by using message middleware, and particularly, the integration problem among heterogeneous systems in a network scene can be solved, so that the system design capacity is greatly improved.
If the characteristics of cross-system, cross-language and flexible configuration of the message middleware are fully utilized, the message middleware is embedded into each software module, and data exchange between the modules is realized by messages, the strong coupling of interfaces between the modules can be released; on the other hand, the start-stop mode, the operation parameters, the message data between the modules and the like of the modules are all configured by the database, the whole software function can be defined by the database to a certain degree, and the adjustment of the software function can be realized by modifying the database.
According to the above idea, the present invention provides a development framework for a data processing program of a physical device component, comprising: the system comprises a management module, a data distribution service, a database editing tool and a plurality of functional modules, wherein the functional modules have a data processing function, the management module is used for managing configuration information, loading/unloading the functional modules and monitoring system running states, the data distribution service is used for centralized message distribution, the database editing tool can define the types, the number and the running parameters of the functional modules to be run, the data formats to be processed by the system and the global mapping relation of system message subscription/publication among the modules/systems through the configuration information, message subscription/publication interfaces are arranged in the functional modules, and the functional modules are packaged by an object-oriented method and run in an independent thread/process mode.
This design creates development and execution environment conditions for process or thread level based program reuse.
To facilitate centralized control management, the management module preferably includes a control domain capable of centrally distributing messages and a message stack capable of managing configuration information, loading/unloading the function modules, and monitoring system operation states.
Further, the function module serves as a client, the message stack serves as a server, and both the function module and the message stack are configured with communication interfaces.
Preferably, the functional modules can be programmed by adopting different high-level languages, and each high-level language program can realize data interaction by encapsulating matched message middleware.
Compared with the prior art, the invention has the following beneficial effects: an effective standardized data interaction mechanism of the software functional module is provided, the software functional module is further packaged and decoupled, repeated development is reduced to a greater extent, the inheritance, flexibility and stability of the technology are enhanced, and the software development efficiency is improved.
Drawings
FIG. 1 is a block diagram of a development framework for a physical device component data handler in an embodiment of the invention;
FIG. 2 is a flowchart illustrating the initiation of software configuration items of the framework design according to an embodiment of the present invention.
FIG. 3 is a schematic diagram of the internal communication process of the software configuration items of the framework design in the embodiment of the invention.
FIG. 4 is a software operation diagram of the framework design in the embodiment of the invention.
101, a management module; 102. a data distribution service; 103. a remote release module; 104. a remote subscription module; a UDP module; a TCP module 106; 107, a Modbus module; an EIP module; 109. an interface module; 110. a real-time database module; 111. a relational database module; 112, a UART module; an SNMP module 113; a DDS interface module; 115. a protocol analysis module; 116. other/custom modules; 117. configuring an information editing tool; 118. a development and operation environment; 119. configuring an information database; 201. a functional module; 301. a message issuing end; 302. a message subscription end; 303. a message queue.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and the described embodiments are some embodiments, but not all embodiments, of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any new work, are within the scope of the present invention.
Referring to fig. 1-4 of the present specification, an overall framework of a data processing program of a physical device component is first planned, and the overall framework includes a management module 101, a function module 201 and a database editing tool, i.e., a configuration information editing tool 117 in the figure, which are communicatively connected to each other.
The management module 101 is configured to manage each specific functional module and a data distribution service thread, edit the configuration information database 119 using the configuration information editing tool 117, integrate the development and operation environment 118, and distribute various types of information through the data distribution service 102; and creates instances of the respective functional modules 201 in turn. After each instance of the functional module 201 is created, configuration information is sent to them separately. In the software running process, the management module 101 periodically monitors the system running environment (information such as the online condition of each service, the occupancy rate of the CPU, the memory, the hard disk, and the network), and the state of the function module 201. Reporting the abnormal system operation environment, restarting or shutting down the system according to the remote control instruction, and performing self-recovery processing on the functional module 201 which operates abnormally.
The data distribution service 102 implements message data distribution among modules in the local computer, and is composed of a message publishing terminal 301, a message subscribing terminal 302 and a message queue 303. The message publishing end 301 publishes the message through the TCP protocol by using a message publishing mechanism of the message middleware, and a publisher of the message may be other modules or an application program. The message subscription terminal 302 subscribes to messages of various publishing points by using a message subscription mechanism of the message middleware, and a subscriber of the messages can be other modules or application programs.
The configuration information editing tool 117 defines network nodes which need to be developed or need to communicate in the system by using a text or formalization tool with a fixed format, gives message definitions between software configuration items and between software modules, gives format definitions of communication data, gives definitions of communication modes and parameters, gives definitions of data using methods such as numerical value conversion, threshold judgment, type enumeration and display modes, and gives definitions of control instruction data formats. And editing, checking and resolving the data definitions, and storing the data definitions in a configuration information database.
The development and execution environment 118 employs multiple high-level language development platforms, multiple operating system platforms, as long as the operating conditions of the message middleware and related communication protocols are met.
The configuration information database 119 performs configuration information management based on a relational database, which can be accessed through local and remote networks. The system mainly comprises a total system composition table, an equipment configuration table, a message table, a state data table, a process controller communication data table, a sensor information data table and other information data tables.
The functional module 201 includes 14 mutually decoupled submodules, and this frame has the openness, can increase and decrease new submodule according to the demand, specifically includes:
and the remote publishing module 103 is used for realizing remote publishing of messages with a network host, receiving the messages sent by the functional module 201 according to the related message contents defined in the configuration table and publishing the messages to the network.
And the remote subscription module 104 is used for implementing remote subscription of messages with the network host, subscribing the messages published on the network according to the related message contents defined in the configuration table, and sending the subscribed messages to the function module 201.
The UDP module 105, which uses UDP for communication, may receive, may send one-to-one, one-to-many, sends out the UDP packet packaged by the protocol parsing module 115, and transmits the received UDP packet to the protocol parsing module 115 for processing, and cooperates with the protocol parsing module 115 to implement configurable UDP communication.
The TCP module 106 may implement both the server function and the client function. The method is mainly used for receiving and sending TCP data messages, and is matched with the protocol analysis module 115 to realize configurable TCP communication.
The Modbus module 107 is matched with the protocol analysis module 115 to realize configurable Modbus communication with the field control equipment.
The EIP module 108, in cooperation with the protocol parsing module 115, implements configurable EIP mode communication with the field control device.
The interface module 109 displays the status data of each device in real time, issues the operation instruction in real time, and the human-computer interface process subscribes the status data or issues the instruction data to each function module 201 through the inter-host message.
And the real-time database module 110 is used for receiving the real-time data issued by other modules, caching the real-time data to a real-time database, and archiving the real-time data by utilizing the persistence function of the real-time database. And receiving operation requests of other modules for adding, deleting, modifying and checking the database.
And the relational database module 111 is used for receiving the archived data issued by other modules and receiving operation requests of other modules for increasing, deleting, modifying and checking the database.
The UART module 112, in cooperation with the protocol parsing module 115, implements configurable communication with the UART device.
The SNMP module 113, in cooperation with the protocol parsing module 115, implements configurable SNMP communication with the network management type network switch device.
The DDS interface module 114, cooperating with the protocol parsing module, implements communication with an external network device in a configurable DDS manner.
The protocol analysis module 115 receives data streams from various communication modules, analyzes various data from the data streams according to the configuration information, and sends the data streams to the related function module 201 in the system for further processing; on the other hand, the data sent by the relevant function module 201 is received, is packaged into a protocol message according to the configuration information, and is sent to the relevant communication module according to the configuration for sending.
And the other/custom module 116 adds functions needing to be packaged or service functions customized by a user according to needs, and packages the message publishing terminal (301) and the message subscribing terminal (302) so as to exchange data with other modules. The module can be written in cross-language, and if a certain programming language realizes the same message middleware as the framework, the module can be developed on the programming language, so that the module can run in the framework.
After the framework is planned, according to the principle that information is comprehensive and unique, programming links are simplified, software reuse is emphasized, and configuration information is simplified, a software framework configuration information template is designed, controlled and maintained, 7 types of configuration forms are included, the description of a configuration information database 119 is defined according to the description, the information mainly includes information in aspects of whole system network composition, overall architecture of each software, data format, data flow direction, state data alarm condition and the like, the information can be edited by editing software such as EXCEL and the like, or a form file is defined by a formal development tool and then exported, the file is shared with an interface design document, the file can be directly imported into a database for program reading, and reasonable configuration is carried out on data and information, so that the flow of the information between software configuration items and between software modules can be completed.
Then, interface functions and background business logic are designed in the custom module, and the system can simultaneously comprise a plurality of different custom modules.
Code writing generally follows the following principles:
if the data subscription from the management module is needed, firstly subscribing the measuring point name of the current equipment in the program, wherein the measuring point name corresponds to the configuration information edited previously;
in the service process, if the current data needs to be published, the measurement point publishing needs to be carried out in the corresponding service logic function;
and designing a data response processing function according to the business requirements of the user, and when the module monitors that the subscribed measuring point has a response value, receiving the value to perform further business processing.
And compiling and running a general software framework program, a background service program and an interface program in sequence to realize the current service process.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (4)
1. A development framework of a physical device component data processing program comprises a management module, a database editing tool and a plurality of functional modules, wherein the management module is used for establishing communication connection, the functional modules have data processing functions, the management module is used for message centralized distribution, configuration information management, loading/unloading of the functional modules and system operation state monitoring, and the database editing tool can define the types, the number, the operation parameters, the data formats to be processed by a system and the global mapping relation of subscription/publication of system messages among modules/systems through configuration information, and is characterized in that: the function module is internally provided with a message subscription/release interface, is packaged by an object-oriented method and runs in an independent thread/process mode.
2. A development framework for a physical device component data processing program as claimed in claim 1, characterized by: the management module comprises a control domain and a message stack, the message stack can distribute messages in a centralized mode, and the control domain can configure information management, load/unload the function module and monitor the running state of the system.
3. A development framework for a physical device component data processing program as claimed in claim 1, characterized by: the functional module can be programmed by adopting different high-level languages, and each high-level language program can realize data interaction by encapsulating matched message middleware.
4. A development framework for a physical device component data processing program as claimed in claim 2, characterized by: the function module is used as a client, the message stack is used as a server, and I/O ports are configured on the message stack.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110322373.0A CN113190213A (en) | 2021-03-25 | 2021-03-25 | Development framework of physical device component data processing program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110322373.0A CN113190213A (en) | 2021-03-25 | 2021-03-25 | Development framework of physical device component data processing program |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113190213A true CN113190213A (en) | 2021-07-30 |
Family
ID=76973911
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110322373.0A Pending CN113190213A (en) | 2021-03-25 | 2021-03-25 | Development framework of physical device component data processing program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113190213A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104239037A (en) * | 2014-08-25 | 2014-12-24 | 中国电子科技集团公司第二十九研究所 | Software framework with reconfigurable business function |
CN109271142A (en) * | 2018-07-24 | 2019-01-25 | 武汉空心科技有限公司 | Exploitation cloud platform based on template component |
CN109308582A (en) * | 2018-09-25 | 2019-02-05 | 中国兵器装备集团自动化研究所 | A kind of manufacturing execution system framework based on modularization Yu serviceization |
CN111522623A (en) * | 2020-04-16 | 2020-08-11 | 中国航空无线电电子研究所 | Multi-process running system of modular software |
CN112199105A (en) * | 2020-10-15 | 2021-01-08 | 舟山网脉科技有限公司 | Method, system, medium and electronic device for function combination type software development |
-
2021
- 2021-03-25 CN CN202110322373.0A patent/CN113190213A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104239037A (en) * | 2014-08-25 | 2014-12-24 | 中国电子科技集团公司第二十九研究所 | Software framework with reconfigurable business function |
CN109271142A (en) * | 2018-07-24 | 2019-01-25 | 武汉空心科技有限公司 | Exploitation cloud platform based on template component |
CN109308582A (en) * | 2018-09-25 | 2019-02-05 | 中国兵器装备集团自动化研究所 | A kind of manufacturing execution system framework based on modularization Yu serviceization |
CN111522623A (en) * | 2020-04-16 | 2020-08-11 | 中国航空无线电电子研究所 | Multi-process running system of modular software |
CN112199105A (en) * | 2020-10-15 | 2021-01-08 | 舟山网脉科技有限公司 | Method, system, medium and electronic device for function combination type software development |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8190284B1 (en) | Auto discovery of embedded historians in network | |
US7962440B2 (en) | Adaptive industrial systems via embedded historian data | |
TW514771B (en) | Computer integrated manufacturing techniques | |
US7467018B1 (en) | Embedded database systems and methods in an industrial controller environment | |
US8086670B1 (en) | System and methodology providing optimized data exchange with industrial controller | |
EP2530542B1 (en) | Systems and methods for alert device removal | |
CN108881408A (en) | A kind of multi-service operating system based on platform of internet of things | |
CN102809953A (en) | Systems and methods for alert capture and transmission | |
US7974937B2 (en) | Adaptive embedded historians with aggregator component | |
CN110287228A (en) | Implementation method based on dispatching of power netwoks domain equipment monitoring real-time data acquisition | |
CN110008267B (en) | Data processing system and method | |
Anwar et al. | Human machine interface using OPC (OLE for process control) | |
CN112486706B (en) | Internet of things local equipment linkage method based on MQTT message driving mechanism | |
CN113190213A (en) | Development framework of physical device component data processing program | |
CN112987667B (en) | Equipment remote configuration system and method of flexible manufacturing production line based on OPC UA | |
CN115056234A (en) | RPA controller scheduling method and system based on event driving and infinite state machine | |
Roy et al. | Shop-floor control: a multi-agents approach | |
CN113641509A (en) | Internet of things data processing method and device | |
US7917857B2 (en) | Direct subscription to intelligent I/O module | |
CN105550143A (en) | Interface system for acquiring working condition of information equipment | |
CN112596478B (en) | WCS warehouse control system architecture and implementation method | |
CN108595699A (en) | The Stream Processing method of wide-area distribution type data in electric power scheduling automatization system | |
CN112579675A (en) | Data processing method and device | |
Mazur et al. | Analysis and overview of message queueing telemetry transport (mqtt) as applied to forest products applications | |
CN201716561U (en) | Control and management integrated system for distributed database by using universal monitoring controller |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210730 |