Equipment gear adjusting method and device, electronic equipment and storage medium
Patent Information
- Application Number
- CN202411065925.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-12-03
AI Technical Summary
The gear adjustment method of existing smart fans and other devices in different users and scenarios has limitations and cannot meet the usage needs of multiple users in different scenarios.
By determining the target scenario where the current user is located, obtaining the mapping table of environmental parameters and gear positions, determining the stable environment parameters based on the environmental parameters of the target scene, and updating the mapping table of environmental parameters and gear positions, adjusting the gear positions of the equipment to adapt to The usage habits of different users in different scenarios.
It improves the device usage experience of users with different habits in different scenarios, ensures that the device gear can meet user needs in multiple scenarios, and avoids disordered mapping table data.
Smart Images

Figure CN119065428A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent control technology, and in particular to a method and device for adjusting equipment gear position, an electronic device and a storage medium. Background Art
[0002] As the application of smart devices such as fans becomes more and more widespread, users have also put forward higher requirements for the user experience of such devices. As a result, smart fans have emerged, which can automatically adjust the gear according to the ambient temperature, so that users do not have to manually change the gear frequently when the ambient temperature changes. However, the adjustment method of existing smart fans is to adjust the fan gear to the corresponding fixed gear according to the ambient temperature, and different users may have different habits for adjusting the fan gear, and the most suitable gear corresponding to the ambient temperature in different scenarios is also different. Therefore, the existing method can only meet the usage needs of a user in a specific scenario, and has certain limitations when applied to users with different usage habits and different scenarios. Summary of the invention
[0003] In order to solve the above problems, the embodiments of the present invention disclose a method and apparatus for adjusting the gear position of an equipment, an electronic device and a storage medium.
[0004] In a first aspect, an embodiment of the present invention provides a method for adjusting a gear position of an equipment, the method comprising:
[0005] Determine the target scene where the current user is located, and obtain a mapping table of environmental parameters and gear positions according to the target scene where the current user is located; the environmental parameters include at least one of temperature, humidity and light intensity;
[0006] Acquire environmental parameters of the target scene;
[0007] Determining stable environmental parameters corresponding to the current gear position of the device according to the environmental parameters of the target scene;
[0008] According to the current gear position and the stable environmental parameter, updating the mapping table between the environmental parameter and the gear position;
[0009] The gear position of the device is adjusted according to the environmental parameters of the target scene and the updated mapping table between the environmental parameters and the gear positions.
[0010] Optionally, determining the stable environmental parameter corresponding to the current gear position of the device according to the environmental parameter of the target scene includes:
[0011] When the current gear position of the device remains unchanged within a preset time, and the difference between the maximum and minimum values of the environmental parameters of the target scene within the preset time is less than the preset difference, the intermediate integer value between the maximum and minimum values of the environmental parameters is used as the stable environmental parameter corresponding to the current gear position of the device.
[0012] Optionally, the updating the mapping table between the environmental parameter and the gear position according to the current gear position and the stable environmental parameter includes:
[0013] If the stable environmental parameter is smaller than the environmental parameter in the mapping table of environmental parameters and gears, and the current gear is larger than the gear corresponding to the environmental parameter in the mapping table of environmental parameters and gears, the current gear is used to update the gear corresponding to the environmental parameter in the mapping table of environmental parameters and gears.
[0014] Optionally, the updating of the mapping table between the environmental parameter and the gear position according to the current gear position and the stable environmental parameter further includes:
[0015] If the stable environmental parameter is greater than the environmental parameter in the mapping table of environmental parameters and gears, and the current gear is less than the gear corresponding to the environmental parameter in the mapping table of environmental parameters and gears, the current gear is used to update the gear corresponding to the environmental parameter in the mapping table of environmental parameters and gears.
[0016] Optionally, acquiring a mapping table between environmental parameters and gear positions according to the target scene in which the current user is located includes:
[0017] According to the target scene of the current user, a target mapping table is obtained from multiple mapping tables; the multiple mapping tables include mapping tables of environmental parameters and gears corresponding to the current user in different target scenes, and mapping tables of environmental parameters and gears corresponding to different users in the target scenes.
[0018] Optionally, the taking an intermediate integer value between the maximum value and the minimum value of the environmental parameter as a stable environmental parameter corresponding to the current gear position of the device includes:
[0019] Filtering abnormal maximum values and abnormal minimum values of the environmental parameters;
[0020] When the difference between the maximum value and the minimum value of the environmental parameter after filtering the abnormal maximum value and the abnormal minimum value is less than the preset difference, the intermediate integer value between the maximum value and the minimum value of the environmental parameter is used as the stable environmental parameter corresponding to the current gear of the device.
[0021] Optionally, the acquiring the environmental parameters of the target scene includes:
[0022] The environmental parameters of the target scene are obtained according to a preset frequency.
[0023] In a second aspect, an embodiment of the present invention provides a device for adjusting a gear position of an equipment, the device comprising:
[0024] A target scene determination module, used to determine the target scene where the current user is located, and obtain a mapping table of environmental parameters and gear positions according to the target scene where the current user is located; the environmental parameters include at least one of temperature, humidity and light intensity;
[0025] An environmental parameter acquisition module, used to acquire the environmental parameters of the target scene;
[0026] A stable parameter determination module, used to determine the stable environmental parameters corresponding to the current gear position of the device according to the environmental parameters of the target scene;
[0027] A mapping parameter updating module, used for updating a mapping table between the environmental parameter and the gear position according to the current gear position and the stable environmental parameter;
[0028] The device gear adjustment module is used to adjust the gear of the device according to the environmental parameters of the target scene and the updated mapping table between the environmental parameters and the gears.
[0029] Optionally, the stability parameter determination module includes:
[0030] The parameter stability parameter determination submodule is used to use the intermediate integer value between the maximum value and the minimum value of the environmental parameter as the stable environmental parameter corresponding to the current gear position of the device when the current gear position of the device remains unchanged within a preset time and the difference between the maximum value and the minimum value of the environmental parameter of the target scene within the preset time is less than a preset difference.
[0031] Optionally, the mapping parameter updating module includes:
[0032] The first mapping parameter updating submodule is used to update the gear corresponding to the environmental parameter in the mapping table of environmental parameters and gears using the current gear if the stable environmental parameter is less than the environmental parameter in the mapping table of environmental parameters and gears, and the current gear is greater than the gear corresponding to the environmental parameter in the mapping table of environmental parameters and gears.
[0033] Optionally, the mapping parameter updating module further includes:
[0034] The first mapping parameter updating submodule is used to update the gear corresponding to the environmental parameter in the mapping table of environmental parameters and gears using the current gear if the stable environmental parameter is greater than the environmental parameter in the mapping table of environmental parameters and gears, and the current gear is less than the gear corresponding to the environmental parameter in the mapping table of environmental parameters and gears.
[0035] Optionally, the target scene determination module includes:
[0036] The target scene determination submodule is used to obtain a target mapping table from multiple mapping tables according to the target scene in which the current user is located; the multiple mapping tables include mapping tables of environmental parameters and gear positions corresponding to the current user in different target scenes, and mapping tables of environmental parameters and gear positions corresponding to different users in the target scene.
[0037] Optionally, the stability parameter determination submodule includes:
[0038] An environmental parameter filtering unit, used for filtering abnormal maximum values and abnormal minimum values of the environmental parameters;
[0039] The stable parameter determination unit block is used to use the intermediate integer value between the maximum value and the minimum value of the environmental parameter as the stable environmental parameter corresponding to the current gear position of the equipment when the difference between the maximum value and the minimum value of the environmental parameter after filtering the abnormal maximum value and the abnormal minimum value is less than a preset difference.
[0040] Optionally, the environmental parameter acquisition module includes:
[0041] The environmental parameter acquisition submodule is used to acquire the environmental parameters of the target scene according to a preset frequency.
[0042] In a third aspect, the present invention shows an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned device gear adjustment method when executing the computer program.
[0043] In a fourth aspect, the present invention shows a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned method for adjusting the gear position of an equipment are implemented.
[0044] The embodiments of the present invention include the following advantages:
[0045] The embodiment of the present invention can determine the target scene in which the current user is located, and obtain a mapping table of environmental parameters and gears according to the target scene in which the current user is located; the environmental parameters include at least one of temperature, humidity and light intensity, so that the embodiment of the present invention can be used not only for devices that adjust the gear by temperature, but also for devices that adjust the gear by humidity or light intensity, such as humidifiers or dehumidifiers, intelligent shading devices, etc.; obtain the environmental parameters of the target scene; determine the stable environmental parameters corresponding to the current gear of the device according to the environmental parameters of the target scene; update the mapping table of environmental parameters and gears according to the current gear and the stable environmental parameters to ensure the reliability of the environmental parameters and avoid data disorder in the mapping table; adjust the gear of the device according to the environmental parameters of the target scene and the updated mapping table of environmental parameters and gears, so that the mapping table of environmental parameters and gears can be updated according to the gear adjustment habits of different users in different scenarios, and the gear of the device can be adjusted through the mapping table, thereby improving the device usage experience of users with different habits in different scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0047] Figure 1 It is a flowchart of the steps of a method for adjusting the gear position of an equipment according to an embodiment of the present invention;
[0048] Figure 2 is a flowchart of another method for adjusting the gear position of an equipment according to an embodiment of the present invention;
[0049] Figure 3 It is a logic diagram of a device gear adjustment method according to an embodiment of the present invention;
[0050] Figure 4 It is a structural block diagram of a device for adjusting the gear position of an equipment according to an embodiment of the present invention;
[0051] Figure 5 is a structural block diagram of an electronic device according to an embodiment of the present invention;
[0052] Figure 6 It is a structural block diagram of a computer-readable storage medium according to an embodiment of the present invention. DETAILED DESCRIPTION
[0053] As the application of smart devices becomes more and more widespread, users have also put forward higher requirements for the user experience of such devices. When using smart home devices with gear adjustment functions, such as smart fans, smart humidifiers or dehumidifiers, smart shading devices, etc., users often hope that smart home devices can automatically adjust the gear. Existing smart home devices such as smart fans can automatically adjust the gear according to the ambient temperature, so that users do not need to manually change the gear frequently when the ambient temperature changes. However, the adjustment method of the existing smart fan is to adjust the fan's gear to the corresponding fixed gear according to the ambient temperature, and different users may have different habits of adjusting the fan gear, and the most suitable gear corresponding to the ambient temperature in different scenarios is also different. Therefore, the existing method can only meet the usage needs of a user in a specific scenario, and has certain limitations when applied to users with different usage habits and different scenarios.
[0054] In view of the problems in the prior art, the present invention proposes a device gear adjustment method, the purpose of which is to solve the limitations of the existing smart fan adjustment method when applied to users with different usage habits and different scenarios. In order to achieve this goal, the embodiment of the present invention updates the mapping table between environmental parameters and gears according to the gear adjustment habits of different users in different scenarios, and adjusts the gear of the device through the mapping table, thereby meeting the device gear adjustment needs of users with different habits in different scenarios.
[0055] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0056] Reference Figure 1 , shows a flow chart of the steps of a method for adjusting the gear position of an equipment according to an embodiment of the present invention, and the method may specifically include the following steps:
[0057] Step 101, determining the target scene where the current user is located, and obtaining a mapping table between environmental parameters and gear positions according to the target scene where the current user is located; the environmental parameters include at least one of temperature, humidity and light intensity;
[0058] In an embodiment of the present invention, the device may be an intelligent household device with a gear adjustment function, such as an intelligent fan, an intelligent humidifier or dehumidifier, an intelligent shading device, etc. The device gear adjustment method of the embodiment of the present invention may be set in the control chip of the device. The control chip may determine the current user using the device, and determine the target scene where the current user is located, and obtain a mapping table of environmental parameters and gears according to the target scene where the current user is located. The current user may switch the target scene by means of a button or touch of the device, and the control chip of the device may obtain the switching result of the user or the switching result of the target scene to obtain a mapping table of corresponding environmental parameters and gears. Among them, the environmental parameters may include at least one of temperature, humidity and light intensity. When the device is an intelligent fan, the control chip may obtain a mapping table of temperature and gear; when the device is an intelligent humidifier or dehumidifier, the control chip may obtain a mapping table of humidity and gear; when the device is an intelligent shading device, the control chip may obtain a mapping table of light intensity and gear.
[0059] Step 102, obtaining environmental parameters of the target scene;
[0060] In an embodiment of the present invention, the control chip can obtain environmental parameters of the target scene. For example, when the device is a smart fan, the control chip can obtain temperature; when the device is a smart humidifier or dehumidifier, the control chip can obtain humidity; when the device is a smart shading device, the control chip can obtain light intensity.
[0061] Step 103, determining the stable environmental parameters corresponding to the current gear position of the device according to the environmental parameters of the target scene;
[0062] In an embodiment of the present invention, the control chip can determine the stable environmental parameters corresponding to the current gear of the device according to the environmental parameters of the target scene. The stable environmental parameters can be the corresponding environmental parameters when the current gear used by the current user remains unchanged within a preset time and the change range of the environmental parameters within the preset time is within a preset range. Among them, the preset time can be 3 minutes, and the preset range of the change range can be 2. Those skilled in the art can set the preset time and the preset range of the change range to other appropriate values according to the concept of the present invention, and the present invention is not limited to this.
[0063] The embodiment of the present invention determines the stable environmental parameters when the current gear position remains unchanged within a preset time and the variation range of the environmental parameters within the preset time is within a preset range, thereby ensuring the accuracy of the stable environmental parameters corresponding to the current gear position, thereby obtaining the current user's habit of adjusting the device gear position in the target scenario, and recording it in a mapping table of environmental parameters and gear positions, thereby avoiding data disorder in the table due to inaccurate stable environmental parameters when the mapping table of environmental parameters and gear positions is subsequently updated.
[0064] Step 104: Update the mapping table of the environmental parameters and the gear according to the current gear and the stable environmental parameters.
[0065] In the embodiment of the present invention, the control chip stores the current gear and the stable environmental parameters, and updates the mapping table of the environmental parameters and the gear according to the current gear and the stable environmental parameters. Exemplarily, when there is a situation where, between any two sets of data tz - Lxz and ty - Lxy in the mapping table of the environmental parameter t and the gear Lx, tz > ty and Lxz < Lxy, or tz < ty and Lxz > Lxy, it indicates that the data in the mapping table of the environmental parameters and the gear is abnormal. At this time, the data in the mapping table of the environmental parameters and the gear can be updated according to the current gear and the stable environmental parameters.
[0066] Specifically, after the current gear Level0 and the stable environmental parameter Temp0 are stored in the control chip, if there is a set of data of the environmental parameter Temp1 and the gear Level1 in the mapping table of the environmental parameters and the gear, such that Temp1 > Temp0 and Level1 < Level0, then use the current gear Level0 to overwrite Level1. Similarly, if there is a set of data of the environmental parameter Temp2 and the gear Level2 in the mapping table of the environmental parameters and the gear, such that Temp2 < Temp0 and Level2 > Level0, then use the current gear Level0 to overwrite Level2.
[0067] In the embodiment of the present invention, by updating the mapping table of the environmental parameters and the gear according to the current gear and the stable environmental parameters, data maintenance of the mapping table of the environmental parameters and the gear can be performed, avoiding situations that violate common sense, such as a low gear of the fan when the temperature is high, a low gear of the dehumidifier when the humidity is high, or a low gear of the intelligent shading device when the light intensity is high, thereby enhancing the user experience.
[0068] Step 105: Adjust the gear of the device according to the environmental parameters of the target scenario and the updated mapping table of the environmental parameters and the gear.
[0069] In the embodiment of the present invention, the control chip can adjust the gear of the device according to the environmental parameters of the target scenario and the updated mapping table of the environmental parameters and the gear. Since the mapping table of the environmental parameters and the gear is updated according to the habit of the current user adjusting the gear of the device in the target scenario, the control chip can automatically adjust the device to a gear that makes the current user feel comfortable according to the updated mapping table of the environmental parameters and the gear when the environmental parameters of the current user change in the target scenario, thereby enhancing the user experience.
[0070] Since home appliances such as smart fans are portable devices, they can be used in different scenarios. After the user sets the corresponding environmental parameters and gear mapping table for each target scene, when the user switches from one scene to another (for example, from the living room to the bedroom), there is no need to reset the user's habits. The gear of the smart fan can be adjusted to the desired state by simply switching the smart fan mapping table.
[0071] The embodiment of the present invention can determine the target scene where the current user is located through the control chip, and obtain a mapping table of environmental parameters and gears according to the target scene where the current user is located; the environmental parameters include at least one of temperature, humidity and light intensity, so that the embodiment of the present invention can be used not only for devices that adjust the gear by temperature, but also for devices that adjust the gear by humidity or light intensity, such as humidifiers or dehumidifiers, intelligent shading devices, etc.; obtain the environmental parameters of the target scene; determine the stable environmental parameters corresponding to the current gear of the device according to the environmental parameters of the target scene; update the mapping table of environmental parameters and gears according to the current gear and the stable environmental parameters to ensure the reliability of the environmental parameters and avoid data disorder in the mapping table; adjust the gear of the device according to the environmental parameters of the target scene and the updated mapping table of environmental parameters and gears, so that the mapping table of environmental parameters and gears can be updated according to the gear adjustment habits of different users in different scenarios, and the gear of the device can be adjusted through the mapping table, thereby improving the device usage experience of users with different habits in different scenarios.
[0072] Reference Figure 2 , shows a flowchart of another method for adjusting the gear position of an equipment according to an embodiment of the present invention, and the method may specifically include the following steps:
[0073] Step 201, determining the target scene where the current user is located, and obtaining a mapping table between environmental parameters and gear positions according to the target scene where the current user is located; the environmental parameters include at least one of temperature, humidity and light intensity;
[0074] In one embodiment, the step of obtaining a mapping table of environmental parameters and gear positions according to the target scene in which the current user is located may also include: obtaining a target mapping table from multiple mapping tables according to the target scene in which the current user is located; the multiple mapping tables include mapping tables of environmental parameters and gear positions corresponding to the current user in different target scenes, and mapping tables of environmental parameters and gear positions corresponding to different users in the target scene.
[0075] In an embodiment of the present invention, the device may be an intelligent household device with a gear adjustment function, such as an intelligent fan, an intelligent humidifier or dehumidifier, an intelligent shading device, etc. The device gear adjustment method of the embodiment of the present invention may be set in the control chip of the device. The control chip may determine the current user using the device, and determine the target scene where the current user is located, and obtain a mapping table of environmental parameters and gears according to the target scene where the current user is located. Specifically, according to the target scene where the current user is located, a target mapping table is obtained from multiple mapping tables; the multiple mapping tables include mapping tables of environmental parameters and gears corresponding to the current user in different target scenes, and mapping tables of environmental parameters and gears corresponding to different users in the target scene. The current user can switch the target scene by pressing the device button or touching, and the control chip of the device can obtain the switching result of the user or the switching result of the target scene to obtain the corresponding mapping table of environmental parameters and gears.
[0076] The environmental parameters may include at least one of temperature, humidity and light intensity. When the device is a smart fan, the control chip may obtain a mapping table between temperature and gear position; when the device is a smart humidifier or dehumidifier, the control chip may obtain a mapping table between humidity and gear position; when the device is a smart shading device, the control chip may obtain a mapping table between light intensity and gear position.
[0077] The embodiment of the present invention provides a device gear adjustment method, which sets a one-to-one mapping table of environmental parameters and gears for users with different habits and different scenarios. Therefore, when the same user uses the device in different scenarios, or different users use the device in the same scenario, the corresponding mapping table of environmental parameters and gears can be quickly called to adjust the gear of the device to the state required by the current user, thereby improving the device usage experience of users with different habits in different scenarios.
[0078] Step 202, obtaining environmental parameters of the target scene;
[0079] In one embodiment, the step of acquiring the environmental parameters of the target scene may further include: acquiring the environmental parameters of the target scene at a preset frequency.
[0080] In an embodiment of the present invention, the control chip can obtain the environmental parameters of the target scene. Exemplarily, when the device is a smart fan, the control chip can obtain the temperature; when the device is a smart humidifier or dehumidifier, the control chip can obtain the humidity; when the device is a smart shading device, the control chip can obtain the light intensity. Specifically, the control chip can obtain the environmental parameters of the target scene at a preset frequency, wherein the preset frequency can be 1 second / time. Those skilled in the art can set the preset frequency to other appropriate values according to the concept of the present invention, and the present invention is not limited to this.
[0081] Step 203, when the current gear position of the device remains unchanged within a preset time, and the difference between the maximum value and the minimum value of the environmental parameter of the target scene within the preset time is less than a preset difference, an intermediate integer value between the maximum value and the minimum value of the environmental parameter is used as a stable environmental parameter corresponding to the current gear position of the device;
[0082] In one embodiment, the step of using the intermediate integer value between the maximum value and the minimum value of the environmental parameter as the stable environmental parameter corresponding to the current gear position of the device may further include the following sub-steps:
[0083] Sub-step S11, filtering the abnormal maximum value and abnormal minimum value of the environmental parameter;
[0084] Sub-step S12, when the difference between the maximum value and the minimum value of the environmental parameter after filtering the abnormal maximum value and the abnormal minimum value is less than a preset difference, the intermediate integer value between the maximum value and the minimum value of the environmental parameter is used as the stable environmental parameter corresponding to the current gear of the equipment.
[0085] In an embodiment of the present invention, the control chip can determine the stable environmental parameters corresponding to the current gear of the device according to the environmental parameters of the target scene. The stable environmental parameters can be the corresponding environmental parameters when the current gear used by the current user remains unchanged within a preset time and the change range of the environmental parameters within the preset time is within a preset range. Among them, the preset time can be 3 minutes, and the preset range of the change range can be 2. Those skilled in the art can set the preset time and the preset range of the change range to other appropriate values according to the concept of the present invention, and the present invention is not limited to this.
[0086] When a fan or other device is running, if the gear of the device cannot meet the needs of the current user, the current user may manually adjust the gear of the device. For example, the gear can be adjusted through the remote control of the fan or other device or the supporting mobile phone application, or through the shift lever or button on the center console of the car, or through the voice assistant. When the user adjusts the gear and the gear does not change after a preset time, and the change range of the environmental parameters within the preset time is within the preset range, the stable environmental parameters corresponding to the current gear can be determined.
[0087] Specifically, the specific process of determining stable environmental parameters can be as follows: when the current gear position of the device remains unchanged within a preset time, the control chip can filter out abnormal maximum values and abnormal minimum values in the environmental parameters to remove possibly abnormal data in the environmental parameters. When the difference between the maximum value and the minimum value of the environmental parameters after filtering out the abnormal maximum value and the abnormal minimum value is less than the preset difference, the intermediate integer value between the maximum value and the minimum value of the environmental parameters is used as the stable environmental parameter corresponding to the current gear position of the device.
[0088] The embodiment of the present invention determines the stable environmental parameters when the current gear position remains unchanged within a preset time and the variation range of the environmental parameters within the preset time is within a preset range, thereby ensuring the accuracy of the stable environmental parameters corresponding to the current gear position, thereby obtaining the current user's habit of adjusting the device gear position in the target scenario, and recording it in a mapping table of environmental parameters and gear positions, thereby avoiding data disorder in the table due to inaccurate stable environmental parameters when the mapping table of environmental parameters and gear positions is subsequently updated.
[0089] Step 204, updating a mapping table between the environmental parameters and the gear positions according to the current gear position and the stable environmental parameters;
[0090] In one embodiment, the step of updating the mapping table between the environmental parameter and the gear position according to the current gear position and the stable environmental parameter may further include the following sub-steps:
[0091] Sub-step S21, if the stable environmental parameter is less than the environmental parameter in the mapping table of environmental parameters and gears, and the current gear is greater than the gear corresponding to the environmental parameter in the mapping table of environmental parameters and gears, then the gear corresponding to the environmental parameter in the mapping table of environmental parameters and gears is updated using the current gear;
[0092] Sub-step S22, if the stable environmental parameter is greater than the environmental parameter in the mapping table of environmental parameters and gears, and the current gear is less than the gear corresponding to the environmental parameter in the mapping table of environmental parameters and gears, then the current gear is used to update the gear corresponding to the environmental parameter in the mapping table of environmental parameters and gears.
[0093] In an embodiment of the present invention, the control chip can store the current gear position and the stable environmental parameters, and update the mapping table of environmental parameters and gear positions according to the current gear position and the stable environmental parameters. Specifically, if the stable environmental parameters are less than the environmental parameters in the mapping table of environmental parameters and gear positions, and the current gear position is greater than the gear position corresponding to the environmental parameters in the mapping table of environmental parameters and gear positions, the current gear position is used to update the gear position corresponding to the environmental parameters in the mapping table of environmental parameters and gear positions. If the stable environmental parameters are greater than the environmental parameters in the mapping table of environmental parameters and gear positions, and the current gear position is less than the gear position corresponding to the environmental parameters in the mapping table of environmental parameters and gear positions, the current gear position is used to update the gear position corresponding to the environmental parameters in the mapping table of environmental parameters and gear positions.
[0094] Exemplarily, when there is a situation where, between any two sets of data tz - Lxz and ty - Lxy in the mapping table of the environmental parameter t and the gear position Lx, tz > ty and Lxz < Lxy, or tz < ty and Lxz > Lxy, it indicates that the data in the mapping table of the environmental parameter and the gear position is abnormal. At this time, the data in the mapping table of the environmental parameter and the gear position can be updated according to the current gear position and the stable environmental parameter. After the current gear position Level0 and the stable environmental parameter Temp0 are stored in the control chip, if there is a set of data of the environmental parameter Temp1 and the gear position Level1 in the mapping table of the environmental parameter and the gear position, such that Temp1 > Temp0 and Level1 < Level0, then the current gear position Level0 is used to overwrite Level1. Similarly, if there is a set of data of the environmental parameter Temp2 and the gear position Level2 in the mapping table of the environmental parameter and the gear position, such that Temp2 < Temp0 and Level2 > Level0, then the current gear position Level0 is used to overwrite Level2.
[0095] In the embodiment of the present invention, by updating the mapping table of the environmental parameter and the gear position according to the current gear position and the stable environmental parameter, data maintenance of the mapping table of the environmental parameter and the gear position can be performed, avoiding situations that violate common sense, such as a low gear position of the fan when the temperature is high, a low gear position of the dehumidifier when the humidity is high, or a low gear position of the intelligent shading device when the light intensity is high, thereby improving the user experience.
[0096] Step 205: Adjust the gear position of the device according to the environmental parameter of the target scenario and the updated mapping table of the environmental parameter and the gear position.
[0097] In the embodiment of the present invention, the control chip can adjust the gear position of the device according to the environmental parameter of the target scenario and the updated mapping table of the environmental parameter and the gear position. Since the mapping table of the environmental parameter and the gear position is updated according to the habit of the current user adjusting the gear position of the device in the target scenario, the control chip can automatically adjust the device to a gear position that makes the current user feel comfortable according to the updated mapping table of the environmental parameter and the gear position when the environmental parameter in the target scenario changes for the current user, thereby improving the user experience.
[0098] The embodiment of the present invention can determine the target scene where the current user is located through the control chip, and obtain a mapping table of environmental parameters and gears according to the target scene where the current user is located; the environmental parameters include at least one of temperature, humidity and light intensity, so that the embodiment of the present invention can be used not only for devices that adjust the gear by temperature, but also for devices that adjust the gear by humidity or light intensity, such as humidifiers or dehumidifiers, intelligent shading devices, etc.; obtain the environmental parameters of the target scene; determine the stable environmental parameters corresponding to the current gear of the device according to the environmental parameters of the target scene; update the mapping table of environmental parameters and gears according to the current gear and the stable environmental parameters to ensure the reliability of the environmental parameters and avoid data disorder in the mapping table; adjust the gear of the device according to the environmental parameters of the target scene and the updated mapping table of environmental parameters and gears, so that the mapping table of environmental parameters and gears can be updated according to the gear adjustment habits of different users in different scenarios, and the gear of the device can be adjusted through the mapping table, thereby improving the device usage experience of users with different habits in different scenarios.
[0099] Reference Figure 3 , shows a logic diagram of a device gear adjustment method provided by an embodiment of the present invention, in order to enable those skilled in the art to better understand the embodiment of the present invention, the following Figure 3 The embodiments of the present invention are described as follows:
[0100] Step 301, at the initial moment, the device adjusts the gear position according to the initial mapping table between environmental parameters and gear positions;
[0101] Step 302, when a user switching operation is detected, determining the target scene where the current user is located, and acquiring a first mapping table between environmental parameters and gear positions according to the target scene where the current user is located;
[0102] Step 303, if the current gear used by the current user does not change within the preset time, and the change range of the environmental parameter within the preset time is within the preset range, the current gear and the stable environmental parameter are recorded in the first mapping table of environmental parameters and gears, and the first mapping table of environmental parameters and gears is updated;
[0103] Step 304, adjusting the gear position of the device according to the environmental parameters of the target scene and the updated first mapping table between the environmental parameters and the gear positions;
[0104] Step 305, when a target scene switching operation is detected, determining the target scene after the current user switches, and acquiring a second mapping table between environmental parameters and gear positions according to the target scene after the current user switches;
[0105] Step 306, updating the second mapping table between environmental parameters and gear positions according to the above method;
[0106] Step 307 , adjusting the gear position of the device according to the environmental parameters of the switched target scene and the updated second mapping table between the environmental parameters and the gear positions.
[0107] The embodiment of the present invention can determine the target scene where the current user is located through the control chip, and obtain a mapping table of environmental parameters and gears according to the target scene where the current user is located; the environmental parameters include at least one of temperature, humidity and light intensity, so that the embodiment of the present invention can be used not only for devices that adjust the gear by temperature, but also for devices that adjust the gear by humidity or light intensity, such as humidifiers or dehumidifiers, intelligent shading devices, etc.; obtain the environmental parameters of the target scene; determine the stable environmental parameters corresponding to the current gear of the device according to the environmental parameters of the target scene; update the mapping table of environmental parameters and gears according to the current gear and the stable environmental parameters to ensure the reliability of the environmental parameters and avoid data disorder in the mapping table; adjust the gear of the device according to the environmental parameters of the target scene and the updated mapping table of environmental parameters and gears, so that the mapping table of environmental parameters and gears can be updated according to the gear adjustment habits of different users in different scenarios, and the gear of the device can be adjusted through the mapping table, thereby improving the device usage experience of users with different habits in different scenarios.
[0108] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0109] Reference Figure 4 , shows a structural block diagram of a device gear adjustment device provided by an embodiment of the present invention, which may specifically include the following modules:
[0110] The target scene determination module 401 is used to determine the target scene where the current user is located, and obtain a mapping table between environmental parameters and gear positions according to the target scene where the current user is located; the environmental parameters include at least one of temperature, humidity and light intensity;
[0111] An environmental parameter acquisition module 402 is used to acquire environmental parameters of the target scene;
[0112] A stable parameter determination module 403, used to determine the stable environmental parameters corresponding to the current gear position of the device according to the environmental parameters of the target scene;
[0113] A mapping parameter updating module 404, configured to update a mapping table between the environmental parameter and the gear position according to the current gear position and the stable environmental parameter;
[0114] The device gear adjustment module 405 is used to adjust the gear of the device according to the environmental parameters of the target scene and the updated mapping table between the environmental parameters and the gears.
[0115] In the embodiment of the present invention, the stability parameter determination module 403 includes:
[0116] The stable parameter determination submodule is used to use the intermediate integer value between the maximum value and the minimum value of the environmental parameter as the stable environmental parameter corresponding to the current gear position of the device when the current gear position of the device remains unchanged within a preset time and the difference between the maximum value and the minimum value of the environmental parameter of the target scene within the preset time is less than a preset difference.
[0117] In the embodiment of the present invention, the mapping parameter updating module 404 includes:
[0118] The first mapping parameter updating submodule is used to update the gear corresponding to the environmental parameter in the mapping table of environmental parameters and gears using the current gear if the stable environmental parameter is less than the environmental parameter in the mapping table of environmental parameters and gears, and the current gear is greater than the gear corresponding to the environmental parameter in the mapping table of environmental parameters and gears.
[0119] In the embodiment of the present invention, the mapping parameter updating module 404 further includes:
[0120] The first mapping parameter updating submodule is used to update the gear corresponding to the environmental parameter in the mapping table of environmental parameters and gears using the current gear if the stable environmental parameter is greater than the environmental parameter in the mapping table of environmental parameters and gears, and the current gear is less than the gear corresponding to the environmental parameter in the mapping table of environmental parameters and gears.
[0121] In the embodiment of the present invention, the target scene determination module 401 includes:
[0122] The target scene determination submodule is used to obtain a target mapping table from multiple mapping tables according to the target scene in which the current user is located; the multiple mapping tables include mapping tables of environmental parameters and gear positions corresponding to the current user in different target scenes, and mapping tables of environmental parameters and gear positions corresponding to different users in the target scene.
[0123] In the embodiment of the present invention, the stability parameter determination submodule includes:
[0124] An environmental parameter filtering unit, used for filtering abnormal maximum values and abnormal minimum values of the environmental parameters;
[0125] The stable parameter determination unit block is used to use the intermediate integer value between the maximum value and the minimum value of the environmental parameter as the stable environmental parameter corresponding to the current gear position of the equipment when the difference between the maximum value and the minimum value of the environmental parameter after filtering the abnormal maximum value and the abnormal minimum value is less than a preset difference.
[0126] In the embodiment of the present invention, the environmental parameter acquisition module 402 includes:
[0127] The environmental parameter acquisition submodule is used to acquire the environmental parameters of the target scene according to a preset frequency.
[0128] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0129] Reference Figure 5 , showing a structural block diagram of an electronic device provided by an embodiment of the present invention. An embodiment of the present invention also provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned device gear adjustment method when executing the computer program.
[0130] Reference Figure 6 , showing a structural block diagram of a computer-readable storage medium provided by an embodiment of the present invention. An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned device gear adjustment method are implemented.
[0131] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0132] Those skilled in the art will appreciate that the embodiments of the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more machine-readable media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0133] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0134] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0135] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0136] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0137] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0138] The above is a detailed introduction to a device gear adjustment method and a device gear adjustment device provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for adjusting the gear position of an equipment, characterized in that: The method comprises: Determine the target scene where the current user is located, and obtain a mapping table of environmental parameters and gear positions according to the target scene where the current user is located; the environmental parameters include at least one of temperature, humidity and light intensity; Acquire environmental parameters of the target scene; Determining stable environmental parameters corresponding to the current gear position of the device according to the environmental parameters of the target scene; According to the current gear position and the stable environmental parameter, updating the mapping table between the environmental parameter and the gear position; The gear position of the device is adjusted according to the environmental parameters of the target scene and the updated mapping table between the environmental parameters and the gear positions.
2. The method according to claim 1, characterized in that: The step of determining the stable environmental parameter corresponding to the current gear position of the device according to the environmental parameter of the target scene includes: When the current gear position of the device remains unchanged within a preset time, and the difference between the maximum and minimum values of the environmental parameters of the target scene within the preset time is less than the preset difference, the intermediate integer value between the maximum and minimum values of the environmental parameters is used as the stable environmental parameter corresponding to the current gear position of the device.
3. The method according to claim 1, characterized in that The updating of the mapping table between the environmental parameter and the gear position according to the current gear position and the stable environmental parameter includes: If the stable environmental parameter is smaller than the environmental parameter in the mapping table of environmental parameters and gears, and the current gear is larger than the gear corresponding to the environmental parameter in the mapping table of environmental parameters and gears, the current gear is used to update the gear corresponding to the environmental parameter in the mapping table of environmental parameters and gears.
4. The method according to claim 3, characterized in that The updating of the mapping table between the environmental parameter and the gear position according to the current gear position and the stable environmental parameter further includes: If the stable environmental parameter is greater than the environmental parameter in the mapping table of environmental parameters and gears, and the current gear is less than the gear corresponding to the environmental parameter in the mapping table of environmental parameters and gears, the current gear is used to update the gear corresponding to the environmental parameter in the mapping table of environmental parameters and gears.
5. The method according to claim 1, characterized in that The step of obtaining a mapping table between environmental parameters and gear positions according to the target scene in which the current user is located includes: According to the target scene of the current user, a target mapping table is obtained from multiple mapping tables; the multiple mapping tables include mapping tables of environmental parameters and gears corresponding to the current user in different target scenes, and mapping tables of environmental parameters and gears corresponding to different users in the target scenes.
6. The method according to claim 2, characterized in that The step of using an intermediate integer value between the maximum value and the minimum value of the environmental parameter as a stable environmental parameter corresponding to the current gear position of the device includes: Filtering abnormal maximum values and abnormal minimum values of the environmental parameters; When the difference between the maximum value and the minimum value of the environmental parameter after filtering the abnormal maximum value and the abnormal minimum value is less than the preset difference, the intermediate integer value between the maximum value and the minimum value of the environmental parameter is used as the stable environmental parameter corresponding to the current gear of the device.
7. The method according to claim 1, characterized in that The step of obtaining the environmental parameters of the target scene includes: The environmental parameters of the target scene are obtained according to a preset frequency.
8. A device for adjusting the gear position of an equipment, characterized in that: The device comprises: A target scene determination module, used to determine the target scene where the current user is located, and obtain a mapping table of environmental parameters and gear positions according to the target scene where the current user is located; the environmental parameters include at least one of temperature, humidity and light intensity; An environmental parameter acquisition module, used to acquire the environmental parameters of the target scene; A stable parameter determination module, used to determine the stable environmental parameters corresponding to the current gear position of the device according to the environmental parameters of the target scene; A mapping parameter updating module, used for updating a mapping table between the environmental parameter and the gear position according to the current gear position and the stable environmental parameter; The device gear adjustment module is used to adjust the gear of the device according to the environmental parameters of the target scene and the updated mapping table between the environmental parameters and the gears.
9. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of a device gear adjustment method as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of a device gear adjustment method as described in any one of claims 1 to 7 are implemented.
