Control method, control apparatus, electronic device, and storage medium
Patent Information
- Application Number
- CN202311412116.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-27
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2043-10-27
AI Technical Summary
而设备通常会被应用在多个场景模式下,在这种情况下,每个场景下的设备控制过程都需要经过大量的分析计算才能进行修改,整个调整过程的计算量巨大,需要大量的算力资源才能完成
[0029]本申请提供的一种控制方法、控制装置、电子设备及存储介质,通过在获取到设备的控制指令的情况下,基于控制指令确定控制因子,基于控制因子确定与控制因子对应的补偿参数,基于补偿参数对控制指令的控制参数进行补偿,得到目标控制参数,基于目标控制参数控制设备执行,如此,能够在保证设备的控制更接近实际情况的情况下,降低调整设备控制参数需要的算力,减少设备支出。
Smart Images

Figure CN117348430B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of control technology, and in particular to a control method, control device, electronic device and storage medium. Background Technology
[0002] Home control is evolving from simple switch controls to more user-friendly, scenario-based, and intelligent systems. Devices are also progressing from simple on / off functions to operating in different modes based on various scenarios, gradually adapting to the specific needs of each situation. With the development of big data analytics and artificial intelligence, optimizations in device control methods have emerged. Compensatory control methods, derived from data and intelligent analysis, have arisen. By analyzing real-time data and algorithmic calculations, parameter compensation values are derived and then added to the device's control parameters, enabling dynamic adjustments to device control based on actual conditions and enhancing the user experience.
[0003] In existing technologies, the operating habits of similar users and the impact of physical conditions such as temperature are typically considered when dynamically adjusting the device's own mode. This approach allows for dynamic adjustment of the device's control parameters, making the ongoing control process more closely resemble actual conditions and better meet the user's needs. However, devices are often used in multiple scenario modes. In this case, the device control process in each scenario requires extensive analysis and calculation before modification, resulting in a massive computational load and necessitating substantial computing resources. Summary of the Invention
[0004] To address the aforementioned issues, this application provides a control method, control device, electronic device, air conditioner, and storage medium that can reduce the computing power required to adjust device control parameters and reduce equipment expenditures while ensuring that the control of the device is closer to the actual situation.
[0005] This application provides a control method, including:
[0006] Upon receiving control commands from the device, a control factor is determined based on those commands.
[0007] The compensation parameters are determined based on the control factors;
[0008] The control parameters of the control command are compensated based on the compensation parameters to obtain the target control parameters;
[0009] The device is controlled to perform operations based on the target control parameters.
[0010] In some embodiments, determining the compensation parameters based on the control factor includes:
[0011] Obtain the correspondence between control factors and compensation parameters;
[0012] Match the control factors with the control factors in the correspondence;
[0013] When the control factor matches a control factor in a corresponding relationship, the compensation parameter of the control factor in the matched relationship is determined as the compensation parameter corresponding to the control factor.
[0014] In some embodiments, matching the control factor with the control factors in the correspondence includes:
[0015] Calculate the similarity between the control factor and the control factor in the corresponding relationship;
[0016] The control factor is matched with the control factor in the corresponding relationship based on the similarity. If the similarity is not less than the similarity threshold, the control factor is determined to be matched with the control factor in the corresponding relationship. If the similarity is less than the similarity threshold, the control factor is determined not to be matched with the control factor in the corresponding relationship.
[0017] In some embodiments, the control method further includes:
[0018] Obtain historical setting parameters and the external factors corresponding to the historical setting parameters;
[0019] Determine the fluctuations in historical settings caused by external factors;
[0020] The external factors and historical settings are set as control factors, and the fluctuations are set as compensation parameters, thus obtaining the correspondence between the control factors and the compensation parameters.
[0021] In some embodiments, the historical setting parameters include: historical setting temperature, and the external factors include ambient temperature.
[0022] In some embodiments, the method further includes:
[0023] In the absence of a matching control factor in the corresponding relationship, the device is controlled based on the control parameters of the control command.
[0024] In some embodiments, the step of compensating the control parameters of the control command based on the compensation parameters to obtain the target control parameters includes:
[0025] The control command is parsed to obtain the control parameters of the control command;
[0026] The control parameters are adjusted based on the compensation parameters to obtain the target control parameters.
[0027] This application provides an electronic device, including a memory and a processor. The memory stores a computer program, which, when executed by the processor, performs the control method described in any of the above-mentioned embodiments.
[0028] This application provides a computer-readable storage medium storing a computer program that can be executed by one or more processors and can be used to implement the control method described above.
[0029] This application provides a control method, control device, electronic device, and storage medium. By obtaining a control command from the device, determining a control factor based on the control command, determining a compensation parameter corresponding to the control factor based on the control factor, compensating the control parameters of the control command based on the compensation parameter to obtain a target control parameter, and controlling the device to execute based on the target control parameter, it is possible to reduce the computing power required to adjust the device control parameters and reduce equipment expenditure while ensuring that the device control is closer to the actual situation. Attached Figure Description
[0030] The present application will be described in more detail below based on embodiments and with reference to the accompanying drawings.
[0031] Figure 1 A schematic diagram illustrating the implementation flow of a control method provided in an embodiment of this application;
[0032] Figure 2 A schematic diagram illustrating the implementation flow of another control method provided in an embodiment of this application;
[0033] Figure 3 This is a schematic diagram of the composition of the control device provided in the embodiments of this application;
[0034] Figure 4 This is a schematic diagram of the composition structure of the electronic device provided in the embodiments of this application.
[0035] In the accompanying drawings, the same parts are represented by the same reference numerals, and the drawings are not drawn to scale. Detailed Implementation
[0036] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0037] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0038] If the application documents contain similar descriptions such as "first, second, third", the following explanation shall be added: In the following description, the terms "first, second, third" are used only to distinguish similar objects and do not represent a specific order of objects. It is understood that "first, second, third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0039] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0040] Based on the problems existing in related technologies, this application provides a control method. The subject executing the method can be an electronic device, which can be a mobile terminal, computer, smart home device, smart wearable device, or air conditioner. The electronic device can also be a controller of a mobile terminal, computer, smart home device, smart wearable device, or air conditioner.
[0041] The control method provided in this application can achieve its functions by having the processor of an electronic device call program code, wherein the program code can be stored in a computer storage medium.
[0042] This application provides a control method. Figure 1 This is a schematic diagram illustrating the implementation flow of a control method provided in an embodiment of this application, as shown below. Figure 1 As shown, the control method includes:
[0043] Step S101: If the control command of the device is obtained, the control factor is determined based on the control command.
[0044] In this embodiment, the control commands may include open commands, close commands, temperature commands, wind speed commands, and vent direction commands. Different control commands may be affected by external conditions in the same or different ways, including temperature and humidity. For example, the control parameters for open and close commands are generally unaffected by external conditions, while the control parameters for temperature, wind speed, and vent direction commands need to take into account the influence of external conditions.
[0045] In this embodiment, the control command can be a self-triggered command or a command sent by the user to the electronic device through other means to control the device to perform a specific action. Specifically, when the control command is a self-triggered command, the control command is issued and received by the device itself, thus confirming that the electronic device has received the control command. When the control command is a command sent by the user to the device through other means to control the device to perform a specific action, the control command can be obtained by the user issuing the control command to the device via a button on a remote control, thus confirming that the electronic device has received the control command. Alternatively, the control command can be obtained by the user operating the electronic device's app, pressing buttons on the electronic device, etc., thus confirming that the electronic device has received the control command.
[0046] In this embodiment, the electronic device can analyze control commands to obtain the corresponding control factors under those commands. As an example, a control factor is a factor in the control command that has a specific identifier or is related to the external environment, such as temperature, wind speed, or direction. Here, the specific identifier refers to a known compensation factor under the corresponding control command.
[0047] Step S102: Determine the compensation parameters based on the control factor.
[0048] In this embodiment, compensation parameters are determined based on control factors, where compensation parameters can be understood as compensation parameters corresponding to the control factors. For example, the control factor is the temperature in the external environment. Under this temperature condition, the control parameters under the control command will fluctuate, and this fluctuation forms the compensation parameter. The compensation parameter can also be understood as the difference between the actual output parameter and the control parameter under the control command, and this difference can also correspond to the aforementioned fluctuation. In this embodiment, the compensation parameter can be any natural number, such as negative, 0, or positive. When the compensation parameter is negative, it indicates that there is fluctuation between the actual output parameter and the control parameter, and the actual output parameter is less than the control parameter. In this case, negative compensation is needed to ensure the closeness of the electronic device's control to the actual situation. When the compensation parameter is 0, it indicates that there is no fluctuation between the actual output parameter and the control parameter, or the fluctuation is negligible (i.e., the actual parameter and the control parameter are substantially the same). In this case, no compensation is needed for the control parameter. When the compensation parameter is positive, it indicates that there is fluctuation between the actual output parameter and the control parameter, and the actual output parameter is greater than the control parameter. In this case, positive compensation is needed to ensure the closeness / matching degree of the electronic device's control to the actual situation.
[0049] In the embodiments of this application, the electronic device can acquire one control command or multiple control commands. When there is only one control command, it may be affected by one control factor. In this case, the compensation parameter determined based on the control factor is the compensation parameter for the control parameter under that control command. The control command may also be affected by multiple control factors. In this case, multiple compensation parameters can be determined based on the multiple control factors, and these compensation parameters can be superimposed to obtain the compensation parameter for the control parameter under that control command. When there are multiple control commands, similar to the control command with multiple control factors described above, the compensation parameter for the control parameter under the corresponding control command can also be obtained by superposition.
[0050] Step S103: Compensate the control parameters of the control command based on the compensation parameters to obtain the target control parameters.
[0051] In this embodiment, the control parameters of the electronic device's control commands are compensated based on compensation parameters. The compensated control parameters then become the target control parameters, making the electronic device's control closer to the actual situation and reducing control errors. For example, the electronic device is an air conditioner. During use, depending on different needs, the user can click a button to set the air conditioner's temperature. At this time, the electronic device receives the air conditioner's control command, which has corresponding control parameters. These control parameters will fluctuate under the influence of room temperature, causing the actual air conditioner's behavior to deviate from the set parameters. This fluctuation serves as a compensation parameter. During the control process, this compensation parameter is used in the execution of subsequent air conditioner control commands, thereby ensuring that the electronic device's control is closer to the actual situation and guaranteeing control accuracy.
[0052] In this embodiment of the application, the control parameters are the state parameters that each component in the device needs to achieve. Based on a series of state parameters, the device is made to reach a certain working state.
[0053] Step S104: Control the device to execute based on the target control parameters.
[0054] In this embodiment, after substituting the compensation parameters, the control command is executed on the device according to the target control parameters. In this way, the computing power required to adjust the device control parameters can be reduced and the device expenditure can be reduced while ensuring that the control of the device is closer to the actual situation.
[0055] The control method provided in this application involves obtaining control commands from a device, determining control factors based on the control commands, determining compensation parameters based on the control factors, compensating the control parameters of the control commands based on the compensation parameters to obtain target control parameters, and controlling the device to execute based on the target control parameters. This method can reduce the computing power required to adjust the control parameters of electronic devices, reduce equipment expenditures, and optimize the parameter model of device control, making the device control parameters more consistent with the actual situation and ensuring control accuracy.
[0056] In step S104, determining the compensation parameters corresponding to the control factors based on the control factors can be achieved through at least the following steps:
[0057] Step S1041: Obtain the correspondence between the control factor and the compensation parameter.
[0058] In this embodiment, the control factor and the compensation parameter have a corresponding relationship. This correspondence can be obtained through empirical values. For example, during design, relevant information (e.g., the correspondence between the control factor and the compensation parameter) can be input through an input device. The electronic device stores the correspondence between the control factor and the compensation parameter, thereby enabling the electronic device to obtain the correspondence between the control factor and the compensation parameter. It should be noted that this correspondence can be pre-stored in the electronic device, or it can be input in real time, for example, manually during control. This application does not impose many limitations on this. As an example, the input device can include a keyboard, mouse, voice input device, etc. It should be noted that the method of obtaining the correspondence between the control factor and the compensation parameter is not limited to this. Other examples will be described in detail in the following embodiments.
[0059] Step S1042: Match the control factors with the control factors in the corresponding relationships.
[0060] In the embodiments of this application, there is a one-to-one correspondence between different control factors and compensation parameters in the correspondence relationship. For example, when the control factor is temperature, there is a corresponding first compensation parameter; when the control factor is wind speed, there is a corresponding second compensation parameter. The first and second compensation parameters can be the same or different. These compensation parameters can be specifically set based on equipment, model, external conditions, etc., and this application does not impose many restrictions on this. This ensures that the control factor determined by the control command can be matched in the above correspondence relationship, thereby determining the compensation parameter for that control factor. The control factors under different control commands may be the same, thus enabling unified management of differences arising under different environments (i.e., different operating modes), thereby reducing the computing power required to adjust the control parameters of electronic devices and reducing equipment expenditure.
[0061] Step S1043: When a control factor matches a control factor in a corresponding relation, the compensation parameter of the control factor in the matched relation is determined as the compensation parameter corresponding to the control factor.
[0062] In this embodiment, when a control factor matches a control factor in a corresponding relationship, it indicates that the control factor and the control factor in the corresponding relationship have a high degree of similarity. The compensation parameter of the control factor in the matched corresponding relationship is determined as the compensation parameter corresponding to the control factor determined under the control command. The control parameters of the control command are adjusted using this compensation parameter, which can reduce the computing power required to adjust the control parameters of the device and reduce equipment expenditure while ensuring that the control of the device is closer to the actual situation.
[0063] In some embodiments, in step S1042, matching the control factors with the control factors in the corresponding relationship can be achieved through at least the following steps:
[0064] Step S10421: Calculate the similarity between the control factor and the control factor in the corresponding relationship.
[0065] In this embodiment, a similarity calculation can be performed on the control factor determined by the control command and the control factor in the corresponding relationship to determine the relationship between the control factor and the control factor in the corresponding relationship. If the similarity is high, it is considered that the control factor and the control factor in the corresponding relationship have a matching relationship. If the similarity is low, it is considered that the control factor and the control factor in the corresponding relationship do not have a matching relationship. If there is no matching relationship in the corresponding relationship, matching can continue to ensure the accuracy of the matching. Alternatively, it can be considered that the control factor does not have a corresponding compensation parameter in the corresponding relationship, which can be understood to a certain extent as the control factor not needing compensation. In this case, the electronic device can also execute the control parameters under the control command. Thus, the control method does not affect the normal execution of the control command of the electronic device without the influence of the control factor.
[0066] Step S10422: Match the control factor with the control factor in the corresponding relationship based on similarity. If the similarity is not less than the similarity threshold, it is determined that the control factor is matched with the control factor in the corresponding relationship. If the similarity is less than the similarity threshold, it is determined that the control factor is not matched with the control factor in the corresponding relationship.
[0067] In this embodiment, a similarity threshold is set to determine the matching status between the control factor determined by the control instruction and the control factor in the corresponding relationship, thus ensuring the accuracy of the matching. For example, the similarity threshold can be 85%. If the similarity is not less than 85%, the control factor is determined to match the control factor in the corresponding relationship; if the similarity is less than 85%, the control factor is determined not to match the control factor in the corresponding relationship.
[0068] If a control factor initially fails to find a corresponding control factor in the relation, a second matching attempt can be performed. Additionally, an upper limit can be set for the number of matching attempts. If a match is not found by reaching the upper limit, the control factor is considered to lack a corresponding compensation parameter in the relation, and therefore, compensation is not required. In practical applications, the closeness between the control parameter and the actual output parameter under these conditions can be monitored. If the closeness is not less than a threshold, the control parameter is determined to be uncompensated; if the closeness is less than the threshold, compensation is required. The difference between the control parameter and the actual output parameter is then tested and stored as historical data in the electronic device for future use. Through continuous optimization, the control of the electronic device can be made to better match the actual situation in various scenarios. If a match is successful before reaching the upper limit, the compensation parameter corresponding to the successfully matched control factor is used as the compensation parameter for that control factor.
[0069] In some embodiments, the control method further includes:
[0070] Step S105: If no control factor is matched in the corresponding relationship, the device is controlled based on the control parameters of the control command.
[0071] In this embodiment of the application, if no control factor is matched in the corresponding relationship, the electronic device can send a control command to the device, thereby causing the device to execute the control command.
[0072] According to this application, electronic devices can uniformly manage differences arising from different environments (i.e., different operating modes). Specifically, the control factors are the same under different control commands. Thus, it is possible to uniformly manage differences arising from different environments (i.e., different operating modes), thereby eliminating the need for dynamic adjustment of control parameter changes in each control command, reducing the computational power required for dynamic adjustments. Furthermore, by determining the corresponding compensation parameters based on the control factors under the control commands, adjustments can be made at the parameter level for different environments. This provides greater flexibility compared to the overall execution of control commands, resulting in a more accurate representation of the actual control command settings and enhancing the user experience.
[0073] In some embodiments, the correspondence between the control factor and the compensation parameter can be obtained through empirical values. In other embodiments, step S1041, obtaining the correspondence between the control factor and the compensation parameter, can also be achieved through the following steps:
[0074] Step S10411: Obtain historical setting parameters and external factors corresponding to the historical setting parameters.
[0075] In this embodiment, the historical setting parameters may include historical usage data saved by the user during previous use of the air conditioner. For example, the historical setting parameters may include historical set temperature parameters, historical set fan speed parameters, and historical set rotation parameters.
[0076] In this embodiment of the application, external factors may include environmental factors related to the location of the device. For example, environmental factors may include ambient temperature, ambient wind speed, etc.
[0077] In this embodiment, the electronic device stores historical setting parameters and corresponding external factors. During control, the electronic device can acquire these historical setting parameters and corresponding external factors. In some embodiments, the external factors can be acquired by a data acquisition device. For example, the data acquisition device can be a sensor. In use, the user can set control commands, the electronic device receives the control commands, and can analyze and obtain the control parameters under the control commands. The sensor can acquire the external factors (i.e., actual operating parameters) of the electronic device under the control parameters of the control commands and store them in the electronic device, enabling the electronic device to acquire historical setting parameters and corresponding external factors.
[0078] Step S10412: Determine the fluctuations in historical setting parameters caused by external factors.
[0079] In this embodiment of the application, historical setting parameters can be compared with external factors to determine the fluctuations caused by external factors to historical setting parameters.
[0080] Step S10413: Set the external factors and historical setting parameters as control factors in the corresponding relationship, and set the fluctuations as compensation parameters in the corresponding relationship to obtain the correspondence between control factors and compensation parameters.
[0081] In this embodiment, external factors and historical setting parameters are set as control factors in the corresponding relationship, and fluctuations are set as compensation parameters in the corresponding relationship. A correspondence between control factors and compensation parameters is established, thereby obtaining the correspondence between control factors and compensation parameters.
[0082] In some embodiments, the method of obtaining the correspondence between control factors and compensation parameters further includes step S10414, which involves storing the correspondence between control factors and compensation parameters.
[0083] In this embodiment of the application, the correspondence between the control factor and the compensation parameter can be stored in the repository of the electronic device, so that the electronic device can obtain the correspondence between the control factor and the compensation parameter and compare it with the control factor under the current control command, thereby facilitating the determination of the compensation parameter of the control parameter under the current control command.
[0084] In some embodiments, step S103, compensating the control parameters of the control command based on the compensation parameters to obtain the target control parameters, can be achieved through the following steps:
[0085] Step S1031: Parse the control command to obtain the control parameters of the control command.
[0086] In this embodiment of the application, during use, the user issues a control command, the device receives the control command, and is able to parse the control command to obtain the control parameters under the control command.
[0087] Step S1032: Adjust the control parameters based on the compensation parameters to obtain the target control parameters.
[0088] In this embodiment, compensation parameters are determined based on control factors determined by control commands. By combining the compensation parameters with the aforementioned control parameters, target control parameters are obtained, making the control of the electronic device closer to the actual situation, reducing control errors, and improving user experience.
[0089] Based on the foregoing embodiments, this application provides another control method, which triggers the conditions of the control factor in equipment control, determines the compensation parameter corresponding to the control factor, and performs control based on adding the compensation parameter to the control parameter of the control command. The control factor may be the same in different control processes, so the differences generated in different environments can be managed uniformly. Therefore, it is not necessary to generate different compensation parameters each time, reducing the amount of calculation required to adjust the equipment control.
[0090] According to the control method of this application embodiment, a correspondence between control factors and compensation parameters is generated. In the equipment control, the conditions for triggering the control factor are met, and the compensation parameters are added for control. Since the control factor is the same in different control processes, it is not necessary to generate different compensation parameters each time, which reduces the amount of calculation required for adjustment in equipment control.
[0091] Figure 2 A schematic diagram illustrating the implementation flow of another control method provided in this application embodiment is shown below. Figure 2As shown, the control method includes:
[0092] This implementation method includes a compensatory control method, which can be achieved through the following steps:
[0093] S100. The device analyzes control commands and obtains control factors. Specifically, control commands can be self-triggered commands or commands sent by the user to the device through other means to control the device to perform specific actions. Control factors are parameters in the control commands that have specific identifiers and are related to the external environment, such as temperature, wind speed, and direction.
[0094] S200: The equipment queries the matching compensation parameters based on the control factor. Specifically, the equipment queries the compensation parameters corresponding to the control factor through a preset control factor-compensation parameter correspondence.
[0095] The correspondence between control factors and compensation parameters can be a pre-entered correspondence or a set based on historical parameters and fluctuations caused by their relationship with external factors. External factors and historical parameters (equivalent to the historical setting parameters in the aforementioned embodiment) are used as control factors, and fluctuations are used as compensation parameters to form the correspondence between control factors and compensation parameters. For example, in the air conditioning temperature setting, different temperatures are set for different room temperatures. The compensation parameters are formed based on the fluctuations caused by the room temperature. These compensation parameters are fed back to the parameters executed by the air conditioning in subsequent air conditioning control commands.
[0096] S300: The device inputs the compensation parameters to obtain the control parameters of the control command. Specifically, the device parses the control command to obtain the parameters to be executed, and adds adjustments to the compensation parameters to form the actual control parameters to be executed (equivalent to the target control parameters mentioned in the above embodiments).
[0097] S400, Equipment execution control parameters. Specifically, control parameters are the state parameters that each component in the equipment needs to achieve. Based on a series of state parameters, the equipment is made to reach a certain working state.
[0098] According to the control method of this application embodiment, before executing the control command, the device checks whether there are compensation parameters for each state parameter in the control parameters. After substituting the compensation parameters, the control command is executed according to the new control parameters (equivalent to the target control parameters mentioned in the above embodiments). This method can uniformly manage the differences generated under different environments, without needing to dynamically adjust the changes in control parameters in each control command, thus reducing the computing power required for dynamic adjustments. At the same time, by finding the corresponding compensation parameters according to the parameters in the control command, adjustments can be made at the parameter level for different environments. Compared with the execution of the entire control command, this method has higher flexibility, making the control of the electronic device closer to the actual situation.
[0099] Based on the foregoing embodiments, this application further provides a control device comprising multiple modules. The interconnection between these modules can be achieved through a processor in a computer device; alternatively, it can be achieved through specific logic circuits. In implementation, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field-programmable gate array (FPGA), etc.
[0100] This application provides a control device, which includes a first determining module, a second determining module, an adjustment module, and a control module. The first determining module determines a control factor based on a control command received from the device. The second determining module determines a compensation parameter corresponding to the control factor. The adjustment module adjusts the control parameters of the control command based on the compensation parameter to obtain target control parameters. The control module controls the device to execute based on the target control parameters.
[0101] In some embodiments, determining compensation parameters based on the control factor includes:
[0102] Obtain the correspondence between control factors and compensation parameters;
[0103] Match the control factors with the control factors in the correspondence;
[0104] When the control factor is matched with a corresponding control factor in the relationship, the compensation parameter of the matched control factor is determined as the compensation parameter corresponding to the control factor.
[0105] In some embodiments, matching the control factor with the control factors in the correspondence includes:
[0106] Calculate the similarity between the control factor and the control factor in the corresponding relationship;
[0107] The control factor is matched with the control factor in the corresponding relationship based on the similarity. If the similarity is not less than the similarity threshold, the control factor is determined to be matched with the control factor in the corresponding relationship. If the similarity is less than the similarity threshold, the control factor is determined not to be matched with the control factor in the corresponding relationship.
[0108] In some embodiments, the control device is further configured to:
[0109] Obtain historical setting parameters and the external factors corresponding to the historical setting parameters;
[0110] Determine the fluctuations in historical settings caused by external factors;
[0111] The external factors and historical settings are set as control factors, and the fluctuations are set as compensation parameters, thus obtaining the correspondence between the control factors and the compensation parameters.
[0112] In some embodiments, in addition to the first determining module, the second determining module, the adjustment module, and the control module in the above embodiments, the control device further includes a storage module for storing the correspondence between control factors and compensation parameters.
[0113] Figure 3 This is a schematic diagram of the composition of the control device provided in the embodiments of this application, such as... Figure 3 As shown, this embodiment also provides a compensating control device, which includes a compensation module, an analysis module, and a storage module. The compensation module is responsible for generating compensation parameters for control factor matching; the analysis module is responsible for analyzing and processing control commands; and the storage module is responsible for storing the compensation parameters and the control parameters corresponding to the control commands. It should be noted that the compensation module is equivalent to the first determining module and the second determining module mentioned in the above embodiments, the analysis module is equivalent to the adjustment module mentioned in the above embodiments, and the storage module is equivalent to the storage module mentioned in the above embodiments.
[0114] In some embodiments, the historical setting parameters include: historical setting temperature, and the external factors include ambient temperature.
[0115] In some embodiments, the control device is further configured to:
[0116] In the absence of a matching control factor in the corresponding relationship, the device is controlled based on the control parameters of the control command.
[0117] In some embodiments, the step of compensating the control parameters of the control command based on the compensation parameters to obtain the target control parameters includes:
[0118] The control command is parsed to obtain the control parameters of the control command;
[0119] The control parameters are adjusted based on the compensation parameters to obtain the target control parameters.
[0120] It should be noted that, in the embodiments of this application, if the above-described control method is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware and software combination.
[0121] Accordingly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the control method provided in the above embodiments.
[0122] This application provides an electronic device. Figure 4 This is a schematic diagram of the composition structure of the electronic device provided in the embodiments of this application, such as... Figure 4 As shown, the electronic device 500 includes: a processor 501, at least one communication bus 502, a user interface 503, at least one external communication interface 504, and a memory 505. The communication bus 502 is configured to enable communication between these components. The user interface 503 may include a display screen, and the external communication interface 504 may include standard wired and wireless interfaces. The processor 501 is configured to execute a program of a control method stored in the memory to implement the steps of the control method provided in the above embodiment.
[0123] It should be noted that the descriptions of the storage medium and device embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0124] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0125] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0126] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the controlled or discussed components can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical, or other forms.
[0127] The units described above as separate components may or may not be physically separate. The components controlled by the units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0128] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0129] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.
[0130] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a controller to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0131] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A control method, characterized in that, include: Upon receiving control commands from the device, a control factor is determined based on those commands. The compensation parameters are determined based on the control factors; The control parameters of the control command are adjusted based on the compensation parameters to obtain the target control parameters; The device is controlled to perform operations based on the target control parameters; The determination of compensation parameters based on the control factor includes: Obtain the correspondence between control factors and compensation parameters; Match the control factors with the control factors in the correspondence; When the control factor matches a control factor in the corresponding relationship, the compensation parameter of the control factor in the matched relationship is determined as the compensation parameter corresponding to the control factor. The step of matching the control factor with the control factors in the correspondence includes: Calculate the similarity between the control factor and the control factor in the corresponding relationship; The control factor is matched with the control factor in the corresponding relationship based on the similarity. If the similarity is not less than the similarity threshold, the control factor is determined to be matched with the control factor in the corresponding relationship. If the similarity is less than the similarity threshold, the control factor is determined not to be matched with the control factor in the corresponding relationship.
2. The method according to claim 1, characterized in that, The method further includes: Obtain historical setting parameters and the external factors corresponding to the historical setting parameters; Determine the fluctuations in historical settings caused by external factors; The external factors and historical settings are set as control factors, and the fluctuations are set as compensation parameters, thus obtaining the correspondence between the control factors and the compensation parameters.
3. The method according to claim 2, characterized in that, The historical setting parameters include: historical setting temperature, and the external factors include ambient temperature.
4. The method according to claim 1, characterized in that, The method further includes: In the absence of a matching control factor in the corresponding relationship, the device is controlled based on the control parameters of the control command.
5. The method according to claim 1, characterized in that, The step of adjusting the control parameters of the control command based on the compensation parameters to obtain the target control parameters includes: The control command is parsed to obtain the control parameters of the control command; The control parameters are adjusted based on the compensation parameters to obtain the target control parameters.
6. A control device, characterized in that, include: The first determining module is used to determine a control factor based on the control command when the control command of the device is obtained; The second determining module is used to determine compensation parameters based on the control factor; An adjustment module is used to adjust the control parameters of the control command based on the compensation parameters to obtain the target control parameters; The control module is used to control the device to perform actions based on the target control parameters; The determination of compensation parameters based on the control factor includes: Obtain the correspondence between control factors and compensation parameters; Match the control factors with the control factors in the correspondence; When the control factor matches a control factor in the corresponding relationship, the compensation parameter of the control factor in the matched relationship is determined as the compensation parameter corresponding to the control factor. The step of matching the control factor with the control factors in the correspondence includes: Calculate the similarity between the control factor and the control factor in the corresponding relationship; The control factor is matched with the control factor in the corresponding relationship based on the similarity. If the similarity is not less than the similarity threshold, the control factor is determined to be matched with the control factor in the corresponding relationship. If the similarity is less than the similarity threshold, the control factor is determined not to be matched with the control factor in the corresponding relationship.
7. An electronic device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program that, when executed by the processor, performs the control method as described in any one of claims 1 to 5.
8. A storage medium, characterized in that, The computer program stored in the storage medium can be executed by one or more processors and can be used to implement the control method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Air conditioner, control method thereof, and computer readable storage medium
CN110285542A