Equipment alarm method and device, electrical equipment and alarm

By generating alarm signal according to the time interval and occurrence of environmental data in the alarm device of the electrical equipment, the alarm problem generated by the existing technology due to the approach to the alarm threshold in the existing technology, which improves the accuracy of the alarm.

CN119360572AActive Publication Date: 2025-01-24GREE ELECTRIC APPLIANCE INC OF ZHUHAI

Patent Information

Application Number
CN202411324140.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-23
Publication Date
2025-01-24
Estimated Expiration
2044-09-23

AI Technical Summary

Technical Problem

In the prior art, the alarm device of electrical equipment is prone to false alarms or frequent alarms when the environmental data approaches the alarm threshold, resulting in inaccurate alarm results.

Method used

By obtaining the environmental data of the electrical equipment and determining that the data type is abnormal data, an alarm signal is generated based on the time interval and number of occurrences between the abnormal data and the previous N abnormal data. At the same time, when the data returns to normal, the number of occurrences is updated and the time interval is recorded to avoid false alarms.

Benefits of technology

It effectively avoids false alarms or frequent alarms caused by environmental data jittering near the alarm threshold, and improves the accuracy of equipment alarms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119360572A_ABST
    Figure CN119360572A_ABST
Patent Text Reader

Abstract

The invention relates to an equipment alarm method and device, electrical equipment and an alarm, and relates to the technical field of alarm. The method comprises the following steps: acquiring currently collected environmental data of electrical equipment; determining a data type of the environmental data, wherein the data type comprises abnormal data and normal data; and under the condition that the environment data is the abnormal data, generating an alarm signal to trigger an alarm according to the abnormal data, a first time interval between the first N times of continuous determination of the abnormal data, and a first occurrence frequency of the abnormal data. The method can avoid jitter alarm when the environment data is close to the alarm threshold.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of alarm technology, and in particular to an equipment alarm method and device, electrical equipment and an alarm. Background Art

[0002] With the continuous development of electrical technology, electrical equipment has become an indispensable part of daily life. In order to ensure safe use, these devices are usually equipped with alarm devices. For example, water heaters have built-in alarm devices that realize alarms through temperature monitoring.

[0003] In the prior art, an alarm device will sound an alarm when the collected environmental data exceeds a preset safety threshold. However, this method may cause frequent false alarms or repeated alarms due to fluctuations in environmental data near the threshold. Summary of the invention

[0004] Based on this, it is necessary to provide an equipment alarm method and device, electrical equipment and alarm to address the above technical problems, which can avoid jitter alarms caused by environmental data approaching the alarm threshold.

[0005] In a first aspect, the present application provides a device alarm method, the method comprising:

[0006] Obtain the environmental data of the electrical equipment collected at that time;

[0007] Determine a data type of the environmental data, the data type including abnormal data and normal data;

[0008] In the case that the environmental data is the abnormal data, an alarm signal is generated to trigger an alarm according to a first time interval between the abnormal data and the previous N consecutive times determined as abnormal data and a first number of occurrences of the abnormal data.

[0009] In one embodiment, the method further comprises:

[0010] When the environmental data is the normal data and the first number of occurrences is greater than a preset first initial value, the first number of occurrences is updated to the first initial value based on a second time interval between the normal data and the previous M consecutive times determined as normal data and a second number of occurrences of the normal data.

[0011] In one embodiment, generating an alarm signal to trigger an alarm according to a first time interval between the abnormal data and the previous N consecutive times that the abnormal data is determined, and a first number of occurrences of the abnormal data, comprises:

[0012] Determine whether the first time interval and the first number of occurrences meet a first preset condition, and if so, generate the alarm signal to trigger an alarm; if not, reacquire new environmental data, and return to execute the step of determining the data type of the environmental data;

[0013] The first preset condition includes that the first time interval is less than or equal to a preset first time threshold, and the first number of occurrences is greater than or equal to a preset first quantity threshold.

[0014] In one embodiment, the method further comprises:

[0015] Enter the observation status of repeating a grade;

[0016] updating the first occurrence number;

[0017] A first time interval between the abnormal data and the previous N consecutive determinations as abnormal data is determined.

[0018] In one embodiment, updating the first number of occurrences to the first initial value according to the normal data and the second time interval determined as normal data for the previous M times continuously, and the second number of occurrences of the normal data, comprises:

[0019] Determine whether the second time interval and the second number of occurrences meet a second preset condition, and if so, update the first number of occurrences to the first initial value; if not, reacquire new environmental data, and return to execute the step of determining the data type of the environmental data;

[0020] The second preset condition includes that the second time interval is less than or equal to a preset second time threshold, and the second number of occurrences is greater than or equal to a preset second quantity threshold.

[0021] In one embodiment, the method further comprises:

[0022] Enter the alarm recovery state;

[0023] updating the second occurrence number;

[0024] Determine a second time interval between the normal data and the previous M times of continuous determination as normal data.

[0025] In one embodiment, the method further comprises:

[0026] storing the environmental data in a preset buffer area;

[0027] When the remaining cache space of the cache area is less than or equal to a preset storage threshold, sending a data storage request;

[0028] When the number of sending failures corresponding to the data storage request is greater than a preset request threshold, at least part of the environmental data in the cache area is stored in a preset memory area, and at least part of the environmental data in the cache area is cleared.

[0029] In one embodiment, the method further comprises:

[0030] Updating the number of sending failures to a preset second initial value, and updating the cache flag to a preset first flag value;

[0031] When the number of sending failures is less than or equal to the request threshold and the data storage request is sent successfully, the target environment data is sent according to the cache flag corresponding to the cache area; wherein the target environment data includes at least part of the environment data in the cache area, or at least part of the environment data in the cache area and the memory area.

