CN112799800A - Lightweight low-voltage protection device platform development method - Google Patents

Lightweight low-voltage protection device platform development method Download PDF

Info

Publication number
CN112799800A
CN112799800A CN202110006461.XA CN202110006461A CN112799800A CN 112799800 A CN112799800 A CN 112799800A CN 202110006461 A CN202110006461 A CN 202110006461A CN 112799800 A CN112799800 A CN 112799800A
Authority
CN
China
Prior art keywords
module
protection device
voltage protection
low
lightweight
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.)
Granted
Application number
CN202110006461.XA
Other languages
Chinese (zh)
Other versions
CN112799800B (en
Inventor
孙浩
龚行梁
于皎
侯先栋
周进
顾浩
李俊
李响
周强
赵天恩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NR Electric Co Ltd
NR Engineering Co Ltd
Original Assignee
NR Electric Co Ltd
NR Engineering Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NR Electric Co Ltd, NR Engineering Co Ltd filed Critical NR Electric Co Ltd
Priority to CN202110006461.XA priority Critical patent/CN112799800B/en
Publication of CN112799800A publication Critical patent/CN112799800A/en
Application granted granted Critical
Publication of CN112799800B publication Critical patent/CN112799800B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation 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/5016Allocation 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/06Electricity, gas or water supply
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS 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/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/20Systems supporting electrical power generation, transmission or distribution using protection elements, arrangements or systems

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

Lightweight low-voltage protection device platform development method
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 platform mode rather than a customized mode, so that the software module reusability is improved, the product research and development period is shortened, and the product quality 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 multitask preemptive scheduling mechanism provided by the lightweight basic software.
The invention achieves 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 port communication. Configuration text examples are as follows:
[Module_num=6]
Figure BDA0002883610940000031
[link_num=5]
Figure BDA0002883610940000032
(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 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.
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:
(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.
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 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.
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 mode 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.
CN202110006461.XA 2021-01-05 2021-01-05 Lightweight low-voltage protection device platform development method Active CN112799800B (en)

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 true CN112799800A (en) 2021-05-14
CN112799800B 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)

Citations (3)

* Cited by examiner, † Cited by third party
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
CN106941516A (en) * 2017-02-09 2017-07-11 北京东土科技股份有限公司 Isomery field apparatus Control management system based on industry internet operating system
CN107203376A (en) * 2017-04-11 2017-09-26 国网天津市电力公司信息通信公司 A kind of enterprise-level information system

Patent Citations (3)

* Cited by examiner, † Cited by third party
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
CN106941516A (en) * 2017-02-09 2017-07-11 北京东土科技股份有限公司 Isomery field apparatus Control management system based on industry internet operating system
CN107203376A (en) * 2017-04-11 2017-09-26 国网天津市电力公司信息通信公司 A kind of enterprise-level information system

Also Published As

Publication number Publication date
CN112799800B (en) 2022-08-26

Similar Documents

Publication Publication Date Title
RU2413655C2 (en) Aircraft avionics modular system
US11973338B2 (en) Chip-level software and hardware cooperative relay protection device
CN112540951A (en) Special main control chip suitable for electric power system control 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
CN105045566B (en) A kind of embedded type parallel computation system and the parallel calculating method using it
CN116868167A (en) Operation control method and device of operating system, embedded system and chip
US6496517B1 (en) Direct attach of interrupt controller to processor module
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
CN211979512U (en) Unmanned aerial vehicle flight control system
CN112232523B (en) Domestic artificial intelligence computing equipment
CN114428664A (en) Hardware-configurable integrated avionics airborne system
CN217606354U (en) Reconfigurable edge calculation module
RU210881U1 (en) Small-sized intelligent electronic device of a cluster digital substation
CN111340202A (en) Operation method, device and related product
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
CN111913783B (en) Single-chip microcomputer USB software development system and method based on objectification
CN217880296U (en) Data distributed processing device and stage lighting control system
US20230111051A1 (en) Virtualization method, device, board card and computer readable storage medium
JPH0556147A (en) Electronic exchange
Zhao et al. Design of UAV Image Multi-frequency Point Transmitting 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
GR01 Patent grant
GR01 Patent grant