Mains power failure monitoring method and device, system, storage medium, electronic device

Through the method of processing network terminal log data and address merging, the problem of high cost of monitoring the mains fault in the prior art and inability to actively feedback is solved, and fast and accurate fault location and power recovery monitoring are achieved.

CN113298672BActive Publication Date: 2025-06-24CHINA TELECOM CORP LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110558596.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-21
Publication Date
2025-06-24
Estimated Expiration
2041-05-21

AI Technical Summary

Technical Problem

The existing technology requires the installation of monitoring equipment in the monitoring of mains power failures, which is costly and cannot be actively fed back to the maintenance department, making it difficult to quickly and accurately locate the fault location.

Method used

By obtaining the log data of the network terminal, classifying and filtering to determine the offline network terminal set, obtaining the target offline network terminal, and combining the address when the number reaches the threshold, it is determined whether there is a mains power failure in the installation area.

Benefits of technology

It realizes the power recovery situation of the location and fault area where the monitoring equipment is not installed, which reduces costs and improves the ability of the power grid to quickly locate and monitor faults.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113298672B_ABST
    Figure CN113298672B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the field of communication data, and provides a method and device, a system, a computer storage medium, and an electronic device for monitoring power failure of the mains. The method includes: obtaining log data corresponding to all network terminals in the latest monitoring period; classifying and filtering the log data to determine a set of offline network terminals; obtaining target offline network terminals corresponding to the same installation area in the set of offline network terminals, and comparing the number of target offline network terminals with a first threshold; when the number of target offline network terminals is greater than or equal to the first threshold, performing address merging on the target offline network terminals, and judging whether there is a power failure of the mains in the installation area according to the result generated by the address merging. On the one hand, the present disclosure actively discovers and accurately locates the position of the power failure based on the big data of telecom operators, avoiding the installation of monitoring devices at great cost; on the other hand, it monitors the power recovery situation in real time after discovering the power failure of the mains, realizing convenient services for the people.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] Power supply is the issue that is most closely related to and most concerned by the public. Ensuring power is an important task that focuses on people's livelihood and relieves people's worries. When a power failure occurs, actively, quickly, and accurately locating the fault location and providing it to maintenance departments such as the State Grid, property management companies, and line operation and maintenance is the key to restoring power.

[0003] Currently, the application scenarios for judging whether the mains power is cut off are very extensive. The conventional judgment method is to use monitoring equipment to monitor the mains power situation. When the mains power fails and cuts off, the monitoring equipment itself can be automatically switched from mains power supply to backup power supply, and the backup power supply is used to support the operation of the monitoring equipment itself until the mains power supply is restored. However, this method requires the cost of installing monitoring equipment and cannot actively feedback to the maintenance department.

[0004] In view of this, it is urgent to develop a new method and device for monitoring mains power failures in this field.

[0005] It should be noted that the information disclosed in the above background art section is only used to enhance the understanding of the background of the present disclosure. Summary of the Invention

[0006] The purpose of the present disclosure is to provide a method for monitoring mains power failures, a device for monitoring mains power failures, a computer storage medium, and an electronic device, thereby at least to a certain extent avoiding the installation of monitoring equipment, reducing costs, and being able to actively discover and accurately and real-time locate the position of power failures and the power restoration situation in the fault area, improving the ability of the power grid to quickly locate and monitor faults at the end network level.

[0007] Other features and advantages of the present disclosure will become apparent through the following detailed description, or will be partially learned through the practice of the present disclosure.

[0008] According to a first aspect of the present disclosure, there is provided a method for monitoring mains power failures, including:

[0009] Obtaining log data corresponding to all network terminals in the latest monitoring period;

[0010] Classifying and filtering the log data to determine a set of offline network terminals;

[0011] Obtaining target offline network terminals corresponding to the same installation area in the set of offline network terminals, and comparing the number of the target offline network terminals with a first threshold;

[0012] When the number of the target offline network terminals is greater than or equal to the first threshold, performing address merging on the target offline network terminals, and judging whether there is a mains power failure in the installation area according to the result generated by the address merging.

[0013] In an exemplary embodiment of the present disclosure, obtaining the log data corresponding to all network terminals within the latest monitoring period includes:

[0014] Obtaining the action logs of all the network terminals within the latest monitoring period, and parsing the action logs to obtain the log data.

[0015] In an exemplary embodiment of the present disclosure, the log data includes the terminal SN code, the event type, and the event occurrence time, and the offline network terminal set includes a plurality of offline network terminals;

[0016] Obtaining the target offline network terminals corresponding to the same installation area in the offline network terminal set includes:

[0017] Matching the terminal SN code corresponding to each of the offline network terminals with the terminal geographical location database to determine the installation address corresponding to each of the offline network terminals according to the matching result;

[0018] Determining the target offline network terminals according to the installation address.

[0019] In an exemplary embodiment of the present disclosure, matching the terminal SN code corresponding to each of the offline network terminals with the terminal geographical location database to determine the installation address corresponding to each of the offline network terminals according to the matching result includes:

[0020] Matching the terminal SN code corresponding to each of the offline network terminals with the SN code in the terminal geographical location database;

[0021] When there is a target SN code that matches the terminal SN code corresponding to the offline network terminal, obtaining the installation address corresponding to the target SN code in the terminal geographical location database as the installation address corresponding to the offline network terminal;

[0022] Determining the target offline network terminals according to the installation address includes:

[0023] Extracting the superior address in each of the installation addresses, and taking the network terminals corresponding to the same superior address as the target offline network terminals.

[0024] In an exemplary embodiment of the present disclosure, the number of the target offline network terminals is multiple;

[0025] Merging the addresses of the target offline network terminals, and determining whether there is a mains power failure in the installation area according to the result of the address merging includes:

[0026] Constructing a first three-dimensional dictionary data set of terminal installation addresses according to the log data corresponding to each of the target offline network terminals;

[0027] Determine the three-dimensional data of the first terminal based on the three-dimensional dictionary data set of the first terminal installation address;

[0028] Compare the number of offline terminals in the three-dimensional data of the first terminal with a second threshold;

[0029] When the number of offline terminals is greater than or equal to the second threshold, generate first parent address event information and determine that there is a mains power failure in the installation area;

[0030] When the number of offline terminals is less than the second threshold, perform secondary address merging on the target offline network terminals and determine whether there is a mains power failure in the installation area according to the result generated by the secondary address merging.

[0031] In an exemplary embodiment of the present disclosure, the performing secondary address merging on the target offline network terminals and determining whether there is a mains power failure in the installation area according to the result generated by the secondary address merging includes:

[0032] Taking the parent address in the three-dimensional data of the first terminal as the last-level address, perform secondary address merging on the target offline network terminals to obtain the three-dimensional data of the second terminal;

[0033] Compare the number of offline terminals in the three-dimensional data of the second terminal with a third threshold;

[0034] When the number of offline terminals in the three-dimensional data of the second terminal is greater than or equal to the third threshold, generate second parent address event information and determine that there is a mains power failure in the installation area;

[0035] When the number of offline terminals in the three-dimensional data of the second terminal is less than the third threshold, determine that there is no mains power failure in the installation area.

[0036] In an exemplary embodiment of the present disclosure, the method further includes:

[0037] Encrypt the first parent address event information or the second parent address event information, and send the encrypted first parent address event information or the encrypted second parent address event information to a target server by POST.

[0038] In an exemplary embodiment of the present disclosure, after sending the encrypted first parent address event information or the encrypted second parent address event information to the target server, the method further includes:

[0039] Obtain the latest log data corresponding to all network terminals;

[0040] Classify and filter the latest log data to determine the set of online network terminals;

[0041] Obtain the target online network terminals corresponding to the installation area in the set of online network terminals, and compare the number of the target online network terminals with a fourth threshold;

