A device discharge method, apparatus, electronic device, and storage medium

By detecting the type of motor in home appliances and applying corresponding control strategies, the problem of increased hardware costs caused by excessively large discharge capacitors is solved, achieving efficient and low-cost discharge.

CN115693627BActive Publication Date: 2025-11-14GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211327792.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-27
Publication Date
2025-11-14
Estimated Expiration
2042-10-27

AI Technical Summary

Technical Problem

Existing technologies, which use a discharge resistor connected in parallel at the AC terminal for discharge, cannot effectively solve the problem of excessively large discharge capacitors, leading to increased hardware costs.

Method used

By detecting the motor type of the target device and determining the control strategy based on that type, the target device's own motor is used for discharge, including different control strategies for tapped motors, PG motors, and DC motors, such as the highest gear, full chopper conduction, and maximum duty cycle, to achieve rapid discharge.

Benefits of technology

It meets the demand for larger discharge capacitors, reduces the hardware cost of the discharge process, and avoids the need for additional external hardware devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115693627B_ABST
    Figure CN115693627B_ABST
Patent Text Reader

Abstract

This application provides a device discharge method, apparatus, electronic device, and storage medium, belonging to the field of home appliance technology. This application, upon detecting a power outage in a target device, determines the motor type of the target device's own motor; determines a control strategy for the target motor based on the motor type; and controls the target motor to operate based on the control strategy to discharge the target device. The solution provided by this application allows for discharge using the target device's own motor when the device is powered off. Compared to existing technologies that use external discharge resistors, this solution can meet the requirement of a larger discharge capacitor, addressing the issue of excessively large discharge capacitors. Furthermore, the solution provided by this application eliminates the need for external hardware devices during the discharge process, reducing the hardware costs associated with the discharge process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of household appliance technology, and in particular to a device discharge method, apparatus, electronic device and storage medium. Background Technology

[0002] For household appliances with plugs (such as household air conditioners), it is required that the voltage on the plug drop below 34V within 1 second after the plug is disconnected, so as to avoid the risk of electric shock to people after the air conditioner loses power and protect the personal safety of users.

[0003] In response to this requirement, the current discharge method for household appliances is generally as follows: a discharge resistor is connected in parallel at the AC power terminal, and discharge is performed through the discharge resistor after the plug is disconnected.

[0004] However, the method of discharging by connecting a discharge resistor in parallel at the AC terminal cannot solve the problem of excessively large discharge capacitors, and also has the problem of increased hardware costs due to the parallel discharge resistor. Summary of the Invention

[0005] The purpose of this application is to provide a device discharge method, apparatus, electronic device, and storage medium to solve the problem that the discharge capacitance is too large when using a discharge resistor connected in parallel with the AC power terminal. The specific technical solution is as follows:

[0006] In a first aspect, a device discharge method is provided, the method comprising:

[0007] If a power failure is detected in the target device, determine the type of motor of the target motor that the target device itself possesses;

[0008] Determine the control strategy for the target motor based on the motor type;

[0009] The target motor is controlled to operate based on the control strategy in order to discharge the target device.

[0010] In one possible implementation, before determining the motor type of the target motor inherent in the target device itself, the method further includes:

[0011] Detect whether the target motor is in standby mode;

[0012] If the target motor is in standby mode, identify other running loads and stop supplying power to those other loads.

[0013] In one possible implementation, the method further includes:

[0014] After the target device is powered on, the zero-crossing signal is detected by the zero-crossing detection module at a preset cycle. If the zero-crossing signal is not detected by the zero-crossing detection module for a preset number of consecutive cycles, it is determined that the target device is powered off.

[0015] In one possible implementation, after controlling the target motor to operate based on the control strategy, the method further includes:

[0016] Detect whether the target device has been repowered;

[0017] Upon detecting that the target device has been powered back on, obtain the operating parameters of the target device before the power failure;

[0018] The target device is controlled to operate based on the aforementioned operating parameters.

[0019] In one possible implementation, determining the control strategy for the target motor based on the motor type includes:

[0020] When the motor type is a tapped motor, the control strategy is to control the target motor to run at the highest gear.

[0021] In one possible implementation, determining the control strategy for the target motor based on the motor type includes:

