Disclosure of Invention
The embodiment of the application aims to provide an anti-leakage monitoring device and method with low power consumption, and aims to solve the problems that the anti-leakage monitoring device needs to use electric energy in the working process, and the overall cost and the complexity of installing the monitoring device are improved due to excessive power consumption.
In a first aspect, an embodiment of the present application provides an anti-leakage monitoring method for low power design, where the method includes:
The voltage monitoring unit determines the voltage running state of the equipment to be detected based on the voltage data obtained in real time, determines the reason of the abnormal state of the equipment to be detected based on the voltage data when the equipment to be detected is determined to be in the voltage abnormal state, determines the voltage risk level based on the voltage data and the reason of the abnormal state, generates a voltage abnormal signal based on the voltage risk level and sends the voltage abnormal signal to the main control unit, and triggers the main control unit to switch from the dormant state to the working state;
the main control unit determines the working mode of the temperature monitoring unit and the communication period of the communication unit based on the voltage abnormal signal;
The temperature monitoring unit and the communication module perform work and communication based on the working mode and the communication period.
Further, the voltage data includes a voltage value, and the voltage monitoring unit determines a voltage operation state of the device to be tested based on the voltage data acquired in real time, including:
Under the condition that the voltage value is continuously monitored to be larger than a preset threshold value within a first preset period, determining that the voltage running state is an abnormal state;
and under the condition that the voltage value is not continuously monitored to be larger than a preset threshold value in the first preset period, determining the frequency of the voltage fluctuation value exceeding the preset fluctuation value in the second preset period, and under the condition that the frequency is larger than or equal to the preset frequency, determining the voltage running state to be an abnormal state, otherwise, determining the voltage running state to be a normal state.
Further, the determining, based on the voltage data, the cause of the abnormal state of the device under test includes:
acquiring a change curve of voltage abnormal data of the equipment to be tested under the condition that the voltage running state is determined to be an abnormal state;
Acquiring the position information of the equipment to be detected, and determining other operation equipment within a preset range based on the position information;
Acquiring voltage change curves of other operation devices in the same time period based on a cloud platform, and determining whether the change curves of the voltage abnormal data of the device to be tested and the voltage change curves of the other operation devices meet preset similarity;
If the number of the running devices meeting the preset similarity meets the preset percentage, determining that the reason of the abnormal state of the device to be tested is power grid fluctuation, and if the reason of the abnormal state of the device to be tested is not met, determining that the reason of the abnormal state of the device to be tested is equipment fault.
Further, the determining a voltage risk level based on the voltage data and the abnormal state cause includes:
When the voltage value is continuously monitored to be larger than a preset threshold value within a first preset period of time, and the abnormal state cause of the equipment to be detected is equipment failure, determining the voltage risk level as a first risk level;
Determining that the voltage risk level is a second risk level when the frequency of the fluctuation value of the voltage exceeding the preset fluctuation value in the second preset period is greater than or equal to the preset frequency and the cause of the abnormal state of the equipment to be detected is equipment failure;
When the voltage value is continuously monitored to be larger than a preset threshold value within a first preset period of time, and the reason of the abnormal state of the equipment to be tested is power grid fluctuation, determining the voltage risk level as a third risk level;
And determining the voltage risk level as a fourth risk level when the frequency of the fluctuation value of the voltage exceeding the preset fluctuation value in the second preset period is larger than or equal to the preset frequency and the abnormal state cause of the equipment to be detected is equipment failure, wherein the emergency degree of the first risk level is larger than that of the second risk level and larger than that of the third risk level.
Further, the voltage abnormality signal includes an emergency signal, an early warning signal and a prompt signal, and the voltage abnormality signal is generated based on the voltage risk level and sent to a main control unit, including:
generating an emergency signal under the condition that the voltage risk level is determined to be a first risk level, and immediately sending the emergency signal to the main control unit;
Generating an early warning signal under the condition that the voltage risk level is determined to be the second risk level, and sending the early warning signal to the main control unit within a preset period of time;
And generating a prompt signal under the condition that the voltage risk level is determined to be the third risk level, and sending the prompt signal to the main control unit when the equipment to be detected is monitored to be in the voltage abnormal state again.
Further, the main control unit determines the working mode of the temperature monitoring unit and the communication period of the communication unit based on the voltage abnormality signal, and the main control unit comprises:
Under the condition that the voltage abnormal signal is an emergency signal, determining that the working mode of the temperature monitoring unit is an emergency monitoring mode, wherein the communication period of the communication unit is a first period;
under the condition that the voltage abnormal signal is an early warning signal, determining that the working mode of the temperature monitoring unit is a reinforced monitoring mode, and the communication period of the communication unit is a second period;
and under the condition that the voltage abnormal signal is a prompt signal, determining that the working mode of the temperature monitoring unit is a normal monitoring mode, wherein the communication period of the communication unit is a third period, and the first period is smaller than the second period and smaller than the third period.
Furthermore, the emergency monitoring mode is real-time monitoring, the enhanced monitoring mode is to trigger the temperature monitoring unit to be started based on a first preset frequency, the normal monitoring mode is to trigger the temperature monitoring unit to be started based on a second preset frequency, and the first preset frequency is smaller than the second preset frequency.
In a second aspect, an embodiment of the present application provides an anti-leakage monitoring device with a low power consumption design, where the device includes:
The voltage monitoring unit is used for determining the voltage running state of the equipment to be detected based on the voltage data obtained in real time, determining the reason of the abnormal state of the equipment to be detected based on the voltage data when the equipment to be detected is determined to be in the voltage abnormal state, determining the voltage risk level based on the voltage data and the reason of the abnormal state, generating a voltage abnormal signal based on the voltage risk level and sending the voltage abnormal signal to the main control unit, and triggering the main control unit to switch from the dormant state to the working state;
The main control unit is used for determining the working mode of the temperature monitoring unit and the communication period of the communication unit based on the voltage abnormal signal;
A temperature monitoring unit for performing an operation based on the operation mode;
And the communication module is used for communicating based on the communication period.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect.
In the embodiment of the application, a voltage monitoring unit determines a voltage running state of equipment to be detected based on voltage data acquired in real time, when the equipment to be detected is determined to be in a voltage abnormal state, an abnormal state reason of the equipment to be detected is determined based on the voltage data, a voltage risk level is determined based on the voltage data and the abnormal state reason, a voltage abnormal signal is generated based on the voltage risk level and sent to a main control unit to trigger the main control unit to switch from a dormant state to a working state, the main control unit determines a working mode of a temperature monitoring unit and a communication period of a communication unit based on the voltage abnormal signal, and the temperature monitoring unit and the communication module work and communicate based on the working mode and the communication period. According to the anti-leakage monitoring method with the low power consumption design, the problem that electric energy is needed to be used in the working process of the anti-leakage monitoring device, the overall cost is caused by too high power consumption, and the complexity of installing the monitoring device is improved is solved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the following detailed description of specific embodiments of the present application is given with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the matters related to the present application are shown in the accompanying drawings. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The anti-leakage monitoring device, method and equipment for low-power consumption design provided by the embodiment of the application are described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
The embodiment of the application has the application scene of reducing the power consumption of the anti-leakage monitoring process, and the execution main body of the embodiment of the application is an anti-leakage monitoring device with low power consumption design.
Fig. 1 is a schematic flow chart of an anti-leakage monitoring method with low power consumption design according to an embodiment of the present application. As shown in fig. 1, the method includes:
S101, a voltage monitoring unit determines a voltage running state of equipment to be detected based on voltage data acquired in real time, when the equipment to be detected is determined to be in a voltage abnormal state, an abnormal state reason of the equipment to be detected is determined based on the voltage data, a voltage risk level is determined based on the voltage data and the abnormal state reason, a voltage abnormal signal is generated based on the voltage risk level and is sent to a main control unit, and the main control unit is triggered to switch from a dormant state to a working state.
The voltage monitoring unit is a device for monitoring the voltage condition of the power system or equipment in real time, can accurately measure and display voltage data, has certain data processing and communication capacity, and can transmit voltage information to the main control unit for further analysis and processing. The voltage data refer to voltage values and related information thereof collected and recorded by the voltage monitoring unit, and the data generally comprise parameters such as amplitude, frequency, phase and the like of the voltage, so that the voltage data are important bases for evaluating the running state of the power system and carrying out fault diagnosis. The voltage operating state refers to the actual condition of the voltage of the power system or device at the time of operation. Under normal conditions, the voltage should be kept fluctuating within a certain range to ensure the stability of the power system and safe operation of the consumer. The abnormal voltage state refers to the situation that the voltage of the power system or equipment deviates from the normal range in the running process, and specifically includes abnormal situations such as overhigh voltage, overlow voltage, overlarge fluctuation and the like. The abnormal state cause refers to the root cause of the voltage abnormality. The voltage risk level refers to a level of classifying the degree of damage that may be caused to the power system or the equipment according to the voltage abnormality. Generally, the voltage risk level is comprehensively considered and classified according to the severity, duration and possible consequences of the voltage abnormality. The voltage abnormality signal refers to an alarm or warning signal that the voltage monitoring unit sends out when detecting a voltage abnormality state. These signals typically include indications of voltage anomalies, possible fault information or suggested countermeasures, etc. The main control unit is a core part in the voltage monitoring unit, which is responsible for data processing, communication and control, generally has strong computing capacity and abundant interface resources, can receive the voltage abnormality signal of the voltage monitoring unit, and can send out corresponding control instructions according to the voltage abnormality signal. The sleep state refers to a low power consumption state of the voltage monitoring unit when the voltage monitoring unit is not performing voltage monitoring. In this state, the voltage monitoring unit may shut down or reduce the power consumption of part of the circuit to extend the service life of the device and reduce the power consumption. The working state refers to a state when the voltage monitoring unit is monitoring the voltage. In this state, the voltage monitoring unit will collect and record voltage data in real time, process and analyze the data, and transmit the result to the upper computer or other monitoring system for further processing and display.
In one embodiment, a suitable voltage sensor is selected to be connected with a circuit of the device to be tested, so that accurate acquisition of the voltage value of the device to be tested is ensured, reasonable acquisition frequency is set, voltage change can be reflected timely, and resource waste and data redundancy cannot be caused too frequently. For example, for some relatively stable voltage devices, several acquisitions per second may be sufficient, while for devices with larger voltage fluctuations, several tens of acquisitions or even higher frequencies may be required, after which the voltage information of the device under test is acquired by means of a voltage monitoring unit. Then, a normal voltage range is set, specifically, a voltage interval of normal operation of the device to be tested can be determined according to data such as specification and the like of the device to be tested, for example, the normal operation voltage of a certain device is 220 V+/-10%, namely 198V-242V. And judging whether the acquired voltage data is in a normal range. If the voltage is not within the above range, the abnormal voltage state is determined.
And further analyzing the specific condition of the voltage data and determining the reason of the voltage abnormality after determining the abnormal condition. For example, if the voltage is continuously lower than the normal range and the downward trend is obvious, the voltage may be a cause of insufficient power supply, and if the voltage fluctuates greatly, there may be a problem of poor contact in the circuit, etc. Specifically, a corresponding abnormal state cause judgment rule can be established according to different voltage data characteristics. For example, if the voltage data crosses the upper and lower limits of the normal range a plurality of times in a short time and the variation range is large, it can be determined that there is an intermittent short-circuit or open-circuit fault in the circuit. Further, the voltage risk level classification standard is preset, and is generally classified according to the degree of deviation of the voltage from the normal range, the duration of abnormality, the degree of possible damage to the equipment, and the like. Such as low risk (voltage slightly deviates from the normal range and is abnormal for a short time), medium risk (voltage deviates significantly from the normal range or is abnormal for a long time), high risk (voltage deviates severely from the normal range and is abnormal for a long time, possibly resulting in damage to the equipment), etc. Then, based on the previously determined voltage data and the cause of the abnormal state, the current voltage risk level is determined by a certain logic algorithm according to the risk level classification standard. For example, if the voltage is lower than the normal range by 30% and the duration exceeds 5 minutes, while the abnormality is caused by serious damage to the power supply line, it may be determined as a high risk level.
After determining the voltage risk level, a signal representing the voltage anomaly is generated according to the corresponding protocol and format. The signal may be in a digitally encoded form, such as with a specific binary code to indicate different risk levels and anomalies. The voltage monitoring unit sends the generated voltage abnormality signal to the main control unit through a proper communication interface. After receiving the signal, the main control unit should have a mechanism for switching from the sleep state to the working state. Usually triggered by an interrupt signal or the like, so that the main control unit can timely respond to the voltage abnormal condition and perform subsequent processing, such as recording abnormal information, taking protection measures and the like.
Optionally, the voltage data includes a voltage value, and the voltage monitoring unit determines a voltage operation state of the device to be tested based on the voltage data acquired in real time, including:
Under the condition that the voltage value is continuously monitored to be larger than a preset threshold value within a first preset period, determining that the voltage running state is an abnormal state;
and under the condition that the voltage value is not continuously monitored to be larger than a preset threshold value in the first preset period, determining the frequency of the voltage fluctuation value exceeding the preset fluctuation value in the second preset period, and under the condition that the frequency is larger than or equal to the preset frequency, determining the voltage running state to be an abnormal state, otherwise, determining the voltage running state to be a normal state.
The first preset period refers to a minimum time period for determining that the voltage value exceeds a preset range and can be met by the voltage abnormality. The preset voltage threshold is the highest limit of the preset voltage value, and is used for judging whether the voltage is in the normal range or not. The second preset period refers to a preset period of time for monitoring the voltage fluctuation condition. The fluctuation value of the voltage refers to the degree to which the voltage deviates from a certain reference value (such as an average value or a rated voltage) within a certain period of time. For example, the rated voltage of a certain device is 220V, and the voltage is up to 225V and down to 218V in 10 minutes, then the voltage fluctuation value is determined by calculating the values deviating from the rated voltage by 220V. The maximum ripple value, which in this example is +5V and-2V, can be measured. The preset ripple value is a preset allowable voltage ripple range. For example, for precision instruments requiring high voltage stability, the preset ripple value may be set to ±1v. If the actual voltage fluctuation value exceeds this range, it is indicated that the voltage fluctuation is abnormal and the accuracy of the instrument may be affected. The preset number of times refers to the number of voltage fluctuation values exceeding the preset fluctuation value.
In one embodiment, the voltage value is continuously monitored during a first preset period T1, and if the voltage value at any time during the period T1 is greater than a preset voltage threshold, the voltage operation state is determined to be an abnormal state. If the voltage value is not continuously monitored to be larger than the preset voltage threshold value in the T1 period, the next step of judging is carried out, namely the voltage fluctuation times in the second preset period are judged. Specifically, the voltage value is continuously monitored in the second preset period T2, the voltage fluctuation value of each sampling point (or time period) is calculated, and if the voltage fluctuation value exceeds the preset fluctuation value, the counter is incremented by 1. At the end of the T2 period, it is checked whether the value of the counter is greater than or equal to a preset number N. If the counter value is greater than or equal to N, the voltage operation state is determined to be an abnormal state, and if the counter value is less than N, the voltage operation state is determined to be a normal state.
Fig. 2 is a flowchart of a method for determining an abnormal state cause of the device under test based on the voltage data according to an embodiment of the present application. As shown in fig. 2, the method includes:
s1011, acquiring a change curve of the voltage abnormal data of the equipment to be tested under the condition that the voltage running state is determined to be the abnormal state.
The voltage abnormal data refers to data points or data sets, wherein the voltage value deviates from an expected range or the fluctuation value exceeds a preset value within a preset period and meets the preset times in the monitoring or recording process. The change curve of the voltage abnormality data refers to a graph of the change of the voltage abnormality data with time generated based on the time point and the voltage abnormality data.
In one embodiment, the collected voltage data is stored in a buffer during monitoring. When a voltage anomaly is detected, the anomaly data points are marked, the anomaly data points are stored separately in a particular file or database, and a time stamp and other related information are appended. And setting proper X-axis (time) and Y-axis (voltage value) ranges, and parameters such as color, line type and the like of the curve, bringing in the abnormal data value and the time stamp, and generating an abnormal data change curve so as to clearly show the change trend of the voltage abnormal data.
S1012, acquiring the position information of the device to be tested, and determining other operation devices within a preset range based on the position information.
Where location information refers to a specific location or coordinate of an object or device in space. The preset range refers to a certain geographical range or interval set or specified in advance. Other running devices refer to other devices which are running in addition to the current device to be tested in a preset range.
In one embodiment, the location data of the device under test is collected in real time by a location module built in the device under test, including longitude, latitude (for outdoor location) or indoor location coordinates. According to the actual demand, a preset range with a specific radius or boundary is set by taking the position of the equipment to be measured as the center. And querying other running devices within a preset range by using a device database or a cloud platform in the data collection system. Specifically, the devices may have similar positioning modules, and the position data of the devices may be uploaded to the cloud platform, and the queried devices are matched with the position information of the devices to be tested to screen out the devices within a preset range.
S1013, acquiring voltage change curves of other operation devices in the same time period based on a cloud platform, and determining whether the change curves of the voltage abnormal data of the device to be tested and the voltage change curves of the other operation devices meet preset similarity.
The cloud platform is a service platform based on hardware resources and software resources and used for providing computing, network and storage capabilities, and in this embodiment, the cloud platform stores operation parameters of all devices, and a user can directly obtain required resources from a cloud through sending a request through the network. Voltage change curves are graphs in which the voltage of other devices changes with time or change of certain conditions, and are generally used for researching the stability, fluctuation condition and the like of the voltage. The preset similarity is a similarity threshold or standard set in advance when the comparison or matching task is performed, and is used for judging whether the two objects are similar enough or not.
In one embodiment, voltage data of the device to be tested and other running devices in the same time period is obtained through the cloud platform, the data can comprise information such as a voltage value and a time stamp, and a voltage change curve is drawn based on the voltage value and the time stamp. And calculating the similarity between the voltage abnormal data change curve of the device to be tested and the voltage change curves of other operation devices by using a proper similarity calculation method, such as cosine similarity, euclidean distance, dynamic time warping and the like. The similarity calculation method is selected according to the data characteristics and the application scenario, and is not particularly limited. And comparing the calculated similarity with a preset similarity threshold. If the similarity is greater than or equal to the preset similarity threshold, the voltage abnormal data change curve of the device to be tested is considered to be similar to the voltage change curves of other operation devices, and a certain association or common reason may exist. If the similarity is smaller than the preset similarity threshold, the voltage abnormal data change curve of the device to be tested is not similar to the voltage change curves of other operation devices, and the reason of the device needs to be further analyzed.
S1014, if the number of the running devices meeting the preset similarity meets the preset percentage, determining that the reason of the abnormal state of the device to be tested is power grid fluctuation, and if the number of the running devices meeting the preset similarity does not meet the preset percentage, determining that the reason of the abnormal state of the device to be tested is equipment fault.
The preset percentage is a preset proportion value, and is used for judging whether a certain association or common reason exists between the voltage abnormality of the current equipment and other equipment. Grid fluctuations refer to abnormal changes in the parameters of voltage, current, frequency, etc. in the grid. The equipment failure refers to the condition that the equipment is abnormal or invalid in the running process, so that the performance of the equipment is reduced or normal work cannot be completed.
In one embodiment, all the running devices within the preset range are traversed, the similarity between the running devices and the current device to be tested is calculated, and the similarity is compared with the preset similarity. If the similarity is greater than or equal to the preset similarity, the number of the devices meeting the condition is counted and increased by 1. For example, there are n running devices in total, and the number of devices satisfying the preset similarity after comparison is m. Calculating the percentage of the number of the devices meeting the preset similarity to the total number of the devices, namelyThis percentage is compared with a preset percentage. If it isIs more than or equal to a preset percentage, the cause of the abnormal state of the device under test may be determined to be grid fluctuations. Because the voltage variations of most devices are similar, it is likely that they are caused by external grid factors. Conversely, ifAnd if the abnormal state cause of the equipment to be detected is smaller than the preset percentage, determining that the abnormal state cause of the equipment to be detected is equipment failure. Since only a few devices are abnormal, it is a problem of the devices themselves.
Optionally, the determining a voltage risk level based on the voltage data and the abnormal state cause includes:
When the voltage value is continuously monitored to be larger than a preset threshold value within a first preset period of time, and the abnormal state cause of the equipment to be detected is equipment failure, determining the voltage risk level as a first risk level;
Determining that the voltage risk level is a second risk level when the frequency of the fluctuation value of the voltage exceeding the preset fluctuation value in the second preset period is greater than or equal to the preset frequency and the cause of the abnormal state of the equipment to be detected is equipment failure;
When the voltage value is continuously monitored to be larger than a preset threshold value within a first preset period of time, and the reason of the abnormal state of the equipment to be tested is power grid fluctuation, determining the voltage risk level as a third risk level;
And determining the voltage risk level as a fourth risk level when the frequency of the fluctuation value of the voltage exceeding the preset fluctuation value in the second preset period is larger than or equal to the preset frequency and the abnormal state cause of the equipment to be detected is equipment failure, wherein the emergency degree of the first risk level is larger than that of the second risk level and larger than that of the third risk level.
The first risk level, the second risk level, the third risk level and the fourth risk level refer to the severity of the current voltage abnormality, respectively, and the emergency degree of the first risk level is greater than that of the second risk level and greater than that of the third risk level and greater than that of the fourth risk level.
In one embodiment, there are two cases of judging the voltage abnormality, and the emergency degree corresponding to the voltage abnormality caused by continuously monitoring that the voltage value is greater than the preset threshold value in the first preset period is higher than the emergency degree corresponding to the voltage abnormality caused by that the frequency of the fluctuation value of the voltage exceeding the preset fluctuation value is greater than or equal to the preset frequency in the second preset period. Meanwhile, two reasons for the voltage abnormality are available, and the emergency degree of the voltage abnormality caused by the equipment self fault is higher than that corresponding to the voltage abnormality caused by the power grid fluctuation. Therefore, in the embodiment of the application, when the data of the voltage abnormality is shown to satisfy that the continuously monitored voltage value is greater than the preset threshold value in the first preset period, and the reason of the voltage abnormality is the equipment failure, the highest risk level and the first risk level are corresponding. And when the data of the voltage abnormality show that the frequency of the fluctuation value of the voltage exceeding the preset fluctuation value in the second preset period is larger than or equal to the preset frequency, and the reason of the abnormal state is the fluctuation of the power grid, the lowest risk level is corresponding to the fourth risk level. In consideration of the fact that the voltage abnormality has a large influence on the voltage risk fan when the voltage abnormality is the cause of the equipment, the voltage risk fan corresponds to the second risk level when the voltage data shows that the frequency of the fluctuation value of the voltage exceeding the preset fluctuation value in the second preset period is larger than or equal to the preset frequency and the cause of the abnormal state is equipment failure, and corresponds to the third risk level when the voltage data shows that the voltage value continuously monitored in the first preset period is larger than the preset threshold and the cause of the abnormal state is power grid fluctuation.
Optionally, the voltage abnormality signal includes an emergency signal, an early warning signal and a prompt signal, and the generating and sending the voltage abnormality signal to the main control unit based on the voltage risk level includes:
generating an emergency signal under the condition that the voltage risk level is determined to be a first risk level, and immediately sending the emergency signal to the main control unit;
Generating an early warning signal under the condition that the voltage risk level is determined to be the second risk level, and sending the early warning signal to the main control unit within a preset period of time;
And generating a prompt signal under the condition that the voltage risk level is determined to be the third risk level, and sending the prompt signal to the main control unit when the equipment to be detected is monitored to be in the voltage abnormal state again.
Where an emergency signal is a signal that is emitted in the event of a very severe condition that may immediately result in a significant hazard or loss, it indicates that immediate action is required to avoid or mitigate the catastrophic outcome. The early warning signal is a signal informing in advance that a dangerous or abnormal situation may occur, which means that the situation has not yet reached an emergency state, but if attention is not paid or measures are taken, it is likely that an emergency situation will develop. The alert signal is primarily intended to provide some information for informing the user or operator of the status of the operation of the device, the operation alert, which is intended to be noticeable, but generally does not require immediate emergency action.
In one embodiment, the corresponding signal is generated according to a voltage risk level. The method comprises the steps of generating an emergency signal if the voltage risk level is a first risk level, generating an early warning signal if the voltage risk level is a second risk level, and generating a prompt signal if the voltage risk level is a third risk level. The communication module sets the sending priority and sending time according to the signal type, and if the signal is an emergency signal, the signal is immediately sent to the main control unit, so that the main control unit can respond quickly. If the signal is the early warning signal, the signal is sent to the main control unit within a preset period of time, and the main control unit is allowed to have a certain preparation time after receiving the signal. If the signal is a prompt signal, the device to be detected needs to be monitored again to be in a voltage abnormal state. Specifically, a flag bit may be set to record whether an abnormality occurs again. This flag bit and voltage state are checked each time the voltage state is monitored. When the voltage is abnormal again and the flag bit is true (representing that the situation of the third risk level is already in advance), a prompt signal is sent to the main control unit through a proper communication mode.
Optionally, the main control unit determines the working mode of the temperature monitoring unit and the communication period of the communication unit based on the voltage abnormality signal, and includes:
Under the condition that the voltage abnormal signal is an emergency signal, determining that the working mode of the temperature monitoring unit is an emergency monitoring mode, wherein the communication period of the communication unit is a first period;
under the condition that the voltage abnormal signal is an early warning signal, determining that the working mode of the temperature monitoring unit is a reinforced monitoring mode, and the communication period of the communication unit is a second period;
and under the condition that the voltage abnormal signal is a prompt signal, determining that the working mode of the temperature monitoring unit is a normal monitoring mode, wherein the communication period of the communication unit is a third period, and the first period is smaller than the second period and smaller than the third period.
The emergency monitoring mode is enabled when a serious event occurs or is expected to occur, for example, the voltage of the equipment is abnormal and the risk level reaches the highest level, and then real-time monitoring is needed immediately to respond and process the emergency at the highest speed. The enhanced monitoring mode refers to enabling under certain conditions, such as abnormal device voltage and higher risk level but not reaching the highest level, or predicted that adverse conditions may occur. Compared with normal monitoring, the mode can encrypt the monitoring frequency so as to grasp the dynamics more accurately and early warn timely. The normal monitoring mode refers to monitoring activities performed according to a conventional monitoring plan, and is suitable for the condition of low equipment voltage risk level. In this mode, the monitoring time interval is long, typically at a fixed period.
In one embodiment, when the voltage abnormality signal is analyzed as an emergency signal, the main control unit sets the temperature monitoring unit to enter an emergency monitoring mode, i.e. real-time monitoring, through a control line or a sending instruction. The temperature data can be continuously collected by directly raising or lowering a specific control pin of the temperature monitoring unit or sending a specific software instruction, so that real-time monitoring is realized. For emergency signals, the main control unit configures the communication period of the communication unit as a first period. Specifically, the internal register of the communication unit is set, for example, if the communication unit is based on UART communication, the main control unit can set a higher baud rate by writing a specific value into the baud rate register, so that a shorter communication period (i.e., a first period) is realized, and real-time temperature data collected by the temperature monitoring unit and other related information can be sent out more quickly, so that the state of the device can be fed back in time.
If the voltage abnormality signal is an early warning signal, the main control unit sets the temperature monitoring unit to be in an enhanced monitoring mode. This mode triggers the temperature monitoring unit to turn on based on a first preset frequency. The master control unit needs to set a timer or counter and configure its timing or counting parameters according to the value of the first preset frequency. For example, if the first preset frequency is triggered every 5 minutes, a timer is set to generate an interrupt every 5 minutes or trigger a counting event, when the event occurs, the main control unit sends an instruction or enables the temperature monitoring unit to start to perform temperature collection through the control circuit, and the temperature monitoring unit can wait for the next trigger according to the setting of the main control unit after the collection is completed. Correspondingly, when the voltage abnormality signal is an early warning signal, the main control unit sets the communication period of the communication unit as a second period. This is likewise achieved by means of an adjustment of registers or configuration parameters within the communication unit. For example, according to the communication rate requirement corresponding to the second period, different values are written into the baud rate register to set a moderate baud rate, so that the communication period is longer (longer than the first period but shorter than the third period) to adapt to the data transmission requirement in the enhanced monitoring mode.
When the voltage abnormal signal is a prompt signal, the main control unit configures the temperature monitoring unit to enter a normal monitoring mode. The mode is based on a second predetermined frequency triggering the temperature monitoring unit to turn on. Similarly, the main control unit is to set a corresponding timer or counter, and determine the timing or counting parameter according to the value of the second preset frequency. For example, the second preset frequency is triggered once every 30 minutes, and a timer or a counter is set according to the second preset frequency, so that the temperature monitoring unit is triggered once every 30 minutes to start acquiring temperature data, and the next trigger is waited after the acquisition is completed. When the voltage abnormal signal is a prompt signal, the main control unit determines that the communication period of the communication unit is a third period. Again by adjusting the relevant parameters of the communication unit. For example, a relatively low baud rate is set (by writing appropriate values to the baud rate register) resulting in a longer communication period (i.e., third period) because the real-time requirements for data transmission are relatively less high in the normal monitoring mode.
S102, the main control unit determines the working mode of the temperature monitoring unit and the communication period of the communication unit based on the voltage abnormality signal.
The temperature monitoring unit is a device capable of monitoring the temperature of equipment or the environment in real time. The operating modes of the temperature monitoring unit generally include a real-time monitoring mode and a sleep mode. In the real-time monitoring mode, the temperature monitoring unit continuously collects and processes temperature data and transmits the result to an upper computer or other monitoring systems. In the sleep mode, the temperature monitoring unit may reduce or shut down the power consumption of part of the circuit, and wake up to monitor the temperature only when needed. The communication unit is an interface for data transmission between the temperature monitoring unit and other monitoring systems, and is responsible for transmitting temperature data and other information acquired by the temperature monitoring unit to the other monitoring systems so as to perform further analysis and processing. The communication period refers to a time interval for data transmission between the temperature monitoring unit and the upper computer or other monitoring systems.
In one embodiment, the operation mode corresponding to the temperature monitoring unit is preset according to different voltage risk levels. For example, the temperature monitoring unit may be in an intermittent mode of low power consumption at low risk levels, collecting temperature data once every longer time (e.g., 10 minutes), in a medium frequency mode of operation at medium risk levels, collecting temperature data once every 3 minutes, and in a high risk level, the temperature monitoring unit enters a continuous mode of high frequency, collecting temperature data without interruption. The main control unit receives and analyzes the voltage abnormal signal, wherein the voltage abnormal signal contains relevant information such as voltage risk level and the like. The main control unit switches the working mode of the temperature monitoring unit by controlling a power management pin of the temperature monitoring unit or sending a control instruction according to the analyzed voltage risk level. For example, if it is a high risk level, the main control unit may pull up one "continuous operation" control pin of the temperature monitoring unit to bring it into a continuous operation state.
The length of the communication period depends on the actual application requirement and the performance requirement of the system. The shorter communication period can ensure the real-time performance and accuracy of the data, but can increase the power consumption and communication burden of the system, while the longer communication period can reduce the power consumption and communication burden, but can sacrifice the real-time performance of the data. Therefore, when selecting the communication period, a trade-off needs to be made according to the actual application scenario. Therefore, the communication cycle of the communication unit can be set according to the voltage risk level. The communication period can be longer when the risk is low, such as sending a status report containing voltage and temperature to the server once per hour, shortened to once every 15 minutes when the risk is medium, and set to once every minute or even shorter when the risk is high, so as to timely feed back key status information of the equipment. Specifically, the main control unit sets the communication period by configuring a relevant register of the communication unit or sending a configuration command. Taking a common UART communication-based device as an example, the master control unit writes different values into the baud rate register in the communication unit to change the communication rate, thereby realizing different communication periods. For example, in a low risk state, the baud rate is set to be low, the communication period is prolonged, and in a high risk state, the baud rate is set to be high, and the communication period is shortened.
S103, the temperature monitoring unit and the communication module work and communicate based on the working mode and the communication period.
In one embodiment, the temperature monitoring unit executes different software programs by means of a built-in microcontroller according to the operating mode set by the main control unit. For example, in an intermittent mode of operation, the software may set a timer interrupt. When the timer reaches the preset intermittent time (such as 10 minutes), an interrupt is triggered to enable the temperature monitoring unit to wake up from the standby state, perform one-time temperature data acquisition, and then enter the standby state. In the continuous mode, the software can be set to one cycle to continuously collect temperature data, and a proper delay can be set in the middle to control the collection frequency. Also, in the software of the communication module, a timer or counter may be used to control the communication period. For example, after each communication is completed, a timer is started, and when the timer count reaches a value set according to the communication period, a new communication event is triggered. The software obtains the prepared data from the temperature monitoring unit according to the communication protocol and sends the data out.
The voltage monitoring unit determines the voltage running state of the equipment to be detected based on the voltage data obtained in real time, determines the reason of the abnormal state of the equipment to be detected based on the voltage data when the equipment to be detected is determined to be in the voltage abnormal state, determines the voltage risk level based on the voltage data and the reason of the abnormal state, generates a voltage abnormal signal based on the voltage risk level and sends the voltage abnormal signal to the main control unit to trigger the main control unit to switch from the dormant state to the working state, the main control unit determines the working mode of the temperature monitoring unit and the communication period of the communication unit based on the voltage abnormal signal, and the temperature monitoring unit and the communication module work and communicate based on the working mode and the communication period. According to the anti-leakage monitoring method with the low power consumption design, the problem that electric energy is needed to be used in the working process of the anti-leakage monitoring device, the overall cost is caused by too high power consumption, and the complexity of installing the monitoring device is improved is solved.
Fig. 3 is a schematic structural diagram of an anti-leakage monitoring device with low power consumption design according to an embodiment of the present application. As shown in fig. 3, the apparatus includes:
The voltage monitoring unit 301 is configured to determine a voltage operation state of a device to be tested based on voltage data acquired in real time, determine an abnormal state cause of the device to be tested based on the voltage data when determining that the device to be tested is in a voltage abnormal state, determine a voltage risk level based on the voltage data and the abnormal state cause, generate a voltage abnormal signal based on the voltage risk level and send the voltage abnormal signal to the main control unit, and trigger the main control unit to switch from a sleep state to a working state;
The main control unit 302 is configured to determine an operation mode of the temperature monitoring unit and a communication period of the communication unit based on the voltage abnormality signal;
a temperature monitoring unit 303 for performing an operation based on the operation mode;
And the communication module 304 is configured to communicate based on the communication period.
The anti-leakage monitoring device with the low power consumption design provided by the embodiment of the application corresponds to the anti-leakage monitoring method with the low power consumption design provided by the embodiment, has the same functional modules and beneficial effects, and is not repeated here.
Fig. 4 is a schematic structural diagram of an anti-leakage monitoring device with a low power consumption design according to an embodiment of the present application. As shown in fig. 4, the structure of the anti-leakage monitoring device with low power consumption design includes a processor 401, a memory 402, and a program or instruction stored in the memory 402 and capable of running on the processor 401, where the program or instruction implements each process of the anti-leakage monitoring device embodiment with low power consumption design when executed by the processor 401, and the process can achieve the same technical effect, and for avoiding repetition, a detailed description is omitted herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the embodiment of the anti-leakage monitoring device designed with low power consumption, and can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described example method may be implemented by means of software plus a necessary general purpose hardware system, or of course by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.
The foregoing description is only of the preferred embodiments of the application and the technical principles employed. The present application is not limited to the specific embodiments described herein, but is capable of numerous modifications, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, while the application has been described in connection with the above embodiments, the application is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit of the application, the scope of which is set forth in the following claims.