[0042] When the number of the target online network terminals is greater than or equal to the fourth threshold, perform address merging on the target online network terminals, and determine whether the installation area has resumed power supply according to the result generated by the address merging.

[0043] In an exemplary embodiment of the present disclosure, the number of the target online network terminals is multiple; before performing address merging on the target online network terminals, the method further includes:

[0044] Construct a second three-dimensional dictionary data set of terminal installation addresses according to the log data corresponding to each of the target online network terminals;

[0045] Obtain the status records corresponding to each of the target online terminals;

[0046] Determine whether to perform address merging on each of the target online network terminals based on the second three-dimensional dictionary data set of terminal installation addresses according to the status records.

[0047] In an exemplary embodiment of the present disclosure, determining whether to perform address merging on each of the target online network terminals based on the second three-dimensional dictionary data set of terminal installation addresses according to the status records includes:

[0048] When the status records corresponding to each of the target online terminals are offline and not restored, construct third three-dimensional data based on the second three-dimensional dictionary data set of terminal installation addresses;

[0049] Generate third parent address event information according to the third three-dimensional data, determine that the installation area has resumed power supply, and send the third parent address event information to a target server;

[0050] When the status records corresponding to each of the target online terminals are not offline and not restored, then abandon address merging.

[0051] According to a second aspect of the present disclosure, there is provided a mains failure monitoring device, including:

[0052] A log acquisition module, configured to acquire log data corresponding to all network terminals in the latest monitoring period;

[0053] A log processing module, configured to classify and filter the log data to determine a set of offline network terminals;

[0054] A comparison module, configured to obtain target offline network terminals corresponding to the same installation area in the set of offline network terminals, and compare the number of the target offline network terminals with a first threshold;

[0055] An address merging module, configured to, when the number of the target offline network terminals is greater than or equal to the first threshold, perform address merging on the target offline network terminals, and determine whether there is a mains power failure in the installation area according to the result of the address merging.

[0056] According to a third aspect of the present disclosure, there is provided a mains power failure monitoring system, including:

[0057] An optical path terminal device, configured to monitor and obtain action logs of all connected network terminals in real time, and parse the action logs to obtain log data corresponding to all the network terminals;

[0058] A user terminal data server, connected to the optical path terminal device, for storing the log data;

[0059] A terminal location positioning server, for storing the SN codes of network terminals and corresponding installation addresses;

[0060] A fault monitoring device, connected to the user terminal data server and the terminal location positioning server, for obtaining log data corresponding to all the network terminals in the latest monitoring period;

[0061] Classify and filter the log data to determine a set of offline network terminals;

[0062] Determine target offline network terminals corresponding to the same installation area according to the SN codes of the offline network terminals in the set of offline network terminals, the SN codes in the terminal location positioning server, and the corresponding installation addresses, and compare the number of the target offline network terminals with a first threshold; and

[0063] When the number of the target offline network terminals is greater than or equal to the first threshold, perform address merging on the target offline network terminals, and determine whether there is a mains power failure in the installation area according to the result of the address merging.

[0064] According to a fourth aspect of the present disclosure, there is provided a computer storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the above-mentioned mains power failure monitoring method.

[0065] According to a fifth aspect of the present disclosure, there is provided an electronic device, including:

[0066] A processor; and

[0067] A memory for storing executable instructions of the processor;

[0068] Wherein, the processor is configured to execute the above-mentioned mains power failure monitoring method by executing the executable instructions.

[0069] As can be seen from the above technical solutions, the mains power failure monitoring method, mains power failure monitoring device, mains power failure monitoring system, computer storage medium and electronic device in the exemplary embodiments of the present disclosure at least have the following advantages and positive effects:

[0070] In the mains power failure monitoring method of the present disclosure, first, log data corresponding to all network terminals in the latest monitoring period is obtained, then the log data is classified and filtered to determine the set of offline network terminals, then target offline network terminals corresponding to the same installation area are obtained from the set of offline network terminals, and finally, when the number of target offline network terminals is greater than or equal to the first threshold, address merging is performed on the target offline network terminals to determine whether there is a mains power failure in the installation area according to the result of the address merging. On the one hand, the mains power failure monitoring method of the present disclosure can actively discover and accurately locate the position of the power failure based on the big data of telecom operators, avoiding the high cost of installing monitoring equipment; on the other hand, it can monitor the power restoration situation in real time after discovering the mains power failure, realizing convenient services for the people.

[0071] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure and used together with the specification to explain the principles of the present disclosure. Obviously, the accompanying drawings in the following description are only some embodiments of the present disclosure, and those of ordinary skill in the art can obtain other drawings based on these drawings without creative efforts.

[0073] Figure 1 Showing the schematic architecture diagram of the mains power failure monitoring system in the exemplary embodiment of the present disclosure;

[0074] Figure 2 Showing the schematic flowchart of the mains power failure monitoring method in the exemplary embodiment of the present disclosure;

[0075] Figure 3 Showing the schematic flowchart of determining the target offline network terminal in the exemplary embodiment of the present disclosure;

[0076] Figure 4 Showing the schematic flowchart of the offline network terminal processing sub-flow in the exemplary embodiment of the present disclosure;

[0077] Figure 5 The flowchart showing the process of judging the mains power failure by secondary address merging in the exemplary embodiments of the present disclosure;

[0078] Figure 6 The flowchart showing the process of judging the restoration of power supply in the exemplary embodiments of the present disclosure;

[0079] Figure 7 The flowchart showing the sub - process of processing the online terminal in the exemplary embodiments of the present disclosure;

[0080] Figure 8 The flowchart showing the process of simultaneously monitoring power failure and power restoration in the exemplary embodiments of the present disclosure;

[0081] Figure 9 The structural diagram showing the mains power failure monitoring device in the exemplary embodiments of the present disclosure;

[0082] Figure 10 The structural diagram showing the computer storage medium in the exemplary embodiments of the present disclosure;

[0083] Figure 11 The structural diagram showing the electronic device in the exemplary embodiments of the present disclosure. Detailed implementation manners

[0084] Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be more complete and comprehensive, and will fully convey the concept of the example embodiments to those skilled in the art. The features, structures, or characteristics described may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of the embodiments of the present disclosure. However, those skilled in the art will realize that the technical solutions of the present disclosure can be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be used. In other cases, well - known technical solutions are not shown or described in detail to avoid obscuring the various aspects of the present disclosure.

[0085] As used in this specification, the terms "a", "an", "the", and "said" are used to denote the presence of one or more elements / components / etc.; the terms "comprising" and "having" are used to mean an open inclusion and mean that in addition to the listed elements / components / etc., there may be additional elements / components / etc.; the terms "first" and "second", etc. are used only as labels and do not limit the quantity of their objects.

[0086] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus repeated descriptions thereof will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities.

[0087] Figure 1 The architecture schematic diagram of the mains power failure monitoring system applying the technical solution of the embodiment of the present disclosure is shown, as Figure 1 shown, the mains power failure monitoring system 100 includes an optical path terminal device 101, a user terminal data server 102, a terminal location positioning server 103, and a failure monitoring device 104. The optical path terminal device 101 may specifically be an OLT (Optical Line Terminal) connected to the network terminals - optical modems (Model) of each user. It is used to monitor and obtain the action logs of all network terminals connected thereto in real time, and parse the action logs to obtain the log data corresponding to all network terminals. The action logs of the network terminals are specifically the logs formed by the online and offline action events of the optical modems. The user terminal data server 102 is connected to the optical path terminal device 101 and is used to store the log data. Specifically, the log data can be written into the terminal original event database connected thereto. The terminal location positioning server 103 is used to store the SN codes (Serial Number) of all network terminals and the corresponding installation addresses. The failure monitoring device 104 is connected to the user terminal data server 102 and the terminal location positioning server 103, and is used to obtain the log data corresponding to all network terminals in the latest monitoring period; then classify and filter the log data to determine the set of offline network terminals; then determine the target offline network terminals corresponding to the same installation area according to the SN codes of the offline network terminals in the offline network terminal set, the SN codes in the terminal location positioning server, and the corresponding installation addresses, and compare the number of target offline network terminals with the first threshold; finally, when the number of target offline network terminals is greater than or equal to the first threshold, perform address merging on the target offline network terminals, and determine whether there is a mains power failure in the installation area according to the result of the address merging.