[0022] When the motor type is a PG motor, the control strategy is to control the target motor to operate in a fully chopper-conducted manner.

[0023] In one possible implementation, determining the control strategy for the target motor based on the motor type includes:

[0024] When the motor type is a DC motor, the control strategy is to control the target motor to operate at the maximum duty cycle.

[0025] Secondly, a device discharge apparatus is provided, the apparatus comprising:

[0026] The first determining module is used to determine the motor type of the target motor that the target device itself possesses when a power failure is detected in the target device.

[0027] The second determining module is used to determine the control strategy for the target motor based on the motor type;

[0028] The control module is used to control the operation of the target motor based on the control strategy in order to discharge the target device.

[0029] In one possible implementation, the device further includes a detection module, the detection module being configured to:

[0030] Detect whether the target motor is in standby mode;

[0031] If the target motor is in standby mode, identify other running loads and stop supplying power to those other loads.

[0032] In one possible implementation, the apparatus further includes a third determining module, the third determining module being configured to:

[0033] After the target device is powered on, the zero-crossing signal is detected by the zero-crossing detection module at a preset cycle. If the zero-crossing signal is not detected by the zero-crossing detection module for a preset number of consecutive cycles, it is determined that the target device is powered off.

[0034] In one possible implementation, the apparatus further includes an acquisition module, the acquisition module being configured to:

[0035] Detect whether the target device has been repowered;

[0036] Upon detecting that the target device has been powered back on, obtain the operating parameters of the target device before the power failure;

[0037] The target device is controlled to operate based on the aforementioned operating parameters.

[0038] In one possible implementation, the second determining module is specifically used for:

[0039] When the motor type is a tapped motor, the control strategy is to control the target motor to run at the highest gear.

[0040] In one possible implementation, the second determining module is further configured to:

[0041] When the motor type is a PG motor, the control strategy is to control the target motor to operate in a fully chopper-conducted manner.

[0042] In one possible implementation, the second determining module is further configured to:

[0043] When the motor type is a DC motor, the control strategy is to control the target motor to operate at the maximum duty cycle.

[0044] Thirdly, an electronic device is provided, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0045] Memory, used to store computer programs;

[0046] When a processor executes a program stored in memory, it implements any of the steps described in the first aspect.

[0047] Fourthly, a computer-readable storage medium is provided, characterized in that the computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of any of the methods described in the first aspect.

[0048] Fifthly, a computer program product containing instructions is provided, which, when run on a computer, causes the computer to execute any of the device discharge methods described above.

[0049] Beneficial effects of the embodiments in this application:

[0050] This application provides a device discharge method, apparatus, electronic device, and storage medium. In this application, when a power outage is detected in a target device, the type of the target motor inherent in the target device is determined. Then, a control strategy for the target motor is determined based on the motor type. Finally, the target motor is controlled to operate based on the control strategy to discharge the target device. The solution provided by this application allows for discharge using the target motor inherent in the target device when it loses power. Compared to existing technologies that use external discharge resistors, this solution can meet the requirement for a larger discharge capacitor, addressing the issue of excessively large discharge capacitors. Furthermore, the solution provided by this application eliminates the need for external hardware devices during the discharge process, reducing the hardware costs required for the discharge process.

[0051] Of course, implementing any product or method of this application does not necessarily require achieving all of the advantages described above at the same time. Attached Figure Description

[0052] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0053] Figure 1 A schematic diagram of a target device provided in an embodiment of this application;

[0054] Figure 2 A flowchart of a device discharge method provided in an embodiment of this application;

[0055] Figure 3 A flowchart of another device discharge method provided in the embodiments of this application;

[0056] Figure 4A flowchart of another device discharge method provided in the embodiments of this application;

[0057] Figure 5 This is a schematic diagram of the structure of a device discharge apparatus provided in an embodiment of this application;

[0058] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0059] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0060] Currently, the common method for discharging household appliances is to connect a discharge resistor in parallel with the AC power supply, allowing discharge to occur through this resistor after the power is disconnected. However, this method cannot solve the problem of excessively large discharge capacitors and also increases hardware costs due to the parallel discharge resistor. Therefore, this application provides a device discharge method that can be applied to the main control unit module in household appliances.