[0032] In one of the embodiments, sending the target environment data according to the cache flag bit corresponding to the cache area includes:

[0033] When the cache flag is the first flag value, all environmental collection data of the memory area and the cache area are sent, and the cache flag is updated to a second flag value;

[0034] When the cache flag is the second flag value, all environmental collection data of the cache area is sent.

[0035] In a second aspect, the present application provides a device alarm apparatus, the device comprising:

[0036] An acquisition module is used to acquire the environmental data of the electrical equipment collected at that time;

[0037] A determination module, used to determine a data type of the environmental data, wherein the data type includes abnormal data and normal data;

[0038] A generating module is used to generate an alarm signal to trigger an alarm according to a first time interval between the abnormal data and the previous N consecutive times determined as abnormal data and a first number of occurrences of the abnormal data when the environmental data is the abnormal data.

[0039] In a third aspect, the present application provides an electrical device, the electrical device comprising:

[0040] Electrical appliance body;

[0041] An alarm device is arranged on the electrical appliance body, and is used to obtain the environmental data of the electrical equipment determined at the time, determine the data type of the environmental data, and when the environmental data is the abnormal data, generate an alarm signal to trigger an alarm based on the first time interval between the abnormal data and the previous N consecutive times determined as abnormal data, and the first number of occurrences of the abnormal data; wherein the data type includes abnormal data and normal data.

[0042] In one embodiment, the electrical device also includes a memory area, the alarm is connected to the host computer and the memory area respectively, the alarm includes a cache area, and the alarm is also used to store the environmental data acquired this time in the cache area, and send a data storage request when the remaining cache space in the cache area is less than a preset storage threshold, and when the number of sending failures corresponding to the data storage request is greater than the preset request threshold, at least part of the environmental data in the cache area is stored in the memory area, and at least part of the environmental data in the cache area is cleared.

[0043] In a fourth aspect, the present application provides an alarm device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0044] In a fifth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the steps of the above method when executed by a processor.

[0045] In a sixth aspect, the present application provides a computer program product, including a computer program, which implements the steps of the above method when executed by a processor.

[0046] The above-mentioned equipment alarm method and device, electrical equipment and alarm, by obtaining the environmental data of the electrical equipment collected at the time, determine the data type of the environmental data, and when the environmental data is abnormal data, generate an alarm signal to trigger an alarm based on the first time interval between the abnormal data and the previous N times of being determined as abnormal data, and the first number of occurrences of the abnormal data. The equipment alarm method realizes effective identification of the alarm state of the electrical equipment through dynamic retention observation of the environmental data. Specifically, when abnormal data is detected for the first time, the data type of subsequent environmental data continues to be obtained and determined, and in the process of triggering the alarm, not only the first number of occurrences of the abnormal data, but also the time interval between each adjacent two abnormal data in multiple consecutive abnormal data is considered. Compared with the related art that immediately alarms when the alarm threshold is exceeded, the equipment alarm method provided by the present application will not alarm immediately when the alarm threshold is exceeded, but identifies whether there is a situation to be alarmed from multiple dimensions of the number of occurrences and the time interval, thereby avoiding false alarms or frequent alarms caused by the jitter of environmental data near the alarm threshold, thereby improving the accuracy of equipment alarms. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] FIG1 is a schematic diagram of a flow chart of a device alarm method in one embodiment;

[0048] FIG2 is a second flow chart of a device alarm method in one embodiment;

[0049] FIG3 is a third flow chart of a device alarm method in one embodiment;

[0050] FIG4 is a fourth flow chart of a device alarm method in one embodiment;

[0051] FIG5 is a fifth flow chart of a device alarm method in one embodiment;

[0052] FIG6 is a sixth flow chart of a device alarm method in one embodiment;

[0053] FIG. 7 is a seventh flow chart of a device alarm method in one embodiment;

[0054] FIG8 is a flow chart of an eighth device alarm method in one embodiment;

[0055] FIG9 is a ninth flow chart of a device alarm method in one embodiment;

[0056] FIG10 is an application scenario diagram of a device alarm method in one embodiment;

[0057] FIG11 is a block diagram of a device alarm device in one embodiment;

[0058] FIG. 12 is a diagram showing the internal structure of an alarm in one embodiment. DETAILED DESCRIPTION

[0059] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0060] The device alarm method provided in the embodiment of the present application can be applied to electrical equipment, and can also be applied to a system including a terminal and / or a server. Among them, the electrical equipment can be a water heater, a wall-mounted boiler, a stove, and other equipment with alarm requirements. The terminal can be, but is not limited to, an alarm, a computer, an Internet of Things device, etc. The server can be implemented as an independent server or a server cluster composed of multiple servers.

[0061] In one embodiment, as shown in FIG. 1 , a device alarm method is provided. This embodiment is described by taking the method applied to an alarm as an example. The method includes the following steps S102 to S106 .

[0062] S102: Obtaining the environmental data of the electrical equipment collected at that time.

[0063] Environmental data refers to the data collected for electrical equipment alarms. For example, if the alarm mode of a water heater is a temperature alarm, the corresponding environmental data may include the temperature data of the water heater; if the alarm mode of a wall-mounted boiler is a carbon monoxide (CO) leak alarm, the corresponding environmental data may include CO concentration data; if the alarm mode of a stove is a gas leak alarm, the corresponding environmental data may include gas concentration data. In the application, environmental data can be set according to the alarm mode of the electrical equipment, and this is not limited here.

