Current loop communication circuit, communication control method thereof and air conditioner
By setting up power supply units and power supply switches in the indoor and outdoor units of the air conditioner, the power supply unit is controlled to withdraw power from the positive half cycle of the live line, which solves the problem that the current loop communication loop cannot supply power and communicate under the free combination of the indoor and outdoor units of the air conditioner, and improves the freedom of combination and distribution of the air conditioner.
Patent Information
- Application Number
- CN202410018361.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-04
- Publication Date
- 2025-07-04
AI Technical Summary
In the free matching of indoor and outdoor units of air conditioners, the existing zero-fire current ring communication circuit has the problem of inability to supply power and communication.
The indoor unit and outdoor unit of the air conditioner are respectively equipped with power supply units and power supply switches. By controlling the power supply switch, the power supply unit is used to withdraw power from the positive half cycle of the live line, and power is supplied to the current loop communication loop to ensure that the communication is carried out normally.
It solves the problem that the current loop communication loop cannot supply power and communicate under the free combination of indoor units and outdoor units of the air conditioner, and improves the freedom and uniformity of combination.
Smart Images

Figure CN120252140A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of household electrical appliances, and in particular to a current loop communication circuit and a communication control method thereof, and an air conditioner. Background Art
[0002] In the related art, the communication between the indoor unit and the outdoor unit of the air conditioner adopts a zero-live current loop communication circuit. Based on this communication circuit, the effect of two-way communication can be achieved by controlling the time-sharing sending and receiving of the indoor unit and the outdoor unit.
[0003] However, in some application scenarios where the indoor unit and the outdoor unit are freely matched, the zero-live current loop communication circuit in the related art has the problem that the indoor unit and the outdoor unit cannot be powered or cannot communicate after being combined. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems in the related art to a certain extent. To this end, the first purpose of the present invention is to propose a current loop communication circuit, in which a power supply unit and a power supply switch are respectively provided at the first device end and the second device end, and by controlling the two power supply switches, one of the two power supply units is powered from the positive half cycle of the alternating current of the live wire to power the current loop communication loop, thereby solving the problem that the current loop communication loop cannot be powered and cannot communicate in the application scenario where the first device end and the second device end are freely matched.
[0005] A second objective of the present invention is to provide a communication control method for a current loop communication circuit.
[0006] The third object of the present invention is to provide an air conditioner.
[0007] A fourth object of the present invention is to provide an air conditioner.
[0008] A fifth object of the present invention is to provide an air conditioner.
[0009] To achieve the above-mentioned purpose, an embodiment of the first aspect of the present invention proposes a current loop communication circuit, which is applied to a target device, and the target device includes a first device end and a second device end. The current loop communication circuit includes: a first communication unit, a first power supply unit and a first power supply switch arranged at the first device end; a second communication unit, a second power supply unit and a second power supply switch arranged at the second device end; the first communication unit and the second communication unit are connected through a signal line and a neutral line to form a current loop communication loop to realize communication between the first device end and the second device end; during communication, one of the first power supply unit and the second power supply unit is connected to the neutral line and the live line, and the first power supply switch and the second power supply switch are controlled so that one power supply unit draws power from the positive half cycle of the alternating current of the live line to power the current loop communication loop.
[0010] According to the current loop communication circuit of an embodiment of the present invention, the first communication unit, the first power supply unit, and the first power supply switch of the first device end are arranged at the first device end of the target device, and the second communication unit, the second power supply unit, and the second power supply switch of the second device end are arranged at the second device end of the target device. Among them, the first communication unit and the second communication unit are connected through a signal line and a neutral line to form a current loop communication loop to realize communication between the first device end and the second device end. During communication, one of the first power supply unit and the second power supply unit is connected to the neutral line and the live line, and controls the first power supply switch and the second power supply switch, so that one power supply unit draws power from the positive half cycle of the alternating current of the live line to supply power to the current loop communication loop. Thus, the current loop communication circuit is respectively provided with a power supply unit and a power supply switch at the first device end and the second device end. By controlling the two power supply switches, one of the two power supply units draws power from the positive half cycle of the alternating current of the live line to supply power to the current loop communication loop, solving the problems that the current loop communication loop cannot supply power and cannot communicate in the free combination application scenarios of the first device end and the second device end.
[0011] In addition, the current loop communication circuit according to the above embodiment of the present invention may further have the following additional technical features:
[0012] According to an embodiment of the present invention, the circuit structures of the first power supply unit and the second power supply unit are the same. Among them, the first power supply unit includes: a diode, the anode of the diode is connected to the live line; an energy storage capacitor, the positive electrode of the energy storage capacitor is connected to the cathode of the diode, and the negative electrode of the energy storage capacitor is connected to the neutral line.
[0013] According to an embodiment of the present invention, the first power supply unit further includes: a zener diode, the anode of the zener diode is connected to the negative electrode of the energy storage capacitor, and the cathode of the zener diode is connected to the positive electrode of the energy storage capacitor; a first resistor, one end of the first resistor is connected to the positive electrode of the energy storage capacitor, and the other end of the first resistor is connected to the negative electrode of the energy storage capacitor; a second resistor, one end of the second resistor is connected to one end of the first resistor; a third resistor, one end of the third resistor is connected to the other end of the second resistor, and the other end of the third resistor is connected to the cathode of the diode.
[0014] According to an embodiment of the present invention, the first power supply unit further includes: a first capacitor, the first capacitor is connected in parallel with the energy storage capacitor.
[0015] According to an embodiment of the present invention, the first power supply switch and the second power supply switch are respectively connected in parallel with the corresponding energy storage capacitor.
[0016] According to an embodiment of the present invention, the circuit structures of the first communication unit and the second communication unit are the same. Among them, the first communication unit includes: a signal receiving subunit, the first input end of the signal receiving subunit is connected to one end of the first resistor, and is configured to receive a signal sent by the second device end based on the current in the current loop communication loop; a signal sending subunit, the first output end of the signal sending subunit is connected to the second input end of the signal receiving subunit, and the second output end of the signal sending subunit is connected to the signal line, and is configured to control the current loop communication loop to generate a current to send a signal to the second device end.
[0017] According to an embodiment of the present invention, the signal receiving subunit allows the current loop communication loop to have different current directions, so as to allow one of the first power supply unit and the second power supply unit to draw power from the positive half cycle of the alternating current of the live wire.
[0018] According to an embodiment of the present invention, the signal receiving subunit includes a bidirectional optocoupler, the first input end of the bidirectional optocoupler is connected to one end of the first resistor, and the second input end of the bidirectional optocoupler is connected to the first output end of the signal sending subunit.
[0019] According to an embodiment of the present invention, the first communication unit further includes: a fourth resistor, one end of the fourth resistor is connected to the first input end of the signal receiving subunit, and the other end of the fourth resistor is connected to the second input end of the signal receiving subunit; a second capacitor, the second capacitor is connected in parallel with the fourth resistor; a third capacitor, one end of the third capacitor is connected to the first input end of the signal receiving subunit, and the other end of the third capacitor is connected to the second output end of the signal sending subunit; a fifth resistor, one end of the fifth resistor is connected to the second output end of the signal sending subunit, and the other end of the fifth resistor is connected to the signal line; a fourth capacitor, one end of the fourth capacitor is connected to the other end of the fifth resistor; a sixth resistor, one end of the sixth resistor is connected to the other end of the fourth capacitor, and the other end of the sixth resistor is connected to the other end of the first resistor.
[0020] To achieve the above object, an embodiment of the second aspect of the present invention provides an air conditioner, including the above-mentioned current loop communication circuit.
[0021] According to the air conditioner of the embodiment of the present invention, based on the above-mentioned current loop communication circuit, the problem that the indoor unit and the outdoor unit cannot be powered and communicated after being combined in the scenario of freely matching the indoor unit and the outdoor unit is solved, and the freedom and compatibility of the combination of the indoor unit and the outdoor unit of the air conditioner are improved.
[0022] To achieve the above object, an embodiment of the second aspect of the present invention provides a communication control method for a current loop communication circuit, which is applied to the above-mentioned current loop communication circuit. The method includes: controlling the first power supply switch and the second power supply switch so that one of the first power supply unit and the second power supply unit draws power from the positive half-cycle of the alternating current of the live wire to supply power to the current loop communication loop; controlling the first communication unit and the second communication unit to transmit and receive signals in a first manner to determine the communication state of the current loop communication loop; and when the communication state is a normal state, determining that communication is established between the first device end and the second device end.
[0023] According to the communication control method of the current loop communication circuit of the embodiment of the present invention, first, the first power supply switch and the second power supply switch are controlled so that one of the first power supply unit and the second power supply unit draws power from the positive half-cycle of the alternating current of the live wire to supply power to the current loop communication loop, and the first communication unit and the second communication unit are controlled to transmit and receive signals in a first manner to determine the communication state of the current loop communication loop, and when the communication state is a normal state, determining that communication is established between the first device end and the second device end. Thus, by controlling the power supply switches provided at two device ends, the method enables one of the two power supply units to supply power to the current loop communication loop, and determines the communication establishment situation between the two device ends according to the communication state of the current loop communication loop to ensure normal communication between the two device ends.
[0024] In addition, the communication control method of the current loop communication circuit according to the above embodiment of the present invention may further have the following additional technical features:
[0025] According to an embodiment of the present invention, the communication control method of the current loop communication circuit further includes: when the communication state is an abnormal state, controlling the first power supply switch and the second power supply switch so that the other of the first power supply unit and the second power supply unit draws power from the positive half-cycle of the alternating current of the live wire to supply power to the current loop communication loop; controlling the first communication unit and the second communication unit to transmit and receive signals in a second manner to determine the communication state of the current loop communication loop; and when the communication state is a normal state, determining that communication is established between the first device end and the second device end.
[0026] According to an embodiment of the present invention, when a first power supply unit is the power supply unit, the first communication unit and the second communication unit are controlled in a first manner to perform signal transmission and reception to determine the communication state of the current loop communication loop, including: controlling the second device end to send a first preset signal; obtaining a first reception waiting duration for the first device end to receive the first preset signal, and when the first reception waiting duration is less than a first preset duration, determining that the communication state of the current loop communication loop is normal; or obtaining a first communication waiting duration for the second device end to receive the response signal from the first device end, and when the first communication waiting duration is less than a second preset duration, determining that the communication state of the current loop communication loop is normal; or obtaining the first reception waiting duration and the first communication waiting duration, and when the first reception waiting duration is less than the first preset duration or the first communication waiting duration is less than the second preset duration, determining that the communication state of the current loop communication loop is normal.
[0027] According to an embodiment of the present invention, when another power supply unit is the second power supply unit, the first communication unit and the second communication unit are controlled in a second manner to perform signal transmission and reception to determine the communication state of the current loop communication loop, including: controlling the first device end to send a second preset signal; obtaining a second reception waiting duration for the second device end to receive the second preset signal, and when the second reception waiting duration is less than a third preset duration, determining that the communication state of the current loop communication loop is normal; or obtaining a second communication waiting duration for the first device end to receive the response signal from the second device end, and when the second communication waiting duration is less than a fourth preset duration, determining that the communication state of the current loop communication loop is normal; or obtaining the second reception waiting duration and the second communication waiting duration, and when the second reception waiting duration is less than the third preset duration or the second communication waiting duration is less than the fourth preset duration, determining that the communication state of the current loop communication loop is normal.
[0028] To achieve the above object, an embodiment of the fourth aspect of the present invention provides an air conditioner, including: a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, the communication control method of the above current loop communication circuit is implemented.
[0029] In the air conditioner according to the embodiment of the present invention, when the processor executes the program, the communication control method of the above current loop communication circuit is implemented. Based on the communication control method of the above current loop communication circuit, the communication establishment situation between the indoor unit and the outdoor unit can be judged according to the communication state of the current loop communication loop, so as to ensure the normal communication between the indoor unit and the outdoor unit.
[0030] To achieve the above object, an embodiment of the fifth aspect of the present invention provides an air conditioner, including: an indoor unit and an outdoor unit; a first communication unit, a first power supply unit, and a first power supply switch disposed in the indoor unit; a second communication unit, a second power supply unit, and a second power supply switch disposed in the outdoor unit; the first communication unit and the second communication unit are connected by a signal line and a neutral line to form a current loop communication loop for realizing communication between the indoor unit and the outdoor unit, and during communication, one of the first power supply unit and the second power supply unit is connected to the neutral line and the live line; a controller for controlling the first power supply switch and the second power supply switch so that one power supply unit draws power from the positive half cycle of the alternating current of the live line to supply power to the current loop communication loop.
[0031] For the air conditioner according to the embodiment of the present invention, the first communication unit, the first power supply unit, and the first power supply switch are disposed in the indoor unit, the second communication unit, the second power supply unit, and the second power supply switch are disposed in the outdoor unit, the first communication unit and the second communication unit are connected by a signal line and a neutral line to form a current loop communication loop for realizing communication between the indoor unit and the outdoor unit, and during communication, one of the first power supply unit and the second power supply unit is connected to the neutral line and the live line, and the controller controls the first power supply switch and the second power supply switch so that one power supply unit draws power from the positive half cycle of the alternating current of the live line to supply power to the current loop communication loop. Thus, the air conditioner is respectively provided with a power supply unit and a power supply switch in the indoor unit and the outdoor unit. By controlling the two power supply switches, one of the two power supply units draws power from the positive half cycle of the alternating current to supply power to the current loop communication loop, solving the problems that the current loop communication loop cannot be powered and cannot communicate in the application scenario of freely matching the indoor unit and the outdoor unit, improving the standardization of the communication circuit of the air conditioner product, and improving the matching freedom and compatibility of the combination of the indoor unit and the outdoor unit.
[0032] Additional aspects and advantages of the present invention will be given in part in the following description, become apparent in part from the following description, or be understood through the practice of the present invention. Description of the Drawings
[0033] Figure 1 It is a block diagram of a current loop communication circuit according to an embodiment of the present invention;
[0034] Figure 2 It is a circuit diagram of a current loop communication circuit according to a specific embodiment of the present invention;
[0035] Figure 3 It is a schematic diagram of the current flow direction of a current loop communication circuit according to a specific embodiment of the present invention Figure 1 ;
[0036] Figure 4Schematic diagram of current flow of a current loop communication circuit according to a specific embodiment of the present invention Figure 2 ;
[0037] Figure 5 Block diagram of an air conditioner according to an embodiment of the present invention;
[0038] Figure 6 Communication control method for a current loop communication circuit according to an embodiment of the present invention;
[0039] Figure 7 Communication control method for a current loop communication circuit according to a specific embodiment of the present invention;
[0040] Figure 8 Block diagram of an air conditioner according to an embodiment of the present invention;
[0041] Figure 9 Block diagram of an air conditioner according to an embodiment of the present invention. Detailed implementation manners
[0042] The embodiments of the present invention will be described in detail below. The examples of the embodiments are shown in the drawings, in which the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below by referring to the drawings are exemplary and are intended to explain the present invention, but should not be construed as limiting the present invention.
[0043] The current loop communication circuit, its communication control method, and an air conditioner proposed according to the embodiments of the present invention will be described below with reference to the drawings.
[0044] Figure 1 Block diagram of a current loop communication circuit according to an embodiment of the present invention.
[0045] According to an embodiment of the present invention, the current loop communication circuit is applied to a target device, and the target device includes a first device end 1 and a second device end 2. For example, the target device can be an air conditioner, a medical device, etc., which is not limited herein. The first device end and the second device end are respectively two units that need to communicate. The first device end and the second device end can be in two-way communication or one-way communication, which is not specifically limited.
[0046] For example, when the target device is an air conditioner, the first device end and the second device end are respectively the outdoor unit and the indoor unit of the air conditioner, and the indoor unit and the outdoor unit perform two-way communication through a current loop communication loop.
[0047] Such as Figure 1As shown in the figure, the current loop communication circuit according to the embodiment of the present invention may include: a first communication unit 10, a first power supply unit 20, and a first power supply switch 30 provided at the first device end 1, and a second communication unit 40, a second power supply unit 50, and a second power supply switch 60 provided at the second device end 2.
[0048] Among them, the first communication unit 10 and the second communication unit 40 are connected through a signal line and a zero line to form a current loop communication loop, so as to realize communication between the first device end 110 and the second device end 120. During communication, one of the first power supply unit 20 and the second power supply unit 50 is connected to the zero line and the live line, and controls the first power supply switch 30 and the second power supply switch 60, so that one power supply unit draws power from the positive half cycle of the alternating current of the live line to supply power to the current loop communication loop.
[0049] Specifically, taking the example that the first device end 1 and the second device end 2 perform two-way communication through the current loop communication loop. The signal receiving end and the signal sending end of the first communication unit 10 are respectively connected to the corresponding ports of the control unit of the first device end 1, or connected to the signal transceiver circuit of the first device end 1. The first device end 1 sends a signal through the signal sending end of the first communication unit 10 and receives the signal through the signal receiving end of the first communication unit 10. The signal receiving end and the signal sending end of the second communication unit 40 are respectively connected to the corresponding ports of the control unit of the second device end 2, or connected to the signal transceiver circuit of the second device end 2. The second device end 2 sends a signal through the signal sending end of the second communication unit 40 and receives the signal through the signal receiving end of the second communication unit 40. During the communication process, the first device end 1 and the second device end 2 realize communication based on the serial half-duplex asynchronous communication method, that is, only one-way communication is performed at the same time, and two-way communication is realized by controlling the first device end 1 and the second device end 2 to send and receive at different times.
[0050] The first power supply unit 20 and the second power supply unit 50 can perform operations such as rectifying, stepping down, and stepping up the alternating current in the positive half cycle transmitted from the live line. Specifically, the circuit can be set according to the actual situation to convert the alternating current in the positive half cycle obtained through the live line into the direct current required by the current loop communication loop and supply power to the current loop communication loop.
[0051] The first power supply switch 30 and the second power supply switch 60 are respectively arranged corresponding to the first power supply unit 20 and the second power supply unit 50 to control the realization of the power supply functions of the first power supply unit 20 and the second power supply unit 50. Specifically, when the first power supply switch 30 is closed, the first power supply unit 20 is bypassed. When the first power supply switch 30 is opened, the first power supply unit 20 supplies power to the current loop communication loop. When the second power supply switch 60 is closed, the second communication unit 40 is bypassed. When the second power supply switch 60 is opened, the second communication unit 40 supplies power to the current loop communication loop. It can be understood that during the communication process, one of the first power supply switch 30 and the second power supply switch 60 is in the closed state and the other is in the open state to avoid simultaneous power supply or no power supply. The first power supply switch 30 and the second power supply switch 60 can be normally open relays, or electronic power switch devices such as triodes, IGBTs (Insulated Gate Bipolar Transistors), and MOSFETs (Metal-Oxide-Semiconductor Field-Effect Transistors).
[0052] During the application process, when the first power supply unit 20 is connected to the live wire and the neutral wire and the second power supply unit 50 is not connected to the live wire and the neutral wire, control the first power supply switch 30 to be opened and the second power supply switch 60 to be closed, so that the first power supply unit 20 draws power from the live wire to supply power to the current loop communication loop. When the first power supply unit 20 is not connected to the live wire and the neutral wire and the second power supply unit 50 is connected to the live wire and the neutral wire, then control the first power supply switch 30 to be closed and the second power supply switch 60 to be opened, so that the second power supply unit 50 draws power from the live wire to supply power to the current loop communication loop. If both the first power supply unit 20 and the second power supply unit 60 are connected to the live wire and the neutral wire, then one of the first power supply switch 30 and the second power supply switch 60 can be controlled to be closed and the other to be opened according to the actual situation, so that one power supply unit supplies power to the current loop communication loop to ensure the normal establishment of communication.
[0053] When one of the first power supply unit 20 and the second power supply unit 50 supplies power to the current loop communication loop, there is current flowing through the current loop communication loop formed by the first communication unit 10 and the second communication unit 40, and the first device end 1 and the second device end 2 can communicate based on this current loop communication loop.
[0054] In this embodiment, a first power supply unit 20 and a second power supply unit 50 are respectively arranged at the first device end 1 and the second device end 2. During actual application, based on the power supply connection conditions of the first power supply unit 20 and the second power supply unit 50, the first power supply switch 30 and the second power supply switch 60 can be controlled to enable the power supply unit connected to the neutral line and the live line to draw power, so as to supply power to the current loop communication loop, ensuring normal power supply to the current loop communication loop in the application scenario where the first device end 1 and the second device end 2 are freely matched, preventing the occurrence of no current in the current loop communication loop, and ensuring the normal establishment of communication.
[0055] According to an embodiment of the present invention, the circuit structures of the first power supply unit 20 and the second power supply unit 50 are the same. Among them, the first power supply unit 20 includes: a diode Do, the anode of the diode Do is connected to the live line L; an energy storage capacitor Eo, the positive electrode of the energy storage capacitor Eo is connected to the cathode of the diode Do, and the negative electrode of the energy storage capacitor Eo is connected to the neutral line N.
[0056] Specifically, when the alternating current is in the positive half cycle, the diode Do conducts, and the alternating current flows into the first power supply unit 20. On the one hand, the alternating current in the positive half cycle supplies power to the current loop communication loop, and on the other hand, the alternating current in the positive half cycle charges the energy storage capacitor Eo. When the alternating current is in the negative half cycle, the diode Do is cut off, and the alternating current provided by the live line L cannot flow into the first power supply unit 20. At this time, the energy storage capacitor Eo discharges to continuously supply power to the current loop communication loop.
[0057] Thus, this embodiment realizes power extraction from the positive half cycle of the alternating current based on the diode Do, and discharges the energy storage capacitor Eo in the negative half cycle of the alternating current to achieve continuous power supply.
[0058] Next, the power supply unit of the present application will be described in detail taking the first power supply unit 20 as an example.
[0059] According to an embodiment of the present invention, the first power supply unit 20 further includes: a zener diode ZDo, the anode of the zener diode ZDo is connected to the negative electrode of the energy storage capacitor Eo, and the cathode of the zener diode ZDo is connected to the positive electrode of the energy storage capacitor Eo; a first resistor Ro, one end of the first resistor Ro is connected to the positive electrode of the energy storage capacitor Eo, and the other end of the first resistor Ro is connected to the negative electrode of the energy storage capacitor Eo; a second resistor Ro2, one end of the second resistor Ro2 is connected to one end of the first resistor Ro; a third resistor Ro3, one end of the third resistor Ro3 is connected to the other end of the second resistor Ro2, and the other end of the third resistor Ro3 is connected to the cathode of the diode Do.
[0060] That is to say, the first power supply unit 20 forms a regulated power supply loop based on the zener diode ZDo, the first resistor Ro, the second resistor Ro2, and the third resistor Ro3 to output a stable communication voltage to supply power to the current loop communication loop.
[0061] It should be noted that the second resistor Ro2 and the third resistor Ro3 are large resistors to divide the voltage of the incoming alternating current. The magnitude of the stable voltage value output by the first power supply 20 depends on the specification selection of the zener diode ZDo, and its voltage regulation parameter can be any voltage specification between "5V to 250V", which can be specifically selected according to the actual situation. For example, when the zener diode ZDo adopts a 24V specification, the power supply voltage output by the first power supply unit 20 is 24V.
[0062] According to an embodiment of the present invention, the first power supply unit 50 further includes: a first capacitor Co, and the first capacitor Co is connected in parallel with the energy storage capacitor Eo to implement a filtering operation on the electrical signal.
[0063] According to an embodiment of the present invention, the first power supply switch 30 and the second power supply switch 60 are respectively connected in parallel with the corresponding energy storage capacitor Eo.
[0064] Combined Figure 1 and Figure 2 As shown, the first power supply switch 30 is the switch SWo, and the second power supply switch 60 is the switch SWi. The circuits of the first power supply unit 20 and the second power supply unit 50 are the same.
[0065] Specifically, the first power supply unit 20 is composed of an energy storage capacitor Eo, a zener diode ZDo, a first capacitor Co, a first resistor Ro, a second resistor Ro2, a third resistor Ro3, and a diode Do. Among them, the energy storage capacitor Eo, the zener diode ZDo, the first capacitor Co, and the first resistor Ro form a parallel module. The second power supply unit 50 is composed of an energy storage capacitor Ei, a zener diode ZDi, a first capacitor Ci, a first resistor Ri, a second resistor Ri2, a third resistor Ri3, and a diode Di. Among them, the energy storage capacitor Ei, the zener diode ZDi, the first capacitor Ci, and the first resistor Ri form a parallel module.
[0066] Taking the first power supply unit 20 as an example, when the control switch SWo is closed, the first power supply unit 20 is bypassed by the switch SWo. When the control switch SWo is open, the power supply taking circuit of the first power supply unit 20 is: in the positive half cycle of the alternating current, from the live wire L → diode Do → third resistor Ro3 → second resistor Ro2 → parallel module (energy storage capacitor Eo, zener diode ZDo, first capacitor Co, first resistor Ro) → neutral wire N.
[0067] According to an embodiment of the present invention, the circuit structures of the first communication unit 10 and the second communication unit 40 are the same. Among them, the first communication unit 10 includes: a signal receiving subunit PCo1, the first input end of the signal receiving subunit PCo1 is connected to one end of the first resistor Ro, and is used to receive the signal sent by the second device end 2 based on the current in the current loop communication loop; a signal sending subunit PCo2, the first output end of the signal sending subunit PCo2 is connected to the second input end of the signal receiving subunit PCo1, and the second output end of the signal sending subunit PCo2 is connected to the signal line S, and is used to control the current loop communication loop to generate a current to send a signal to the second device end 2.
[0068] Taking the first communication unit 10 as an example, the signal receiving subunit PCo1 and the signal sending subunit PCo2 can be circuit modules based on semiconductor switches, or can be isolation optocouplers, etc., and there is no specific limitation.
[0069] When one of the first power supply unit 20 and the second power supply unit 50 supplies power to the current loop communication loop, the first device end 1 and the second device end 2 can communicate through the current loop communication loop. During the communication process, the first device end 1 and the second device end 2 adopt the serial half-duplex asynchronous communication method.
[0070] During communication, if the control switch SWo is closed and the switch SWi is opened to make the second power supply unit 50 supply power, the current flow in the current loop communication loop is as Figure 3 shown, specifically: neutral line N → parallel module (energy storage capacitor Ei, voltage stabilizing diode ZDi, first capacitor Ci, first resistor Ri) of the second communication unit 40 → signal receiving subunit PCi1 of the second communication unit 40 → signal sending subunit PCi2 of the second communication unit 40 → communication line S → signal sending subunit PCo2 of the first communication unit 10 → signal receiving subunit PCo1 of the first communication unit 10 → closed switch SWo → neutral line N.
[0071] If the control switch SWo is opened and the switch SWi is closed to make the first power supply unit 20 supply power, the current flow in the current loop communication loop is as Figure 4 shown, specifically: neutral line N → parallel module (switch SWo, voltage stabilizing diode ZDo, energy storage capacitor Eo, first capacitor Co, first resistor Ro) of the first communication unit 10 → signal receiving subunit PCo1 of the first communication unit 10 → signal sending subunit PCo2 of the first communication unit 10 → communication line S → signal sending subunit PCi2 of the second communication unit 40 → signal receiving subunit PCi1 of the second communication unit 40 → closed switch SWi → neutral line N.
[0072] According to Figure 3 andFigure 4 It can be seen that in the above two power supply situations, the current flow directions in the current loop communication loop are different. Therefore, to ensure that one of the first power supply unit 20 or the second power supply unit 50 takes power from the live wire L to supply power to the current loop communication loop, and both the first device end 1 and the second device end 2 can establish normal communication. According to an embodiment of the present invention, the signal receiving subunit PCo1 allows the current loop communication loop to have different current directions, so as to allow one of the first power supply unit 20 and the second power supply unit 50 to take power from the positive half cycle of the alternating current of the live wire L to ensure the normal establishment of communication.
[0073] According to an embodiment of the present invention, the signal receiving subunit PCo1 includes a bidirectional optocoupler. One end of the first input terminal of the bidirectional optocoupler is connected to one end of the first resistor Ro, and the second input terminal of the bidirectional optocoupler is connected to the first output terminal of the signal sending subunit PCo2.
[0074] Specifically, the signal receiving subunit PCo1 in the first communication unit 10 is a bidirectional optocoupler, and the signal sending subunit PCo2 is a unidirectional optocoupler. The signal receiving subunit PCi1 in the second communication unit 40 is a bidirectional optocoupler, and the signal sending subunit PCi2 is a unidirectional optocoupler. In the case of using a bidirectional optocoupler and a unidirectional optocoupler, not only does it meet the communication requirements, but also the signal source and the load can be effectively isolated based on the optocoupler, improving the stability and reliability of communication.
[0075] According to an embodiment of the present invention, the first communication unit 10 further includes: a fourth resistor Ro4, one end of the fourth resistor Ro4 is connected to the first input terminal of the signal receiving subunit PCo1, and the other end of the fourth resistor Ro4 is connected to the second input terminal of the signal receiving subunit PCo1; a second capacitor Co2, the second capacitor Co2 is connected in parallel with the fourth resistor Ro4; a third capacitor Co3, one end of the third capacitor Co3 is connected to the first input terminal of the signal receiving subunit PCo1, and the other end of the third capacitor Co3 is connected to the second output terminal of the signal sending subunit PCo2; a fifth resistor Ro5, one end of the fifth resistor Ro5 is connected to the second output terminal of the signal sending subunit PCo2, and the other end of the fifth resistor Ro5 is connected to the signal line; a fourth capacitor Co4, one end of the fourth capacitor Co4 is connected to the other end of the fifth resistor Ro5; a sixth resistor Ro6, one end of the sixth resistor Ro6 is connected to the other end of the fourth capacitor Co4, and the other end of the sixth resistor Ro6 is connected to the other end of the first resistor Ro.
[0076] Specifically, during the communication process, the fourth resistor Ro4 and the second capacitor Co2 filter the signals of the input signal receiving subunit PCo1 to prevent mis-triggering by small currents and improve communication stability. The fifth resistor Ro5 is a current-limiting resistor, the third capacitor Co3 is used as a filtering capacitor, and the fourth capacitor R4 and the sixth resistor Ro6 form an RC filter to further improve communication stability.
[0077] Taking the example that the voltage-regulating diodes ZDo in the first power supply unit 20 and ZDi in the second power supply unit 50 both adopt the 24V specification, the current-loop communication circuit of the present application will be described in detail.
[0078] During communication, as Figure 3 shown, when the control switch SWo is closed and the switch SWi is open, enabling the second power supply unit 50 to draw power from the live wire L to supply power to the current-loop communication loop. Among them, the communication voltage provided by the second power supply unit 50 is regulated to 24V in the positive half-cycle of the alternating current. The current flow direction in the current-loop communication loop is: neutral line N → parallel module of the second power supply unit 50 (energy storage capacitor Ei, voltage-regulating diode ZDi, first capacitor Ci, first resistor Ri) → signal receiving subunit PCi1 of the second communication unit 40 → signal sending subunit PCi2 of the second communication unit 40 → fifth resistor Ri5 of the second communication unit 40 → communication line S → fifth resistor Ro5 of the first communication unit 10 → signal sending subunit PCo2 of the first communication unit 10 → signal receiving subunit PCo1 of the first communication unit 10 → closed switch SWo → neutral line N.
[0079] As Figure 4 shown, when the control switch SWo is open and the switch SWi is closed, enabling the first power supply unit 20 to draw power from the live wire L to supply power to the current-loop communication loop. Among them, the communication voltage provided by the first power supply unit 20 is regulated to -24V in the negative half-cycle of the alternating current. The current flow direction in the current-loop communication loop is: neutral line N → parallel module of the first power supply unit 20 (switch SWo, voltage-regulating diode ZDo, energy storage capacitor Eo, first capacitor Co, first resistor Ro) → signal receiving subunit PCo1 of the first communication unit 10 → signal sending subunit PCo2 of the first communication unit 10 → fifth resistor Ro5 of the first communication unit 10 → communication line S → fifth resistor Ri5 of the second communication unit 40 → signal sending subunit PCi2 of the second communication unit 40 → signal receiving subunit PCi1 of the second communication unit 40 → closed switch SWi → neutral line N.
[0080] In the related art, the power supply method of the current loop communication loop is to take power from one side. Taking the application of the current loop communication loop in an air conditioner as an example, the power supply methods are divided into power supply from the indoor unit side and power supply from the outdoor unit side. Therefore, in some freely configured models, there are problems that the indoor units cannot be powered or communicate after being combined. There are mainly the following two situations:
[0081] 1. When combining the "A outdoor unit" that takes power from the indoor unit side and the "B indoor unit" that takes power from the outdoor unit side, neither the indoor unit nor the outdoor unit has a power supply circuit, and power cannot be supplied for normal communication.
[0082] 2. When combining the "B outdoor unit" that takes power from the outdoor unit side and the "A indoor unit" that takes power from the indoor unit side, although both the indoor unit and the outdoor unit have power supply circuits, power cannot be supplied to the communication loop, and normal communication cannot be carried out.
[0083] The current loop communication circuit of the present application is based on two power supply units and power supply switches corresponding to the two power supply units, which can meet the freely configured application scenarios of the device end, solve the problems that two device ends cannot be powered and communicate after being combined on some freely configured models, and at the same time, through circuit settings, the standardization of the current loop communication circuit is improved, and the freedom of matching and compatibility of the device end combination are improved.
[0084] In summary, according to the current loop communication circuit of the embodiment of the present invention, the first communication unit, the first power supply unit, and the first power supply switch of the first device end are arranged at the first device end of the target device, and the second communication unit, the second power supply unit, and the second power supply switch of the second device end are arranged at the second device end of the target device. Among them, the first communication unit and the second communication unit are connected by a signal line and a zero line to form a current loop communication loop to realize communication between the first device end and the second device end. During communication, one of the first power supply unit and the second power supply unit is connected to the zero line and the live line, and controls the first power supply switch and the second power supply switch, so that one power supply unit takes power from the positive half cycle of the alternating current of the live line to supply power to the current loop communication loop. Thus, the current loop communication circuit is respectively provided with a power supply unit and a power supply switch at the first device end and the second device end. By controlling the two power supply switches, one of the two power supply units takes power from the positive half cycle of the alternating current of the live line to supply power to the current loop communication loop, solving the problems that the current loop communication loop cannot be powered and cannot communicate in the freely configured application scenarios of the first device end and the second device end.
[0085] Corresponding to the above embodiment, the present invention also proposes an air conditioner.
[0086] As Figure 5 shown, the air conditioner 1000 of the embodiment of the present invention includes the above-mentioned current loop communication circuit 100.
[0087] According to the air conditioner of the embodiment of the present invention, based on the above current loop communication circuit, the problem that the indoor unit and the outdoor unit cannot be powered and communicate after being combined in the scenario of freely matching the indoor unit and the outdoor unit is solved, and the freedom of combination and compatibility of the indoor unit and the outdoor unit of the air conditioner are improved.
[0088] Corresponding to the above embodiment, the present invention also proposes a communication control method for a current loop communication circuit.
[0089] According to an embodiment of the present invention, the communication control method of the current loop communication circuit is applied to the above current loop communication circuit.
[0090] As Figure 6 shown, the communication control method of the current loop communication circuit of the embodiment of the present invention may include:
[0091] S1, controlling the first power supply switch and the second power supply switch so that one of the first power supply unit and the second power supply unit draws power from the positive half cycle of the alternating current of the live wire to supply power to the current loop communication loop;
[0092] S2, controlling the first communication unit and the second communication unit to transmit and receive signals in a first manner to determine the communication state of the current loop communication loop;
[0093] S3, when the communication state is a normal state, determining that the communication between the first device end and the second device end is established.
[0094] Specifically, during the application of the target device, usually a power-taking method on one side is adopted, that is, the first device end is powered on, that is, the first power supply unit is connected to the zero wire and the live wire, or the second device end is powered on, that is, the second power supply unit is connected to the zero wire and the live wire. Since the power-taking method of the target device is not fixed, when the communication control method of the current loop communication circuit starts communication, first, the first power supply switch and the second power supply switch are controlled so that one of the first power supply unit and the second power supply unit draws power from the live wire to supply power to the current loop communication loop. And the communication state of the current loop communication loop is detected based on the first manner, and the communication establishment situation between the first device end and the second device end is judged based on the communication state of the current loop communication loop.
[0095] If, when controlling one power supply unit to supply power to the current loop communication loop, the communication state of the current loop communication loop is a normal state, it is confirmed that the communication between the first device end and the second device end is established, and the states of the first power supply switch and the second power supply switch are continued to be maintained, and the target device is controlled to start running.
[0096] According to an embodiment of the present invention, the communication control method further includes: when the communication state is an abnormal state, controlling the first power supply switch and the second power supply switch so that another power supply unit among the first power supply unit and the second power supply unit draws power from the positive half-cycle of the alternating current of the live wire to supply power to the current-loop communication loop; controlling the first communication unit and the second communication unit to transmit and receive signals in a second manner to determine the communication state of the current-loop communication loop; when the communication state is a normal state, determining that communication is established between the first device end and the second device end.
[0097] Specifically, if, when controlling one power supply unit to supply power to the current-loop communication loop, the communication state of the current-loop communication loop is an abnormal state, it is confirmed that communication is not established between the first device end and the second device end. Then, by controlling the first power supply switch and the second power supply switch, another power supply unit among the first power supply unit and the second power supply unit is made to draw power from the live wire to supply power to the current-loop communication loop, and the communication state of the current-loop communication loop is detected based on the second manner, and the communication establishment situation between the first device end and the second device end is judged based on the communication state of the current-loop communication loop.
[0098] If, when controlling another power supply unit to supply power to the current-loop communication loop, the communication state of the current-loop communication loop is a normal state, it is confirmed that communication is established between the first device end and the second device end, and the control continues to make the other power supply unit supply power to the current-loop communication loop, and the target device is controlled to start running.
[0099] If, when controlling another power supply unit to supply power to the current-loop communication loop, the communication state of the current-loop communication loop is an abnormal state, it is confirmed that communication is not established between the first device end and the second device end, and a communication fault code is issued.
[0100] It should be noted that one power supply unit and another power supply unit can be set according to actual needs and are respectively the first power supply unit and the second power supply unit. The first manner and the second manner can be to use different signal sending units and signal receiving units, which are not limited here. For example, the first manner is to control the first communication unit to send signals and control the second communication unit to receive signals; the second manner is to control the second communication unit to send signals and control the first communication unit to receive signals.
[0101] According to an embodiment of the present invention, when a power supply unit is a first power supply unit, the first communication unit and the second communication unit are controlled in a first manner to perform signal transmission and reception to determine the communication state of the current loop communication loop, including: controlling the second device end to send a first preset signal; obtaining a first reception waiting duration for the first device end to receive the first preset signal, and determining that the communication state of the current loop communication loop is normal when the first reception waiting duration is less than a first preset duration; or, obtaining a first communication waiting duration for the second device end to receive the response signal from the first device end, and determining that the communication state of the current loop communication loop is normal when the first communication waiting duration is less than a second preset duration; or, obtaining the first reception waiting duration and the first communication waiting duration, and determining that the communication state of the current loop communication loop is normal when the first reception waiting duration is less than the first preset duration or the first communication waiting duration is less than the second preset duration.
[0102] Specifically, as shown in Figure 4 After power-on, the TXD-Out port of the first device end 1 drives the signal reception subunit PCo2 to turn on, and the TXD-In port of the second device end 2 drives the signal reception subunit PCi2 to turn on. The second device end 2 drives the first power supply switch SWi to conduct, and through the TXD-In port, drives the signal transmission subunit PCi2 to send a first preset signal to the first device end 1 (the transmission duration of the first preset signal is △T). At the same time, the RXD-Out port of the first device end 1 receives the first preset signal through the signal reception subunit PCo1, and obtains a first reception waiting duration t1 for the first device end 1 to receive the first preset signal. If the first reception waiting duration t1 is less than the first preset duration T1, it is determined that the communication state of the current loop communication loop is normal. That is to say, in this embodiment, only the first reception waiting duration t1 can be obtained, and the communication state of the current loop communication loop can be judged according to the first reception waiting duration t1.
[0103] In another embodiment, after the first device end 1 receives the first preset signal, it drives the signal transmission subunit PCo2 to send a response signal to the second device end 2 through the TXD-Out port. At the same time, after the second device end 2 sends the first preset signal, it receives the response signal from the first device end 1 through the RXD-In port of the second device end 2 based on the signal reception subunit PCi1, and calculates a first communication waiting duration t2 for the second device end 1 to receive the response signal. When the first communication waiting duration t2 is less than the second preset duration T2, it is determined that the communication state of the current loop communication loop is normal. That is to say, in this embodiment, only the first communication waiting duration t2 can be obtained, and the communication state of the current loop communication loop can be judged according to the first communication waiting duration t2.
[0104] In another embodiment of the present application, the first reception waiting duration t1 and the first communication waiting duration t2 can also be obtained simultaneously, and the communication state of the current loop communication loop is determined according to the first reception waiting duration t1 and the first communication waiting duration t2. That is, when the first reception waiting duration t1 is less than the first preset duration T1 or the first communication waiting duration t2 is less than the second preset duration T2, it is determined that the communication state of the current loop communication loop is normal.
[0105] It should be noted that the first preset duration T1 and the second preset duration T2 can be set based on the actual situation. For example, the first preset duration T1 is greater than the second preset duration T2, and T1 = T2 + △T.
[0106] According to an embodiment of the present invention, when the other power supply unit is the second power supply unit, the first communication unit and the second communication unit are controlled to perform signal transmission and reception in the second manner to determine the communication state of the current loop communication loop, including: controlling the first device end to send a second preset signal; obtaining the second reception waiting duration when the second device end receives the second preset signal, and determining that the communication state of the current loop communication loop is normal when the second reception waiting duration is less than the third preset duration; or, obtaining the second communication waiting duration when the first device end receives the response signal from the second device end, and determining that the communication state of the current loop communication loop is normal when the second communication waiting duration is less than the fourth preset duration; or, obtaining the second reception waiting duration and the second communication waiting duration, and determining that the communication state of the current loop communication loop is normal when the second reception waiting duration is less than the third preset duration or the second communication waiting duration is less than the fourth preset duration.
[0107] Specifically, in combination with Figure 3 As shown, on the premise of keeping the receiving sub-units PCi2 and PCo2 open, the first device end 1 drives the switch SWo to conduct and drives the signal transmitting sub-unit PCo2 to send a second preset signal to the second device end 2 (the transmission duration of the second preset signal is △T). At the same time, the RXD-In port of the second device end 2 receives the second preset signal through the signal receiving sub-unit PCi1, and obtains the second reception waiting duration t3 when the second device end 2 receives the second preset signal. If the second reception waiting duration t3 is less than the third preset duration T3, it is determined that the communication state of the current loop communication loop is normal. That is to say, in this embodiment, only the second reception waiting duration t2 can be obtained, and the communication state of the current loop communication loop is determined according to the second reception waiting duration t2.
[0108] In another embodiment, after the second device 2 receives the second preset signal, the drive signal sending sub-unit PCi2 sends a response signal to the first device 1. At the same time, after sending the second preset signal, the first device 1 waits for the response signal of the second device 2 through the RXD-Out port of the first device 1, and calculates the second communication waiting duration t4 for receiving the response signal. When the second communication waiting duration t4 is less than the fourth preset duration T4, it is determined that the communication state of the current loop communication loop is normal. That is to say, in this embodiment, only the second communication waiting duration t4 can be obtained, and the communication state of the current loop communication loop can be judged according to the second communication waiting duration t4.
[0109] In another embodiment of the present application, the second reception waiting duration t3 and the second communication waiting duration t4 can also be obtained simultaneously, and the communication state of the current loop communication loop can be judged according to the second reception waiting duration t3 and the second communication waiting duration t4. That is, when the second reception waiting duration t3 is less than the third preset duration T3 or the fourth communication waiting duration t4 is less than the fourth preset duration T4, it is determined that the communication state of the current loop communication loop is normal.
[0110] It should be noted that the third preset duration T3 and the fourth preset duration T2 can be set based on the actual situation. For example, the third preset duration T3 is greater than the fourth preset duration T4, and T3 = T4 + △T.
[0111] As a specific embodiment of the present application, taking Figure 2 the shown current loop communication circuit as an example, the communication control method of this current loop communication loop is as Figure 7 shown, and may include the following steps:
[0112] S101, the target device is powered on.
[0113] S102, control the receiving sub-units PCi2 and PCo2 to turn on.
[0114] S103, control the power supply switch SWi to close so that the first power supply unit supplies power to the current loop communication loop.
[0115] S104, control the second device to send the first preset signal.
[0116] S105, the first device sends a reply signal after receiving the first preset signal.
[0117] S106, obtain the first reception waiting duration t1 when the first device receives the first preset signal, and obtain the first communication waiting duration t2 when the second device receives the response signal of the first device.
[0118] S107, determine whether the first reception waiting duration t1 is less than the first preset duration T1 or the first communication waiting duration t2 is less than the second preset duration T2. If so, execute step S108; if not, execute step S109.
[0119] S108, determine that the communication status of the current loop communication loop is normal, and control the target device to start normally.
[0120] S109, control the power supply switch SWo to close, so that the second power supply unit supplies power to the current loop communication loop.
[0121] S110, control the first device end to send a second preset signal.
[0122] S111, after receiving the second preset signal, the second device end sends a reply signal.
[0123] S112, obtain the second reception waiting duration t3 when the second device end receives the second preset signal, and obtain the second communication waiting duration t4 when the first device end receives the response signal of the second device end.
[0124] S113, determine whether the second reception waiting duration t3 is less than the third preset duration T3 or the second communication waiting duration t4 is less than the fourth preset duration T4. If so, execute step S108; if not, execute step S114.
[0125] S114, determine that the communication status of the current loop communication loop is abnormal, and send a communication fault code.
[0126] According to the communication control method of the embodiment of the present invention, first control the first power supply switch and the second power supply switch, so that one of the first power supply unit and the second power supply unit draws power from the positive half cycle of the alternating current of the live wire to supply power to the current loop communication loop, and control the first communication unit and the second communication unit to send and receive signals in the first manner to determine the communication status of the current loop communication loop, and in the case that the communication status is normal, determine that the communication between the first device end and the second device end is established. Thus, this method controls the power supply switches arranged at the two device ends, enables one of the two power supply units to supply power to the current loop communication loop, and judges the communication establishment situation between the two device ends according to the communication status of the current loop communication loop to ensure the normal communication between the two device ends.
[0127] Corresponding to the above embodiment, the present invention also proposes an air conditioner.
[0128] Such as Figure 8As shown in the figure, the air conditioner 1000 according to an embodiment of the present invention includes: a memory 1100, a processor 1200, and a program stored in the memory 1100 and executable on the processor 1200. When the processor 1200 executes the program, the communication control method of the above-mentioned current loop communication circuit is implemented.
[0129] According to the air conditioner of the embodiment of the present invention, when the processor executes the program, the communication control method of the above-mentioned current loop communication circuit is implemented. Based on the communication control method of the above-mentioned current loop communication circuit, the communication establishment situation between the indoor unit and the outdoor unit can be judged according to the communication state of the current loop communication loop, so as to ensure the normal communication between the indoor unit and the outdoor unit.
[0130] Corresponding to the above embodiment, the present invention also proposes an air conditioner.
[0131] As Figure 9 shown in the figure, the air conditioner 1000 according to an embodiment of the present invention includes: an indoor unit 200 and an outdoor unit 300; a first communication unit 10, a first power supply unit 20, and a first power supply switch 30 provided in the indoor unit 200; a second communication unit 40, a second power supply unit 50, and a second power supply switch 60 provided in the outdoor unit 300; the first communication unit 10 and the second communication unit 40 are connected by a signal line S and a neutral line L to form a current loop communication loop to realize communication between the indoor unit and the outdoor unit. During communication, one of the first power supply unit 20 and the second power supply unit 50 is connected to the neutral line and the live line; a controller 400 is used to control the first power supply switch 30 and the second power supply switch 60 so that one of the power supply units draws power from the positive half cycle of the alternating current of the live line to supply power to the current loop communication loop.
[0132] According to the air conditioner of the embodiment of the present invention, the first communication unit, the first power supply unit, and the first power supply switch are provided in the indoor unit, the second communication unit, the second power supply unit, and the second power supply switch are provided in the outdoor unit, the first communication unit and the second communication unit are connected by a signal line and a neutral line to form a current loop communication loop to realize communication between the indoor unit and the outdoor unit. During communication, one of the first power supply unit and the second power supply unit is connected to the neutral line and the live line, and the controller controls the first power supply switch and the second power supply switch so that one of the power supply units draws power from the positive half cycle of the alternating current of the live line to supply power to the current loop communication loop. Thus, the air conditioner is provided with a power supply unit and a power supply switch in the indoor unit and the outdoor unit respectively. By controlling the two power supply switches, one of the two power supply units draws power from the positive half cycle of the alternating current to supply power to the current loop communication loop, solving the problems of the current loop communication loop being unable to supply power and unable to communicate in the free combination application scenarios of the indoor unit and the outdoor unit, improving the standardization of the communication circuit of the air conditioner product, and improving the matching freedom and compatibility of the combination of the indoor unit and the outdoor unit.
[0133] It should be noted that the logic and / or steps represented in the flowchart or described in other ways herein, for example, can be considered as a definite sequence list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor, or other systems that can fetch instructions from the instruction execution system, apparatus or device and execute the instructions), or used in combination with these instruction execution systems, apparatus or devices. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus or device. More specific examples (a non-exhaustive list) of the computer-readable medium include the following: an electrical connection part having one or more wirings (electronic device), a portable computer disk cartridge (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). In addition, the computer-readable medium can even be paper or other suitable media on which the program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpretation or, if necessary, other suitable processing, and then stored in a computer memory.
[0134] It should be understood that various parts of the present invention can be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application specific integrated circuits having suitable combinational logic gate circuits, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
[0135] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples", etc. means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0136] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, the meaning of "a plurality of" is at least two, such as two, three, etc., unless otherwise specifically and clearly defined.
[0137] In the present invention, unless otherwise clearly specified and defined, terms such as "mounted", "connected", "coupled", "fixed", etc. shall be construed in a broad sense. For example, it may be a fixed connection, a detachable connection, or integrated; it may be a mechanical connection or an electrical connection; it may be directly connected or indirectly connected through an intermediate medium, and it may be the communication inside two elements or the interaction relationship between two elements, unless otherwise clearly defined. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0138] Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those of ordinary skill in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present invention.
Claims
1. A current loop communication circuit, characterized in that, Applied to a target device, the target device includes a first device end and a second device end, and the communication circuit includes: A first communication unit, a first power supply unit and a first power supply switch provided at the first device end; A second communication unit, a second power supply unit and a second power supply switch provided at the second device end; The first communication unit and the second communication unit are connected via a signal line and a neutral line to form a current loop communication loop to achieve communication between the first device end and the second device end; During communication, one of the first power supply unit and the second power supply unit is connected to the neutral line and the live line, and the first power supply switch and the second power supply switch are controlled so that the one power supply unit draws power from the positive half cycle of the alternating current of the live line to power the current loop communication loop.
2. The circuit according to claim 1, wherein The first power supply unit and the second power supply unit have the same circuit structure, wherein the first power supply unit includes: a diode, wherein an anode of the diode is connected to the live wire; An energy storage capacitor, wherein the positive electrode of the energy storage capacitor is connected to the cathode of the diode, and the negative electrode of the energy storage capacitor is connected to the neutral line.
3. The circuit according to claim 2, characterized in that, The first power supply unit further includes: A voltage stabilizing diode, wherein the anode of the voltage stabilizing diode is connected to the negative electrode of the energy storage capacitor, and the cathode of the voltage stabilizing diode is connected to the positive electrode of the energy storage capacitor; a first resistor, one end of the first resistor being connected to the positive electrode of the energy storage capacitor, and the other end of the first resistor being connected to the negative electrode of the energy storage capacitor; a second resistor, one end of the second resistor being connected to one end of the first resistor; A third resistor, one end of the third resistor is connected to the other end of the second resistor, and the other end of the third resistor is connected to the cathode of the diode.
4. The circuit according to claim 3, wherein The first power supply unit further includes: A first capacitor is connected in parallel with the energy storage capacitor.
5. The circuit according to claim 2, wherein The first power supply switch and the second power supply switch are respectively connected in parallel with corresponding energy storage capacitors.
6. The circuit according to claim 3, characterized in that, The first communication unit and the second communication unit have the same circuit structure, wherein the first communication unit includes: a signal receiving subunit, wherein a first input end of the signal receiving subunit is connected to one end of the first resistor, and is used to receive a signal sent by the second device end based on the current in the current loop communication loop; A signal sending subunit, wherein the first output end of the signal sending subunit is connected to the second input end of the signal receiving subunit, and the second output end of the signal sending subunit is connected to the signal line, and is used to control the current loop communication loop to generate current to send a signal to the second device end.
7. The circuit according to claim 6, wherein The signal receiving subunit allows the current loop communication loop to have different current directions, so as to allow one of the first power supply unit and the second power supply unit to draw power from the positive half cycle of the alternating current of the live wire.
8. The circuit according to claim 7, characterized in that, The signal receiving subunit includes a bidirectional optical coupler, a first input end of the bidirectional optical coupler is connected to one end of the first resistor, and a second input end of the bidirectional optical coupler is connected to a first output end of the signal sending subunit.
9. The circuit according to any one of claims 6 - 8, characterized in that, The first communication unit further includes: A fourth resistor, one end of the fourth resistor is connected to the first input terminal of the signal receiving subunit, and the other end of the fourth resistor is connected to the second input terminal of the signal receiving subunit; A second capacitor, the second capacitor is connected in parallel with the fourth resistor; A third capacitor, one end of the third capacitor is connected to the first input terminal of the signal receiving subunit, and the other end of the third capacitor is connected to the second output terminal of the signal transmitting subunit; A fifth resistor, one end of the fifth resistor is connected to the second output terminal of the signal transmitting subunit, and the other end of the fifth resistor is connected to the signal line; A fourth capacitor, one end of the fourth capacitor is connected to the other end of the fifth resistor; A sixth resistor, one end of the sixth resistor is connected to the other end of the fourth capacitor, and the other end of the sixth resistor is connected to the other end of the first resistor.
10. An air conditioner, characterized in that, Including the current loop communication circuit according to any one of claims 1-9.
11. A communication control method for a current loop communication circuit, characterized in that, Applied to the current loop communication circuit according to any one of claims 1-9, the method includes: Controlling the first power supply switch and the second power supply switch so that one of the first power supply unit and the second power supply unit draws power from the positive half cycle of the alternating current of the live wire to supply power to the current loop communication loop; Controlling the first communication unit and the second communication unit to perform signal transmission and reception in a first manner to determine the communication state of the current loop communication loop; When the communication state is a normal state, determining that communication is established between the first device end and the second device end.
12. The method according to claim 11, wherein The method further includes: When the communication state is an abnormal state, controlling the first power supply switch and the second power supply switch so that the other power supply unit of the first power supply unit and the second power supply unit draws power from the positive half cycle of the alternating current of the live wire to supply power to the current loop communication loop; Controlling the first communication unit and the second communication unit to perform signal transmission and reception in a second manner to determine the communication state of the current loop communication loop; When the communication state is a normal state, determining that communication is established between the first device end and the second device end.
13. The method according to claim 12, characterized in that, When the one power supply unit is the first power supply unit, the controlling the first communication unit and the second communication unit to perform signal transmission and reception in a first manner to determine the communication state of the current loop communication loop includes: Controlling the second device end to send a first preset signal; Obtaining a first reception waiting duration for the first device end to receive the first preset signal, and determining that the communication state of the current loop communication loop is normal when the first reception waiting duration is less than a first preset duration; or, Obtaining a first communication waiting duration for the second device end to receive the response signal of the first device end, and determining that the communication state of the current loop communication loop is normal when the first communication waiting duration is less than a second preset duration; or, The first receiving waiting time and the first communication waiting time are obtained, and when the first receiving waiting time is less than a first preset time or the first communication waiting time is less than a second preset time, it is determined that the communication state of the current loop communication loop is normal.
14. The method according to claim 13, wherein When the other power supply unit is the second power supply unit, controlling the first communication unit and the second communication unit to send and receive signals in a second manner to determine the communication state of the current loop communication loop includes: Controlling the first device to send a second preset signal; Obtaining a second reception waiting time for the second device end to receive the second preset signal, and determining that the communication state of the current loop communication loop is normal when the second reception waiting time is less than a third preset time; or, Obtaining a second communication waiting time for the first device end to receive a response signal from the second device end, and determining that the communication state of the current loop communication loop is normal when the second communication waiting time is less than a fourth preset time; or, The second reception waiting time and the second communication waiting time are obtained, and when the second reception waiting time is less than the third preset time or the second communication waiting time is less than the fourth preset time, it is determined that the communication state of the current loop communication loop is normal.
15. An air conditioner, characterized in that, include: A memory, a processor, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, the communication control method for the current loop communication circuit according to any one of claims 11 to 14 is implemented.
16. An air conditioner, characterized in that, include: Indoor and outdoor units; A first communication unit, a first power supply unit and a first power supply switch provided in the indoor unit; A second communication unit, a second power supply unit and a second power supply switch provided in the outdoor unit; The first communication unit and the second communication unit are connected via a signal line and a neutral line to form a current loop communication loop to realize communication between the indoor unit and the outdoor unit, and during communication, one of the first power supply unit and the second power supply unit is connected to the neutral line and the live line; The controller is used to control the first power supply switch and the second power supply switch so that the one power supply unit draws power from the positive half cycle of the alternating current of the live wire to supply power to the current loop communication loop.