CN112799800B - Lightweight low-voltage protection device platform development method - Google Patents
Lightweight low-voltage protection device platform development method Download PDFInfo
- Publication number
- CN112799800B CN112799800B CN202110006461.XA CN202110006461A CN112799800B CN 112799800 B CN112799800 B CN 112799800B CN 202110006461 A CN202110006461 A CN 202110006461A CN 112799800 B CN112799800 B CN 112799800B
- Authority
- CN
- China
- Prior art keywords
- module
- protection device
- voltage protection
- low
- service
- 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
- 238000000034 method Methods 0.000 title claims abstract description 36
- 238000011161 development Methods 0.000 title claims abstract description 13
- 230000003993 interaction Effects 0.000 claims abstract description 18
- 238000004891 communication Methods 0.000 claims description 11
- 230000006870 function Effects 0.000 claims description 10
- 238000010276 construction Methods 0.000 claims description 6
- 238000011423 initialization method Methods 0.000 claims description 6
- 238000005070 sampling Methods 0.000 claims description 4
- 230000002093 peripheral effect Effects 0.000 claims description 3
- 230000008569 process Effects 0.000 claims description 3
- 230000007246 mechanism Effects 0.000 claims description 2
- 238000012545 processing Methods 0.000 abstract description 4
- 238000004364 calculation method Methods 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000004069 differentiation Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
Images
Classifications
-
- 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/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
-
- 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/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5016—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
-
- Y—GENERAL 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
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
- Y04S10/00—Systems supporting electrical power generation, transmission or distribution
- Y04S10/20—Systems supporting electrical power generation, transmission or distribution using protection elements, arrangements or systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Economics (AREA)
- Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Public Health (AREA)
- Water Supply & Treatment (AREA)
- General Health & Medical Sciences (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Primary Health Care (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Emergency Protection Circuit Devices (AREA)
Abstract
The invention discloses a lightweight low-voltage protection device platform development method, which is based on a lightweight hardware platform and a system software framework, flexibly combines service modules according to a device configuration text, a management module controls the initialization and the starting of the service modules, each service module runs according to a preset priority, and the modules finish high-efficiency data interaction through a shared memory, thereby realizing the coexistence of real-time services such as protection logic processing and the like and non-real-time services such as a human-computer interface and the like. The method realizes the platform development of the low-voltage protection device based on the lightweight software and hardware architecture and the highly reusable service module.
Description
Technical Field
The invention relates to the field of control and protection of power systems, in particular to a lightweight low-voltage protection device platform development method.
Background
Because the high-voltage control protection device of the power system has high reliability requirement, complex protection function, large protection calculation amount, numerous communication protocols, rich external interfaces and strong expandability, a software and hardware architecture of multi-board distributed parallel processing is generally adopted. Usually, a special DSP board is used for running real-time services, such as control protection logic calculation, and software generally adopts an operating-system-free architecture; a special management board is configured to run non-real-time services, such as man-machine interaction, external communication, fault recording and the like, a high-performance processor is generally adopted to run an embedded Linux and other operating systems, and a larger memory needs to be expanded from the outside. For a protection device with a low voltage level, the protection function is less, the interface is relatively simple, and the communication function requirement is less, but the usage amount is larger, and the installation space and the power supply condition of part of the use occasions are limited. If the software and hardware architecture of the high-voltage protection device is still used, the strict requirements of the low-voltage protection device on power consumption, volume and cost are difficult to meet. In addition, the low-voltage protection devices are various and have low differentiation degree, and are developed in a platformization mode instead of a customization mode, so that the reusability of software modules is improved, the research and development period of products is shortened, and the quality of the products is ensured.
Disclosure of Invention
In order to solve the technical problems, the invention provides a lightweight low-voltage protection device platform development method.
In order to achieve the purpose, the invention adopts the technical scheme that:
a lightweight low-voltage protection device platform development method comprises the following steps:
(1) selecting a light-weight hardware platform matched with the low-voltage protection device according to the functional requirements of the low-voltage protection device, wherein the computing performance and the peripheral interface of the hardware platform meet the functional requirements of the low-voltage protection device and have the capability of running light-weight basic software;
(2) the functional modules of the low-voltage protection device are divided into a management module and a business module, the business module to be integrated is configured in a configuration text of the low-voltage protection device according to the functional requirements of the low-voltage protection device, and the data connection relation among all the business modules is determined;
(3) the service module is divided into a real-time service module and a non-real-time service module according to functions, and the management module uniformly distributes the priority of the service module according to the configuration text;
(4) each business module acquires data interaction addresses of other business modules interacted with the business module before operation, and data interaction is carried out through direct memory access in the operation process;
(5) the management module and the service module are operated on the lightweight basic software, the service modules are initialized and started by the management module in a unified way, the real-time service module and the non-real-time service module coexist, the service modules are operated according to preset priority, and the priority is ensured by the scheduling service provided by the lightweight basic software.
Further: in the step (1), the main control chip of the lightweight hardware platform is a single chip microcomputer, and the lightweight basic software is an embedded real-time operating system.
Further: in the step (2), the service module comprises a service module construction method, an initialization method, an operation method and a data entity, and whether the service module is integrated or not is determined through a low-voltage protection device configuration text; the management module exists only and is fixedly integrated; the data entity comprises a plurality of input ports and output ports and is used for data interaction with other service modules.
Further: in the step (3), the real-time service module includes an electrical quantity sampling module, a control protection logic module, an event reporting module, a fault recording module, a switching value input reading module and a switching value output tripping module, and the non-real-time service module includes an external communication module and a human-computer interface module; the priority is determined by the management module according to a priority setting value in a low-voltage protection device configuration text, and the priority of the real-time service module is higher than that of the non-real-time service module.
Further: in the step (4), the data interaction address allocation method includes: and the management module performs data address association between the service modules based on the shared memory according to the data connection relation of the service modules in the configuration text of the low-voltage protection device.
Further: in the step (5), the unified initialization and the startup are automatically completed by the management module calling the construction method, the initialization method and the operation method of each service module according to the configuration text of the low-voltage protection device.
Further: in the step (5), the scheduling service is a multi-task preemptive scheduling mechanism provided by the lightweight basic software.
The invention has the following beneficial effects: the invention is based on the lightweight software and hardware architecture and the highly reusable service module, flexibly combines the service module according to the device configuration text, protects the coexistence of real-time services such as logic processing and the like and non-real-time services such as a human-computer interface and the like, realizes the platform development of the low-voltage protection device, more easily meets the requirements of the low-voltage protection device on cost, power consumption and volume, is beneficial to shortening the development period and ensures the product quality.
Drawings
FIG. 1 is a schematic diagram of data interaction between service modules;
fig. 2 is a schematic diagram of a low-voltage protection device developed based on a lightweight low-voltage protection device platform development method.
Detailed Description
The invention is further described below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
A lightweight low-voltage protection device platform development method comprises the following steps:
(1) and selecting a hardware platform.
And selecting a light-weight hardware platform matched with the device according to the functional requirements of the device. The computing performance and the peripheral interface of the hardware platform meet the requirements of the device, and the hardware platform has the capability of running light-weight basic software.
Supposing that the low-voltage protection device needs to have overcurrent protection, fault recording, event reporting, a serial port Modbus communication function and a human-computer interaction function, a proper hardware platform is selected according to the functions, and the low-voltage protection device at least needs to have a serial port communication interface, a human-computer interaction interface, an electric quantity acquisition interface and a switching value output interface, so that the requirements of real-time operation system operation and protection logic calculation are met.
(2) And configuring a service module.
The low-voltage protection device functional module is divided into a management module and a business module. According to the functional requirements of the low-voltage protection device, business modules needing to be integrated are configured in a configuration text of the low-voltage protection device, and the data connection relation among all the business modules is determined. The service module comprises a service module construction method, an initialization method, an operation method and a data entity, and whether the service module is integrated or not is determined through a low-voltage protection device configuration text; the management module exists only and is fixedly integrated; the data entity comprises a plurality of input ports and output ports and is used for data interaction with other service modules.
An overcurrent protection module, an electrical quantity acquisition module, a fault recording module, an event reporting module, a serial port Modbus communication module and a human-computer interaction interface module are configured in the device configuration text. The data of the electric quantity acquisition module is transmitted to the overcurrent protection module for protecting logic calculation; the protection calculation result is transmitted to the event reporting module. If the protection is active, the event report triggers fault logging. The event report can be checked through a man-machine interface and can also be transmitted to a remote monitoring system through serial communication. Configuration text examples are as follows:
[Module_num=6]
[link_num=5]
(3) and determining the priority of the service module.
The service module is divided into a real-time service module and a non-real-time service module according to the functions of the service module, and the management module uniformly distributes the priority of the service module according to the configuration text. The real-time service module comprises but is not limited to an electrical quantity sampling module, a control protection logic module, an event reporting module, a fault recording module, a switching value input reading module and a switching value output tripping module, and the non-real-time service module comprises but is not limited to an external communication module and a man-machine interface module. The priority is determined by the management module according to a priority setting value in a low-voltage protection device configuration text, and the priority of the real-time service module is higher than that of the non-real-time service module.
According to the function analysis of each module, the real-time requirements of the electrical quantity acquisition module, the overcurrent protection module, the event reporting module and the fault recording module are highest, and the highest priority is distributed; the human-computer interface module and the serial port Modbus communication module have low real-time requirement and low priority. As shown in the above configuration text example, the priority of the service module is determined by the management module according to the priority setting value in the configuration text, and the priority field in the configuration text represents the priority, and a larger value represents a higher priority.
(4) And distributing the data interaction address of the service module.
And each service module acquires a service module data address interacted with the service module before operation, and performs data interaction through direct memory access in the operation process. The management module establishes the association relationship among the modules through the direct mapping of the memory address according to the data connection relationship of the service modules in the configuration text without an external high-speed bus. The data input module accesses the address assigned by the management module, and the data of the output module can be obtained, as shown in fig. 1. Assuming that the out1 variable of the electrical quantity sampling module (Sample) outputs the in1 variable of the overcurrent protection module (overcurrprotection), which is denoted as Sample. out1- > overcurrprotection. in1, the address of Sample. out1 is 0x80000000, and the management module gives the address of 0x80000000 to overcurrprotection. in1, the overcurrprotection can directly obtain the output of the Sample module through the address of 0x 80000000.
(5) And the service module operates.
The management module and the service module are operated on the lightweight basic software, the service modules are initialized and started by the management module in a unified manner, the real-time service module and the non-real-time service module coexist, the service modules operate according to a preset priority, and the priority is ensured by the scheduling service provided by the lightweight basic software.
The management module sequentially calls the construction, initialization method and operation method of the service module according to the service module configured by the configuration text and the priority thereof to complete the initialization and the start of the service module, as shown in fig. 2. For example, each service module exists in a thread manner, and before the service module is started, the management module creates a thread, initializes the thread, and finally assigns a thread priority and starts the thread. After all threads are started, each thread is scheduled by the real-time operating system.
By adopting the method, based on a lightweight hardware platform and a system software architecture, flexible combination of the service modules is carried out according to the device configuration text, the initialization and the starting of the service modules are controlled by the management module, each service module runs according to the preset priority, and high-efficiency data interaction is completed among the modules through the shared memory, so that the coexistence of real-time services such as protection logic processing and the like and non-real-time services such as a human-computer interface and the like is realized. The method realizes the platform development of the low-voltage protection device based on the lightweight software and hardware architecture and the highly reusable service module.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.
Claims (7)
1. A lightweight low-voltage protection device platform development method is characterized by comprising the following steps: the method comprises the following steps:
step (1), selecting a light-weight hardware platform matched with the low-voltage protection device according to the functional requirements of the low-voltage protection device, wherein the computing performance and the peripheral interface of the hardware platform meet the functional requirements of the low-voltage protection device and have the capability of running light-weight basic software;
step (2), dividing the functional module of the low-voltage protection device into a management module and a business module, configuring the business module to be integrated in the configuration text of the low-voltage protection device according to the functional requirement of the low-voltage protection device, and determining the data connection relation among the business modules;
step (3), the service module is divided into a real-time service module and a non-real-time service module according to functions, and the management module uniformly distributes the priority of the service module according to the configuration text;
step (4), each service module acquires data interaction addresses of other service modules interacting with the service module before operation, and data interaction is carried out through direct memory access in the operation process;
and (5) the management module and the service modules are operated on the lightweight basic software, the service modules are initialized and started uniformly by the management module, the real-time service modules and the non-real-time service modules coexist, the service modules are operated according to preset priority, and the priority is ensured by scheduling service provided by the lightweight basic software.
2. The method for developing the lightweight low-voltage protection device in the platformization mode according to claim 1, wherein the method comprises the following steps: in the step (1), the main control chip of the lightweight hardware platform is a single chip microcomputer, and the lightweight basic software is an embedded real-time operating system.
3. The method for developing the lightweight low-voltage protection device in the platformization mode according to claim 1, wherein the method comprises the following steps: in the step (2), the service module comprises a service module construction method, an initialization method, an operation method and a data entity, and whether the service module is integrated or not is determined through a low-voltage protection device configuration text; the management module exists only and is fixedly integrated; the data entity comprises a plurality of input ports and output ports and is used for data interaction with other service modules.
4. The method for developing the lightweight low-voltage protection device in the platformization mode according to claim 1, wherein the method comprises the following steps: in the step (3), the real-time service module comprises an electrical quantity sampling module, a control protection logic module, an event reporting module, a fault recording module, a switching value input reading module and a switching value output tripping module, and the non-real-time service module comprises an external communication module and a human-computer interface module; the priority is determined by the management module according to a priority setting value in a low-voltage protection device configuration text, and the priority of the real-time service module is higher than that of the non-real-time service module.
5. The method for developing the lightweight low-voltage protection device in the platformization mode according to claim 1, wherein the method comprises the following steps: in the step (4), the data interaction address allocation method includes: and the management module performs data address association between the service modules based on the shared memory according to the data connection relation of the service modules in the configuration text of the low-voltage protection device.
6. The method for developing the lightweight low-voltage protection device in the platformization manner according to claim 1, wherein the method comprises the following steps: in the step (5), the unified initialization and the startup are automatically completed by the management module calling the construction method, the initialization method and the operation method of each service module according to the configuration text of the low-voltage protection device.
7. The method for developing the lightweight low-voltage protection device in the platformization mode according to claim 1, wherein the method comprises the following steps: in the step (5), the scheduling service is a multitask preemptive scheduling mechanism provided by the lightweight basic software.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110006461.XA CN112799800B (en) | 2021-01-05 | 2021-01-05 | Lightweight low-voltage protection device platform development method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110006461.XA CN112799800B (en) | 2021-01-05 | 2021-01-05 | Lightweight low-voltage protection device platform development method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112799800A CN112799800A (en) | 2021-05-14 |
CN112799800B true CN112799800B (en) | 2022-08-26 |
Family
ID=75808073
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110006461.XA Active CN112799800B (en) | 2021-01-05 | 2021-01-05 | Lightweight low-voltage protection device platform development method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112799800B (en) |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104320358A (en) * | 2014-09-28 | 2015-01-28 | 国家电网公司 | QoS (Quality of Service) business control method in power telecommunication net |
CN106941516B (en) * | 2017-02-09 | 2020-04-24 | 北京东土科技股份有限公司 | Heterogeneous field device control management system based on industrial internet operating system |
CN107203376B (en) * | 2017-04-11 | 2020-07-24 | 国网天津市电力公司信息通信公司 | Enterprise-level informatization system |
-
2021
- 2021-01-05 CN CN202110006461.XA patent/CN112799800B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN112799800A (en) | 2021-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2413655C2 (en) | Aircraft avionics modular system | |
EP1730628B1 (en) | Resource management in a multicore architecture | |
Tobuschat et al. | IDAMC: A NoC for mixed criticality systems | |
US20240097433A1 (en) | Chip-level software and hardware cooperative relay protection device | |
EP1346549B1 (en) | Intercommunication preprocessor | |
US20230305980A1 (en) | Flexibly configured multi-computing-node server mainboard structure and program | |
CN113067905B (en) | Subsystem special for power chip | |
CN112799800B (en) | Lightweight low-voltage protection device platform development method | |
CN113608861B (en) | Virtualized distribution method and device for software load computing resources | |
CN115114224A (en) | Flight control computer hardware system of SOC + FPGA | |
CN112232523B (en) | Domestic artificial intelligence computing equipment | |
CN211979512U (en) | Unmanned aerial vehicle flight control system | |
CN114428664A (en) | Hardware-configurable integrated avionics airborne system | |
Zhang et al. | Design of Real Time Communication Software Based on ReWorks Operating System | |
CN217606354U (en) | Reconfigurable edge calculation module | |
RU210881U1 (en) | Small-sized intelligent electronic device of a cluster digital substation | |
CN109101457B (en) | Method for realizing NDK communication and SRIO transmission based on C6678 single core | |
Tuÿnman et al. | A Distributed Real‐Time Operating System | |
CN217880296U (en) | Data distributed processing device and stage lighting control system | |
CN111913783B (en) | Single-chip microcomputer USB software development system and method based on objectification | |
US20230111051A1 (en) | Virtualization method, device, board card and computer readable storage medium | |
CN116360933A (en) | Distributed computing method for computing tasks | |
CN118200762A (en) | Multi-load signal processing device and system based on SMP architecture | |
Zhao et al. | Design of UAV Image Multi-frequency Point Transmitting System | |
JPH0556147A (en) | Electronic exchange |
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 |