[0064] In the application, the environmental data of the electrical equipment can be continuously collected. Exemplarily, the environmental data of the electrical equipment is collected according to a preset period. Among them, the environmental data of the electrical equipment collected at this time can be understood as the environmental data of the electrical equipment currently collected. For example, taking the environmental data including temperature data as an example, the environmental data currently collected can be understood as a temperature data collected for the water heater at the current moment.

[0065] S104: Determine the data type of the environmental data, where the data type includes abnormal data and normal data.

[0066] Exemplarily, the alarm can determine the data type of the environmental data based on the environmental data and the preset alarm threshold. Specifically, when the environmental data is greater than the alarm threshold, the data type of the environmental data is determined to be abnormal data; when the environmental data is less than or equal to the alarm threshold, the data type of the environmental data is determined to be normal data. Among them, the alarm threshold is pre-set, and the corresponding value can be set according to the actual application scenario, and no excessive restrictions are made here. For example, the electrical equipment is a water heater, and correspondingly, the alarm threshold is a temperature threshold. For example, the temperature threshold can be set to 90°C or other temperature values. It should be noted that the above is only an exemplary description and should not be understood as a specific limitation on the alarm threshold.

[0067] S106: When the environmental data is abnormal data, an alarm signal is generated to trigger an alarm according to a first time interval between the abnormal data and the previous N consecutive times that the environmental data is determined to be abnormal data and a first number of occurrences of the abnormal data.

[0068] The previous N times are relative to the currently determined abnormal data, and N is greater than or equal to 1. The first time interval can be understood as the time interval between any two adjacent abnormal data. The first number of occurrences refers to the number of occurrences in which the N+1 environmental data collected currently and the previous N times are continuously determined as abnormal data. The first number of occurrences is equal to N+1.

[0069] For example, taking the electrical equipment as a water heater, in the application, the continuously collected environmental data is arranged in time as a temperature data sequence {A1, A2, A3, A4, A5, A6}, and the currently collected temperature data is A6. If the temperature data A1, A2, A3 and A4 are normal data, and the current temperature data A6 and the previously collected temperature data A5 are both abnormal data, then the first occurrence number is 2, N is 1, and the first time interval includes the first time interval T56 between the temperature data A5 and the temperature data A6. Based on this, an alarm signal can be generated according to the first occurrence number 2 and the first time interval T56 to trigger an alarm.

[0070] The above-mentioned device alarm method determines the data type of the environmental data by acquiring the environmental data of the electrical equipment collected at that time. When the environmental data is abnormal data, an alarm signal is generated to trigger an alarm based on the first time interval between the abnormal data and the previous N consecutive times determined as abnormal data and the first number of occurrences of the abnormal data. The device alarm method realizes effective identification of the pending alarm state of the electrical equipment through dynamic retention observation of the environmental data. Specifically, when abnormal data is detected for the first time, the data type of subsequent environmental data continues to be acquired and determined, and in the process of triggering the alarm, not only the first number of occurrences of the abnormal data but also the time interval between each adjacent two abnormal data in multiple consecutive abnormal data are considered. Compared with the related art that immediately alarms when the alarm threshold is exceeded, the device alarm method provided in the present application will not alarm immediately when the alarm threshold is exceeded, but identifies whether there is a pending alarm situation from multiple dimensions of the number of occurrences and the time interval, thereby avoiding false alarms or frequent alarms caused by the jitter of environmental data near the alarm threshold, thereby improving the accuracy of device alarms.

[0071] In one embodiment, the device alarm method may further include step S108: when the environmental data is normal data and the first number of occurrences is a preset first initial value, the first number of occurrences is updated to a first initial value based on the normal data and the second time interval determined as normal data for the previous M consecutive times and the second number of occurrences of the normal data.

[0072] The first M times are relative to the currently determined abnormal data, and M is greater than or equal to 1. The second time interval can be understood as the time interval between any two adjacent normal data. The second number of occurrences refers to the number of occurrences in which the M+1 environmental data collected currently and the previous M times are continuously determined as normal data. Among them, the first number of occurrences is equal to M+1. The first initial value is pre-set and can be understood as the default value of the first number of occurrences. For example, the first initial value can be 0.

[0073] For example, taking the electrical equipment as a water heater, in the application, the continuously collected environmental data is arranged in time as a temperature data sequence {A1, A2, A3, A4, A5, A6}, the first initial value is 0, and the currently collected temperature data is A6. If the temperature data A1, A2, and A3 are normal data, the temperature data A4 is abnormal data, and the current temperature data A6 and the previously collected temperature data A5 are both normal data, then in the current case, the first occurrence number is 1>0, N=0, the second occurrence number is 2, M=1, and the second time interval includes the second time interval T56 between the temperature data A5 and the temperature data A6. Based on this, the first occurrence number can be updated to 0 according to the second occurrence number 2 and the second time interval T56.

[0074] The above-mentioned device alarm method, when the environmental data is normal data and the first occurrence number is greater than the preset first initial value, updates the first occurrence number to the first initial value based on the normal data and the second time interval for the previous M consecutive times determined as normal data, and the second occurrence number of the normal data, wherein the first occurrence number is greater than the first initial value, indicating that at least one abnormal data has been detected and the conditions for triggering an alarm are not met. In this case, the currently collected environmental data is normal data, indicating that the electrical equipment may have returned to a normal working state, that is, the environmental data of the electrical equipment is jittering near the alarm threshold. In this regard, the present application continues to acquire and determine the data type of subsequent environmental data when normal data is detected for the first time, and identifies whether the electrical equipment has resumed normal operation in combination with the second occurrence number of normal data and the second time interval between each adjacent two normal data in these normal data, and when it is determined that the electrical equipment has returned to normal, records the occurrence number of subsequent abnormal data by updating the first occurrence number to the first initial value. Based on this, the device alarm method provided in the present application can also identify the alarm recovery scenario from multiple dimensions of the second occurrence number and the second time interval of normal data, thereby avoiding false alarms caused by environmental data accidentally exceeding the alarm threshold and then returning to normal data, thereby further improving the accuracy of device alarms.

[0075] In one embodiment, as shown in FIG. 2 , step S106 , generating an alarm signal to trigger an alarm based on the first time interval between the abnormal data and the previous N consecutive times determined as abnormal data and the first number of occurrences of the abnormal data, may include the following steps S202 to S206 .

[0076] Step S202: Determine whether the first time interval and the first number of occurrences meet a first preset condition, if so, execute step S204; if not, execute step S206.

[0077] Among them, the first preset condition includes that the first time interval is less than or equal to the preset first time threshold, and the first number of occurrences is greater than or equal to the preset first quantity threshold. The first time threshold is preset and can be set accordingly through experiments, experience or actual application scenarios, for example, the type of electrical equipment, the collection period of environmental data and other factors, which are not limited here. The first quantity threshold is preset, and the size of the first quantity threshold will affect the sensitivity of the device alarm; specifically, the smaller the first quantity threshold, the smaller the number of abnormal data that needs to be continuously determined, and the first preset condition is relatively loose; the larger the first quantity threshold, the more the number of abnormal data that needs to be continuously determined, and the first preset condition is relatively harsh. In application, it can be set according to actual alarm needs, which is not limited here.

[0078] S204: Generate an alarm signal to trigger an alarm.

[0079] S206: reacquire new environmental data, and return to the step of determining the data type of the environmental data. That is, after acquiring new environmental data, return to the aforementioned step S104.

[0080] The above-mentioned device alarm method realizes the identification of the alarm scene by comparing the first number of occurrences with the first quantity threshold, and comparing the first time interval with the first time threshold. Specifically, the first time interval is less than or equal to the first time threshold, and the first number of occurrences is greater than or equal to the preset first quantity threshold, indicating that abnormal data has been detected for multiple consecutive times. In this regard, it can be determined that the electrical device is in a state of waiting for alarm. Therefore, an alarm signal is generated to trigger the alarm. Otherwise, it can be determined that the electrical device has not entered the state of waiting for alarm, or that the electrical device is in a state of near alarm. In this case, the status of the electrical device can continue to be collected and monitored. In this way, false alarms or frequent alarms caused by the jitter of environmental data near the alarm threshold are avoided, thereby improving the accuracy of device alarms.

[0081] In one embodiment, as shown in FIG. 3 , before step S202 , the device alarm method further includes the following steps S302 to S306 .

[0082] S302: Enter the retention observation state. The retention observation state is a pre-set working state. In the retention observation state, it indicates that abnormal data has been detected and no alarm will be given immediately, but the environmental data of the electrical equipment will continue to be collected and detected.

[0083] S304: Update the first occurrence number. Exemplarily, the first occurrence number is increased by one, and the increased first occurrence number is recorded.

[0084] S306: Determine a first time interval between the abnormal data and the previous N consecutive determinations as abnormal data.

[0085] The above-mentioned device alarm method will not immediately alarm when the currently collected environmental data is determined to be abnormal data, but will enter a retention observation state, and by updating the first number of occurrences and determining the first time interval between the abnormal data and the previous N consecutive times determined as abnormal data, it is possible to trigger an alarm based on the first number of occurrences of the abnormal data and the corresponding first time interval, thereby avoiding false alarms or frequent alarms caused by the jitter of environmental data near the alarm threshold, thereby improving the accuracy of device alarms.

[0086] In one embodiment, as shown in FIG. 4 , step S108, based on the normal data and the second time interval determined as normal data for the previous M times, and the second occurrence number of the normal data, updates the first occurrence number to the first initial value, and may include the following steps S402 to S406.

[0087] S402: Determine whether the second time interval and the second number of occurrences meet a second preset condition. If so, execute the following step S404; if not, execute the following step S406.

[0088] Among them, the second preset condition includes that the second time interval is less than or equal to the preset second time threshold, and the second number of occurrences is greater than or equal to the preset second quantity threshold. The second time threshold is preset and can be set accordingly through experiments, experience or actual application scenarios, for example, the type of electrical equipment, the collection period of environmental data and other factors, which are not limited here. The second quantity threshold is preset, and the size of the second quantity threshold will affect the accuracy of the device alarm; specifically, the smaller the second quantity threshold, the smaller the number of data that needs to be continuously determined as normal, and the second preset condition is relatively loose; the larger the second quantity threshold, the more the number of data that needs to be continuously determined as normal, and the second preset condition is relatively harsh. In the application, it can be set according to the actual alarm needs, which is not limited here.

[0089] S404: Update the first occurrence number to a first initial value.

[0090] S406: reacquire new environmental data and return to the step of determining the data type of the environmental data. That is, after acquiring new environmental data, return to the aforementioned step S104.

[0091] The above-mentioned device alarm method realizes the identification of the alarm recovery scenario by comparing the second number of occurrences with the second quantity threshold, and comparing the second time interval with the second time threshold. Specifically, the second time interval is less than or equal to the second time threshold, and the second number of occurrences is greater than or equal to the preset second quantity threshold, indicating that normal data has been detected for many consecutive times. In this regard, it can be determined that the electrical device is in an alarm recovery state, or that the electrical device has recovered from the alarm waiting state to the normal working state. Therefore, the first number of occurrences can be updated to the first initial value to record subsequent abnormal data; otherwise, it can be determined that the electrical device has not yet recovered to the normal working state. In this case, the status of the electrical device can continue to be collected and monitored to issue an alarm or restore the alarm. In this way, false alarms or frequent alarms caused by the jitter of environmental data near the alarm threshold are avoided, thereby improving the accuracy of equipment alarms.

[0092] In one embodiment, as shown in FIG. 5 , before step S402 , the device alarm method further includes the following steps S502 to S506 .

[0093] S502: Entering the alarm recovery state. The alarm recovery state is a pre-set working state. Being in the alarm recovery state indicates that normal data is detected after abnormal data is detected. In this case, the environmental data of the electrical equipment is continuously collected and detected to determine whether the electrical equipment has recovered to a normal working state.

[0094] S504: Update the second occurrence number. Exemplarily, the second occurrence number is increased by one, and the increased second occurrence number is recorded.

[0095] S506: Determine a second time interval between the normal data and the previous M times of continuous determination as normal data.

[0096] The above-mentioned equipment alarm method enters an alarm recovery state when the currently collected environmental data is determined to be normal data and at least one abnormal data has been detected, and by updating the second occurrence number and determining the second time interval between the normal data and the previous M consecutive times determined as normal data, it is possible to update the first occurrence number to a first initial value based on the second occurrence number of the normal data and the corresponding second time interval, that is, to determine that the electrical equipment has returned to a normal working state, and re-monitor the subsequently collected environmental data, thereby avoiding false alarms caused by environmental data accidentally exceeding the alarm threshold and then returning to normal data, thereby improving the accuracy of equipment alarms.

[0097] In one embodiment, as shown in FIG. 6 , the device alarm method further includes the following steps S602 to S606 .

[0098] S602: Storing environmental data in a preset buffer area.

[0099] The cache area is a pre-equipped cache area that can be used to cache environmental data. In the application, the alarm can store the acquired environmental data in the cache area.

[0100] S604: When the remaining cache space in the cache area is less than or equal to a preset storage threshold, a data storage request is sent.

[0101] The storage threshold is pre-set and can be set according to the size of the storage space in the cache area, the size of the storage area occupied by the environmental data, and other factors. Exemplarily, the storage threshold is zero. When the remaining cache space in the cache area is less than or equal to the storage threshold, it indicates that the remaining cache space cannot meet the subsequent environmental data storage requirements. The data storage request is used to request the storage of environmental data in the cache area. In the application, the alarm can be connected to the host computer through the network, and in the networked state, the data storage request can be sent to the host computer through the network. Among them, the network can include a wireless network (WiFi), Ethernet or other types of networks, which are not limited here.

[0102] S606: When the number of sending failures corresponding to the data storage request is greater than a preset request threshold, at least part of the environmental data in the cache area is stored in a preset memory area, and at least part of the environmental data in the cache area is cleared.

[0103] The number of failed transmissions refers to the number of times the alarm has not successfully sent the data storage request to the host computer. The request threshold is preset and can be set according to experience or actual application requirements, and is not limited too much here. Exemplarily, the request threshold is zero. The number of failed transmissions corresponding to the data storage request is greater than the preset request threshold, indicating that the alarm and the host computer are disconnected from the network, and the alarm cannot send the environmental data to the host computer for storage. The memory area is pre-set and can be used to store environmental data. Exemplarily, the alarm is provided with a memory, and the type of the memory is flash memory (FLASH). Among them, at least part of the environmental data stored in the preset memory area can be part of the environmental data in the cache area, or all the environmental data in the cache area. It can be set according to actual conditions and is not limited here. After clearing at least part of the environmental data in the cache area, the remaining storage space of the cache area is expanded to store the environmental data collected subsequently.

[0104] The above-mentioned device alarm method stores environmental data in a preset cache area, sends a data storage request when the remaining cache space in the cache area is less than or equal to a preset storage threshold, and when the number of sending failures corresponding to the data storage request is greater than the preset request threshold, stores at least part of the environmental data in the cache area in a preset memory area, and clears at least part of the environmental data in the cache area. Therefore, when the remaining storage space in the cache area cannot meet the storage requirements of subsequent environmental data, by comparing the number of sending failures with the preset request threshold, it is identified that the network is disconnected from the host computer. In this case, through the preset memory area, at least part of the environmental data in the cache area is copied to the memory area for storage, and the environmental data in the cache area can be cleared, so that the subsequently collected environmental data can be stored in the cache area, avoiding the problem of data loss caused by the effective data cache in the disconnected state.

[0105] In one embodiment, please continue to refer to FIG. 6 , the device alarm method further includes the following steps S608 and S610 .

[0106] S608: Update the number of sending failures to a preset second initial value, and update the cache flag to a preset first flag value.

[0107] The second initial value is pre-set and can be understood as the initial value of the number of failed transmissions corresponding to the data storage request. Exemplarily, the second initial value is zero. The first flag value is pre-set and is used to indicate that the memory area stores environmental data. The first flag value can be any suitable value and is not limited too much here. Exemplarily, the first flag value is 1.

[0108] In the application, after the alarm stores at least part of the environmental data in the buffer area to the preset memory area and clears at least part of the environmental data in the buffer area, the number of failed transmissions can be updated to 0 and the cache flag can be updated to 1.

[0109] S610: When the number of sending failures is less than or equal to the request threshold and the data storage request is sent successfully, the target environment data is sent according to the cache flag corresponding to the cache area.

[0110] Wherein, the situation where the number of transmission failures is less than or equal to the request threshold and the data storage request is successfully sent indicates that the alarm is connected to the host computer. In this case, the target environment data can be sent according to the cache flag corresponding to the cache area. Wherein, the target environment data includes at least part of the environment data in the cache area, or at least part of the environment data in the cache area and the memory area. Wherein, different values ​​of the cache flag correspond to different target environment data. For details, please refer to the following related introduction.

