Electricity-using equipment and control method, device, readable storage medium and program product thereof

By using an accelerometer to detect motion parameters in electrical equipment and automatically switching operating modes, the complexity caused by manual operation by users is solved, and the convenience of the equipment is improved.

CN119737332BActive Publication Date: 2026-06-12GREE ELECTRIC APPLIANCE INC OF ZHUHAI

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GREE ELECTRIC APPLIANCE INC OF ZHUHAI
Filing Date
2024-12-23
Publication Date
2026-06-12

AI Technical Summary

Technical Problem

The current electrical equipment requires manual operation by the user when switching between different operating modes, which increases the complexity of use and results in low convenience.

Method used

By using an accelerometer to detect the motion state parameters of the device body in the intelligent switching mode, the device's position and posture are determined based on the motion state parameters, and the device is automatically switched to the matching operating mode.

🎯Benefits of technology

It enables mode switching of electrical equipment without manual operation by the user, simplifying the operation process and improving ease of use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119737332B_ABST
    Figure CN119737332B_ABST
Patent Text Reader

Abstract

The application relates to a control method and device of an electrical equipment, the electrical equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: in the intelligent switching mode, acquiring a motion state parameter of an equipment body; in the case that it is determined according to the motion state parameter that the motion state of the equipment body meets preset mode switching conditions, determining a pose state of the equipment body according to the motion state parameter; determining a target running mode according to the pose state of the equipment body, and controlling the equipment body based on the target running mode. By adopting the method, the motion state parameter of the equipment body can be detected, and the current pose state of the equipment body is determined according to the motion state parameter, so that the equipment body is controlled to run in the target running mode corresponding to the current pose state. Therefore, the user can realize effective control of the electrical equipment without performing any additional operation. The operation process of the electrical equipment is simplified, and the use convenience of the electrical equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electrical technology, and in particular to a control method, apparatus, electrical equipment, computer-readable storage medium, and computer program product for electrical equipment. Background Technology

[0002] With the advancement of technology, various electrical devices such as fans and humidifiers have been widely integrated into people's daily lives, offices, and outdoor activities, greatly improving the convenience and comfort of life.

[0003] However, some electrical devices require manual operation when switching between different operating modes, increasing the complexity of use. Take handheld fans as an example. As portable personal cooling devices, handheld fans are popular due to their small size, light weight, and ease of carrying. However, handheld fans generally use buttons as their primary operating method. Users need to press a button again to start the fan after picking it up, and similarly, when stopping use and preparing to store it, users need to press the power button and wait for the fan to stop before laying it flat. This manual operation undoubtedly increases the complexity of use, resulting in low ease of use. Summary of the Invention

[0004] Therefore, it is necessary to provide a control method, device, electrical equipment, computer-readable storage medium, and computer program product for electrical equipment that can improve the ease of use of electrical equipment, in response to the above-mentioned technical problems.

[0005] In a first aspect, this application provides a method for controlling electrical equipment, the method comprising:

[0006] In intelligent switching mode, the motion status parameters of the electrical equipment body are obtained;

[0007] If the motion state of the device body meets the preset mode switching conditions based on the motion state parameters, the pose state of the device body is determined based on the motion state parameters.

[0008] The target operating mode is determined based on the pose state of the device body, and the device body is controlled based on the target operating mode.

[0009] In one embodiment, the pose state of the device body includes a working pose and a sleep pose; determining the target operating mode based on the pose state of the device body includes:

[0010] When the device body is in the working posture, the target operating mode is determined to be the on operating mode;

[0011] When the device body is in the sleep position, the target operating mode is determined to be the stop operating mode.

[0012] In one embodiment, determining the target operating mode based on the pose state of the device body includes:

[0013] If the device body is in the working posture within a first preset time period, the target operating mode is determined to be the on operating mode;

[0014] If the device body is in the sleep position within the first preset time period, the target operating mode is determined to be the stop operating mode.

[0015] In one embodiment, if it is determined that the device body has performed a preset action based on the motion state parameters, the motion state of the device body is determined to meet the preset mode switching conditions.

[0016] In one embodiment, the motion state parameters include X-axis acceleration parameters, Y-axis acceleration parameters, and Z-axis acceleration parameters; the method further includes:

[0017] The device body is determined to have performed a preset action when at least one of the following conditions is met;

[0018] Condition 1: Within a second preset time period, the change in the X-axis acceleration parameter is greater than the X-axis acceleration change threshold.

[0019] Condition 2: Within the second preset time period, the change value of the Y-axis acceleration parameter is greater than the Y-axis acceleration change threshold;

[0020] Condition 3: During the second preset time period, the change value of the Z-axis acceleration parameter is greater than the Z-axis acceleration change threshold.

[0021] In one embodiment, the pose state of the device body includes a working pose and a sleep pose; the motion state parameters include X-axis acceleration parameters, Y-axis acceleration parameters, and Z-axis acceleration parameters; determining the pose state of the device body based on the motion state parameters includes:

[0022] When the Z-axis acceleration parameter is opposite to the direction of gravity and the Z-axis acceleration parameter is greater than the first threshold for a third preset time, the pose state of the device body is determined as the working pose.

[0023] When the Z-axis acceleration parameter is opposite to the direction of gravity and the Z-axis acceleration parameter is less than the second threshold for a fourth preset time, the pose state of the device body is determined to be the sleep pose; wherein the second threshold is less than the first threshold.

[0024] In one embodiment, the method further includes: receiving a smart switching instruction and entering the smart switching mode.

[0025] Secondly, this application also provides a control device for electrical equipment, the device comprising:

[0026] The parameter acquisition module is used to acquire motion state parameters of the device body in intelligent switching mode;

[0027] The pose determination module is used to determine the pose state of the device body according to the motion state parameters when the motion state of the device body meets the preset mode switching conditions.

[0028] The operation control module is used to determine the target operation mode based on the position and orientation of the device body, and control the device body based on the target operation mode.

[0029] Thirdly, this application also provides an electrical device, including a controller and a device body connected together, wherein the controller is used to control the device body according to the method described above.

[0030] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0031] In intelligent switching mode, the motion status parameters of the electrical equipment body are obtained;

[0032] If the motion state of the device body meets the preset mode switching conditions based on the motion state parameters, the pose state of the device body is determined based on the motion state parameters.

[0033] The target operating mode is determined based on the pose state of the device body, and the device body is controlled based on the target operating mode.

[0034] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0035] In intelligent switching mode, the motion status parameters of the electrical equipment body are obtained;

[0036] If the motion state of the device body meets the preset mode switching conditions based on the motion state parameters, the pose state of the device body is determined based on the motion state parameters.

[0037] The target operating mode is determined based on the pose state of the device body, and the device body is controlled based on the target operating mode.

[0038] The aforementioned control method, device, electrical equipment, computer-readable storage medium, and computer program product for electrical equipment, in intelligent switching mode, acquires the motion state parameters of the equipment body; if the motion state of the equipment body meets preset mode switching conditions based on the motion state parameters, the device body's pose state is determined based on the motion state parameters; a target operating mode is determined based on the device body's pose state, and the equipment body is controlled based on the target operating mode. Thus, by detecting the motion state parameters of the equipment body and determining whether the motion state of the equipment body meets preset mode switching conditions, if the preset mode switching conditions are met, the current pose state of the equipment body is determined based on the operating state parameters to switch to the target operating mode corresponding to the current pose state, and the equipment body is controlled to operate according to the target operating mode. This allows users to effectively control the electrical equipment without performing any additional operations. Therefore, it simplifies the operation process of the electrical equipment and improves its ease of use. Attached Figure Description

[0039] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0040] Figure 1 This is a schematic diagram of the handheld fan in one embodiment;

[0041] Figure 2 This is a schematic diagram of the electrical equipment modules in one embodiment;

[0042] Figure 3 This is a schematic diagram of the detection direction of the accelerometer in one embodiment;

[0043] Figure 4 This is a flowchart illustrating a control method for electrical equipment in one embodiment;

[0044] Figure 5 This is a flowchart illustrating a control method for electrical equipment in another embodiment;

[0045] Figure 6 This is a flowchart illustrating the control method for electrical equipment in yet another embodiment;

[0046] Figure 7This is a structural block diagram of the control device for an electrical appliance in one embodiment. Detailed Implementation

[0047] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0048] The control method for electrical equipment provided in this application can be applied to electrical equipment. Optionally, the control method for electrical equipment is used for equipment that needs to maintain a specific posture state under different operating modes, such as fans and humidifiers.

[0049] Taking a fan as an example, such as Figure 1 As shown, the fan can only be turned on when it is upright; when laid flat, it must be in off mode to avoid potential hazards. The same applies to humidifiers. Humidifiers typically need to be kept upright during normal operation to ensure the proper functioning of their internal water tank and humidifying elements. When laid flat, they must be in off mode to prevent potential risks such as water leakage or short circuits. For ease of understanding, the following explanation uses a handheld fan as an example.

[0050] like Figure 2 As shown, the electrical equipment includes a controller 110 and an equipment body 120 connected to each other. The structure of the equipment body 120 can be configured according to specific circumstances. Optionally, the equipment body 120 includes a housing, an interaction module disposed in the housing, a fan blade assembly disposed within the housing, and a drive module. The drive module and the interaction module are respectively connected to the controller 110, and the drive module is mechanically connected to the fan blade assembly. When the controller 110 controls the equipment body 120 to be in an on / off state, the drive module drives the fan blade assembly to rotate. When the controller 110 controls the equipment body 120 to be in a off / stop state, the drive module stops working, and the fan blade assembly stops rotating.

[0051] In practical implementation, the electrical equipment also includes a motion state detection component connected to the controller 110. This motion state detection component can be housed within the casing to ensure its stability. For example, the motion state detection component may include an accelerometer connected to the controller 110. The accelerometer detects the acceleration parameters of the device body 120 in the X, Y, and Z axes, and transmits the corresponding motion state detection parameters to the controller 110. These motion state detection parameters include X-axis acceleration parameters, Y-axis acceleration parameters, and Z-axis acceleration parameters. Figure 3As shown, the X-axis represents the horizontal direction; the Y-axis represents another horizontal direction, perpendicular to the X-axis; and the Z-axis represents the vertical direction perpendicular to both the X-axis and the Y-axis.

[0052] The interaction module is used to enable interaction between the user and the device. Optionally, the interaction module may include input devices such as buttons or touch screens and output devices such as indicator lights or displays. The user can input control commands through the interaction module, and after receiving the user's control commands, the controller 110 controls the device body 120 according to the control commands.

[0053] For example, the control commands input by the user may include commands to enable the operating mode, commands to stop the operating mode, and commands to intelligently switch modes. When the controller 110 receives a command to enable the operating mode, the control device body 120 is put into the operating state. The user can also input a wind speed adjustment command through the interaction module. The controller 110 controls the drive module according to the wind speed adjustment command, so that the drive module adjusts the speed of the fan blade assembly to achieve wind speed regulation.

[0054] When the control device body 120 receives a stop operation mode command, it enters a stop operation state. When it receives an intelligent switching mode command, it enters an intelligent switching mode. In this mode, the controller 110 acquires the motion state parameters of the device body 120. If the motion state of the device body 120 meets the preset mode switching conditions based on the motion state parameters, the controller determines the pose state of the device body 120 based on the motion state parameters. Based on the pose state of the device body 120, the controller determines the target operating mode and controls the device body 120 based on the target operating mode. Thus, by detecting the motion state parameters of the device body, it can switch to the matching target operating mode and control the device body's operation according to the target operating mode. This allows users to effectively control the electrical equipment without performing any additional operations, simplifying the operation process and improving the ease of use of the electrical equipment.

[0055] In one exemplary embodiment, such as Figure 4 As shown, a control method for electrical equipment is provided, which is applied to... Figure 2 Taking controller 110 as an example, the explanation includes the following steps 202 to 206. Wherein:

[0056] Step 202: In intelligent switching mode, obtain the motion state parameters of the electrical equipment body.

[0057] In intelligent switching mode, the controller acquires the motion state parameters of the device body in real time through the motion state detection component. The motion state parameters include the acceleration parameters of the device body in the X, Y, and Z axis directions, which can reflect the dynamic changes of the device body.

[0058] Step 204: If the motion state of the device body meets the preset mode switching conditions based on the motion state parameters, determine the pose state of the device body based on the motion state parameters.

[0059] After acquiring the motion state parameters, the controller determines the motion state of the device itself based on these parameters and checks whether the motion state meets the preset mode switching conditions. These preset mode switching conditions are set based on the normal operation requirements and safety considerations of the device itself. For example, whether the device itself is shaking or moving.

[0060] If the motion state parameters of the device body meet the preset mode switching conditions, the controller will further determine the specific pose state of the device body based on the motion state parameters. For example, the controller can determine the angle change between the device body and the Z-axis or X-axis based on the motion state parameters, and determine the specific pose state based on the angle change.

[0061] The pose state can directly affect the operating mode and safety of the device. For example, the pose state of the device includes at least the working pose and the sleep pose.

[0062] The working and sleep postures need to be set according to the specific device. For a handheld fan, the working posture is the upright position of the handheld fan, and the sleep posture is the flat position of the handheld fan. In specific applications, the posture state of the device body may also include tilted postures, etc.

[0063] Step 206: Determine the target operating mode based on the pose state of the device body, and control the device body based on the target operating mode.

[0064] The controller determines the target operating mode that matches the pose state of the device body and sends the control signal corresponding to the target operating mode to the device body so that the device body operates in the target operating mode, thereby realizing the switching of operating modes without manual operation by the user.

[0065] In one embodiment, such as Figure 5 As shown, step 206 may include the following steps 302 and 304:

[0066] Step 302: With the device body in the working position, determine the target operating mode as the on operating mode;

[0067] Step 304: When the device body is in a sleep position, determine the target operating mode as the stop operating mode.

[0068] When the device body is detected to be in a working position, it can be determined that the device body is correctly placed or held for normal operation. At this time, the controller determines the target operating mode as the on operating mode and then sends corresponding control signals to the device body to enable it to begin performing its main functions. For example, controlling the handheld fan body to start blowing air.

[0069] This allows the fan to automatically turn on when the user picks it up. No user input is required, making it more convenient to use.

[0070] It's understandable that after determining the target operating mode, the controller will also check if the current operating mode is the same as the target operating mode. If they are the same, the controller will not send any control signals to the device itself to maintain the current state. For example, if the controller determines that the handheld fan is already in an upright position and in the on operating mode, then even if the conditions for switching to the on operating mode are met, it will not issue an on command again. This avoids unnecessary repeated control, reduces the controller's workload, and improves the stability and reliability of the device.

[0071] When the controller detects that the device is in a sleep position, it can be determined that the device is in an inconvenient state to operate, or that the user wants the device to stop working. In this case, the controller determines the target operating mode as a stop mode and sends a corresponding control signal to the device to stop performing its main functions and enter a low-power or standby state. For example, controlling a handheld fan to stop blowing air.

[0072] This achieves the goal of automatically shutting off the fan after the user places it down. On the one hand, it eliminates the need for the user to press buttons or issue commands, making it more convenient to use; on the other hand, it avoids the safety hazards caused by the user forgetting to use it.

[0073] In other embodiments, determining the target operating mode based on the pose state of the device body may further include the following steps:

[0074] When the equipment body is in an inclined position, the target operating mode is determined to be the power adjustment mode.