[0088] In an exemplary embodiment of the present disclosure, data transmission can be carried out via a network between the optical path terminal device 101 and the user terminal data server 102, between the user terminal data server 102 and the fault monitoring device 104, between the fault monitoring device 104 and the terminal location positioning server 103, between the user terminal data server 102 and the terminal original event database, and between the terminal location positioning server 103 and the terminal geographical location database. The network is a medium providing a communication link, which can include various connection types, such as wired communication links, wireless communication links, etc. In the embodiment of the present disclosure, the network can specifically be a mobile network.

[0089] It should be understood that the numbers of the optical path terminal device 101, the user terminal data server 102, the terminal location positioning server 103, the fault monitoring device 104, and the network are merely illustrative. According to the implementation requirements, there can be any number of optical path terminal devices 101, user terminal data servers 102, terminal location positioning servers 103, fault monitoring devices 104, and networks. It is worth noting that the user terminal data server and the terminal location positioning server in the present disclosure can be independent servers or a server cluster formed by multiple servers.

[0090] In the related technology of the present disclosure, a monitoring device is usually adopted to monitor the situation of the commercial power supply. Although the monitoring device can be supported by a backup power supply to work until the commercial power supply is restored when a commercial power failure occurs, installing the monitoring device requires a large amount of cost and cannot actively feedback to the maintenance department.

[0091] In view of the problems existing in the related technology, the present disclosure proposes a method for monitoring commercial power failures, which can be executed by a fault monitoring device, such as Figure 1 the fault monitoring device 104 shown in Figure 2 FIG. shows a flowchart of the method for monitoring commercial power failures, as shown in Figure 2 shown, the method for monitoring commercial power failures includes:

[0092] Step S210: Obtain the log data corresponding to all network terminals in the latest monitoring period;

[0093] Step S220: Classify and filter the log data to determine the set of offline network terminals;

[0094] Step S230: Obtain the target offline network terminals corresponding to the same installation area in the set of offline network terminals, and compare the number of the target offline network terminals with a first threshold;

[0095] Step S240: When the number of the target offline network terminals is greater than or equal to the first threshold, perform address merging on the target offline network terminals, and determine whether there is a mains power failure in the installation area according to the result of the address merging.

[0096] The mains power failure monitoring method of the present disclosure can determine the target offline network terminals by processing the log data of a large number of network terminals, and perform address merging on the target offline network terminals to determine whether there is a mains power failure in the installation area according to the result of the address merging. On the one hand, the mains power failure monitoring method of the present disclosure can actively discover and accurately locate the position of the power failure based on the telecom big data, ensuring that the power failure is timely fed back to the relevant institutions to ensure the normal power consumption of users; on the other hand, it can avoid installing a large number of monitoring devices, reducing the expenditure cost.

[0097] The following Figure 1 illustrates each step of the mains power failure monitoring method in detail with the mains power failure monitoring system shown.

[0098] In step S210, obtain the log data corresponding to all network terminals in the latest monitoring period.

[0099] In an exemplary embodiment of the present disclosure, the optical line terminal device OLT is the core component of the optical access network, equivalent to a switch or a router in the traditional communication network, and is also a multi-service providing platform, generally placed at the central office, providing a fiber interface for the passive optical network facing users. In the actual application scenario, an optical line terminal device OLT generally has 6 PON ports, and one PON port can be connected to 64 or 128 OUNs. An OUN is equivalent to an optical modem. That is to say, an optical line terminal device can provide services for hundreds or thousands of users. Correspondingly, an optical line terminal device can collect the action information of an equal number of network terminals (optical modems) each time. If the scope is expanded to the area provided with telecom services by the same telecom company, such as a district, a county or a city, as the back-end of the telecom company, it will be possible to obtain the action information of a huge number of network terminals at each collection time point and monitor the power supply situation in the coverage area based on the collected big data. It should be noted that in the technical solution of the present disclosure, multiple users using the same optical modem are regarded as one user, and the action information of the network terminal is specifically the online action and offline action of the optical modem of the broadband user.

[0100] In an exemplary embodiment of the present disclosure, in order to ensure stable monitoring of whether there is a mains power failure in each area, the optical line terminal device (OLT) of a telecommunications operator can be used to periodically monitor the online status of network terminals (optical modems), and then judge their online status according to the log data of the network terminals within each detection period. Since the monitoring of mains power failure needs to ensure timeliness, when obtaining the log data corresponding to all network terminals, the log data corresponding to all network terminals within the latest monitoring period should be selected, and then the log data analysis is performed to obtain the online status of the network terminals.

[0101] In an exemplary embodiment of the present disclosure, the monitoring period can specifically be 3 hours, 5 hours, 8 hours, etc., and the embodiments of the present disclosure do not make specific limitations thereto. Further, real-time monitoring can also be performed on the monitored area, and correspondingly, the monitoring period can also be set to a smaller time interval.

[0102] In an exemplary embodiment of the present disclosure, according to the above embodiment, it is known that the action logs of all network terminals collected by the OLT are stored in the user terminal data server. Then, in order to obtain the log data corresponding to all network terminals within the latest monitoring period, first, the action logs corresponding to all network terminals within the latest monitoring period can be obtained through the OLT, and then the obtained action logs are parsed to obtain the log data corresponding to all network terminals. This log data is plaintext data, specifically including the terminal SN code, event type, and occurrence time corresponding to the network terminal.

[0103] In step S220, the log data is classified and filtered to determine the set of offline network terminals.

[0104] In an exemplary embodiment of the present disclosure, since the log data obtained from the user terminal data server corresponds to the network terminals of all users in the power grid coverage area, there may be various power supply situations in the coverage area, such as power outages that have not been restored, short-term frequent power outages, power outages that have been restored, continuous power supply, etc. And one purpose of the present disclosure is to actively discover and accurately and real-time locate the position of power failures. Therefore, the obtained log data corresponding to all network terminals needs to be classified and filtered, and only the log data of the network terminals with power outages that have not been restored is retained to exclude the log data that does not meet the conditions. Furthermore, an offline network terminal set is formed based on the network terminals with power outages that have not been restored, and the offline network terminal set contains multiple offline network terminals. Among them, when classifying the log data corresponding to all network terminals, it is mainly classified according to the online and offline action events that occur to the network terminals. In this step, only the network terminals that have offline action events need to be retained. When filtering the network terminals that have offline action events obtained by classification, it can be filtered according to a time threshold to filter out short-term frequent power outage events. Specifically, a time threshold can be determined, for example, set to 1 minute, and then it is judged how many times the network terminals that have offline action times have offline action events within 1 minute. For example, when a network terminal has more than 3 offline action events continuously within 1 minute, the offline action events of this network terminal are ignored, reducing repeated warnings. In this way, the offline action events caused by phenomena such as continuous tripping can be excluded, ensuring that the finally determined network terminals are all offline due to long-term power failures.

[0105] Further, after obtaining the offline network terminal set, the offline network terminal set can be further filtered according to the distribution of OLT ports. Specifically, the number of offline network terminals under the same port can be compared with a preset threshold. When the number of offline network terminals under the same port is less than the preset threshold, the network terminal is filtered out from the offline network terminal set to exclude misjudgments caused by single-terminal offline events, and then the final offline network terminal set is obtained.

