CN116977119A - Voltage qualification rate statistical method and device, power terminal and storage medium - Google Patents

Voltage qualification rate statistical method and device, power terminal and storage medium Download PDF

Info

Publication number
CN116977119A
CN116977119A CN202310944507.1A CN202310944507A CN116977119A CN 116977119 A CN116977119 A CN 116977119A CN 202310944507 A CN202310944507 A CN 202310944507A CN 116977119 A CN116977119 A CN 116977119A
Authority
CN
China
Prior art keywords
voltage
time
qualification rate
preset
voltage monitoring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310944507.1A
Other languages
Chinese (zh)
Inventor
陈节
苟孟生
邹连明
夏阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningbo Sanxing Medical and Electric Co Ltd
Original Assignee
Ningbo Sanxing Medical and Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ningbo Sanxing Medical and Electric Co Ltd filed Critical Ningbo Sanxing Medical and Electric Co Ltd
Priority to CN202310944507.1A priority Critical patent/CN116977119A/en
Publication of CN116977119A publication Critical patent/CN116977119A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R35/00Testing or calibrating of apparatus covered by the other groups of this subclass
    • G01R35/04Testing or calibrating of apparatus covered by the other groups of this subclass of instruments for measuring time integral of power or current
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/10Pre-processing; Data cleansing
    • G06F18/15Statistical pre-processing, e.g. techniques for normalisation or restoring missing data

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Probability & Statistics with Applications (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Human Resources & Organizations (AREA)
  • General Business, Economics & Management (AREA)
  • Water Supply & Treatment (AREA)
  • Public Health (AREA)
  • Marketing (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a voltage qualification rate statistical method, a device, an electric power terminal and a storage medium, and relates to the technical field of power distribution and utilization. The method comprises the following steps: reading statistical voltage qualification rate data of the target voltage, wherein the statistical voltage qualification rate data comprises a voltage qualification rate and a voltage monitoring duration for calculating the voltage qualification rate; under the condition that the target voltage is in a preset examination range and the current statistical time is not the preset starting time, determining an updating mode of the voltage monitoring duration according to whether the difference value between the current statistical time and the last statistical time is in a preset interval or not; updating the voltage monitoring duration according to an updating mode; and calculating the voltage qualification rate of the target voltage from the preset starting time to the current statistical time by using the updated voltage monitoring time, and avoiding that the voltage monitoring time is directly increased by a set value when the time interval between the two statistics is not up to the set value due to abnormal conditions, thereby improving the accuracy of the voltage qualification rate calculated based on the voltage monitoring time.

Description

Voltage qualification rate statistical method and device, power terminal and storage medium
Technical Field
The application relates to the technical field of power distribution and utilization, in particular to a voltage qualification rate statistical method, a device, an electric power terminal and a storage medium.
Background
The voltage qualification rate is the statistical data of the voltage of the ammeter or the power terminal, and is generally counted once per minute, that is, the interval between the two statistics is 1 minute, and the voltage is required to be performed when the voltage is within the upper limit of voltage qualification and the lower limit of voltage qualification.
The parameter usually used for counting the voltage qualification rate is voltage monitoring time, and in each counting, if the voltage is within the upper limit of voltage qualification and the lower limit of voltage qualification, the voltage monitoring time length is increased by 1 minute, and when the power terminal is suddenly powered off and other abnormal conditions, the time interval between the two counting times does not reach 1 minute, and the voltage monitoring time length is still increased by 1 minute, so that the accuracy of the voltage qualification rate calculated based on the voltage monitoring time length is lower.
Disclosure of Invention
In order to improve accuracy of the counted voltage qualification rate, the application provides a voltage qualification rate counting method, a device, a power terminal and a storage medium.
The technical scheme of the application can be realized as follows:
in a first aspect, the present application provides a voltage qualification rate statistical method, applied to a power terminal, the method comprising:
reading statistical voltage qualification rate data of a target voltage, wherein the statistical voltage qualification rate data comprises a voltage qualification rate and a voltage monitoring duration for calculating the voltage qualification rate;
under the condition that the target voltage is in a preset examination range and the current statistical time is not the preset starting time, determining an updating mode of the voltage monitoring duration according to whether the difference value between the current statistical time and the last statistical time is in a preset interval or not;
updating the voltage monitoring duration according to the updating mode;
and calculating the voltage qualification rate of the target voltage from the preset starting time to the current statistical time by using the updated voltage monitoring time.
Optionally, the step of determining the update mode of the voltage monitoring duration according to whether the difference between the current statistical time and the last statistical time is within a preset interval includes:
if the difference between the current statistical time and the last statistical time is within the preset interval, the updating mode of the voltage monitoring duration is that a fixed value is increased.
Optionally, the step of determining the update mode of the voltage monitoring duration according to whether the difference between the current statistical time and the last statistical time is within a preset interval further includes:
if the difference value between the current statistical time and the last statistical time is not in the preset interval, judging whether a time setting event occurs in the preset time period or not;
if yes, the updating mode of the voltage monitoring duration is that a non-fixed value is increased;
if not, the updating mode of the voltage monitoring duration is that the fixed value is increased.
Optionally, the step of updating the voltage monitoring duration according to the updating mode includes:
if the updating mode is that the fixed value is increased, the voltage monitoring time length is increased according to a preset value;
if the updating mode is that the non-fixed value is increased, the voltage monitoring time length is increased according to the difference value between the current statistical time and the last statistical time.
Optionally, before the step of calculating the voltage qualification rate of the target voltage from the preset starting time to the current statistical time by using the updated voltage monitoring duration, the method further includes:
if the updated voltage monitoring time length is larger than the difference value between the current statistical time and the preset starting time, resetting the updated voltage monitoring time length to be the difference value between the current statistical time and the preset starting time.
Optionally, the counted voltage qualification rate data further includes a voltage upper limit time period and a voltage lower limit time period, and before the updated voltage monitoring time period is utilized to calculate the voltage qualification rate of the target voltage from a preset starting time to a current counting time, the method further includes:
if the difference value between the current statistical time and the last statistical time is within the preset interval, the voltage upper limit time length and the voltage lower limit time length are both increased according to preset values.
Optionally, the voltage monitoring duration and the voltage qualification rate satisfy the following formula:
wherein P is the voltage qualification rate; t (T) 1 Monitoring the duration for the voltage; t (T) 2 The upper limit of the voltage is longer; t (T) 3 For a duration of time that the voltage is lower.
In a second aspect, the present application provides a voltage qualification rate statistics apparatus, applied to a power terminal, the apparatus comprising:
the device comprises a reading module, a counting module and a judging module, wherein the reading module is used for reading the counted voltage qualification rate data of the target voltage, and the counted voltage qualification rate data comprises a voltage qualification rate and a voltage monitoring duration for calculating the voltage qualification rate;
the determining module is used for determining an updating mode of the voltage monitoring duration according to whether the difference value between the current statistical time and the last statistical time is in a preset interval or not under the condition that the target voltage is in a preset checking range and the current statistical time is not a preset starting time;
the processing module is used for updating the voltage monitoring duration according to the updating mode; and calculating the voltage qualification rate of the target voltage from the preset starting time to the current statistical time by using the updated voltage monitoring time.
In a third aspect, the present application provides a power terminal comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, implements the voltage yield statistical method of the first aspect described above.
In a fourth aspect, the present application provides a computer readable storage medium storing a computer program which when executed by a processor implements the voltage yield statistics method of the first aspect described above.
Compared with the prior art, the voltage qualification rate statistical method provided by the application has the advantages that the statistical voltage qualification rate data of the target voltage, which comprises the voltage qualification rate and the voltage monitoring time length for calculating the voltage qualification rate, is read; under the condition that the target voltage is in a preset examination range and the current statistical time is not the preset starting time, determining an updating mode of the voltage monitoring duration according to whether the difference value between the current statistical time and the last statistical time is in a preset interval or not; updating the voltage monitoring duration according to an updating mode; and calculating the voltage qualification rate of the target voltage from the preset starting time to the current statistical time by using the updated voltage monitoring time. According to the application, whether the difference value between the current statistical time and the last statistical time is in the preset interval or not is used for determining the updating mode of the voltage monitoring time length, so that the voltage monitoring time length is directly increased by the set value when the time interval between the two statistics is not up to the set value due to sudden power failure of the power terminal and other abnormal conditions, and the accuracy of the voltage qualification rate calculated based on the voltage monitoring time length is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a voltage qualification rate statistics method according to an embodiment of the present application;
FIG. 2 is a second flow chart of a voltage qualification rate statistics method according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a method for counting voltage qualification rate according to an embodiment of the present application;
FIG. 4 is a functional block diagram of a voltage qualification rate statistics device according to an embodiment of the present application;
fig. 5 is a block diagram of a structural unit of an electronic terminal according to an embodiment of the present application.
Icon: 100-voltage qualification rate statistics device; 101-a reading module; 102-determining a module; 103-a processing module; 200-a power terminal; 210-memory; 220-processor.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. The components of the embodiments of the present application 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 application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
Furthermore, the terms "first," "second," and the like, if any, are used merely for distinguishing between descriptions and not for indicating or implying a relative importance.
It should be noted that the features of the embodiments of the present application may be combined with each other without conflict.
The voltage qualification rate is the statistical data of the ammeter or the power terminal to the voltage. For electricity meters, tables 645 and 698 are both statistics that support voltage yield.
In the Data Identifier (DI) in table 645, 0x03100000 to 0x0310030C are DI related to the voltage yield. For example, 0x03100100 is the current month a phase voltage qualification rate statistical data, and the statistical data include: the method comprises the steps of monitoring the A-phase voltage, passing the A-phase voltage percent of pass, passing the A-phase voltage percent of limit, passing the A-phase voltage to the upper limit, passing the A-phase voltage to the lower limit, and passing the A-phase voltage to the upper limit, and passing the A-phase voltage to the lower limit.
In the object identifier (abbreviated as OI) in the 698 table, 0x2131 to 0x2133 are OI related to the voltage yield. For example, 0x21310200 (specific attribute 2 of object identifier, which is called object attribute descriptor, abbreviated as OAD), is the voltage qualification rate of phase a of the month, and the statistical data of the voltage qualification rate of the month include the voltage qualification rate of the current day and the voltage qualification rate of the current month, which are specifically defined in the following table:
the parameters of the voltage qualification rate are defined in 0x40300200, and are specifically defined in the following table:
the voltage qualification rate needs to be counted according to the voltage qualification rate parameter, and is usually counted once per minute, namely, the time interval between two times of counting is 1 minute. In general, the voltage exceeds the upper limit of voltage check or the lower limit of voltage check is not required to be counted, and the voltage is required to be counted within the upper limit of voltage qualification and the lower limit of voltage qualification.
When the voltage is within the upper limit of the voltage qualification and the lower limit of the voltage qualification, namely the voltage is effective, the voltage monitoring time of the day and the month is increased by 1 minute, the voltage exceeding the upper limit of the voltage is meant to exceed the upper limit of the voltage qualification but not exceed the upper limit of the voltage qualification, and the voltage exceeding the lower limit of the voltage is meant to be lower than the lower limit of the voltage qualification but higher than the lower limit of the voltage qualification. Voltage out-of-limit ratio = voltage out-of-limit duration/voltage monitoring duration, voltage qualification ratio equals = 100% -voltage out-of-limit ratio.
The power terminal clears the voltage qualification rate of the current day at the point 0, and clears the voltage qualification rate of the current month at the point 0 of the 1 day of the beginning of the month. When the time of the power terminal changes, it is generally time-aligned in the future, for example, time-aligned to 23 minutes at the current day. The terminal needs to increment the voltage monitoring duration, the increment value is the time difference between the last statistical time and the current time, and the voltage in the time range is regarded as qualified.
The defects of the prior art are as follows:
(1) The power terminal changes the time after being powered on again due to sudden power failure, and the voltage monitoring time is increased by the power failure time, and the voltage qualification rate obtained based on the voltage monitoring time is higher than the actual result because the power terminal has no voltage.
(2) The power terminal increases the voltage monitoring duration, whether the last statistical time and the current statistical time are just 1 minute apart or not can be judged, if the last statistical time and the current statistical time are not equal to 1 minute, the power terminal can judge that the power terminal has time setting operation, the current day voltage monitoring duration can be increased by 1 minute, and the voltage monitoring thread often has an error within 3 seconds, so that the power terminal can erroneously judge that the power terminal has time setting operation.
(3) The power terminal is generally three-phase voltage, and when a certain phase is not electrified, there are cases that the voltage is not available on the same day but the actual voltage monitoring time is not 0.
(4) After the power terminal performs time setting operation, the voltage monitoring time of the A/B/C three-phase voltage can change in a jumping manner, and whether the three-phase voltage is electrified is not considered.
(5) Since the voltage qualification rate is equal to 100% -the voltage out-of-limit rate, if the voltage out-of-limit period is 0, the voltage monitoring period is also 0, meaning that the voltage qualification rate is equal to 100%, it is not practical.
In order to overcome the influence of the statistical accuracy of the voltage qualification rate caused by the above situation, the embodiment of the application provides a statistical method of the voltage qualification rate, which will be described in detail below.
Referring to fig. 1, the voltage qualification rate statistical method includes steps S101 to S104.
S101, reading the counted voltage qualification rate data of the target voltage.
The counted voltage qualification rate data comprises a voltage qualification rate and a voltage monitoring duration for calculating the voltage qualification rate.
The target voltage may be an a-phase voltage, a B-phase voltage, or a C-phase voltage of the a/B/C three-phase voltages.
In the embodiment of the application, 3 voltage qualification rate statistics threads (the execution frequency is 1 minute) are started, each thread is the same section of program which is executed, the parameters received by the section of program are sequence numbers of voltages, and 0, 1 and 2 respectively represent A-phase voltage, B-phase voltage and C-phase voltage.
And entering any phase voltage monitoring thread, if the voltage sequence number of the phase voltage is in the effective range (namely 0-2), judging whether the phase voltage is effective, namely whether the phase voltage is in the upper limit of voltage qualification and the lower limit of voltage qualification, taking the phase voltage as a target voltage under the condition that the phase voltage is effective, and reading the counted voltage qualification rate data of the phase voltage.
It can be appreciated that the counted voltage qualification rate data includes a time range corresponding to the voltage qualification rate from the preset start time to the last counted time.
Since the voltage qualification rate includes the current day voltage qualification rate and the current month voltage qualification rate, the preset starting time is 0 point on the current day for the current day voltage qualification rate, and is 0 point on the current month 1 for the current month voltage qualification rate.
It should be noted that when the current statistical time is 0 time-sharing of 0 point on the same day, the current voltage qualification rate needs to be cleared, and when the current statistical time is 0 time-sharing of 0 point on the same day 1 month, the current voltage qualification rate needs to be cleared.
S102, determining an updating mode of the voltage monitoring duration according to whether the difference value between the current statistical time and the last statistical time is in a preset interval or not under the condition that the target voltage is in a preset checking range and the current statistical time is not the preset starting time.
The preset assessment range is determined by a lower voltage assessment limit and an upper voltage assessment limit, wherein the lower voltage assessment limit is lower than a lower voltage qualification limit, and the upper voltage assessment limit is higher than the upper voltage qualification limit.
The target voltage being within the preset checking range means that the target voltage is not lower than the lower limit of the voltage checking and not higher than the upper limit of the voltage checking.
In a possible implementation, the preset interval is [57 seconds, 63 seconds ], and the updating mode of the voltage monitoring duration can be determined according to whether the difference between the current statistical time and the last statistical time is within 57 seconds to 63 seconds. Therefore, the error in 3 seconds caused by the voltage monitoring thread can be avoided, and when the time interval between the two statistics of the power terminal is not 1 minute, the power terminal can directly judge that the power terminal has time-setting operation, and the voltage monitoring time length is increased by 1 minute.
Alternatively, step S102 may include substeps S102-1 through S102-4.
S102-1, if the difference between the current statistical time and the last statistical time is within the preset interval, the updating mode of the voltage monitoring duration is that a fixed value is increased.
S102-2, if the difference value between the current statistical time and the last statistical time is not in the preset interval, judging whether a time setting event occurs in the preset time period.
Wherein, if the time setting event occurs, step S102-3 is performed, and if the time setting event does not occur, step S102-4 is performed.
S102-3, the updating mode of the voltage monitoring duration is that a non-fixed value is increased.
S102-4, the updating mode of the voltage monitoring duration is that a fixed value is increased.
In a possible implementation, the preset interval is [57 seconds, 63 seconds ], and the preset period is 90 seconds nearest to the current statistical time.
There are two cases in which the update manner of the voltage monitoring duration is increased by a fixed value, namely, "the difference between the current statistical time and the last statistical time is within [57 seconds, 63 seconds ], and" the difference between the current statistical time and the last statistical time is not within [57 seconds, 63 seconds ], respectively, and a time-setting event occurs at the power terminal within 90 seconds nearest to the current statistical time.
There is a case where the voltage monitoring period is updated in such a manner that the non-fixed value is increased, that is, "the difference between the current statistical time and the last statistical time is not within [57 seconds, 63 seconds ], and no time-lapse event occurs in the power terminal within 90 seconds nearest to the current statistical time".
And S103, updating the voltage monitoring duration according to an updating mode.
Alternatively, step S103 may include substeps S103-1 through S103-2.
S103-1, if the updating mode is that the fixed value is increased, the voltage monitoring time length is increased according to the preset value.
In a possible implementation, the preset value may be 1 minute, i.e. both the current day voltage monitoring period and the current month voltage monitoring period are increased by 1 minute.
And S103-2, if the updating mode is that the non-fixed value is increased, the voltage monitoring time length is increased according to the difference value between the current statistical time and the last statistical time.
It can be understood that the current statistical time and the last statistical time are both the current daily voltage monitoring time and the current monthly voltage monitoring time.
Referring to fig. 2, before step S104, the voltage qualification rate statistical method further includes step S105.
S105, if the updated voltage monitoring time length is greater than the difference value between the current statistical time and the preset starting time, resetting the updated voltage monitoring time length to be the difference value between the current statistical time and the preset starting time.
In a possible implementation, the preset starting time is 0 point on the current day for the current day voltage qualification rate, and is 0 point on the current month 1 day for the current month voltage qualification rate.
And if the updated current day voltage qualification rate is larger than the difference value between the current statistical time and the current day 0 point, resetting the updated current day voltage qualification rate as the difference value between the current statistical time and the current day 0 point.
And if the updated current month voltage qualification rate is larger than the difference value between the current statistical time and 0 point of 1 day of the month, resetting the updated current month voltage qualification rate as the difference value between the current statistical time and 0 point of 1 day of the month.
The updated voltage monitoring time length is compared with the difference value between the current statistical time and the preset starting time, so that the influence of the change of the time of the power terminal after the power terminal is powered on again due to sudden power failure on the voltage monitoring time length is avoided.
The counted voltage qualification rate data also comprises a voltage upper time period and a voltage lower time period, and the voltage upper time period and the voltage lower time period are also used for calculating the voltage qualification rate, so that the voltage upper time period and the voltage lower time period also need to be updated.
In contrast, referring to fig. 3, before executing step S104, the voltage qualification rate statistical method further includes step S106 in parallel with step S103.
And S106, if the difference value between the current statistical time and the last statistical time is within a preset interval, the voltage upper limit duration and the voltage lower limit duration are both increased according to preset values.
In a possible implementation, the preset interval is [57 seconds, 63 seconds ], the preset value is 1 minute, and if the difference between the current statistical time and the last statistical time is within [57 seconds, 63 seconds ], the voltage is increased by 1 minute for both the upper limit duration and the lower limit duration.
It can be understood that only when the difference between the current statistical time and the last statistical time is within the preset interval, the voltage is increased by the time length of the upper limit and the time length of the lower limit, and the voltage is kept unchanged by the time length of the upper limit and the time length of the lower limit in other cases.
S104, calculating the voltage qualification rate of the target voltage from the preset starting time to the current statistical time by using the updated voltage monitoring time.
The voltage monitoring duration, the voltage upper limit duration, the voltage lower limit duration and the voltage qualification rate meet the following formulas:
wherein P is the voltage qualification rate; t (T) 1 For a voltage monitoring period; t (T) 2 The upper limit of the voltage is longer; t (T) 3 For a duration of time that the voltage is lower.
Under the condition that the updated voltage monitoring time length is not zero, substituting the updated voltage monitoring time length, the voltage upper limit time length and the voltage lower limit time length (possibly updated) into the formula, and calculating the voltage qualification rate of the target voltage from the preset starting time to the current statistical time.
Similarly, the voltage threshold out-of-limit ratio P The calculation formula of (2) is as follows:
it should be noted that, if the updated voltage monitoring duration is zero, the calculation of the voltage qualification rate is not performed, and the current statistical time is stored, so as to determine the updating mode of the voltage monitoring duration in the next statistical time.
In order to perform the above method embodiments and corresponding steps in each possible implementation, an implementation of the voltage qualification rate statistics apparatus 100 is given below.
Referring to fig. 4, the voltage qualification rate statistics apparatus 100 includes a reading module 101, a determining module 102, and a processing module 103.
The reading module 101 is configured to read statistical voltage qualification rate data of the target voltage, where the statistical voltage qualification rate data includes a voltage qualification rate and a voltage monitoring duration for calculating the voltage qualification rate.
The determining module 102 is configured to determine, when the target voltage is within a preset check range and the current statistical time is not a preset starting time, an update mode of the voltage monitoring duration according to whether a difference between the current statistical time and a last statistical time is within a preset interval.
A processing module 103, configured to update the voltage monitoring duration in an update manner; and calculating the voltage qualification rate of the target voltage from the preset starting time to the current statistical time by using the updated voltage monitoring time.
Optionally, the determining module 102 is specifically configured to increase the update mode of the voltage monitoring duration to a fixed value if the difference between the current statistical time and the last statistical time is within a preset interval.
Optionally, the determining module 102 is further specifically configured to determine whether a time setting event occurs in the preset period if the difference between the current statistical time and the last statistical time is not within the preset interval; if yes, the updating mode of the voltage monitoring duration is that a non-fixed value is increased; if not, the updating mode of the voltage monitoring duration is that the fixed value is increased.
Optionally, the processing module 103 is specifically configured to increase the voltage monitoring duration according to a preset value if the update mode is that the fixed value is increased; if the updating mode is that the non-fixed value is increased, the voltage monitoring time length is increased according to the difference value between the current statistical time and the last statistical time.
Optionally, the processing module 103 is further configured to reset the updated voltage monitoring duration to be the difference between the current statistical time and the preset starting time if the updated voltage monitoring duration is greater than the difference between the current statistical time and the preset starting time.
Optionally, the processing module 103 is further configured to increase the voltage duration beyond the upper limit and the voltage duration beyond the lower limit according to the preset values if the difference between the current statistical time and the last statistical time is within the preset interval.
Optionally, the processing module 103 is configured to calculate a voltage qualification rate of the target voltage from the preset starting time to the current statistical time by using the updated voltage monitoring durationWhen the voltage monitoring duration and the voltage qualification rate meet the following formulas:wherein P is the voltage qualification rate; t (T) 1 For a voltage monitoring period; t (T) 2 The upper limit of the voltage is longer; t (T) 3 For a duration of time that the voltage is lower.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the above-described voltage qualification rate statistics apparatus 100 may refer to the corresponding process in the foregoing method embodiment, and will not be described herein again.
Further, referring to fig. 5, the power terminal 200 may include a memory 210 and a processor 220.
The processor 220 may be a general-purpose central processing unit (Central Processing Unit, CPU), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the voltage qualification rate statistics method provided by the above method embodiment.
The MEMory 210 may be, but is not limited to, ROM or other type of static storage device that can store static information and instructions, RAM or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable Read-Only MEMory (EEPROM), compact Read-Only MEMory (CD-ROM) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 210 may be stand alone and be coupled to the processor 220 via a communication bus. Memory 210 may also be integrated with processor 220. Wherein the memory 210 is used to store machine-executable instructions for performing aspects of the present application. Processor 220 is operative to execute machine executable instructions stored in memory 210 to implement the method embodiments described above.
The embodiment of the application also provides a computer readable storage medium containing a computer program, which when executed can be used for executing the related operations in the voltage qualification rate statistical method provided by the method embodiment.
The present application is not limited to the above embodiments, and any changes or substitutions that can be easily understood by those skilled in the art within the technical scope of the present application are intended to be included in the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (10)

1. A voltage qualification rate statistical method, characterized in that it is applied to a power terminal, the method comprising:
reading statistical voltage qualification rate data of a target voltage, wherein the statistical voltage qualification rate data comprises a voltage qualification rate and a voltage monitoring duration for calculating the voltage qualification rate;
under the condition that the target voltage is in a preset examination range and the current statistical time is not the preset starting time, determining an updating mode of the voltage monitoring duration according to whether the difference value between the current statistical time and the last statistical time is in a preset interval or not;
updating the voltage monitoring duration according to the updating mode;
and calculating the voltage qualification rate of the target voltage from the preset starting time to the current statistical time by using the updated voltage monitoring time.
2. The method of claim 1, wherein the step of determining the update mode of the voltage monitoring duration according to whether the difference between the current statistical time and the last statistical time is within a preset interval comprises:
if the difference between the current statistical time and the last statistical time is within the preset interval, the updating mode of the voltage monitoring duration is that a fixed value is increased.
3. The method of claim 2, wherein the step of determining the update mode of the voltage monitoring duration according to whether the difference between the current statistical time and the last statistical time is within a preset interval further comprises:
if the difference value between the current statistical time and the last statistical time is not in the preset interval, judging whether a time setting event occurs in the preset time period or not;
if yes, the updating mode of the voltage monitoring duration is that a non-fixed value is increased;
if not, the updating mode of the voltage monitoring duration is that the fixed value is increased.
4. The method of claim 1, wherein the step of updating the voltage monitoring duration in the update manner comprises:
if the updating mode is that the fixed value is increased, the voltage monitoring time length is increased according to a preset value;
if the updating mode is that the non-fixed value is increased, the voltage monitoring time length is increased according to the difference value between the current statistical time and the last statistical time.
5. The method of claim 1, wherein prior to said calculating a voltage qualification rate for said target voltage from a preset start time to a current statistical time using said updated voltage monitoring duration, said method further comprises:
if the updated voltage monitoring time length is larger than the difference value between the current statistical time and the preset starting time, resetting the updated voltage monitoring time length to be the difference value between the current statistical time and the preset starting time.
6. The method of claim 1, wherein the counted voltage yield data further includes an upper voltage limit time period and a lower voltage limit time period, and wherein prior to the calculating the voltage yield of the target voltage from the preset start time to the current counted time using the updated voltage monitoring time period, the method further comprises:
if the difference value between the current statistical time and the last statistical time is within the preset interval, the voltage upper limit time length and the voltage lower limit time length are both increased according to preset values.
7. The method of claim 1, wherein the voltage monitoring duration and the voltage yield satisfy the following formula:
wherein P is the voltage qualification rate; t (T) 1 Monitoring the duration for the voltage; t (T) 2 The upper limit of the voltage is longer; t (T) 3 For a duration of time that the voltage is lower.
8. A voltage qualification rate statistics apparatus, characterized in that it is applied to a power terminal, the apparatus comprising:
the device comprises a reading module, a counting module and a judging module, wherein the reading module is used for reading the counted voltage qualification rate data of the target voltage, and the counted voltage qualification rate data comprises a voltage qualification rate and a voltage monitoring duration for calculating the voltage qualification rate;
the determining module is used for determining an updating mode of the voltage monitoring duration according to whether the difference value between the current statistical time and the last statistical time is in a preset interval or not under the condition that the target voltage is in a preset checking range and the current statistical time is not a preset starting time;
the processing module is used for updating the voltage monitoring duration according to the updating mode; and calculating the voltage qualification rate of the target voltage from the preset starting time to the current statistical time by using the updated voltage monitoring time.
9. A power terminal comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, implements the voltage yield statistical method of any one of claims 1 to 7.
10. A computer readable storage medium, characterized in that it stores a computer program, which when executed by a processor implements the voltage yield statistics method according to any of claims 1-7.
CN202310944507.1A 2023-07-28 2023-07-28 Voltage qualification rate statistical method and device, power terminal and storage medium Pending CN116977119A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310944507.1A CN116977119A (en) 2023-07-28 2023-07-28 Voltage qualification rate statistical method and device, power terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310944507.1A CN116977119A (en) 2023-07-28 2023-07-28 Voltage qualification rate statistical method and device, power terminal and storage medium

Publications (1)

Publication Number Publication Date
CN116977119A true CN116977119A (en) 2023-10-31

Family

ID=88470923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310944507.1A Pending CN116977119A (en) 2023-07-28 2023-07-28 Voltage qualification rate statistical method and device, power terminal and storage medium

Country Status (1)

Country Link
CN (1) CN116977119A (en)

Similar Documents

Publication Publication Date Title
CN109347653B (en) Index abnormity discovery method and device
KR20190071812A (en) Failure Risk Indicator Estimator and Failure Risk Indicator Estimation Method
JP2008090682A (en) Apparatus and method for providing module trouble information
CN116977119A (en) Voltage qualification rate statistical method and device, power terminal and storage medium
CN115598530A (en) Method and device for evaluating no-load characteristic of generator, electronic equipment and storage medium
CN109375145A (en) No-voltage fault monitoring method and device based on phase three-wire three meter equipment
CN115257461A (en) Method and device for determining remaining driving range
CN114355212A (en) Battery self-discharge detection method and device, computer equipment and storage medium
CN113036716B (en) Generator winding fault protection method and device
CN110740190B (en) Event reporting method, power terminal and computer readable storage medium
JP2023509602A (en) CAST IRON PRODUCTION SAFETY MONITORING METHOD, APPARATUS AND SERVER
CN112327235A (en) Current transformer fault detection method and device, electronic equipment and storage medium
CN108870677B (en) Current detection method and device of control box and computer readable storage medium
CN113189534B (en) Electric energy meter error detection method, readable storage medium and electronic device
CN116990578B (en) Direct current detection method and system based on intelligent power
CN112798899A (en) Method, device, terminal and storage medium for checking line loss abnormity influence factors
CN111016730B (en) Battery charging detection method and device and terminal equipment
CN114726098A (en) Voltage sag analysis system and method
CN115221670A (en) Engine oil life calculation method and computer-readable storage medium
CN114755623A (en) Electric energy meter zero clearing method and device, electric energy meter and computer readable storage medium
CN116184144A (en) Heat dissipation element aging diagnosis method, heat dissipation element aging diagnosis device, computer equipment and storage medium
JP2020181514A (en) Component information monitoring program and component information monitoring system
CN114816938A (en) Server aging program monitoring method, device, terminal and storage medium
CN112287298A (en) Method and device for acquiring reliability grade of voltage monitoring device
CN116861280A (en) Transformer fault diagnosis method, system, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination