Data complementary reading method and device and power acquisition terminal
阅读说明:本技术 数据补抄方法、装置和电力采集终端 (Data complementary reading method and device and power acquisition terminal ) 是由 苟孟生 黄旺 李文玉 于 2019-09-25 设计创作,主要内容包括:本发明的实施例提供了一种数据补抄方法、装置和电力采集终端,涉及电力采集技术领域。该数据补抄方法包括:依次读取每块电表的日冻结数据,并获取读取多块电表的日冻结数据消耗的第一时间;根据第一时间和预设的曲线数据读取周期计算需要补抄的漏读曲线数据的总个数;对漏读曲线数据进行补抄,直至补抄的漏读曲线数据的个数大于总个数。通过本发明实施例提供的数据补抄方法能够保证电力采集终端完整的抄读日冻结数据和曲线数据。(The embodiment of the invention provides a data complementary reading method and device and an electric power acquisition terminal, and relates to the technical field of electric power acquisition. The data complementary copying method comprises the following steps: sequentially reading the daily freezing data of each electric meter, and acquiring the first time consumed for reading the daily freezing data of a plurality of electric meters; calculating the total number of missed reading curve data needing to be subjected to additional reading according to the first time and a preset curve data reading period; and performing complementary copying on the read-missing curve data until the number of the read-missing curve data subjected to complementary copying is larger than the total number. The data supplementary reading method provided by the embodiment of the invention can ensure that the electric power acquisition terminal can completely read the daily frozen data and the curve data.)
1. A data complementary reading method is applied to a power acquisition terminal, the power acquisition terminal is electrically connected with a plurality of electric meters, and the method comprises the following steps:
sequentially reading the daily freezing data of each electric meter, and acquiring the first time consumed for reading the daily freezing data of the plurality of electric meters;
calculating the total number of the missed reading curve data needing to be subjected to additional reading according to the first time and a preset curve data reading period;
and performing complementary copying on the missing read curve data until the number of the missing read curve data subjected to complementary copying is larger than the total number.
2. The data complementary copying method according to claim 1, wherein the step of performing complementary copying on the missing read curve data until the number of the missing read curve data subjected to complementary copying is greater than the total number comprises:
after the reading of the conventional curve data is completed in each curve data reading period, calculating the target number of the missing read curve data which can be copied in the remaining idle time of each curve data reading period;
and sequentially copying the target number of missed-reading curve data in the remaining idle time of each curve data reading period according to the sequence of the distance copying time from short to long until the sum of the number of the missed-reading curve data copied in at least one curve data reading period is greater than the total number.
3. The data complementary copying method according to claim 2, wherein before the step of calculating a target number of missing-read curve data that can be copied during a remaining idle time of each of the curve data reading cycles, the method further comprises:
acquiring second time consumed for reading the conventional curve data in each curve data reading period;
and calculating the remaining idle time of each curve data reading period according to the curve data reading period and the second time.
4. The data complementary copying method according to claim 2, wherein the step of calculating a target number of the missing-read curve data which can be copied in the remaining idle time of each curve data reading period includes:
and calculating the target number according to the remaining idle time, the time consumed for reading the curve data which is not read, the number of the electric meters and the type number of the curve data of each electric meter.
5. The data complementary copying method according to claim 1, wherein before the step of complementary copying the skip-read curve data, the method further comprises:
sending a reading request to each ammeter;
and if a negative confirmation message returned by the ammeter based on the reading request is received, the reading missing curve data of the ammeter is not subjected to complementary reading.
6. The utility model provides a device is copied to data benefit, its characterized in that is applied to electric power collection terminal, electric power collection terminal is all connected with polylith ammeter electricity, the device includes:
the reading module is used for sequentially reading the daily freezing data of each electric meter and acquiring the first time consumed by reading the daily freezing data of the plurality of electric meters;
the calculation module is used for calculating the total number of the missed reading curve data needing to be subjected to additional reading according to the first time and a preset curve data reading period;
and the reading supplementing module is used for performing reading supplementing on the missing read curve data until the number of the missing read curve data subjected to reading supplementing is larger than the total number.
7. The data complementary copying device of claim 6, wherein the complementary copying module comprises:
the calculation unit is used for calculating the target number of the missing-reading curve data which can be copied in the remaining idle time of each curve data reading period after the reading of the conventional curve data is completed in each curve data reading period;
and the complementary copying unit is used for sequentially copying the target number of the missed-reading curve data within the residual idle time of each curve data reading period according to the sequence of the distance complementary copying time from short to long until the sum of the numbers of the missed-reading curve data copied within at least one curve data reading period is greater than the total number.
8. The data make-up device according to claim 7, wherein the reading module is further configured to obtain a second time consumed for reading the regular curve data in each curve data reading period;
and the calculating module is further used for calculating the remaining idle time of each curve data reading period according to the curve data reading period and the second time.
9. The data complementary copying device of claim 7, wherein the calculating unit is configured to calculate the target number according to the remaining idle time, the time consumed for reading one of the missing-reading curve data, the number of the electricity meters, and the type number of the curve data of each of the electricity meters.
10. An electric power collection terminal, comprising a memory storing a computer program and a processor, wherein the computer program is read by the processor and executed to implement the data complementary copying method according to any one of claims 1 to 5.
Technical Field
The invention relates to the technical field of power acquisition, in particular to a data complementary reading method and device and a power acquisition terminal.
Background
The carrier module matched with the existing power acquisition terminal is a broadband carrier, the high-speed characteristic of the broadband carrier is utilized, the success rate of automatic meter reading of the electric energy meter can be effectively improved, the high-frequency acquisition of voltage and current data of the electric energy meter can be realized, and curve data acquired by high frequency can be used for carrying out aging trend analysis of a power supply line and monitoring the voltage quality and load fluctuation condition of a power grid.
In a broadband carrier area, in order to facilitate power supply quality related index analysis, an electric power acquisition terminal generally needs to acquire 96-point voltage, current, power factor and other information every day. The electric power acquisition terminal generally preferentially reads the daily frozen data, and after the daily frozen data is read, the curve data is read. In the time period of reading the frozen data of the day, the curve data can not be acquired by the power acquisition terminal, and further the curve data is missed.
Disclosure of Invention
The invention aims to provide a data supplementary reading method and device and a power acquisition terminal, which can ensure that the power acquisition terminal can completely read daily frozen data and curve data.
Embodiments of the invention may be implemented as follows:
in a first aspect, an embodiment of the present invention provides a data complementary reading method, which is applied to an electric power acquisition terminal, where the electric power acquisition terminal is electrically connected to a plurality of electric meters, and the method includes: sequentially reading the daily freezing data of each electric meter, and acquiring the first time consumed for reading the daily freezing data of the plurality of electric meters; calculating the total number of the missed reading curve data needing to be subjected to additional reading according to the first time and a preset curve data reading period; and performing complementary copying on the missing read curve data until the number of the missing read curve data subjected to complementary copying is larger than the total number.
Therefore, through the additional copying of the data of the missed-reading curve, the copying of the data of the daily freezing curve is ensured to meet the examination of a client, the data of the missed-reading curve which is missed in reading due to the reading of the data of the daily freezing curve can be additionally copied, the missed-reading of the data of the curve can be effectively avoided, and the complete copying of the data of the daily freezing curve and the data of the curve of the power acquisition terminal can be ensured.
In an optional embodiment, the step of performing additional copying on the missing-read curve data until the number of the missing-read curve data subjected to additional copying is greater than the total number includes: after the reading of the conventional curve data is completed in each curve data reading period, calculating the target number of the missing read curve data which can be copied in the remaining idle time of each curve data reading period; and sequentially copying the target number of missed-reading curve data in the remaining idle time of each curve data reading period according to the sequence of the distance copying time from short to long until the sum of the number of the missed-reading curve data copied in at least one curve data reading period is greater than the total number.
Therefore, the missed-reading curve data of the target number is sequentially copied in the remaining idle time of each curve data reading period according to the sequence from short to long distance copying time, so that the missed-reading curve data are copied in stages, complete copying of daily frozen data and conventional curve data is guaranteed, the missed-reading curve data can be copied in the remaining idle time, and the missed-reading of the curve data is avoided.
In an optional embodiment, before the step of calculating a target number of missed-read curve data that can be copied in a remaining idle time of each curve data reading period, the method further includes: acquiring second time consumed for reading the conventional curve data in each curve data reading period; and calculating the remaining idle time of each curve data reading period according to the curve data reading period and the second time.
In an optional embodiment, the step of calculating a target number of missing-read curve data that can be copied in a remaining idle time of each curve data reading cycle includes: and calculating the target number according to the remaining idle time, the time consumed for reading the curve data which is not read, the number of the electric meters and the type number of the curve data of each electric meter.
In an optional implementation manner, before the step of performing the complementary copying on the skip-read curve data, the method further includes: sending a reading request to each ammeter; and if a negative confirmation message returned by the ammeter based on the reading request is received, the reading missing curve data of the ammeter is not subjected to complementary reading.
Therefore, the ammeter which feeds back the negative acknowledgement message does not carry out the additional reading of the missed reading curve data, namely, the unsupported ammeter is pulled into a blacklist, the remaining idle time can be effectively utilized, and the reading efficiency is improved.
In a second aspect, an embodiment of the present invention provides a data complementary reading device, which is applied to an electric power acquisition terminal, where the electric power acquisition terminal is electrically connected to a plurality of electric meters, and the device includes: the reading module is used for sequentially reading the daily freezing data of each electric meter and acquiring the first time consumed by reading the daily freezing data of the plurality of electric meters; the calculation module is used for calculating the total number of the missed reading curve data needing to be subjected to additional reading according to the first time and a preset curve data reading period; and the reading supplementing module is used for performing reading supplementing on the missing read curve data until the number of the missing read curve data subjected to reading supplementing is larger than the total number.
In an optional embodiment, the make-up module includes: the calculation unit is used for calculating the target number of the missing-reading curve data which can be copied in the remaining idle time of each curve data reading period after the reading of the conventional curve data is completed in each curve data reading period; and the complementary copying unit is used for sequentially copying the target number of the missed-reading curve data within the residual idle time of each curve data reading period according to the sequence of the distance complementary copying time from short to long until the sum of the numbers of the missed-reading curve data copied within at least one curve data reading period is greater than the total number.
In an optional embodiment, the reading module is further configured to obtain a second time consumed for reading the regular curve data in each curve data reading cycle; and the calculating module is further used for calculating the remaining idle time of each curve data reading period according to the curve data reading period and the second time.
In an optional embodiment, the calculating unit is configured to calculate the target number according to the remaining idle time, the time consumed for reading one piece of missing curve data, the number of the electric meters, and the type number of the curve data of each electric meter.
In a third aspect, an embodiment of the present invention provides an electric power collection terminal, which includes a memory storing a computer program and a processor, where the computer program is read by the processor and executed to implement the data complementary copying method according to any one of the foregoing embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic diagram of an application environment of a power acquisition terminal according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an electric power acquisition terminal according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a data complementary copying method according to an embodiment of the present invention;
FIG. 4 is a schematic view of a sub-flow of step S103 shown in FIG. 3;
fig. 5 is another schematic flow chart of a data complementary copying method according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of a data complementary copying device according to an embodiment of the present invention;
fig. 7 is a schematic block diagram of a complementary copying module of the data complementary copying device according to the embodiment of the present invention;
fig. 8 is another block diagram of a data complementary copying device according to an embodiment of the present invention.
Icon: 100-a power acquisition terminal; 110-a memory; 120-a processor; 130-a communication module; 140-a data complementary copying device; 141-a reading module; 142-a calculation module; 143-a complementary copying module; 1431-a computing unit; 1432-a complementary copying unit; 144-a sending module; 145-a receiving module; 200-electric meter.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. indicate an orientation or a positional relationship based on that shown in the drawings or that the product of the present invention is used as it is, this is only for convenience of description and simplification of the description, and it does not indicate or imply that the device or the element referred to must have a specific orientation, be constructed in a specific orientation, and be operated, and thus should not be construed as limiting the present invention.
Furthermore, the appearances of the terms "first," "second," and the like, if any, are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
It should be noted that the features of the embodiments of the present invention may be combined with each other without conflict.
Referring to fig. 1, a schematic diagram of an applicable environment of an electric
Referring to fig. 2, which is a schematic structural diagram of the
The memory 110 is used for storing programs or data. The Memory 110 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an erasable Read-Only Memory (EPROM), an electrically erasable Read-Only Memory (EEPROM), and the like.
The processor 120 is used to read/write data or programs stored in the memory 110 and perform corresponding functions. For example, when the computer program stored in the memory 110 is executed by the processor 120, the data complementary copying method disclosed by the embodiment of the invention can be realized.
The communication module 130 is configured to establish a communication connection between the
It should be understood that the structure shown in fig. 2 is only a schematic diagram of the structure of the
Fig. 3 is a schematic flow chart of a data complementary copying method according to an embodiment of the present invention. It should be noted that, the data complementary copying method provided in the embodiment of the present invention is not limited by fig. 3 and the following specific sequence, and it should be understood that, in other embodiments, the sequence of some steps in the data complementary copying method provided in the embodiment of the present invention may be interchanged according to actual needs, or some steps in the data complementary copying method may also be omitted or deleted. The data supplementary reading method can be applied to the
And S101, sequentially reading the daily freezing data of each electric meter, and acquiring the first time consumed by reading the daily freezing data of the plurality of electric meters.
In this embodiment, if the number of the
And S102, calculating the total number of the missed reading curve data needing to be subjected to complementary copying according to the first time and a preset curve data reading period.
In this embodiment, the skip-reading curve data is the curve data that is skip-read when the
It can be understood that if the number of the
And step S103, performing complementary copying on the missing read curve data until the number of the copied missing read curve data is larger than the total number.
In this embodiment, the
Referring to fig. 4, a flow chart of the sub-steps of step S103 is shown, and step S103 includes the following sub-steps:
and a substep S1031, after the reading of the conventional curve data is completed in each curve data reading period, calculating the target number of the missed reading curve data which can be subjected to the additional reading in the remaining idle time of each curve data reading period.
In this embodiment, the regular curve data may be understood as curve data that the
In this embodiment, the
It can be understood that the
In this embodiment, before calculating the target number, the
It can be understood that, after the second time is obtained, the
And a substep S1032 of sequentially copying the target number of the missed-reading curve data in the remaining idle time of each curve data reading period according to the sequence from short to long distance copying time until the sum of the number of the copied missed-reading curve data in at least one curve data reading period is larger than the total number.
In this embodiment, after the
It can be understood that if the reading cycle of the missed-reading curve data is 15 minutes, the
Referring to fig. 5, on the basis of the data complementary copying method shown in fig. 3, before step S103, the method further includes the following steps:
and step S104, sending a reading request to each electric meter.
In this embodiment, before the step of performing the reading compensation on the missed-reading curve data, the
And step S105, if a negative message returned by the ammeter based on the reading request is received, not performing complementary reading on the missed reading curve data of the ammeter.
In this embodiment, after receiving the reading request, if the
In order to perform the corresponding steps in the above embodiments and various possible manners, an implementation manner of the data
The
It is understood that the
The calculating
It is understood that the calculating
The
It is understood that the
Further, in the present embodiment, as shown in fig. 7, the
The calculating
It is understood that the calculating
The
It is understood that the
Further, as shown in fig. 8, the data make-up device further includes a sending
The sending
It is understood that the sending
The receiving
It is understood that the receiving
Alternatively, the
In summary, the embodiment of the present invention provides a data supplementary reading method and apparatus, and an electric power acquisition terminal, where the electric power acquisition terminal sequentially reads the daily frozen data of each electric meter, and obtains the first time consumed for reading the daily frozen data of a plurality of electric meters; calculating the total number of missed reading curve data needing to be subjected to additional reading according to the first time and a preset curve data reading period; and performing complementary copying on the read-missing curve data until the number of the read-missing curve data subjected to complementary copying is larger than the total number. By additionally copying the data of the missed-reading curve, the copying of the data of the daily freezing curve is ensured to meet the examination of a client, the data of the missed-reading curve which is missed in reading due to the reading of the data of the daily freezing curve can be additionally copied, the missing copying of the data of the curve can be effectively avoided, and the complete copying of the data of the daily freezing curve and the data of the curve of the power acquisition terminal can be ensured.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:一种基于关键路口的路况预警方法及装置