[0106] In step S230, the target offline network terminals corresponding to the same installation area in the offline network terminal set are obtained, and the number of the target offline network terminals is compared with a first threshold.

[0107] In an exemplary embodiment of the present disclosure, after obtaining the offline network terminal set, the installation addresses of each offline network terminal in the offline network terminal set can be extracted to determine the target offline network terminals corresponding to the same installation area according to the installation addresses of each offline network terminal. Figure 3 The flow diagram for determining the target offline network terminals is shown, as Figure 3As shown, in step S301, the terminal SN codes corresponding to each offline network terminal are matched with the terminal geographical location database to determine the installation addresses corresponding to each offline network terminal according to the matching results; in step S302, the target offline network terminals are determined according to the installation addresses.

[0108] Among them, when executing step S301, specifically, the terminal SN codes corresponding to each offline network terminal can be matched with the SN codes in the terminal geographical location database. When there is a target SN code in the terminal geographical location database that matches the terminal SN code corresponding to the offline network terminal, the installation address corresponding to the target SN code in the terminal geographical location database is obtained as the installation address corresponding to the offline network terminal. When executing step S302, the superior address in the installation address can be extracted, and the network terminals corresponding to the same superior address are the target offline network terminals. It should be noted that the superior address is the address corresponding to the broadband installation area level in the installation address, and the broadband installation area can be a primary installation area or a secondary installation area. For example, if the installation address of a network terminal is "Room 101, Unit 1, Building 5, XX Community, Yunlong District, Xuzhou City", then the address corresponding to the broadband installation area in this installation address can be the primary installation area "Yunlong District, Xuzhou City" or the secondary installation area "XX Community, Yunlong District, Xuzhou City". Whether to use the address of the primary installation area or the address of the secondary installation area as the regional address depends on the size of the area and the number of broadband users covered. When the primary installation area is small and the number of broadband users covered is small, the primary installation area can be used as the target area for extracting the regional address. When the primary installation area is very large and the number of broadband users covered is very large, the secondary installation area can be used as the target area for extracting the regional address.

[0109] In an exemplary embodiment of the present disclosure, after obtaining the target offline network terminals, the number of the target offline network terminals can be compared with the first threshold, aiming to exclude the offline events of the network terminals of a single user. Only when there are multiple network terminals in the area that simultaneously experience offline events can it be determined that a power failure has occurred in this area. In the embodiments of the present disclosure, the first threshold can be set according to actual needs, such as set to 100, 200, etc., and the embodiments of the present disclosure do not make specific limitations on this.

[0110] In step S240, when the number of the target offline network terminals is greater than or equal to the first threshold, the addresses of the target offline network terminals are merged, and it is determined whether there is a mains failure in the installation area according to the result generated by the address merging.

[0111] In an exemplary embodiment of the present disclosure, when the number of target offline network terminals is greater than or equal to the first threshold, it indicates that there may be a power failure in the installation area. In the embodiments of the present disclosure, the address merging method can be used to confirm whether there is a power failure in the installation area. This is because in actual application scenarios, it is usually necessary to install broadband in various places, such as residential buildings, office buildings, office places, communities, streets, villages, etc. Then, when counting the broadband installation addresses, it is necessary to record them at the house number level to facilitate the power company and the broadband service provider to accurately locate the user's location. Therefore, when determining the area with power failure, it is necessary to merge the installation addresses of the offline network terminals. Specifically, first, a three-dimensional dictionary data set of the first terminal installation address can be constructed according to the log data corresponding to the target offline network terminal, and then the offline network terminal processing sub-process can be called to process the three-dimensional dictionary data set of the first terminal installation address, and then determine whether there is a power failure in the installation area. Next, the formation of the three-dimensional dictionary data set of the first terminal installation address and the offline network terminal processing sub-process will be described in detail.

[0112] In an exemplary embodiment of the present disclosure, the three-dimensional dictionary data set of the first terminal installation address is formed by integrating the parent addresses extracted from the installation addresses of the target offline network terminals, and the method of common characters is used to extract the parent addresses. For example, there are two target offline network terminals, and the corresponding log information is respectively {"terminal installation address": Room 101, Unit 1, Building 5, XX Community, Yunlong District, Xuzhou City, "time": "20200701 18:30", "event type": "offline"} and {"terminal installation address": Room 301, Unit 1, Building 5, XX Community, Yunlong District, Xuzhou City, "time": "20200701 18:30", "event type": "offline"}. Then, the parent addresses of these two target offline network terminals can be extracted as "Unit 1, Building 5, XX Community, Yunlong District, Xuzhou City", and based on this parent address, the specific three-dimensional dictionary data set of the first terminal installation address can be determined as: {"Unit 1, Building 5, XX Community, Yunlong District, Xuzhou City"}: [{"terminal installation address": Room 101, Unit 1, Building 5, XX Community, Yunlong District, Xuzhou City, "time": "20200701 18:30", "event type": "offline"}, {"terminal installation address": Room 301, Unit 1, Building 5, XX Community, Yunlong District, Xuzhou City, "time": "20200701 18:30", "event type": "offline"}].

[0113] After determining the three-dimensional dictionary data set of the first terminal installation address, the offline terminal processing sub-process can be used to process it to determine whether there is a power failure in the installation area. Figure 4 The flow diagram of the offline network terminal processing sub-process is shown, as Figure 4As shown, in step S401, the three-dimensional data of the first terminal is determined based on the three-dimensional dictionary dataset of the first terminal installation address; in step S402, the number of offline terminals in the three-dimensional data of the first terminal is compared with the second threshold; in step S403, when the number of offline terminals is greater than or equal to the second threshold, the first parent address event information is generated, and it is determined that there is a mains power failure in the installation area; in step S404, when the number of offline terminals is less than the second threshold, the target offline network terminals are subjected to secondary address merging, and it is judged whether there is a mains power failure in the installation area according to the result generated by the secondary address merging.

[0114] For example, if the three-dimensional dictionary dataset of the first terminal installation address contains 5 target offline network terminals, then the three-dimensional data of the first terminal can be determined according to the three-dimensional dictionary dataset of the first terminal installation address. The specific form is: {"address": "Building 5, Unit 1, XX Community, Yunlong District, Xuzhou City", "number of terminals": 5, "event type": "offline"}. Then, the number of offline terminals 5 can be used as the weight for judging the mains power failure and compared with the second threshold. Assuming the second threshold is 4, it means that there is a mains power failure in XX Community, Yunlong District, Xuzhou City. In this way, the first parent address event information can be generated according to the three-dimensional data of the first terminal, and the first parent address event information can be processed and sent to the fault alarm server of the Xuzhou Power Grid Company, so as to send a fault alarm signal to the terminal of the fault repair specialist through the fault alarm server, ensuring that the fault repair specialist can repair the power fault in time, and thus ensuring the normal power consumption of residents.

[0115] It should be noted that the second threshold can be set according to actual needs or can be other values. When the second threshold is a value greater than the number of offline terminals, such as 6, 10, etc., the target offline network terminals can be subjected to secondary address merging, and it is judged whether there is a mains power failure in the installation area according to the result generated by the secondary address merging.

[0116] Figure 5 The flow diagram of judging the mains power failure by secondary address merging is shown, as Figure 5As shown, in step S501, taking the parent address of the target offline network terminal as the last-level address, perform secondary address merging on the target offline network terminal to obtain the three-dimensional data of the second terminal; in step S502, compare the number of offline terminals in the three-dimensional data of the second terminal with the third threshold; in step S503, when the number of offline terminals in the three-dimensional data of the second terminal is greater than or equal to the third threshold, generate the second parent address event information and determine that there is a mains power failure in the installation area; in step S504, when the number of offline terminals in the three-dimensional data of the second terminal is less than the third threshold, determine that there is no mains power failure in the installation area. The parent address in step S501 is obtained by extracting common characters from the installation address of the target offline network terminal; in step S503, after generating the second parent address event information, it can be processed and sent to the fault warning server of the power grid company, so as to send a fault warning signal to the terminal of the fault repair specialist through the fault warning server, ensuring that the fault repair specialist repairs the power fault in time, and thus ensuring the normal power consumption of residents.

