Air conditioner power failure protection detection method, device and equipment and storage medium
By detecting the current value and Bluetooth connection information in the air-conditioning control module and battery module, the standby state and the low-power operating state of the air conditioner are distinguished, which solves the problem of low reliability of power-down detection in the existing technology and achieves more accurate power-down. Protection to prevent abnormal power outage.
Patent Information
- Application Number
- CN202410915486.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-10-01
AI Technical Summary
The existing air conditioner power-down detection method is difficult to distinguish between the standby state and the low-power air conditioning function operating state, resulting in low reliability of power-down protection detection.
By introducing the battery controller and control module into the control module and battery module of the air conditioner, the power-on signal of the air conditioner is detected and based on the current value, it is judged whether the power-off condition is met. If it is met, the air conditioner is controlled to power off; if the air conditioner is in standby state, according to the Bluetooth The connection information determines whether the load opening conditions are met, and a load opening command is issued to distinguish the standby state from the low-power operating state.
It effectively prevents abnormal power outages in air conditioners, improves the reliability of power outage protection detection, and ensures that standby and operating states can be accurately distinguished even when connected via Bluetooth.
Smart Images

Figure CN118729487A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent control, and in particular to a method, device, equipment and storage medium for detecting power-off protection of an air conditioner. Background Art
[0002] Air conditioners are indispensable electrical appliances in people's daily lives, and they have a variety of structural forms. With the continuous improvement of industrial design levels and the application of new processes, new materials, new shapes, and new technologies in air conditioners, not only a variety of air conditioners have been developed, but also corresponding improvements have been made to the control methods of air conditioners in different environments; among them, portable air conditioners are air conditioners that can be carried around. With the networking of air conditioners to realize the Internet of Things, portable air conditioners can be equipped with Bluetooth modules for use.
[0003] Portable air conditioners usually carry batteries for power supply. In the prior art, the portable air conditioner communicates with the battery to detect the current of the air conditioner in real time, to determine the state of the air conditioner according to the current of the air conditioner, and to perform corresponding power-off protection operations according to the state of the air conditioner. Since the current during the use of the Bluetooth function is very similar to the current of the air conditioner in standby mode, the air conditioner standby state and the low-power air conditioning function operation state cannot be distinguished in the air conditioner power-off detection, and abnormal power off is prone to occur.
[0004] Therefore, the existing air conditioner power failure detection method has the problem of low reliability. Summary of the invention
[0005] The embodiments of the present invention provide an air conditioner power failure protection detection method, device, equipment and storage medium, aiming to solve the problem of low reliability of the existing air conditioner power failure detection method.
[0006] In a first aspect, an embodiment of the present invention provides a method for detecting power-off protection of an air conditioner, the method being applied to a control module and a battery module of the air conditioner, the battery module comprising a battery and a battery controller, the method comprising:
[0007] If the battery controller detects a power-on signal of the air conditioner, it determines whether the power-off condition is met according to the collected current value, and obtains a first judgment result;
[0008] If the first judgment result is yes, the battery controller controls the air conditioner to power off;
[0009] The control module determines whether the air conditioner is in a standby state;
[0010] If the air conditioner is in standby mode, the control module determines whether the load opening condition is met according to the Bluetooth connection information to obtain a second determination result;
[0011] If the second determination result is yes, the control module issues a load opening instruction to control the load to open.
[0012] In a second aspect, an embodiment of the present invention further provides an air conditioner power-off protection detection device, the device is configured in a control module and a battery module of the air conditioner, the battery module includes a battery and a battery controller, and the device includes:
[0013] A first judgment unit, configured to determine whether a power-off condition is met according to the collected current value if the battery controller detects a power-on signal of the air conditioner, and obtain a first judgment result;
[0014] a first control unit, configured to control the battery controller to power off the air conditioner if the first judgment result is yes;
[0015] A standby judgment unit, used for the control module to judge whether the air conditioner is in a standby state;
[0016] A second judgment unit, configured to, if the air conditioner is in a standby state, cause the control module to judge whether a load opening condition is met according to the Bluetooth connection information, and obtain a second judgment result;
[0017] The second control unit is used for, if the second judgment result is yes, the control module issues a load opening instruction to control the load to open.
[0018] In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method described in the first aspect is implemented.
[0019] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program includes program instructions, and wherein the program instructions, when executed by a processor, can implement the method described in the first aspect above.
[0020] The embodiment of the present invention provides a method, device, equipment and storage medium for detecting power-off protection of an air conditioner. The method is applied to a control module and a battery module of an air conditioner. The battery module includes a battery and a battery controller. The method includes: if the battery controller detects a power-on signal of the air conditioner, it determines whether the power-off condition is met according to the collected current value, and obtains a first judgment result; if the first judgment result is yes, the battery controller controls the air conditioner to power off; the control module determines whether the air conditioner is in a standby state; if the air conditioner is in a standby state, the control module determines whether the load opening condition is met according to the Bluetooth connection information, and obtains a second judgment result; if the second judgment result is yes, the control module issues a load opening instruction to control the load to be opened. The embodiment of the present invention can issue a load opening instruction to control the load to be opened, and then distinguish the standby state of the air conditioner from the low-power air conditioner function operation state, which can effectively prevent the abnormal power-off phenomenon of the air conditioner and improve the reliability of power-off protection detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0022] Figure 1 A schematic diagram of a flow chart of a method for detecting power failure protection of an air conditioner provided by an embodiment of the present invention;
[0023] Figure 2 A schematic diagram of a first sub-process of the air conditioner power-off protection detection method provided by an embodiment of the present invention;
[0024] Figure 3 A schematic diagram of a second sub-process of the air conditioner power-off protection detection method provided by an embodiment of the present invention;
[0025] Figure 4 A schematic block diagram of an air conditioner power failure protection detection device provided by an embodiment of the present invention;
[0026] Figure 5 A schematic block diagram of an electronic device provided by an embodiment of the present invention;
[0027] Figure 6 A schematic diagram of an application scenario of the air conditioner power-off protection detection method provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0029] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0030] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0031] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0032] See 6, Figure 6 Schematic diagram of application scenario of the air conditioner power-off protection detection method provided by an embodiment of the present invention. The method is applied to the control module 11 and the battery module 12 of the air conditioner 10, the control module 11 and the battery module 12 are not in communication connection; the battery module 12 includes a battery 121 and a battery controller 122; the battery module 12 is connected to the main power supply 20 via a power cord; the air conditioner 10 also includes a Bluetooth module 13, and the Bluetooth module 13 is in communication connection with the control module 11.
[0033] Figure 1 The flowchart of the air conditioner power failure protection detection method provided by the embodiment of the present invention is as follows. Figure 1 As shown, the method includes the following steps S110-S150.
[0034] S110: If the battery controller detects a power-on signal of the air conditioner, it determines whether a power-off condition is met according to the collected current value to obtain a first judgment result.
[0035] In this embodiment, the battery module is connected to the main power supply via a power line. If the battery controller detects an air conditioner power-on signal, it determines whether the power-off condition is met based on the collected current value to obtain a first judgment result; wherein the current value is the current on the power line.
[0036] In one embodiment, if Figure 2 As shown, step S110 includes sub-steps S111-S112:
[0037] S111, according to the multiple current ranges in the power-off condition, determining a category to which a current range matching the current value belongs as a target category;
[0038] S112: If the target category is the third category, obtain a first judgment result that the current value does not meet the power-off condition.
[0039] In this embodiment, if the current value is less than the first current threshold, the current value is in the first current range, the value of the first current threshold can be 100mA, and if the current value is in the first current range, the target category is the first type; if the current value is between the first current threshold and the second current threshold, the current value is in the second current range, the value of the first current threshold can be 100mA, the value of the second current threshold can be 150mA, and if the current value is in the second current range, the target category is the second type; if the current value is greater than the second current threshold, the current value is in the third current range, the value of the second current threshold can be 150mA, and if the current value is in the third current range, the target category is the third type; if the target category is the third category, a first judgment result is obtained that the current value does not meet the power-off condition.
[0040] Furthermore, if the target category is the third category, then after obtaining the first judgment result that the current value does not meet the power-off condition, it also includes: waiting for a preset third duration and then returning to execute the step of judging whether the power-off condition is met according to the collected current value to obtain the first judgment result; the third duration can be set to 300 seconds.
[0041] In one embodiment, after step S111, it further includes: if the target category is the first category, determining whether the duration of the current value is greater than the first duration; if the duration of the current value is greater than the first duration, obtaining a first determination result that the current value meets a condition.
[0042] In this embodiment, if the current value is less than the first current threshold, the current value is in the first current range, the value of the first current threshold can be 100mA, if the current value is in the first current range, the target category is the first type, if the target category is the first category, then it is determined whether the duration of the current value is greater than the first duration; if the duration of the current value is greater than the first duration, a first judgment result that the current value meets the condition is obtained; wherein the first duration can be set to 50 seconds; specifically, when the target category is the first category, it can be determined that the air conditioner has no devices running at this time, if the air conditioner has no devices running for more than 50 seconds, the battery controller controls the air conditioner to power off, that is, disconnects from the main power supply.
[0043] Furthermore, if the duration of the current value is not greater than the first duration, the process returns to the step of determining whether the power-off condition is met based on the collected current value to obtain a first determination result.
[0044] In one embodiment, after step S111, it further includes: if the target category is the second category, determining whether the duration of the current value is greater than the second duration; if the duration of the current value is greater than the second duration, obtaining a first determination result that the current value meets a condition.
[0045] In this embodiment, if the current value is between the first current threshold and the second current threshold, the current value is in the second current range, the value of the first current threshold can be 100mA, and the value of the second current threshold can be 150mA. If the current value is in the second current range, the target category is the second type. If the target category is the second category, it is determined whether the duration of the current value is greater than the second duration; if the duration of the current value is greater than the second duration, a first judgment result is obtained that the current value meets the condition; wherein the second duration can be set to 180 seconds; specifically, when the target category is the second category, it can be determined that the air conditioner is in standby mode. When the duration of the air conditioner in the standby mode is greater than the second duration, the battery controller controls the air conditioner to power off, that is, disconnects from the main power supply.
[0046] Further, if the duration of the current value is not greater than the second duration, the process returns to the step of determining whether the power-off condition is met based on the collected current value to obtain a first determination result.
[0047] S120: If the first judgment result is yes, the battery controller controls the air conditioner to power off.
[0048] In this embodiment, if the first judgment result is yes, the battery controller controls the air conditioner to power off by disconnecting from the main power supply.
[0049] S130: The control module determines whether the air conditioner is in a standby state.
[0050] In this embodiment, the air conditioner includes a control module and a battery module, and the control module is not communicatively connected to the battery module; the battery module includes a battery and a battery controller, and the battery is used to power the air conditioner; the air conditioner also includes a Bluetooth module, and the Bluetooth module is communicatively connected to the control module; when the air conditioner is in standby mode, the Bluetooth module can operate normally. Since the current of the air conditioner in the Bluetooth connection state is very similar to the current in the standby state, the air conditioner is prone to abnormal power failure when in the Bluetooth connection state. At this time, the control module can control the load to open, so as to exit the standby state and increase the current value of the air conditioner, so that the battery controller can distinguish between the air conditioner standby state and the low-power air conditioning function operation state (i.e., the Bluetooth connection state), thereby preventing the air conditioner from having abnormal power failure and improving the reliability of power failure protection detection.
[0051] S140: If the air conditioner is in a standby state, the control module determines whether a load opening condition is met according to the Bluetooth connection information to obtain a second determination result.
[0052] In this embodiment, the control module is communicatively connected with the Bluetooth module, and the control module can read the Bluetooth connection information of the Bluetooth module in real time; if the air conditioner is in standby mode, the control module determines whether the load opening condition is met based on the Bluetooth connection information to obtain a second judgment result.
[0053] Furthermore, if the air conditioner is not in the standby state, the control module returns to the step of determining whether the air conditioner is in the standby state after waiting for a preset third duration; the third duration can be set to 300 seconds.
[0054] In one embodiment, after step S140, the method further includes: if the second judgment result is no, the battery controller controls the air conditioner to power off.
[0055] In this embodiment, if the second judgment result is no, it means that the air conditioner is in standby mode (Bluetooth is not connected) and the duration is greater than the second duration, and the battery controller controls the air conditioner to power off.
[0056] In one embodiment, if Figure 3 As shown, step S140 includes sub-steps S141-S142:
[0057] S141, judging whether the Bluetooth is in an on state according to the Bluetooth connection information, and obtaining a Bluetooth state judgment result;
[0058] S142: If the Bluetooth status judgment result is yes, a second judgment result is obtained that the Bluetooth connection information satisfies a load opening condition.
[0059] In this embodiment, it is determined whether the Bluetooth is in the on state according to the Bluetooth connection information to obtain a Bluetooth state judgment result; if the Bluetooth state judgment result is yes, a second judgment result is obtained that the Bluetooth connection information satisfies the load on condition; specifically, since the current during the use of the Bluetooth function is very similar to the current of the air conditioner in standby mode, when the air conditioner is in standby state, if the Bluetooth is in the on state, the load can be turned on to exit the standby state and increase the current value of the air conditioner, so that the battery controller can distinguish between the standby state of the air conditioner and the Bluetooth connection state of the air conditioner to prevent abnormal power failure of the air conditioner.
[0060] In one embodiment, after step S141, it also includes: if the Bluetooth status judgment result is no, then judging whether the Bluetooth disconnection time is greater than the preset disconnection time; if the Bluetooth disconnection time is greater than the preset disconnection time, obtaining a second judgment result that the Bluetooth connection information does not meet the load opening condition.
[0061] In this embodiment, if the Bluetooth status judgment result is no, then it is determined whether the Bluetooth disconnection time is greater than the preset disconnection time; the disconnection time can be set to 180 seconds, and the disconnection time is equal to the second duration; if the Bluetooth disconnection time is greater than the preset disconnection time, it means that the air conditioner is in standby state and the duration is greater than the second duration, then a second judgment result is obtained that the Bluetooth connection information does not meet the load opening condition; if the second judgment result is no, the battery controller controls the air conditioner to power off.
[0062] Furthermore, if the disconnection time of the Bluetooth is not greater than the preset disconnection time, the process returns to the step of executing the control module to determine whether the air conditioner is in a standby state.
[0063] S150: If the second judgment result is yes, the control module issues a load opening instruction to control the load to open.
[0064] In this embodiment, if the second judgment result is yes, the control module issues a load-on instruction to control the load to turn on, and turns on the load to increase the current value of the air conditioner to distinguish the standby state of the air conditioner from the Bluetooth connection state of the air conditioner, thereby preventing the air conditioner from abnormal power failure when it is in the Bluetooth connection state; wherein, the load can be the fan of the air conditioner, and specifically, the operating energy consumption of the air conditioner can be reduced by controlling the fan to run at a low speed.
[0065] To sum up, the embodiment of the present invention can issue a load-on instruction to control the load to turn on, and then distinguish the air conditioner standby state from the low-power air conditioner function operation state, which can effectively prevent the air conditioner from abnormal power failure and improve the reliability of power-off protection detection.
[0066] Figure 4 A schematic block diagram of an air conditioner power failure protection detection device provided by an embodiment of the present invention. Figure 4 As shown, corresponding to the above air conditioner power-off protection detection method, the present invention also provides an air conditioner power-off protection detection device, the device is configured in the control module and battery module of the air conditioner, and the battery module includes a battery and a battery controller. Figure 4 The air conditioner power-off protection detection device 700 comprises:
[0067] The first judgment unit 701 is used for the battery controller to judge whether the power-off condition is met according to the collected current value if the battery controller detects the air conditioner power-on signal, and obtain a first judgment result;
[0068] A first control unit 702, configured to control the battery controller to power off the air conditioner if the first judgment result is yes;
[0069] A standby determination unit 703, used by the control module to determine whether the air conditioner is in a standby state;
[0070] The second judgment unit 704 is used for, if the air conditioner is in a standby state, the control module to judge whether the load opening condition is met according to the Bluetooth connection information, and obtain a second judgment result;
[0071] The second control unit 705 is configured to cause the control module to issue a load opening instruction to control the load to open if the second judgment result is yes.
[0072] In some embodiments, when the first judgment unit 701 performs the step of judging whether the power-off condition is met according to the collected current value to obtain the first judgment result, it is specifically used to:
[0073] According to the multiple current ranges in the power-off condition, the category to which the current range matching the current value belongs is determined as the target category; if the target category is the third category, a first judgment result is obtained that the current value does not meet the power-off condition.
[0074] In some embodiments, after executing the step of determining, according to the multiple current ranges in the power-off condition, that the category to which the current range matching the current value belongs is the target category, the first determination unit 701 is further configured to:
[0075] If the target category is the first category, it is determined whether the duration of the current value is greater than the first duration; if the duration of the current value is greater than the first duration, a first determination result that the current value satisfies a condition is obtained.
[0076] In some embodiments, after executing the step of determining, according to the multiple current ranges in the power-off condition, that the category to which the current range matching the current value belongs is the target category, the first determination unit 701 is further configured to:
[0077] If the target category is the second category, it is determined whether the duration of the current value is greater than the second duration; if the duration of the current value is greater than the second duration, a first determination result is obtained that the current value satisfies a condition.
[0078] In some embodiments, after executing the control module to determine whether the load opening condition is met according to the Bluetooth connection information and obtaining the second judgment result step, the second judgment unit 704 is further used to:
[0079] If the second judgment result is no, the battery controller controls the air conditioner to power off.
[0080] In some embodiments, when the control module determines whether the load opening condition is met according to the Bluetooth connection information and obtains the second judgment result step, the second judgment unit 704 is specifically used to:
[0081] It is determined whether the Bluetooth is in an on state according to the Bluetooth connection information to obtain a Bluetooth state determination result; if the Bluetooth state determination result is yes, a second determination result is obtained that the Bluetooth connection information satisfies a load on condition.
[0082] In some embodiments, after executing the step of determining whether the Bluetooth is turned on according to the Bluetooth connection information and obtaining a Bluetooth status determination result, the second determination unit 704 is further configured to:
[0083] If the Bluetooth status judgment result is no, then determine whether the Bluetooth disconnection time is greater than the preset disconnection time; if the Bluetooth disconnection time is greater than the preset disconnection time, obtain a second judgment result that the Bluetooth connection information does not meet the load opening condition.
[0084] It should be noted that technicians in the relevant field can clearly understand that the specific implementation process of the above-mentioned air conditioner power-off protection detection device and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and brevity of description, it will not be repeated here.
[0085] The above-mentioned air conditioner power failure protection detection device can be implemented in the form of a computer program. The computer program can be used in Figure 5 The electronic device shown is running.
[0086] See also Figure 5 , Figure 5 This is a schematic block diagram of an electronic device provided by an embodiment of the present invention. The electronic device 800 is a control module of the air conditioner or a battery module of the air conditioner.
[0087] See also Figure 5 The electronic device 800 includes a processor 802 , a memory and a network interface 805 connected via a system bus 801 , wherein the memory may include a non-volatile storage medium 803 and an internal memory 804 .
[0088] The non-volatile storage medium 803 can store an operating system 8031 and a computer program 8032. The computer program 8032 includes program instructions, and when the program instructions are executed, the processor 802 can execute an air conditioner power-off protection detection method.
[0089] The processor 802 is used to provide computing and control capabilities to support the operation of the entire electronic device 800 .
[0090] The internal memory 804 provides an environment for the operation of the computer program 8032 in the non-volatile storage medium 803. When the computer program 8032 is executed by the processor 802, the processor 802 can execute an air conditioner power-off protection detection method.
[0091] The network interface 805 is used to communicate with other devices over the network. Figure 5 The structure shown in the figure is merely a block diagram of a partial structure related to the solution of the present invention, and does not constitute a limitation on the electronic device 800 to which the solution of the present invention is applied. The specific electronic device 800 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0092] The processor 802 is used to run the computer program 8032 stored in the memory to implement the following steps:
[0093] If the battery controller detects a power-on signal of the air conditioner, it determines whether the power-off condition is met based on the collected current value to obtain a first judgment result; if the first judgment result is yes, the battery controller controls the air conditioner to power off; the control module determines whether the air conditioner is in standby mode; if the air conditioner is in standby mode, the control module determines whether the load opening condition is met based on the Bluetooth connection information to obtain a second judgment result; if the second judgment result is yes, the control module issues a load opening instruction to control the load to open.
[0094] In some embodiments, when the processor 802 implements the step of determining whether the power-off condition is met according to the collected current value and obtaining the first determination result, the processor 802 specifically implements the following steps:
[0095] According to the multiple current ranges in the power-off condition, the category to which the current range matching the current value belongs is determined as the target category; if the target category is the third category, a first judgment result is obtained that the current value does not meet the power-off condition.
[0096] In some embodiments, after implementing the step of determining, according to the multiple current ranges in the power-off condition, that the category to which the current range matching the current value belongs is the target category, the processor 802 further implements the following steps:
[0097] If the target category is the first category, it is determined whether the duration of the current value is greater than the first duration; if the duration of the current value is greater than the first duration, a first determination result that the current value satisfies a condition is obtained.
[0098] In some embodiments, after implementing the step of determining, according to the multiple current ranges in the power-off condition, that the category to which the current range matching the current value belongs is the target category, the processor 802 further implements the following steps:
[0099] If the target category is the second category, it is determined whether the duration of the current value is greater than the second duration; if the duration of the current value is greater than the second duration, a first determination result is obtained that the current value satisfies a condition.
[0100] In some embodiments, after the processor 802 implements the control module to determine whether the load opening condition is met according to the Bluetooth connection information and obtains the second determination result, it further implements the following steps:
[0101] If the second judgment result is no, the battery controller controls the air conditioner to power off.
[0102] In some embodiments, when the processor 802 implements the control module to determine whether the load opening condition is met according to the Bluetooth connection information and obtains the second determination result step, the processor 802 specifically implements the following steps:
[0103] It is determined whether the Bluetooth is in an on state according to the Bluetooth connection information to obtain a Bluetooth state determination result; if the Bluetooth state determination result is yes, a second determination result is obtained that the Bluetooth connection information satisfies a load on condition.
[0104] In some embodiments, after implementing the step of determining whether the Bluetooth is turned on according to the Bluetooth connection information and obtaining a Bluetooth status determination result, the processor 802 further implements the following steps:
[0105] If the Bluetooth status judgment result is no, then determine whether the Bluetooth disconnection time is greater than the preset disconnection time; if the Bluetooth disconnection time is greater than the preset disconnection time, obtain a second judgment result that the Bluetooth connection information does not meet the load opening condition.
[0106] It should be understood that in the embodiment of the present invention, the processor 802 may be a central processing unit (CPU), and the processor 802 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0107] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.
[0108] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the following steps:
[0109] If the battery controller detects a power-on signal of the air conditioner, it determines whether the power-off condition is met based on the collected current value to obtain a first judgment result; if the first judgment result is yes, the battery controller controls the air conditioner to power off; the control module determines whether the air conditioner is in standby mode; if the air conditioner is in standby mode, the control module determines whether the load opening condition is met based on the Bluetooth connection information to obtain a second judgment result; if the second judgment result is yes, the control module issues a load opening instruction to control the load to open.
[0110] In one embodiment, when the processor executes the program instructions to determine whether the power-off condition is met according to the collected current value and obtains the first determination result step, the processor specifically implements the following steps:
[0111] According to the multiple current ranges in the power-off condition, the category to which the current range matching the current value belongs is determined as the target category; if the target category is the third category, a first judgment result is obtained that the current value does not meet the power-off condition.
[0112] In one embodiment, after the processor executes the program instructions to implement the step of determining, according to the multiple current ranges in the power-off condition, the category to which the current range matching the current value belongs as the target category, the processor further implements the following steps:
[0113] If the target category is the first category, it is determined whether the duration of the current value is greater than the first duration; if the duration of the current value is greater than the first duration, a first determination result that the current value satisfies a condition is obtained.
[0114] In one embodiment, after the processor executes the program instructions to implement the step of determining, according to the multiple current ranges in the power-off condition, the category to which the current range matching the current value belongs as the target category, the processor further implements the following steps:
[0115] If the target category is the second category, it is determined whether the duration of the current value is greater than the second duration; if the duration of the current value is greater than the second duration, a first determination result is obtained that the current value satisfies a condition.
[0116] In one embodiment, the processor executes the program instructions to implement the control module to determine whether the load opening condition is met according to the Bluetooth connection information, and after obtaining the second determination result, further implements the following steps:
[0117] If the second judgment result is no, the battery controller controls the air conditioner to power off.
[0118] In one embodiment, when the processor executes the program instructions to implement the control module to determine whether the load opening condition is met according to the Bluetooth connection information and obtain the second determination result step, the following steps are specifically implemented:
[0119] It is determined whether the Bluetooth is in an on state according to the Bluetooth connection information to obtain a Bluetooth state determination result; if the Bluetooth state determination result is yes, a second determination result is obtained that the Bluetooth connection information satisfies a load on condition.
[0120] In one embodiment, after the processor executes the program instructions to determine whether the Bluetooth is in an on state according to the Bluetooth connection information and obtains a Bluetooth state determination result, it further implements the following steps:
[0121] If the Bluetooth status judgment result is no, then determine whether the Bluetooth disconnection time is greater than the preset disconnection time; if the Bluetooth disconnection time is greater than the preset disconnection time, obtain a second judgment result that the Bluetooth connection information does not meet the load opening condition.
[0122] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.
[0123] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0124] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0125] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0126] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for an electronic device to perform all or part of the steps of the method described in each embodiment of the present invention.
[0127] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for detecting power failure protection of an air conditioner, characterized in that: The method is applied to a control module and a battery module of an air conditioner, wherein the battery module includes a battery and a battery controller, and the method includes: If the battery controller detects a power-on signal of the air conditioner, it determines whether the power-off condition is met according to the collected current value, and obtains a first judgment result; If the first judgment result is yes, the battery controller controls the air conditioner to power off; The control module determines whether the air conditioner is in a standby state; If the air conditioner is in standby mode, the control module determines whether the load opening condition is met according to the Bluetooth connection information to obtain a second determination result; If the second determination result is yes, the control module issues a load opening instruction to control the load to open.
2. The air conditioner power failure protection detection method according to claim 1, characterized in that: The step of determining whether the power-off condition is met according to the collected current value to obtain a first determination result includes: According to the multiple current ranges in the power-off condition, determining a category to which a current range matching the current value belongs as a target category; If the target category is the third category, a first judgment result is obtained that the current value does not meet the power-off condition.
3. The air conditioner power failure protection detection method according to claim 2, characterized in that: After determining, according to the multiple current ranges in the power-off condition, that the category to which the current range matching the current value belongs is the target category, the method further includes: If the target category is the first category, determining whether the duration of the current value is greater than a first duration; If the duration of the current value is greater than the first duration, a first judgment result is obtained that the current value satisfies a condition.
4. The air conditioner power failure protection detection method according to claim 2, characterized in that: After determining, according to the multiple current ranges in the power-off condition, that the category to which the current range matching the current value belongs is the target category, the method further includes: If the target category is the second category, determining whether the duration of the current value is greater than a second duration; If the duration of the current value is greater than the second duration, a first judgment result is obtained that the current value satisfies a condition.
5. The air conditioner power failure protection detection method according to claim 1, characterized in that: The control module determines whether the load opening condition is met according to the Bluetooth connection information, and after obtaining the second judgment result, further includes: If the second judgment result is no, the battery controller controls the air conditioner to power off.
6. The air conditioner power failure protection detection method according to claim 1, characterized in that: The control module determines whether the load opening condition is met according to the Bluetooth connection information, and obtains a second judgment result, including: Determine whether the Bluetooth is turned on according to the Bluetooth connection information, and obtain a Bluetooth status determination result; If the Bluetooth status judgment result is yes, a second judgment result is obtained that the Bluetooth connection information satisfies the load opening condition.
7. The air conditioner power failure protection detection method according to claim 6, characterized in that: After determining whether the Bluetooth is in an on state according to the Bluetooth connection information and obtaining a Bluetooth state determination result, the method further includes: If the result of the Bluetooth status determination is no, determining whether the Bluetooth disconnection time is greater than a preset disconnection time; If the disconnection time of the Bluetooth is greater than the preset disconnection time, a second judgment result is obtained that the Bluetooth connection information does not meet the load opening condition.
8. An air conditioner power failure protection detection device, characterized in that: The device is configured in a control module and a battery module of the air conditioner, the battery module includes a battery and a battery controller, and the device includes: A first judgment unit, configured to determine whether a power-off condition is met according to the collected current value if the battery controller detects a power-on signal of the air conditioner, and obtain a first judgment result; a first control unit, configured to control the battery controller to power off the air conditioner if the first judgment result is yes; A standby judgment unit, used for the control module to judge whether the air conditioner is in a standby state; A second judgment unit, configured to, if the air conditioner is in a standby state, cause the control module to judge whether a load opening condition is met according to the Bluetooth connection information, and obtain a second judgment result; The second control unit is used for, if the second judgment result is yes, the control module issues a load opening instruction to control the load to open.
9. An electronic device, the electronic device being a control module of the air conditioner or a battery module of the air conditioner; the electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor corresponding to the control module and the processor corresponding to the battery module simultaneously execute the computer program, the air conditioner power-off protection detection method as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program includes program instructions. When the program instructions are executed by the processor, the processor executes the air conditioner power-off protection detection method according to any one of claims 1 to 7.
Citation Information
Cited By
Operation testing method and apparatus for motor with load, and computer storage medium
WO2026082195A1
