CN113551385B - Control method and device of air conditioner, air conditioner and storage medium - Google Patents
Control method and device of air conditioner, air conditioner and storage medium Download PDFInfo
- Publication number
- CN113551385B CN113551385B CN202110879582.5A CN202110879582A CN113551385B CN 113551385 B CN113551385 B CN 113551385B CN 202110879582 A CN202110879582 A CN 202110879582A CN 113551385 B CN113551385 B CN 113551385B
- Authority
- CN
- China
- Prior art keywords
- extension
- pairing
- air conditioner
- identifier
- trust list
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/50—Control or safety arrangements characterised by user interfaces or communication
- F24F11/56—Remote control
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/50—Control or safety arrangements characterised by user interfaces or communication
- F24F11/52—Indication arrangements, e.g. displays
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Chemical & Material Sciences (AREA)
- Combustion & Propulsion (AREA)
- Mechanical Engineering (AREA)
- General Engineering & Computer Science (AREA)
- Selective Calling Equipment (AREA)
- Air Conditioning Control Device (AREA)
Abstract
The invention discloses a control method and a control device of an air conditioner, the air conditioner and a storage medium, which are applied to the pairing of extension sets when power line carrier communication is established among the extension sets of the air conditioner, and the method comprises the following steps: supplying power to the first extension and the second extension; opening the configuration authority of the trust lists of the first extension and the second extension; adding the identifier of the first extension to a trust list of a second extension, and adding the identifier of the second extension to the trust list of the first extension; adding a first identification of the first extension to the first trust list, and adding a second identification of the second extension to the second trust list; when the first trust list contains the second identifier and the second trust list contains the first identifier, determining that pairing is successful; and when the first trust list does not contain the second identifier or the second trust list does not contain the first identifier, determining that the pairing is failed. The invention realizes the pairing between the extension sets by changing the trust lists of different extension sets, improves the reliability of pairing communication and can be widely applied to the field of air conditioners.
Description
Technical Field
The present application relates to the field of air conditioners, and in particular, to a method and an apparatus for controlling an air conditioner, and a storage medium.
Background
Air conditioners are widely used in various scenes such as houses and office places. In a household air conditioner application scene, a plurality of sets of internal and external machines operate simultaneously, so that the internal and external machines of the same refrigerant system need to be in communication connection respectively. The method for matching the internal machine and the external machine in the related technology generally adopts a mode that the internal machine searches for the external machine with the same refrigerant coefficient through wireless communication to carry out matching and adopts a mode that a data line is connected with the internal machine and the external machine to carry out matching. However, the method of pairing by wireless communication is more susceptible to signal interference in a scene with more signal sources, which results in pairing failure and poor reliability of pairing wireless communication signals; the method of pairing by data line connection requires additional configuration of data lines, which is inconvenient.
Therefore, the above technical problems of the related art need to be solved.
Disclosure of Invention
The embodiment of the application provides a control method and device of an air conditioner, the air conditioner and a storage medium, interference can be effectively prevented, and reliability of pairing communication between extension sets is improved.
According to an aspect of an embodiment of the present application, there is provided a control method of an air conditioner, including:
the control method of the air conditioner is characterized in that the air conditioner comprises a first extension set and a second extension set, and the first extension set and the second extension set establish power line carrier communication; the method comprises the following steps:
supplying power to the first extension and the second extension;
opening configuration permissions of a first trust list of the first extension and a second trust list of the second extension;
adding a first identifier of the first extension into the first trust list, and adding a second identifier of the second extension into the second trust list;
when the first trust list contains the second identifier and the second trust list contains the first identifier, determining that pairing is successful; and when the first trust list does not contain the second identifier or the second trust list does not contain the first identifier, determining that the pairing is failed.
Optionally, the method further comprises:
acquiring a pairing identifier;
and judging whether the first extension set and the second extension set are successfully paired according to the pairing identifier.
Optionally, the determining, according to the pairing identifier, whether the first extension set and the second extension set are successfully paired includes:
when the value of the pairing identification is a first numerical value, determining that the first extension and the second extension are successfully paired;
and when the value of the pairing identifier is a second numerical value, determining that the first extension and the second extension are failed to be paired, and executing the step of opening the configuration authority of the trust list of the first extension and the second extension.
Optionally, the air conditioner further comprises a wave trap, and the method further comprises:
and filtering out signals with inconsistent preset frequency through the wave trapper.
Optionally, the preset frequency is determined by:
and acquiring the frequency of a power supply signal as the preset frequency, wherein the power supply signal is used for supplying power to the first extension set and the second extension set.
Optionally, it is determined that the pairing is successful, the method further comprises:
and sending prompt information of successful pairing to the first extension set or the second extension set, and updating the state of the pairing identifier to be successful in pairing.
Optionally, the sending of the prompt message that the pairing is successful to the first extension or the second extension includes at least one of:
sending a prompt message of successful pairing to a controller of the first extension;
or sending a prompt message of successful pairing to a controller of the second extension;
the prompt message comprises at least one of a text prompt message, a sound prompt message or an icon prompt message.
Optionally, the air conditioner further comprises a display, the method comprising:
and responding to the prompt message of successful pairing, and displaying the text prompt message and the icon prompt message on the display.
Optionally, it is determined that the pairing is successful, the method further comprising:
and controlling the first extension set and the second extension set to communicate through a power line carrier.
Optionally, it is determined that the pairing failed, the method further comprising:
a step of restarting the power supply of the first extension and the second extension, and then turning on the configuration authority of the trust list of the first extension and the second extension.
According to an aspect of the embodiments of the present application, there is provided a control apparatus of an air conditioner, the air conditioner including a first extension and a second extension, the first extension and the second extension establishing power line carrier communication; the control device includes:
the first module is used for supplying power to the first extension set and the second extension set;
a second module for opening a first trust list of the first extension and a configuration authority of a second trust list of the second extension;
a third module, configured to add the first identifier of the first extension to the first trust list, and add the second identifier of the second extension to the second trust list;
a fourth module for determining that pairing is successful when the first trust list contains the second identifier and the second trust list contains the first identifier; and when the first trust list does not contain the second identifier or the second trust list does not contain the first identifier, determining that the pairing is failed.
Optionally, the apparatus further comprises:
and the fifth module is used for filtering the signal which is inconsistent with the preset frequency through the wave trap.
According to an aspect of an embodiment of the present application, there is provided a control apparatus of an air conditioner, including:
at least one processor;
at least one memory for storing at least one program;
the control method of the air conditioner according to the above embodiment is implemented when at least one of the programs is executed by at least one of the processors.
According to an aspect of the embodiments of the present application, there is provided an air conditioner including the control device according to the above embodiments.
According to an aspect of the embodiments of the present application, there is provided a storage medium storing a program executable by a processor, the program executable by the processor being used to implement the control method of the air conditioner as described in the above embodiments when executed by the processor.
The embodiment of the invention has the beneficial effects that: the matching between the extension sets is realized by changing the trust lists of different extension sets, the reliability of the matching communication is improved, the method can be widely applied to the field of air conditioners, interference signals except interference signals with preset frequency can be filtered by adding the wave trapper at the main switch, and the interference of the interference signals in the power grid is reduced.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a hardware configuration of an air conditioner according to the present application;
fig. 2 is a schematic diagram of another hardware configuration of a control method of an air conditioner according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating steps of a method for controlling an air conditioner according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a control device of an air conditioner according to an embodiment of the present application;
fig. 5 is another schematic structural diagram of a control device of an air conditioner according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of the present application and in the drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In a household air conditioner application scene, a plurality of sets of internal and external machines operate simultaneously, so that the internal and external machines of the same refrigerant system need to be in communication connection respectively. The method for matching the internal unit and the external unit in the related art generally adopts a mode that the internal unit searches for the external unit with the same refrigerant coefficient through wireless communication to perform matching and a mode that the internal unit and the external unit are connected through a data line to perform matching. However, the method of pairing by wireless communication is more susceptible to signal interference in a scene with more signal sources, which results in pairing failure and poor reliability of pairing wireless communication signals; the method of pairing by data line connection requires additional configuration of data lines, which is inconvenient.
Therefore, the embodiment of the application provides a control method and device of an air conditioner, the air conditioner and a storage medium, under the condition that power line carrier communication is established among extension sets, pairing among the extension sets is established in a trust list of an opposite extension set by mutually adding identifications of the extension sets, and finally whether the addition is successful is judged. The method and the device for pairing the extension sets need to establish power line carrier communication between the extension sets to be paired and then perform pairing, pairing can be established after pairing is successful, and wired communication between the extension sets is achieved. Among them, Power Line Carrier (PLC) is a communication method in which analog or digital signals are transmitted at high speed by a Carrier method using an existing Power Line. The power line carrier communication has the biggest characteristic that data transmission can be realized only by utilizing the original electric wire without erecting a network again. The invention realizes the pairing between the extensions and improves the reliability of pairing communication by changing the trust lists of different extensions on the basis of establishing power line carrier communication between the extensions. Optionally, a wave trap may be further added at the main switch in the embodiment of the present application, so as to filter an interference signal except for a preset frequency, where a frequency of a power signal used for supplying power to the first extension and the second extension is generally 50Hz or 60Hz, that is, a preset pass frequency to the wave trap may also be 50Hz or 60Hz, so as to reduce interference caused by other signal sources in a scene with many signal sources, and solve problems in the related art that pairing of an indoor unit and an outdoor unit of an air conditioner is easily interfered by a signal, resulting in pairing failure and poor pairing reliability.
Referring to fig. 1, fig. 1 is a schematic diagram of a hardware structure of an air conditioner according to embodiments of the present application. In this embodiment, the air conditioner may include a processor 1001 (e.g., a Central Processing Unit, CPU), a communication bus 1002, an input port 1003, an output port 1004, and a memory 1005. The communication bus 1002 is used for realizing connection communication among the components; the input port 1003 is used for data input; the output port 1004 is used for data output, the memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as a magnetic disk memory, and the memory 1005 may also be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration shown in FIG. 1 is not limiting of the present application and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
With continued reference to fig. 1, the memory 1005 of fig. 1, which is one of the readable storage media, may include an operating system, a network communication module, an application program module, and a control program of the air conditioner. In fig. 1, the network communication module is mainly used for connecting to a server and performing data communication with the server; the processor 1001 may call a control program of the air conditioner stored in the memory 1005 and execute the control method of the air conditioner according to the embodiment of the present disclosure.
Fig. 2 is a schematic diagram of another hardware structure of the control method of the air conditioner according to the embodiment of the present application, and as shown in fig. 2, the air conditioner structure of the embodiment mainly includes a user master switch, an internal unit main control board, an external unit main control board, an internal unit PLC module, and an external unit PLC module. The inner machine main control board, the outer machine main control board, the inner machine PLC module and the outer machine PLC module jointly form a working part of the air conditioner, receive external power input and realize the function of adjusting variables such as air temperature, humidity and the like.
Optionally, in this embodiment, a wave trap may be further disposed between the user main switch and the air conditioner working portion as shown in fig. 2, and a signal inconsistent with the preset frequency is filtered by the wave trap. Specifically, the preset frequency is the frequency of the power signals of the first branch machine and the second branch machine. That is, the function of the wave trap is to filter out signals that do not correspond to the frequencies of the first and second extension power signals. Signals that are not coincident with the frequencies of the first extension and second extension power signals include, but are not limited to: the frequency of the power signals of the first branch machine and the second branch machine is generally 50Hz or 60Hz, namely the preset passing frequency of the wave trap is also 50Hz or 60 Hz. Therefore, the wave trap is arranged between the user main switch and the working part of the air conditioner, so that signals which possibly interfere the normal work of the air conditioner and comprise noise signals in a power grid, signals with frequency change caused by electromagnetic wave interference, external noise signals and the like can be effectively filtered, and the air conditioner can normally and stably run.
Based on the hardware structure of the air conditioner shown in fig. 1 and fig. 2, as shown in fig. 3, the present application provides a control method of an air conditioner, where the air conditioner includes a first extension and a second extension, and the first extension and the second extension establish power line carrier communication, the control method includes, but is not limited to, steps S301, S302, S303, S304, S305, and S306:
and step S301, supplying power to the first extension set and the second extension set.
In this embodiment, the operation of the air conditioner (including the pairing of the indoor and outdoor units) requires power supply. It will be appreciated that during power down and power up, the controller of the air conditioner will restart, and during the controller restart, the data cache inside the controller will be emptied, so that when pairing fails due to a software-level problem, the pairing can be re-powered up by re-powering up from this step.
The first extension set and the second extension set can be any 2 extension sets needing pairing communication in the air conditioner, and the number of the extension sets can be flexibly adjusted according to actual needs. For example, an air conditioner may include one indoor unit and one outdoor unit, and then the first indoor unit may be the indoor unit and the second outdoor unit may be the outdoor unit, or the first indoor unit may be the outdoor unit and the second indoor unit may be the indoor unit. The different names of the first sub-unit and the second sub-unit in the embodiment are for distinguishing different air conditioner sub-units, and do not constitute a limitation on the types of the air conditioner sub-units. Optionally, in the description in this embodiment, it is default that the first extension set is an indoor set, and the second extension set is an outdoor set.
Step S302, opening the configuration authority of the trust lists of the first extension set and the second extension set.
It should be noted that, after the first extension set and the second extension set are powered in the foregoing steps, the controller of the air conditioner automatically runs the program including the control method according to the embodiment of the present application.
The first branch controller of the air conditioner stores a first trust list in a virtual file form, and the second branch controller of the air conditioner stores a second trust list in a virtual file form. Optionally, the first trust list and the second trust list may be in the form of a white list, a firewall trust list, or the like, which is not specifically limited in this embodiment of the application.
The first trust list and the second trust list record equipment identification codes (identifications) which correspond to the extensions and can allow other extensions to be in data connection with the local machine. In each extension of the air conditioner, each extension corresponds to a unique identification code for identifying the identity of the extension in various communication controls. The identification code can be a serial code composed of a string of character strings, is stored in a storage medium of each extension, is called and transmitted through the controller during communication, and identifies the extension and the identification information of a communication object. Optionally, in this embodiment of the present application, the identification code is an identifier, for example, a first identifier of the first extension is an identification code of the first extension, and a second identifier of the second extension is an identification code of the second extension.
And the configuration authority is used for representing whether the extension of the air conditioner is allowed to configure the trust list. Optionally, the trust list may be configured with different permissions according to different values, for example, the first permission value indicates that the extension of the air conditioner is allowed to configure the trust list, and the second permission value indicates that the extension of the air conditioner is not allowed to configure the trust list. Illustratively, the first permission value may be 1 and the second permission value may be 0. It will be appreciated that the trust list generally defaults to a read-only (i.e., configuration not allowed) state, so that configuration rights for the trust list need to be opened first in order to subsequently achieve successful pairing between extensions.
It should be added that both the indoor unit and the outdoor unit of the air conditioner are provided with a controller and a trust list, that is, in the above embodiment, the identifier of the outdoor unit may be added to the trust list of the indoor unit first, and then the identifier of the indoor unit is added to the trust list of the outdoor unit, or the identifier of the indoor unit may be added to the trust list of the outdoor unit first, and then the identifier of the outdoor unit is added to the trust list of the indoor unit, or the identifier of the outdoor unit may be added to the trust list of the indoor unit while the identifier of the indoor unit is added to the trust list of the outdoor unit. The above embodiments describe in detail one of the orders in which the labels are added, and should not be construed as unduly limiting the application.
Step S303, add the first identifier of the first extension to the first trust list of the second extension, and add the second identifier of the second extension to the second trust list of the first extension.
It should be noted that, the specific implementation process of this step may be: a controller of the first extension calls a current trust list (a first trust list) of the first extension through a memory, simultaneously acquires an identification code of the second extension, traverses the first trust list according to the identification code around the second extension, adds the identification code of the second extension into the first trust list and stores the identification code when the traversal result shows that the identification code of the second extension does not exist in the first trust list, and then stores the first trust list added with the identification code of the second extension into the memory again; correspondingly, the second branch machine controller calls a current trust list (second trust list) of the second extension machine through the memory, meanwhile, the identification code of the first extension machine is obtained, the second trust list is traversed according to the identification code around the first extension machine, when the traversal result shows that the identification code of the first extension machine does not exist in the second trust list, the identification code of the first extension machine is added into the second trust list and stored, and then the second trust list added with the identification code of the first extension machine is stored into the memory again. In the step, identification codes of opposite sides are added among the extensions, and the pairing among the extensions is realized by changing trust lists of different extensions under power line carrier communication.
After the identity identification code of the second extension appears in the trust list of the first extension and the identity identification code of the first extension appears in the trust list of the second extension, the first extension and the second extension use the other side as a trust object, and data communication can be smoothly realized during pairing.
Step S304, it is determined whether the first trust list includes the second identifier and the second trust list includes the first identifier.
In this step, the determining whether the first trust list includes the second identifier and the second trust list includes the first identifier specifically includes: judging whether the first trust list contains a second identifier or not, wherein the judging method comprises the steps of acquiring the second identifier of a second extension, traversing the first trust list according to the second identifier of the second extension, and if the first trust list contains the second identifier of the second extension, indicating that the first extension is successfully added with the second identifier of the second extension; correspondingly, a first identification of the first extension is obtained, the second trust list is traversed according to the first identification of the first extension, and if the second trust list contains the first identification of the first extension, the second extension is successfully added with the first identification of the first extension. It should be noted that the order of the above-mentioned judging process may be changed, that is, the above-mentioned judging process may be to traverse the first list of the first extension, judge whether the first extension successfully adds the second identifier of the second extension, then traverse the second list of the second extension, and judge whether the second extension successfully adds the first identifier of the first extension; the sequence can be exchanged or judged simultaneously, and the technical effect generated by the step is not influenced.
Step S305, when the first trust list includes the second identifier and the second trust list includes the first identifier, it is determined that the pairing is successful.
Optionally, in this step, a pairing identifier may be obtained, and whether the first extension set and the second extension set are successfully paired is determined according to the pairing identifier. In one possible embodiment, the pairing identifier may be characterized by different values as to whether the pairing is successful or not. For example, the pairing id is a first value, which represents that pairing is successful; the pairing identification is a second value, representing a pairing failure.
Specifically, the method for determining whether the extension sets are successfully paired may be: and when the value of the pairing identification is the first numerical value, determining that the first extension and the second extension are successfully paired. The pairing id may be a variable stored in a storage medium, for example, the storage medium of the first extension stores a corresponding pairing id, and the storage medium of the second extension stores a corresponding pairing id. When it is detected that the pairing between the extensions has been successful, the controller modifies the value of this pairing id. For example, when the first value of the pairing flag is 1 and the second value is 0, after detecting that the pairing between the extensions has been successful, the controller changes the value of the pairing flag from 0 to 1; if the pairing between the extensions is not successful, the controller will keep the value of this pairing flag at 0. Through the traversal check of the trust list in the step S305, whether the identifier is successfully added in the step S303 can be detected, and when the identifier is unsuccessfully added, the power supply can be restarted in time to be added again, so that the pairing efficiency between the extension sets is improved.
Step S306, when the first trust list does not contain the second identifier or the second trust list does not contain the first identifier, determining that the pairing is failed.
Optionally, when the value of the pairing identifier is a second numerical value, it is determined that the first extension and the second extension are in pairing failure, the power supplies of the first extension and the second extension may be restarted, and then the step of supplying power to the first extension and the second extension is returned. The controller of the air conditioner is restarted by powering on again, and the data cache inside the controller is emptied in the process of restarting the controller, so that when the pairing fails due to a problem in the software layer, the pairing can be started again by powering on again from the step.
Optionally, before step S301 or after S305 and S306, the present embodiment further includes obtaining a pairing identifier, and then determining whether the first extension set and the second extension set are successfully paired according to the pairing identifier. Before step S301, the function of determining whether the first extension set and the second extension set are successfully paired according to the pairing identifier is to determine whether the extension sets are successfully paired after the power line carrier communication is established between the extension sets, if it is determined that the data communication that the pairing is successful is established between the extension sets through the pairing identifier, then the control method described in the above embodiment does not need to be operated for pairing, and if it is determined that the data communication that the pairing is successful is not established between the extension sets through the pairing identifier, then the control method described in the above embodiment is operated for pairing. Therefore, the pairing identifier is obtained before step S301, and then the function of determining whether the first extension set and the second extension set are successfully paired according to the pairing identifier is to determine the pairing state before operation and then execute the program according to the pairing state, so as to reduce the situation that pairing is successful and pairing is performed again. In addition, after steps S305 and S306, the pairing identifier is obtained, and then it is determined whether the first extension set and the second extension set are successfully paired according to the pairing identifier, which is used to detect whether the extension sets to be paired have been successfully paired by operating the method described in the above embodiment, if so, the user is notified by the method described in the above embodiment, and if not, the control method described in the above embodiment is executed again by the method described in the above embodiment to perform pairing, including restarting the power supply, powering on the extension set again, and the like. Through the additional steps of the embodiment, whether the pairing between the extension sets is successful is detected before and after the method described in the embodiment is started, so that the problem of repeated pairing is effectively solved, the pairing result can be fed back to the user in time, and the pairing efficiency and the user experience during user operation are improved.
Optionally, after the foregoing steps in this embodiment are performed, the extension sets have been paired successfully, and a prompt message indicating that the pairing is successful may be sent to the first extension set or the second extension set, so as to update the state of the pairing identifier to be successful in pairing. For example, when the first numerical value of the pairing identifier is 1 and the second numerical value is 0, after the pairing is successful, the numerical value of the pairing identifier in this step may be changed from 0 to 1, which represents that the pairing between the extension sets is successful, and at this time, a prompt message of successful pairing may be sent to the controller of the first extension set; or sending a prompt message of successful pairing to a controller of the second extension; the prompt message comprises at least one of a text prompt message, a sound prompt message and an icon prompt message. Optionally, the prompt message indicating successful pairing may be sent to the related device of the air conditioner by the controller, for example, when the prompt message indicating successful pairing is a sound prompt message, the prompt message indicating successful pairing is sent to the speaker module by the controller, and the speaker module controls the speaker to send a sound indicating successful pairing after receiving the signal; when the prompt information of successful pairing is the prompt information of characters or icons, the prompt information of successful pairing is sent to the display module by the controller, and the characters or the icons prompting the successful pairing are displayed in response to the prompt information of successful pairing after the prompt information is received by the display module.
After the two fans of the air conditioners such as the indoor unit and the outdoor unit are successfully paired, the user can be informed that the extension sets are successfully paired at the first time through prompt messages such as characters, sounds and icons, whether the user is successfully paired or not does not need to manually detect, and user experience is improved.
Furthermore, after the above steps of the present embodiment are performed, the slave units have been successfully paired, and the controller may control the first slave unit and the second slave unit to communicate via the power line carrier. Compared with a traditional wireless communication mode, under the condition that a power line is connected between the extension sets, the first extension set and the second extension set which are successfully paired can carry out power line carrier communication through the power line. Compared with wireless communication, the wired power line carrier communication method does not need wireless signals, so that the data transmission speed is high, namely the delay of data transmission is small, meanwhile, wired data transmission is not easily interfered by electromagnetic fields, other wireless signals and wireless signal sources thereof, and the wired power line carrier communication method has high stability and reliability.
Taking a first extension as an indoor unit, a second extension as an outdoor unit, a trust list of the first extension as a first trust list, and a trust list of the second extension as a second trust list as examples, the control method of the embodiment of the application is applied to pair the indoor unit and the outdoor unit, and the pairing process may include steps one to three:
the method comprises the following steps: and the internal machine and the external machine of the air conditioner to be paired are connected by a physical line through a power line.
Step two: the power supply of the air conditioner is switched on, and the internal machine and the external machine of the air conditioner are electrified.
Step three: the controllers of the indoor unit and the outdoor unit of the air conditioner respectively run computer programs corresponding to the control methods provided by the embodiment to execute the control methods provided by the embodiment.
Specifically, step three can be further subdivided into the following substeps (1), (2), (3) and (4):
(1) opening configuration permissions of the first trust list and the second trust list;
(2) adding the first identification of the indoor unit into a second trust list, and adding the second identification of the outdoor unit into the first trust list;
(3) when the first trust list contains the second identifier and the second trust list contains the first identifier, determining that pairing is successful; and when the first trust list does not contain the second identifier or the second trust list does not contain the first identifier, determining that the pairing is failed.
Specifically, whether the indoor unit and the outdoor unit are successfully paired is judged according to the pairing identifier. When the value of the pairing identification is a first numerical value, the indoor unit and the outdoor unit are successfully paired; and when the value of the pairing identifier is a second value, determining that the indoor unit and the outdoor unit are unsuccessfully paired, and returning to the substep (1) to execute the step of opening the configuration authority of the first trust list and the second trust list.
(4) And after the pairing of the internal machine and the external machine is completed, informing the user of successful pairing of the internal machine and the external machine.
Specifically, the notification means may include text; a method of phonetically or displaying an icon. For the air conditioner provided with the display, the controller can also display the identification of successful pairing on the display so that the user knows the paired state of the indoor unit and the outdoor unit of the air conditioner.
As can be seen from the above description, in the case where wired communication is established between the internal and external machines according to the specific embodiment of the present application, the identifiers of the extensions are added to the trust list of the extension of the other party according to the read trust lists of the internal and external machines, and finally, whether the addition is successful is determined. The embodiment can change the trust lists of different extensions based on the power carrier technology scene, realize the pairing between the extensions and improve the reliability of pairing communication. In addition, a wave trap is added at the main switch, so that interference signals except for the preset frequency can be filtered, and the interference of the interference signals in the power grid is reduced.
Referring to fig. 4, an embodiment of the present invention further provides a control apparatus for an air conditioner, including:
a first module 401 for supplying power to the first extension and the second extension;
a second module 402, configured to open a first trust list of the first extension and a configuration authority of a second trust list of the second extension;
a third module 403, configured to add the first identifier of the first extension to the first trust list, and add the second identifier of the second extension to the second trust list;
a fourth module 404, configured to determine that pairing is successful when the first trust list includes the second identifier and the second trust list includes the first identifier; and when the first trust list does not contain the second identifier or the second trust list does not contain the first identifier, determining that the pairing is failed.
A fifth module 405, configured to filter, by a wave trap, a signal that is inconsistent with the preset frequency.
It can be seen that the contents in the foregoing method embodiments are all applicable to this apparatus embodiment, the functions specifically implemented by this apparatus embodiment are the same as those in the foregoing method embodiment, and the advantageous effects achieved by this apparatus embodiment are also the same as those achieved by the foregoing method embodiment.
Referring to fig. 5, an embodiment of the present application provides a control apparatus of an air conditioner, including:
at least one processor 501;
at least one memory 502 for storing at least one program;
the at least one program, when executed by the at least one processor 501, causes the at least one processor 501 to implement the control method of the air conditioner of the foregoing embodiment.
Similarly, the contents of the method embodiments are all applicable to the apparatus embodiments, the functions specifically implemented by the apparatus embodiments are the same as the method embodiments, and the beneficial effects achieved by the apparatus embodiments are also the same as the beneficial effects achieved by the method embodiments.
The embodiment of the invention also provides an air conditioner which comprises the control device of the air conditioner shown in the figure 4 or the figure 5.
Similarly, the contents of the method embodiments are all applicable to the air conditioner embodiment, the functions specifically implemented by the air conditioner embodiment are the same as those of the method embodiments, and the beneficial effects achieved by the air conditioner embodiment are also the same as those achieved by the method embodiments.
An embodiment of the present invention further provides a storage medium, which stores a program, and the program is used to implement the control method of the foregoing embodiment when executed by a processor.
The contents in the foregoing method embodiments are all applicable to this storage medium embodiment, and the functions implemented in this storage medium embodiment are the same as those in the foregoing method embodiments.
Similarly, the contents in the foregoing method embodiments are all applicable to this storage medium embodiment, the functions specifically implemented by this storage medium embodiment are the same as those in the foregoing method embodiments, and the advantageous effects achieved by this storage medium embodiment are also the same as those achieved by the foregoing method embodiments.
In alternative embodiments, the functions/acts noted in the block diagrams may occur out of the order noted in the operational illustrations. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality/acts involved. Furthermore, the embodiments presented and described in the flow charts of the present invention are provided by way of example in order to provide a more thorough understanding of the technology. The disclosed methods are not limited to the operations and logic flows presented herein. Alternative embodiments are contemplated in which the order of various operations is changed and in which sub-operations described as part of larger operations are performed independently.
Furthermore, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise stated to the contrary, one or more of the functions and/or features may be integrated in a single physical device and/or software module, or one or more of the functions and/or features may be implemented in a separate physical device or software module. It will also be appreciated that a detailed discussion of the actual implementation of each module is not necessary for an understanding of the present invention. Rather, the actual implementation of the various functional modules in the apparatus disclosed herein will be understood within the ordinary skill of an engineer, given the nature, function, and internal relationship of the modules. Accordingly, those skilled in the art can, using ordinary skill, practice the invention as set forth in the claims without undue experimentation. It is also to be understood that the specific concepts disclosed are merely illustrative of and not intended to limit the scope of the invention, which is defined by the appended claims and their full scope of equivalents.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the foregoing description of the specification, reference to the description of "one embodiment/example," "another embodiment/example," or "certain embodiments/examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.
Claims (13)
1. The control method of the air conditioner is characterized in that the air conditioner comprises a first extension set and a second extension set, and power line carrier communication is established between the first extension set and the second extension set; the method comprises the following steps:
supplying power to the first extension and the second extension;
acquiring a pairing identifier;
when the value of the pairing identification is a first numerical value, determining that the first extension and the second extension are successfully paired;
when the value of the pairing identification is a second numerical value, determining that the first extension and the second extension are unsuccessfully paired, and opening configuration permissions of a first trust list of the first extension and a second trust list of the second extension;
adding a first identification of the first extension to the first trust list, and adding a second identification of the second extension to the second trust list;
when the first trust list contains the second identifier and the second trust list contains the first identifier, determining that pairing is successful; and when the first trust list does not contain the second identifier or the second trust list does not contain the first identifier, determining that the pairing is failed.
2. The method of claim 1, wherein the air conditioner further comprises a wave trap, the method further comprising:
and filtering out signals with inconsistent preset frequency through the wave trapper.
3. The control method of an air conditioner according to claim 2, wherein the preset frequency is determined by:
and acquiring the frequency of a power supply signal as the preset frequency, wherein the power supply signal is used for supplying power to the first extension set and the second extension set.
4. The control method of an air conditioner according to claim 1, wherein it is determined that the pairing is successful, the method further comprising:
and sending prompt information of successful pairing to the first extension set or the second extension set, and updating the state of the pairing identifier to be successful in pairing.
5. The method as claimed in claim 4, wherein the sending of the notification message indicating that the pairing is successful to the first extension set or the second extension set includes at least one of:
sending a prompt message of successful pairing to a controller of the first extension;
or sending a prompt message of successful pairing to the controller of the second extension;
the prompt message comprises at least one of a text prompt message, a sound prompt message or an icon prompt message.
6. The method of claim 5, wherein the air conditioner further comprises a display, the method comprising:
and responding to the prompt message of successful pairing, and displaying the text prompt message and the icon prompt message on the display.
7. The control method of an air conditioner according to claim 1, wherein it is determined that the pairing is successful, the method further comprising:
and controlling the first extension set and the second extension set to communicate through a power line carrier.
8. The control method of an air conditioner according to claim 1, wherein it is determined that the pairing has failed, the method further comprising:
restarting the power supply of the first extension and the second extension, and then returning the configuration authority of the trust list of the first extension and the second extension.
9. The control device of the air conditioner is characterized in that the air conditioner comprises a first extension and a second extension, and power line carrier communication is established between the first extension and the second extension; the control device includes:
the first module is used for supplying power to the first extension set and the second extension set;
a second module, configured to obtain a pairing identifier; when the value of the pairing identification is a first numerical value, determining that the first extension and the second extension are successfully paired; when the value of the pairing identification is a second numerical value, determining that the first extension and the second extension are unsuccessfully paired, and opening configuration permissions of a first trust list of the first extension and a second trust list of the second extension;
a third module configured to add the first identifier of the first extension to the first trust list, and add the second identifier of the second extension to the second trust list;
a fourth module for determining that pairing is successful when the first trust list contains the second identifier and the second trust list contains the first identifier; and when the first trust list does not contain the second identifier or the second trust list does not contain the first identifier, determining that the pairing is failed.
10. The control device of an air conditioner according to claim 9, further comprising:
and the fifth module is used for filtering the signal which is inconsistent with the preset frequency through the wave trap.
11. A control apparatus of an air conditioner, comprising:
at least one processor;
at least one memory for storing at least one program;
the control method of an air conditioner according to any one of claims 1 to 8 is implemented when at least one of the programs is executed by at least one of the processors.
12. An air conditioner characterized by comprising the control device according to any one of claims 9 to 11.
13. A storage medium storing a program executable by a processor, the program being executed by the processor to implement the control method of the air conditioner according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110879582.5A CN113551385B (en) | 2021-08-02 | 2021-08-02 | Control method and device of air conditioner, air conditioner and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110879582.5A CN113551385B (en) | 2021-08-02 | 2021-08-02 | Control method and device of air conditioner, air conditioner and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113551385A CN113551385A (en) | 2021-10-26 |
CN113551385B true CN113551385B (en) | 2022-09-23 |
Family
ID=78133518
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110879582.5A Active CN113551385B (en) | 2021-08-02 | 2021-08-02 | Control method and device of air conditioner, air conditioner and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113551385B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116147168A (en) * | 2023-01-06 | 2023-05-23 | 青岛海尔空调器有限总公司 | Method and device for energy conservation of air conditioner, air conditioner and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108386968A (en) * | 2018-03-08 | 2018-08-10 | 上海物麒科技有限公司 | The network-building method that multi-gang air-conditioner is realized by equipment unique encodings and physical address |
CN108616582A (en) * | 2018-04-13 | 2018-10-02 | 珠海格力电器股份有限公司 | Pairing method, device and system of internal machine and wire controller |
CN110430293A (en) * | 2019-08-06 | 2019-11-08 | 珠海格力电器股份有限公司 | Pairing method and device of multi-split system, storage medium and processor |
CN112533190A (en) * | 2020-11-20 | 2021-03-19 | 歌尔科技有限公司 | Control method of slave device, and computer-readable storage medium |
-
2021
- 2021-08-02 CN CN202110879582.5A patent/CN113551385B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108386968A (en) * | 2018-03-08 | 2018-08-10 | 上海物麒科技有限公司 | The network-building method that multi-gang air-conditioner is realized by equipment unique encodings and physical address |
CN108616582A (en) * | 2018-04-13 | 2018-10-02 | 珠海格力电器股份有限公司 | Pairing method, device and system of internal machine and wire controller |
CN110430293A (en) * | 2019-08-06 | 2019-11-08 | 珠海格力电器股份有限公司 | Pairing method and device of multi-split system, storage medium and processor |
CN112533190A (en) * | 2020-11-20 | 2021-03-19 | 歌尔科技有限公司 | Control method of slave device, and computer-readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113551385A (en) | 2021-10-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3542230B1 (en) | Control method, apparatus and system | |
US9270478B2 (en) | Systems and methods for controlling and monitoring multiple electronic devices | |
CN110597075A (en) | Method and device for detecting control conflict, electronic equipment and storage medium | |
CN113412469A (en) | Equipment network distribution method and device, electronic equipment and storage medium | |
CN108549246B (en) | Method, device and equipment for controlling running state of household appliance and readable storage medium | |
JP2018129021A (en) | Field device control management method and device based on industrial internet operating system | |
CN105629752A (en) | Intelligent household equipment access method and intelligent household system | |
CN113551385B (en) | Control method and device of air conditioner, air conditioner and storage medium | |
CN111475413B (en) | Test method and device | |
CN113498594A (en) | Control method and device of intelligent household system, electronic equipment and storage medium | |
US20070169074A1 (en) | Upgrade apparatus and its method for home network system | |
CN109491367A (en) | A kind of automobile electric control system display methods, automotive diagnostic system and relevant device | |
CN113872951B (en) | Hybrid cloud security policy issuing method and device, electronic equipment and storage medium | |
CN113746821A (en) | Intelligent device control method and device, storage medium and electronic device | |
CN109361579A (en) | A kind of smart machine control method, system and storage medium | |
CN106125655A (en) | The indicating means of household electrical appliance distribution state and household electrical appliance | |
CN108509311A (en) | A kind of apparatus monitoring method, device, storage medium and computer equipment | |
WO2018113184A1 (en) | Intelligent device control and management method based on forces protocol | |
CN111536663A (en) | Control method and device of air conditioner | |
CN107105327A (en) | One kind association method for start-up and shutdown and terminal | |
CN110808037A (en) | Voice control method and device, household appliance and storage medium | |
CN115016312A (en) | Cloud scene optimization method and device for intelligent home multi-manufacturer equipment | |
CN108346274A (en) | Detect method, apparatus, remote controler, UAV system and the medium of unmanned plane | |
CN105207811B (en) | Method and device for replacing non-AllJoyn equipment | |
CN113268466A (en) | Method and system for smoothly migrating message cluster |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |