Disclosure of Invention
The invention aims to provide an air conditioner communication device and a communication method, which are used for realizing communication between an indoor unit and an outdoor unit without communication lines.
In order to achieve the purpose, the air conditioner communication device provided by the invention adopts the following technical scheme:
an air conditioner communication device comprises an indoor unit communication circuit and an outdoor unit communication circuit, wherein the indoor unit communication circuit comprises an indoor power supply end, a switch circuit unit connected to a power connection line between the indoor power supply end and the outdoor power supply end, and a signal transmission control circuit unit connected with the switch circuit unit, and the switch circuit unit is connected with/disconnected from the power connection line under the control of the signal transmission control circuit unit; the outdoor unit communication circuit comprises the outdoor power supply end and a signal receiving circuit unit connected with the outdoor power supply end; the signal sending control circuit unit controls the on-off state of the switch circuit unit according to the pre-sent communication content, the communication content is transmitted to the signal receiving circuit unit based on the on-off state of the switch circuit unit, and the signal receiving circuit unit receives and identifies the communication content.
In the air conditioner communication device as described above, the switch circuit unit includes a relay unit, and a switch of the relay unit is formed on the power supply line.
In the communication device of the air conditioner, the signal receiving circuit unit comprises the photoelectric coupler, a light emitting end of the photoelectric coupler is connected with the outdoor power supply end, and a light receiving end of the photoelectric coupler outputs a high-low level signal corresponding to the on-off state of the switch circuit unit.
The invention also provides an air conditioner which comprises an indoor unit, an outdoor unit and the air conditioner communication device.
In order to achieve the purpose, the communication method of the air conditioner provided by the invention is realized by adopting the following technical scheme:
an air conditioner communication method, the air conditioner comprising a communication device having an indoor unit communication circuit and an outdoor unit communication circuit, the communication method comprising:
a signal transmission control circuit unit in the indoor unit communication circuit acquires pre-transmitted communication contents, controls the on-off state of a switch circuit unit in the indoor unit communication circuit according to the pre-transmitted communication contents, and transmits the pre-transmitted communication contents based on the on-off state of the switch circuit unit;
a signal receiving circuit unit in the outdoor unit communication circuit receives and identifies the communication content;
the indoor unit communication circuit comprises an indoor power supply end, the switch circuit unit connected to a power supply connecting line between the indoor power supply end and the outdoor power supply end, and the signal transmission control circuit unit connected with the switch circuit unit, wherein the switch circuit unit is connected/disconnected with the power supply connecting line under the control of the signal transmission control circuit unit; the outdoor unit communication circuit comprises the outdoor power supply end and the signal receiving circuit unit connected with the outdoor power supply end.
In the communication method of the air conditioner, before the signal transmission control circuit unit controls the on-off state of the switch circuit unit in the indoor unit communication circuit according to the pre-transmitted communication content, the following process is performed: the signal sending control circuit unit controls the on-off state of the switch circuit unit according to the known communication starting identifier, and transmits the communication starting identifier based on the on-off state of the switch circuit unit;
and after receiving and identifying the communication start identifier, the signal receiving circuit unit transfers to a communication processing process and executes a process of receiving and identifying the communication content.
In the communication method of the air conditioner, the signal receiving circuit unit is switched to the communication processing process after the operating condition of the air conditioner meets the preset condition and the communication start identifier is identified.
The air conditioner communication method is characterized in that the communication content is represented by a byte stream; and the signal receiving circuit unit identifies the communication content represented by the byte stream according to the received high and low level signals.
According to the communication method of the air conditioner, the signal sending control circuit unit sequentially controls the on-off state of the switch circuit unit according to the set bit interval time and the on-off state of the switch circuit unit represented by the bit in the byte stream; and the signal receiving circuit unit sequentially acquires high and low level signals according to the set bit interval time, identifies bits in the byte stream based on the known corresponding relation between the high and low level signals and the bits of the byte stream, and further identifies the communication content represented by the byte stream.
In the communication method of the air conditioner, the signal receiving circuit unit sequentially obtains the high and low level signals according to the set bit interval time, and specifically includes:
in the set bit interval time, if the signal receiving circuit unit receives more than a set number of high-level pulse signals, determining the signals received in the set bit interval time as high-level signals; otherwise, determining that the signal received in the set bit interval time is a low level signal.
Compared with the prior art, the invention has the advantages and positive effects that: the invention provides an air conditioner communication device and a communication method, wherein a signal sending control circuit unit and a switch circuit unit positioned on a power supply connecting line between an indoor power supply end and an outdoor power supply end are arranged in an indoor unit communication circuit, a signal receiving circuit unit is arranged in an outdoor unit communication circuit, the signal sending control circuit unit is used for controlling the on-off state of the switch circuit unit according to pre-sent communication contents, the communication contents are transmitted to the signal receiving circuit unit based on the on-off state of the switch circuit unit, and the signal receiving circuit unit receives and identifies the communication contents, so that the communication between the indoor unit and the outdoor unit is realized. By adopting the device and the method provided by the invention, the communication between the indoor unit and the outdoor unit is realized by utilizing the power line and the corresponding circuit unit, the communication between the indoor unit and the outdoor unit under the condition of no communication line is realized, the function which can be finished based on the communication between the indoor unit and the outdoor unit can be realized, and the performance of the air conditioner is improved. In addition, the device provided by the invention has simple structure, and the method is effective and reliable, thereby completing the complex performance of the air conditioner at lower cost.
Other features and advantages of the present invention will become more apparent from the following detailed description of the invention when taken in conjunction with the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings and examples.
Referring to fig. 1, a block diagram of an embodiment of an air conditioner communication device according to the present invention is shown.
As shown in fig. 1, the air conditioner communication device of the embodiment includes an indoor unit communication circuit 100 and an outdoor unit communication circuit 200. The indoor unit communication circuit 100 comprises an indoor power supply end 11, a switch circuit unit 12 and a signal transmission control circuit unit 13; the outdoor unit communication circuit 200 includes an outdoor power supply terminal 21 and a signal receiving circuit unit 22. The indoor unit communication circuit 100 and the outdoor unit communication circuit 200 are connected by a power line.
Specifically, the switch circuit unit 12 is connected to a power supply line between the indoor unit communication circuit 100 and the outdoor unit communication circuit 200, and the signal transmission control circuit unit 13 is connected to the switch circuit unit 12. The signal transmission control circuit unit 13 controls the on/off state of the switch circuit unit 12 according to the pre-transmitted communication content, and transmits the communication content on the power supply line based on the on/off state of the switch circuit unit 21. In the outdoor unit communication circuit 200, the signal receiving circuit unit 22 is connected to the outdoor power supply terminal 21, and the signal receiving circuit unit 22 receives and recognizes the communication content transmitted from the power supply line. Moreover, the switching circuit unit 12 is implemented by a structure having a certain hysteresis when turned on and off, so as to ensure accurate transmission of communication contents.
More specific communication process refer to the following description of the communication method.
With the air conditioner communication device provided in this embodiment, the signal transmission control circuit unit 13 controls the on-off state of the switch circuit unit 12 according to the pre-transmitted communication content, the communication content is transmitted to the signal receiving circuit unit 22 based on the on-off state of the switch circuit unit 12, and the signal receiving circuit unit 22 receives and identifies the communication content, thereby realizing communication between the indoor unit and the outdoor unit. By adopting the communication device of the embodiment, the communication between the indoor unit and the outdoor unit is realized by utilizing the power line and the corresponding circuit unit, the communication between the indoor unit and the outdoor unit under the condition of no communication line is realized, the function which can be completed based on the communication between the indoor unit and the outdoor unit can be realized, and the performance of the air conditioner is improved. Also, the apparatus of this embodiment is simple in structure, thereby accomplishing complicated air conditioner performance at a low cost.
Fig. 2 is a schematic diagram showing a specific circuit of the communication circuit of the indoor unit based on the block diagram of fig. 1, and fig. 3 is a schematic diagram showing a specific circuit of the communication circuit of the outdoor unit based on the block diagram of fig. 1.
Specifically, in the circuit schematic shown in fig. 2, the switching circuit unit is implemented using a relay unit. Specifically, AC _ L1 and AC _ N1 are power supply lines from the indoor power supply terminal, and are also power supply lines connected to the outdoor power supply terminal for supplying power to the outdoor unit. The switch K1 of the relay unit is formed on the power supply line, specifically, on the power supply line AC _ L1. Further, the relay unit is controlled by a signal transmission control circuit unit (not shown in the figure), and the switch K1 is closed or opened under the control of the signal transmission control circuit unit. When the switch K1 is closed, the power supply connection AC _ L1 is connected to supply power to the outdoor unit; when the switch K1 is turned off, the power supply line AC _ L1 is turned off, and power is no longer supplied to the outdoor unit.
In the circuit schematic shown in fig. 3, the signal receiving circuit unit includes a photo-coupler U1, light emitting terminals of the photo-coupler U1 are connected to the outdoor power supply terminals AC _ L and AC _ N, respectively, and a light receiving terminal of U1 outputs a high-low level signal corresponding to the on-off state of the switching circuit unit.
Specifically, the cathode of the diode, which is the light emitting end of the photocoupler U1, is connected to the outdoor power supply terminal AC _ L through the resistor R1, the capacitor C1, and the diode D1, and the anode of the diode is connected to the outdoor power supply terminal AC _ N through the resistors R2 to R10. An emitter of a triode serving as a light receiving end of the photoelectric coupler U1 serves as a receiving signal output end RX, and is grounded GND through a pull-down resistor R11 on one hand, and high and low level signals are output through a resistor R12 on the other hand; and the collector electrode of the triode is connected with a power supply VCC. The signal output from the reception signal output terminal RX is received by the other circuit part of the signal reception circuit unit, and then the communication content is recognized.
For the air conditioner communication device formed by the indoor unit communication circuit with the circuit structure of fig. 2 and the outdoor unit communication circuit with the structure of fig. 3, the signal transmission process is briefly described as follows:
if the K1 is disconnected, the power line AC _ L1 is disconnected, the outdoor power supply end AC _ L is powered down, the triode at the light receiving end of the photoelectric coupler U1 is cut off, and the receiving signal output end RX outputs a low-level signal.
If the K1 is closed, the power line AC _ L1 is communicated, the outdoor power supply end AC _ L is electrified, the triode at the light receiving end of the photoelectric coupler U1 is conducted, and the receiving signal output end RX outputs a high-level signal.
Therefore, the high level signal or the low level signal outputted from the reception signal output terminal RX corresponds to the closing and conduction of the switch K1 in the switch circuit unit. Therefore, the communication content corresponding to the on-off state of the switch circuit unit can be sent by the indoor unit terminal through controlling the switch circuit unit, so that the communication content corresponding to the on-off state of the switch circuit unit can be identified through the level signal output by the receiving signal output end RX at the outdoor unit terminal, and further the communication between the indoor unit and the outdoor unit is realized. More specific communication process refer to the following description of the communication method.
Referring to fig. 4, a flow chart of an embodiment of a communication method of an air conditioner according to the present invention is shown. In this embodiment, the air conditioner includes an indoor unit communication circuit and an outdoor unit communication circuit, the indoor unit communication circuit includes an indoor power supply terminal, a switching circuit unit connected to a power connection between the indoor power supply terminal and the outdoor power supply terminal, and a signal transmission control circuit unit connected to the switching circuit unit; the outdoor unit communication circuit comprises an outdoor power supply end and a signal receiving circuit unit connected with the outdoor power supply end. More specifically, please refer to the structure shown in fig. 1, fig. 2 and fig. 3.
Based on the communication circuit, the method for realizing the communication of the air conditioner in the embodiment comprises the following processes:
step 41: the signal transmission control circuit unit in the indoor unit communication circuit acquires the pre-transmitted communication content, controls the on-off state of the switch circuit unit in the indoor unit communication circuit according to the pre-transmitted communication content, and transmits the pre-transmitted communication content based on the on-off state of the switch circuit unit.
The pre-sent communication content is sent by a main control circuit of the indoor unit and is transmitted to a signal sending control circuit unit. Of course, the signal transmission control circuit unit may also be implemented by a main control circuit of the indoor unit. The communication content corresponds to the on-off state of the switch circuit unit one by one, the signal transmission control circuit unit controls the on-off state of the switch circuit unit according to the communication content to be transmitted, and the communication content to be transmitted is transmitted on the power line based on the on-off state of the switch circuit unit. The communication contents transmitted on the power line are transmitted to the outdoor unit through the power line.
Step 42: a signal receiving circuit unit in the outdoor unit communication circuit receives and identifies communication contents.
The communication content transmitted by the indoor unit through the power line is reflected to the outdoor unit communication circuit and is received by a signal receiving circuit unit in the outdoor unit communication circuit; the outdoor unit communication circuit identifies the communication content corresponding to the received signal according to the known corresponding relation between the received signal and the communication content, thereby realizing the communication between the indoor unit and the outdoor unit. Based on the communication between the indoor unit and the outdoor unit, the indoor unit and the outdoor unit can work cooperatively to complete the function which can be completed based on the communication between the indoor unit and the outdoor unit, and the running performance of the air conditioner is improved.
Because there is no communication line between the indoor unit communication circuit and the outdoor unit communication circuit, the communication content is transmitted only through the power line, in order to ensure that the outdoor unit communication circuit accurately receives the communication content, the signal transmission control circuit unit executes the following process before controlling the on-off state of the switch circuit unit in the indoor unit communication circuit according to the pre-transmitted communication content: the signal sending control circuit unit controls the on-off state of the switch circuit unit according to the known communication starting identifier, and transmits the communication starting identifier based on the on-off state of the switch circuit unit. And after the signal receiving circuit unit in the outdoor unit communication circuit receives and identifies the communication start identifier, the outdoor unit communication circuit unit transfers to a communication processing process and executes the process of receiving and identifying the communication content.
On the other hand, in order to further ensure the accuracy of communication between the internal machine and the external machine through the power line and avoid omission or mistaken receiving of communication contents, the signal receiving circuit unit is switched to the communication processing process only after the operation condition of the air conditioner meets the preset condition and the communication start identifier is identified. If the signal receiving circuit unit does not recognize the communication start flag, or the communication start flag is recognized, but the air conditioner operation condition does not satisfy the preset condition, the communication processing procedure is not performed. As a preferred embodiment, the preset condition for entering the communication processing is that the power-on time of the outdoor unit does not exceed the power-on limit time. For example, the power-up limit time is 30 s. That is, the communication between the indoor unit and the outdoor unit only occurs within the power-on limit time of the outdoor unit not exceeding 30S, and the communication between the indoor unit and the outdoor unit is not performed outside the power-on limit time. And if the outdoor unit signal receiving circuit unit identifies the communication start identifier when the power-on time of the outdoor unit does not exceed 30s, determining that the indoor unit needs to transmit communication contents, and switching to a communication processing process to receive the communication contents. If the communication start mark is recognized after the power-on time of the outdoor unit exceeds 30s, the communication processing procedure for receiving and recognizing the communication content is not executed.
In this embodiment, the communication content is preferably represented by a byte stream, and the signal receiving circuit unit identifies the communication content represented by the byte stream according to the received high and low level signals. The signal transmission control circuit unit sequentially controls the on-off state of the switch circuit unit according to the set bit interval time and the on-off state of the switch circuit unit represented by the bit in the byte stream; the signal receiving circuit unit sequentially acquires high and low level signals according to the set bit interval time, identifies bits in the byte stream based on the known corresponding relation between the high and low level signals and the bits of the byte stream, and further identifies the communication content represented by the byte stream. The set bit interval is preset, and the indoor unit and the outdoor unit are known, for example, the set bit interval is 120 ms.
For the communication start mark, the on or off of the switch circuit unit is preferably controlled and the duration is continuously set; for the signal receiving circuit unit in the outdoor unit communication circuit, the signal receiving circuit unit receives a high level signal or a low level signal corresponding to the on or off state of the switch circuit unit within the set duration.
Considering that interference may be generated in the signal transmission process, the signal receiving circuit unit sequentially obtains high and low level signals according to the set bit interval time, and specifically includes:
in a set bit interval time, if the signal receiving circuit unit receives more than a set number of high-level pulse signals, determining the signals received in the set bit interval time as high-level signals; otherwise, determining that the signal received in the set bit interval time is a low level signal.
For example, in conjunction with the schematic circuit diagrams shown in fig. 2 and 3, the communication content includes 1 byte and 8 bits, and the "0" and "1" of the bits respectively indicate the on and off of the switch circuit unit. When the switch circuit unit is switched off, the signal received by the signal receiving circuit unit is a low level signal, and when the switch circuit unit is switched on, the signal received by the signal receiving circuit unit is a high level signal. The communication start flag is defined as that the switch circuit unit is turned off for 240ms, and then the communication start flag received by the signal receiving circuit unit is a low level signal lasting for 240 ms. If the communication contents to be transmitted by the indoor unit are "00000101", it indicates "low temperature cooling". Then, within 30s after the outdoor unit is powered on, the signal sending control circuit unit in the communication circuit of the indoor unit controls the switch circuit unit to be disconnected for 240ms so as to generate a communication start identifier; then, the switching circuit unit is controlled to be turned off for 120ms, turned on for 120ms, turned off for 120ms, and turned on for 120ms, with 120ms as the bit interval time. Correspondingly, if a low level signal lasting for 240ms is detected and recognized in 30s after the outdoor unit is powered on, the signal receiving circuit unit in the outdoor unit communication circuit determines that communication is started, and sequentially receives a low level signal lasting for 120ms, a high level signal lasting for 120ms, a low level signal lasting for 120ms, and a high level signal lasting for 120 ms. According to the known correspondence relationship between the high and low level signals and the communication content, the signal receiving circuit unit recognizes that the received communication content is "00000101", which indicates "low temperature cooling". Then, after receiving the communication contents, the outdoor unit enters a "low temperature cooling" operation state.
By combining the delay time of the on-off action of the switch circuit unit and the delay power-down time of the outdoor unit after power-down signal receiving circuit unit and the outdoor unit main control unit, the time length of the communication starting identifier and the set bit interval time of each bit in the communication content byte stream are reasonably selected, and the normal and accurate communication between the indoor unit and the outdoor unit can be ensured.
In the above example, the communication content only includes the communication content actually to be transmitted and related to the action execution. In a more preferred embodiment, the communication content may include not only the communication content actually transmitted and related to the execution of the action, but also check content for the communication content related to the execution of the action. For the transmission of the verification content, reference may be made to a transmission process and method of the communication content related to the execution of the action.
The air conditioner communication device in the embodiment is applied to an air conditioner, and the communication method in the embodiment is operated to realize the communication between the indoor unit and the outdoor unit of the air conditioner under the condition of no communication line.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions.