CN108151228B - Air conditioner communication mode switching method, air conditioner and readable storage medium - Google Patents

Air conditioner communication mode switching method, air conditioner and readable storage medium Download PDF

Info

Publication number
CN108151228B
CN108151228B CN201711382882.2A CN201711382882A CN108151228B CN 108151228 B CN108151228 B CN 108151228B CN 201711382882 A CN201711382882 A CN 201711382882A CN 108151228 B CN108151228 B CN 108151228B
Authority
CN
China
Prior art keywords
communication
heat exchange
exchange device
communication mode
air conditioner
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
Application number
CN201711382882.2A
Other languages
Chinese (zh)
Other versions
CN108151228A (en
Inventor
阳序仁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GD Midea Air Conditioning Equipment Co Ltd
Original Assignee
GD Midea Air Conditioning Equipment Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by GD Midea Air Conditioning Equipment Co Ltd filed Critical GD Midea Air Conditioning Equipment Co Ltd
Priority to CN201711382882.2A priority Critical patent/CN108151228B/en
Publication of CN108151228A publication Critical patent/CN108151228A/en
Application granted granted Critical
Publication of CN108151228B publication Critical patent/CN108151228B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Air Conditioning Control Device (AREA)

Abstract

The invention discloses a method for switching communication modes of an air conditioner, wherein a plurality of communication modes are arranged between a first heat exchange device and a second heat exchange device of the air conditioner, and the method for switching the communication modes of the air conditioner comprises the following steps: the method comprises the steps that the first heat exchange device does not receive information transmitted by the second heat exchange device within a first preset time length, and the current communication mode of the first heat exchange device and the second heat exchange device is determined; controlling the first heat exchange device to send a check code to the second heat exchange device through the current communication mode; and when the second heat exchange device does not receive the check code within a second preset time, switching the current communication mode into a standby communication mode. The invention also provides an air conditioner and a readable storage medium. According to the invention, because the air conditioner can switch the current communication mode to the standby communication mode when the current communication mode fails, the condition that the air conditioner cannot run due to a communication terminal is avoided, and the reliability of the communication between the indoor unit and the outdoor unit of the air conditioner is improved, thereby improving the user experience.

Description

Air conditioner communication mode switching method, air conditioner and readable storage medium
Technical Field
The invention relates to the technical field of air conditioner communication, in particular to a switching method of air conditioner communication modes, an air conditioner and a readable storage medium.
Background
Because the distance between the indoor unit and the outdoor unit of the air conditioner is far, the communication between the chips of the indoor unit and the outdoor unit cannot be directly connected, and a driving circuit must be added in the middle to enhance the communication signal and resist the external interference.
Along with the popularization of air conditioners and the improvement of living standard of people, the air conditioners are often in long-time operation, when the communication between an indoor unit and an outdoor unit of the air conditioner is interrupted, the air conditioners cannot operate, the reliability of the communication between the indoor unit and the outdoor unit of the air conditioners is low, and the user experience is reduced.
Disclosure of Invention
The invention mainly aims to provide a switching method of a communication mode of an air conditioner, the air conditioner and a readable storage medium, and aims to solve the problems that the reliability of communication between an internal machine and an external machine of the air conditioner is low and the user experience is reduced.
In order to achieve the above object, the present invention provides a method for switching communication modes of an air conditioner, wherein a plurality of communication modes are provided between a first heat exchange device and a second heat exchange device of the air conditioner, wherein when the first heat exchange device is an indoor unit, the second heat exchange device is an outdoor unit; when the first heat exchange device is an outdoor unit, the second heat exchange device is an indoor unit; the switching method of the communication mode of the air conditioner comprises the following steps:
the method comprises the steps that a first heat exchange device does not receive information transmitted by a second heat exchange device within a first preset time length, and the current communication mode of the first heat exchange device and the second heat exchange device is determined;
controlling the first heat exchange device to send a check code to the second heat exchange device through a current communication mode;
and when the second heat exchange device does not receive the check code within a second preset time, switching the current communication mode into a standby communication mode.
Preferably, the communication mode between the first heat exchange device and the second heat exchange device includes at least two of current loop communication, RS485 communication and power carrier communication.
Preferably, before the step of determining the current communication mode between the first heat exchange device and the second heat exchange device, the method further includes:
when a starting-up instruction is received, the first heat exchange device is controlled to sequentially send check codes to the second heat exchange device through different communication modes to detect whether various communication modes are normal or not, wherein after the current communication mode between the first heat exchange device and the second heat exchange device is maintained for a third time, the current communication mode between the first heat exchange device and the second heat exchange device is switched to other undetected communication modes;
when a normal communication mode exists, determining a default communication mode and a standby communication mode between the first heat exchange device and the second heat exchange device according to a preset priority of the normal communication mode, wherein when the second heat exchange device receives the check code within a third preset time period, the current communication mode between the first heat exchange device and the second heat exchange device is judged to be normal;
and setting the communication mode between the first heat exchange device and the second heat exchange device as the default communication mode.
Preferably, after the step of detecting whether the various communication modes are normal, the method further includes:
when an abnormal communication mode exists, generating fault information corresponding to the abnormal communication mode, wherein when the second heat exchange device does not receive the check code within a third preset time, the second heat exchange device judges that the current communication mode between the first heat exchange device and the second heat exchange device is abnormal;
and outputting the fault information.
Preferably, after the step of switching the current communication method to the standby communication method, the method further includes:
and generating and outputting fault information corresponding to the current communication mode.
Preferably, after the step of controlling the first heat exchanging device to send the check code to the second heat exchanging device through the current communication mode, the method further includes:
when the second heat exchange device does not receive the check code within a second preset time length, detecting whether each standby communication mode contains fault information;
and when detecting that each backup communication mode contains corresponding fault information, outputting the fault information and stopping operation, wherein when an abnormal backup communication mode exists, the fault information corresponding to the abnormal backup communication mode is generated and stored.
In order to achieve the above object, the present invention further provides an air conditioner, which includes at least one indoor unit, an outdoor unit, a processor, a memory, and a switching program of communication modes of the air conditioner, which is stored in the memory and can be run on the processor; and a plurality of communication modes are arranged between the indoor unit and the outdoor unit, and the step of the method for switching the communication modes of the air conditioner is realized when the switching program of the communication modes of the air conditioner is executed by the processor.
In order to achieve the above object, the present invention further provides a readable storage medium, wherein the readable storage medium includes a program for switching an air conditioner communication method, and the program for switching an air conditioner communication method implements the steps of the method for switching an air conditioner communication method when executed by a processor.
According to the switching method of the communication modes of the air conditioner, the air conditioner and the readable storage medium, when the first heat exchange device of the air conditioner does not receive the transmission of the second heat exchange device within the first preset time, the first heat exchange device is controlled to send the check code to the second heat exchange device through the current communication mode, and if the second heat exchange device does not receive the check code within the second preset time, the current communication mode is switched to the standby communication mode, so that the condition that the air conditioner cannot operate due to a communication terminal is avoided, the reliability of the communication between an internal machine and an external machine of the air conditioner is improved, and the user experience is improved.
Drawings
Fig. 1 is a schematic diagram of a hardware configuration of an air conditioner according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a method for switching communication modes of an air conditioner according to a first embodiment of the present invention;
FIG. 3 is a schematic diagram of a communication method between an indoor unit and an outdoor unit of an air conditioner according to the present invention;
FIG. 4 is another schematic diagram of the communication between the indoor unit and the outdoor unit of the air conditioner according to the present invention;
fig. 5 is a flowchart illustrating a second embodiment of a method for switching communication modes of an air conditioner according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: the method comprises the steps that a first heat exchange device does not receive information transmitted by a second heat exchange device within a first preset time length, and the current communication mode of the first heat exchange device and the second heat exchange device is determined; controlling the first heat exchange device to send a check code to the second heat exchange device through a current communication mode; and when the second heat exchange device does not receive the check code within a second preset time, switching the current communication mode into a standby communication mode.
In the prior art, the air conditioner is often in long-time operation, when the communication between an indoor unit and an outdoor unit of the air conditioner is interrupted, the air conditioner cannot operate, the reliability of the communication between the indoor unit and the outdoor unit of the air conditioner is low, and the user experience is reduced.
The present invention provides a solution: the air conditioner can switch the current communication mode into the standby communication mode when the current communication mode breaks down, the condition that the air conditioner cannot operate due to a communication terminal is avoided, the reliability of the communication between the indoor unit and the outdoor unit of the air conditioner is improved, and therefore the user experience is improved.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a hardware operating environment of an air conditioner according to an embodiment of the present invention.
The embodiment of the invention relates to an air conditioner, which comprises: a processor 1001, such as a CPU, a memory 1002, and a communication bus 1003. The communication bus 1003 is used to implement connection communication among these components.
The memory 1002 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). As shown in fig. 1, the memory 1003, which is one of the computer storage media, may include a switching program of the air conditioner communication method; the controller 1001 may be configured to call a switching program of the air conditioner communication method stored in the memory 1002, and perform the following operations:
the method comprises the steps that a first heat exchange device does not receive information transmitted by a second heat exchange device within a first preset time length, and the current communication mode of the first heat exchange device and the second heat exchange device is determined;
controlling the first heat exchange device to send a check code to the second heat exchange device through a current communication mode;
and when the second heat exchange device does not receive the check code within a second preset time, switching the current communication mode into a standby communication mode.
Further, the processor 1002 may be configured to call a switching program of the air conditioner communication mode stored in the memory 1002, and perform the following operations:
the communication mode between the first heat exchange device and the second heat exchange device comprises at least two of current loop communication, RS485 communication and power carrier communication.
Further, the processor 1002 may be configured to call a switching program of the air conditioner communication mode stored in the memory 1002, and perform the following operations:
when a starting-up instruction is received, the first heat exchange device is controlled to sequentially send check codes to the second heat exchange device through different communication modes to detect whether various communication modes are normal or not, wherein after the current communication mode between the first heat exchange device and the second heat exchange device is maintained for a third time, the current communication mode between the first heat exchange device and the second heat exchange device is switched to other undetected communication modes;
when a normal communication mode exists, determining a default communication mode and a standby communication mode between the first heat exchange device and the second heat exchange device according to a preset priority of the normal communication mode, wherein when the second heat exchange device receives the check code within a third preset time period, the current communication mode between the first heat exchange device and the second heat exchange device is judged to be normal;
and setting the communication mode between the first heat exchange device and the second heat exchange device as the default communication mode.
Further, the processor 1002 may be configured to call a switching program of the air conditioner communication mode stored in the memory 1002, and perform the following operations:
when an abnormal communication mode exists, generating fault information corresponding to the abnormal communication mode, wherein when the second heat exchange device does not receive the check code within a third preset time, the second heat exchange device judges that the current communication mode between the first heat exchange device and the second heat exchange device is abnormal;
and outputting the fault information.
Further, the processor 1002 may be configured to call a switching program of the air conditioner communication mode stored in the memory 1002, and perform the following operations:
and generating and outputting fault information corresponding to the current communication mode.
Further, the processor 1002 may be configured to call a switching program of the air conditioner communication mode stored in the memory 1002, and perform the following operations:
when the second heat exchange device does not receive the check code within a second preset time length, detecting whether each standby communication mode contains fault information;
and when detecting that each backup communication mode contains corresponding fault information, outputting the fault information and stopping operation, wherein when an abnormal backup communication mode exists, the fault information corresponding to the abnormal backup communication mode is generated and stored.
According to the scheme, when the first heat exchange device of the air conditioner does not receive transmission of the second heat exchange device within the first preset time, the first heat exchange device is controlled to send the check code to the second heat exchange device through the current communication mode, and if the second heat exchange device does not receive the check code within the second preset time, the current communication mode is switched to the standby communication mode, so that the condition that the air conditioner cannot run due to a communication terminal is avoided, the reliability of communication between an inner machine and an outer machine of the air conditioner is improved, and the user experience is improved.
Based on the hardware architecture, an embodiment of the switching method of the air conditioner communication mode is provided.
Referring to fig. 2, fig. 2 is a first embodiment of a switching method of an air conditioner communication mode according to the present invention, and the switching method of the air conditioner communication mode includes the following steps:
step S10, the first heat exchange device does not receive the information transmitted by the second heat exchange device within a first preset time length, and the current communication mode of the first heat exchange device and the second heat exchange device is determined;
in this embodiment, the air conditioner includes a first heat exchange device and a second heat exchange device, and when the first heat exchange device is an indoor unit, the second heat exchange device is an outdoor unit; when the first heat exchange device is an outdoor unit, the second heat exchange device is an indoor unit; the indoor unit and the outdoor unit of the air conditioner are provided with at least two communication modes, namely the communication modes comprise RS485 communication, current loop communication and power carrier communication, and the air conditioner can be a multi-split air conditioner with a plurality of indoor units. Generally, only one communication method is opened between an indoor unit and an outdoor unit of an air conditioner to reduce the number of the air conditioner and avoid communication signal collision.
In the operation process of the air conditioner, the indoor unit needs to transmit information with the outdoor unit at any time, so that normal operation of the air conditioner is ensured, and when the indoor unit does not receive information transmitted by the outdoor unit within a preset time (the preset time can be any appropriate value, such as 2.5min), or the outdoor unit does not receive information transmitted by the indoor unit within the preset time (a first preset time), it can be determined that a communication mode between the indoor unit and the outdoor unit fails.
Step S20, controlling the first heat exchange device to send a check code to the second heat exchange device through the current communication mode;
when the communication mode between the indoor unit and the outdoor unit fails, the indoor unit sends a check code to the outdoor unit through the current communication mode, or the outdoor unit sends the check code to the indoor unit through the current communication mode; the check code may be preset in the indoor unit or the outdoor unit.
Step S30, when the second heat exchange device does not receive the check code within a second preset time, switching the current communication mode to a standby communication mode;
when the second heat exchange device (the indoor unit or the outdoor unit) does not receive the check code within a second preset time length (the second preset time length can be any suitable value), judging that the communication mode between the indoor unit and the outdoor unit fails, determining the current communication mode between the indoor unit and the outdoor unit, then determining the standby communication mode between the indoor unit and the outdoor unit, and switching the current communication mode into the standby communication mode.
It should be noted that, after determining the current communication mode, it is necessary to detect whether each backup communication mode contains fault information, and when each backup communication mode contains fault information, the air conditioner outputs a notification message of the communication fault and stops operating, and when the backup communication mode does not contain corresponding fault information, the backup communication mode to be switched is determined according to the priority of each backup communication mode not containing fault information. For example, the air conditioner comprises three communication modes of RS485 communication, current loop communication and power carrier communication, the current communication mode is RS485 communication (the standby communication mode is current loop communication and power carrier communication), when the RS485 communication fails, the air conditioner detects whether the current loop communication and the power carrier information have corresponding fault information, when the current loop communication and the power carrier communication do not contain the fault information, and the air conditioner sets the current loop communication priority to be greater than the power carrier communication priority, at the moment, the air conditioner can use the current loop communication as the standby communication mode to be switched, namely, the RS485 communication is switched to the current loop communication; when the current loop communication and the power carrier communication both contain fault information, outputting prompt information of communication fault, generating the fault information of the current loop communication and the fault information of the current carrier communication, and storing the fault information; if only the current loop communication has fault information, generating and storing the fault information of the current loop communication, and simultaneously switching RS485 communication into power carrier communication; if only the power carrier communication has fault information, the fault information of the power carrier communication is generated and stored, and the RS485 communication is switched to current loop communication.
Preferably, two communication modes are set in the air conditioner, one is RS485 communication or current loop communication, the other is power carrier communication, the priority of the RS485 communication or the current loop communication is set by the air conditioner to be greater than that of the current carrier communication, and when the two communication modes are normal in the air conditioner, the RS485 communication or the current loop communication is preferably used as the current communication mode, and the power carrier communication is preferably used as the standby communication mode.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a communication mode between an indoor unit and an outdoor unit of an air conditioner, when the communication mode between the indoor unit and the outdoor unit is RS485 communication and power carrier communication, a MUC (microcontroller) of the indoor unit is connected to a first RS485 module circuit, the first RS485 module circuit is connected to a first protection circuit, the MUC of the outdoor unit is connected to a second RS485 module circuit, the second RS485 module circuit is connected to a second protection circuit, the first protection circuit is connected to the second protection circuit through an RS485 communication line, that is, the first RS485 module circuit, the first protection circuit, the second protection circuit and the second RS485 module circuit are sequentially connected to form RS485 communication; the indoor unit MUC is connected with the first power carrier communication module, the outdoor unit MUC is connected with the second power carrier communication module, the second power carrier communication module is connected with the first power carrier communication module through a power supply circuit, the power supply circuit is respectively connected with the indoor unit MUC and the outdoor unit MUC, the power supply circuit is composed of a first power supply module and a second power supply module, and the first power supply module is connected with the second power supply module through a zero line and a live wire. In addition, switch circuits are arranged between the indoor unit MUC and the first RS485 module circuit, between the outdoor unit MUC and the second RS485 module circuit, between the indoor unit MUC and the first power carrier communication module circuit and between the outdoor unit MUC and the second power carrier communication module circuit, relays are arranged on the switch circuits, and the indoor unit MUC and the outdoor unit MUC are in RS485 communication or power carrier communication through the switch circuits in a closed mode.
Referring to fig. 4, fig. 4 is another schematic structural diagram of a communication mode between an indoor unit and an outdoor unit of an air conditioner, when the communication mode between the indoor unit and the outdoor unit is current loop communication, a MUC (microcontroller) of the indoor unit is connected to a first optical coupling circuit, the first optical coupling circuit is connected to a first protection circuit, the MUC of the outdoor unit is connected to a second optical coupling circuit, the second optical coupling circuit is connected to a second protection circuit, and the first protection circuit is connected to the second protection circuit through a communication line, that is, the first optical coupling circuit, the first protection circuit, the second protection circuit and the second optical coupling circuit are sequentially connected to form current loop communication; the indoor unit MUC is connected with a first power carrier communication module, the outdoor unit MUC is connected with a second power carrier communication module, the second power carrier communication module is connected with the first power carrier communication module through a power supply circuit, the power supply circuit is respectively connected with the indoor unit MUC and the outdoor unit MUC, the power supply circuit is composed of a first power supply module and a second power supply module, and the first power supply module is connected with the second power supply module through a zero line and a live wire; in addition, the first protection circuit and the second protection circuit can provide current for current loop communication through the zero lines of the first power supply module and the second power supply module.
In the technical scheme provided by the embodiment, when a first heat exchange device of the air conditioner does not receive transmission of a second heat exchange device within a first preset time period, the first heat exchange device is controlled to send the check code to the second heat exchange device through a current communication mode, and if the second heat exchange device does not receive the check code within a second preset time period, the current communication mode is switched to a standby communication mode, so that the condition that the air conditioner cannot operate due to a communication terminal is avoided, the reliability of communication between an internal machine and an external machine of the air conditioner is improved, and the user experience is improved.
Referring to fig. 5, fig. 5 is a second embodiment of the method for switching communication modes of an air conditioner according to the present invention, and based on the above embodiment, before step S10, the method further includes:
step S40, controlling the first heat exchange device to sequentially send check codes to the second heat exchange device through different communication modes to detect whether various communication modes are normal, wherein after the current communication mode between the first heat exchange device and the second heat exchange device is maintained for a third time, the current communication mode between the first heat exchange device and the second heat exchange device is switched to other undetected communication modes;
after the air conditioner is connected with a power supply, and when a starting instruction is received, the air conditioner can detect whether each communication mode is normal communication one by one, specifically, a communication mode is randomly set in a control room of the air conditioner to send a check code to an outdoor unit, when the outdoor unit receives the check code in a third preset time (the third preset time is any suitable value), the communication mode is judged to be normal, and if the outdoor unit does not receive the check code in the preset time, the communication mode is judged to be abnormal; of course, the air conditioner can also control the outdoor unit to send the check code to the indoor unit to judge whether the communication mode is normal; and combining the judgment of the current communication mode, switching the current communication mode into other undetected communication modes for detection, namely switching the current communication mode into other undetected communication modes at intervals of a third preset time length, and detecting whether each communication mode is normal or not in sequence by analogy.
Step S50, when a normal communication mode exists, determining a default communication mode and a standby communication mode between the first heat exchange device and the second heat exchange device according to a preset priority of the normal communication mode, wherein when the second heat exchange device receives the check code within a third preset time period, it is determined that the current communication mode between the first heat exchange device and the second heat exchange device is normal;
when the air conditioner determines that the communication mode with normal communication exists, the communication mode with the normal communication with the highest priority is set as a default communication mode, and other normal communication modes are standby communication modes.
Step S60, setting the communication mode between the indoor unit and the outdoor unit as the default communication mode;
and determining a default communication mode at the air conditioner, setting the communication mode between the indoor unit and the outdoor unit as the default communication mode, and starting to operate.
Certainly, when an abnormal communication mode exists, generating fault information corresponding to the abnormal communication mode, wherein when the second heat exchange device does not receive the check code within a third preset time, it is determined that the current communication mode between the first heat exchange device and the second heat exchange device is abnormal, so as to prompt a user; further, the air conditioner stores the fault information, and when the abnormal communication mode of the air conditioner can be normally communicated after being maintained, the corresponding fault information is deleted, so that the fault information can be directly called to determine the abnormal communication mode when the air conditioner operates next time, whether the abnormal communication mode is normal or not does not need to be detected, and the fault information is output to remind a user of maintaining the abnormal communication mode of the air conditioner again.
Certainly, when all communication modes of the air conditioner are abnormal, the air conditioner can generate prompt information of communication faults and output the prompt information to remind a user that the communication of the air conditioner is unavailable; at present, when the communication mode of the air conditioner is abnormal, fault information of the abnormal communication mode is generated and stored, so that the air conditioner is prevented from switching the current communication mode to the abnormal communication mode when the current communication mode is in fault.
In the technical scheme provided by this embodiment, when the air conditioner receives a start-up instruction, the first heat exchange device is controlled to sequentially send check codes to the second heat exchange device through different communication modes to detect whether various communication modes are normal or not, detect whether various communication modes between the first heat exchange device and the second heat exchange device are normal or not, and determine a default communication mode and a standby communication mode between the indoor unit and the outdoor unit according to the priority of the communication modes of the normal communication, so that the air conditioner can accurately operate in the normal communication mode, and the reliability of the communication between the indoor unit and the indoor unit of the air conditioner is improved.
The invention also provides an air conditioner, which comprises at least one indoor unit, an outdoor unit, a processor, a memory and an air conditioner communication mode switching program which is stored on the memory and can be operated on the processor; the indoor unit and the outdoor unit are provided with a plurality of communication modes, and the switching program of the air conditioner communication mode is executed by the processor to realize the steps of the switching method of the air conditioner communication mode in the embodiment.
The invention also provides a readable storage medium, which includes a program for switching the communication mode of the air conditioner, and when the program for switching the communication mode of the air conditioner is executed by a processor, the steps of the method for switching the communication mode of the air conditioner according to the above embodiment are implemented.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. 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 (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A switching method of communication modes of an air conditioner is characterized in that a plurality of communication modes are arranged between a first heat exchange device and a second heat exchange device of the air conditioner, wherein when the first heat exchange device is an indoor unit, the second heat exchange device is an outdoor unit; when the first heat exchange device is an outdoor unit, the second heat exchange device is an indoor unit; in the air conditionerWhen communication mode is preset communication and power line carrier communication, preset communication is including the first communication circuit, first protection circuit, second protection circuit and the second communication circuit that connect gradually, power line carrier communication includes first power line carrier communication module and connects the second power line carrier communication module of first power line carrier communication module, it is RS485 communication or current loop communication to predetermine communicationThe switching method of the communication mode of the air conditioner comprises the following steps:
the method comprises the steps that a first heat exchange device does not receive information transmitted by a second heat exchange device within a first preset time length, and the current communication mode of the first heat exchange device and the second heat exchange device is determined;
controlling the first heat exchange device to send a check code to the second heat exchange device through a current communication mode;
and when the second heat exchange device does not receive the check code within a second preset time, switching the current communication mode into a standby communication mode.
2. The method for switching communication modes of an air conditioner according to claim 1, wherein the communication modes between the first heat exchange device and the second heat exchange device include at least two of current loop communication, RS485 communication and power carrier communication.
3. The method for switching communication modes of an air conditioner according to claim 1, wherein the step of determining the current communication mode between the first heat exchange device and the second heat exchange device is preceded by the step of:
when a starting-up instruction is received, the first heat exchange device is controlled to sequentially send check codes to the second heat exchange device through different communication modes to detect whether various communication modes are normal or not, wherein after the current communication mode between the first heat exchange device and the second heat exchange device is maintained for a third time, the current communication mode between the first heat exchange device and the second heat exchange device is switched to other undetected communication modes;
when a normal communication mode exists, determining a default communication mode and a standby communication mode between the first heat exchange device and the second heat exchange device according to a preset priority of the normal communication mode, wherein when the second heat exchange device receives the check code within a third preset time period, the current communication mode between the first heat exchange device and the second heat exchange device is judged to be normal;
and setting the communication mode between the first heat exchange device and the second heat exchange device as the default communication mode.
4. The method for switching communication modes of an air conditioner according to claim 3, wherein after the step of detecting whether the various communication modes are normal, the method further comprises:
when an abnormal communication mode exists, generating fault information corresponding to the abnormal communication mode, wherein when the second heat exchange device does not receive the check code within a third preset time, the second heat exchange device judges that the current communication mode between the first heat exchange device and the second heat exchange device is abnormal;
and outputting the fault information.
5. The air conditioner communication mode switching method according to any one of claims 1 to 4, further comprising, after the step of switching the current communication mode to the standby communication mode:
and generating and outputting fault information corresponding to the current communication mode.
6. The method for switching communication modes of an air conditioner according to any one of claims 1 to 4, wherein after the step of controlling the first heat exchange device to send the check code to the second heat exchange device through the current communication mode, the method further comprises:
when the second heat exchange device does not receive the check code within a second preset time length, detecting whether each standby communication mode contains fault information;
and when detecting that each backup communication mode contains corresponding fault information, outputting the fault information and stopping operation, wherein when an abnormal backup communication mode exists, the fault information corresponding to the abnormal backup communication mode is generated and stored.
7. An air conditioner is characterized by comprising at least one indoor unit, an outdoor unit, a processor, a memory and an air conditioner communication mode switching program which is stored on the memory and can run on the processor; when the communication mode of the air conditioner is preset communication and power carrier communication, the preset communication comprises a first communication circuit, a first protection circuit, a second protection circuit and a second communication circuit which are sequentially connected, the power carrier communication comprises a first power carrier communication module and a second power carrier communication module connected with the first power carrier communication module, and the preset communication is RS485 communication or current loop communication; the steps of the method for switching air conditioner communication modes according to any one of claims 1 to 6 are realized when the processor executes the program for switching air conditioner communication modes.
8. A readable storage medium, characterized in that the readable storage medium comprises a switching program of the air conditioner communication mode, and the switching program of the air conditioner communication mode is executed by a processor to realize the steps of the switching method of the air conditioner communication mode according to any one of claims 1 to 6.
CN201711382882.2A 2017-12-18 2017-12-18 Air conditioner communication mode switching method, air conditioner and readable storage medium Active CN108151228B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711382882.2A CN108151228B (en) 2017-12-18 2017-12-18 Air conditioner communication mode switching method, air conditioner and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711382882.2A CN108151228B (en) 2017-12-18 2017-12-18 Air conditioner communication mode switching method, air conditioner and readable storage medium

Publications (2)

Publication Number Publication Date
CN108151228A CN108151228A (en) 2018-06-12
CN108151228B true CN108151228B (en) 2021-04-09

Family

ID=62464394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711382882.2A Active CN108151228B (en) 2017-12-18 2017-12-18 Air conditioner communication mode switching method, air conditioner and readable storage medium

Country Status (1)

Country Link
CN (1) CN108151228B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113454404B (en) * 2019-02-26 2022-06-21 三菱电机株式会社 Electric device and air conditioner
CN113531792A (en) * 2021-07-27 2021-10-22 广东美的制冷设备有限公司 Communication mode switching method of air conditioner, air conditioner and storage medium
CN116895147B (en) * 2023-06-21 2024-03-12 清华大学 Road condition monitoring method, device, sensor and computer equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104390306A (en) * 2014-10-24 2015-03-04 珠海格力电器股份有限公司 Air conditioner communication system, air conditioner communication method and air conditioner
CN106440052A (en) * 2016-11-03 2017-02-22 广东美的制冷设备有限公司 Air conditioner and control method thereof
CN106440197A (en) * 2016-09-23 2017-02-22 广东美的制冷设备有限公司 Control connecting box for air conditioner and air conditioner detection system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103837820B (en) * 2012-11-27 2016-07-06 广东美的制冷设备有限公司 The communication detecting method of a kind of current-loop communication circuit and system
CN203204405U (en) * 2013-03-01 2013-09-18 常州联力自动化科技有限公司 A mining intrinsically safe controller
CN105526647A (en) * 2015-12-11 2016-04-27 广东美的暖通设备有限公司 Multi-split system and networking method thereof
KR101934095B1 (en) * 2017-05-11 2018-12-31 엘지전자 주식회사 Air conditioner

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104390306A (en) * 2014-10-24 2015-03-04 珠海格力电器股份有限公司 Air conditioner communication system, air conditioner communication method and air conditioner
CN106440197A (en) * 2016-09-23 2017-02-22 广东美的制冷设备有限公司 Control connecting box for air conditioner and air conditioner detection system
CN106440052A (en) * 2016-11-03 2017-02-22 广东美的制冷设备有限公司 Air conditioner and control method thereof

Also Published As

Publication number Publication date
CN108151228A (en) 2018-06-12

Similar Documents

Publication Publication Date Title
CN108088045B (en) Air conditioner communication mode switching method, air conditioner and readable storage medium
CN108151228B (en) Air conditioner communication mode switching method, air conditioner and readable storage medium
EP2879332A1 (en) Communication apparatus, communication relay apparatus and communication system
CN102025562A (en) Path detection method and device
AU2017355023B2 (en) Energy control method and control apparatus for power consumption system
EP2320328B1 (en) Operation mode switching of data card and its control method, device and data card
US20220417052A1 (en) Network configuration terminal, network configuration method for home appliance, and computer-readable storage medium
CN103716901A (en) Method and system used for building connection between apparatuses and related equipment
CN112118300B (en) Cascade device data returning method, device and system and readable storage medium
CN107702274B (en) Terminal control method, device and computer readable storage medium
CN111585797A (en) Ethernet link switching method, device, equipment and computer readable storage medium
CN103222315A (en) Reduced power consumption in a wireless network device
CN111130943A (en) Method for realizing fast ring network switching, switch and computer readable storage medium
CN111805544A (en) Robot control method and device
JP4042790B2 (en) Electrical device and method for determining normal communication function in electrical device
JP2006332949A (en) Communication control method and device thereof
CN105333574A (en) Identification method for connection mode of base station air-conditioning system and base station air-conditioning system
JP2010146363A (en) System switching system of duplex programmable controller
JP2007096859A (en) Communication relay device and communication relay method
US20120161515A1 (en) Method and System for Power-Fail Protection of Communication Equipment, and Power Controller
CN110749032B (en) Operation control method and device, air conditioner and storage medium
JPH0983556A (en) Communication network and detection of fault
CN113852396B (en) Data protection control method, device and system
KR100637948B1 (en) method for processing message of home network system
US20160378126A1 (en) Operation terminal, program, and method

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