Analog detection system and method for metering core

文档序号:734183 发布日期:2021-04-20 浏览:2次 中文

阅读说明:本技术 一种计量芯的模拟检测系统及方法 (Analog detection system and method for metering core ) 是由 冯占成 翟峰 葛得辉 徐英辉 梁晓兵 李保丰 周晖 陈昊 彭楚宁 孔令达 任博 于 2020-12-15 设计创作,主要内容包括:本发明公开了一种计量芯的模拟检测系统及方法,属于涉及电能计量技术领域。本发明系统包括:检测系统主站,所述检测系统主站模拟输出预设数量的计量数据,并将计量数据分为多个部分,将第一部分的计量数据预置于计量芯模拟板,查询计量芯模拟板队列内未抄读的计量数据条数,当每次查询到队列内的计量数据低于预设值后,发送一部分的计量数据至计量芯模拟板,直至多个部分的计量数据全部发送完成;计量芯模拟板,所述将第一部分的计量数据放到队列内,剩余部分的计量数据接收后,放在队列尾部;管理芯,所述管理芯从队列头部的抄读计量数据,针对计量数据进行检测。本发明消耗很少的电能量即可完成测试,更加绿色环保。(The invention discloses a simulation detection system and method of a metering core, and belongs to the technical field of electric energy metering. The system of the invention comprises: the detection system master station simulates and outputs a preset amount of metering data, divides the metering data into a plurality of parts, presets a first part of the metering data on the metering core analog board, inquires the number of metering data which are not read in a metering core analog board queue, and sends a part of the metering data to the metering core analog board after inquiring that the metering data in the queue are lower than a preset value each time until all the metering data of the plurality of parts are sent; the metering core simulation board is used for placing the metering data of the first part into a queue, and placing the metering data of the remaining part into the tail part of the queue after receiving the metering data of the remaining part; and the management core reads the metering data from the head of the queue and detects the metering data. The invention can complete the test by consuming little electric energy, and is more environment-friendly.)

1. An analog detection system for a metrology core, the system comprising:

the detection system master station simulates and outputs a preset amount of metering data, divides the metering data into a plurality of parts, presets a first part of the metering data on the metering core analog board, inquires the number of metering data which are not read in a metering core analog board queue, and sends a part of the metering data to the metering core analog board after inquiring that the metering data in the queue are lower than a preset value each time until all the metering data of the plurality of parts are sent;

the metering core simulation board is used for placing the metering data of the first part into a queue, and placing the metering data of the remaining part into the tail part of the queue after receiving the metering data of the remaining part;

and the management core reads the metering data from the head of the queue and detects the metering data.

2. The system of claim 1, the metering data being analog metering data or collected metering data.

3. The system of claim 1, wherein the management core sends a data reading request to the measurement core simulation board, and the measurement core simulation board feeds back data at the head of the queue to the management core.

4. The system of claim 1, wherein the number of metering data not copied in the queue is recorded by a metering core analog board, and the metering core analog board feeds back the record to the detection system master station after the query is requested by the detection system master station.

5. The system of claim 1, wherein the preset value is 25-35% of a total number of data in a queue.

6. A method of analog detection of a metrology core, the method comprising:

using a detection system master station to simulate and output a preset amount of metering data, dividing the metering data into a plurality of parts, and presetting the metering data of a first part in a metering core simulation board;

putting the metering data of the first part in the metering core analog board into a queue;

reading the metering data from the head of the queue by using a management core, and detecting the metering data;

inquiring the number of metering data which are not copied in the metering core analog board queue, and after the metering data in the queue are lower than a preset value after each inquiry, sending a part of metering data to the tail of the queue of the metering core analog board until all the metering data of a plurality of parts are sent;

reading the metering data from the head of the queue, and detecting the metering data until the metering data is detected.

7. The method of claim 6, the metrology data being analog metrology data or collected metrology data.

8. The method of claim 6, wherein the management core sends a data reading request to the measurement core simulation board, and the measurement core simulation board feeds back data at the head of the queue to the management core.

9. The method of claim 6, wherein the number of unread pieces of metering data in the queue is recorded by a metering core analog board, and the metering core analog board feeds back the record to the detection system master station after the query is requested by the detection system master station.

10. The method of claim 6, wherein the preset value is 25-35% of a total number of data in a queue.

Technical Field

The present invention relates to the field of electric energy metering technologies, and more particularly, to a system and a method for analog detection of a metering core.

Background

The intelligent electric energy meter is an important data acquisition tool of an energy and power internet of things and a strong intelligent power grid perception layer, and is a vital device for providing high-quality service for customers by a power company.

A multicore modularized electric energy meter pre-popularized by a national power grid company adopts a design that a metering core and a management core are separated, the metering core provides legal data such as electric quantity and clock, and the management core undertakes management tasks of the whole meter, and the management tasks mainly comprise tasks such as cost control, display external communication, event recording, data freezing, load control and the like.

The legal metering function and the meter management function of the original electric energy meter are not separated, so the conventional test of the original electric energy meter is the whole meter test, and during the whole meter test, in order to obtain various metering data, an external test device must provide a real metering working condition environment, namely real electric energy consumption, and the method has lower energy efficiency.

Disclosure of Invention

In order to solve the above problems, the present invention provides an analog detection system for a measurement core, including:

the detection system master station simulates and outputs a preset amount of metering data, divides the metering data into a plurality of parts, presets a first part of the metering data on the metering core analog board, inquires the number of metering data which are not read in a metering core analog board queue, and sends a part of the metering data to the metering core analog board after inquiring that the metering data in the queue are lower than a preset value each time until all the metering data of the plurality of parts are sent;

the metering core simulation board is used for placing the metering data of the first part into a queue, and placing the metering data of the remaining part into the tail part of the queue after receiving the metering data of the remaining part;

and the management core reads the metering data from the head of the queue and detects the metering data.

Optionally, the metering data is analog metering data or collected metering data.

Optionally, after the management core sends a data reading request to the measurement core analog board, the measurement core analog board feeds back the data at the head of the queue to the management core.

Optionally, the number of metering data not copied and read in the queue is recorded by the metering core analog board, and after the query request of the detection system master station is passed, the metering core analog board feeds the record back to the detection system master station.

Optionally, the preset value is 25-35% of the total number of data in the queue.

The invention also provides a simulation detection method of the metering core, which comprises the following steps:

using a detection system master station to simulate and output a preset amount of metering data, dividing the metering data into a plurality of parts, and presetting the metering data of a first part in a metering core simulation board;

putting the metering data of the first part in the metering core analog board into a queue;

reading the metering data from the head of the queue by using a management core, and detecting the metering data;

inquiring the number of metering data which are not copied in the metering core analog board queue, and after the metering data in the queue are lower than a preset value after each inquiry, sending a part of metering data to the tail of the queue of the metering core analog board until all the metering data of a plurality of parts are sent;

reading the metering data from the head of the queue, and detecting the metering data until the metering data is detected.

Optionally, the metering data is analog metering data or collected metering data.

Optionally, after the management core sends a data reading request to the measurement core analog board, the measurement core analog board feeds back the data at the head of the queue to the management core.

Optionally, the number of metering data not copied and read in the queue is recorded by the metering core analog board, and after the query request of the detection system master station is passed, the metering core analog board feeds the record back to the detection system master station.

Optionally, the preset value is 25-35% of the total number of data in the queue.

The metering core simulation board can normally communicate with the management core, the data preset by the master station can simulate various working conditions, when the simulation system and the management core carry out data interaction, the simulation system can quickly respond to the request of the management core without data leakage, the management core can normally work, and the data response under various severe working conditions is simulated by controlling the data content responded by the metering core simulation board, so that potential safety hazards possibly existing in the management core software can be quickly and efficiently detected.

The invention can complete the test by consuming little electric energy, and is more environment-friendly.

Drawings

FIG. 1 is a block diagram of an analog testing system for a metrology core of the present invention;

FIG. 2 is a flow chart of a method of analog testing of a metrology core of the present invention;

FIG. 3 is a flowchart illustrating an exemplary method for analog testing of a metrology core.

Detailed Description

The exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, however, the present invention may be embodied in many different forms and is not limited to the embodiments described herein, which are provided for complete and complete disclosure of the present invention and to fully convey the scope of the present invention to those skilled in the art. The terminology used in the exemplary embodiments illustrated in the accompanying drawings is not intended to be limiting of the invention. In the drawings, the same units/elements are denoted by the same reference numerals.

Unless otherwise defined, terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. Further, it will be understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense.

The invention provides a simulation detection system of a metering core, as shown in figure 1, comprising:

the detection system master station simulates and outputs a preset amount of metering data, divides the metering data into a plurality of parts, presets a first part of the metering data on the metering core analog board, inquires the number of metering data which are not read in a metering core analog board queue, and sends a part of the metering data to the metering core analog board after inquiring that the metering data in the queue are lower than a preset value each time until all the metering data of the plurality of parts are sent;

the metering core simulation board is used for placing the metering data of the first part into a queue, and placing the metering data of the remaining part into the tail part of the queue after receiving the metering data of the remaining part;

and the management core reads the metering data from the head of the queue and detects the metering data.

The metering data is analog metering data or collected metering data.

After the management core sends a data reading request to the metering core simulation board, the metering core simulation board feeds back data at the head of the queue to the management core.

And after the query request of the detection system master station is passed, the metering core simulation board feeds back the record to the detection system master station.

Wherein the preset value is 25-35% of the total number of data in the queue.

The invention also provides a simulation detection method of the metering core, as shown in fig. 2, comprising the following steps:

using a detection system master station to simulate and output a preset amount of metering data, dividing the metering data into a plurality of parts, and presetting the metering data of a first part in a metering core simulation board;

putting the metering data of the first part in the metering core analog board into a queue;

reading the metering data from the head of the queue by using a management core, and detecting the metering data;

inquiring the number of metering data which are not copied in the metering core analog board queue, and after the metering data in the queue are lower than a preset value after each inquiry, sending a part of metering data to the tail of the queue of the metering core analog board until all the metering data of a plurality of parts are sent;

reading the metering data from the head of the queue, and detecting the metering data until the metering data is detected.

The metering data is analog metering data or collected metering data.

After the management core sends a data reading request to the metering core simulation board, the metering core simulation board feeds back data at the head of the queue to the management core.

And after the query request of the detection system master station is passed, the metering core simulation board feeds back the record to the detection system master station.

Wherein the preset value is 25-35% of the total number of data in the queue.

The process of the invention is further illustrated below with reference to examples:

as shown in fig. 3, the method comprises the following steps:

and constructing test data under the overvoltage and overcurrent working conditions, wherein the test data can be customized according to requirements and can also be real metering data.

And importing the test data into a test system.

After the detection process is started, a certain amount of test data is led to the metering core simulation board.

The metering core analog board stores the received data in a data queue of the storage area in sequence.

When the management core requests data from the metering core through the SPI communication interface, the metering core takes out the data from the head of the queue and returns the data to the management core.

The master station circularly inquires the data surplus of the metering core, and the metering core returns the data surplus.

When the main station inquires that the data residual quantity is lower than a certain proportion, such as 30%, a certain quantity of data is issued to the metering core simulation board again.

And repeating the steps 4-7 until the detection is finished.

The metering core simulation board can normally communicate with the management core, the data preset by the master station can simulate various working conditions, when the simulation system and the management core carry out data interaction, the simulation system can quickly respond to the request of the management core without data leakage, the management core can normally work, and the data response under various severe working conditions is simulated by controlling the data content responded by the metering core simulation board, so that potential safety hazards possibly existing in the management core software can be quickly and efficiently detected.

The invention can complete the test by consuming little electric energy, and is more environment-friendly.

As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. The scheme in the embodiment of the application can be implemented by adopting various computer languages, such as object-oriented programming language Java and transliterated scripting language JavaScript.

The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.

It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

8页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种具有开关量控制的管理芯模拟系统及方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!