[0075] When the device body is detected to be tilted, the controller determines the target operating mode as the power adjustment mode, which adjusts the operating power according to the tilt angle or degree of tilt to provide a more comfortable or energy-saving user experience.

[0076] For example, when the fan is detected to be tilted, the controller can adjust the fan speed to increase or decrease the airflow to adapt to different usage scenarios and user needs. Thus, by detecting tilt and adjusting the operating power mode, a more personalized user experience can be provided, thereby improving the ease of use of the fan.

[0077] The aforementioned control method for electrical equipment, in intelligent switching mode, acquires the motion state parameters of the equipment body; if the motion state of the equipment body meets the preset mode switching conditions based on the motion state parameters, the device body's pose state is determined based on the motion state parameters; the target operating mode is determined based on the device body's pose state, and the device body is controlled based on the target operating mode. Thus, by detecting the motion state parameters of the equipment body and determining whether the motion state of the equipment body meets the preset mode switching conditions, and if the preset mode switching conditions are met, the current pose state of the equipment body is determined based on the operating state parameters, thereby controlling the equipment body to operate in the target operating mode corresponding to the current pose state. This allows users to effectively control the electrical equipment without performing any additional operations. Therefore, it simplifies the operation process of the electrical equipment and improves its ease of use.

[0078] In one embodiment, the step of determining the target operating mode based on the pose state of the device body includes the following steps:

[0079] Step 1: If the device body is in a working position within the first preset time, determine the target operating mode as the on operating mode.

[0080] Step 2: If the device body is in a sleep position within the first preset time, determine the target operating mode as the stop operating mode.

[0081] The first preset time needs to be set according to specific circumstances. This first preset time is used to control the switching of operating modes, limiting it to a certain period of time after the device itself performs an action that meets the preset mode switching conditions. The first preset time should not be too long, so as not to restrict the user's freedom to operate the device.

[0082] For example, when the controller detects vibration or movement of the fan, it immediately starts timing. If the fan is detected to be in an upright position within a first preset time, the target operating mode is determined to be the "on" operating mode, and the fan is controlled to start running. If the fan is not detected to be in an upright position within the first preset time, the current operating state of the fan will remain unchanged. Even if the fan is detected to be in an upright position after the first preset time, the switching of operating modes will not be triggered.

[0083] This ensures that users can freely change the position and orientation of the device after it has been placed stably in motion, without triggering unnecessary mode switching due to accidental changes in posture, thus avoiding misoperation and improving the reliability of device control.

[0084] In one embodiment, the control method for the electrical equipment further includes the step of: determining that the motion state of the equipment body meets the preset mode switching conditions when it is determined that the equipment body has performed a preset action based on motion state parameters.

[0085] The preset actions can include behaviors that significantly change the state of the device, such as shaking, moving, picking up, and putting down. When these preset actions are detected on the device itself, it is determined that the movement state of the device has met the preset mode switching conditions.

[0086] In this embodiment, the preset action is significantly different from the normal movement process of a user using the fan, thus accurately identifying whether it is an active operation by the user, rather than an accidental movement during device use. Therefore, when the preset action is detected, it can be accurately determined that the user needs to switch to the target operating mode, thereby avoiding mode switching caused by misoperation or accidental factors.

[0087] Furthermore, after confirming that the motion state of the device body meets the preset mode switching conditions, the target operating mode is determined by combining the device body's position and posture. This achieves double confirmation, effectively avoiding misoperation caused by accidental factors (such as accidental touching or slight movement of the device), and ensuring the reliability of mode switching control.

[0088] In one embodiment, the motion state parameters include X-axis acceleration parameters, Y-axis acceleration parameters, and Z-axis acceleration parameters. When at least one of the following conditions is met, it is determined that the device body has performed a preset action.

[0089] Condition 1: Within the second preset time period, the change in the X-axis acceleration parameter is greater than the X-axis acceleration change threshold.

[0090] Condition 2: Within the second preset time period, the change in the Y-axis acceleration parameter is greater than the Y-axis acceleration change threshold.

[0091] Condition 3: Within the second preset time period, the change in the Z-axis acceleration parameter is greater than the Z-axis acceleration change threshold.

[0092] The second preset time can be set according to specific circumstances. In actual implementation, the first preset time can be slightly longer than the second preset time. A longer first preset time allows the controller more time to confirm the stability and consistency of the device's posture, helping to reduce false triggering caused by slight device shaking.

[0093] The X-axis acceleration change threshold, Y-axis acceleration change threshold, and Z-axis acceleration change threshold can be set according to factors such as device sensitivity and user habits. The X-axis acceleration change threshold, Y-axis acceleration change threshold, and Z-axis acceleration change threshold can be equal or unequal.

[0094] If the change in acceleration parameter of the device body in any direction of the X-axis, Y-axis or Z-axis exceeds the corresponding threshold within the second preset time, it is confirmed that the device body has performed a preset action such as shaking or moving, and its motion state meets the preset mode switching conditions.

[0095] For example, within the second preset time period, the device body is determined to have performed a preset action only when the change value of the X-axis acceleration parameter is greater than the X-axis acceleration change threshold. Similarly, within the second preset time period, the device body is determined to have performed a preset action only when the change value of the Y-axis acceleration parameter is greater than the Y-axis acceleration change threshold. And within the second preset time period, the device body is determined to have performed a preset action only when the change value of the Z-axis acceleration parameter is greater than the Z-axis acceleration change threshold.