[0111] The above-mentioned device alarm method updates the number of failed transmissions to a preset second initial value, and updates the cache flag to a preset first flag value, so that when the remaining storage space in the cache area is again less than or equal to the preset storage threshold, the updated number of failed transmissions can be used to identify the network status between the alarm and the host computer, thereby avoiding the problem of data loss caused by insufficient cache and being in a disconnected state, thereby improving the reliability of the device alarm method; and, by updating the cache flag to the first flag value, it is indicated that the memory area stores environmental data, so that when it is subsequently in a networked state, the environmental data in the memory area can be sent to the host computer according to the first flag value; in addition, the device alarm method also sends the target environmental data according to the cache flag corresponding to the cache area when the number of failed transmissions is less than or equal to the request threshold and the data storage request is sent successfully, that is, in a networked state, the environmental data stored in the cache area and / or the memory area can be sent to the host computer for storage through the network, thereby achieving effective storage of environmental data and further improving the reliability of the device alarm method.

[0112] In one embodiment, as shown in FIG. 7 , the above step S610 , sending the target environment data according to the cache flag bit corresponding to the cache area, may include the following steps S702 and S704 .

[0113] S702: When the cache flag is the first flag value, all environmental collection data of the memory area and the cache area are sent, and the cache flag is updated to the second flag value.

[0114] S704: When the cache flag is the second flag value, all environmental collection data in the cache area are sent.

[0115] Among them, the first flag value is different from the second flag value. When the cache flag is the first flag value, it indicates that the memory area stores environmental data. In this case, all environmental collection data in the memory area and the cache area can be integrated and sent to the host computer, and all environmental data in the cache area can be cleared to store the subsequently collected environmental data. When the cache flag is the second flag value, it indicates that the memory area does not store environmental data. In this case, all environmental data in the memory area can be sent to the host computer, and all environmental data in the cache area can be cleared to store the subsequently collected environmental data. In the application, if the remaining storage space in the memory area is zero and all environmental data in the memory area has been sent to the host computer, all environmental data in the memory area can be cleared; or, after the environmental data in the memory area is sent to the host computer, the environmental data in the memory area is cleared accordingly to provide more storage space to store new environmental data.

[0116] The above-mentioned device alarm method sends all environmental collection data of the memory area and the cache area when the cache flag is the first flag value, and updates the cache flag to the second flag value, and sends all environmental collection data of the cache area when the cache flag is the second flag value. The method identifies whether the memory area stores environmental data through the cache flag. In this way, all environmental data in the cache area can be sent to the host computer in a networked state, or all environmental data in the cache area and the memory area can be sent to the host computer. The environmental data is effectively stored by the host computer to provide sufficient storage space for the subsequently collected environmental data.

[0117] In one embodiment, as shown in FIG8 to FIG10, a device alarm method is provided, and the device alarm method is applied to an alarm as an example for explanation. Exemplarily, the alarm includes a data acquisition module, a data processing module, an alarm response module, and a data reporting module. Exemplarily, the data acquisition module may include a sensor; the data processing module may include a processor; and the alarm response module may include at least one of a buzzer and an indicator light.

[0118] Among them, the data acquisition module mainly collects environmental data, and the collected environmental data will be sent to the data processing module for processing. The data processing module includes a data cache area, an external flash and a data comparison unit. After the data processing module receives the environmental data sent by the data acquisition module, it will be stored in the data cache area. The data comparison unit will compare the data in the data cache area with the preset alarm threshold. If the environmental data does not exceed the preset alarm threshold, it will continue to cache. Otherwise, the data comparison unit will send the abnormal data to the alarm response module.

[0119] At this time, the alarm response module will enter the observation state of repeating the grade, and count the time of the abnormal data obtained, and at the same time accumulate the first number of occurrences of the abnormal data, that is, the number of times the threshold value is exceeded. If after several rounds of data collection, it is found that the number of times the threshold value is exceeded is not 0 and the first time interval between each adjacent abnormal data obtained by the alarm response module is less than the preset first time threshold, it will be determined as an alarm state and respond to the alarm immediately. The alarm response module will also send the alarm information to the data reporting module to report the alarm data. For the alarm recovery stage, when the environmental data does not exceed the threshold and the first number of occurrences is not 0, the alarm response module will enter the alarm recovery state, count the time of the normal data obtained at this time, and at the same time accumulate the second number of occurrences of the normal data, that is, the number of normal values. If after several rounds of data collection, it is found that the second number of occurrences is not 0, and the second time interval of the normal data obtained by the alarm response module is less than the preset second time threshold, it will be determined that the alarm recovery is complete and the previous first number of occurrences will be reset to 0.

[0120] In addition, the data processing module also includes a data cache area and an external flash. When the device is disconnected from the network, the internal cache will actively request to send and record the number of request failures after reaching the critical value. If the sending fails for multiple consecutive times, it will be determined that the device has entered a disconnected state, and the environmental data in its own internal cache area will be copied to the device's external flash for storage and the cache flag will be set to 1. At the same time, the environmental data in the cache area and the number of request failures will be cleared to prepare for the next data cache. When the next request is sent successfully, first check whether the cache flag is 0. If the cache flag is not 0, the data in the external flash and the environmental data in the cache at this time will be integrated and sent for reporting. Otherwise, the environmental data in the cache area will be directly reported. Finally, the data reporting module reports the environmental data to the host computer.