[0061] To facilitate understanding of the device discharge method shown in the embodiments of this application, the structure of the target device involved in the embodiments of this application will be described exemplarily below:

[0062] See Figure 1 This is a schematic diagram of a module of the target device. For example... Figure 1 As shown, the target device includes a power input module, a main control unit module, a zero-crossing detection module, and a motor load. In practical applications, because the main control unit module and the zero-crossing signal detection module have energy storage components, they can still operate normally for a period of time when the target device loses power.

[0063] The following will describe in detail a device discharge method provided in the embodiments of this application, with reference to specific implementation methods. Figure 2 As shown, the specific steps are as follows:

[0064] S201, when a power failure is detected in the target device, the type of the target motor in the target device itself is determined.

[0065] The aforementioned target device is a household appliance with a plug, such as an air conditioner.

[0066] The aforementioned target motor refers to the motor inherent in the target equipment itself (i.e.) Figure 1 (The target motor load), for example, if the target device is an air conditioner, then the target motor can be the indoor motor in the air conditioner.

[0067] The motor types mentioned above refer to the type of the target motor, such as tapped motors, PG motors, and DC motors.

[0068] In this embodiment of the application, the motor type of the target motor is stored in a preset storage location. When the target device is detected to be powered off, the main control unit module can read the motor type of the target motor from the storage location.

[0069] Since the target device also has a zero-crossing detection module, in one embodiment, the power failure of the target device can be detected by the following steps: after the target device is powered on, the zero-crossing detection module detects the zero-crossing signal according to a preset cycle. If the zero-crossing detection module does not detect the zero-crossing signal for a preset number of consecutive cycles, it is determined that the target device is powered down. In this way, power failure detection can be achieved by the zero-crossing detection module built into the target device itself, without the need for external hardware devices, thus reducing hardware costs.

[0070] Users can set the detection cycle according to their actual situation. For example, for domestic 50Hz power supplies, a zero-crossing signal can generally be detected once every 20ms, so the detection cycle can be set to 20ms. For unidirectional detection, a zero-crossing signal can generally be detected once every 20ms, so the detection cycle can be set to 20ms.

[0071] As one possible implementation, the preset quantity can be 1. That is, if the zero-crossing detection module does not detect a zero-crossing signal in any cycle (i.e., the zero-crossing signal disappears for one cycle), it is considered that the target device has lost power. In this way, it is possible to quickly determine whether the target device has lost power.

[0072] As another possible implementation, the preset number can be 2. That is, the target device is considered to be powered down only when the zero-crossing detection module does not detect a zero-crossing signal for two consecutive cycles (i.e., the zero-crossing signal disappears for two consecutive cycles). In this way, false power-down detection caused by abnormal power supply or interference from high-power devices near the target device can be reduced, thereby improving the accuracy of power-down detection.

[0073] Understandably, the preset quantity can be other values, but considering that the detection time should not be too long, the preset quantity generally cannot be set too large.

[0074] S202, determine the control strategy for the target motor based on the motor type.

[0075] S203, based on the control strategy, control the target motor to operate so as to discharge the target device.

[0076] The following provides a unified explanation of S202 and S203:

[0077] In this embodiment, the motor type may include, but is not limited to, tapped motors, PG motors, and DC motors. A corresponding control strategy is pre-configured for each type of target motor. After determining the motor type of the target motor, the corresponding control strategy can be determined according to the configuration. Then, based on the control strategy, the target motor is controlled to operate, thereby discharging the target device.

[0078] Specifically, when the motor type is a tapped motor, the control strategy is to control the target motor to operate at the highest gear; when the motor type is a PG motor, the control strategy is to control the target motor to operate in a fully chopper-conducted manner; and when the motor type is a DC motor, the control strategy is to control the target motor to operate at the maximum duty cycle.

[0079] In this way, each type of motor can operate at its maximum power, thereby achieving the fastest possible discharge to the target device.

[0080] In practical applications, in order to exit the discharge mode in a timely manner, in another embodiment, the time required for discharge according to step S203 can be measured in advance, and a discharge duration can be set according to this time. The timing starts when S203 is executed. When the timing duration reaches the discharge duration, the discharge mode is exited, that is, the control of the target motor is stopped. In this way, the discharge mode can be exited in a timely manner after the discharge is completed, reducing the waste of computing resources.

[0081] In this application, upon detecting a power outage in the target device, the type of the target motor inherent in the target device is determined. Then, a control strategy for the target motor is determined based on the motor type. Finally, the target motor is controlled to operate based on the control strategy to discharge the target device. The solution provided in this application allows for discharge using the target motor inherent in the target device when it loses power. Compared to existing technologies that use external discharge resistors, this method can meet the requirement of a larger discharge capacitor, solving the problem of excessively large discharge capacitors. Furthermore, the solution provided in this application eliminates the need for external hardware devices during the discharge process, reducing the hardware costs required for the discharge process.

[0082] In another embodiment of this application, before determining the motor type of the target motor possessed by the target device itself, the following steps are further included:

[0083] S301, Detect whether the target motor is in standby mode.

[0084] S302, when the target motor is in standby mode, identify other running loads and stop supplying power to those other loads.

[0085] The following provides a unified explanation of S301 and S302:

[0086] In practical applications, the main control unit module can record the operating status of each load in real time. Each load has two possible states: one is running, and the other is standby (i.e., not running). When the target device loses power, it determines whether the target motor is in standby state based on the currently recorded operating status of each load, and determines other loads that are running.

[0087] Based on this, in this embodiment, when the target device loses power, if the target motor is running, steps S201-S203 can be executed directly to discharge the target device. If the target motor is in standby mode, in order to ensure that the main control unit module can successfully execute steps S201-S203, power supply to other running loads (such as the swing load on an air conditioner) can be stopped, thereby ensuring power supply to the main control unit module.

[0088] In another embodiment of this application, after controlling the target motor to operate based on the control strategy, the following steps are further included:

[0089] S401, Detect whether the target device has been re-powered.

[0090] S402, when the target device is detected to be powered on again, the operating parameters of the target device before the power failure are obtained.

[0091] S403, control the operation of the target device based on the operating parameters.

[0092] The following provides a unified explanation of S401-S403:

[0093] In this embodiment, after controlling the target motor to run based on the control strategy, a zero-crossing detection module can be used to continue detecting the zero-crossing signal. When the zero-crossing signal is detected again, it means that the target device is powered on again. At this time, the operating parameters of the target device before the power failure can be obtained, and the device can be controlled to run according to these operating parameters. In this way, after the target device is powered on again, it can quickly resume operation according to the operating parameters before the power failure without the need for manual adjustment by the user.

[0094] Based on the same technical concept, embodiments of this application also provide a device discharge apparatus, such as... Figure 5As shown, the device includes:

[0095] The first determining module 501 is used to determine the motor type of the target motor that the target device itself possesses when the target device is detected to have lost power.

[0096] The second determining module 502 is used to determine the control strategy for the target motor based on the motor type;

[0097] The control module 503 is used to control the target motor to operate based on the control strategy in order to discharge the target device.

[0098] In one possible implementation, the device further includes a detection module, the detection module being configured to:

[0099] Detect whether the target motor is in standby mode;

[0100] If the target motor is in standby mode, identify other running loads and stop supplying power to those other loads.

[0101] In one possible implementation, the apparatus further includes a third determining module, the third determining module being configured to:

[0102] After the target device is powered on, the zero-crossing signal is detected by the zero-crossing detection module at a preset cycle. If the zero-crossing signal is not detected by the zero-crossing detection module for a preset number of consecutive cycles, it is determined that the target device is powered off.

[0103] In one possible implementation, the apparatus further includes an acquisition module, the acquisition module being configured to:

[0104] Detect whether the target device has been repowered;

[0105] Upon detecting that the target device has been powered back on, obtain the operating parameters of the target device before the power failure;

[0106] The target device is controlled to operate based on the aforementioned operating parameters.

[0107] In one possible implementation, the second determining module is specifically used for:

[0108] When the motor type is a tapped motor, the control strategy is to control the target motor to run at the highest gear.

[0109] In one possible implementation, the second determining module is further configured to:

