Electric equipment, control method and device thereof, readable storage medium and program product
Through the intelligent switching mode, automatically obtain and analyze the movement state parameters of the power consumption equipment, determine the positioning state and switch the operation mode, the problem of existing equipment requiring users to operate manually is solved, and higher convenience and simplified operation process is achieved.
Patent Information
- Application Number
- CN202411903683.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2044-12-23
AI Technical Summary
Existing electrical equipment needs to be manually operated by users when switching different operating modes, which increases the complexity of use and leads to low convenience.
Through the intelligent switching mode, the motion state parameters of the device body are obtained, the posture state of the device body is determined based on the motion state parameters, and the target operation mode is determined based on the posture state to achieve automatic control.
Effective control of power equipment can be achieved without additional user operations, simplifying operational processes, and improving convenience of use.
Smart Images

Figure CN119737332A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electrical equipment technology, and in particular to a control method and device for electrical equipment, electrical equipment, a computer-readable storage medium, and a computer program product. Background Art
[0002] With the advancement of technology, various electrical equipment such as fans and humidifiers have been widely integrated into people's daily life, office and outdoor activities, greatly improving the convenience and comfort of life.
[0003] However, some electrical devices require manual operation by the user when switching between different operating modes during use, which increases the complexity of using the electrical devices. Take handheld fans as an example. As a portable personal cooling device, handheld fans are deeply loved by users because of their small size, lightness and easy portability. However, handheld fans generally use buttons as their main state operation method. After picking up the fan, the user needs to press the button again to start it. Similarly, when stopping use and preparing to store it, the user also needs to press the shutdown button first and wait for the fan to stop running before laying it flat. This method that requires manual operation by the user undoubtedly increases the complexity of use and results in low convenience of use of the device. Summary of the invention
[0004] Based on this, 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 convenience of using the electrical equipment in order to address the above technical problems.
[0005] In a first aspect, the present application provides a method for controlling an electric device, the method comprising:
[0006] In the intelligent switching mode, the motion state parameters of the device body of the electrical device are obtained;
[0007] In the case where it is determined according to the motion state parameters that the motion state of the device body meets a preset mode switching condition, determining the posture state of the device body according to the motion state parameters;
[0008] A target operating mode is determined according to the posture state of the device body, and the device body is controlled based on the target operating mode.
[0009] In one embodiment, the posture state of the device body includes a working posture and a sleeping posture; and determining the target operation mode according to the posture state of the device body includes:
[0010] When the device body is in the working position, determining that the target operation mode is an on operation mode;
[0011] When the device body is in the sleep position, the target operation mode is determined to be a stop operation mode.
[0012] In one embodiment, determining the target operation mode according to the posture state of the device body includes:
[0013] Within a first preset time, if the device body is in the working position, determining that the target operating mode is an on operating mode;
[0014] Within the first preset time, if the device body is in the sleep position, it is determined that the target operation mode is the stop operation mode.
[0015] In one of the embodiments, when it is determined according to the motion state parameter that the device body has performed a preset action, it is determined that the motion state of the device body satisfies a preset mode switching condition.
[0016] In one embodiment, the motion state parameters include an X-axis acceleration parameter, a Y-axis acceleration parameter, and a Z-axis acceleration parameter; the method further includes:
[0017] When at least one of the following conditions is met, determining that a preset action has occurred on the device body;
[0018] Condition 1: within the second preset time, the change value of the X-axis acceleration parameter is greater than the X-axis acceleration change threshold;
[0019] Condition 2: within the second preset time, the change value of the Y-axis acceleration parameter is greater than the Y-axis acceleration change threshold;
[0020] Condition three: within the second preset time, the change value of the Z-axis acceleration parameter is greater than the Z-axis acceleration change threshold.
[0021] In one embodiment, the posture state of the device body includes a working posture and a sleeping posture; the motion state parameters include an X-axis acceleration parameter, a Y-axis acceleration parameter, and a Z-axis acceleration parameter; and determining the posture state of the device body according to 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, determining that the posture state of the device body is the working posture;
[0023] 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 posture state of the device body is determined to be the sleep posture; wherein the second threshold is less than the first threshold.
[0024] In one of the embodiments, the method further includes: receiving a smart switching instruction and entering the smart switching mode.
[0025] In a second aspect, the present application further provides a control device for an electrical device, the device comprising:
[0026] The parameter acquisition module is used to obtain the motion state parameters of the device body in the intelligent switching mode;
[0027] A posture determination module, configured to determine the posture state of the device body according to the motion state parameters when it is determined according to the motion state parameters that the motion state of the device body meets a preset mode switching condition;
[0028] An operation control module is used to determine a target operation mode according to the posture state of the device body and control the device body based on the target operation mode.
[0029] In a third aspect, the present application further provides an electrical device, comprising a controller and a device body connected to each other, wherein the controller is used to control the device body according to the method as described above.
[0030] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0031] In the intelligent switching mode, the motion state parameters of the device body of the electrical device are obtained;
[0032] In the case where it is determined according to the motion state parameters that the motion state of the device body meets a preset mode switching condition, determining the posture state of the device body according to the motion state parameters;
[0033] A target operating mode is determined according to the posture state of the device body, and the device body is controlled based on the target operating mode.
[0034] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0035] In the intelligent switching mode, the motion state parameters of the device body of the electrical device are obtained;
[0036] In the case where it is determined according to the motion state parameters that the motion state of the device body meets a preset mode switching condition, determining the posture state of the device body according to the motion state parameters;
[0037] A target operating mode is determined according to the posture state of the device body, and the device body is controlled based on the target operating mode.
[0038] The control method, device, electrical equipment, computer-readable storage medium and computer program product of the electrical equipment described above obtain the motion state parameters of the equipment body in the intelligent switching mode; when the motion state of the equipment body is determined to meet the preset mode switching conditions according to the motion state parameters, the posture state of the equipment body is determined according to the motion state parameters; the target operation mode is determined according to the posture state of the equipment body, and the equipment body is controlled based on the target operation mode. Thus, by detecting the motion state parameters of the equipment body, and judging whether the motion state of the equipment body meets the preset mode switching conditions according to the motion state parameters, when the preset mode switching conditions are met, the current posture state of the equipment body is determined according to the operation state parameters, so as to switch to the target operation mode corresponding to the current posture state, and the equipment body is controlled to operate according to the target operation mode. This allows the user to effectively control the electrical equipment without performing any additional operations. Thereby, the operation process of the electrical equipment is simplified and the convenience of using the electrical equipment is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 A schematic diagram of the structure of a handheld fan in one embodiment;
[0041] Figure 2 A schematic diagram of a module of an electric device in an embodiment;
[0042] Figure 3 is a schematic diagram of the detection direction of an acceleration sensor in one embodiment;
[0043] Figure 4 A schematic diagram of a flow chart of a method for controlling an electrical device in one embodiment;
[0044] Figure 5 A schematic flow chart of a control method for an electrical device in another embodiment;
[0045] Figure 6 A schematic flow chart of a method for controlling an electrical device in another embodiment;
[0046] Figure 7FIG. 4 is a structural block diagram of a control device for an electrical equipment in an embodiment. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0048] The control method of the electric device provided in the embodiment of the present application can be applied to the electric device. Optionally, the control method of the electric device is used for devices that need to maintain a specific posture state in different operating modes, such as fans and humidifiers.
[0049] Take the fan as an example, Figure 1 As shown, the fan can only be in the on-mode when it is in an upright position; it needs to be in the off-mode when it is in a flat position to avoid possible danger. The electrical device can also be a humidifier, which usually needs to be kept upright in normal working conditions to ensure that the water tank and humidifying elements inside it can work properly, and needs to be in the off-mode when it is laid flat to prevent potential risks such as water leakage or circuit short circuit. For ease of understanding, the following explanations are all based on the example of a handheld fan as the electrical device.
[0050] like Figure 2 As shown, 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 set according to specific circumstances. Optionally, the device body 120 includes a shell, an interaction module arranged in the shell, a fan blade assembly and a drive module arranged in the shell. 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 device body 120 to be in an on-running state, the drive module drives the fan blade assembly to rotate. When the controller 110 controls the device body 120 to be in a stopped running state, the drive module stops working and the fan blade assembly stops rotating.
[0051] In actual implementation, the electrical device also includes a motion state detection component connected to the controller 110. The motion state detection component can be arranged in the housing to ensure its stability. Exemplarily, the motion state detection component can include an acceleration sensor connected to the controller 110. The acceleration sensor is used to detect the acceleration parameters of the device body 120 in the X-axis, Y-axis, and Z-axis directions, and transmit the corresponding motion state detection parameters to the controller 110. The 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 axis in the horizontal direction; the Y-axis represents another axis in the horizontal direction, which is perpendicular to the X-axis; and the Z-axis represents the vertical direction perpendicular to the X-axis and the Y-axis.
[0052] The interaction module is used to realize the 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 display screens. The user can input control instructions through the interaction module, and the controller 110 controls the device body 120 according to the control instructions after receiving the user's control instructions.
[0053] Exemplarily, the control command input by the user may include an instruction to start the operation mode, an instruction to stop the operation mode, and an instruction to switch the mode intelligently. When the controller 110 receives the instruction to start the operation mode, the control device body 120 is in the start-up operation state. The user may also input a wind speed adjustment instruction through the interactive module, and the controller 110 controls the drive module according to the wind speed adjustment instruction so that the drive module adjusts the rotation speed of the fan blade assembly to achieve wind speed regulation.
[0054] When the control device body 120 receives the stop operation mode instruction, the control device body 120 is in the stop operation state. When the control device body 120 receives the intelligent switching mode instruction, it enters the intelligent switching mode. In the intelligent switching mode, the controller 110 is used to obtain the motion state parameters of the device body 120 of the electrical device; when it is determined according to the motion state parameters that the motion state of the device body 120 meets the preset mode switching conditions, the posture state of the device body 120 is determined according to the motion state parameters; the target operation mode is determined according to the posture state of the device body 120, and the device body 120 is controlled based on the target operation mode. Therefore, by detecting the motion state parameters of the device body, it is possible to switch to a matching target operation mode, and control the operation of the device body according to the target operation mode. This allows the user to effectively control the electrical equipment without performing any additional operations. The operation process of the electrical equipment is simplified and the convenience of using the electrical equipment is improved.
[0055] In an exemplary embodiment, Figure 4 As shown, a control method for an electrical device is provided, and the method is applied to Figure 2 The controller 110 in FIG. 1 is taken as an example to illustrate the method, which includes the following steps 202 to 206. Among them:
[0056] Step 202: Under the intelligent switching mode, the motion state parameters of the device body of the electrical device are obtained.
[0057] In the intelligent switching mode, the controller obtains 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-axis, Y-axis and Z-axis directions, which can reflect the dynamic changes of the device body.
[0058] Step 204, when it is determined according to the motion state parameters that the motion state of the device body meets the preset mode switching condition, the posture state of the device body is determined according to the motion state parameters.
[0059] After the controller obtains the motion state parameters, it determines the motion state of the device body according to the motion state parameters and determines whether the motion state meets the preset mode switching conditions. The preset mode switching conditions are set based on the normal operation requirements and safety considerations of the device body. For example, whether the device body 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 posture state of the device body according to the motion state parameters. For example, the controller can determine the angle change between the device body and the Z axis or the X axis according to the motion state parameters, and judge the specific posture state based on the angle change.
[0061] The posture state may directly affect the operation mode and safety of the device body. Exemplarily, the posture state of the device body includes at least a working posture and a sleeping posture.
[0062] The working position and the sleeping position need to be set in combination with the specific settings of the electrical equipment. For a handheld fan, the working position is the upright position of the handheld fan, and the sleeping position is the horizontal position of the handheld fan. In specific applications, the posture state of the device body may also include a tilted posture and other posture states.
[0063] Step 206, determining a target operating mode according to the posture state of the device body, and controlling the device body based on the target operating mode.
[0064] The controller determines the target operating mode that matches the posture state based on the posture state of the device body, and sends a 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 the operating mode without manual operation by the user.
[0065] In one embodiment, Figure 5 As shown, step 206 may include the following steps 302 and 304:
[0066] Step 302, when the device body is in a working position, determining that the target operation mode is an on operation mode;
[0067] Step 304: when the device body is in the sleep position, determine that the target operation mode is the stop operation mode.
[0068] When the device body is detected to be in the working position, it can be determined that the device body is correctly placed or held for normal operation. At this time, the controller determines that the target operation mode is the start operation mode, and then sends a corresponding control signal to the device body to enable it to start performing its main function. For example, control the handheld fan body to start blowing.
[0069] In this way, the fan can be automatically turned on after the user picks up the fan, without the need for the user to press a button to issue a command, making it more convenient to use.
[0070] It is understandable that after determining the target operation mode, the controller will also determine whether the current operation mode is the same as the target operation mode. If the two are the same, the controller will not send any control signal to the device body to keep the current state unchanged. For example, if the controller determines that the handheld fan body is already in an upright state and in the on operation mode, then even if the conditions for switching to the on operation mode are met, the on command will not be issued again. This avoids unnecessary repeated control, reduces the burden on the controller, and improves the stability and reliability of the device.
[0071] When the device body is detected to be in a dormant position, it can be determined that the device body is placed in a state that is inconvenient for working, or the user wants the device body to enter a stop working state. At this time, the controller determines that the target operation mode is the stop operation mode, and then sends a corresponding control signal to the device body to stop performing its main functions and enter a low power consumption or standby state. For example, control the handheld fan body to stop blowing.
[0072] In this way, the purpose of automatically shutting down the fan after the user puts it down can be achieved. On the one hand, the user does not need to operate a button to issue an instruction, which is more convenient to use; on the other hand, it avoids the safety hazards caused by the user forgetting to turn it off.
[0073] In other embodiments, determining the target operation mode according to the posture state of the device body may further include the steps of:
[0074] When the device body is in a tilted posture, the target operation mode is determined to be an adjustment operation power mode.
[0075] When it is detected that the device body is in a tilted posture, the controller determines that the target operating mode is an adjusted operating power mode, so as to adjust its operating power according to the tilt angle or the degree of the tilt, so as to provide a more comfortable or energy-saving user experience.
[0076] For example, when the fan is detected to be in a tilted position, the controller can adjust the wind speed to increase or decrease the wind force to adapt to different usage scenarios and user needs. Thus, by detecting the tilted position and adjusting the operating power mode, a more personalized usage experience can be provided to the user, achieving the purpose of improving the convenience of using the fan.
[0077] The control method of the above-mentioned electrical equipment obtains the motion state parameters of the device body in the intelligent switching mode; when it is determined according to the motion state parameters that the motion state of the device body meets the preset mode switching conditions, the posture state of the device body is determined according to the motion state parameters; the target operation mode is determined according to the posture state of the device body, and the device body is controlled based on the target operation mode. Thus, by detecting the motion state parameters of the device body, and judging whether the motion state of the device body meets the preset mode switching conditions according to the motion state parameters, when the preset mode switching conditions are met, the current posture state of the device body is determined according to the operation state parameters, so as to control the device body to operate in the target operation mode corresponding to the current posture state. This allows the user to effectively control the electrical equipment without performing any additional operations. Thereby, the operation process of the electrical equipment is simplified and the convenience of using the electrical equipment is improved.
[0078] In one embodiment, the step of determining the target operation mode according to the posture state of the device body includes the following steps:
[0079] Step 1: within a first preset time, if the device body is in a working position, determining that the target operation mode is an on operation mode;
[0080] Step 2: within the first preset time, if the device body is in the sleep position, determine that the target operation mode is the stop operation mode.
[0081] The first preset time needs to be set according to the specific situation. The first preset time is used to control the operation mode switching and limit it to a period of time after the device body takes an action that meets the preset mode switching condition. The first preset time should not be too long to avoid limiting the user's free operation of the device posture.
[0082] For example, when the controller detects that the fan body is shaking or moving, it will immediately start timing. If the fan body is detected to be in an upright position within the first preset time, the target operation mode will be determined to be the on operation mode, and the fan will be controlled to start operation. If the fan body is not detected to be in an upright position within the first preset time, the current operation state of the fan will remain unchanged. Even if the fan body is detected to be in an upright position after the first preset time, the switching of the operation mode will no longer be triggered.
[0083] Thereby, it can be ensured that the user can freely change the posture state of the device body after the device is placed stably in a moving state, without triggering unnecessary mode switching due to accidental posture changes, avoiding misoperation, and improving the reliability of device body control.
[0084] In one embodiment, the control method of the electric device further includes the step of: determining that the motion state of the device body satisfies a preset mode switching condition when it is determined according to the motion state parameter that the device body has performed a preset action.
[0085] The preset actions may include actions that significantly change the device state, such as shaking, moving, picking up, putting down, etc. When it is detected that the device body has taken these preset actions, it is determined that the motion state of the device body has met the preset mode switching condition.
[0086] In this embodiment, the preset action is significantly different from the normal movement process of the user when using the fan, so that it can accurately identify that it is an operation actively performed by the user, rather than an accidental movement during the use of the device. When the preset action is detected, it can be accurately determined that the user needs to switch the target operating mode, thereby avoiding mode switching caused by misoperation or accidental factors.
[0087] Furthermore, after determining that the motion state of the device body has met the preset mode switching conditions, the target operation mode will be determined in combination with the posture state of the device body. This achieves double confirmation, effectively avoiding misoperation caused by accidental factors (such as accidental touch or slight movement of the device), and ensuring the reliability of mode switching control.
[0088] In one embodiment, the motion state parameters include an X-axis acceleration parameter, a Y-axis acceleration parameter, and a Z-axis acceleration parameter. When at least one of the following conditions is met, it is determined that a preset action has occurred on the device body.
[0089] Condition 1: within the second preset time, the change value of the X-axis acceleration parameter is greater than the X-axis acceleration change threshold.
[0090] Condition 2: within the second preset time, the change value of the Y-axis acceleration parameter is greater than the Y-axis acceleration change threshold.
[0091] Condition three: within the second preset time, the change value of the Z-axis acceleration parameter is greater than the Z-axis acceleration change threshold.
[0092] The second preset time can be set according to the specific situation. In actual implementation, the first preset time can be slightly longer than the second preset time. The longer first preset time allows the controller to have more time to confirm the stability and consistency of the device's posture, which helps to reduce false triggering caused by slight shaking of the device.
[0093] The X-axis acceleration change threshold, the Y-axis acceleration change threshold, and the Z-axis acceleration change threshold can be set according to factors such as the sensitivity of the device and the user's usage habits. The X-axis acceleration change threshold, the Y-axis acceleration change threshold, and the Z-axis acceleration change threshold can be equal or unequal.
[0094] Within the second preset time, if the acceleration parameter change value of the device body in any direction of the X-axis, Y-axis or Z-axis exceeds the corresponding threshold, it is confirmed that the device body has undergone a preset action such as shaking or moving, and its motion state meets the preset mode switching conditions.
[0095] Exemplarily, within the second preset time, only when the change value of the X-axis acceleration parameter is greater than the X-axis acceleration change threshold, it is determined that the device body has undergone a preset action. Within the second preset time, only when the change value of the Y-axis acceleration parameter is greater than the Y-axis acceleration change threshold, it is determined that the device body has undergone a preset action. Within the second preset time, only when the change value of the Z-axis acceleration parameter is greater than the Z-axis acceleration change threshold, it is determined that the device body has undergone a preset action.
[0096] When the change value of the X-axis acceleration parameter is greater than the X-axis acceleration change threshold value, and the change value of the Y-axis acceleration parameter is greater than the Y-axis acceleration change threshold value within the second preset time, it is determined that the preset action has occurred on the device body. Alternatively, when the change value of the X-axis acceleration parameter is greater than the X-axis acceleration change threshold value, and the change value of the Z-axis acceleration parameter is greater than the Z-axis acceleration change threshold value within the second preset time, it is determined that the preset action has occurred on the device body. Alternatively, when the change value of the Y-axis acceleration parameter is greater than the Y-axis acceleration change threshold value, and the change value of the Z-axis acceleration parameter is greater than the Z-axis acceleration change threshold value within the second preset time, it is determined that the preset action has occurred on the device body.
[0097] Within the second preset time, when 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, it is determined that a preset action has occurred on the device body.
[0098] In this way, it is possible to determine whether the movement state of the device meets the preset mode switching conditions based on the actual movement of the device body in the X-axis, Y-axis and Z-axis directions, and the judgment result is accurate and reliable.
[0099] In one embodiment, the posture state of the device body includes a working posture and a sleeping posture. The step of determining the posture state of the device body according to the motion state parameter 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, determining that the posture state of the device body is a working posture;
[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 that the posture state of the device body is a sleep posture.
[0102] The third preset time and the fourth preset time do not need to be limited and can be set according to specific circumstances.
[0103] The second threshold is smaller than the first threshold. For example, the first threshold is 0.8 g (gravitational acceleration) and the second threshold is 0.2 g.
[0104] Due to the existence of gravity, the fan will exert a supporting force on the sensor in the opposite direction of gravity, causing the sensor to detect acceleration. When setting up the acceleration sensor, it is necessary to ensure that when the fan is upright, the Z axis is basically aligned with the direction of gravity. The acceleration component in the Z axis direction will change as the angle between the Z axis and the direction of gravity changes.
[0105] In actual implementation, the angle between the device body and the Z-axis direction can be determined in combination with factors such as product features and user usage habits, and then the first threshold and the second threshold are determined based on the angle. For example, when the angle between the fan's Z-axis direction and the opposite direction of gravity is 75°, it meets the user's shutdown needs; when the angle between the humidifier's Z-axis direction and the opposite direction of gravity is 25°, it is more in line with the user's shutdown needs. Then, the second thresholds of 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 direction and the opposite direction of gravity is an acute angle, the acceleration component in the Z-axis direction is a positive number; when the angle between the Z-axis direction and the opposite direction of gravity is an obtuse angle, the acceleration component in the Z-axis direction is a negative number; 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. When the second threshold is 0.2g, when the Z-axis acceleration parameter is greater than -0.2g and less than 0.2g for the fourth preset time, it is considered that the fan is lying flat. When the Z-axis acceleration parameter is less than -0.2g, it can be considered as an inverted posture.
[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 value within the third preset time, it can be confirmed that the fan is in an upright working position. When the Z-axis acceleration parameter is continuously less than the second threshold value within the fourth preset time, it can be confirmed that the fan is in a horizontal sleeping position.
[0108] In this embodiment, the acceleration sensor detects the acceleration parameter in the Z-axis direction in real time, and compares the Z-axis acceleration parameter with the preset threshold value, so as to accurately determine the posture state (working posture or sleeping posture) of the device body, thereby realizing the switching of the operation mode of the device body and improving the convenience of using the electrical equipment.
[0109] In one embodiment, Figure 6 As shown, the control method of the electrical equipment further includes step 501.
[0110] Step 501, receiving a smart switching instruction and entering a smart switching mode.
[0111] Among them, the intelligent switching instruction can be an instruction issued by the user through the interactive module. After receiving the intelligent switching instruction, the controller will enter the intelligent switching mode to detect the motion state parameters of the device body and determine whether the preset mode switching conditions are met according to the motion state parameters. If the preset mode switching conditions are met, the target operation mode is switched according to the posture state determined by the operation state parameters, and the operation of the device body is controlled according to the target operation mode.
[0112] If the user does not issue this command, the device will remain in its current working state or operating mode and will not enter the smart switching mode. This provides users with full control over device behavior and ensures that the device will only switch modes when the user expects it to.
[0113] In this embodiment, the user can flexibly choose whether to turn on the smart switching mode according to his or her usage habits, energy management requirements, or the operating status of the device itself, thereby improving the flexibility of use of electrical equipment.
[0114] In order to better understand the above embodiment, an optional embodiment is explained in detail below. In one embodiment, an acceleration sensor embedded in the electrical device is used to detect the acceleration value in the 3D (3 Dimensions) direction (X-axis acceleration parameter, Y-axis acceleration parameter, Z-axis acceleration parameter) to detect the deflection angle of the handheld fan and the gravity direction, as well as the preset shaking or moving action of the handheld fan, and thereby control the switching of the fan operation state.
[0115] Regarding the detection of jitter or movement of preset actions: If the acceleration parameter change speed in one direction of the X, Y, and Z axes is detected to be greater than the corresponding acceleration change threshold, the fan is considered to have jittered or moved.
[0116] Within the first preset time T after checking for shaking or movement, if it is detected that the fan angle is inclined to be upright, the fan state is adjusted to the on operation mode, and the fan is controlled to turn on (no processing will be done if it is already turned on), so as to achieve the purpose of automatically turning on the fan after the user picks up the fan.
[0117] Within the first preset time T when shaking or movement is detected, if it is detected that the fan angle tends to be flat, the fan state is adjusted to the stop operation mode, and the fan is controlled to be shut down (if it is already shut down, no processing will be done), so as to achieve the purpose of automatically shutting down the fan when the user lays the fan flat for storage.
[0118] After the fan position is stable, the user can automatically adjust the fan status through the interactive module, so that the fan can be forced to shut down when it is upright, or forced to start up when it is laid flat, providing the user with full control over the fan's operating status.
[0119] Regarding fan angle detection: when the positive direction of the Z-axis is opposite to the direction of gravity, if the acceleration in the Z-axis direction is detected to be greater than the first threshold value (for example, 0.8g) for the third consecutive preset time, the fan is considered to be in an upright state, that is, a working position; if the acceleration in the Z-axis direction is detected to be less than the second threshold value (for example, 0.2g) for the fourth consecutive preset time, the fan is considered to be in a flat state, that is, a sleeping position.
[0120] The control method of the electric device described above detects the acceleration value in the 3D direction (X-axis acceleration parameter, Y-axis acceleration parameter, Z-axis acceleration parameter) through the built-in acceleration sensor of the electric device to detect the deflection angle of the handheld fan and the gravity direction, as well as the preset shaking or moving action of the handheld fan, and thereby controls the switching of the fan operation state. The user can effectively control the electric device without performing any additional operations. Thus, the operation process of the electric device is simplified and the convenience of using the electric device is improved.
[0121] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0122] Based on the same inventive concept, the embodiment of the present application also provides a control device for an electric device for implementing the control method for an electric device involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the control device for one or more electric devices provided below can refer to the limitations of the control method for electric devices above, and will not be repeated here.
[0123] In an exemplary embodiment, Figure 7 As shown, a control device for an electric device is provided, comprising: a parameter acquisition module 602, a posture 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 device body of the electric device in the intelligent switching mode;
[0125] A posture determination module 604, configured to determine the posture state of the device body according to the motion state parameters when it is determined according to the motion state parameters that the motion state of the device body meets a preset mode switching condition;
[0126] The operation control module 606 is used to determine the target operation mode according to the posture state 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 used to determine that the target operation mode is the start operation mode when the device body is in the working position; and to determine that the target operation mode is the stop operation mode when the device body is in the sleeping position.
[0128] In one embodiment, the operation control module 606 is also used to determine that the target operation mode is the start operation mode if the device body is in the working position within the first preset time; and to determine that the target operation mode is the stop operation mode if the device body is in the sleep position within the first preset time.
[0129] In one embodiment, the operation control module 606 is further used to determine that the motion state of the device body meets the preset mode switching condition when it is determined according to the motion state parameters that the device body has performed a preset action.
[0130] In one embodiment, the operation control module 606 is further used 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, the change value of the X-axis acceleration parameter is greater than the X-axis acceleration change threshold;
[0132] Condition 2: within the second preset time, the change value of the Y-axis acceleration parameter is greater than the Y-axis acceleration change threshold;
[0133] Condition three: within the second preset time, the change value of the Z-axis acceleration parameter is greater than the Z-axis acceleration change threshold.
[0134] In one embodiment, the operation control module 606 is also used to determine that the posture state of the device body is a working posture 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; and to determine that the posture state of the device body is a sleeping posture 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; wherein the second threshold is less than the first threshold.
[0135] In one embodiment, the operation control module 606 is further configured to receive an intelligent switching instruction and enter an intelligent switching mode.
[0136] Each module in the control device of the above-mentioned electric equipment can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.
[0137] In an exemplary embodiment, an electrical device is provided, where the electrical device 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 electric device includes a controller 110 and a device body 120 connected to each other. The structure of the device body 120 can be set according to specific circumstances. Optionally, the device body 120 includes a housing, an interaction module disposed on the housing, and a motion state detection component disposed on the housing, and the interaction module and the motion state detection component are both connected to the controller 110.
[0139] In one embodiment, the motion state detection component may include an acceleration sensor connected to the controller 110. The acceleration sensor is used to detect the acceleration parameters of the device body 120 in the X-axis, Y-axis, and Z-axis directions, and transmit the corresponding motion state detection parameters to the controller 110. The motion state detection parameters include the X-axis acceleration parameter, the Y-axis acceleration parameter, and the Z-axis acceleration parameter. Figure 3 As shown, the X-axis represents the axis in the horizontal direction; the Y-axis represents another axis in the horizontal direction, which is perpendicular to the X-axis; and the Z-axis represents the vertical direction perpendicular to the X-axis and the Y-axis.
[0140] The interaction module is used to realize the 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 display screens. The user can input control instructions through the interaction module, and the controller 110 controls the device body 120 according to the control instructions after receiving the user's control instructions.
[0141] Exemplarily, the control command input by the user may include an operation mode start command, an operation mode stop command, and an intelligent switching mode command. When the controller 110 receives the operation mode start command, the control device body 120 is in the operation state. The user may also input an adjustment command through the interactive module.
[0142] When the control device body 120 receives the stop operation mode instruction, the control device body 120 is in the stop operation state. When the control device body 120 receives the smart switching mode instruction, it enters the smart switching mode. In the smart switching mode, the controller 110 is used to control the device body 120 according to the control method of the electric device. The control method of the electric device can be set with reference to the above embodiments, which will not be repeated here.
[0143] The electric device can be switched to a matching target operation mode and control the operation of the device body according to the target operation mode. This allows the user to effectively control the electric device without performing any additional operations. This simplifies the operation process of the electric device and improves the convenience of using the electric device.
[0144] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0145] In the intelligent switching mode, the motion state parameters of the device body of the electrical device are obtained;
[0146] When it is determined according to the motion state parameters that the motion state of the device body meets the preset mode switching condition, determining the posture state of the device body according to the motion state parameters;
[0147] The target operation mode is determined according to the posture state of the device body, and the device body is controlled based on the target operation mode.
[0148] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the device body is in a working position, the target operating mode is determined to be an on operating mode; when the device body is in a sleeping position, the target operating mode is determined to be a off operating mode.
[0149] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: within a first preset time, if the device body is in a working position, determining that the target operating mode is an on operating mode;
[0150] Within the first preset time, if the device body is in the sleep position, the target operation mode is determined to be the stop operation mode.
[0151] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when it is determined according to the motion state parameters that the device body has performed a preset action, determining that the motion state of the device body meets a preset mode switching condition.
[0152] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: when at least one of the following conditions is met, determining that a preset action has occurred on the device body;
[0153] Condition 1: within the second preset time, the change value of the X-axis acceleration parameter is greater than the X-axis acceleration change threshold;
[0154] Condition 2: within the second preset time, the change value of the Y-axis acceleration parameter is greater than the Y-axis acceleration change threshold;
[0155] Condition three: within the second preset time, the change value of 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, the following steps are also implemented: 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 posture state of the device body is determined to be a working posture; 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 posture state of the device body is determined to be a sleeping posture; wherein the second threshold is less than the first threshold.
[0157] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: receiving an intelligent switching instruction and entering an intelligent switching mode.
[0158] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0159] In the intelligent switching mode, the motion state parameters of the device body of the electrical device are obtained;
[0160] When it is determined according to the motion state parameters that the motion state of the device body meets the preset mode switching condition, determining the posture state of the device body according to the motion state parameters;
[0161] The target operation mode is determined according to the posture state of the device body, and the device body is controlled based on the target operation mode.
[0162] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the device body is in a working position, the target operating mode is determined to be an on operating mode; when the device body is in a sleeping position, the target operating mode is determined to be a off operating mode.
[0163] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: within a first preset time, if the device body is in a working position, determining that the target operating mode is an on operating mode;
[0164] Within the first preset time, if the device body is in the sleep position, the target operation mode is determined to be the stop operation mode.
[0165] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when it is determined according to the motion state parameters that the device body has performed a preset action, determining that the motion state of the device body meets a preset mode switching condition.
[0166] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: when at least one of the following conditions is met, determining that a preset action has occurred on the device body;
[0167] Condition 1: within the second preset time, the change value of the X-axis acceleration parameter is greater than the X-axis acceleration change threshold;
[0168] Condition 2: within the second preset time, the change value of the Y-axis acceleration parameter is greater than the Y-axis acceleration change threshold;
[0169] Condition three: within the second preset time, the change value of 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, the following steps are also implemented: 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 posture state of the device body is determined to be a working posture; 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 posture state of the device body is determined to be a sleeping posture; wherein the second threshold is less than the first threshold.
[0171] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: receiving an intelligent switching instruction and entering an intelligent switching mode.
[0172] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present 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. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0173] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0174] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A control method for an electrical device, characterized in that: The method comprises: In the intelligent switching mode, the motion state parameters of the device body of the electrical device are obtained; In the case where it is determined according to the motion state parameters that the motion state of the device body meets a preset mode switching condition, determining the posture state of the device body according to the motion state parameters; A target operating mode is determined according to the posture state of the device body, and the device body is controlled based on the target operating mode.
2. The method according to claim 1, characterized in that The posture state of the device body includes a working posture and a sleeping posture; and determining a target operation mode according to the posture state of the device body includes: When the device body is in the working position, determining that the target operation mode is an on operation mode; When the device body is in the sleep position, the target operation mode is determined to be a stop operation mode.
3. The method according to claim 2, characterized in that The step of determining a target operation mode according to the posture state of the device body includes: Within a first preset time, if the device body is in the working position, determining that the target operating mode is an on operating mode; Within the first preset time, if the device body is in the sleep position, it is determined that the target operation mode is the stop operation mode.
4. The method according to claim 1, characterized in that: The method further comprises: When it is determined according to the motion state parameter that the device body has performed a preset action, it is determined that the motion state of the device body meets a preset mode switching condition.
5. The method according to claim 4, characterized in that The motion state parameters include an X-axis acceleration parameter, a Y-axis acceleration parameter, and a Z-axis acceleration parameter; the method further includes: When at least one of the following conditions is met, determining that a preset action has occurred on the device body; Condition 1: within the second preset time, 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, the change value of the Y-axis acceleration parameter is greater than the Y-axis acceleration change threshold; Condition three: within the second preset time, the change value of the Z-axis acceleration parameter is greater than the Z-axis acceleration change threshold.
6. The method according to claim 1, characterized in that The posture state of the device body includes a working posture and a sleeping posture; the motion state parameters include an X-axis acceleration parameter, a Y-axis acceleration parameter, and a Z-axis acceleration parameter; and determining the posture state of the device body according to 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, determining that the posture state of the device body is the working posture; 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 posture state of the device body is determined to be the sleep posture; wherein the second threshold is less than the first threshold.
7. The method according to claim 1, characterized in that The method further comprises: Receive an intelligent switching instruction and enter the intelligent switching mode.
8. A control device for an electrical device, characterized in that: The device comprises: A parameter acquisition module, used to obtain the motion state parameters of the device body of the electrical device in the intelligent switching mode; A posture determination module, configured to determine the posture state of the device body according to the motion state parameters when it is determined according to the motion state parameters that the motion state of the device body meets a preset mode switching condition; An operation control module is used to determine a target operation mode according to the posture state of the device body and control the device body based on the target operation mode.
9. An electrical device, characterized in that: The device comprises a controller and a device body connected to each other, wherein the controller is used to control the device body according to the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Broadcasting system and sound transmission device thereof, and control method for electronic device
CN107181990A
Intelligent temperature-control fan based on ultrasonic distance measurement
CN107740780A
Fan control method and system, fan and computer readable storage medium
CN112943664A
Mode adjustment control method, control system and computer readable storage medium
CN116149206A
Electric equipment, toppling detection method and device thereof, equipment and storage medium
CN117471945A