[0121] The above-mentioned device alarm method will not immediately alarm when it detects that the environmental data exceeds the alarm threshold, but will enter the retention observation state, and it will only be considered an alarm when multiple alarms occur within a certain time interval, avoiding false alarms caused by the jitter of the detection value near the threshold. In addition, after the internal cache reaches the critical point, it will actively request to send. If the continuous transmission fails for multiple times, it will be determined that it has entered the disconnected state, and the data in its own internal cache will be copied to the device's external flash for storage, and the data in the cache will be cleared to prepare for the next data cache. When the next request is sent successfully, the data in the external flash will be integrated with the data in the cache at this time and sent for reporting. This method solves the problem of data loss caused by the internal cache of the device reaching the critical point when it is disconnected from the network.

[0122] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0123] Based on the same inventive concept, the embodiment of the present application also provides a device alarm device for implementing the device alarm method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more device alarm device embodiments provided below can refer to the limitations on the device alarm method above, and will not be repeated here.

[0124] In one embodiment, as shown in FIG11 , a device alarm device 1100 is provided, comprising: an acquisition module 1101, a determination module 1102 and a generation module 1103. The acquisition module 1101 is used to acquire the environmental data of the electrical equipment collected at the time. The determination module 1102 is used to determine the data type of the environmental data, and the data type includes abnormal data and normal data. The generation module 1103 is used to generate an alarm signal to trigger an alarm according to the first time interval between the abnormal data and the previous N consecutive times determined as abnormal data and the first number of occurrences of the abnormal data when the environmental data is abnormal data.

[0125] In one embodiment, the equipment alarm device 1100 also includes an update module, which is used to update the first occurrence number to the first initial value based on the normal data and the second time interval determined as normal data for the previous M consecutive times and the second occurrence number of normal data when the environmental data is normal data and the first occurrence number is greater than a preset first initial value.

[0126] In one embodiment, the generation module 1103 is also used to determine whether the first time interval and the first number of occurrences meet a first preset condition. If so, an alarm signal is generated to trigger an alarm; if not, the acquisition module 1101 is triggered to re-acquire new environmental data; wherein the first preset condition includes that the first time interval is less than or equal to a preset first time threshold, and the first number of occurrences is greater than or equal to a preset first quantity threshold.

[0127] In one embodiment, the generation module 1103 includes an observation unit, a first updating unit, and a first determining unit, wherein the observation unit is used to enter a repeat observation state. The first updating unit is used to update the first number of occurrences. The first determining unit is also used to determine a first time interval between the abnormal data and the abnormal data determined last time.

[0128] In one embodiment, the first update module is also used to determine whether the second time interval and the second number of occurrences meet a second preset condition. If so, the first number of occurrences is updated to a first initial value; if not, the acquisition module 1101 is re-triggered to acquire new environmental data; wherein the second preset condition includes that the second time interval is less than or equal to a preset second time threshold, and the second number of occurrences is greater than or equal to a preset second quantity threshold.

[0129] In one embodiment, the first update module includes a recovery unit, a second update unit and a second determination unit, wherein the recovery unit is used to enter an alarm recovery state; the second update unit is used to update a second number of occurrences; and the second determination unit is used to determine a second time interval between normal data and the previously determined normal data.

[0130] In one embodiment, the device alarm device 1100 further includes a storage module, a sending module and a clearing module. The storage module is used to store the environmental data in a preset cache area; the sending module is used to send a data storage request when the remaining cache space in the cache area is less than or equal to a preset storage threshold; the sending module is also used to store at least part of the environmental data in the cache area in a preset memory area when the number of sending failures corresponding to the data storage request is greater than the preset request threshold; the clearing module is used to clear at least part of the environmental data in the cache area after at least part of the environmental data is stored in the preset memory area.

[0131] In one embodiment, the equipment alarm device 1100 also includes a second update module, which is used to update the number of sending failures to a preset second initial value, and to update the cache flag to a preset first flag value; the sending module is also used to send the target environment data according to the cache flag corresponding to the cache area when the number of sending failures is less than or equal to the request threshold and the data storage request is sent successfully; wherein the target environment data includes at least part of the environment data in the cache area, or at least part of the environment data in the cache area and the memory area.

[0132] In one embodiment, the sending module is also used to send all environmental collection data of the memory area and the cache area when the cache flag is a first flag value, and update the cache flag to a second flag value; when the cache flag is the second flag value, send all environmental collection data of the cache area.

[0133] Each module in the above-mentioned device alarm device 1100 can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0134] Based on the same inventive concept, an embodiment of the present application also provides an electrical device, which includes: an electrical body; an alarm, which is arranged on the electrical body, and is used to obtain the environmental data of the electrical device determined at the time, determine the data type of the environmental data, and when the environmental data is abnormal data, generate an alarm signal to trigger an alarm based on the first time interval between the abnormal data and the previous N consecutive times determined as abnormal data, and the first number of occurrences of the abnormal data; wherein the data type includes abnormal data and normal data.

[0135] In one embodiment, the electrical device also includes a memory area, and the alarm is connected to the host computer and the memory area respectively. The alarm includes a cache area, and the alarm is also used to store the environmental data acquired this time in the cache area, and send a data storage request when the remaining cache space in the cache area is less than a preset storage threshold. When the number of sending failures corresponding to the data storage request is greater than the preset request threshold, at least part of the environmental data in the cache area is stored in the memory area, and at least part of the environmental data in the cache area is cleared.

[0136] In one embodiment, an alarm is provided, which may be a server, and its internal structure diagram may be shown in FIG12. The alarm includes a processor, a memory, and a network interface connected via a system bus. The processor of the alarm is used to provide computing and control capabilities. The memory of the alarm includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the alarm is used to store environmental data. The network interface of the alarm is used to communicate with an external alarm via a network connection. When the computer program is executed by the processor, a device alarm method is implemented.