[0096] If, within a second preset time period, the change in the X-axis acceleration parameter exceeds both the X-axis and Y-axis acceleration parameter thresholds, a preset action is determined to have occurred on the device body. Alternatively, if, within the second preset time period, the change in both the X-axis and Z-axis acceleration parameters exceeds both the X-axis and Z-axis acceleration parameter thresholds, a preset action is determined to have occurred on the device body. Or, if, within the second preset time period, the change in both the Y-axis and Z-axis acceleration parameters exceeds both the Y-axis and Z-axis acceleration parameter thresholds, a preset action is determined to have occurred on the device body.

[0097] If, within a second preset time period, the change value of the X-axis acceleration parameter is greater than the X-axis acceleration change threshold, the change value of the Y-axis acceleration parameter is greater than the Y-axis acceleration change threshold, and the change value of the Z-axis acceleration parameter is greater than the Z-axis acceleration change threshold, then it is determined that the device body has performed a preset action.

[0098] This allows for the determination of whether the motion state of the device meets the preset mode switching conditions based on the actual motion of the device body in the X, Y, and Z axes. The judgment result is accurate and reliable.

[0099] In one embodiment, the pose state of the device body includes a working pose and a sleep pose. The step of determining the pose state of the device body based on motion state parameters includes the following steps:

[0100] Step 1: When the Z-axis acceleration parameter is opposite to the direction of gravity and the Z-axis acceleration parameter is greater than the first threshold for a third preset time, determine the pose state of the device body as the working pose.

[0101] Step 2: When the Z-axis acceleration parameter is opposite to the direction of gravity and the Z-axis acceleration parameter is less than the second threshold for a fourth preset time, determine the pose state of the device body as a sleep pose.

[0102] The third and fourth preset times do not need to be limited and can be set according to specific circumstances.

[0103] The second threshold is less than the first threshold. For example, the first threshold is 0.8g (gravitational acceleration) and the second threshold is 0.2g.

[0104] Due to gravity, the fan exerts a supporting force on the sensor in the opposite direction to gravity, causing the sensor to detect acceleration. When setting up the accelerometer, it is necessary to ensure that the Z-axis is approximately aligned with the direction of gravity when the fan is upright. The acceleration component along the Z-axis will change with the angle between the Z-axis and the direction of gravity.

[0105] In practical implementation, the angle between the main body of the device and the Z-axis can be determined by considering factors such as product characteristics and user habits. Based on this angle, a first threshold and a second threshold can then be determined. For example, a 75° angle between the fan's Z-axis and the opposite direction of gravity meets the user's shutdown requirement; a 25° angle between the humidifier's Z-axis and the opposite direction of gravity better meets the user's shutdown requirement. Therefore, the second thresholds for the fan and humidifier can be determined based on 75° and 25° respectively.

[0106] It can be understood that when the angle between the Z-axis and the opposite direction of gravity is acute, the acceleration component in the Z-axis direction is positive; when the angle is obtuse, the acceleration component in the Z-axis direction is negative; when the angle is 0°, the component is g; when the angle is 90°, the component is 0; and when the angle is 180°, the component is -g. At the second threshold of 0.2g, if the Z-axis acceleration parameter is greater than -0.2g and less than 0.2g for a sustained period of four preset times, the fan is considered to be horizontal. When the Z-axis acceleration parameter is less than -0.2g, it can be considered to be in an inverted position.

[0107] When the Z-axis acceleration parameter is opposite to the direction of gravity, and the Z-axis acceleration parameter is continuously greater than the first threshold within a third preset time period, the fan can be confirmed to be in an upright working posture. When the Z-axis acceleration parameter is continuously less than the second threshold within a fourth preset time period, the fan can be confirmed to be in a horizontal sleep posture.

[0108] In this embodiment, the acceleration parameters in the Z-axis direction are detected in real time by an accelerometer, and the Z-axis acceleration parameters are compared with a preset threshold to accurately determine the pose state (working pose or sleep pose) of the device body. This enables the switching of the device body's operating mode and improves the ease of use of the electrical equipment.

[0109] In one embodiment, such as Figure 6 As shown, the control method for the electrical equipment also includes step 501.

[0110] Step 501: Receive the intelligent switching instruction and enter the intelligent switching mode.

[0111] The intelligent switching command can be a command issued by the user through the interaction module. The controller will enter the intelligent switching mode only after receiving the intelligent switching command. It will detect the motion state parameters of the device body and determine whether the preset mode switching conditions are met based on the motion state parameters. If the preset mode switching conditions are met, it will switch to the target operating mode based on the pose state determined by the operating state parameters and control the operation of the device body according to the target operating mode.

[0112] Unless the user issues this command, the device will remain in its current operating state or mode and will not enter the intelligent switching mode. This gives the user complete control over the device's behavior, ensuring that the device only switches modes when the user expects it.

[0113] In this embodiment, users can flexibly choose whether to enable the intelligent switching mode based on their usage habits, energy management needs, or the operating status of the equipment itself, thereby improving the flexibility of using electrical equipment.

[0114] To better understand the above embodiments, an optional embodiment will be explained in detail below. In one embodiment, an accelerometer embedded in the electrical device is used to detect the acceleration values ​​(X-axis acceleration parameters, Y-axis acceleration parameters, and Z-axis acceleration parameters) in the 3D (three-dimensional) directions. This is used to detect the deflection angle of the handheld fan relative to the direction of gravity, as well as the preset shaking or moving actions of the handheld fan, and thereby control the switching of the fan's operating state.

[0115] Regarding the detection of preset motion jitter or movement: If the rate of change of the acceleration parameter in one of the X, Y, and Z axes is greater than the corresponding acceleration change threshold, then the fan is considered to have jittered or moved.

[0116] If, within the first preset time T after checking for shaking or movement, the fan angle is detected to be biased towards upright, the fan status is adjusted to the on operation mode, and the fan is turned on (if it is already turned on, no action is taken), so as to achieve the purpose of the fan automatically turning on when the user picks up the fan.

[0117] If, within a first preset time T after detecting shaking or movement, the fan angle is detected to be tilted towards a flat position, the fan status is adjusted to a stop operation mode, and the fan is turned off (if it is already off, no action is taken), so that the fan automatically turns off when the user lays the fan flat for storage.

[0118] Once the fan position is stable, users can automatically adjust the fan status through the interactive module, allowing the fan to be turned off when upright or turned on when laid flat, thus providing users with complete control over the fan's operating status.

[0119] Regarding fan angle detection: When the positive Z-axis direction is opposite to the direction of gravity, if the acceleration in the Z-axis direction is greater than the first threshold (e.g., 0.8g) for the third consecutive preset time, the fan is considered to be in an upright state, i.e., the working posture; if the acceleration in the Z-axis direction is less than the second threshold (e.g., 0.2g) for the fourth consecutive preset time, the fan is considered to be in a flat state, i.e., the sleep posture.

[0120] The aforementioned control method for electrical equipment uses an embedded accelerometer to detect acceleration values ​​in 3D directions (X-axis, Y-axis, and Z-axis acceleration parameters). This detects the deflection angle of the handheld fan relative to the direction of gravity, as well as preset vibration or movement actions of the handheld fan, and controls the switching of the fan's operating state accordingly. This allows users to effectively control the electrical equipment without performing any additional operations, thus simplifying the operation process and improving the ease of use of the equipment.

[0121] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0122] Based on the same inventive concept, this application also provides a control device for implementing the control method for the electrical equipment described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more embodiments of the control device for electrical equipment provided below can be found in the limitations of the control method for electrical equipment described above, and will not be repeated here.

[0123] In one exemplary embodiment, such as Figure 7 As shown, a control device for electrical equipment is provided, including: a parameter acquisition module 602, a pose determination module 604, and an operation control module 606, wherein:

[0124] The parameter acquisition module 602 is used to acquire the motion state parameters of the electrical equipment body in the intelligent switching mode.

[0125] The pose determination module 604 is used to determine the pose state of the device body based on the motion state parameters when the motion state of the device body meets the preset mode switching conditions.

[0126] The operation control module 606 is used to determine the target operation mode based on the position and orientation of the device body, and control the device body based on the target operation mode.

[0127] In one embodiment, the operation control module 606 is further configured to determine the target operation mode as an on operation mode when the device body is in a working position, and to determine the target operation mode as a stopped operation mode when the device body is in a dormant position.

[0128] In one embodiment, the operation control module 606 is further configured to, within a first preset time period, determine the target operation mode as the on operation mode if the device body is in a working position; and within the first preset time period, determine the target operation mode as the off operation mode if the device body is in a sleep position.

[0129] In one embodiment, the operation control module 606 is further configured to determine that the motion state of the device body meets the preset mode switching conditions when the device body has undergone a preset action based on the motion state parameters.

[0130] In one embodiment, the operation control module 606 is further configured to determine that a preset action has occurred on the device body when at least one of the following conditions is met;

[0131] Condition 1: Within the second preset time period, the change in the X-axis acceleration parameter is greater than the X-axis acceleration change threshold;

[0132] Condition 2: Within the second preset time period, the change in the Y-axis acceleration parameter is greater than the Y-axis acceleration change threshold;

[0133] Condition 3: Within the second preset time period, the change in the Z-axis acceleration parameter is greater than the Z-axis acceleration change threshold.

[0134] In one embodiment, the operation control module 606 is further configured to determine the pose state of the device body as a working pose when the Z-axis acceleration parameter is opposite to the direction of gravity and the Z-axis acceleration parameter is greater than the first threshold for a third preset time; and to determine the pose state of the device body as a sleeping pose when the Z-axis acceleration parameter is opposite to the direction of gravity and the Z-axis acceleration parameter is less than the second threshold for a fourth preset time; wherein the second threshold is less than the first threshold.

[0135] In one embodiment, the operation control module 606 is also used to receive a smart switching instruction and enter a smart switching mode.

[0136] Each module in the control device of the aforementioned electrical equipment can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0137] In one exemplary embodiment, an electrical device is provided, which is a device that needs to maintain a specific posture state in different operating modes, such as a fan and a humidifier.

[0138] Please see again Figure 2 The electrical equipment includes a controller 110 and a device body 120 connected to each other. The structure of the device body 120 can be configured according to specific circumstances. Optionally, the device body 120 includes a housing, an interaction module disposed in the housing, and a motion state detection component disposed in the housing. Both the interaction module and the motion state detection component are connected to the controller 110.

[0139] In one embodiment, the motion state detection component may include an accelerometer connected to the controller 110. The accelerometer detects the acceleration parameters of the device body 120 in the X, Y, and Z axes, and transmits the corresponding motion state detection parameters to the controller 110. These motion state detection parameters include X-axis acceleration parameters, Y-axis acceleration parameters, and Z-axis acceleration parameters. Figure 3 As shown, the X-axis represents the horizontal direction; the Y-axis represents another horizontal direction, perpendicular to the X-axis; and the Z-axis represents the vertical direction perpendicular to both the X-axis and the Y-axis.

[0140] The interaction module is used to enable interaction between the user and the device. Optionally, the interaction module may include input devices such as buttons or touch screens and output devices such as indicator lights or displays. The user can input control commands through the interaction module, and after receiving the user's control commands, the controller 110 controls the device body 120 according to the control commands.

[0141] For example, the control commands input by the user may include commands to enable the operating mode, commands to stop the operating mode, and commands to intelligently switch modes. When the controller 110 receives a command to enable the operating mode, the control device body 120 is put into the enabled operating state. The user can also input adjustment commands through the interaction module.

[0142] When the control device body 120 receives a stop operation mode command, the control device body 120 is in a stop operation state. When the control device body 120 receives an intelligent switching mode command, it enters the intelligent switching mode. In the intelligent switching mode, the controller 110 controls the device body 120 according to the control method of the electrical equipment. The control method of the electrical equipment can be set with reference to the above embodiments, and will not be repeated here.

[0143] This electrical device can switch to a matching target operating mode and control the device itself according to that mode. This allows users to effectively control the device without performing any additional operations, simplifying the operation process and improving its ease of use.

[0144] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0145] In intelligent switching mode, the motion status parameters of the electrical equipment body are obtained;

[0146] If the motion state of the device body meets the preset mode switching conditions based on the motion state parameters, the pose state of the device body is determined based on the motion state parameters.

[0147] The target operating mode is determined based on the position and orientation of the device body, and the device body is controlled based on the target operating mode.

[0148] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: when the device body is in a working position, determining the target operating mode as an on operating mode; when the device body is in a sleep position, determining the target operating mode as a stopped operating mode.

[0149] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: if the device body is in a working position within a first preset time, the target operating mode is determined to be the on operating mode;

[0150] If the device body is in a sleep position within the first preset time, the target operating mode is determined to be the stop operating mode.

[0151] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: if it is determined that the device body has performed a preset action based on the motion state parameters, it determines that the motion state of the device body meets the preset mode switching conditions.

[0152] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: determining that a preset action has occurred on the device body when at least one of the following conditions is met;

[0153] Condition 1: Within the second preset time period, the change in the X-axis acceleration parameter is greater than the X-axis acceleration change threshold;

[0154] Condition 2: Within the second preset time period, the change in the Y-axis acceleration parameter is greater than the Y-axis acceleration change threshold;

[0155] Condition 3: Within the second preset time period, the change in the Z-axis acceleration parameter is greater than the Z-axis acceleration change threshold.

[0156] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: when the Z-axis acceleration parameter is opposite to the direction of gravity and the Z-axis acceleration parameter is greater than a first threshold for a third preset time, the pose state of the device body is determined to be a working pose; when the Z-axis acceleration parameter is opposite to the direction of gravity and the Z-axis acceleration parameter is less than a second threshold for a fourth preset time, the pose state of the device body is determined to be a sleeping pose; wherein the second threshold is less than the first threshold.

[0157] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: receiving a smart switching instruction and entering a smart switching mode.

[0158] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

[0159] In intelligent switching mode, the motion status parameters of the electrical equipment body are obtained;

[0160] If the motion state of the device body meets the preset mode switching conditions based on the motion state parameters, the pose state of the device body is determined based on the motion state parameters.

[0161] The target operating mode is determined based on the position and orientation of the device body, and the device body is controlled based on the target operating mode.

[0162] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: when the device body is in a working position, determining the target operating mode as an on operating mode; when the device body is in a sleep position, determining the target operating mode as a stopped operating mode.

[0163] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: if the device body is in a working position within a first preset time, the target operating mode is determined to be the on operating mode;

[0164] If the device body is in a sleep position within the first preset time, the target operating mode is determined to be the stop operating mode.

[0165] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: if it is determined that the device body has performed a preset action based on the motion state parameters, it determines that the motion state of the device body meets the preset mode switching conditions.

[0166] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: determining that a preset action has occurred on the device body when at least one of the following conditions is met;

[0167] Condition 1: Within the second preset time period, the change in the X-axis acceleration parameter is greater than the X-axis acceleration change threshold;

[0168] Condition 2: Within the second preset time period, the change in the Y-axis acceleration parameter is greater than the Y-axis acceleration change threshold;

[0169] Condition 3: Within the second preset time period, the change in the Z-axis acceleration parameter is greater than the Z-axis acceleration change threshold.

[0170] In one embodiment, when the computer program is executed by the processor, it further implements the following steps: when the Z-axis acceleration parameter is opposite to the direction of gravity and the Z-axis acceleration parameter is greater than a first threshold for a third preset time, the pose state of the device body is determined to be a working pose; when the Z-axis acceleration parameter is opposite to the direction of gravity and the Z-axis acceleration parameter is less than a second threshold for a fourth preset time, the pose state of the device body is determined to be a sleeping pose; wherein the second threshold is less than the first threshold.

[0171] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: receiving a smart switching instruction and entering a smart switching mode.

[0172] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0173] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0174] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for controlling electrical equipment, characterized in that, The method includes: In intelligent switching mode, the motion status parameters of the electrical equipment body are obtained; If the device body has performed a preset action based on the motion state parameters, it is determined that the motion state of the device body meets the preset mode switching conditions. When the motion state of the device body meets the preset mode switching conditions, the pose state of the device body is determined according to the motion state parameters. The target operating mode is determined based on the pose state of the device body, and the device body is controlled based on the target operating mode. The motion state parameters include X-axis acceleration parameters, Y-axis acceleration parameters, and Z-axis acceleration parameters; the method further includes: determining that the device body has performed a preset action when at least one of the following conditions is met; Condition 1: Within a second preset time period, the change value of the X-axis acceleration parameter is greater than the X-axis acceleration change threshold; Condition 2: Within the second preset time period, the change value of the Y-axis acceleration parameter is greater than the Y-axis acceleration change threshold; Condition 3: Within the second preset time period, the change value of the Z-axis acceleration parameter is greater than the Z-axis acceleration change threshold. Determining the pose state of the device body based on the motion state parameters includes: When the Z-axis acceleration parameter is opposite to the direction of gravity and the Z-axis acceleration parameter is greater than the first threshold for a third preset time, the pose state of the device body is determined to be the working pose. When the Z-axis acceleration parameter is opposite to the direction of gravity and the Z-axis acceleration parameter is less than the second threshold for a fourth preset time, the pose state of the device body is determined to be a sleep pose; wherein, the second threshold is less than the first threshold, and the first threshold and the second threshold are determined based on the angle between the device body and the Z-axis determined based on the user's usage habits.

2. The method according to claim 1, characterized in that, The pose state of the device body includes a working pose and a sleep pose; determining the target operating mode based on the pose state of the device body includes: When the device body is in the working posture, the target operating mode is determined to be the on operating mode; When the device body is in the sleep position, the target operating mode is determined to be the stop operating mode.

3. The method according to claim 2, characterized in that, Determining the target operating mode based on the pose state of the device body includes: If the device body is in the working posture within a first preset time period, the target operating mode is determined to be the on operating mode; If the device body is in the sleep position within the first preset time period, the target operating mode is determined to be the stop operating mode.

4. The method according to claim 1, characterized in that, The step of determining the target operating mode based on the pose state of the device body further includes: When the device body is in a tilted position, the target operating mode is determined to be the power adjustment mode.

5. The method according to claim 1, characterized in that, After determining the target operating mode based on the pose state of the device body, the method further includes: Determine whether the current operating mode is the same as the target operating mode. If the current operating mode is the same as the target operating mode, the device body maintains the current operating mode.

6. The method according to claim 1, characterized in that, The method further includes: Upon receiving the intelligent switching instruction, the system enters the intelligent switching mode.

7. A control device for electrical equipment, characterized in that, The device includes: The parameter acquisition module is used to acquire the motion state parameters of the electrical equipment body in intelligent switching mode. The pose determination module is used to determine that the motion state of the device body meets the preset mode switching conditions when the device body has undergone a preset action based on the motion state parameters; and to determine the pose state of the device body based on the motion state parameters when the motion state of the device body meets the preset mode switching conditions. The operation control module is used to determine a target operation mode based on the pose state of the device body, and control the device body based on the target operation mode; wherein, the motion state parameters include X-axis acceleration parameters, Y-axis acceleration parameters and Z-axis acceleration parameters; and further includes: determining that the device body has performed a preset action when at least one of the following conditions is met; Condition 1: Within a second preset time period, the change value of the X-axis acceleration parameter is greater than the X-axis acceleration change threshold; Condition 2: Within the second preset time period, the change value of the Y-axis acceleration parameter is greater than the Y-axis acceleration change threshold; Condition 3: Within the second preset time period, the change value of the Z-axis acceleration parameter is greater than the Z-axis acceleration change threshold. Determining the pose state of the device body based on the motion state parameters includes: When the Z-axis acceleration parameter is opposite to the direction of gravity and the Z-axis acceleration parameter is greater than the first threshold for a third preset time, the pose state of the device body is determined to be the working pose. When the Z-axis acceleration parameter is opposite to the direction of gravity and the Z-axis acceleration parameter is less than the second threshold for a fourth preset time, the pose state of the device body is determined to be a sleep pose; wherein, the second threshold is less than the first threshold, and the first threshold and the second threshold are determined based on the angle between the device body and the Z-axis determined based on the user's usage habits.

8. An electrical appliance, characterized in that, It includes a controller and a device body connected together, the controller being used to control the device body according to any one of claims 1 to 6.

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

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.