Power-off and power-on event judgment method, power acquisition terminal and power utilization acquisition system
By implementing a power-on event judgment method based on an auxiliary device in the processing unit of the power acquisition terminal, the problem of misjudgment of power-on event judgment by the power-on event in the prior art is solved, the judgment efficiency and accuracy are improved, and the reliability and service life of the terminal are enhanced.
Patent Information
- Application Number
- CN202411831212.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-03-25
AI Technical Summary
Existing power acquisition terminals are prone to misjudgment when judging power outage events, resulting in problems of stopping and no recovery, which reduces the performance and reliability of power acquisition terminals.
By implementing a power-on event judging method in the processing unit of the power acquisition terminal, the power-on event is employed, and the power-on statistical information in the auxiliary device is used, combined with the recent write event, it is determined whether the preset power-on constraint condition is met, thereby determining the power-on event and updating the relevant statistical information and event records.
It effectively avoids misjudgment caused by data center recording errors, improves the efficiency and accuracy of the power acquisition terminal when judging power outage events, and enhances the operating efficiency, reliability and service life of the terminal.
Smart Images

Figure CN119696170A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electric power monitoring, and in particular to a method for determining a power outage event, an electric power collection terminal, and an electric power consumption collection system. Background Art
[0002] In recent years, external power grids have placed increasingly higher demands on the reliability and accuracy of power systems, and have placed particular emphasis on whether there are abnormal power outages in power distribution areas.
[0003] At present, we mainly rely on the power outage events reported by various power collection terminals and the power-on time to comprehensively judge whether there is an abnormal power outage in the power-using station area, so as to respond and repair the power-using station area with abnormal power outage in time and ensure the reliability and accuracy of the power system.
[0004] The reporting method of the power collection terminal mainly depends on the data interaction between the power collection master station and the data center in the power collection terminal. However, if there is actually a power outage event at the power collection terminal, but the data center does not record the power outage event, this may easily lead to the power collection terminal misjudging the power outage event, which in turn causes the power collection terminal to generate a problem of power outage without recovery, reducing the performance and reliability of the power collection terminal. Summary of the invention
[0005] In view of this, the purpose of this application is to provide a power outage event judgment method, a power collection terminal and a power consumption collection system. It can solve the problem of misjudgment of power outage events by power collection terminals in the prior art, and further solve the problem of power collection terminals generating outages without recovery, thereby improving the performance and reliability of power collection terminals.
[0006] In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0007] In a first aspect, an embodiment of the present application provides a method for determining a power failure event, which is applied to a processing unit of a power collection terminal, and the method includes:
[0008] Reading pre-stored first power-off statistical information and first power-on statistical information from an auxiliary device integrated in the power collection terminal;
[0009] Determine whether the first power-off statistical information and the first power-on statistical information meet a preset power-off constraint condition;
[0010] If the preset power-off constraint condition is met, reading the most recently written event from the data center of the power collection terminal;
[0011] Determine whether the most recently written event is a power outage event or a power-on event; wherein the power outage event and the power-on event are respectively used to indicate whether a preset station area to which the power supply unit of the power collection terminal is connected exists;
[0012] If the most recently written event is a power outage event, determining whether the voltage state of the power supply voltage of the power supply unit of the power collection terminal satisfies a preset power-on condition or a preset power outage condition;
[0013] If the voltage state satisfies the preset power-on condition, updating the power-on statistical information in the auxiliary device and generating a new power-on event;
[0014] The new power-on event is written to the data center.
[0015] Optionally, the first power-off statistical information includes: the number of power-offs and the most recent power-off time, and the first power-on statistical information includes: the number of power-on times and the most recent power-on time;
[0016] The determining whether the first power-off statistical information and the first power-on statistical information meet a preset power-off constraint condition includes:
[0017] Determine whether the number of power outages is greater than the number of power-on times, and whether the most recent power outage time is later than the most recent power-on time;
[0018] If the number of power outages is greater than the number of power-on times, and the most recent power outage time is later than the most recent power-on time, it is determined that the preset power outage and power-on constraint condition is satisfied.
[0019] Optionally, the method further comprises:
[0020] If the most recently written event is not a power outage event, updating the power outage statistics in the auxiliary device and generating a new first power outage event;
[0021] The new first power outage event is written into the data center.
[0022] Optionally, updating the power outage statistics in the auxiliary device includes:
[0023] Perform a power outage record filling operation based on the recent historical power outage records cached in advance;
[0024] According to the filled power outage record, the number of power outages and the most recent power outage time in the power outage statistical information are updated, and the updated power outage statistical information is written into the auxiliary device.
[0025] Optionally, the updating the power-on statistical information in the auxiliary device includes:
[0026] The power-on times and the most recent power-on time in the power-on statistical information are updated, and the updated power-on statistical information is written into the auxiliary device.
[0027] Optionally, before reading the pre-stored first power-off statistical information and the first power-on statistical information from the auxiliary device integrated in the power collection terminal, the method further includes:
[0028] Read the last write time of the preset cache;
[0029] Determining the startup duration of the power collection terminal according to the most recent write time and the real time;
[0030] If the most recently written event is a power-on event, updating the power outage statistics in the auxiliary device and generating a new first power outage event, comprises:
[0031] If the most recently written event is a power-on event, and the startup duration is greater than a preset duration threshold, the power outage statistical information in the auxiliary device is updated, and the new first power outage event is generated.
[0032] Optionally, before determining whether the power supply voltage connected to the power supply unit of the power collection terminal meets a preset power-on condition, the method further includes:
[0033] The real time is written into the preset buffer.
[0034] Optionally, the method further comprises:
[0035] If the voltage state satisfies the preset power outage condition, updating the power outage statistical information in the auxiliary device and generating a new second power outage event;
[0036] The new second power outage event is written to the data center.
[0037] In a second aspect, an embodiment of the present application provides a power collection terminal, comprising: a processing unit, a data center, an auxiliary device, and a power supply unit; the input end of the power supply unit is used to connect the power supply line of the preset station area, and the output end of the power supply unit is electrically connected to the processing unit, the data center, and the auxiliary device;
[0038] Wherein, the processing unit is connected to the auxiliary device to perform a read operation or a write operation on the power-off statistical information and the power-on statistical information stored in the auxiliary device;
[0039] The processing unit is also connected to the data center to perform a read or write operation on the data center for a power outage event, or to perform a read or write operation on the data center for a power-on event; the processing unit is used to execute any of the methods described in the first aspect above.
[0040] In a third aspect, an embodiment of the present application provides a power collection system, comprising: at least one power collection terminal and a power collection master station as described in the second aspect above;
[0041] At least one of the power collection terminals is communicatively connected to the power collection master station.
[0042] Compared with the prior art, the power outage event judgment method, power collection terminal and power consumption collection system provided in the embodiments of the present application have the following beneficial effects:
[0043] The embodiment of the present application provides a power outage event judgment method, a power collection terminal and a power consumption collection system, which relate to the technical field of power monitoring. A processing unit applied to an electric power collection terminal, the method comprising: reading pre-stored first power outage statistical information and first power-on statistical information from an auxiliary device integrated in the electric power collection terminal is an important operation, which is of great significance for the monitoring, analysis and improvement of the electric power collection system, and then determining whether the first power outage statistical information and the first power-on statistical information meet the preset power-off and power-on constraint conditions; if the preset power-off and power-on constraint conditions are met, reading the most recent write event from the data center of the electric power collection terminal; and then determining whether the most recent write event is a power outage event or a power-on event; wherein the power outage event and the power-on event are respectively used to indicate whether the preset substation area connected to the power supply unit of the electric power collection terminal exists, which can reflect the power supply capacity and stability of the preset substation area; if the most recent write event is a power outage event, determining whether the voltage state of the power supply voltage of the power supply unit of the electric power collection terminal meets the preset power-on condition or the preset power outage condition; if the voltage state meets the preset power-on condition, updating the power-on statistical information in the auxiliary device and generating a new power-on event; finally, writing the new power-on event into the data center. Therefore, the present application can judge the power-on / off event based on the statistics of the first power-off statistical information and the first power-on statistical information in the auxiliary device, as well as the information of the most recently written event in the auxiliary device. The data center is no longer involved in the judgment logic of the power-on / off event. In this way, the power-off / off event is judged at the power collection terminal, and it no longer depends on the data interaction between the data center and the power collection terminal. It can avoid the data center recording errors caused by emergencies, which leads to misjudgment of the power collection terminal, and avoids the problem of power collection terminals having power outages but no recovery. It improves the efficiency of the power collection terminal in judging power-off / off events, thereby increasing the overall operating efficiency of the power collection terminal, and improving the service life, reliability, practicality and performance of the power collection terminal. In addition, the power collection terminal can intuitively and effectively monitor the power supply situation of the preset substation in real time when judging the power-off / off event. When a power outage occurs in the preset substation, the power collection terminal can mark the power outage range, efficiently help the power supply unit provide fault point information, troubleshoot the fault, restore power supply, and improve the experience of power users. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0045] Figure 1 A schematic diagram of the structure of a power consumption collection system provided in an embodiment of the present application;
[0046] Figure 2 A schematic diagram of the structure of a controller of a power collection terminal provided in an embodiment of the present application;
[0047] Figure 3 A schematic diagram of a power failure event determination method provided in an embodiment of the present application Figure 1 ;
[0048] Figure 4 A schematic diagram of a power failure event determination method provided in an embodiment of the present application Figure 2 ;
[0049] Figure 5 A schematic diagram of a power failure event determination method provided in an embodiment of the present application Figure 3 ;
[0050] Figure 6 A schematic diagram of a power failure event determination method provided in an embodiment of the present application Figure 4 ;
[0051] Figure 7 A schematic diagram of a power failure event determination method provided in an embodiment of the present application Figure 5 ;
[0052] Figure 8 A schematic diagram of a power failure event determination method provided in an embodiment of the present application Figure 6 ;
[0053] Fig. 9 A schematic diagram of a power failure event determination method provided in an embodiment of the present application Figure 7 ;
[0054] Fig.10 A schematic diagram of the structure of a power outage event judgment device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0056] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0057] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0058] In order to clearly describe a power outage event judgment method, a power collection terminal and a power consumption collection system provided in an embodiment of the present application, the power consumption collection system is first described in detail with reference to the accompanying drawings. Figure 1 This is a schematic diagram of the structure of a power consumption collection system provided in an embodiment of the present application. Figure 1 As shown, the power collection system 200 may include: at least one power collection terminal 100 and a power collection master station 210 .
[0059] Among them, at least one power collection terminal 100 is connected to the power collection master station 210 for communication, and is used to send the power data or collection data or monitoring data of each power collection terminal 100 to the power collection master station 210, and the power collection master station 210 supervises each power collection terminal 100. Among them, the communication connection mode can be selected according to the actual situation, for example, the communication connection mode can select a wired connection.
[0060] The electricity consumption collection system provided in the embodiment of the present application can be composed of an electricity collection terminal and an electricity collection main station; at least one electricity collection terminal is communicatively connected to the power collection main station to ensure that electricity data or collection data or monitoring data can be transmitted from the power collection terminal to the power collection main station in real time and accurately, thereby ensuring real-time transmission and management of electricity data.
[0061] Furthermore, in order to clearly describe the power collection system 200 provided in the above embodiment, the present application also provides a structural schematic diagram of a power collection terminal 100. Figure 2 This is a schematic diagram of the structure of a controller of a power collection terminal provided in an embodiment of the present application. Figure 2 As shown, the power collection terminal 100 may include: a processing unit 110 , a data center 120 , an auxiliary device 130 and a power supply unit 140 .
[0062] The input end of the power supply unit 140 is used to connect the power supply line of the preset area, and the power supply unit 140 in the power collection terminal 100 is supplied with AC power through the power supply line of the preset area, so that the power collection terminal 100 can work normally; wherein the preset area can be selected according to actual conditions. The output end of the power supply unit 140 is electrically connected to the processing unit 110, the data center 120 and the auxiliary device 130, and is used to supply DC power to the processing unit 110, the data center 120 and the auxiliary device 130, so that the processing unit 110, the data center 120 and the auxiliary device 130 can work normally.
[0063] Among them, the processing unit 110 is connected to the auxiliary device 130 to perform read operations or write operations on the power outage statistical information and power-on statistical information stored in the auxiliary device 130; the processing unit 110 is also connected to the data center 120 to read or write power outage events on the data center 120, or read or write power-on events on the data center 120; the processing unit 110 is used to execute a power outage and power-on event judgment method.
[0064] The processing unit 110 is used to execute a power-off event determination method.
[0065] The data center 120 is used for data storage and response during data inspection.
[0066] The auxiliary device 130 is used to count the number of power outages and power-on times of the power collection terminal 100, the time of the most recent power outage, and the time of the most recent power-on.
[0067] It should be noted that the auxiliary device can be based on the size of the INT type of the power consumption collection system based on a preset number of bits (such as 32 bits). The auxiliary device can count at most 2,147,483,647 power outages and 2,147,483,647 power-ons, which can greatly increase the service life of the auxiliary device. In addition, it should be noted that the above specific embodiment of counting the number of power outages and power-ons of the auxiliary device is only for explanation and cannot be understood as a limitation of this application.
[0068] The power supply unit 140 may include: a power supply battery and a backup battery, wherein the power supply battery is used to power on the power collection terminal; the backup battery may include: a backup battery and a super capacitor. When the power collection terminal is powered on, the power supply battery charges the backup battery, and when the power supply battery is disconnected, the backup battery and the super capacitor in the backup battery are used together to power the power collection terminal. In addition, it should be noted that the power supply current of the power supply battery is the AC power of the preset area; the power supply current of the backup battery is the DC power stored in itself, for example, the backup battery can select a DC power supply with a voltage of 5.3V; the super capacitor can select a capacitor with a normal power supply voltage of 4.7V.
[0069] The examples of the power supply voltage of the backup battery in the above embodiments are only for explanation and should not be construed as limitations on the present application.
[0070] The power collection terminal provided in the embodiment of the present application may be composed of a processing unit, a data center, an auxiliary device and a power supply unit; the input end of the power supply unit is used to connect the power supply line of the preset area, and the output end of the power supply unit is electrically connected to the processing unit, the data center and the auxiliary device, and is used to supply power to the processing unit, the data center and the auxiliary device; wherein the processing unit is connected to the auxiliary device to perform read operations or write operations on power outage statistical information and power-on statistical information stored in the auxiliary device; the processing unit is also connected to the data center to read or write power outage events to the data center, or read or write power-on events to the data center, that is, the processing unit interacts with the auxiliary device and the data center to achieve comprehensive monitoring and management of power outage statistical information, power-on statistical information and related events, thereby improving the reliability and stability of the power collection terminal.
[0071] The power-off event judgment method provided in the above-mentioned embodiment of the present application is explained and illustrated in detail below in conjunction with the accompanying drawings. Figure 3 A schematic diagram of a power failure event determination method provided in an embodiment of the present application Figure 1 .like Figure 3 As shown, the method applied to a processing unit applied to a power collection terminal may include:
[0072] S301. Read pre-stored first power-off statistical information and first power-on statistical information from an auxiliary device integrated in a power collection terminal.
[0073] In a possible implementation manner, pre-stored first power outage statistical information and first power-on statistical information are read from an auxiliary device integrated in the power collection terminal to perform data analysis based on the first power outage statistical information and the first power-on statistical information.
[0074] S302: Determine whether the first power-off statistical information and the first power-on statistical information meet preset power-off constraint conditions.
[0075] In one possible implementation, it is determined whether the first power-off statistical information and the first power-on statistical information meet the preset power-off constraint condition. If the preset power-off constraint condition is met, step S303 is performed; if the preset power-off constraint condition is met, it can be confirmed that the power collection terminal is in an abnormal state, and the abnormal state of the power collection terminal can be monitored subsequently.
[0076] S303: If the preset power-off constraint condition is met, the most recently written event is read from the data center of the power collection terminal.
[0077] In one possible implementation, since power-on events and power outage events occur in pairs, that is, a power-on event can only occur after a power outage, and a power outage event can only occur after a power-on event, if the power collection terminal meets the preset power-on and power-off constraints, it means that the power collection terminal has had a power outage before and there is a power outage event, then the most recently written event can be read from the data center of the power collection terminal.
[0078] S304: Determine whether the most recently written event is a power-off event or a power-on event.
[0079] Among them, the power-off event and the power-on event are respectively used to indicate whether the preset area connected to the power supply unit of the power collection terminal exists. The power-off event may include: the occurrence time of the power-off event, the occurrence source of the power-off event, and the attribute identification of the power-off event; the power-on event may include: the occurrence time of the power-on event, the end time of the power-on event, the occurrence source of the power-on event, and the attribute identification of the power-on event.
[0080] In one possible implementation, it is determined whether the most recently written event is a power outage event or a power-on event, so as to facilitate analysis, maintenance and troubleshooting of data collected under different events, thereby providing an analysis basis for the stable operation of the electricity collection system.
[0081] S305: If the most recently written event is a power outage event, determine whether the voltage state of the power supply voltage of the power supply unit of the power collection terminal satisfies a preset power-on condition or a preset power outage condition.
[0082] The preset power-on condition and the preset power-off condition can be selected according to the actual situation. For example, if the voltage of the power supply unit of the power collection terminal is lower than 60% of the nominal voltage, the preset power-off condition is met; if the voltage of the power supply unit of the power collection terminal is higher than 80% of the nominal voltage, the preset power-on condition is met. The nominal voltage is used to represent the ideal operating voltage set by the power collection terminal at the factory.
[0083] In one possible implementation, if the most recently written event is a power outage event, it is determined whether the voltage state of the power supply voltage of the power supply unit of the power collection terminal meets the preset power-on condition or the preset power outage condition. If the voltage state meets the preset power-on condition, step S306 is executed.
[0084] It should be noted that since the most recent write event is a power outage event, and power outage events and power-on events appear in pairs, if the most recent write event is a power outage event, a power-on event will inevitably occur subsequently. Therefore, when determining whether the voltage state of the power supply voltage of the power supply unit of the power collection terminal meets the preset power-on condition or the preset power outage condition, focus on whether the voltage state of the power supply voltage of the power supply unit of the power collection terminal meets the preset power-on condition.
[0085] S306: If the voltage state meets the preset power-on condition, the power-on statistical information in the auxiliary device is updated, and a new power-on event is generated.
[0086] In one possible implementation, if the voltage state satisfies the preset power-on condition (i.e., the supply voltage of the power supply unit is higher than 80% of the nominal voltage), the power-on statistical information in the auxiliary device is updated, that is, the number of power outages in the auxiliary device is increased by one, and the power-on time is recorded as the most recent power-on time, overwriting the previous power-on time in the auxiliary device; and because the voltage state satisfies the preset power-on condition, a new power-on event will be generated.
[0087] S307: Write the new power-on event into the data center.
[0088] In one possible implementation, the information contained in the new power-on event is written to the data center for storage. At the same time, the data center also uploads the stored new power-on event to the power collection master station, which monitors the power collection terminal in real time.
[0089] The embodiment of the present application proposes a method for judging power-on and power-off events, which is applied to a processing unit of a power collection terminal. The method includes: reading pre-stored first power-off statistical information and first power-on statistical information from an auxiliary device integrated in the power collection terminal is an important operation, which is of great significance for the monitoring, analysis and improvement of the power collection system, and then determining whether the first power-off statistical information and the first power-on statistical information meet the preset power-off and power-on constraint conditions; if the preset power-off and power-on constraint conditions are met, reading the most recent write event from the data center of the power collection terminal; and then determining whether the most recent write event is a power-off event or a power-on event; wherein the power-off event and the power-on event are respectively used to indicate whether the preset substation area to which the power supply unit of the power collection terminal is connected exists, which can reflect the power supply capacity of the preset substation area and the stability of the preset substation area; if the most recent write event is a power-off event, determining whether the voltage state of the power supply voltage of the power supply unit of the power collection terminal meets the preset power-on condition or the preset power-off condition; if the voltage state meets the preset power-on condition, updating the power-on statistical information in the auxiliary device and generating a new power-on event; finally, writing the new power-on event into the data center. Therefore, the present application can judge the power-on / off event based on the statistics of the first power-off statistical information and the first power-on statistical information in the auxiliary device, as well as the information of the most recently written event in the auxiliary device. The data center is no longer involved in the judgment logic of the power-on / off event. In this way, the power-off / off event is judged at the power collection terminal, and it no longer depends on the data interaction between the data center and the power collection terminal. It can avoid the data center recording errors caused by emergencies, which leads to misjudgment of the power collection terminal, and avoids the problem of power collection terminals having power outages but no recovery. It improves the efficiency of the power collection terminal in judging power-off / off events, thereby increasing the overall operating efficiency of the power collection terminal, and improving the service life, reliability, practicality and performance of the power collection terminal. In addition, the power collection terminal can intuitively and effectively monitor the power supply situation of the preset substation in real time when judging the power-off / off event. When a power outage occurs in the preset substation, the power collection terminal can mark the power outage range, efficiently help the power supply unit provide fault point information, troubleshoot the fault, restore power supply, and improve the experience of power users.
[0090] Optionally, in a possible implementation, the first power outage statistical information may include: the number of power outages and the most recent power outage time, wherein the number of power outages refers to the number of power outage events that occurred in a power collection terminal in a preset area within a certain period of time, which is used to reflect the stability and reliability of power supply; the most recent power outage time refers to the most recent power outage time of the power collection terminal. The first power-on statistical information may include: the number of power-on times and the most recent power-on time, wherein the number of power-on times refers to the number of power-on events that occurred in a power collection terminal in a preset area within a certain period of time, which is used to reflect the stability and reliability of power supply; the most recent power-on time refers to the most recent power-on time of the power collection terminal.
[0091] It should be noted that the above-mentioned power outage statistics are recorded while recording the current power-on time, and the number of power outages plus one is recorded; the above-mentioned power-on statistics are recorded while recording the current power outage time, and the number of power-on times plus one is recorded.
[0092] The power-off event judgment method provided in the above-mentioned embodiment of the present application is explained and illustrated in detail below in conjunction with the accompanying drawings. Figure 4 A schematic diagram of a power failure event determination method provided in an embodiment of the present application Figure 2 .like Figure 4 As shown, in the above method, determining whether the first power-off statistical information and the first power-on statistical information meet the preset power-off constraint condition may include:
[0093] S401, determining whether the number of power outages is greater than the number of power-on times, and whether the most recent power outage time is later than the most recent power-on time.
[0094] In a possible implementation, it is determined whether the number of power outages of the power collection terminal is greater than the number of power-on times, and whether the most recent power outage time is later than the most recent power-on time. If the number of power outages is greater than the number of power-on times, and the most recent power outage time is later than the most recent power-on time, step S402 is performed; if the number of power outages is less than or equal to the number of power-on times, and the most recent power outage time is earlier than the most recent power-on time, the processing unit in the power collection terminal does not operate.
[0095] It should be noted that if the number of power outages is equal to the number of power-on times, there are three possibilities. The first is that the power collection terminal is started for the first time, that is, the power collection terminal has not been run before; the second is that the power collection terminal is restarted in the power-on state due to a series of reasons. Among them, a series of reasons can be selected according to actual conditions. For example, the power collection master station sends an initialization instruction to the power collection terminal, causing the power collection terminal to restart when powered on. The third is that a power outage occurs when the backup battery and supercapacitor in the backup battery of the power collection terminal completely fail, resulting in the power collection terminal being immediately powered off after the power outage, and being unable to record the number of power outages and the most recent power outage time.
[0096] S402: If the number of power outages is greater than the number of power-on times, and the most recent power outage time is later than the most recent power-on time, it is determined that the preset power-on and power-off constraint conditions are met.
[0097] In one possible implementation, if the number of power outages is greater than the number of power-ons, and the most recent power outage time is later than the most recent power-on time, that is, under normal circumstances, when the power collection terminal is powered on, the number of power outages must be one more than the number of power-ons, and the most recent power outage timestamp is greater than the most recent power-on timestamp. If this condition is met, it proves that there must have been a power outage before, and it can be determined that the preset power-on constraint condition is met.
[0098] The method for judging power outage and power-on events provided in the embodiment of the present application comprises: first power outage statistical information consisting of the number of power outages and the most recent power outage time, and first power-on statistical information consisting of the number of power-ons and the most recent power-on time; determining whether the number of power outages is greater than the number of power-ons, and whether the most recent power outage time is later than the most recent power-on time; if the number of power outages is greater than the number of power-ons, and the most recent power outage time is later than the most recent power-on time, determining that a preset power outage and power-on constraint condition is satisfied, that is, the preset power outage and power-on constraint condition is that the number of power outages is greater than the number of power-ons, and the most recent power outage time is later than the most recent power-on time. In this way, a judgment basis is provided for subsequent judgment of power outage and power-on events.
[0099] The power-off event judgment method provided in the above-mentioned embodiment of the present application is explained and illustrated in detail below in conjunction with the accompanying drawings. Figure 5 A schematic diagram of a power failure event determination method provided in an embodiment of the present application Figure 3 .like Figure 5 As shown, the above power-off event judgment method may also include:
[0100] S501: If the most recently written event is not a power outage event, update the power outage statistical information in the auxiliary device and generate a new first power outage event.
[0101] S502: Write a new first power outage event into the data center.
[0102] In one possible embodiment, if the most recently written event is not a power outage event, that is, the most recently written event is a power-on event, then the power outage record can be supplemented according to the most recent power outage time in the auxiliary device, and then based on the power outage record, a new first power outage event is generated, and then the new first power outage event is stored in the data center and reported to the power collection master station.
[0103] It should be noted that if the most recent write event is a power-on event, there are two possibilities. The first is that the backup battery is under-voltage, that is, the power supply time of the backup battery is less than the preset power supply time, resulting in the data center failing to record data in time; wherein, the preset power supply time can be selected according to actual conditions, for example, the preset power supply time can be selected as 30S. The second is that the backup battery of the power collection terminal is not under-voltage, and the power collection terminal is initialized by the power collection master station after a power outage, resulting in the data center failing to record data in time. Therefore, it is necessary to update the power outage statistics in the auxiliary device and generate a new first power outage event.
[0104] The power outage event judgment method provided in the embodiment of the present application updates the power outage statistical information in the auxiliary device and generates a new first power outage event if the most recently written event is not a power outage event; the new first power outage event is written to the data center and reported to the power collection main station to ensure that the power outage events of the data center appear in pairs, and then when the backup battery of the power collection terminal fails or is undervoltage, the data center fails to record data in time, which can avoid the power collection terminal from making misjudgments when judging power outage events, thereby improving the reliability and stability of the power collection terminal.
[0105] The power-off event judgment method provided in the above-mentioned embodiment of the present application is explained and illustrated in detail below in conjunction with the accompanying drawings. Figure 6 A schematic diagram of a power failure event determination method provided in an embodiment of the present application Figure 4 .like Figure 6 As shown, in the above method, updating the power outage statistics in the auxiliary device may include:
[0106] S601. Perform a power outage record filling operation according to the pre-cached recent historical power outage records.
[0107] In one possible implementation, a recent historical power outage record is generated based on the most recent power outage time in the auxiliary device, and then a power outage record filling operation is performed based on the pre-cached recent historical power outage record.
[0108] S602. Update the number of power outages and the most recent power outage time in the power outage statistics information according to the filled power outage record, and write the updated power outage statistics information into the auxiliary device.
[0109] In one possible implementation, the number of power outages and the most recent power outage time in the power outage statistics in the auxiliary device are updated based on the filled power outage record, that is, the number of power outages in the auxiliary device is increased by one, and the most recent power outage time is updated to the power outage time in the filled power outage record.
[0110] The power outage event judgment method provided in the embodiment of the present application performs a power outage record filling operation based on the recent historical power outage records that are pre-cached; then, based on the filled power outage records, the power outage number and the most recent power outage time in the power outage statistical information are updated, and the updated power outage statistical information is written into the auxiliary device to update the data of the auxiliary device, thereby providing a basis for the power collection terminal to judge power outage events.
[0111] Optionally, in a possible implementation embodiment, updating the power-on statistical information in the auxiliary device in the above method may include:
[0112] The power-on times and the most recent power-on time in the power-on statistics are updated, and the updated power-on statistics are written into the auxiliary device.
[0113] In one possible implementation, if the preset power-on / off constraint conditions are met and the most recent event written to the data center is a power-off event, the number of power-on times and the most recent power-on time in the power-on statistics of the auxiliary device are updated, and the updated power-on statistics are written to the auxiliary device.
[0114] The power outage event judgment method provided in the embodiment of the present application, when the preset power outage constraint conditions are met and the most recent event written by the data center is a power outage event, updates the power-on times and the most recent power-on time in the power-on statistical information, and writes the updated power-on statistical information into the auxiliary device, can improve the data accuracy of the power collection terminal, thereby providing a basis for the power collection terminal to judge power outage events.
[0115] The power-off event judgment method provided in the above-mentioned embodiment of the present application is explained and illustrated in detail below in conjunction with the accompanying drawings. Figure 7 A schematic diagram of a power failure event determination method provided in an embodiment of the present application Figure 5 .like Figure 7 As shown, before reading the pre-stored first power outage statistical information and the first power-on statistical information from the auxiliary device integrated in the power collection terminal in the above method, the method may also include:
[0116] S701: Read the most recent write time of the preset cache.
[0117] S702: Determine the startup duration of the power collection terminal according to the most recent writing time and the real time.
[0118] The preset cache may be selected according to actual conditions. For example, the preset cache may be selected as the memory E2.
[0119] In a possible implementation, if the power collection terminal is started for the first time, the time of the most recently written power-off event in the preset cache (such as memory E2) is first read, and then the difference between the most recently written time and the real-time time is used to determine the startup duration of the power collection terminal. That is, the startup duration of the power collection terminal is equal to the real-time time minus the most recently written time.
[0120] In a possible implementation embodiment, in the above method, if the most recently written event is a power-on event, updating the power outage statistics in the auxiliary device and generating a new first power outage event may include:
[0121] If the most recently written event is a power-on event, and the startup duration is greater than a preset duration threshold, the power outage statistical information in the auxiliary device is updated, and a new first power outage event is generated.
[0122] The preset duration threshold may be selected according to actual conditions. For example, the preset duration threshold may be selected as 180S.
[0123] In one possible implementation, if the most recently written event is a power-on event, and the startup duration is greater than a preset duration threshold (such as 180S), it means that a power outage event must have occurred before power-on, because the restart duration caused by various initialization operations must be less than the preset duration threshold (such as 180S). At this time, it is necessary to add the power outage record based on the most recent power outage time in the power outage statistics in the auxiliary device, and then generate a new first power outage event based on the power outage record, and then store the new first power outage event in the data center and report it to the power collection master station.
[0124] The power outage event judgment method provided in the embodiment of the present application reads the most recent write time of the preset cache; then determines the startup duration of the power collection terminal based on the most recent write time and the real-time time; if the most recent write event is a power-on event, and the startup duration is greater than the preset duration threshold, the power outage statistical information in the auxiliary device is updated, and a new first power outage event is generated, the new first power outage event is stored in the data center, and reported to the power collection main station to avoid misjudgment of the power collection terminal when judging the power outage event, thereby improving the reliability and stability of the power collection terminal.
[0125] Optionally, in a possible implementation embodiment, before determining in the above method whether the power supply voltage connected to the power supply unit of the power collection terminal meets the preset power-on condition, the method may further include:
[0126] Writes the real time to the preset buffer.
[0127] In one possible embodiment, if the power collection terminal is not started for the first time, the real time is directly written into the preset cache (such as memory E2) of the power collection terminal, and then the voltage state of the power supply voltage of the power supply unit of the power collection terminal is checked to see whether the voltage state of the power supply voltage meets the preset power-on condition or the preset power-off condition, and then the corresponding condition logic is executed.
[0128] The power outage and power-on event judgment method provided in the embodiment of the present application writes the real-time time into the preset cache before determining whether the power supply voltage connected to the power supply unit of the power collection terminal meets the preset power-on condition, so that when the subsequent preset power-on condition or the preset power outage condition is executed, the most recent power outage time or the most recent power-on time is recorded based on the real-time time, thereby providing an accurate time basis for the subsequent judgment of the power collection terminal when judging the power outage and power-on event.
[0129] The power-off event judgment method provided in the above-mentioned embodiment of the present application is explained and illustrated in detail below in conjunction with the accompanying drawings. Figure 8A schematic diagram of a power failure event determination method provided in an embodiment of the present application Figure 6 .like Figure 8 As shown, the above power-off event judgment method may also include:
[0130] S801. If the voltage state meets the preset power outage condition, the power outage statistical information in the auxiliary device is updated, and a new second power outage event is generated.
[0131] In one possible embodiment, if the voltage state meets the preset power outage condition (i.e., the supply voltage of the power supply unit is lower than 60% of the nominal voltage), the power outage statistics in the auxiliary device are updated, that is, the number of power-on times in the auxiliary device is increased by one, and the power outage time is recorded as the most recent power outage time, covering the previous power outage time in the auxiliary device; and because the voltage state meets the preset power outage condition, a new power outage event will be generated.
[0132] S802: Write a new second power outage event into the data center.
[0133] In a possible implementation, the information contained in the new power outage event is written into the data center for storage. At the same time, the data center also uploads the stored new power outage event to the power collection master station, which monitors the power collection terminal in real time.
[0134] The power outage event judgment method provided in the embodiment of the present application updates the power outage statistical information in the auxiliary device and generates a new second power outage event if the voltage state meets the preset power outage conditions; the new second power outage event is written to the data center, and at the same time, the data center also uploads the stored new power outage event to the power collection main station, and the power collection main station monitors the power collection terminal in real time to improve the reliability and stability of the power collection terminal.
[0135] To facilitate understanding of the above-mentioned power-off event judgment method, the embodiment of the present application further provides an example of a process of the power-off event judgment method, which is further described in conjunction with the accompanying drawings as follows: Fig. 9 A schematic diagram of a power failure event determination method provided in an embodiment of the present application Figure 7 .like Fig. 9 As shown, the schematic diagram provided by the embodiment of the present application Figure 7 This may include:
[0136] S901. Determine whether the power collection terminal is started for the first time.
[0137] Specifically, it is determined whether the power collection terminal is started for the first time. If so, step S902 is executed; if not, step S905 is executed.
[0138] S902: If yes, read the most recent write time from the preset cache of the power collection terminal.
[0139] Specifically, the time of the most recently written power-off / on event in the preset cache (such as the memory E2) is read.
[0140] S903: Determine whether the startup duration of the power collection terminal is greater than a preset duration threshold according to the most recent write time and the real time.
[0141] Specifically, according to the difference between the most recent write time and the real-time time, the startup duration of the power collection terminal is equal to the real-time time minus the most recent write time. Then, it is determined whether the startup duration of the power collection terminal is greater than the preset duration threshold (such as 180S). If so, step S904 is executed; if the startup duration is less than the preset duration threshold (such as 180S), it means that an abnormal power outage event must have occurred before power-on, for example, the power collection terminal is initialized by the power collection master station, or the backup battery of the power collection terminal fails or is undervoltage, resulting in the data center not recording the power outage event.
[0142] S904: If the startup duration is greater than the preset duration threshold, the power outage statistics in the auxiliary device are updated, a new first power outage event is generated, and the new first power outage event is written into the data center.
[0143] Specifically, if the startup duration is greater than the preset duration threshold (such as 180S), it means that a power outage event must occur before power-on, because the restart duration caused by various initialization operations must be less than the preset duration threshold (such as 180S). At this time, it is necessary to add the power outage record based on the most recent power outage time in the power outage statistics in the auxiliary device, and then generate a new first power outage event based on the power outage record. Then, the new first power outage event is stored in the data center and reported to the power collection master station.
[0144] It should be noted that the preset power outage and power-on constraint conditions are that the number of power outages is greater than the number of power-on times, and the most recent power outage time is later than the most recent power-on time. When the preset power outage and power-on constraint conditions are met, the previous event record of the data center can be read to see if it is a power outage event. If not, it is necessary to add the power outage record based on the most recent power outage time in the power outage statistics in the auxiliary device to generate a new first power outage event, and then store the new first power outage event in the data center and report it to the power collection master station.
[0145] S905: If not, write the real time into the preset cache.
[0146] Specifically, if the power collection terminal is not started for the first time, the real time is directly written into the preset cache (such as memory E2) of the power collection terminal, and then the voltage state of the power supply voltage of the power supply unit of the power collection terminal is checked to see whether the voltage state of the power supply voltage meets the preset power-on condition or the preset power-off condition, and then the corresponding condition logic is executed.
[0147] S906: Determine whether the current operating condition is a preset power-on condition or a preset power-off condition according to the voltage state of the power supply voltage of the power supply unit of the power collection terminal.
[0148] Specifically, according to the voltage state of the power supply voltage of the power supply unit of the power collection terminal, it is determined whether the current operating condition is a preset power-on condition or a preset power-off condition. If the current operating condition is a preset power-on condition, step S907 is executed; if the current operating condition is a preset power-off condition, step S908 is executed.
[0149] S907: If the current operating condition is a preset power-on condition, the power-on statistical information in the auxiliary device is updated, a new power-on event is generated, and the new power-on event is written into the data center.
[0150] Specifically, if the voltage state meets the preset power-on condition (i.e., the power supply voltage of the power supply unit is higher than 80% of the nominal voltage), the power-on statistical information in the auxiliary device is updated, that is, the number of power outages in the auxiliary device is increased by one, and the power-on time is recorded as the most recent power-on time, covering the previous power-on time in the auxiliary device; and because the voltage state meets the preset power-on condition, a new power-on event will be generated. The information contained in the new power-on event is written to the data center for storage. At the same time, the data center also uploads the stored new power-on event to the power collection master station, and the power collection master station monitors the power collection terminal in real time.
[0151] S908. If the current operating condition is a preset power outage condition, the power outage statistics in the auxiliary device are updated, a new power outage event is generated, and the new power outage event is written into the data center.
[0152] Specifically, if the voltage state meets the preset power outage condition (i.e., the power supply voltage of the power supply unit is lower than 60% of the nominal voltage), the power outage statistics in the auxiliary device are updated, that is, the number of power-on times in the auxiliary device is increased by one, and the power outage time is recorded as the most recent power outage time, covering the previous power outage time in the auxiliary device; and because the voltage state meets the preset power outage condition, a new power outage event will be generated. The information contained in the new power outage event is written to the data center for storage. At the same time, the data center also uploads the stored new power outage event to the power collection master station, and the power collection master station monitors the power collection terminal in real time.
[0153] S909: When the most recently written event is a power outage event, it is determined again whether the voltage state of the power supply voltage of the power supply unit of the power collection terminal meets the preset power-on condition.
[0154] Specifically, if yes, step S910 is executed; if no, it means that the preset substation where the power collection terminal is located has a fault and needs to be inspected and repaired.
[0155] S910: If the voltage state of the power supply voltage of the power supply unit of the power collection terminal meets the preset power-on condition, read the power-off statistical information and the power-on statistical information in the auxiliary device.
[0156] Specifically, if the voltage state of the power supply voltage of the power supply unit of the power collection terminal meets the preset power-on condition, the power outage statistical information and power-on statistical information in the auxiliary device are read, and the number of power outages in the auxiliary device must be greater than the number of power-ons, and the most recent power outage time is later than the most recent power-on time, to prove that there must have been a power outage before power-on, that is, the preset power-on constraint conditions are met.
[0157] S911. Determine whether the last event record of the data center is a power outage event.
[0158] Specifically, the last event record of the data center is read, and it is determined whether the last event record of the data center is a power outage event. If not, step S913 is executed; if so, step S912 is executed.
[0159] S912: If the last event record of the data center is a power outage event, determine that the power collection terminal is in a normal power outage.
[0160] Specifically, if the last event record of the data center is a power outage event, it means that the number of power outages must be exactly one more than the number of power-ons, and the timestamp of the most recent power outage is greater than the timestamp of the most recent power-on. If this condition is met, it proves that there must have been a power outage before, and it is determined that the power collection terminal is a normal power outage.
[0161] S913: If the last event record of the data center is a power-on event, update the power outage statistics in the auxiliary device, generate a new first power outage event, and write the new first power outage event into the data center.
[0162] Specifically, if the last event record of the data center is a power-on event, it means that there are two possibilities. The first is that the backup battery is under-voltage, that is, the power supply time of the backup battery is less than the preset power supply time, resulting in the data center failing to record data in time; wherein, the preset power supply time can be selected according to actual conditions, for example, the preset power supply time can be selected as 30S. The second is that the backup battery of the power collection terminal is not under-voltage, and the power collection terminal is initialized by the power collection master station after the power outage, resulting in the data center failing to record data in time. Therefore, it is necessary to update the power outage statistical information in the auxiliary device, and generate a new first power outage event, and then store the new first power outage event in the data center and report it to the power collection master station.
[0163] The power-off event judgment method provided in the embodiment of the present application determines whether the power collection terminal is started for the first time. If so, the most recent write time is read from the preset cache of the power collection terminal, and whether the startup duration of the power collection terminal is greater than the preset duration threshold is determined based on the most recent write time and the real-time time; if the startup duration is greater than the preset duration threshold, the power-off statistical information in the auxiliary device is updated, and a new first power-off event is generated, and the new first power-off event is written into the data center; if not, the real-time time is written into the preset cache; according to the voltage state of the power supply voltage of the power supply unit of the power collection terminal, it is determined whether the current operating condition is the preset power-on condition or the preset power-off condition; if the current operating condition is the preset power-on condition, the power-on statistical information in the auxiliary device is updated, and a new power-on event is generated, and the new power-on event is written into the data center; if If the current operating condition is a preset power outage condition, the power outage statistical information in the auxiliary device is updated, and a new power outage event is generated, and the new power outage event is written to the data center; in the case where the most recently written event is a power outage event, it is determined again whether the voltage state of the power supply voltage of the power supply unit of the power collection terminal meets the preset power-on condition; if the voltage state of the power supply voltage of the power supply unit of the power collection terminal meets the preset power-on condition, the power outage statistical information and power-on statistical information in the auxiliary device are read; it is determined whether the last event record of the data center is a power outage event; if the last event record of the data center is a power outage event, it is determined that the power collection terminal is a normal power outage; if the last event record of the data center is a power-on event, the power outage statistical information in the auxiliary device is updated, and a new first power outage event is generated, and the new first power outage event is written to the data center. Therefore, the present application can judge the power-on / off events based on the statistics of the first power-off statistical information and the first power-on statistical information in the auxiliary device, as well as the information of the most recently written event in the auxiliary device. The data center is no longer involved in the judgment logic of the power-on / off events. In this way, the power-on / off events are judged at the power collection terminal, which no longer depends on the data interaction between the data center and the power collection terminal. This can avoid the data center recording errors caused by emergencies, which leads to misjudgment of the power collection terminal, and improves the efficiency of the power collection terminal in judging the power-on / off events, thereby increasing the overall operating efficiency of the power collection terminal, and improving the service life, reliability, practicality and performance of the power collection terminal. In addition, the power collection terminal can intuitively and effectively monitor the power supply situation of the preset substation in real time when judging the power-on / off events. When a power outage occurs in the preset substation, the power collection terminal can mark the power outage range, efficiently help the power supply unit provide fault point information, troubleshoot the fault, restore power supply, and improve the experience of power users.
[0164] Based on the same inventive concept, a Japanese standard electric vehicle charging and discharging stop and power-on event judgment device is also provided in the embodiment of the present application. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the above-mentioned power-off event judgment method in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0165] Fig.10 This is a schematic diagram of the structure of a power failure event judgment device provided in an embodiment of the present application. Fig.10 As shown, the processing unit applied to the power collection terminal, the power failure event judgment device 1000 may include:
[0166] The first reading module 1001 is used to read the pre-stored first power-off statistical information and the first power-on statistical information from the auxiliary device integrated in the power collection terminal;
[0167] A first determining module 1002 is used to determine whether the first power-off statistical information and the first power-on statistical information meet a preset power-off constraint condition;
[0168] The second reading module 1003 is used to read the most recently written event from the data center of the power collection terminal if the preset power-off constraint condition is met;
[0169] The second determination module 1004 is used to determine whether the most recently written event is a power outage event or a power-on event; wherein the power outage event and the power-on event are respectively used to indicate whether the preset station area connected to the power supply unit of the power collection terminal exists;
[0170] The third determination module 1005 is used to determine whether the voltage state of the power supply voltage of the power supply unit of the power collection terminal meets the preset power-on condition or the preset power-off condition if the most recently written event is a power outage event;
[0171] An updating module 1006, configured to update the power-on statistical information in the auxiliary device and generate a new power-on event if the voltage state meets the preset power-on condition;
[0172] The writing module 1007 is used to write a new power-on event into the data center.
[0173] In an optional embodiment, the first power outage statistical information includes: the number of power outages and the time of the most recent power outage, and the first power-on statistical information includes: the number of power-ons and the time of the most recent power-on; the first determination module 1002 is specifically used to: determine whether the number of power outages is greater than the number of power-ons, and whether the most recent power outage time is later than the most recent power-on time; if the number of power outages is greater than the number of power-ons, and the most recent power outage time is later than the most recent power-on time, it is determined that the preset power-on constraint conditions are met.
[0174] In an optional implementation, the first determination module 1002 is further used to: if the most recently written event is not a power outage event, update the power outage statistics in the auxiliary device and generate a new first power outage event; and write the new first power outage event into the data center.
[0175] In an optional embodiment, the first determination module 1002 is specifically used to: perform a power outage record filling operation based on a pre-cached recent historical power outage record; update the number of power outages and the most recent power outage time in the power outage statistical information based on the filled power outage record, and write the updated power outage statistical information into the auxiliary device.
[0176] In an optional implementation, the first determining module 1002 is specifically configured to update the number of power-on times and the most recent power-on time in the power-on statistical information, and write the updated power-on statistical information into the auxiliary device.
[0177] In an optional embodiment, the first determination module 1002 is also used to: read the most recent write time of the preset cache; determine the startup duration of the power collection terminal based on the most recent write time and the real-time time; the third determination module 1005 is specifically used to: if the most recent write event is a power-on event, and the startup duration is greater than the preset duration threshold, then update the power outage statistical information in the auxiliary device and generate a new first power outage event.
[0178] In an optional implementation, the third determination module 1005 is further configured to: write the real time into a preset cache.
[0179] In an optional implementation, the power outage event judgment device 1000 is also used to: if the voltage state meets the preset power outage conditions, update the power outage statistical information in the auxiliary device and generate a new second power outage event; write the new second power outage event into the data center.
[0180] It should be noted that for details not disclosed in the power outage event judgment device in the embodiment of the present application, please refer to the details disclosed in the power outage event judgment method in the embodiment of the present application, and the details will not be repeated here.
[0181] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0182] Optionally, the embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the processor executes the steps of the method for determining a power-off event of a mobile storage medium in the above embodiment. The specific implementation method and technical effect are similar and will not be repeated here.
[0183] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0184] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0185] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0186] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
[0187] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for determining a power failure event, characterized in that: A processing unit applied to a power collection terminal, the method comprising: Reading pre-stored first power-off statistical information and first power-on statistical information from an auxiliary device integrated in the power collection terminal; Determine whether the first power-off statistical information and the first power-on statistical information meet a preset power-off constraint condition; If the preset power-off constraint condition is met, reading the most recently written event from the data center of the power collection terminal; Determine whether the most recently written event is a power outage event or a power-on event; wherein the power outage event and the power-on event are respectively used to indicate whether a preset station area to which the power supply unit of the power collection terminal is connected exists; If the most recently written event is a power outage event, determining whether the voltage state of the power supply voltage of the power supply unit of the power collection terminal satisfies a preset power-on condition or a preset power outage condition; If the voltage state satisfies the preset power-on condition, updating the power-on statistical information in the auxiliary device and generating a new power-on event; The new power-on event is written to the data center.
2. The power failure event determination method according to claim 1, characterized in that: The first power-off statistical information includes: the number of power-offs and the most recent power-off time, and the first power-on statistical information includes: the number of power-on times and the most recent power-on time; The determining whether the first power-off statistical information and the first power-on statistical information meet a preset power-off constraint condition includes: Determine whether the number of power outages is greater than the number of power-on times, and whether the most recent power outage time is later than the most recent power-on time; If the number of power outages is greater than the number of power-on times, and the most recent power outage time is later than the most recent power-on time, it is determined that the preset power outage and power-on constraint condition is satisfied.
3. The power failure event determination method according to claim 2, characterized in that: The method further comprises: If the most recently written event is not a power outage event, updating the power outage statistics in the auxiliary device and generating a new first power outage event; The new first power outage event is written into the data center.
4. The power failure event determination method according to claim 3, characterized in that: The updating of the power outage statistics in the auxiliary device includes: Perform a power outage record filling operation based on the recent historical power outage records cached in advance; According to the filled power outage record, the number of power outages and the most recent power outage time in the power outage statistical information are updated, and the updated power outage statistical information is written into the auxiliary device.
5. The power failure event determination method according to claim 2, characterized in that: The updating of the power-on statistical information in the auxiliary device includes: The power-on times and the most recent power-on time in the power-on statistical information are updated, and the updated power-on statistical information is written into the auxiliary device.
6. The power failure event determination method according to claim 3, characterized in that: Before reading the pre-stored first power outage statistical information and the first power-on statistical information from the auxiliary device integrated in the power collection terminal, the method further includes: Read the last write time of the preset cache; Determining the startup duration of the power collection terminal according to the most recent write time and the real time; If the most recently written event is a power-on event, updating the power outage statistics in the auxiliary device and generating a new first power outage event, comprises: If the most recently written event is a power-on event, and the startup duration is greater than a preset duration threshold, the power outage statistical information in the auxiliary device is updated, and the new first power outage event is generated.
7. The power failure event determination method according to claim 6, characterized in that: Before determining whether the power supply voltage connected to the power supply unit of the power collection terminal meets the preset power-on condition, the method further includes: The real time is written into the preset buffer.
8. The power failure event determination method according to claim 1, characterized in that: The method further comprises: If the voltage state satisfies the preset power outage condition, updating the power outage statistical information in the auxiliary device and generating a new second power outage event; The new second power outage event is written to the data center.
9. A power collection terminal, characterized in that: include: processing units, data centers, auxiliary devices, and power supply units; The input end of the power supply unit is used to connect the power supply line of the preset station area, and the output end of the power supply unit is electrically connected to the processing unit, the data center and the auxiliary device; Wherein, the processing unit is connected to the auxiliary device to perform a read operation or a write operation on the power-off statistical information and the power-on statistical information stored in the auxiliary device; The processing unit is also connected to the data center to perform a read or write operation on the data center in response to a power outage, or to perform a read or write operation on the data center in response to a power-on event; the processing unit is used to execute the method described in any one of claims 1 to 8 above.
10. A power consumption collection system, characterized in that: include: At least one power collection terminal and power collection master station as described in claim 9; At least one of the power collection terminals is communicatively connected to the power collection master station.