WO2020048238A1 - Procédé de conception modulaire pour logiciel de compteur d'énergie électrique - Google Patents
Procédé de conception modulaire pour logiciel de compteur d'énergie électrique Download PDFInfo
- Publication number
- WO2020048238A1 WO2020048238A1 PCT/CN2019/096051 CN2019096051W WO2020048238A1 WO 2020048238 A1 WO2020048238 A1 WO 2020048238A1 CN 2019096051 W CN2019096051 W CN 2019096051W WO 2020048238 A1 WO2020048238 A1 WO 2020048238A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- energy meter
- software
- module
- layer
- meter software
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Definitions
- the present application relates to the technical field of smart meters but is not limited to the technical field of smart meters, and in particular to a modular design method for electric energy meter software.
- the hardware of the smart energy meter can be applied to the existing market with various functions and types by integrating various types of functional modules or by designing comprehensive, systematic, redundant, and standby circuit functions.
- the software of the smart energy meter since the software system of the smart energy meter cannot perform the software algorithm design of the backup function, the existing software design method of the smart energy meter cannot meet the current market conditions, thus making the current Some smart energy meters can only frequently change the software design of the energy meter and re-customize the design when faced with the ever-changing functional requirements of the market, which is time-consuming, labor-intensive, and costly.
- the purpose of the present invention is to provide a modular design method for electric energy meter software that can be applied to today's changing market environment, has multiple functions and is low in cost.
- the modular design method for energy meter software includes the energy meter software layered design, energy meter software module definition, module interaction definition, software module configuration management, and energy meter software minimum system; the energy meter software layering Designed to layer the energy meter software and define the content and calling rules of each level; the energy meter software module definition is used to establish a unified software function module model; the module interaction definition is used to define the data between each software module Interaction rules; software module configuration management is used to define macros for function configuration options of each software module; the energy meter software minimum system is used to define the minimum configuration scheme of the energy meter software.
- the energy meter software layered design is used to divide the energy meter software into an MCU driver layer, a device driver layer, a virtual device layer, a system layer, and an application layer;
- the MCU driver layer is used for MCU driver development, according to the design requirements of the energy meter Abstract the MCU driver and form a standard driver interface for the upper layer to call;
- the device driver layer is used for the development of the energy meter peripheral driver and form a standard device driver interface for the upper layer to call;
- the virtual device layer is used for the abstract design of the shared peripheral;
- the system layer is used for energy meter software task scheduling, file storage management, and message passing between modules;
- the application layer is used for application function module implementation.
- the energy meter software module definition is used to establish a unified software function module model, and external interfaces of each software function module are defined uniformly.
- the module interaction definition includes data interaction, method interaction, and internal object identification definition; data interaction is accessed through the data object identification, and the access result is data content and data format attribute information; method interaction is through method object identification and input data information Perform method access, return method execution results and output data information; the internal object identifier is a uniform and standardized name for data and method object identifiers.
- the software module configuration management is used to define function configuration option macros for each function module.
- Each function module provides a standard function configuration header file for function configuration of the function modules, and the meter as a whole defines a standard phenotype.
- Configuration header file for configuration management of phenotypic functions.
- the minimum system of the energy meter software includes an MCU driver layer, a device driver layer, a virtual device layer, a system layer, a legal measurement function module, a display function module, and a communication protocol module; wherein the MCU driver layer includes a driver program for a specific hardware platform MCU ; Where the device driver layer includes drivers for specific hardware platform peripherals; where the virtual device layer includes device abstraction programs for shared peripherals such as LCDs, alarm LEDs, etc .; where the system layer includes task scheduling, file storage management, and messages between modules
- the transfer program; the legal measurement function module includes the electric energy measurement and the system clock program; the display function module includes the key response and the data display program; the communication protocol module includes the data communication interaction protocol processing program, and the communication protocol can be configured to select DL / T645-2007, DL / T698.45, IEC62056.
- the modular design method for electric energy meter software includes layered design of the electric energy meter software, and abstracts the MCU and external devices according to the design requirements of the electric energy meter, standardizes the drive interface, and improves the hardware platform transplantation of the electric energy meter. Development efficiency; At the same time, a unified application layer function module model is established to facilitate the addition and deletion of function modules; an interaction mode between modules is also established, and data and methods are accessed between modules through custom object identifiers, making the modules completely independent In addition, each function module is configurable and provides corresponding configuration files, which enables the function module to perform corresponding function configuration according to market requirements, which improves the versatility and commonality of the function module. Finally, an energy meter is defined Software minimum system. Adding corresponding extended function modules on the basis of the minimum system can combine energy meter software that meets the corresponding market, and can quickly develop stable and reliable energy meter software products.
- FIG. 1 is a schematic diagram of a hierarchical design of a software for an energy meter according to the method of the present invention
- FIG. 2 is a schematic diagram of a unified model of an application layer functional module of the method of the present invention
- FIG. 3 is a schematic diagram of data interaction between modules of the method of the present invention.
- FIG. 4 is a schematic diagram of software module configuration management of the method of the present invention.
- the modular design method for energy meter software includes the energy meter software layered design, energy meter software module definition, module interaction definition, software module configuration management, and energy meter software minimum system; the energy meter software layering Designed to layer the energy meter software and define the content and calling rules of each level; the energy meter software module definition is used to establish a unified software function module model; the module interaction definition is used to define the data between each software module Interaction rules; software module configuration management is used to define macros for function configuration options of each software module; the energy meter software minimum system is used to define the minimum configuration scheme of the energy meter software.
- the energy meter software layered design (as shown in Figure 1) is used to divide the energy meter software into MCU driver layer, device driver layer, virtual device layer, system layer and application layer; MCU driver layer is used for MCU driver development.
- the MCU driver is abstracted and a standard driver interface is formed for the upper layer to call.
- the device driver layer is used for the development of the energy meter peripheral driver and forms a standard device driver interface for the upper layer to call.
- the virtual device layer is used for the shared peripheral.
- the system layer is used for energy meter software task scheduling, file storage management and message passing between modules;
- the application layer is used for application function module implementation.
- the entire energy meter software consists of 5 layers, which are MCU driver layer, peripheral driver layer, virtual device layer, system layer, and application layer from bottom to top.
- the lower layer provides a standardized driving interface for the upper layer.
- the inter-layer call is a one-way call relationship, that is, the upper layer can only access the lower layer interface, and the lower layer is prohibited from accessing the upper layer interface.
- the hardware platform migration process generally only the MCU driver layer and peripheral driver layer are affected, and the virtual device layer, system layer, and application layer are basically unaffected. This layered design approach can speed up software development efficiency when platform switching.
- the energy meter software module definition is used to establish a unified software function module model, which defines the external interfaces of each software function module in a unified manner; XX_ACTION (method access), XX_INIT (module initialization), XX_TASK (module main task), so as to facilitate the call between modules and data interaction.
- Module interaction definition includes data interaction, method interaction, and internal object identification definition; data interaction is accessed through data object identification, and the access result is data content and data format attribute information; method interaction is method access through method object identification and input data information To return the method execution result and output data information; the internal object identifier is a unified and standardized name for the data and method object identifier.
- Each function module provides a standard function configuration header file (for example, each function module provides a XX_Config.h function configuration header file).
- the module performs function configuration, and the meter as a whole defines a standard phenotypic configuration header file (for example, the meter as a whole defines a MeterConfig.h phenotype configuration header file) to configure and manage the phenotypic functions.
- the minimum system of the energy meter software includes an MCU driver layer, a device driver layer, a virtual device layer, a system layer, a legal measurement function module, a display function module, and a communication protocol module; wherein the MCU driver layer includes a driver program for a specific hardware platform MCU ; Where the device driver layer includes drivers for specific hardware platform peripherals; where the virtual device layer includes device abstraction programs for shared peripherals such as LCDs, alarm LEDs, etc .; where the system layer includes task scheduling, file storage management, and messages between modules
- the transfer program; the legal measurement function module includes the electric energy measurement and the system clock program; the display function module includes the key response and the data display program; the communication protocol module includes the data communication interaction protocol processing program, and the communication protocol can be configured to select DL / T645-2007, DL / T698.45, IEC62056.
- FIG. 2 is a schematic diagram of the unified model of the application layer function module of the method of the present invention: the application layer function module adopts a standardized model definition, and a function module is composed of the following parts: sub-function module implementation, module data object list, module Method object list, module external interface function, module function configuration file.
- the module's external interface is standardized into five interface functions, namely: module initialization interface (XX_Init), module main task interface function (XX_Task), module data read access interface function (XX_Get), module data write access interface function (XX_Set), Module method access interface function (XX_Action).
- FIG 3 is a schematic diagram of data interaction between the modules of the method of the present invention.
- the interaction between application layer functional modules is uniformly accessed through object identification, data access is through data object identification, and method access is through method Object identification.
- object identification analysis and routing are performed through a public interactive routing center. Through the interactive routing center, the interaction interface between modules can be greatly simplified.
- the process numbers 1234 in the figure are the access flow for the XX module to access the YY module.
- FIG. 4 is a schematic diagram of software module configuration management of the method of the present invention. It can be seen from FIG. 4 that the phenotype energy meter software of each product is flexibly combined and configured by a minimum system and an extended function module. Define the overall configuration file Meter_Config.h of the energy meter software, which is used for the selection of the function modules of the energy meter; each function module defines the configuration file XX_Config.h, which is used for the function definition and selection of each function module.
- the minimum system consists of the underlying driver layer, system layer, legal metering module, communication protocol processing module, and display module.
- the minimum system configuration file System_Config.h is defined for the minimum system related configuration, such as hardware platform, metering scheme, communication protocol, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
L'invention concerne un procédé de conception modulaire pour un logiciel de compteur d'énergie électrique. Le procédé comprend une conception en couches de logiciel de compteur d'énergie électrique, une définition de module logiciel de compteur d'énergie électrique, une définition interactive de module, une gestion de configuration de module logiciel et un système minimal de logiciel de compteur d'énergie électrique, où la conception en couches de logiciel de compteur d'énergie électrique est utilisée pour réaliser une conception en couches pour un logiciel de compteur d'énergie électrique, et définir du contenu et une règle d'invocation de chaque niveau ; la définition de module logiciel de compteur d'énergie électrique est utilisée pour établir un modèle de module fonctionnel logiciel uniforme ; la définition interactive de module est utilisée pour définir une règle d'interaction de données entre divers modules logiciels ; la gestion de configuration de module logiciel est utilisée pour effectuer une macrodéfinition d'une option de configuration fonctionnelle sur les modules logiciels ; et le système minimal de logiciel de compteur d'énergie électrique est utilisé pour définir le schéma de configuration minimal du logiciel de compteur d'énergie électrique.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811037791.XA CN109271146A (zh) | 2018-09-06 | 2018-09-06 | 针对电能表软件的模块化设计方法 |
CN201811037791.X | 2018-09-06 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020048238A1 true WO2020048238A1 (fr) | 2020-03-12 |
Family
ID=65187382
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/096051 WO2020048238A1 (fr) | 2018-09-06 | 2019-07-15 | Procédé de conception modulaire pour logiciel de compteur d'énergie électrique |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109271146A (fr) |
WO (1) | WO2020048238A1 (fr) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109271146A (zh) * | 2018-09-06 | 2019-01-25 | 威胜集团有限公司 | 针对电能表软件的模块化设计方法 |
CN111273895B (zh) * | 2019-11-06 | 2023-08-22 | 浙江零跑科技股份有限公司 | 一种电池管理系统模块开发软件集成方法 |
CN111309309B (zh) * | 2020-02-20 | 2023-09-22 | 杭州涂鸦信息技术有限公司 | 基于设备的软件开发方法及其系统和装置 |
CN111857663B (zh) * | 2020-07-17 | 2022-06-17 | 济南浪潮数据技术有限公司 | 一种软件设计方法、系统及电子设备和存储介质 |
CN113031984B (zh) * | 2021-02-07 | 2023-06-02 | 南方电网数字电网科技(广东)有限公司 | 双芯智能电表管理单元应用程序远程在线升级方法和装置 |
CN113986359A (zh) * | 2021-09-26 | 2022-01-28 | 北京智芯微电子科技有限公司 | 适用于智能电表的安全操作系统 |
CN117762382A (zh) * | 2023-12-22 | 2024-03-26 | 浙江正泰仪器仪表有限责任公司 | 一种适用于电能表的面向对象架构设计方法、装置及设备 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102135885A (zh) * | 2011-03-22 | 2011-07-27 | 曙光信息产业(北京)有限公司 | 一种模块化的软件开发架构 |
CN203101503U (zh) * | 2013-02-05 | 2013-07-31 | 湖南东瑞智能仪表有限公司 | 基于高精度计量的多功能电能表 |
CN106528406A (zh) * | 2016-10-11 | 2017-03-22 | 广西电网有限责任公司电力科学研究院 | 一种基于云服务的智能电表软件测试系统 |
CN109271146A (zh) * | 2018-09-06 | 2019-01-25 | 威胜集团有限公司 | 针对电能表软件的模块化设计方法 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105303464A (zh) * | 2015-11-13 | 2016-02-03 | 威胜集团有限公司 | 智能电能表的数据管理系统 |
-
2018
- 2018-09-06 CN CN201811037791.XA patent/CN109271146A/zh active Pending
-
2019
- 2019-07-15 WO PCT/CN2019/096051 patent/WO2020048238A1/fr active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102135885A (zh) * | 2011-03-22 | 2011-07-27 | 曙光信息产业(北京)有限公司 | 一种模块化的软件开发架构 |
CN203101503U (zh) * | 2013-02-05 | 2013-07-31 | 湖南东瑞智能仪表有限公司 | 基于高精度计量的多功能电能表 |
CN106528406A (zh) * | 2016-10-11 | 2017-03-22 | 广西电网有限责任公司电力科学研究院 | 一种基于云服务的智能电表软件测试系统 |
CN109271146A (zh) * | 2018-09-06 | 2019-01-25 | 威胜集团有限公司 | 针对电能表软件的模块化设计方法 |
Non-Patent Citations (2)
Title |
---|
FENG, HAIZHOU ET AL.: "Design of Intelligent Energy Meter Management Core Software Architecture Based on IR46 Concept", CHINA CIO NEWS, no. 7, 20 July 2018 (2018-07-20), pages 135 - 137, ISSN: 1001-2362 * |
OU, XIYANG ET AL.: "Research and Application of Embedded RTOS Used in Smart Meter", ELECTRICAL MEASUREMENT & INSTRUMENTATION, vol. 54, no. 12, 25 June 2017 (2017-06-25), pages 106 - 111 * |
Also Published As
Publication number | Publication date |
---|---|
CN109271146A (zh) | 2019-01-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020048238A1 (fr) | Procédé de conception modulaire pour logiciel de compteur d'énergie électrique | |
CN107315776B (zh) | 一种基于云计算的数据管理系统 | |
CN103336813B (zh) | 一种基于中间件架构的物联网数据集成管理方案 | |
CN100465973C (zh) | 基于网格的汽车耐撞性计算机协同设计与仿真系统 | |
CN114493500A (zh) | 基于数字孪生技术的能源设备管理方法及装置 | |
CN110443010A (zh) | 一种在信息系统中权限可视化配置控制方法、装置、终端及存储介质 | |
CN109491989B (zh) | 数据处理方法及装置、电子设备、存储介质 | |
CN106656630A (zh) | 一种电力营销业务应用系统及其构建方法、平台 | |
CN110188132B (zh) | 一种数据交换方法及系统 | |
CN109918394A (zh) | 数据查询方法、系统、计算机装置及计算机可读存储介质 | |
CN104408222A (zh) | 实时分布式仿真平台可重构方法 | |
CN106558105B (zh) | 产品可配置bom在虚拟现实系统的使用方法 | |
CN106154865A (zh) | 一种车载总线仿真模型自生成方法及系统 | |
CN104391701A (zh) | 一种能效评估软件开发方法 | |
CN101196901B (zh) | 用于数据库查询的计算机系统和方法 | |
CN109491571A (zh) | 一种配置项关联及其关联图展示方法和系统 | |
CN109960709B (zh) | 一种数据库驱动的处理方法、装置、设备及存储介质 | |
CN105488229A (zh) | 一种异构数据环境下的数据交换与集成方法 | |
CN117195818A (zh) | 电源设计命令生成方法、装置、电子设备及存储介质 | |
Li et al. | Optimal Design of an Information Management System for Government: A Bridge between Government and Citizens | |
CN101013363A (zh) | 一种基于领域本体的软构件分类注册方法 | |
CN110110067A (zh) | 一种数据库注释方法、装置及终端设备 | |
CN107368377A (zh) | 一种Android应用程序中网络请求处理方法及装置 | |
CN114461602A (zh) | 一种多轨道站台屏蔽门数据集中监控系统和方法 | |
TWM606888U (zh) | 可進行資料譜系分析、資料重要性分析、或資料異動追蹤的企業資料指南系統 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19858082 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19858082 Country of ref document: EP Kind code of ref document: A1 |