Equipment outage real-time early warning method and device based on Internet of Things
The IoT device power outage early warning method, which utilizes real-time detection and cloud analysis, solves the problems of alarm lag and false alarm rate in IoT device power outage monitoring. It achieves millisecond-level perception and proactive early warning of device power outages, improving operation and maintenance efficiency and data protection.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-18
- Publication Date
- 2026-04-07
AI Technical Summary
Existing IoT device power outage monitoring solutions suffer from problems such as delayed alarms, high false alarm rates, inability to provide the cause of power outages, passive responses, and inability to predict risks, resulting in low operation and maintenance efficiency and wasted resources.
By monitoring the power supply status of IoT devices in real time, power outage alarm information is generated, including device identifier, power outage timestamp, and context information. The system analyzes and issues warnings the moment the device loses power. Combined with cloud-based intelligent analysis and local area network signal judgment, near real-time power outage warnings are achieved.
It achieves millisecond-level detection of device power outages, significantly reducing false alarm rates, improving fault diagnosis efficiency, providing power outage cause judgment, and providing proactive warnings before power outages, thus reducing data loss.
Smart Images

Figure CN121814536A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical field of power outage warning for Internet of Things (IoT) devices, and more particularly to a method and apparatus for real-time power outage warning for IoT-based devices. Background Technology
[0002] With the widespread adoption of IoT technology, monitoring the stable operation of numerous networked devices (such as servers, network switches, and industrial gateways) has become crucial. Unexpected power outages are a common type of failure, and the ability to quickly and accurately detect and provide early warnings of power outage events is a core aspect of operations and maintenance.
[0003] Currently, mainstream IoT device power outage monitoring solutions rely on "heartbeat packets" reported periodically by the devices. The monitoring center determines the device is offline and generates an alarm after a series of lost heartbeat packets. However, this approach has significant drawbacks. First, the alarms are severely delayed. Most solutions use a "heartbeat packet" mechanism, where devices report their status periodically, and a power outage is only determined when the heartbeat loss exceeds a preset threshold (e.g., 5 minutes). This results in a delay of several minutes between the actual power outage and the alarm generation, which is unacceptable for critical business scenarios such as finance, healthcare, and data centers. Second, temporary loss of heartbeat packets due to network congestion and high device load can easily be misinterpreted as a power outage, generating numerous false alarms and interfering with the judgment of maintenance personnel. Heartbeat loss can be caused by various factors such as network jitter and delayed response due to high device load, and is not necessarily a power outage. Traditional solutions struggle to distinguish between these causes, leading to numerous false alarms, consuming maintenance resources, and potentially causing maintenance personnel to experience a "crying wolf" effect, ignoring genuine alarms. Third, traditional solutions only provide the result "device offline," without offering any clues as to the cause of the power outage (it's impossible to determine if the cause was unplugging, a line fault, a damaged power adapter, or a regional power outage). Maintenance personnel must go to the site to begin troubleshooting, which is inefficient. Fourth, they are reactive and unpredictable. Traditional solutions are completely passive, only issuing alarms after a power outage occurs. They cannot provide early warnings or intervention for risks that may lead to power outages (such as unstable voltage or abnormal current). Fifth, they rely on the device's own power and computing power. Many IoT devices are battery-powered or have limited computing power, making it difficult to implement complex anomaly detection logic on the device side. Uploading all data to the cloud for analysis would introduce latency and bandwidth pressure. Summary of the Invention
[0004] Therefore, it is necessary to propose a device and method for real-time early warning of device power failure based on the Internet of Things to address the aforementioned problems in the existing technology.
[0005] The first technical solution of this invention is: A real-time power outage warning method for IoT-based devices includes: real-time detection of the target power supply status of the target power source corresponding to the target IoT device; determining whether the target power source is detected to be in a power outage state at preset time intervals; if so, generating a target power outage alarm message through the target backup power source, the target power outage alarm message including the target IoT device identifier corresponding to the target IoT device, the target IoT device power outage timestamp, and the target IoT device context information corresponding to the target IoT device at the moment of power outage; and initiating a target IoT device power outage analysis process to analyze and warn of the power outage event of the target IoT device based on the target power outage alarm message.
[0006] The second technical solution of this invention is: A real-time power outage early warning device for IoT-based devices includes: a power supply detection module for real-time detection of the target power supply status of the target power supply corresponding to the target IoT device; a power outage judgment module for determining whether the target power supply is detected to be in a power outage state at preset time intervals; a power outage alarm module for generating target power outage alarm information through the target backup power supply when the target power supply is detected to be in a power outage state, the target power outage alarm information including the target IoT device identifier corresponding to the target IoT device, the target IoT device power outage timestamp, and the target IoT device context information corresponding to the target IoT device at the moment of power outage; and a power outage analysis alarm module for initiating a target IoT device power outage analysis process to analyze and warn of the power outage event of the target IoT device based on the target power outage alarm information.
[0007] The third technical solution of this invention is: A computer device includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the following steps: The system continuously monitors the target power supply status of the target IoT device in real time. Every preset time interval, it determines whether the target power supply is detected to be in a power-off state. If so, it generates a target power failure alarm message using the target backup power supply. The target power failure alarm message includes the target IoT device identifier, the target IoT device power failure timestamp, and the target IoT device context information at the moment of power failure. Based on the target power failure alarm message, it initiates a target IoT device power failure analysis process to analyze and issue warnings for the power failure event of the target IoT device.
[0008] The fourth technical solution of this invention is: A computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the following steps: The system continuously monitors the target power supply status of the target IoT device in real time. Every preset time interval, it determines whether the target power supply is detected to be in a power-off state. If so, it generates a target power failure alarm message using the target backup power supply. The target power failure alarm message includes the target IoT device identifier, the target IoT device power failure timestamp, and the target IoT device context information at the moment of power failure. Based on the target power failure alarm message, it initiates a target IoT device power failure analysis process to analyze and issue warnings for the power failure event of the target IoT device.
[0009] Compared with the prior art, the present invention has the following beneficial effects: This invention first detects the target power supply status of the target IoT device in real time. Then, at preset time intervals, it determines whether the target power supply is detected to be in a power-off state. If so, it generates a target power failure alarm message through the target backup power supply. Finally, based on the target power failure alarm message, it initiates the target IoT device power failure analysis process to analyze and warn of the power failure event of the target IoT device. It can detect the disappearance of the device power failure within milliseconds, thereby achieving near real-time early warning. Attached Figure Description
[0010] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0011] in: Figure 1 This is a flowchart illustrating an implementation method for a real-time power outage warning method for IoT-based devices in one embodiment. Figure 2 This is a flowchart of another implementation of a method for real-time power outage warning of IoT-based devices in one embodiment. Figure 3 This is a framework diagram of one embodiment of an IoT-based device power failure real-time early warning device. Figure 4 This is a structural block diagram of one embodiment of a computer device. Detailed Implementation
[0012] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0013] Please see Figure 1 , combined Figure 1 It can be seen that the real-time power failure early warning method for devices based on the Internet of Things according to an embodiment of the present invention includes the following steps: Step S101: Real-time detection of the target power supply status of the target power supply corresponding to the target IoT device.
[0014] In this step, the device-side edge agent runs continuously. On the one hand, it continuously monitors the voltage signal of the target power supply, and on the other hand, it (optionally) records power quality data (such as voltage value and current value) to the local cache.
[0015] Step S102: Every target preset time interval, determine whether the target power supply is detected to be in a power-off state.
[0016] In this step, the edge agent determines whether it has detected a power outage of the target power supply (e.g., the voltage drops to zero). If not, it returns to continuous monitoring; if so, it immediately switches to backup power.
[0017] Step S103: If the target power supply is detected to be in a power failure state, a target power failure alarm message is generated through the target backup power supply. The target power failure alarm message includes the target IoT device identifier corresponding to the target IoT device, the target IoT device power failure timestamp, and the target IoT device context information corresponding to the target IoT device at the moment of power failure.
[0018] In this step, the edge agent, with the support of the target backup power supply, immediately initiates the "instantaneous alarm" process. It first (optionally) reads contextual information such as the current internal temperature and CPU load from the sensors, and encapsulates it into a data packet along with the device ID, the precise power outage timestamp, and any cached recent power quality data.
[0019] The target IoT device context information includes the target IoT device's internal temperature, current CPU load, and historical power quality data, as well as the target related device identifiers corresponding to related devices associated with the target IoT device.
[0020] Step S104: Based on the target power failure alarm information, initiate the target IoT device power failure analysis process to analyze and issue warnings for the power failure event of the target IoT device.
[0021] In this step, the target power failure alarm information is first sent to the target cloud service platform. Then, after the target cloud service platform receives the target power failure alarm information, it initiates the target IoT device power failure analysis process to analyze and warn of the power failure event of the target IoT device.
[0022] Optionally, after the alarm receiving unit of the cloud service platform receives the target power failure alarm information, the intelligent analysis engine is triggered. The engine first queries the device topology database to determine the physical location (e.g., XX cabinet in XX building XX server room) or logical group (e.g., all devices connected to XX switch) of the target IoT device. Secondly, the engine performs correlation analysis, searching for other devices in the same location or group within a short time window (e.g., 30 seconds) before and after the alarm time point to see if they have similar power failure alarms.
[0023] Please see Figure 2 , combined Figure 2 It can be seen that the real-time power failure early warning method for devices based on the Internet of Things according to an embodiment of the present invention includes the following steps: The system architecture of this embodiment includes: IoT devices (such as surveillance cameras), smart sockets, a local area network gateway (such as a router), and a cloud platform server. The IoT devices connect to mains power through the smart sockets and are connected to the gateway via Wi-Fi or Ethernet. The gateway continuously and passively listens for all data packets within the local area network, especially ARP requests / responses and mDNS broadcasts from the IoT devices, using these as "presence signals" and reporting them to the cloud platform. Simultaneously, the IoT devices continuously send service data (such as video streams) to the cloud platform. The smart sockets periodically report power parameters such as voltage and current to the cloud platform.
[0024] Step S201: Real-time detection of the target power supply status of the target power supply corresponding to the target IoT device.
[0025] In this step, the device-side edge agent runs continuously. On the one hand, it continuously monitors the voltage signal of the target power supply, and on the other hand, it (optionally) records power quality data (such as voltage value and current value) to the local cache.
[0026] Step S202: Every target preset time interval, determine whether the target power supply is detected to be in a power-off state.
[0027] In this step, the edge agent determines whether it has detected a power outage of the target power supply (e.g., the voltage drops to zero). If not, it returns to continuous monitoring; if so, it immediately switches to backup power.
[0028] Step S203: If the target power supply is not detected to be in a power-off state, then obtain the target device service data stream corresponding to the target IoT device, and obtain the target device local area network existence signal related to the target IoT device, wherein the target device local area network existence signal is sent by the target network gateway in the same local area network.
[0029] In this step, when the target IoT device (such as a surveillance camera) is unexpectedly powered off: 1. Its business data stream (video stream) is immediately interrupted. 2. Almost simultaneously, the gateway discovers that it can no longer listen to any ARP packets or other LAN signals from the camera and immediately reports its "existence signal disappearance" to the cloud platform. 3. The cloud platform server receives these two almost synchronous signals, "business data stream interruption" and "existence signal disappearance," and then... Figure 3 The logic, based on the collaborative judgment, indicates a "device power failure." 4. The cloud platform then checks the status of the smart socket and finds that its current and voltage instantly dropped to zero without any prior fluctuations. According to... Figure 4 The root cause analysis module determined the cause to be "human-initiated power disconnection". 5. The cloud platform immediately generates a high-level alarm, such as: "[Urgent] The surveillance camera at location XX has been intentionally powered off. Please check on-site immediately!", and notifies the administrator via SMS, App push, etc.
[0030] Step S204: Based on the target device's service data stream and the target device's local area network presence signal, provide a real-time power outage warning for the target IoT device.
[0031] In this embodiment, optionally, the step of providing real-time power outage warnings to the target IoT device based on the target device's service data stream and the target device's local area network presence signal includes: First, determine whether the continuity of the target device's service data stream is interrupted.
[0032] Second, if the continuity of the target device's service data stream is interrupted, the system will determine in real time whether the target device's local area network presence signal has disappeared.
[0033] Third, if the local area network presence signal of the target device is in a state of disappearance, a joint judgment is made based on the interruption status of the device's service data stream and the disappearance status of the local area network presence signal of the target device to generate target power outage warning information about the target IoT device.
[0034] In this embodiment, optionally, the step of collaboratively determining the interruption status of the device's service data stream and the disappearance status of the target device's local area network presence signal to generate target power outage warning information for the target IoT device includes: First, if the device's service data stream is interrupted, but the target device's local area network presence signal continues to exist, then the target IoT device is determined to have a network link failure.
[0035] Second, if the device's business data stream and the target device's local area network presence signal are interrupted simultaneously, it is determined that the target IoT device has experienced a power outage or a device malfunction.
[0036] In this embodiment, optionally, the target IoT device power failure analysis process includes: First, determine whether other related devices located in the same physical area or logical group as the target IoT device have reported power outage alarm information within the target preset time window corresponding to the power outage timestamp of the target IoT device.
[0037] Second, if, within the target preset time window corresponding to the power outage timestamp of the target IoT device, other related devices in the same physical area or logical group as the target IoT device report power outage alarm information for the target related device, a target IoT device area power outage warning is generated; otherwise, a target single device power outage warning is generated.
[0038] This step generates differentiated early warnings based on the analysis results.
[0039] Scenario A: If multiple devices in the same group alarm simultaneously, it is determined to be a high probability area power outage, generating an "Emergency Warning for Area Power Outage" and notifying the relevant person in charge.
[0040] Scenario B: If only this device triggers a single alarm, and the context information it reports indicates that the power quality has been unstable recently, a "Single Device Power Failure Warning" will be generated, along with possible cause suggestions.
[0041] Scenario C: If there is only a single point of alarm and the network connection is also lost, and more context cannot be obtained, a "single device disconnection warning" will be generated, which requires further investigation by maintenance personnel.
[0042] In this embodiment, optionally, before the real-time detection of the target power supply status of the target power supply corresponding to the target IoT device, the following steps are included: First, continuously monitor the target power quality parameters corresponding to the target power supply, including the target voltage and the target current.
[0043] Second, determine whether the power quality parameters exhibit abnormal fluctuations and reach the target preset fluctuation threshold.
[0044] Third, if the power quality parameters show abnormal fluctuations and reach the target preset fluctuation threshold, then target power degradation warning information is generated through the target backup power supply.
[0045] Fourth, based on the target power degradation warning information, proactive warnings are issued for the target IoT device before it loses power.
[0046] The step of providing proactive early warning of the target IoT device before power failure based on the target power degradation early warning information includes: First, the target power degradation warning information is sent to the target cloud service platform. Then, after the target cloud service platform receives the target power degradation warning information, it initiates an active warning for the target IoT device before the target IoT device loses power.
[0047] In this embodiment, optionally, determining whether the target power supply is detected to be in a power-off state every target preset time interval includes: First, obtain the target power parameters reported by the smart socket of the target device that is electrically connected to the target IoT device.
[0048] Second, based on the target power parameters, a refined determination is made regarding the cause of the power outage of the target IoT device, including: If the target power parameters show a sudden drop in voltage or an abnormal current before the target IoT device is powered off, the power outage is determined to be caused by grid fluctuations.
[0049] If the target power parameter becomes zero the instant the target IoT device is powered off without any preceding fluctuations, it is determined to be a deliberate power disconnection.
[0050] In one scenario, a smart socket connected to an industrial sensor detected a continuous drop in voltage (a precursor to grid fluctuations). 1. The smart socket immediately reported this "abnormal voltage fluctuation signal" to the cloud platform. 2. The cloud platform's data recovery module was triggered, immediately sending an "emergency data upload command" to the industrial sensor. 3. Upon receiving the command, the sensor paused some non-critical tasks and sent all cached, unuploaded sensor readings to the cloud platform with the highest priority. 4. A few seconds later, the voltage dropped below the device's operating threshold, and the sensor was powered off. At this point, most of the critical data had been successfully uploaded, effectively preventing data loss.
[0051] Please see Figure 3 , combined Figure 3It can be seen that the IoT-based real-time power outage early warning device 100 of this embodiment includes: The power supply detection module 10 is used to detect the target power supply status of the target power supply corresponding to the target IoT device in real time. The power failure detection module 20 is used to determine whether the target power supply is detected to be in a power failure state at every target preset time interval. The power failure alarm module 30 is used to generate target power failure alarm information through the target backup power supply when the target power supply is detected to be in a power failure state. The target power failure alarm information includes the target IoT device identifier corresponding to the target IoT device, the target IoT device power failure timestamp, and the target IoT device context information corresponding to the target IoT device at the moment of power failure. The power outage analysis and alarm module 40 is used to initiate the target IoT device power outage analysis process based on the target power outage alarm information to analyze and warn of the power outage event of the target IoT device.
[0052] Figure 4 An internal structural diagram of a computer device in one embodiment is shown. This computer device can specifically be a terminal or a server. Figure 4 As shown, the computer device includes a processor, a memory, and a network interface connected via a device bus. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores operating devices and may also store a computer program. When executed by the processor, this computer program enables the processor to implement the aforementioned IoT-based real-time power failure warning method for devices. The internal memory may also store a computer program, which, when executed by the processor, enables the processor to implement the aforementioned IoT-based real-time power failure warning method for devices. Those skilled in the art will understand that… Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0053] In another embodiment, a computer device is provided, including a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the following steps: The system continuously monitors the target power supply status of the target IoT device in real time. Every preset time interval, it determines whether the target power supply is detected to be in a power-off state. If so, it generates a target power failure alarm message using the target backup power supply. The target power failure alarm message includes the target IoT device identifier, the target IoT device power failure timestamp, and the target IoT device context information at the moment of power failure. Based on the target power failure alarm message, it initiates a target IoT device power failure analysis process to analyze and issue warnings for the power failure event of the target IoT device.
[0054] In another embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, causes the processor to perform the following steps: The system continuously monitors the target power supply status of the target IoT device in real time. Every preset time interval, it determines whether the target power supply is detected to be in a power-off state. If so, it generates a target power failure alarm message using the target backup power supply. The target power failure alarm message includes the target IoT device identifier, the target IoT device power failure timestamp, and the target IoT device context information at the moment of power failure. Based on the target power failure alarm message, it initiates a target IoT device power failure analysis process to analyze and issue warnings for the power failure event of the target IoT device.
[0055] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0056] This invention first detects the target power supply status of the target IoT device in real time. Then, at preset time intervals, it determines whether the target power supply is detected to be in a power-off state. If so, it generates a target power failure alarm message through the target backup power supply. Finally, based on the target power failure alarm message, it initiates the target IoT device power failure analysis process to analyze and warn of the power failure event of the target IoT device. It can detect the disappearance of the device power failure within milliseconds, thereby achieving near real-time early warning.
[0057] In summary, compared with the prior art, the beneficial effects of the present invention are as follows: 1. Extremely high real-time performance: Through the "power outage instant alarm" mechanism, the alarm latency is reduced from several minutes in traditional solutions to milliseconds, achieving true real-time early warning. The gateway passively monitors the device's presence signals on the local area network (such as ARP packets). These signals are natural byproducts of the device's activity within the local area network, eliminating the need to wait for heartbeat timeouts. The gateway can detect the disappearance of these signals within milliseconds of a device losing power (network port closed), thus achieving near real-time early warning.
[0058] 2. The false alarm rate is significantly reduced. Cloud-based intelligent analysis, through methods such as correlation checks, can effectively distinguish between real power outages and single-point network failures, greatly reducing false alarms. By using business data streams, LAN presence signals, and optional smart socket power parameters for multi-dimensional collaborative judgment, it effectively distinguishes between "real power outages" and "false power outages" (such as network problems), reducing the false alarm rate to an extremely low level.
[0059] 3. Possesses intelligent diagnostic capabilities. By reporting contextual information at the moment of power outage and performing correlation analysis, it can provide maintenance personnel with a preliminary judgment of the cause of the power outage (such as regional power outage, power failure of the device itself, etc.), greatly improving the efficiency of fault diagnosis. By analyzing the status of all devices under the gateway and the power data of the smart socket, it can automatically infer whether the power outage is due to the device itself, human disconnection, power grid fluctuations, or regional power outage, and provide accurate troubleshooting suggestions, greatly improving maintenance efficiency.
[0060] 4. Achieve proactive early warning: By increasing continuous monitoring of power quality, risks can be identified and early warnings issued before power outages occur, turning a passive approach into a proactive one and preventing problems before they happen.
[0061] 5. Effective data protection: By introducing a pre-warning data rescue mechanism, emergency data upload is triggered when signs of power outage are detected, maximizing the preservation of business data integrity and reducing the risk of data loss due to power outages.
[0062] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0063] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A method for real-time early warning of device power failure based on the Internet of Things, characterized in that, include: Real-time detection of the target power supply status of the target IoT device's corresponding target power supply; At preset time intervals, it is determined whether the target power supply is detected to be in a power-off state; If so, a target power failure alarm message is generated through the target backup power supply. The target power failure alarm message includes the target IoT device identifier corresponding to the target IoT device, the target IoT device power failure timestamp, and the target IoT device context information corresponding to the target IoT device at the moment of power failure. Based on the target power failure alarm information, the target IoT device power failure analysis process is initiated to analyze and issue early warnings for the power failure event of the target IoT device.
2. The IoT-based device power failure real-time early warning method according to claim 1, characterized in that, The step of determining whether the target power supply is detected to be in a power-off state at preset intervals includes: If no power supply to the target device is detected to be in a power-off state, the target device service data stream corresponding to the target IoT device is obtained, and the target device local area network presence signal related to the target IoT device is obtained, wherein the target device local area network presence signal is sent by the target network gateway in the same local area network. Based on the target device's business data stream and the target device's local area network presence signal, a real-time power outage warning is issued for the target IoT device.
3. The IoT-based device power failure real-time early warning method according to claim 2, characterized in that, The step of providing real-time power outage warnings to the target IoT device based on the target device's service data stream and the target device's local area network presence signal includes: Determine whether the continuity of the target device's service data stream is interrupted; If so, then determine in real time whether the local area network presence signal of the target device is in a state of disappearance; If so, a collaborative judgment is made based on the interruption status of the device's service data stream and the disappearance status of the target device's local area network presence signal to generate a target power outage warning message for the target IoT device.
4. The IoT-based device power failure real-time early warning method according to claim 3, characterized in that, The step of collaboratively determining the interruption status of the device's service data stream and the disappearance status of the target device's local area network presence signal to generate target power outage warning information for the target IoT device includes: If the device's service data stream is interrupted, but the target device's local area network presence signal continues to exist, then the target IoT device is determined to have a network link failure. If the device's service data stream and the target device's local area network presence signal are interrupted simultaneously, it is determined that the target IoT device has experienced a power outage or a device malfunction.
5. The method for real-time early warning of device power failure based on the Internet of Things according to claim 1, characterized in that, The target IoT device power failure analysis process includes: Determine whether other related devices located in the same physical area or logical group as the target IoT device have reported power outage alarm information within the target preset time window corresponding to the power outage timestamp of the target IoT device. If so, generate a power outage warning for the target IoT device area; otherwise, generate a power outage warning for the target single device.
6. The IoT-based device power failure real-time early warning method according to claim 1, characterized in that, Before the real-time detection of the target power supply status of the target power supply corresponding to the target IoT device, the following steps are included: The target power quality parameters corresponding to the target power supply are continuously monitored, and the power quality parameters include the target voltage and the target current. Determine whether the power quality parameters exhibit abnormal fluctuations and reach the target preset fluctuation threshold; If so, then target power deterioration warning information is generated through the target backup power supply; Based on the target power degradation warning information, proactive warnings are issued for the target IoT device before it loses power.
7. The IoT-based device power failure real-time early warning method according to claim 1, characterized in that, The step of determining whether the target power supply is detected to be in a power-off state at preset intervals includes: Obtain the target power parameters reported by the smart socket of the target device that is electrically connected to the target IoT device; Based on the target power parameters, a refined determination is made regarding the cause of the power outage of the target IoT device, including: If the target power parameters show a sudden drop in voltage or an abnormal current before the target IoT device is powered off, the power outage is determined to be caused by grid fluctuations. If the target power parameter becomes zero the instant the target IoT device is powered off without any preceding fluctuations, it is determined to be a deliberate power disconnection.
8. A device for real-time power outage early warning based on the Internet of Things, characterized in that, include: The power supply detection module is used to detect the target power supply status of the target IoT device in real time. The power failure detection module is used to determine whether the target power supply is detected to be in a power failure state at preset target intervals. The power failure alarm module is used to generate target power failure alarm information through the target backup power supply when the target power supply is detected to be in a power failure state. The target power failure alarm information includes the target IoT device identifier corresponding to the target IoT device, the target IoT device power failure timestamp, and the target IoT device context information corresponding to the target IoT device at the moment of power failure. The power outage analysis and alarm module is used to initiate the target IoT device power outage analysis process based on the target power outage alarm information to analyze and warn of power outage events of the target IoT device.
9. A computer-readable storage medium, characterized in that, The device stores a computer program, which, when executed by a processor, causes the processor to perform the IoT-based real-time power outage early warning method as described in any one of claims 1-7.
10. A computer device, characterized in that, The device includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the IoT-based real-time power outage warning method as described in any one of claims 1-7.