Air conditioner, control method and device thereof and storage medium
By acquiring and localizing the control parameters of the second device of the air conditioner, the problem of inefficient adaptation in the prior art is solved, and an adaptive adaptation method is realized, and the adaptation efficiency is improved.
Patent Information
- Application Number
- CN202311426534.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-30
- Publication Date
- 2025-05-02
AI Technical Summary
When existing air conditioners are matched with newly developed internal and external models, they need to update the stored parameters, and this process requires the intervention of users or professionals, resulting in inefficient adaptation.
By obtaining the model code of the second device, the corresponding control parameters are found in the local parameter library. If it does not exist, the parameter acquisition instructions are sent to the second device, and the control parameters are received and localized to realize an adaptive adaptation method.
Without the operational intervention of users or professionals, the efficiency of air conditioner parameter adaptation is improved and the rapid adaptation of new models of equipment is achieved.
Smart Images

Figure CN119914979A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of air conditioners, and in particular to an air conditioner and a control method, device and storage medium thereof. Background Art
[0002] In the field of air conditioners, the combination of indoor and outdoor units is generally achieved through preset parameters. Taking the combination of outdoor units with indoor units as an example, before leaving the factory, experience and experiments are used to determine what parameters are required when the outdoor unit is matched with the indoor unit, and the parameters are written into the storage chips of the outdoor unit and the indoor unit respectively. These parameters are only valid for specific indoor and outdoor unit models, so when a specific model of outdoor unit needs to be matched with multiple models of indoor units, it is usually necessary to store multiple sets of parameters. The same applies to the combination of indoor units with outdoor units, so I will not go into details.
[0003] In the related technology, only known internal or external parameters can be preset. When matching with newly developed products, the stored parameters of the old products need to be updated to adapt to the new products. Updating the parameters requires disassembling the machine and rewriting the storage chip with a burner, or upgrading through remote control, wired control, OTA, etc.
[0004] However, any of the above methods requires the intervention of users or even professionals, so the adaptation efficiency is low. Summary of the invention
[0005] In view of this, the embodiments of the present application provide an air conditioner and a control method, device and storage medium thereof, aiming to solve the technical problem of low adaptation efficiency in the related art.
[0006] In a first aspect, an embodiment of the present application provides a method for controlling an air conditioner, which is applied to a first device, and the method includes:
[0007] Obtain the model code of the second device;
[0008] Searching for the model code in a local parameter library, and if it is determined that there is no control parameter corresponding to the model code, sending a first parameter acquisition instruction to the second device;
[0009] receiving a first control parameter sent by the second device;
[0010] The first control parameter is a parameter used by the first device to control the operation of the second device; the first device is an indoor unit and the second device is an outdoor unit, or the first device is an outdoor unit and the second device is an indoor unit.
[0011] In the above solution, after receiving the first control parameter sent by the second device, the method further includes:
[0012] The first control parameter is localized to obtain a localized first control parameter; wherein the format of the localized first control parameter can be recognized and read by the first device.
[0013] In the above solution, after localizing the first control parameter to obtain the localized first control parameter, the method further includes:
[0014] Obtaining a first operation instruction;
[0015] In response to the first operation instruction, the second device is controlled to operate according to the localized first control parameter, so that the second device exchanges heat with an outdoor or indoor space through a refrigerant.
[0016] In the above solution, if it is determined that there is a control parameter corresponding to the model code, the method further includes:
[0017] Sending a second parameter acquisition instruction to the second device;
[0018] Receive a second control parameter sent by the second device; wherein the second control parameter is the latest control parameter after the second device is updated.
[0019] In the above solution, before sending the second parameter acquisition instruction to the second device, the method further includes:
[0020] Sending an information acquisition instruction to the second device;
[0021] Receive a first file verification code sent by the second device; wherein the first file verification code is a file verification code of the latest control parameter of the second device;
[0022] If it is determined that the first file verification code and the second file verification code are different, it is determined that the second device has been updated, and the step of sending a second parameter acquisition instruction to the second device is executed; wherein the second file verification code is the file verification code of the control parameters of the second device stored in the local parameter library.
[0023] In the above solution, after receiving the second control parameter sent by the second device, the method further includes:
[0024] Obtain a second operation instruction;
[0025] In response to the second operation instruction, the second device is controlled to operate according to the second control parameter, so that the second device exchanges heat with an outdoor or indoor space through a refrigerant.
[0026] In the above scheme, the method further comprises:
[0027] Based on the second control parameter, the control parameter of the second device and the second file verification code in the local parameter library are updated.
[0028] In a second aspect, an embodiment of the present application further provides a control device for an air conditioner, which is applied to a first device, and the device includes:
[0029] A code acquisition module, used to acquire a model code of a second device;
[0030] an instruction sending module, configured to search for the model code in a local parameter library, and if it is determined that no control parameter corresponding to the model code exists, send a parameter acquisition instruction to the second device;
[0031] A parameter acquisition module, configured to receive a first control parameter sent by the second device;
[0032] The first control parameter is a parameter used by the first device to control the operation of the second device; the first device is an indoor unit and the second device is an outdoor unit, or the first device is an outdoor unit and the second device is an indoor unit.
[0033] In a third aspect, an embodiment of the present application further provides an air conditioner, comprising a first device and a second device; the first device comprises: a processor and a memory for storing a computer program that can be run on the processor, wherein the processor, when running the computer program, executes the steps of the method described in the first aspect.
[0034] In a fourth aspect, an embodiment of the present application further provides a computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.
[0035] The present application provides an air conditioner and its control method, device and storage medium, which obtain the model code of the second device; search the model code in the local parameter library, and if it is determined that there is no control parameter corresponding to the model code, send a first parameter acquisition instruction to the second device; receive the first control parameter sent by the second device; wherein the first control parameter is the parameter for the first device to control the operation of the second device; the first device is an indoor unit, the second device is an outdoor unit, or the first device is an outdoor unit, and the second device is an indoor unit. When the first device updates the control parameters of the second device, it can actively communicate to obtain them from the other party if they are not stored in the local parameter library. This is an adaptive adaptation method that does not require the intervention of users or even professionals in related technologies, so the adaptation efficiency is relatively high. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1A schematic diagram of a flow chart of a method for controlling an air conditioner in an embodiment of the present application;
[0037] Figure 2 A schematic diagram of a flow chart of a method for controlling an air conditioner in another embodiment of the present application;
[0038] Figure 3 A schematic diagram of a flow chart of a method for controlling an air conditioner in another embodiment of the present application;
[0039] Figure 4 This is a schematic diagram of the storage structure of the first device in an embodiment of the present application;
[0040] Figure 5 A schematic diagram of a flow chart of a method for controlling an air conditioner in a specific embodiment of the present application;
[0041] Figure 6 This is a schematic diagram of the structure of a control device for an air conditioner in one embodiment of the present application;
[0042] Figure 7 Schematic diagram of the structure of the first device in one embodiment of the present application. DETAILED DESCRIPTION
[0043] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0044] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0045] In order to clearly understand the technical solution of the present application, the solution of the related technology is first introduced in detail.
[0046] In the related art, the external unit can only preset the control parameters of the known internal unit, and the internal unit can only preset the control parameters of the known external unit. Taking the external unit as an example, when matching with a newly developed internal unit product, it is usually necessary to update the control parameters of the internal unit stored in the external unit to adapt to the new internal unit product. When updating the control parameters of the internal unit stored in the external unit, it is usually necessary to disassemble the machine and then rewrite the storage chip with a burner, or upgrade it through remote control, wire control, OTA, etc. The same is true for the internal unit when updating the stored control parameters of the external unit, so it will not be elaborated. However, any of the above methods requires the intervention of users or even professionals, so the adaptation efficiency is low.
[0047] When faced with technical problems of related technologies, the inventor discovered through creative research that the indoor unit or the outdoor unit can be set as the first device, and for any second device currently communicating with the first device, if the control parameters of the second device are not found in the local parameter library of the first device, a first parameter acquisition instruction is sent to the second device to obtain the first control parameter sent by the second device. The first control parameter is a parameter that the first device can use to control the operation of the second device. It can be seen that when the first device updates the control parameters of the second device, it can actively communicate to obtain them from the other party if the local parameter library does not store them. This is an adaptive adaptation method that does not require the intervention of users or even professionals in related technologies, so the adaptation efficiency is relatively high.
[0048] Figure 1 A control method for an air conditioner provided in an embodiment of the present application is provided. The execution subject of the control method for an air conditioner provided in this embodiment may be a first device of the air conditioner. The control method for an air conditioner provided in this embodiment includes the following steps:
[0049] Step 101, obtaining the model code of the second device.
[0050] The model code is the model code of the second device and is unique. Each second device has a unique corresponding model code.
[0051] A mapping relationship is pre-stored in the local parameter library of the first device, and the mapping relationship stores the correspondence between the model code and the control parameter of the old second device. Here, the old second device can be understood as a second device that has been parameter-adapted with the first device. The second device in step 101 is the second device that is currently communicating with the first device.
[0052] The triggering timing for the step of obtaining the model code of the second device may be any time point after starting the air conditioner and before the first device controls the operation of the second device. The first device actively obtains the model code of the second device, or the second device actively sends its own model code to the first device after power-on. The embodiments of the present application do not limit this.
[0053] Step 102: Search the local parameter library for the model code. If it is determined that there is no control parameter corresponding to the model code, send a first parameter acquisition instruction to the second device.
[0054] The control parameter is a parameter used by the first device to control the operation of the second device.
[0055] Specifically, after the model code of the second device is currently obtained, it can be searched in the local parameter library according to the model code of the second device and the aforementioned mapping relationship. If it is determined that the model code of the second device can be found in the local parameter library, it is determined that there are control parameters corresponding to the model code; if it is determined that the model code of the second device cannot be found in the local parameter library, it is determined that there are no control parameters corresponding to the model code.
[0056] When it is determined that there are control parameters corresponding to the model code of the second device, the control parameters can be used directly for subsequent device control operations, or the availability of the control parameters can be judged again. If it is determined that the control parameters are unavailable, the latest control parameters can be obtained from the second device.
[0057] When it is determined that there is no control parameter corresponding to the model code of the second device, a first parameter acquisition instruction may be sent to the second device, and the second device may send a first control parameter to the first device in response to the first parameter acquisition instruction.
[0058] Step 103: Receive a first control parameter sent by the second device.
[0059] The first control parameter is a parameter used by the first device to control the operation of the second device.
[0060] Exemplarily, the first device is an indoor unit, and the first control parameter may be a frequency range of a compressor in an outdoor unit. Only after the indoor unit knows the frequency range of the compressor in the outdoor unit, can the compressor of the outdoor unit operate within the above frequency range to ensure the normal operation of the compressor in the outdoor unit.
[0061] After receiving the first control parameter sent by the second device, the model code of the current second device and the first control parameter are stored in a mapping relationship in a local parameter library.
[0062] In the present application, the model code of the second device is obtained; the model code is searched in the local parameter library, and if it is determined that there is no control parameter corresponding to the model code, a first parameter acquisition instruction is sent to the second device; the first control parameter sent by the second device is received; wherein the first control parameter is a parameter for the first device to control the operation of the second device; the first device is an indoor unit, and the second device is an outdoor unit, or the first device is an outdoor unit, and the second device is an indoor unit. It can be seen that when the first device updates the control parameters of the second device, it can actively communicate to obtain from the other party when there is no local storage. This is an adaptive adaptation method that does not require the intervention of users or even professionals in related technologies, so the adaptation efficiency is relatively high.
[0063] Taking the first device as the indoor unit and the second device as the outdoor unit as an example, the process of the indoor unit obtaining the control parameters of the outdoor unit is: the indoor unit obtains the model code of the outdoor unit; searches for the model code of the outdoor unit in the local parameter library of the indoor unit, and if it is determined that there is no control parameter corresponding to the model code, sends a first parameter acquisition instruction to the outdoor unit; and receives the first control parameter sent by the outdoor unit.
[0064] When the first device is an outdoor unit, the second device is an indoor unit. When the outdoor unit is used as the execution subject, the method flow for obtaining the first control parameter is the same as that when the indoor unit is used as the execution subject, specifically: obtaining the model code of the first device; searching the model code in the local parameter library, and if it is determined that there is no control parameter corresponding to the model code, sending a third parameter acquisition instruction to the first device; receiving the third control parameter sent by the first device; wherein the third control parameter is the parameter used by the second device to control the operation of the first device. Here, the local parameter library refers to the parameter library of the second device.
[0065] In one embodiment, if Figure 2 As shown, the control method of the air conditioner provided in this embodiment includes the following steps:
[0066] Step 101, obtaining the model code of the second device.
[0067] Step 102: Search the local parameter library for the model code. If it is determined that there is no control parameter corresponding to the model code, send a first parameter acquisition instruction to the second device.
[0068] Step 103: Receive a first control parameter sent by the second device.
[0069] Step 104: localize the first control parameter to obtain a localized first control parameter.
[0070] Among them, the purpose of parameter localization is to enable the first device to recognize and utilize the first control parameter after receiving it. Therefore, after the first control parameter is localized, the format of the localized first control parameter can be recognized and read by the first device. The process of parameter localization depends on the storage format of the first control parameter. For example, for parameters that are directly arranged by address in binary format, they can be directly stored in the local adaptive parameter area after acquisition. This method has a fast access speed. For the first control parameter stored in the form of key-value pairs, the first device updates the first control parameters in the form of each key-value pair to the local parameter library one by one. The present invention does not limit the storage method of the first control parameter. Some possible methods are listed here for the convenience of explanation.
[0071] In this embodiment, after receiving the first control parameter sent by the second device, the first control parameter is further localized to obtain a localized first control parameter; wherein the format of the localized first control parameter can be recognized and read by the first device. Since the first device performs parameter localization processing on the received first control parameter, the localized first control parameter obtained after the processing can be recognized and read by the first device, so that the first device can control it accordingly according to the localized first control parameter.
[0072] In one embodiment, if Figure 3 As shown, the control method of the air conditioner provided in this embodiment includes the following steps:
[0073] Step 101, obtaining the model code of the second device.
[0074] Step 102: Search the local parameter library for the model code. If it is determined that there is no control parameter corresponding to the model code, send a first parameter acquisition instruction to the second device.
[0075] Step 103: Receive a first control parameter sent by the second device.
[0076] Step 104: localize the first control parameter to obtain a localized first control parameter.
[0077] Step 105: Obtain a first operation instruction.
[0078] The purpose of the first device actively communicating to obtain the first control parameter is to subsequently control the operation of the second device accordingly according to the first control parameter. The starting point of the control operation is that the first device receives the first operation instruction, which can be generated by the user's remote control button operation, and the user terminal sends it to the air conditioner through Bluetooth, near field communication, etc., which is not specifically limited in the embodiments of the present application.
[0079] The first operation instruction is generated after the air conditioner is started, which is the triggering time point for the first device to control the operation of the second device.
[0080] Step 106: In response to the first operation instruction, control the operation of the second device according to the localized first control parameter, so that the second device exchanges heat with an outdoor or indoor space through a refrigerant.
[0081] Specifically, the first device controls the operation of the second device according to the localized first control parameter in response to the first operation instruction. The operation of the second device means that the second device exchanges heat with the indoor or outdoor space through the refrigerant. As mentioned above, if the first device is an outdoor unit, the operation of the second device means that the second device exchanges heat with the indoor space through the refrigerant. If the first device is an indoor unit, the operation of the second device means that the second device exchanges heat with the outdoor space through the refrigerant. Heat exchange refers to the transfer of heat from one object to another. Exemplarily, if the second device exchanges heat with the outdoor space through the refrigerant, it means that the second device transfers the heat of the outdoor space to the indoor space through the refrigerant.
[0082] Taking the operating frequency of the compressor of the indoor unit controlling the outdoor unit as an example, the first device is the indoor unit, the second device is the outdoor unit, the localized first control parameter is 1~70Hz, and the first device responds to the first operating instruction to control the compressor of the second device to operate in the frequency range of 1~70Hz.
[0083] In this embodiment, a first operation instruction is obtained; in response to the first operation instruction, the second device is controlled to operate according to the localized first control parameter, so that the second device performs heat exchange with the outdoor or indoor space through the refrigerant. In the application process, after receiving the first operation instruction, the first device controls the second device to operate according to the localized first control parameter, so that the second device can be normally controlled to perform heat exchange.
[0084] In one embodiment, if Figure 3 As shown, the control method of the air conditioner provided in this embodiment includes the following steps:
[0085] a. Get the first running instruction.
[0086] b. Obtain the model code of the second device.
[0087] c. Searching for the model code in the local parameter library, and if it is determined that there is no control parameter corresponding to the model code, sending a first parameter acquisition instruction to the second device.
[0088] d. Receive the first control parameter sent by the second device.
[0089] e. If it is determined that the first control parameter is received, in response to the first operation instruction, the second device is controlled to operate according to the localized first control parameter, so that the second device exchanges heat with an outdoor or indoor space through a refrigerant.
[0090] The present embodiment is different from the previous embodiment in that the model code of the second device can be obtained after receiving the first operation instruction and before responding to the first operation instruction by first receiving the first control parameter.
[0091] In one embodiment, if it is determined that there is a control parameter corresponding to the model code, the method further includes the following steps:
[0092] a. Send a second parameter acquisition instruction to the second device.
[0093] When it is determined that the control parameters corresponding to the model code of the second device exist in the local parameter library of the first device, the first device can send a second parameter acquisition instruction to the second device, and the second device sends the second control parameter to the first device in response to the second parameter acquisition instruction.
[0094] b. Receive a second control parameter sent by the second device.
[0095] The second control parameter is the latest control parameter after the second device is updated. If the second device is updated, the second control parameter is different from the corresponding control parameter stored in the local parameter library of the first device. If the second device is not updated, the second control parameter is the same as the corresponding control parameter stored in the local parameter library of the first device.
[0096] In one embodiment, the first device may, when determining that the control parameters corresponding to the model code exist in the local parameter library, send a second parameter acquisition instruction to the second device, regardless of whether the second device is updated, to obtain the latest control parameters in the second device, i.e., the second control parameters. In one embodiment, the first device may also first determine whether the second device is updated, and when determining that the second device is updated, send a second parameter acquisition instruction to the second device to obtain the latest control parameters in the second device.
[0097] In this embodiment, a second parameter acquisition instruction is sent to the second device; and a second control parameter sent by the second device is received; wherein the second control parameter is the latest control parameter after the second device is updated. By sending the second parameter acquisition instruction to the second device, the latest control parameter can be obtained from the second device, and the first device can ensure normal control of the operation of the second device according to the latest control parameter.
[0098] In one embodiment, if it is determined that there is a control parameter corresponding to the model code, the method further includes:
[0099] a. Send an information acquisition instruction to the second device.
[0100] b. Receive the first file verification code sent by the second device.
[0101] The first file verification code is the file verification code of the latest control parameter of the second device. The file verification code is unique, and each control parameter carries a unique file verification code. If the control parameter is modified, the file verification code changes accordingly.
[0102] c. If it is determined that the first file verification code is different from the second file verification code, it is determined that the second device is updated, and a second parameter acquisition instruction is sent to the second device.
[0103] The second file verification code is a file verification code of the control parameters of the second device stored in the local parameter library of the first device.
[0104] The first file verification code is different from the second file verification code, indicating that the second device is updated and the control parameters of the second device stored in the local parameter library of the first device are invalid. In the case of invalid control parameters, the first device initiates a request to the second device to obtain the latest control parameters. In the case of valid control parameters, the first device will not initiate a request to the second device, and the first device can control the second device according to the stored control parameters.
[0105] d. Receive a second control parameter sent by the second device.
[0106] The second control parameter is the latest control parameter after the second device is updated.
[0107] In this embodiment, an information acquisition instruction is sent to the second device; a first file verification code sent by the second device is received; wherein the first file verification code is a file verification code of the latest control parameters of the second device; if it is determined that the first file verification code and the second file verification code are different, it is determined that the second device has been updated, and the step of sending a second parameter acquisition instruction to the second device is executed; wherein the second file verification code is a file verification code of the control parameters of the second device stored in the local parameter library. By verifying the first file verification code and the second file verification code, it can be determined whether the second device has been updated. In the case of an update, an instruction is sent to the second device to obtain the latest control parameters of the second device. Compared with the method of obtaining the latest control parameters of the second device regardless of whether the second device has been updated, this embodiment can reduce data redundancy of the control parameters.
[0108] In one embodiment, after receiving the second control parameter sent by the second device, the method further includes:
[0109] a. Get the second operation instruction.
[0110] There is no essential difference between the second operation instruction and the first operation instruction, and the names are different only for the convenience of distinction.
[0111] b. In response to the second operation instruction, controlling the operation of the second device according to the second control parameter, so that the second device exchanges heat with an outdoor or indoor space through a refrigerant.
[0112] In this embodiment, after receiving the second control parameter, the first device obtains the second operation instruction and can control the operation of the second device according to the second control parameter.
[0113] In one embodiment, after receiving the second control parameter sent by the second device, the method further includes:
[0114] a. Perform parameter localization on the second control parameter to obtain a localized second control parameter.
[0115] The format of the localized second control parameter can be recognized and read by the first device.
[0116] b. Get the second operation instruction.
[0117] The second operation instruction may be generated by a user's remote control button operation, or sent by a user terminal to the air conditioner via Bluetooth, near field communication, etc., without specific limitation.
[0118] The second operation instruction is generated after the air conditioner is started, which is the triggering time point for the first device to control the operation of the second device.
[0119] c. In response to the second operation instruction, the second device is controlled to operate according to the localized second control parameter, so that the second device exchanges heat with an outdoor or indoor space through a refrigerant.
[0120] Here, the operation of the second device is controlled according to the localized second control parameters, and the process method can refer to the relevant limitations according to the localized first control parameters.
[0121] In this embodiment, during the application process, after receiving the second operation instruction, the first device controls the operation of the second device according to the localized second control parameters, so that the second device can be normally controlled to perform hot exchange.
[0122] In one embodiment, the control method of the air conditioner provided in this embodiment includes the following steps:
[0123] a. Obtain the model code of the second device.
[0124] b. Searching for the model code in the local parameter library, and if it is determined that there is a control parameter corresponding to the model code, sending an information acquisition instruction to the second device.
[0125] c. Receive the first file verification code sent by the second device.
[0126] The first file verification code is the file verification code of the latest control parameter of the second device.
[0127] d. If it is determined that the first file verification code is different from the second file verification code, it is determined that the second device is updated, and a second parameter acquisition instruction is sent to the second device.
[0128] The second file verification code is a file verification code of the control parameters of the second device stored in the local parameter library.
[0129] e. Receive a second control parameter sent by the second device.
[0130] The second control parameter is the latest control parameter after the second device is updated.
[0131] f. Perform parameter localization on the second control parameter to obtain a localized second control parameter.
[0132] g. Get the second operation instruction.
[0133] h. In response to the second operation instruction, control the operation of the second device according to the localized second control parameter, so that the second device exchanges heat with an outdoor or indoor space through a refrigerant.
[0134] In this embodiment, the process of first obtaining the model code of the second device and then obtaining the localized second control parameters is carried out. When the localized second control parameters are generated, when the first operating instruction is subsequently obtained, the operation of the second device is controlled according to the localized second control parameters in response to the first operating instruction.
[0135] In one embodiment, the control method of the air conditioner provided in this embodiment includes the following steps:
[0136] a. Get the second operation instruction.
[0137] b. Obtain the model code of the second device.
[0138] c. Searching for the model code in the local parameter library, and if it is determined that there is a control parameter corresponding to the model code, sending an information acquisition instruction to the second device.
[0139] d. Receive the first file verification code sent by the second device.
[0140] The first file verification code is the file verification code of the latest control parameter of the second device.
[0141] e. If it is determined that the first file verification code is different from the second file verification code, it is determined that the second device is updated, and a second parameter acquisition instruction is sent to the second device.
[0142] The second file verification code is a file verification code of the control parameters of the second device stored in the local parameter library.
[0143] f. Receive a second control parameter sent by the second device.
[0144] The second control parameter is the latest control parameter after the second device is updated.
[0145] g. Perform parameter localization on the second control parameter to obtain a localized second control parameter.
[0146] h. In response to the second operation instruction, control the operation of the second device according to the localized second control parameter, so that the second device exchanges heat with an outdoor or indoor space through a refrigerant.
[0147] In this embodiment, the second operating instruction is first obtained, and then the model code of the second device is obtained to obtain the localized second control parameters. Only when the localized second control parameters are generated, the second operating instruction is responded to and the operation of the second device is controlled according to the localized second control parameters.
[0148] In one embodiment, the air conditioner control method further includes: updating the control parameters of the second device and the second file verification code in the local parameter library based on the second control parameter.
[0149] That is, when the latest control parameters are obtained, the first device updates the data in the local parameter library. In addition, the corresponding control parameters previously stored in the local parameter library can be deleted to reduce data redundancy.
[0150] In this embodiment, by updating the control parameters of the second device and the second file verification code in the local parameter library based on the second control parameter, the first device does not need to obtain them from the second device each time it is used subsequently.
[0151] In the above embodiments, Figure 4As shown, the storage area of the first device may include: a local parameter library, a first adaptive parameter library, and a second adaptive parameter library, and the local parameter library, the first adaptive parameter library, and the second adaptive parameter library are communicatively connected with the processor of the first device. Among them, a mapping relationship is stored in the local parameter library, and the mapping relationship stores a preset model code of the second device and a corresponding control parameter. The first adaptive parameter library stores control parameters obtained from the second device through communication, such as the first control parameter and the second control parameter. The second adaptive parameter library stores control parameters for the other party to obtain from the first device through communication, such as the aforementioned third control parameter.
[0152] The methods described in the above embodiments are described for one-to-one air conditioners, but can also be used in one-to-many air conditioners. In the one-to-many usage scenario, the outdoor unit as the network host polls all indoor units in the network that are connected to it for communication, and obtains corresponding control parameters from each indoor unit. The control parameters of the outdoor unit can be sent to each indoor unit using a broadcast notification method.
[0153] The present application is further described in detail below in conjunction with application examples.
[0154] In a specific embodiment, Figure 5 As shown, the control method of the air conditioner specifically includes:
[0155] When the second device is connected to the first device, step 201 is executed to obtain the model code of the second device. After the first device obtains the model code of the second device, step 202 is first executed to search whether the model code exists in the local parameter library. If it is determined that the model code exists, it is determined that the second device is not connected for the first time. If it is determined that the model code does not exist, it is determined that the second device is connected for the first time. Accordingly, the second device that is connected for the first time does not have corresponding control parameters in the local parameter library of the first device.
[0156] For the second device connected for the first time, there is no control parameter corresponding to its model code in the local parameter library of the first device. In this case, step 203 is executed, the first device sends a first parameter acquisition instruction to the second device, the second device responds to the first parameter acquisition instruction and sends a first control parameter to the first device, and the first device executes step 204 to receive the first control parameter sent by the second device. The first control parameter is a parameter used by the first device to control the operation of the second device.
[0157] For the second device that is not connected for the first time, the first device can directly use the control parameters of the second device stored in the local parameter library as the parameters for controlling the operation of the second device. Further, it is considered that the control parameters of the second device may be updated, and the control parameters of the second device stored in the local parameter library of the first device have not been synchronized and updated in time. In this case, the first device can also perform step 205 to determine whether the second device has been updated after performing step 202 to determine that there are control parameters corresponding to the model code in the local parameter library, and in the case of determining that the second device has been updated, perform step 206 to send a second parameter acquisition instruction to the second device, and the second device sends the second control parameter to the first device in response to the second parameter acquisition instruction. The first device performs step 207 to receive the second control parameter sent by the second device. The second control parameter is the latest control parameter in the second device for the first device to control the operation of the second device. After the first device receives the second control parameter, if the second operation instruction is obtained, it responds to the second operation instruction and controls the operation of the second device according to the second control parameter, so that the second device exchanges heat with the outdoor or indoor space through the refrigerant.
[0158] It should be noted here that when the first device is an indoor unit, the second device is an outdoor unit. When the first device is an outdoor unit, the second device is an indoor unit. Moreover, the first device and the second device are located in the same air conditioner.
[0159] It is understandable that the second device can also obtain the model code of the first device and execute a method similar to that of the first device, thereby updating the control parameters of the first device on the second device side, thereby achieving adaptive adaptation control.
[0160] In this application embodiment, when the first device updates the control parameters of the second device, it can actively communicate to obtain from the other party if the parameters are not stored in the local parameter library. This is an adaptive adaptation method that does not require the intervention of users or even professionals in related technologies, so the adaptation efficiency is relatively high.
[0161] In order to implement the method of the embodiment of the present application, Figure 6 As shown, an embodiment of the present application also provides a control device for an air conditioner, and the control device 400 for the air conditioner corresponds to the control method for the above-mentioned air conditioner, and is applied to the first device. The various steps in the control method embodiment of the above-mentioned air conditioner are also fully applicable to the control device 400 embodiment of the present air conditioner.
[0162] The device 400 includes: a code acquisition module 401, an instruction sending module 402 and a parameter acquisition module 403;
[0163] The code acquisition module 401 is used to acquire the model code of the second device;
[0164] The instruction sending module 402 is used to search the model code in the local parameter library, and if it is determined that there is no control parameter corresponding to the model code, send a parameter acquisition instruction to the second device;
[0165] The parameter acquisition module 403 is used to receive the first control parameter sent by the second device; wherein the first control parameter is the parameter used by the first device to control the operation of the second device; the first device is an indoor unit and the second device is an outdoor unit, or the first device is an outdoor unit and the second device is an indoor unit.
[0166] In one embodiment, the control device 400 of the air conditioner also includes a parameter processing module 404, which is specifically used to: after receiving the first control parameter sent by the second device, localize the first control parameter to obtain a localized first control parameter; wherein the format of the localized first control parameter can be recognized and read by the first device.
[0167] In one embodiment, the control device 400 of the air conditioner also includes an equipment operation module 405, which is specifically used to: obtain a first operation instruction after localizing the first control parameter and obtaining the localized first control parameter; in response to the first operation instruction, control the operation of the second device according to the localized first control parameter, so that the second device exchanges heat with the outdoor or indoor space through the refrigerant.
[0168] In one embodiment, the parameter acquisition module 403 is also used to: if it is determined that there are control parameters corresponding to the model code, send a second parameter acquisition instruction to the second device; receive the second control parameter sent by the second device; wherein the second control parameter is the latest control parameter after the second device is updated.
[0169] In one embodiment, the parameter acquisition module 403 is also used to: send an information acquisition instruction to the second device before sending the second parameter acquisition instruction to the second device; receive a first file verification code sent by the second device; wherein the first file verification code is the file verification code of the latest control parameters of the second device; if it is determined that the first file verification code and the second file verification code are different, it is determined that the second device is updated, and the step of sending a second parameter acquisition instruction to the second device is executed; wherein the second file verification code is the file verification code of the control parameters of the second device stored in the local parameter library.
[0170] In one embodiment, the device operation module 405 is also used to: obtain a second operation instruction after receiving the second control parameter sent by the second device; and in response to the second operation instruction, control the operation of the second device according to the second control parameter so that the second device exchanges heat with the outdoor or indoor space through the refrigerant.
[0171] In one embodiment, the air conditioner control device 400 further includes a parameter updating module 406, which is specifically used to update the control parameters of the second device and the second file verification code in the local parameter library based on the second control parameters.
[0172] In actual application, the code acquisition module 401, the instruction sending module 402, the parameter acquisition module 403, the parameter processing module 404, the device operation module 405, and the parameter update module 406 can be implemented by a processor in the control device of the air conditioner. Of course, the processor needs to run the computer program in the memory to realize its function.
[0173] It should be noted that: the control device of the air conditioner provided in the above embodiment only uses the division of the above program modules as an example to illustrate when managing food information. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the control device of the air conditioner provided in the above embodiment and the control method embodiment of the air conditioner belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0174] Based on the hardware implementation of the above program modules and in order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a first device. Figure 7 Only an exemplary structure of the first device is shown, not all structures, and can be implemented as needed. Figure 7 Partial or complete structure shown.
[0175] like Figure 7 As shown, the first device 500 provided in the embodiment of the present application includes: at least one processor 501, a memory 502, a user interface 503 and at least one network interface 504. The various components in the first device 500 are coupled together through a bus system 505. It can be understood that the bus system 505 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, in Figure 5 Various buses are labeled as bus system 505 .
[0176] The user interface 503 may include a display, a keyboard, a mouse, a trackball, a click wheel, keys, buttons, a touch pad or a touch screen.
[0177] The memory 502 in the embodiment of the present application is used to store various types of data to support the operation of the first device. Examples of such data include: any computer program used to operate on the first device.
[0178] The follow-up and prescribing coordination disclosed in the embodiment of the present application can be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the follow-up and prescribing coordination can be completed by the hardware integrated logic circuit or software instructions in the processor 501. The above-mentioned processor 501 can be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 501 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 502, and the processor 501 reads the information in the memory 502, and completes the steps of the follow-up and prescribing coordination provided in the embodiment of the present application in combination with its hardware.
[0179] In an exemplary embodiment, the first device may be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned method.
[0180] It can be understood that the memory 502 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memories described in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.
[0181] It should be noted that "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. Also, the second device can also be used as an execution subject to obtain the control parameters of the first device. The structure of the second device is similar to Figure 7 The structure of the first device shown is the same.
[0182] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.
[0183] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for controlling an air conditioner, applied to a first device, characterized in that: The method comprises: Obtain the model code of the second device; Searching for the model code in a local parameter library, and if it is determined that there is no control parameter corresponding to the model code, sending a first parameter acquisition instruction to the second device; receiving a first control parameter sent by the second device; The first control parameter is a parameter used by the first device to control the operation of the second device; the first device is an indoor unit and the second device is an outdoor unit, or the first device is an outdoor unit and the second device is an indoor unit.
2. The method according to claim 1, characterized in that After receiving the first control parameter sent by the second device, the method further includes: The first control parameter is localized to obtain a localized first control parameter; wherein the format of the localized first control parameter can be recognized and read by the first device.
3. The method according to claim 2, characterized in that After localizing the first control parameter to obtain the localized first control parameter, the method further includes: Obtaining a first operation instruction; In response to the first operation instruction, the second device is controlled to operate according to the localized first control parameter, so that the second device exchanges heat with an outdoor or indoor space through a refrigerant.
4. The method according to claim 1, characterized in that If it is determined that there is a control parameter corresponding to the model code, the method further includes: Sending a second parameter acquisition instruction to the second device; Receive a second control parameter sent by the second device; wherein the second control parameter is the latest control parameter after the second device is updated.
5. The method according to claim 4, characterized in that Before sending the second parameter acquisition instruction to the second device, the method further includes: Sending an information acquisition instruction to the second device; Receive a first file verification code sent by the second device; wherein the first file verification code is a file verification code of the latest control parameter of the second device; If it is determined that the first file verification code and the second file verification code are different, it is determined that the second device has been updated, and the step of sending a second parameter acquisition instruction to the second device is executed; wherein the second file verification code is the file verification code of the control parameters of the second device stored in the local parameter library.
6. The method according to claim 4 or 5, characterized in that: After receiving the second control parameter sent by the second device, the method further includes: Obtain a second operation instruction; In response to the second operation instruction, the second device is controlled to operate according to the second control parameter, so that the second device exchanges heat with an outdoor or indoor space through a refrigerant.
7. The method according to claim 5, characterized in that The method further comprises: Based on the second control parameter, the control parameter of the second device and the second file verification code in the local parameter library are updated.
8. A control device for an air conditioner, characterized in that: Applied to a first device, the apparatus comprises: A code acquisition module, used to acquire a model code of a second device; an instruction sending module, configured to search for the model code in a local parameter library, and if it is determined that no control parameter corresponding to the model code exists, send a parameter acquisition instruction to the second device; A parameter acquisition module, configured to receive a first control parameter sent by the second device; The first control parameter is a parameter used by the first device to control the operation of the second device; the first device is an indoor unit and the second device is an outdoor unit, or the first device is an outdoor unit and the second device is an indoor unit.
9. An air conditioner, comprising a first device and a second device; characterized in that: The first device comprises: a processor and a memory for storing a computer program that can be run on the processor, wherein: The processor is used to execute the steps of the method according to any one of claims 1 to 7 when running a computer program.
10. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.