[0117] Next, continue with the above example to illustrate the specific method of secondary merging. When the parent address determined according to the installation address of the target offline network terminal is at the level of "Building 5, Unit 1, XX Community, Yunlong District, Xuzhou City", but the number of offline network terminals under this address is 2, less than the second threshold of 4, that is, it does not meet the power fault threshold condition, but offline action events of network terminals occur in Buildings 2 and 3 of XX Community, Yunlong District, Xuzhou City, then the secondary merging can be performed on the address at the level of "XX Community, Yunlong District, Xuzhou City ** Building", so as to obtain the address at the level of "XX Community, Yunlong District, Xuzhou City", and at the same time, the sum of the number of offline network terminals corresponding to each building can be used as the weight, and this weight is compared with the third threshold to determine whether there is a mains power failure in this community. Among them, the third threshold is any positive integer greater than the second threshold, because the larger the address level, the larger the threshold is required to judge whether a fault has occurred / resumed.

[0118] In an exemplary embodiment of the present disclosure, when processing the first parent address event information or the second parent address event, specifically, encryption algorithms such as MD5 can be used for encryption, and then the encrypted first parent address event information or the encrypted second parent address event information is sent to the target server, that is, the fault warning server, in a POST manner.

[0119] Further, after sending the encrypted first parent address event information or the encrypted second parent address event information to the target server, the target server should confirm within a preset confirmation time. When the target server fails to confirm within the confirmation time range, it is re-sent. If the re-sending fails multiple times, the sending is abandoned.

[0120] In an exemplary embodiment of the present disclosure, after determining that there is a power failure in the installation area and sending the encrypted first parent address event information or the encrypted second parent address event information to the target server, the latest log data corresponding to all network terminals can be obtained to determine whether the installation area has resumed power supply according to the latest log data.

[0121] Figure 6 The flowchart of determining the resumed power supply is shown. As Figure 6 shown, in step S601, after sending the encrypted first parent address event information or the encrypted second parent address event information to the target server, the latest log data corresponding to all network terminals is obtained; in step S602, the latest log data is classified and filtered to determine the set of online network terminals; in step S603, the target online network terminals corresponding to the installation area in the set of online network terminals are obtained, and the number of target online network terminals is compared with a fourth threshold; in step S604, when the number of target online network terminals is greater than or equal to the fourth threshold, address merging is performed on the target online network terminals, and it is determined whether the installation area has resumed power supply according to the result generated by the address merging.

[0122] Among them, when classifying the latest log data in step S602, it is classified according to the online and offline action events of the network terminals. After obtaining all the network terminals that have occurred online action events, these network terminals can be filtered to obtain the set of online network terminals, and the set of online network terminals includes multiple online network terminals. When filtering, a filtering method similar to that for determining the set of offline network terminals can be used for filtering. Specifically, filtering can be performed according to a time threshold to filter out short-time frequent power-on events. Further, according to the distribution of terminal ports, network terminals with the number of terminal online events less than a preset threshold under the same port can be filtered out to exclude misjudgment caused by a single network terminal event. The time threshold and the preset threshold can be the same as or different from the time threshold and the preset threshold used for filtering the terminal offline time. After determining the set of online network terminals, the target online network terminals in the installation area can be determined from the set of online network terminals according to the installation area corresponding to the target offline network terminals, and then the number of target online network terminals is compared with the fourth threshold. If the number of target online network terminals is greater than or equal to the fourth threshold, it indicates that the power in the installation area may have been restored. If the number of target online network terminals is less than the fourth threshold, it is not sufficient to determine whether the power in the installation area has been restored. Among them, the fourth threshold can be set according to actual needs, and can be the same as or different from the first threshold. The embodiments of the present disclosure do not make specific limitations on this.

[0123] When the number of target online network terminals is greater than or equal to the fourth threshold, in order to further determine whether the power has been restored, it can be judged by means of address merging. Specifically, first, a three-dimensional dictionary data set of the second terminal installation address can be constructed according to the log data corresponding to each target online network terminal, and then the online terminal processing sub-process can be called for judgment. Among them, the method of constructing the three-dimensional dictionary data set of the second terminal installation address is the same as that of constructing the three-dimensional dictionary data set of the first terminal installation address, which will not be elaborated here.

[0124] Figure 7 shows a schematic flow diagram of the online terminal processing sub-process, as Figure 7 shown, in step S701, obtain the status records corresponding to each target online terminal; in step S702, when the status records corresponding to each target online terminal are offline and not restored, construct the third terminal three-dimensional data based on the three-dimensional dictionary data set of the second terminal installation address; in step S703, generate the third parent address event information according to the third terminal three-dimensional data, determine that the installation area has resumed power supply, and send the third parent address event information to the target server; in step S704, when the status records corresponding to each target online terminal are not offline and not restored, then abandon the address merging.

[0125] In an exemplary embodiment of the present disclosure, the optical line terminal device OLT can monitor the online and offline action events of all network terminals in the power grid coverage area in real time. Further, it can also determine the status of the network terminals according to the current action events of the network terminals and the action events monitored at adjacent time points, and send the status information of the network terminals to the user terminal data server for storage in the terminal event sending database. When executing the online terminal processing sub-process, it can match according to the obtained target online terminal in the terminal event sending database to obtain the corresponding status information, and when the status information of the target online terminal is offline and not restored, steps S702 - S704 are executed. For example, if there are 5 target online network terminals, and their corresponding installation areas are all "Unit 1, Building 5, XX Community, Yunlong District, Xuzhou City", and after matching with the terminal event sending database, it is determined that the statuses of these target online network terminals are all offline and not restored, then the addresses of these five target online network terminals can be merged to form the third terminal three-dimensional data: {"address": "Unit 1, Building 5, XX Community, Yunlong District, Xuzhou City", "number of terminals": 5, "event type": "online"}, and then the third parent address event information is generated according to this third terminal three-dimensional data, and the third parent address event information is sent to the target server, so that the target server can feedback the message that the power supply in the area where the power failure occurred has been restored to the terminal of the power maintenance personnel, ensuring that the power maintenance personnel can timely master the power restoration situation in the area where the power failure occurred. The target server can be the fault warning server in the above embodiment or other servers.

[0126] In an exemplary embodiment of the present disclosure, when processing the offline action event through the offline terminal processing sub-process and being able to generate the first parent address event information or the second parent address event information, it indicates that the offline action event is a valid event. After sending the first parent address event information or the second parent address event information to the target server, the offline action event can also be written into the terminal event sending database, and the offline action event and its corresponding installation area are written into the terminal geographical location database. When processing the offline action event through the offline terminal processing sub-process and being unable to generate the parent address event, it indicates that the offline action event is an invalid event, then the offline action event can be written into the historical event database. Correspondingly, for the online action event, when processing the online action event through the online terminal processing sub-process and being able to generate the third parent address event information, it indicates that the online action event is a valid event, then after sending the third parent address event information to the target server, the online action event can be written into the terminal geographical location database; when unable to generate the third parent address event information, it indicates that the online action event is an invalid event, then the online action event can be written into the historical event database.

[0127] In the method for monitoring power grid failures in the embodiments of the present disclosure, the local office terminal (LOT) of a telecommunications operator is used as a monitoring tool. Based on the address information of a large number of network terminals, the address information of a large number of network terminals is extracted, merged, and judged through an address merging method, so as to accurately and quickly locate the power failure location and the power restoration situation of the failure area, and has the characteristics of being real-time, accurate, safe, efficient, and low-cost.

