Substation measurement and control device, visual programming method and computer equipment
By introducing a unified interface and hardware abstraction layer into the substation measurement and control device, the problem of strong coupling between hardware and software in the existing technology is solved, resource utilization efficiency and operation and maintenance convenience are improved, and flexible architecture and function expansion are provided.
Patent Information
- Application Number
- CN202411749880.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-30
- Publication Date
- 2025-04-15
AI Technical Summary
The hardware and software of the existing substation measurement and control devices are strongly coupled, resulting in solidification of interfaces and functions, which is inconvenient to flexibility and scalability to equipment suppliers and power grid users.
Design a substation measurement and control device, using a unified interface to enable upper-level applications to call the underlying hardware resources, and provide a unified interface for the application service platform through the hardware abstraction layer to achieve the decoupling of hardware and upper-level applications.
It improves resource utilization efficiency and operation and maintenance convenience, realizes flexible architecture and function expansion of the measurement and control device, and reduces the application's dependence on hardware.
Smart Images

Figure CN119829039A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of substation measurement and control, and in particular, relates to a substation measurement and control device, a visual programming method and a computer device. Background Art
[0002] Measurement and control devices play a vital role in the power system. Specifically, the measurement and control devices can collect various operating data in the power system in real time, such as voltage, current, power, frequency, etc. By monitoring these data, the operating status of the power system can be understood in a timely manner, so that potential faults in the power system can be diagnosed and early warning can be issued, which helps to take measures in advance to prevent the expansion of faults and ensure the stable operation of the power system. In addition, the measurement and control devices can also remotely control and dispatch the power system, such as adjusting the output of the generator, controlling the distribution of the load, etc., to ensure the balance of supply and demand in the power system and optimize energy utilization efficiency. With the development of smart grid technology, the role of measurement and control devices will become more and more important, and their technology will continue to improve and improve.
[0003] However, the current measurement and control devices of power systems (such as substations) are basically customized in design and production, with strong coupling of hardware and software. For example, the common interval (line) measurement and control devices, 3 / 2 wiring measurement and control devices, transformer measurement and control devices, busbar measurement and control devices and public measurement and control devices in substations have rigid interfaces and functions, and the software and hardware are not interchangeable, which brings great inconvenience to the product development and version management of equipment suppliers, the flexibility and scalability of power grid users when applying devices, and the subsequent renovation and expansion of substations. Summary of the invention
[0004] The embodiments of the present application provide a substation measurement and control device, a visual programming method and a computer device, which effectively improve resource utilization efficiency and operation and maintenance convenience by enabling upper-layer applications to call underlying hardware resources through a unified interface.
[0005] In a first aspect, an embodiment of the present application provides a substation measurement and control device, including:
[0006] Device hardware, the device hardware includes a CPU module and at least one function board slot interface, the function board slot interface supports at least one type of function board;
[0007] An application service platform, the application service platform includes a flexible configuration application interaction interface, the flexible configuration application interaction interface is used to implement the application function APP and the function board interface APP;
[0008] An operating system, the operating system integrating a hardware abstraction layer, for providing a unified interface for the application service platform, so that the application service platform can call the hardware resources of the device hardware through the unified interface, the hardware resources of the device hardware including the hardware resources of the function board connected to the function board slot interface;
[0009] For the target function board connected to the above-mentioned function board slot interface, the above-mentioned flexible configuration application interaction interface instantiates the target function board interface APP in the configuration file, and the board identification information in the instantiated target function board interface APP is consistent with the board identification information of the above-mentioned target function board; the above-mentioned CPU module obtains the configuration parsing information of the above-mentioned target function board according to the above-mentioned board identification information.
[0010] In a possible implementation manner of the first aspect, the flexible configuration application interaction interface is used to instantiate the application function APP in the configuration file;
[0011] The CPU module is also used to parse the instantiated application function APP, obtain the initialization function, main loop function and interrupt function of the application function APP, and register them in the registration call list of the initialization task thread, the main loop task thread and the interrupt task thread respectively;
[0012] The application service platform allocates hardware resources to the application function APP, and the hardware resources include at least one of computing resources, storage resources and communication resources.
[0013] In a possible implementation manner of the first aspect, the board identification information includes a board type and a slot number of a connected functional board slot interface.
[0014] In a possible implementation manner of the first aspect, the CPU module is specifically configured to:
[0015] Through the LVDS bus and AD bus, polling reception of the function board message connected to the function board slot interface is realized, and according to the board identification information, the message type and cache location of the function board message are identified, and the sampling signal in the function board message is stored in the corresponding sampling resource area.
[0016] In a possible implementation of the first aspect, the CPU module includes a CPU management module and a field programmable gate array FPGA;
[0017] The FPGA is used to realize polling reception of function board messages connected to the function board slot interface through the LVDS bus and the AD bus;
[0018] The CPU module is used to identify the message type and cache location of the function board message according to the board identification information, and store the sampling signal in the function board message into the corresponding sampling resource area.
[0019] In a possible implementation of the first aspect, the CPU module parses the configuration parsing information of the target functional board from the configuration file according to the board identification information, and stores the configuration parsing information in a configuration parsing cache area corresponding to the board identification information.
[0020] In a possible implementation of the first aspect, the application service platform also includes an application service platform public interface for providing public services; the public services include at least one of file services, communication services, sampling services, computing services and resource management services.
[0021] In a second aspect, an embodiment of the present application provides a visual programming method for configuring a substation measurement and control device, the method comprising:
[0022] Based on the basic database and project configuration library of the visual configuration tool, interactive modules are displayed in a graphical form; the basic database includes basic functional elements and ICD basic templates, and the project configuration library includes device management module, configuration design module, data mapping module and configuration output module;
[0023] According to the interactive operation between the user and the above-mentioned interactive module, a configuration file is generated by the above-mentioned configuration output module.
[0024] In a third aspect, an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the visual programming method described in the second aspect when executing the computer program.
[0025] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the visual programming method described in the second aspect is implemented.
[0026] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer device, enables the computer device to execute the visual programming method described in the second aspect above.
[0027] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the substation measurement and control device provided by the present application includes device hardware, an application service platform, and an operating system integrated with a hardware abstraction layer, wherein the hardware abstraction layer provides a unified interface for the application service platform, so that the application service platform can call the hardware resources of the device hardware through the unified interface. In this way, the hardware functions can be presented in the form of software, the hardware and the upper-layer applications can be decoupled, and the upper-layer applications can call the underlying hardware resources through the unified interface, thereby effectively improving the resource utilization efficiency and the convenience of operation and maintenance.
[0028] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0030] Figure 1 It is a structural schematic diagram of a substation measurement and control device provided in an embodiment of the present application;
[0031] Figure 2 It is a schematic diagram of the hardware structure of a device provided in an embodiment of the present application;
[0032] Figure 3 This is a schematic diagram of the flexible configuration principle of the functional panel provided in one embodiment of the present application;
[0033] Figure 4 This is a schematic diagram of the flexible configuration principle of application functions provided by an embodiment of the present application;
[0034] Figure 5 It is a schematic diagram of the overall architecture of a visual configuration tool provided in an embodiment of the present application;
[0035] Figure 6 This is a schematic diagram of an ICD file generation process provided by an embodiment of the present application;
[0036] Figure 7 is a schematic diagram of a configuration interface of a visualization configuration tool provided in an embodiment of the present application;
[0037] Figure 8 This is a schematic diagram of a text structure in XML format of an exported ICD file provided in an embodiment of the present application;
[0038] Fig. 9It is a structural diagram of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0039] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0040] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0041] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0042] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0043] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0044] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0045] The technical solutions in the embodiments of the present application are described in detail below.
[0046] An embodiment of the present application provides a substation measurement and control device, which is designed based on the concept of "software defines hardware". Figure 1 A schematic diagram of the structure of a substation measurement and control device is shown in FIG. Figure 1 As shown, the device includes: device hardware, application service platform and operating system, and the operating system integrates the hardware abstraction layer (HAL).
[0047] Device hardware, including a CPU module and at least one functional board slot interface ( Figure 1 Not shown, will be combined later Figure 2 To explain, Figure 1 For the device hardware, the hardware structure of the CPU module is shown in particular. The function board slot interface supports at least one type of function board. In one embodiment, the CPU module in the device hardware may include a CPU management module and an FPGA (Field-Programmable Gate Array). The structure of the CPU management module may be designed or selected according to actual needs, as long as it can implement the functions of the CPU module in this application. The CPU module may communicate with each function board slot interface through a bus. The function board slot interface in the device hardware may support at least one type of function board such as an input board, an output board, a DC input board, a DC output board, and an AC board. The function board slot interface may be of a unified design to meet the flexible configuration of different types of function boards.
[0048] The application service platform includes a flexible configuration application interaction interface, which is used to implement the application function APP and the function board interface APP. In one embodiment, any application function APP of the application service platform is based on the IEC 61850 standard, and each application function APP is independently designed with clear input and output interfaces to achieve specific functional requirements. In this way, the independent evolution and flexible deployment of upper-level application functions can be achieved, and rich functional options can be provided. Among them, the IEC 61850 standard is the only global standard in the field of power system automation. Through this standard, the engineering operation standardization of smart substations is realized, making the engineering implementation of smart substations standardized, unified and transparent.
[0049] The operating system integrates a hardware abstraction layer, which is used to provide a unified interface for the application service platform, so that the application service platform can call the hardware resources of the device hardware through the unified interface. The hardware resources of the device hardware include the hardware resources of the functional board connected to the functional board slot interface. Among them, the hardware resources may include computing resources, storage resources, external communication resources, internal communication resources, etc. The hardware abstraction layer is a software layer that provides a unified interface for upper-level applications (i.e., application service platform) to call the resources of the underlying hardware (i.e., device hardware), so that the upper-level applications do not need to consider the specific hardware model or characteristics of the underlying hardware. Even if the underlying hardware changes, the upper-level applications can access the underlying hardware resources through a unified interface, reducing the application's dependence on hardware.
[0050] based on Figure 1 The structure of the substation measurement and control device shown, for the target functional board connected to the functional board slot interface, the flexible configuration application interaction interface instantiates the target functional board interface APP in the configuration file, and the board identification information in the instantiated target functional board interface APP is consistent with the board identification information of the target functional board, so that the CPU module can identify and process the target functional board according to the board identification information. Specifically, the CPU module can obtain the configuration parsing information of the target functional board according to the board identification information. The target functional board can be any functional board of the access device hardware, and its configuration parsing information can include hardware resource information, which is a component of the hardware resources of the device hardware. By obtaining the hardware resource information of the target functional board, the hardware resources of the device hardware can be further obtained for the application service platform to call through a unified interface. In one embodiment, the above-mentioned board identification information may include the board type (in the form of a board type code) and the slot number of the connected functional board slot interface (hereinafter referred to as the slot number).
[0051] According to the above embodiments, the substation measurement and control device provided by the present application decouples the underlying hardware and upper-layer applications, and enables the upper-layer applications to call the underlying hardware resources through a unified interface, thereby effectively improving resource utilization efficiency and operation and maintenance convenience. In addition, the substation measurement and control device provided by the present application adopts a modular design structure, a standardized service interface, and an intelligent application function APP to realize the flexible architecture of the measurement and control device.
[0052] In order to facilitate understanding of the structural details and working principle of the substation measurement and control device provided by the present application, the following is further based on Figure 1 It should be noted that those skilled in the art will Figure 1 Any modification or deformation of the structure shown, such as setting different services in the public interface of the application service platform, not setting the public interface of the application service platform, etc., should be deemed to be within the scope of protection of this application.
[0053] For device hardware:
[0054] Figure 2 A schematic diagram of the hardware structure of the device is shown. Figure 2 As shown, the hardware of the device mainly includes a CPU management module, FPGA, CPLD (Complex Programmable Logic Device) and 14 empty slots (corresponding to the functional board slot interface). Among them, the slot interface is uniformly designed to meet the flexible configuration of functional boards such as input board, output board, DC input board, DC output board, AC board, etc. In addition, Figure 2 The device hardware shown is also provided with a power chip for supplying power to the CPU management module, CPLD and FPGA, and a power board for supplying power to the slots.
[0055] Specifically, the CPU management module communicates with the FPGA through GMAC (Gigabit Media Access Controller), SPI1 (Serial Peripheral interface) and GPIO (General Purpose Input Output), and the FPGA communicates with the slot through the LVDS (Low Voltage Differential Signaling) bus, the AD bus (a bus for the ADC (Analog-to-Digital Converter) chip to perform AC data sampling), the control bus (used to transmit control signals CTL and XCTL) and the UART (Universal Asynchronous Receive Transmitter) 422 bus. When the measurement and control device is running, when the functional board is inserted into the slot, the CPU module realizes the polling reception of the board signal through the unified LVDS bus and AD bus, and the FPGA polls all instantiated boards through the LVDS and AD buses for each interrupt.
[0056] Figure 2 A specific structure of a CPU management module is also illustrated. Figure 2As shown, the CPU management module includes DDR (Double Data Rate SDRAM), FLASH (flash memory), EMMC (embedded MultiMedia Card), JTAG (Joint Test Action Group), EEPROM1 (Electrically Erasable Programmable read only memory), EEPROM2, UART0 (asynchronous receiver / transmitter interface), URAT1 and USB0 (embedded universal serial bus interface). It should be noted that the above structure is only an example, and the modifications and replacements made to the above structure by those skilled in the art when implementing the solution provided by the present application should be deemed to be within the scope of protection of the present application.
[0057] For application service platforms:
[0058] The flexible configuration application interaction interface of the application service platform may include configuration interfaces such as the service layer interface, configuration parsing module, data processing module, and message bus module, which are used to implement application function APP, function board interface APP, registration instantiation, and resource allocation. Figure 1 As shown, the application service platform may also include an application service platform public interface (or application service platform functional interface) for providing public services such as resource management services, file services, communication services, sampling services, and computing services.
[0059] In some embodiments, in order to perform flexible configuration of the functional board and enable the CPU module to identify and parse the message information of the functional board, taking the board identification information as the slot number and the board type as an example, it is necessary to instantiate the functional board interface APP in the configuration file through the flexible configuration application interaction interface, wherein the board type and slot number in the instantiated functional board interface APP must be consistent with the actual board type of the functional board and the slot number of the connected functional board slot interface. The CPU module implements polling reception of the functional board message connected to the functional board slot interface through the LVDS bus and the AD bus, and identifies the functional board message type and cache location according to the board identification information, thereby storing the sampled signal in the message into the corresponding sampling resource area.
[0060] To facilitate understanding of the flexible configuration process of the above functional panels, Figure 3 Give a description. Figure 3 A schematic diagram of the flexible configuration principle of a functional panel is shown. Figure 3As shown, the CPU module includes an FPGA and a CPU, wherein the CPU is provided with a configuration parsing module, which is used to read and parse the configuration information of the functional board from the configuration file, and store the configuration parsing results of the functional board (i.e., the configuration parsing information) in the configuration parsing cache in the order of the slot number. The FPGA polls all instantiated functional boards through the LVDS and AD buses for each interrupt to obtain message information and cache it. Specifically, the FPGA reads the information in the configuration parsing cache, including board identification information (such as slot number, board type code information), and then obtains message information from the board of the corresponding slot number for each interrupt based on the aforementioned information. The CPU identifies the message type and cache location by the slot number and board type, thereby storing the sampled signal in the message in the corresponding message sampling resource area.
[0061] In some embodiments, in order to flexibly configure application functions, it is necessary to instantiate the application function APP in the configuration file through the flexible configuration application interaction interface, and the CPU module parses the instantiated application function APP to obtain the initialization function (Init), main loop function (Main) and interrupt function (Int) of the application function APP, and register them in the registration call list of the initialization task thread, main loop task thread and interrupt task thread respectively. The application service platform uniformly allocates hardware resources to each application function APP. The hardware resources here can be at least one of computing resources, storage resources and communication resources.
[0062] To facilitate understanding of the flexible configuration process of the above application functions, Figure 4 Give a description. Figure 4 A schematic diagram of the flexible configuration principle of application functions is shown as follows: Figure 4 As shown, the CPU parses the n application function APPs instantiated in the configuration file, and registers the initialization function, main loop function and interrupt function in each application function APP to the registration call list of the initialization task thread, main loop task thread and interrupt task thread respectively, and the functions of adjacent application function APPs in the list are linked by a linked list. A data processing module for allocating hardware resources can be set in the flexible configuration application interaction interface of the application service platform. The data processing module uniformly allocates hardware resources such as computing power resources, storage resources, and communication resources according to the configuration analysis results of the application function APP and the function board interface APP.
[0063] So far, the description of the substation measurement and control device provided by this application is completed. The substation measurement and control device is provided with a standardized service interface, so that the upper-layer application can call the underlying hardware resources through a unified interface, effectively improving resource utilization efficiency and operation and maintenance convenience. In addition, each application function is independently designed with clear input and output interfaces, realizing the independent evolution and flexible deployment of the upper-layer application functions, and providing rich functional options.
[0064] To facilitate the configuration of the substation measurement and control device provided in the present application, the present application also provides a visual configuration file generation method (or visual programming method), which mainly includes: based on the basic database and project configuration library, displaying the interactive module in a graphical form; generating a configuration file according to the user's interaction operation with the interactive module.
[0065] Specifically, the visualization configuration file generation method is implemented based on a visualization configuration tool, and the visualization configuration tool can be implemented in the form of software. The visualization configuration tool includes a driver management module, a basic database, and a project configuration library. Figure 5 A schematic diagram of the overall architecture of a visual configuration tool is shown, Figure 5 As shown:
[0066] The driver management module imports the basic functional elements and the corresponding ICD basic template into the basic database by loading the driver package and the ICD (IED Capability Description) basic template.
[0067] The visual configuration tool imports backup data from the project configuration library (a new configuration is required if it is used for the first time). The project configuration library contains the device management module, configuration design module, data mapping module and configuration output module. Specifically, the device management module is used to store the configuration backup of different interval measurement and control equipment under the same project to ensure that each measurement and control equipment can be configured independently; the configuration design module is used to realize the visual programming of device hardware, application functions, application logic, etc.; the data mapping module is used to realize signal transmission through wiring between application function APP modules during graphical configuration design, and to realize the assignment of analog, input, output, parameters, alarm and other signal terminals in the internal configuration of the application function APP module; the configuration output module is used for the export and storage of measurement and control device configuration files, as well as the export and storage of ICD files.
[0068] The configuration of the functional panel APP and application function APP described above can be visually configured through the configuration design module in the visual configuration tool.
[0069] This visual configuration tool integrates a graphical component library, including different types of sensors, actuators, logic components, application apps and other basic functional components. Users can interact with these basic functional components by dragging, clicking, connecting, etc. to build control logic, thereby completing device hardware configuration, application function configuration, application logic configuration, etc., and generating a configuration file containing configuration information such as logical relationships and algorithm sequences.
[0070] Through the visual configuration file generation method provided in the present application, the user can easily construct the functional logic by performing visual operations such as dragging and connecting basic functional elements, thereby generating a configuration file for the measurement and control device.
[0071] Among them, the technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit, and the above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application.
[0072] Furthermore, the visual configuration tool based on the above can also output ICD files, as follows:
[0073] First of all, it should be noted that the ICD file refers to the capability description file of the intelligent electronic device (IED). By following the IEC 61850 specification and using the ICD file, the automation and control of the power system can achieve higher interoperability and efficiency, thereby improving the performance and reliability of the overall system. The process of generating an ICD file based on a visual configuration tool may include: instantiating the function node of the application function APP in the visual configuration tool, and matching the information of the function node to the ICD basic template according to preset rules, thereby generating an ICD file. To facilitate understanding of the above process, the following is combined with Figure 6 Give an example.
[0074] Figure 6 FIG. 1 shows a schematic diagram of an ICD file generation process. Figure 6As shown, when generating an ICD file, based on the function node LD0 instantiated by the application function APP in the visualization configuration tool, namely, the common LD (Logical Device), MEAS (measurement LD) and CTRL (control and input LD), the visualization configuration tool first loads the ICD basic template, and parses the lnClass and name attribute descriptions of the DOI (Instantiated Data Object) element to be instantiated in the ICD basic template, where InClass is the type of the logical node, such as GGIO (signal input), CSWI (object control), etc., which is consistent with the type description of the application function APP instantiated in the visualization configuration tool; name is the DOI element under the logical node LN, which is consistent with the desc attribute description of the DOI element to be instantiated in the application function APP instantiated in the visualization configuration tool. The SDI (Instantiated Sub DATA) and DAI (Instantiated Data Attribute) attribute descriptions of the DOI element are fixed in the template. The short address description of the DOI meets the IEC 61850 standard format, and the short address sequence number is the enumeration value in the enumeration table where the element's corresponding data type is located. According to the above rules, the visual configuration tool can instantiate the instantiated APP information into the standard template and automatically generate an ICD file. For example, Figure 7 A schematic diagram of the configuration interface of the visual configuration tool is shown, showing the application apps instantiated in the three configuration interfaces of LD, MEAS and CTRL; Figure 8 A textual schema diagram showing the XML format of an exported ICD file.
[0075] Therefore, based on the visual configuration tool, ICD files can be generated with one click, reducing the time-consuming and error-prone risks of manual configuration of ICD files.
[0076] An embodiment of the present application also provides a computer device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps in any of the above-mentioned method embodiments when executing the computer program.
[0077] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0078] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0079] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0080] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0081] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0082] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0083] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0084] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
[0085] Fig. 9 This is a schematic diagram of the structure of a computer device provided in one embodiment of the present application. Fig. 9 As shown, the computer device of this embodiment includes: at least one processor 20 ( Fig. 9 Only one is shown), a memory 21, and a computer program 22 stored in the memory 21 and executable on the at least one processor 20, wherein the processor 20 implements the steps of any of the above-mentioned visual programming method embodiments when executing the computer program 22.
[0086] The computer device may include, but is not limited to, a processor 20 and a memory 21. Those skilled in the art will appreciate that Fig. 9 It is only an example of a computer device and does not constitute a limitation of the computer device. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.
[0087] The processor 20 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0088] In some embodiments, the memory 21 may be an internal storage unit of the computer device, such as a hard disk or memory of the computer device. In other embodiments, the memory 21 may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device. Further, the memory 21 may also include both an internal storage unit of the computer device and an external storage device. The memory 21 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 21 may also be used to temporarily store data that has been output or is to be output.
Claims
1. A substation measurement and control device, characterized in that: include: Device hardware, the device hardware comprising a CPU module and at least one function board slot interface, the function board slot interface supporting at least one type of function board; An application service platform, the application service platform including a flexible configuration application interaction interface, the flexible configuration application interaction interface is used to implement an application function APP and a function board interface APP; An operating system, the operating system integrating a hardware abstraction layer, for providing a unified interface for the application service platform, so that the application service platform can call the hardware resources of the device hardware through the unified interface, the hardware resources of the device hardware including the hardware resources of the function board connected to the function board slot interface; For the target functional board connected to the functional board slot interface, the flexible configuration application interaction interface instantiates the target functional board interface APP in the configuration file, and the board identification information in the instantiated target functional board interface APP is consistent with the board identification information of the target functional board; The CPU module obtains the configuration parsing information of the target functional board according to the board identification information.
2. The device according to claim 1, characterized in that The flexible configuration application interaction interface is used to instantiate the application function APP in the configuration file; The CPU module is also used to parse the instantiated application function APP, obtain the initialization function, main loop function and interrupt function of the application function APP, and register them in the registration call list of the initialization task thread, the main loop task thread and the interrupt task thread respectively; The application service platform allocates hardware resources to the application function APP, and the hardware resources include at least one of computing resources, storage resources and communication resources.
3. The device according to claim 1, characterized in that The board identification information includes the board type and the slot number of the connected functional board slot interface.
4. The device according to any one of claims 1 to 3, characterized in that: The CPU module is specifically used for: Through the LVDS bus and AD bus, polling reception of the function board message connected to the function board slot interface is realized, and according to the board identification information, the message type and cache location of the function board message are identified, and the sampling signal in the function board message is stored in the corresponding sampling resource area.
5. The device according to claim 4, characterized in that The CPU module includes a CPU management module and a field programmable gate array FPGA; The FPGA is used to realize polling reception of function board messages connected to the function board slot interface through the LVDS bus and the AD bus; The CPU module is used to identify the message type and cache location of the function board message according to the board identification information, and store the sampling signal in the function board message into the corresponding sampling resource area.
6. The device according to any one of claims 1 to 3, characterized in that: The CPU module parses the configuration parsing information of the target functional board from the configuration file according to the board identification information, and stores the configuration parsing information in the configuration parsing cache area corresponding to the board identification information.
7. The device according to any one of claims 1 to 3, characterized in that: The application service platform also includes an application service platform public interface for providing public services; the public services include at least one of file services, communication services, sampling services, computing services and resource management services.
8. A visual programming method for generating a configuration file of a substation measurement and control device according to any one of claims 1 to 7, characterized in that: include: Based on the basic database and project configuration library of the visual configuration tool, interactive modules are displayed in a graphical form; The basic database includes basic functional elements and intelligent electronic device capability description ICD basic templates, and the project configuration library includes a device management module, a configuration design module, a data mapping module and a configuration output module; According to the interactive operation between the user and the interactive module, a configuration file is generated by the configuration output module.
9. A computer device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to claim 8 when executing the computer program.
10. A computer program product, characterized in that When the computer program product is run on a computer device, the computer device is caused to execute the method as claimed in claim 8.