[0110] When the motor type is a PG motor, the control strategy is to control the target motor to operate in a fully chopper-conducted manner.

[0111] In one possible implementation, the second determining module is further configured to:

[0112] When the motor type is a DC motor, the control strategy is to control the target motor to operate at the maximum duty cycle.

[0113] In this application, upon detecting a power outage in the target device, the type of the target motor inherent in the target device is determined. Then, a control strategy for the target motor is determined based on the motor type. Finally, the target motor is controlled to operate based on the control strategy to discharge the target device. The solution provided in this application allows for discharge using the target motor inherent in the target device when it loses power. Compared to existing technologies that use external discharge resistors, this method can meet the requirement of a larger discharge capacitor, solving the problem of excessively large discharge capacitors. Furthermore, the solution provided in this application eliminates the need for external hardware devices during the discharge process, reducing the hardware costs required for the discharge process.

[0114] Based on the same technical concept, embodiments of this application also provide an electronic device, such as... Figure 6 As shown, it includes a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.

[0115] Memory 113 is used to store computer programs;

[0116] When processor 111 executes a program stored in memory 113, it performs the following steps:

[0117] If a power failure is detected in the target device, determine the type of motor of the target motor that the target device itself possesses;

[0118] Determine the control strategy for the target motor based on the motor type;

[0119] The target motor is controlled to operate based on the control strategy in order to discharge the target device.

[0120] The communication bus mentioned in the above electronic devices can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.

[0121] The communication interface is used for communication between the aforementioned electronic devices and other devices.

[0122] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0123] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0124] In another embodiment provided in this application, a computer-readable storage medium is also provided, which stores a computer program that, when executed by a processor, implements the steps of any of the above-described device discharge methods.

[0125] In another embodiment provided in this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute any of the device discharge methods described above.

[0126] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (SSD)).

[0127] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0128] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for discharging a device, characterized in that, The method includes: If a power failure is detected in the target device, determine the type of motor of the target motor that the target device itself possesses; Determine the control strategy for the target motor based on the motor type; The target motor is controlled to operate based on the control strategy in order to discharge the target device; The step of determining the control strategy for the target motor based on the motor type includes: When the motor type is a tapped motor, the control strategy is to control the target motor to run at the highest gear. When the motor type is a PG motor, the control strategy is to control the target motor to operate in a fully chopper-conducted manner; When the motor type is a DC motor, the control strategy is to control the target motor to operate at the maximum duty cycle.

2. The method according to claim 1, characterized in that, Before determining the motor type of the target motor inherent in the target device itself, the method further includes: Detect whether the target motor is in standby mode; If the target motor is in standby mode, identify other running loads and stop supplying power to those other loads.

3. The method according to claim 1, characterized in that, The method further includes: After the target device is powered on, the zero-crossing signal is detected by the zero-crossing detection module at a preset cycle. If the zero-crossing signal is not detected by the zero-crossing detection module for a preset number of consecutive cycles, it is determined that the target device is powered off.

4. The method according to claim 1, characterized in that, After controlling the target motor to operate based on the control strategy, the method further includes: Detect whether the target device has been repowered; Upon detecting that the target device has been powered back on, obtain the operating parameters of the target device before the power failure; The target device is controlled to operate based on the aforementioned operating parameters.

5. A device for discharging equipment, characterized in that, The device includes: The first determining module is used to determine the motor type of the target motor that the target device itself possesses when a power failure is detected in the target device. The second determining module is used to determine the control strategy for the target motor based on the motor type; A control module is used to control the target motor to operate based on the control strategy, so as to discharge the target device; The second determining module is specifically used for: When the motor type is a tapped motor, the control strategy is to control the target motor to run at the highest gear. When the motor type is a PG motor, the control strategy is to control the target motor to operate in a fully chopper-conducted manner; When the motor type is a DC motor, the control strategy is to control the target motor to operate at the maximum duty cycle.

6. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the method of any one of claims 1-4.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method described in any one of claims 1-4.

Citation Information

Patent Citations

  • Energy storage system operation method and device, electronic equipment and storage medium

    CN112686548A

  • Discharge control method and device, electronic equipment and storage medium

    CN113525109A