[0137] Those skilled in the art will understand that the structure shown in FIG. 12 is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the alarm to which the scheme of the present application is applied. A specific alarm may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0138] In one embodiment, an alarm is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps of the above method when executing the computer program.

[0139] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the aforementioned method are implemented.

[0140] In one embodiment, a computer program product is provided, comprising a computer program, which implements the steps of the aforementioned method when executed by a processor.

[0141] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0142] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0143] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, 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.

[0144] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A device alarm method, characterized in that: The method comprises: Obtain the environmental data of the electrical equipment collected at that time; Determine a data type of the environmental data, the data type including abnormal data and normal data; In the case that the environmental data is the abnormal data, an alarm signal is generated to trigger an alarm according to a first time interval between the abnormal data and the previous N consecutive times determined as abnormal data and a first number of occurrences of the abnormal data.

2. The device alarm method according to claim 1, characterized in that: The method further comprises: When the environmental data is the normal data and the first number of occurrences is greater than a preset first initial value, the first number of occurrences is updated to the first initial value based on a second time interval between the normal data and the previous M consecutive times determined as normal data and a second number of occurrences of the normal data.

3. The device alarm method according to claim 1, characterized in that: The step of generating an alarm signal to trigger an alarm according to a first time interval between the abnormal data and the previous N times of continuously determining the abnormal data and a first number of occurrences of the abnormal data comprises: Determine whether the first time interval and the first number of occurrences meet a first preset condition, and if so, generate the alarm signal to trigger an alarm; if not, reacquire new environmental data, and return to execute the step of determining the data type of the environmental data; The first preset condition includes that the first time interval is less than or equal to a preset first time threshold, and the first number of occurrences is greater than or equal to a preset first quantity threshold.

4. The device alarm method according to claim 3, characterized in that: The method further comprises: Enter the observation status of repeating a grade; updating the first number of occurrences; A first time interval between the abnormal data and the previous N consecutive determinations as abnormal data is determined.

5. The device alarm method according to claim 2, characterized in that: The updating the first occurrence number to the first initial value according to the normal data, the second time interval determined as normal data for the previous M times continuously, and the second occurrence number of the normal data includes: Determine whether the second time interval and the second number of occurrences meet a second preset condition, and if so, update the first number of occurrences to the first initial value; if not, reacquire new environmental data, and return to execute the step of determining the data type of the environmental data; The second preset condition includes that the second time interval is less than or equal to a preset second time threshold, and the second number of occurrences is greater than or equal to a preset second quantity threshold.

6. The device alarm method according to claim 5, characterized in that: The method further comprises: Enter the alarm recovery state; updating the second occurrence number; Determine a second time interval between the normal data and the previous M consecutive determinations of the normal data.

7. The method according to claim 1, characterized in that The method further comprises: storing the environmental data in a preset buffer area; When the remaining cache space of the cache area is less than or equal to a preset storage threshold, sending a data storage request; When the number of sending failures corresponding to the data storage request is greater than a preset request threshold, at least part of the environmental data in the cache area is stored in a preset memory area, and at least part of the environmental data in the cache area is cleared.

8. The method according to claim 7, characterized in that The method further comprises: Updating the number of sending failures to a preset second initial value, and updating the cache flag to a preset first flag value; When the number of sending failures is less than or equal to the request threshold and the data storage request is sent successfully, the target environment data is sent according to the cache flag corresponding to the cache area; wherein the target environment data includes at least part of the environment data in the cache area, or at least part of the environment data in the cache area and the memory area.

9. The method according to claim 8, characterized in that The sending of target environment data according to the cache flag bit corresponding to the cache area includes: When the cache flag is the first flag value, all environmental collection data of the memory area and the cache area are sent, and the cache flag is updated to a second flag value; When the cache flag is the second flag value, all environmental collection data of the cache area is sent.

10. An equipment alarm device, characterized in that: The device comprises: An acquisition module is used to acquire the environmental data of the electrical equipment collected at that time; A determination module, used to determine a data type of the environmental data, wherein the data type includes abnormal data and normal data; A generating module is used to generate an alarm signal to trigger an alarm according to a first time interval between the abnormal data and the previous N consecutive times determined as abnormal data and a first number of occurrences of the abnormal data when the environmental data is the abnormal data.

11. An electrical device, characterized in that: The electrical equipment includes: Electrical appliance body; An alarm device is arranged on the electrical appliance body, and is used to obtain the environmental data of the electrical equipment determined at the time, determine the data type of the environmental data, and when the environmental data is abnormal data, generate an alarm signal to trigger an alarm based on the first time interval between the abnormal data and the previous N consecutive times of being determined as abnormal data, and the first number of occurrences of the abnormal data; wherein the data type includes the abnormal data and normal data.

12. The electrical device according to claim 11, characterized in that: The electrical device also includes a memory area, the alarm is connected to the host computer and the memory area respectively, the alarm includes a cache area, and the alarm is also used to store the environmental data acquired this time in the cache area, and send a data storage request when the remaining cache space in the cache area is less than a preset storage threshold, and when the number of sending failures corresponding to the data storage request is greater than the preset request threshold, at least part of the environmental data in the cache area is stored in the memory area, and at least part of the environmental data in the cache area is cleared.

13. An alarm device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.

Citation Information

Patent Citations

  • Abnormal data processing method

    CN104090951A

  • Tunnel cable grounding current safety alarm expert analysis method

    CN106645870A

  • Heat pump unit control method and device and heat pump unit

    CN115638560A

  • Method and terminal for filtering abnormal data of machine port drainage monitoring

    CN116909837A

  • RFID sensor for vibration monitoring

    CN117236352A

Cited By

  • Detection system and method of AC power supply controller

    CN120630947A