[0128] In the above embodiment, it mainly illustrates how to monitor power grid failures for the same installation area and, after issuing a power grid failure alarm, monitor the power restoration situation in real time. However, in actual application scenarios, the power failures and power restoration situations in various areas within the power grid coverage can be monitored simultaneously. For example, City A includes five areas B - F. Then, it is possible that at time t1, Area B has a power outage, and at time t2, Area D has a power outage while Area B resumes power supply. Then, at time t2, for the power grid failure monitoring system, it is necessary to simultaneously monitor the power restoration of Area B and the power failure of Area D. Among them, the methods for monitoring power restoration and power failure are the same as those in the above embodiment. The following is a brief description based on Figure 8 the flowchart shown.

[0129] Figure 8 shows a schematic flowchart for simultaneously monitoring power failures and power restoration, as Figure 8As shown, in step S801, the OLT collects the action logs of all network terminals within the power grid coverage, and parses the action logs to obtain log data including the SN code, event type, and occurrence time; in step S802, the log data is sent to the user terminal data server and written into the terminal original event database; in step S803, the event analysis mechanism is triggered through a preset interface to obtain the log data corresponding to all network terminals within the latest monitoring period; in step S804, the log data is classified, and the classified log data is written into the terminal classified event database; in step S805, the offline events and online events within the latest monitoring period are obtained from the terminal classified event database; in step S806, the obtained offline events and online events are filtered to obtain the target offline network terminals and target online network terminals; in step S807, the installation addresses corresponding to the target offline network terminals and target online network terminals are extracted according to the target offline network terminals, target online network terminals, and terminal geographical location database; in step S808, the installation addresses corresponding to the target offline network terminals and target online network terminals are standardized, and the parent addresses are extracted therefrom; in step S809, address merging is performed based on the parent addresses to obtain the three-dimensional dictionary data of the terminal installation addresses; in step S810, the event types of each action event are judged, and the corresponding processing sub-processes are called for processing; in step S811, it is judged whether the action event is a valid action event according to the result obtained by processing the processing sub-process; in step S812, when it is a valid action event, the processing result is sent to the target server, the event is written into the terminal event sending database, and the action event and the corresponding installation location are written into the terminal geographical location database; in step S813, when it is not a valid action event, the action event is written into the historical event database.

[0130] Among them, in step S810, for the offline action event, the offline terminal processing sub-process can be called, and for the online action event, the online terminal processing sub-process can be called. The specific processing flow is the same as that of the offline terminal sub-process and the online terminal processing sub-process in the above embodiment, and will not be elaborated here.

[0131] By monitoring the online actions and offline actions of all broadband network terminals within the power grid coverage, it is possible to simultaneously monitor the power obstacles and power restoration conditions in different areas within the coverage, improving the monitoring timeliness and positioning accuracy of power failures and power restoration conditions.

[0132] The present disclosure also provides a mains failure monitoring device. Figure 9 The structural schematic diagram of the mains failure monitoring device is shown, as Figure 9As shown in the figure, the mains failure monitoring device 900 may include a log acquisition module 901, a log processing module 902, a comparison module 903, and an address merging module 904. Among them:

[0133] The log acquisition module 901 is configured to acquire log data corresponding to all network terminals within the latest monitoring period;

[0134] The log processing module 902 is configured to classify and filter the log data to determine an offline network terminal set;

[0135] The comparison module 903 is configured to acquire target offline network terminals corresponding to the same installation area in the offline network terminal set, and compare the number of the target offline network terminals with a first threshold;

[0136] The address merging module 904 is configured to, when the number of the target offline network terminals is greater than or equal to the first threshold, perform address merging on the target offline network terminals, and determine whether there is a mains failure in the installation area according to the result generated by the address merging.

[0137] In an embodiment of the present disclosure, the log acquisition module 901 is configured to: acquire the action logs of all the network terminals within the latest monitoring period, and parse the action logs to acquire the log data.

[0138] In an embodiment of the present disclosure, the log data includes a terminal SN code, an event type, and an event occurrence time, and the offline network terminal set includes a plurality of offline network terminals; the comparison module 903 includes: a matching unit configured to match the terminal SN code corresponding to each of the offline network terminals with a terminal geographical location database to determine an installation address corresponding to each of the offline network terminals according to the matching result; a determination unit configured to determine the target offline network terminals according to the installation address.

[0139] In an embodiment of the present disclosure, the matching unit is configured to: match the terminal SN code corresponding to each of the offline network terminals with the SN codes in the terminal geographical location database; when there is a target SN code that matches the terminal SN code corresponding to the offline network terminal, acquire the installation address corresponding to the target SN code in the terminal geographical location database as the installation address corresponding to the offline network terminal; the determination unit is configured to extract the upper-level address in each of the installation addresses, and use the network terminals corresponding to the same upper-level address as the target offline network terminals.

[0140] In an embodiment of the present disclosure, the number of the target offline network terminals is multiple; the address merging module 904 includes: a first construction unit configured to construct a first three-dimensional dictionary data set of terminal installation addresses according to the log data corresponding to each of the target offline network terminals; a first three-dimensional data determination unit configured to determine first terminal three-dimensional data based on the first three-dimensional dictionary data set of terminal installation addresses; a first comparison unit configured to compare the number of offline terminals in the first terminal three-dimensional data with a second threshold; a first fault determination unit configured to generate first parent address event information and determine that there is a mains power failure in the installation area when the number of offline terminals is greater than or equal to the second threshold; a secondary address merging unit configured to perform secondary address merging on the target offline network terminals when the number of offline terminals is less than the second threshold, and determine whether there is a mains power failure in the installation area according to the result of the secondary address merging.

[0141] In an embodiment of the present disclosure, the secondary address merging unit is configured to: use the parent address in the first terminal three-dimensional data as the last-level address to perform secondary address merging on the target offline network terminals to obtain second terminal three-dimensional data; compare the number of offline terminals in the second terminal three-dimensional data with a third threshold; generate second parent address event information and determine that there is a mains power failure in the installation area when the number of offline terminals in the second terminal three-dimensional data is greater than or equal to the third threshold; determine that there is no mains power failure in the installation area when the number of offline terminals in the second terminal three-dimensional data is less than the third threshold.

[0142] In an embodiment of the present disclosure, the mains power failure monitoring device 900 is configured to: encrypt the first parent address event information or the second parent address event information, and send the encrypted first parent address event information or the encrypted second parent address event information to a target server by POST.

[0143] In an embodiment of the present disclosure, the mains power failure monitoring device 900 further includes: a latest log data acquisition module, configured to acquire the latest log data corresponding to all network terminals after sending the encrypted first parent address event information or the encrypted second parent address event information to the target server; a latest log data processing module, configured to classify and filter the latest log data to determine an online network terminal set; an online network terminal comparison module, configured to acquire target online network terminals corresponding to the installation area in the online network terminal set, and compare the number of the target online network terminals with a fourth threshold; an online network terminal merging module, configured to, when the number of the target online network terminals is greater than or equal to the fourth threshold, perform address merging on the target online network terminals, and determine whether the installation area has resumed power supply according to the result generated by the address merging.

[0144] In an embodiment of the present disclosure, the number of the target online network terminals is multiple; the mains power failure monitoring device 900 further includes: a second construction unit, configured to construct a second three-dimensional dictionary data set of terminal installation addresses according to the log data corresponding to each of the target online network terminals; a status record acquisition unit, configured to acquire status records corresponding to each of the target online terminals; a judgment module, configured to determine whether to perform address merging on each of the target online network terminals based on the second three-dimensional dictionary data set of terminal installation addresses according to the status records.

[0145] In an embodiment of the present disclosure, the judgment module is configured to: when the status records corresponding to each of the target online terminals are offline and not restored, construct a third three-dimensional data of terminals based on the second three-dimensional dictionary data set of terminal installation addresses; generate third parent address event information according to the third three-dimensional data of terminals, determine that the installation area has resumed power supply, and send the third parent address event information to the target server; when the status records corresponding to each of the target online terminals are not offline and not restored, then abandon address merging.

[0146] It should be noted that although several modules or units of a device for action execution are mentioned in the above detailed description, such a division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more of the above-mentioned modules or units can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0147] In addition, although the steps of the methods in this disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in that specific order, or that all of the steps shown must be performed to achieve the desired result. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be decomposed into multiple steps for execution, etc.

[0148] From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein can be implemented by software, or by a combination of software and necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (such as a personal computer, server, mobile terminal, or network device, etc.) to execute the methods according to the embodiments of this disclosure.

[0149] In an exemplary embodiment of this disclosure, an electronic device capable of implementing the above method is also provided.

[0150] Those skilled in the art can understand that various aspects of the present invention can be implemented as a system, method, or program product. Therefore, various aspects of the present invention can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which can be collectively referred to herein as "circuitry", "module", or "system".

[0151] The following refers to Figure 10 to describe the electronic device 1000 according to this embodiment of the present invention. Figure 10 The electronic device 1000 shown is merely an example and should not impose any limitations on the functions and usage scope of the embodiments of the present invention.

[0152] As Figure 10 shown, the electronic device 1000 is presented in the form of a general-purpose computing device. The components of the electronic device 1000 may include, but are not limited to: the at least one processing unit 1010 mentioned above, the at least one storage unit 1020 mentioned above, a bus 1030 connecting different system components (including the storage unit 1020 and the processing unit 1010), and a display unit 1040.

[0153] Among them, the storage unit stores program code, and the program code can be executed by the processing unit 1010, so that the processing unit 1010 executes the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Methods" section of this specification. For example, the processing unit 1010 can execute asFigure 2 Step S210 shown in FIG. Figure 2 : Obtain text information, classification data, and relationship network information related to the target enterprise; Step S220: Determine a first transformation score and a first transformation description based on the text information, determine a second transformation score and a second transformation description based on the classification data, and determine a third transformation score and a third transformation description based on the relationship network information; Step S230: Determine an enterprise transformation score according to the first transformation score, the second transformation score, and the third transformation score, and integrate the first transformation description, the second transformation description, and the third transformation description to obtain an enterprise transformation description; In step S240, generate enterprise transformation information corresponding to the target enterprise according to the enterprise transformation score and the enterprise transformation description.

[0154] The storage unit 1020 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 10201 and / or a cache storage unit 10202, and may further include a read-only storage unit (ROM) 10203.

[0155] The storage unit 1020 may further include a program / utilities 10204 having a set (at least one) of program modules 10205. Such program modules 10205 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment.

[0156] The bus 1030 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of a variety of bus structures.

[0157] The electronic device 1000 can also communicate with one or more external devices 1400 (such as keyboards, pointing devices, Bluetooth devices, etc.), and can also communicate with one or more devices that enable a user to interact with the electronic device 1000, and / or communicate with any device that enables the electronic device 1000 to communicate with one or more other computing devices (such as routers, modems, etc.). Such communication can be carried out through the input / output (I / O) interface 1050. Moreover, the electronic device 1000 can also communicate with one or more networks (such as local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) through the network adapter 1060. As shown in the figure, the network adapter 1060 communicates with other modules of the electronic device 1000 through the bus 1030. It should be understood that although not shown in the figure, other hardware and / or software modules can be used in combination with the electronic device 1000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0158] Through the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein can be implemented by software, or can be implemented by the way of software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure can be embodied in the form of a software product, and the software product can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on the network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.

[0159] In an exemplary embodiment of the present disclosure, there is also provided a computer storage medium, on which a program product capable of implementing the above method of this specification is stored. In some possible implementation manners, various aspects of the present invention can also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of this specification.

[0160] Reference Figure 11 As shown, a program product 1100 for implementing the above method according to an embodiment of the present invention is described. It can adopt a portable compact disc read-only memory (CD-ROM) and includes program code, and can run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited to this. In this document, a readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, apparatus, or device.

[0161] The program product may employ any combination of one or more readable media. The readable media may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0162] A computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which the readable program code is carried. Such a propagated data signal may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The readable signal medium may also be any readable medium other than a readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device.

[0163] The program code contained on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0164] The program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also including conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computing device, partially on the user's device, executed as a stand-alone software package, partially on the user's computing device and partially on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0165] In addition, the above drawings are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present invention, and are not for limiting purposes. It is easy to understand that the processes shown in the above drawings do not indicate or limit the chronological order of these processes. Additionally, it is also easy to understand that these processes may be executed synchronously or asynchronously, for example, in multiple modules.

[0166] Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known common general knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and examples are only to be considered as exemplary, and the true scope and spirit of the present disclosure are pointed out by the claims.

Claims

1. A method for monitoring mains power failure, characterized in that, Including: Obtain the log data corresponding to all network terminals within the latest monitoring period; Classify and filter the log data to determine the set of offline network terminals; when classifying the log data, classify it according to the online and offline action events that occur to the network terminals; The classifying and filtering the log data to determine the set of offline network terminals includes: retaining the network terminals that have offline action events; when filtering the network terminals that have offline action events obtained by classification, filter according to a time threshold to filter out short-term frequent power-off events; Obtain the target offline network terminals corresponding to the same installation area in the set of offline network terminals, and compare the number of the target offline network terminals with a first threshold; When the number of the target offline network terminals is greater than or equal to the first threshold, perform address merging on the target offline network terminals, and determine whether there is a mains power failure in the installation area according to the result generated by the address merging; The number of the target offline network terminals is multiple; The performing address merging on the target offline network terminals and determining whether there is a mains power failure in the installation area according to the result generated by the address merging includes: Construct a three-dimensional dictionary data set of the first terminal installation address based on the log data corresponding to each of the target offline network terminals; Determine the three-dimensional data of the first terminal based on the three-dimensional dictionary data set of the first terminal installation address; Compare the number of offline terminals in the three-dimensional data of the first terminal with a second threshold; When the number of offline terminals is greater than or equal to the second threshold, generate first parent address event information and determine that there is a mains power failure in the installation area; When the number of offline terminals is less than the second threshold, perform secondary address merging on the target offline network terminals, and determine whether there is a mains power failure in the installation area according to the result generated by the secondary address merging; The performing secondary address merging on the target offline network terminals and determining whether there is a mains power failure in the installation area according to the result generated by the secondary address merging includes: Taking the parent address in the three-dimensional data of the first terminal as the last-level address, perform secondary address merging on the target offline network terminals to obtain the three-dimensional data of the second terminal; Compare the number of offline terminals in the three-dimensional data of the second terminal with a third threshold; When the number of offline terminals in the three-dimensional data of the second terminal is greater than or equal to the third threshold, generate second parent address event information and determine that there is a mains power failure in the installation area; When the number of offline terminals in the three-dimensional data of the second terminal is less than the third threshold, determine that there is no mains power failure in the installation area.

2. The method according to claim 1, wherein The obtaining the log data corresponding to all network terminals within the latest monitoring period includes: Obtain the action logs of all the network terminals within the latest monitoring period, and parse the action logs to obtain the log data.

3. The method according to claim 1, wherein The log data includes the terminal SN code, the event type, and the event occurrence time, and the set of offline network terminals includes multiple offline network terminals; Obtaining the target offline network terminals corresponding to the same installation area in the offline network terminal set includes: Matching the terminal SN codes corresponding to each of the offline network terminals with the terminal geographical location database to determine the installation address corresponding to each of the offline network terminals according to the matching result; Determining the target offline network terminals according to the installation address.

4. The method according to claim 3, characterized in that The step of matching the terminal SN codes corresponding to each of the offline network terminals with the terminal geographical location database to determine the installation address corresponding to each of the offline network terminals according to the matching result includes: Matching the terminal SN codes corresponding to each of the offline network terminals with the SN codes in the terminal geographical location database; When there is a target SN code that matches the terminal SN code corresponding to the offline network terminal, obtaining the installation address corresponding to the target SN code in the terminal geographical location database as the installation address corresponding to the offline network terminal; The step of determining the target offline network terminals according to the installation address includes: Extracting the superior address in each of the installation addresses, and taking the network terminals corresponding to the same superior address as the target offline network terminals.

5. The method according to claim 1, characterized in that, The method further includes: Encrypting the first parent address event information or the second parent address event information, and sending the encrypted first parent address event information or the encrypted second parent address event information to the target server by POST.

6. The method according to claim 5, characterized in that, After sending the encrypted first parent address event information or the encrypted second parent address event information to the target server, the method further includes: Obtaining the latest log data corresponding to all network terminals; Classifying and filtering the latest log data to determine the set of online network terminals; Obtaining the target online network terminals corresponding to the installation area in the set of online network terminals, and comparing the number of the target online network terminals with a fourth threshold; When the number of the target online network terminals is greater than or equal to the fourth threshold, performing address merging on the target online network terminals, and judging whether the installation area has resumed power supply according to the result generated by the address merging.

7. The method according to claim 6, wherein The number of the target online network terminals is multiple; Before performing address merging on the target online network terminals, the method further includes: Constructing a second terminal installation address three-dimensional dictionary data set according to the log data corresponding to each of the target online network terminals; Obtaining the status record corresponding to each of the target online terminals; Determining whether to perform address merging on each of the target online network terminals based on the second terminal installation address three-dimensional dictionary data set according to the status record.

8. The method according to claim 7, wherein The step of determining whether to perform address merging on each of the target online network terminals based on the second terminal installation address three-dimensional dictionary data set according to the status record includes: When the status record corresponding to each of the target online terminals is offline and not restored, constructing a third terminal three-dimensional data based on the second terminal installation address three-dimensional dictionary data set; Generate third parent address event information according to the three-dimensional data of the third terminal, determine that the power supply of the installation area is restored, and send the third parent address event information to the target server; When the status records corresponding to the target online terminals are all non-offline and not restored, address merging is abandoned.

9. A mains power failure monitoring device, characterized in that, Including: A log acquisition module, configured to acquire log data corresponding to all network terminals within the latest monitoring period; A log processing module, configured to classify and filter the log data to determine a set of offline network terminals; when classifying the log data, classify it according to the online and offline action events that occur to the network terminals; The classifying and filtering of the log data to determine a set of offline network terminals includes: retaining the network terminals that have offline action events; when filtering the network terminals with offline action events obtained by classification, filter according to a time threshold to filter out short-term frequent power failure events; A comparison module, configured to acquire target offline network terminals corresponding to the same installation area in the set of offline network terminals, and compare the number of the target offline network terminals with a first threshold; An address merging module, configured to, when the number of the target offline network terminals is greater than or equal to the first threshold, perform address merging on the target offline network terminals, and determine whether there is a mains power failure in the installation area according to the result of the address merging; The number of the target offline network terminals is multiple; The performing address merging on the target offline network terminals and determining whether there is a mains power failure in the installation area according to the result of the address merging is configured as: Construct a three-dimensional dictionary data set of the first terminal installation address according to the log data corresponding to each of the target offline network terminals; Determine first terminal three-dimensional data based on the three-dimensional dictionary data set of the first terminal installation address; Compare the number of offline terminals in the first terminal three-dimensional data with a second threshold; When the number of offline terminals is greater than or equal to the second threshold, generate first parent address event information and determine that there is a mains power failure in the installation area; When the number of offline terminals is less than the second threshold, perform secondary address merging on the target offline network terminals, and determine whether there is a mains power failure in the installation area according to the result of the secondary address merging; The performing secondary address merging on the target offline network terminals and determining whether there is a mains power failure in the installation area according to the result of the secondary address merging is configured as: Use the parent address in the first terminal three-dimensional data as the last-level address to perform secondary address merging on the target offline network terminals to obtain second terminal three-dimensional data; Compare the number of offline terminals in the second terminal three-dimensional data with a third threshold; When the number of offline terminals in the second terminal three-dimensional data is greater than or equal to the third threshold, generate second parent address event information and determine that there is a mains power failure in the installation area; When the number of offline terminals in the second terminal three-dimensional data is less than the third threshold, determine that there is no mains power failure in the installation area.

10. A mains power failure monitoring system, characterized in that, Including: An optical path terminal device, which is used to monitor in real time and obtain the action logs of all connected network terminals, and parse the action logs to obtain log data corresponding to all the network terminals; A user terminal data server, connected to the optical path terminal device, for storing the log data; A terminal location positioning server, for storing the SN codes of network terminals and their corresponding installation addresses; A fault monitoring device, connected to the user terminal data server and the terminal location positioning server, for obtaining the log data corresponding to all the network terminals in the latest monitoring period; Classify and filter the log data to determine a set of offline network terminals; when classifying the log data, classify according to the online and offline action events that occur to the network terminals; The classifying and filtering the log data to determine a set of offline network terminals includes: retaining the network terminals that have offline action events; when filtering the network terminals that have offline action events obtained by classification, filter according to a time threshold to filter out short-term frequent power-off events; Determine the target offline network terminals corresponding to the same installation area according to the SN codes of the offline network terminals in the offline network terminal set, the SN codes in the terminal location positioning server, and the corresponding installation addresses, and compare the number of the target offline network terminals with a first threshold; and When the number of the target offline network terminals is greater than or equal to the first threshold, perform address merging on the target offline network terminals, and judge whether there is a mains power failure in the installation area according to the result generated by the address merging; The number of the target offline network terminals is multiple; The performing address merging on the target offline network terminals and judging whether there is a mains power failure in the installation area according to the result generated by the address merging is configured as: Construct a three-dimensional dictionary data set of the first terminal installation address according to the log data corresponding to each of the target offline network terminals; Determine the first terminal three-dimensional data based on the three-dimensional dictionary data set of the first terminal installation address; Compare the number of offline terminals in the first terminal three-dimensional data with a second threshold; When the number of offline terminals is greater than or equal to the second threshold, generate first-level parent address event information and determine that there is a mains power failure in the installation area; When the number of offline terminals is less than the second threshold, perform secondary address merging on the target offline network terminals, and judge whether there is a mains power failure in the installation area according to the result generated by the secondary address merging; The performing secondary address merging on the target offline network terminals and judging whether there is a mains power failure in the installation area according to the result generated by the secondary address merging is configured as: Use the parent address in the first terminal three-dimensional data as the last-level address to perform secondary address merging on the target offline network terminals to obtain second terminal three-dimensional data; Compare the number of offline terminals in the second terminal three-dimensional data with a third threshold; When the number of offline terminals in the three-dimensional data of the second terminal is greater than or equal to the third threshold, generate second parent address event information and determine that there is a mains power failure in the installation area; When the number of offline terminals in the three-dimensional data of the second terminal is less than the third threshold, determine that there is no mains power failure in the installation area.

11. A computer storage medium, on which a computer program is stored, characterized in that, When the computer program is executed by a processor, it implements the mains power failure monitoring method according to any one of claims 1 to 8.

12. An electronic device, characterized in that, It includes: A processor; And A memory for storing executable instructions of the processor; Wherein, the processor is configured to execute the mains power failure monitoring method according to any one of claims 1 to 8 by executing the executable instructions.

Citation Information

Patent Citations

  • Security analysis method and device for system equipment

    CN110929896A

  • Network fault prediction model establishing method and device

    CN111585799A

  • Network fault detection method and device, computer equipment and storage medium

    CN111953516A