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 switch is controlled to get power from the live line, which solves the problem that the current loop communication loop cannot supply power and communicate under the free combination of the air conditioner indoor and outdoor units, and improves the freedom of combination and distribution of the air conditioner.
Patent Information
- Application Number
- CN202410018347.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, a power supply unit is connected to the neutral line and live line, and power is taken from the live line to supply power to the current loop communication loop to ensure that 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 combination freedom and uniformity of the air conditioner.
Smart Images

Figure CN120252139A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of household electrical appliances, and particularly to a current loop communication circuit, 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 an air conditioner adopts a zero-fire wire current loop communication circuit. Based on this communication circuit, by controlling the time-sharing transmission and reception of the indoor unit and the outdoor unit, the effect of two-way communication can be achieved.
[0003] However, in some application scenarios where the indoor unit and the outdoor unit are freely matched, the zero-fire wire current loop communication circuit in the related art has problems 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 some extent. For this purpose, the first object 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. By controlling the two power supply switches, one of the two power supply units supplies 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 first device end and the second device end.
[0005] The second object of the present invention is to propose a communication control method for a current loop communication circuit.
[0006] The third object of the present invention is to propose an air conditioner.
[0007] The fourth object of the present invention is to propose an air conditioner.
[0008] The fifth object of the present invention is to propose an air conditioner.
[0009] To achieve the above object, an embodiment of the first aspect of the present invention proposes a current loop communication circuit, which is applied to a target device. 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 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 by a signal line and a zero wire to form a current loop communication loop to realize the 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 wire and the live wire, and controls the first power supply switch and the second power supply switch, so that one power supply unit draws power from the live wire to supply power to the current loop communication loop.
[0010] According to the current loop communication circuit of an embodiment of the present invention, 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, so as to realize the 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 live line to supply power to the current loop communication loop. Thus, the current loop communication circuit is provided with a power supply unit and a power supply switch at the first device end and the second device end respectively. By controlling the two power supply switches, one of the two power supply units supplies power to the current loop communication loop, solving the problems that the current loop communication loop cannot be powered 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, one power supply unit draws power from the negative half cycle of the alternating current of the live line.
[0013] 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: an energy storage capacitor, the positive electrode of the energy storage capacitor is connected to the neutral line; a diode, the anode of the diode is connected to the negative electrode of the energy storage capacitor, and the cathode of the diode is connected to the live line.
[0014] According to an embodiment of the present invention, the first power supply unit further includes: a zener diode, the cathode of the zener diode is connected to the positive electrode of the energy storage capacitor, and the anode of the zener diode is connected to the negative 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 the other 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 anode of the diode.
[0015] 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.
[0016] 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.
[0017] 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 the signal line, and is used to receive the 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 other end of the first resistor, and is used to control the current loop communication loop to generate a current to send a signal to the second device end.
[0018] 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 live wire.
[0019] 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 the signal line, and the second input end of the bidirectional optocoupler is connected to the first output end of the signal sending subunit.
[0020] 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 signal line, and the other end of the fourth resistor is connected to the first input end of the signal receiving subunit; a fifth resistor, one end of the fifth resistor is connected to the first input end of the signal receiving subunit, and the other end of the fifth 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 fifth 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 sixth resistor, one end of the sixth resistor is connected to one end of the fourth resistor; a fourth capacitor, one end of the fourth capacitor is connected to the other end of the sixth resistor, and the other end of the fourth capacitor is connected to one end of the first resistor.
[0021] According to an embodiment of the present invention, one power supply unit draws power from the entire cycle of the alternating current of the live wire.
[0022] To achieve the above object, an embodiment of the second aspect of the present invention proposes a communication control method for a current loop communication circuit, which is applied to the above current loop communication circuit. The communication control method of the current loop communication circuit 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 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 the communication between the first device end and the second device end is established.
[0023] The communication control method of the current loop communication circuit according to an embodiment of the present invention first controls 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 live wire to supply power to the current loop communication loop, and controls 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. When the communication state is a normal state, it is determined 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 power supply unit 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; 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.
[0026] According to an embodiment of the present invention, when one power supply unit is the first power supply unit, 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 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 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 transmit and receive signals to determine the communication status 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 determining that the communication status of the current loop communication loop is normal when the second reception waiting duration is less than a third preset duration; or, obtaining a second communication waiting duration for the first device end to receive a response signal from the second device end, and determining that the communication status of the current loop communication loop is normal when the second communication waiting duration is less than a fourth preset duration; or, obtaining the second reception waiting duration and the second communication waiting duration, and determining that the communication status 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.
[0028] To achieve the above object, an embodiment of the third aspect of the present invention provides an air conditioner, including the above-mentioned current loop communication circuit.
[0029] The air conditioner according to the embodiment of the present invention, based on the above-mentioned current loop communication circuit, solves 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, and improves the combination freedom and compatibility of the indoor unit and the outdoor unit of the air conditioner.
[0030] 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 on the memory and executable on the processor. When the processor executes the program, the communication control method of the above-mentioned current loop communication circuit is implemented.
[0031] 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-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 status of the current loop communication loop to ensure the normal communication between the indoor unit and the outdoor unit.
[0032] 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 to realize the communication between the indoor unit and the outdoor unit. When communicating, 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 live line to supply power to the current loop communication loop.
[0033] For an air conditioner according to an embodiment of the present invention, a first communication unit, a first power supply unit, and a first power supply switch are provided in the indoor unit, a second communication unit, a second power supply unit, and a second power supply switch are provided in the outdoor unit. 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, so as 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 power supply unit draws power from 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 supplies power to the current loop communication loop, solving the problems that the current loop communication loop cannot be powered and cannot 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 freedom of matching and the compatibility of the combination of the indoor unit and the outdoor unit.
[0034] 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 learned through the practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a block diagram of a current loop communication circuit according to an embodiment of the present invention;
[0036] Figure 2 It is a circuit diagram of a current loop communication circuit according to a specific embodiment of the present invention;
[0037] 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 ;
[0038] Figure 4 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 2 ;
[0039] Figure 5 It is a communication control method for a current loop communication circuit according to an embodiment of the present invention;
[0040] Figure 6 It is a communication control method for a current loop communication circuit according to a specific embodiment of the present invention;
[0041] Figure 7 It is a block diagram of an air conditioner according to an embodiment of the present invention;
[0042] Figure 8A block diagram of an air conditioner according to an embodiment of the present invention;
[0043] Figure 9 A block diagram of an air conditioner according to an embodiment of the present invention. Detailed implementation manners
[0044] Embodiments of the present invention will be described in detail below. Examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to explain the present invention, and should not be construed as limiting the present invention.
[0045] A current loop communication circuit, a communication control method thereof, and an air conditioner proposed according to an embodiment of the present invention will be described below with reference to the accompanying drawings.
[0046] Figure 1 A block diagram of a current loop communication circuit according to an embodiment of the present invention.
[0047] 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 and a second device end. For example, the target device may be an air conditioner, a medical device, etc., and there is no limitation here. 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 may be in two-way communication or one-way communication, and there is no specific limitation.
[0048] 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.
[0049] As Figure 1 shown, the current loop communication circuit according to an 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.
[0050] Among them, the first communication unit 10 and the second communication unit 40 are connected through a signal line S and a neutral line N to form a current loop communication loop to realize communication between the first device end 1 and the second device end 2; 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, 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 live line to supply power to the current loop communication loop.
[0051] Specifically, take the example where the first device terminal 1 and the second device terminal 2 perform two-way communication through a 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 terminal 1 or to the signal transceiver circuit of the first device terminal 1. The first device terminal 1 sends a signal through the signal sending end of the first communication unit 10 and receives a 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 terminal 2 or to the signal transceiver circuit of the second device terminal 2. The second device terminal 2 sends a signal through the signal sending end of the second communication unit 40 and receives a signal through the signal receiving end of the second communication unit 40. During the communication process, the first device terminal 1 and the second device terminal 2 achieve communication based on the serial half-duplex asynchronous communication method, that is, only one-way communication is performed at the same time. By controlling the first device terminal 1 and the second device terminal 2 to send and receive in a time-sharing manner, the effect of two-way communication is achieved.
[0052] 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 transmitted from the live wire. Specifically, the circuit can be set according to the actual situation to convert the alternating current obtained through the live wire into the direct current required for the current loop communication loop and supply power to the current loop communication loop.
[0053] The first power supply switch 30 and the second power supply switch 60 are respectively set corresponding to the first power supply unit 20 and the second power supply unit 50 to control the realization of the power supply function 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 power supply unit 50 is bypassed. When the second power supply switch 60 is opened, the second power supply unit 50 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 situation. 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).
[0054] During the application process, when the first power supply unit 20 is connected to the neutral wire and the live wire, and the second power supply switch 60 is not connected to the neutral wire and the live wire, the first power supply switch 30 is controlled to disconnect, and the second power supply switch 60 is controlled to close, 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 neutral wire and the live wire, and the second power supply switch 60 is connected to the neutral wire and the live wire, the first power supply switch 30 is controlled to close, and the second power supply switch 60 is controlled to disconnect, so that the second power supply switch 60 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 20 are connected to the neutral wire and the live wire, then one of the first power supply switch 30 and the second power supply switch 60 can be controlled to close and the other to disconnect 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.
[0055] 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.
[0056] In this embodiment, the first power supply unit 20 and the second power supply unit 50 are respectively arranged at the first device end 1 and the second device end 2. During the actual application process, the first power supply switch 30 and the second power supply switch 60 can be controlled based on the power supply connection conditions of the first power supply unit 20 and the second power supply unit 50, so that the power supply unit connected to the neutral wire and the live wire draws power, thereby supplying power 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, it can also ensure the normal power supply to the current loop communication loop, prevent the occurrence of no current in the current loop communication loop, and ensure the normal establishment of communication.
[0057] In an embodiment of the present invention, a power supply unit draws power from the entire cycle of the alternating current of the live wire. For example, the power supply unit can adopt a full-wave rectifier bridge constructed by rectifier diodes to convert the entire cycle of the alternating current into direct current output to supply power to the current loop communication loop.
[0058] In an embodiment of the present invention, a power supply unit draws power from the negative half cycle of the alternating current of the live wire. For example, the power supply unit can adopt a half-wave rectifier bridge composed of a diode and a load resistor to convert the negative half cycle of the alternating current into direct current, thereby supplying power to the current loop communication loop.
[0059] Combined with Figure 2As shown, in 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: an energy storage capacitor Eo, the positive electrode of the energy storage capacitor Eo is connected to the neutral line; a diode Do, the anode of the diode Do is connected to the negative electrode of the energy storage capacitor Eo, and the cathode of the diode Do is connected to the live wire L.
[0060] Specifically, when the alternating current is in the negative half cycle, the diode Do conducts, and the alternating current flows into the first power supply unit 20. On the one hand, the negative half cycle of the alternating current powers the current loop communication loop, and on the other hand, the negative half cycle of the alternating current charges the energy storage capacitor Eo. When the alternating current is in the positive half cycle, the diode Do is cut off, and the alternating current provided by the live wire L cannot flow into the first power supply unit 20. At this time, the energy storage capacitor Eo discharges to continuously power the current loop communication loop.
[0061] Thus, this embodiment realizes power extraction from the negative half cycle of the alternating current based on the diode Do, and discharges the energy storage capacitor Eo in the positive half cycle of the alternating current to achieve continuous power supply.
[0062] Next, the power supply unit of the present application will be described in detail taking the first power supply unit 20 as an example.
[0063] In an embodiment of the present invention, the first power supply unit 20 further includes: a zener diode ZDo, the cathode of the zener diode ZDo is connected to the positive electrode of the energy storage capacitor Eo, and the anode of the zener diode ZDo is connected to the negative 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 the other 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 anode of the diode Do.
[0064] That is to say, the first power supply unit 20 forms a regulated power supply circuit 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 power the current loop communication loop.
[0065] 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 unit 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", and can be specifically selected according to the actual situation. For example, when the zener diode ZDo adopts a 24V specification, the communication voltage output by the first power supply unit 20 is -24V.
[0066] In an embodiment of the present invention, the first power supply unit 20 further includes: a first capacitor Co, which is connected in parallel with the energy storage capacitor Eo to implement a filtering operation on the electrical signal.
[0067] In 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 capacitors.
[0068] 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.
[0069] Specifically, the first power supply unit 20 is composed of an energy storage capacitor Eo, a voltage stabilizing 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 voltage stabilizing 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 voltage stabilizing 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 voltage stabilizing diode ZDi, the first capacitor Ci, and the first resistor Ri form a parallel module.
[0070] 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 opened, the power supply taking circuit of the first power supply unit 20 is as follows: in the negative half cycle of the alternating current, from the neutral line N → the parallel module (energy storage capacitor Eo, voltage stabilizing diode ZDo, first capacitor Co, first resistor Ro) → the second resistor Ro2 → the third resistor Ro3 → the diode Do → the live wire L.
[0071] In an embodiment of the present invention, the circuit structures of the first communication unit 10 and the second communication unit 20 are the same. Among them, the first communication unit 10 includes: a signal receiving sub-unit PCo1, the first input end of the signal receiving sub-unit PCo1 is connected to the signal line, 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 sub-unit PCo2, the first output end of the signal sending sub-unit PCo2 is connected to the second input end of the signal receiving sub-unit PCo1, and the second output end of the signal sending sub-unit PCo2 is connected to the other end of the first resistor Ro, and is used to control the current loop communication loop to generate a current to send a signal to the second device end 2.
[0072] Specifically, taking the first communication unit 10 as an example, the signal receiving subunit PCo1 and the signal transmitting subunit PCo2 can be circuit modules based on semiconductor switches, or can be isolation optocouplers, etc., without specific limitations.
[0073] When one of the first power supply unit 20 and the second power supply unit 50 powers 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.
[0074] During communication, if the control switch SWo is closed and the switch SWi is opened to supply power from the second power supply unit 50, the current flow in the current loop communication loop is as Figure 3 shown, specifically: neutral line N → switch SWo of the first communication unit 10 in the closed state → signal transmitting subunit PCo2 of the first communication unit 10 → signal receiving subunit PCo1 of the first communication unit 10 → communication line S → signal receiving subunit PCi1 of the second communication unit 40 → signal transmitting subunit PCi2 of the second communication unit 40 → parallel module (energy storage capacitor Ei, voltage stabilizing diode ZDi, first capacitor Ci, first resistor Ri) of the second communication unit 40 → neutral line N.
[0075] If the control power supply switch SWo is opened and the switch SWi is closed to supply power from the first power supply unit 20, the current flow in the current loop communication loop is as Figure 4 shown, specifically: neutral line N → first power supply switch SWi of the second communication unit 40 in the closed state → signal transmitting subunit PCi2 of the second communication unit 40 → signal receiving subunit PCi1 of the second communication unit 40 → communication line S → signal receiving subunit PCo1 of the first communication unit 10 → signal transmitting subunit PCo2 of the first communication unit 10 → parallel module (switch SWo, voltage stabilizing diode ZDo, energy storage capacitor Eo, first capacitor Co, first resistor Ro) of the first communication unit 10 → neutral line N.
[0076] According to Figure 3 and Figure 4 it can be known that in the above two power supply situations, the current flow in the current loop communication loop is 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 power the current loop communication loop, and the first device end 1 and the second device end 2 can both establish normal communication, in an embodiment of the present invention, the signal receiving subunit PCo1 allows the current loop communication loop to have different current directions to allow one of the first power supply unit 20 and the second power supply unit 50 to take power from the live wire L to ensure the normal establishment of communication.
[0077] In one embodiment of the present invention, the signal receiving subunit PCo1 includes a bidirectional optocoupler. The first input terminal of the bidirectional optocoupler is connected to the signal line S, and the second input terminal of the bidirectional optocoupler is connected to the first output terminal of the signal sending subunit PCo2.
[0078] 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 the communication requirements are met, but also the effective isolation between the signal source and the load can be realized based on the optocoupler, improving the stability and reliability of communication.
[0079] According to one 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 signal line S, and the other end of the fourth resistor Ro4 is connected to the first input terminal of the signal receiving subunit PCo1; a fifth resistor Ro5, one end of the fifth resistor Ro5 is connected to the first input terminal of the signal receiving subunit PCo1, and the other end of the fifth resistor Ro5 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 fifth resistor Ro5; a third capacitor, 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 sixth resistor Ro6, one end of the sixth resistor Ro6 is connected to one end of the fourth resistor Ro4; a fourth capacitor Co4, one end of the fourth capacitor Co4 is connected to the other end of the sixth resistor Ro6, and the other end of the fourth capacitor Co4 is connected to one end of the first resistor Ro.
[0080] Specifically, during the communication process, the fourth resistor Ro4 is a current-limiting resistor, and the fifth resistor Ro5 and the second capacitor Co2 filter the signal input to the signal receiving subunit PCo1 to prevent small current mis-triggering and improve the communication stability. 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 the communication stability.
[0081] Taking the voltage-regulating diodes ZDo in the first power supply unit 20 and ZDi in the second power supply unit 50 both using the 24V specification as an example, the current-loop communication circuit of the present application will be described in detail.
[0082] During communication, as Figure 3As shown in the figure, when the control switch SWo is closed and the switch SWi is open, the second power supply unit 50 draws 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 negative half-cycle of the alternating current. The current flow direction in the current loop communication loop is: neutral wire N → closed switch SWo → signal sending sub-unit PCo2 of the first communication unit 10 → signal receiving sub-unit PCo1 of the first communication unit 10 → fourth resistor Ro4 of the first communication unit 10 → communication line S → fourth resistor Ri4 of the second communication unit 40 → signal receiving sub-unit PCi1 of the second communication unit 40 → signal sending sub-unit PCi2 of the second communication unit 40 → parallel module (energy storage capacitor Ei, voltage stabilizing diode ZDi, first capacitor Ci, first resistor Ri) of the second power supply unit 50 → neutral wire N.
[0083] As Figure 4 shown in the figure, when the control power supply switch SWo is open and the switch SWi is closed, the first power supply unit 20 draws 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 wire N → closed switch SWi → signal sending sub-unit PCi2 of the second communication unit 40 → signal receiving sub-unit PCi1 of the second communication unit 40 → fourth resistor Ri4 of the second communication unit 40 → communication line S → fourth resistor Ro4 of the first communication unit 10 → signal receiving sub-unit PCo1 of the first communication unit 10 → signal sending sub-unit PCo2 of the first communication unit 10 → parallel module (switch SWo, voltage stabilizing diode ZDo, energy storage capacitor Eo, first capacitor Co, first resistor Ro) of the first power supply unit 20 → neutral wire N.
[0084] In the related art, the current loop communication loop adopts a power supply taking method of taking power from one side. Taking the application of the current loop communication loop in an air conditioner as an example, the power supply taking methods are divided into taking power from the indoor unit side and taking power from the outdoor unit side. Therefore, in some freely matched models, there are problems that the indoor units cannot be powered or cannot communicate after being combined. There are mainly the following two situations:
[0085] 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, both the indoor unit and the outdoor unit have no power supply circuit and cannot be powered for normal communication.
[0086] 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, they cannot supply power to the communication loop and cannot communicate normally.
[0087] 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 free combination application scenarios of the device end, solve the problem that power supply and communication cannot be achieved after the combination of two device ends on some freely combined models, and at the same time, through circuit settings, the standardization of the current loop communication circuit is improved, and the matching freedom and compatibility of the device end combination are improved.
[0088] In summary, for the current loop communication circuit according to the embodiment of the present invention, 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 the 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 draws power from 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 supplies 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.
[0089] Corresponding to the above embodiment, the present invention also proposes a communication control method for a current loop communication circuit.
[0090] 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.
[0091] As Figure 5 shown, the communication control method of the current loop communication circuit according to the embodiment of the present invention may include:
[0092] S1, 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 live line to supply power to the current loop communication loop;
[0093] S2, control the first communication unit and the second communication unit to send and receive signals in the first manner to determine the communication state of the current loop communication loop;
[0094] S3, when the communication state is a normal state, determine that the communication between the first device end and the second device end is established.
[0095] Specifically, during the application process of the target device, a power-taking method from one side is usually adopted, that is, power is taken through the first device terminal connection, namely the first power supply unit is connected to the zero line and the live line, or power is taken through the second device terminal connection, namely the second power supply unit is connected to the zero line and the live line. Since the power-taking method of the target device is not fixed, therefore, in the communication control method of this current-loop communication circuit, at the beginning of communication, first, the first power supply switch and the second power supply switch are controlled to enable one of the first power supply unit and the second power supply unit to take power from the live line 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 method, and the communication establishment situation between the first device terminal and the second device terminal is judged based on the communication state of the current-loop communication loop.
[0096] 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 in a normal state, it is confirmed that the communication between the first device terminal and the second device terminal 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.
[0097] According to an embodiment of the present invention, the communication control method of this current-loop communication circuit further includes: in the case where the communication state is an abnormal state, controlling the first power supply switch and the second power supply switch to enable the other power supply unit among the first power supply unit and the second power supply unit to take power from the live line to supply power to the current-loop communication loop; controlling the first communication unit and the second communication unit to send and receive signals according to the second method to determine the communication state of the current-loop communication loop; in the case where the communication state is a normal state, determining that the communication between the first device terminal and the second device terminal is established.
[0098] 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 in an abnormal state, it is confirmed that the communication between the first device terminal and the second device terminal is not established, then the first power supply switch and the second power supply switch are controlled to enable the other power supply unit among the first power supply unit and the second power supply unit to take power from the live line 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 method, and the communication establishment situation between the first device terminal and the second device terminal is judged based on the communication state of the current-loop communication loop.
[0099] If, when controlling the other power supply unit to supply power to the current-loop communication loop, the communication state of the current-loop communication loop is in a normal state, it is confirmed that the communication between the first device terminal and the second device terminal is established, and the other power supply unit is continuously controlled to supply power to the current-loop communication loop, and the target device is controlled to start running.
[0100] 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 the communication between the first device end and the second device end is not established, and a communication fault code is issued.
[0101] It should be noted that a 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 mode and the second mode can be to adopt different signal sending units and signal receiving units, which are not limited here. For example, the first mode is to control the first communication unit to send signals and control the second communication unit to receive signals; the second mode is to control the second communication unit to send signals and control the first communication unit to receive signals.
[0102] According to an embodiment of the present invention, when a power supply unit is the first power supply unit, the first communication unit and the second communication unit are controlled to send and receive signals according to the first mode 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.
[0103] Specifically, in combination with Figure 4 As shown, after power-on, the TXD-Out port of the first device end 1 drives the signal receiving subunit PCo2 to turn on, and the TXD-In port of the second device end 2 drives the signal receiving subunit PCi2 to turn on. The second device end 2 drives the first power supply switch SWi to conduct and drives the signal sending subunit PCo2 to send a first preset signal to the first device end 1 (the sending duration of the first preset signal is △T). At the same time, the RXD-Out port of the first device end 1 waits for the first preset signal and obtains a first reception waiting duration t1 for receiving 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.
[0104] In another embodiment, after the first device 1 receives the first preset signal, the drive signal sending sub-unit PCo2 sends a response signal to the second device 2. At the same time, after the second device 2 sends the first preset signal, it waits for the response signal from the first device 1 through the RXD-In port of the second device 2 and calculates the first communication waiting duration t2. When the first communication waiting duration t2 is less than the second preset duration T2, it is determined that the communication status 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 status of the current loop communication loop can be judged according to the first communication waiting duration t2.
[0105] 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 status of the current loop communication loop can be judged 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 status of the current loop communication loop is normal.
[0106] 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.
[0107] 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 status of the current loop communication loop, including: controlling the first device to send a second preset signal; obtaining the second reception waiting duration when the second device receives the second preset signal, and when the second reception waiting duration is less than the third preset duration, determining that the communication status of the current loop communication loop is normal; or, obtaining the second communication waiting duration when the first device receives the response signal from the second device, and when the second communication waiting duration is less than the fourth preset duration, determining that the communication status 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 status of the current loop communication loop is normal.
[0108] Specifically, in combination with Figure 3As shown, on the premise of keeping the receiving subunits PCi2 and PCo2 open, the first device end 1 drives the switch SWo to conduct, and drives the signal sending subunit PCo2 to send a second preset signal to the second device end 2 (the sending duration of the second preset signal is ΔT). At the same time, the RXD-In port of the second device end 2 waits for the second preset signal and receives the second receiving waiting duration t3 of the second preset signal. If the second receiving 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 receiving waiting duration t2 can be obtained, and the communication state of the current loop communication loop can be judged according to the second receiving waiting duration t2.
[0109] In another embodiment, after the second device end 2 receives the second preset signal, it drives the signal sending subunit PCi2 to send an acknowledgment signal to the first device end 1. At the same time, after sending the second preset signal, the first device end 1 waits for the acknowledgment signal of the second device end 2 through the RXD-Out port of the first device end 1 and calculates the second communication waiting duration t4. 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.
[0110] In another embodiment of the present application, the second receiving 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 receiving waiting duration t3 and the second communication waiting duration t4. That is, when the second receiving 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.
[0111] 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.
[0112] 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 the current loop communication loop is as Figure 6 shown, and may include the following steps:
[0113] S101, the target device is powered on.
[0114] S102, control the receiving subunits PCi2 and PCo2 to be opened.
[0115] S103, control the power supply switch SWi to close so that the first power supply unit powers the current loop communication loop.
[0116] S104, control the second device end to send a first preset signal.
[0117] S105, after receiving the first preset signal, the first device end sends a reply signal.
[0118] S106, obtain the first reception waiting duration t1 when the first device end receives the first preset signal, and obtain the first communication waiting duration t2 when the second device end receives the response signal of the first device end.
[0119] 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.
[0120] S108, determine that the communication status of the current loop communication loop is normal, and control the target device to start normally.
[0121] S109, control the power supply switch SWo to close so that the second power supply unit powers the current loop communication loop.
[0122] S110, control the first device end to send a second preset signal.
[0123] S111, after receiving the second preset signal, the second device end sends a reply signal.
[0124] 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.
[0125] 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.
[0126] S114, determine that the communication status of the current loop communication loop is abnormal, and send a communication fault code.
[0127] In summary, according to the communication control method of the current loop communication circuit according to the embodiments 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 live wire to supply power to the current loop communication loop, and the first communication unit and the second communication unit are controlled in the first manner to transmit and receive signals to determine the communication state of the current loop communication loop. In the case where the communication state is a normal state, it is determined that the communication between the first device end and the second device end is established. 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, so as to ensure the normal communication between the two device ends.
[0128] Corresponding to the above embodiments, the present invention also provides an air conditioner.
[0129] As Figure 7 shown, the air conditioner 1000 according to the embodiments of the present invention includes the above-mentioned current loop communication circuit 100.
[0130] According to the air conditioner of the embodiments 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 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 the compatibility of the indoor unit and the outdoor unit of the air conditioner are improved.
[0131] Corresponding to the above embodiments, the present invention also provides an air conditioner.
[0132] As Figure 8 shown, the air conditioner 1000 according to the embodiments of the present invention includes: a memory 1100, a processor 1200, and a program stored on 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.
[0133] According to the air conditioner of the embodiments 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.
[0134] Corresponding to the above embodiments, the present invention also provides an air conditioner.
[0135] As Figure 9As 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.
[0136] Among them, the first communication unit 10 and the second communication unit 40 are connected through a signal line S and a neutral line N to form a current loop communication loop, so as to realize the communication between the indoor unit 200 and the outdoor unit 300. When communicating, one of the first power supply unit 20 and the second power supply unit 40 is connected to the neutral line and the live line; the controller 400 is used to control the first power supply switch 30 and the second power supply switch 60, so that one power supply unit draws power from the live line to supply power to the current loop communication loop.
[0137] For the air conditioner according to an 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 through a signal line and a neutral line to form a current loop communication loop, so as to realize the communication between the indoor unit and the outdoor unit. When communicating, 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 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 supplies power to the current loop communication loop, solving the problems that the current loop communication loop cannot be powered and cannot 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.
[0138] Note that the logic and / or steps represented in the flowchart or otherwise described 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 and execute instructions from the instruction execution system, apparatus, or device), or in conjunction with these instruction execution systems, apparatuses, 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 conjunction 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 portion with one or more wirings (electronic device), a portable computer diskette (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium 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 otherwise processing as appropriate, and then stored in a computer memory.
[0139] 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-described 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 appropriate combinational logic gate circuits, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), and the like.
[0140] In the description of this specification, the description referring to terms such as "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 a suitable manner in any one or more embodiments or examples.
[0141] 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 defined.
[0142] In the present invention, unless otherwise clearly defined and limited, terms such as "installed", "connected", "coupled", "fixed", etc. should be understood 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 internal communication of two components or the interaction relationship between two components, unless otherwise clearly limited. 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.
[0143] 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 live line to power the current loop communication loop.
2. The circuit according to claim 1, wherein The one power supply unit draws power from the negative half cycle of the alternating current of the live line.
3. The circuit according to claim 2, wherein The first power supply unit and the second power supply unit have the same circuit structure, wherein the first power supply unit includes: An energy storage capacitor, wherein the positive electrode of the energy storage capacitor is connected to the neutral line; A diode, wherein the anode of the diode is connected to the negative electrode of the energy storage capacitor, and the cathode of the diode is connected to the live wire.
4. The circuit according to claim 3, wherein The first power supply unit further includes: A voltage stabilizing diode, wherein the cathode of the voltage stabilizing diode is connected to the positive electrode of the energy storage capacitor, and the anode of the voltage stabilizing diode is connected to the negative 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 the other 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 anode of the diode.
5. The circuit according to claim 4, wherein, The first power supply unit further includes: A first capacitor is connected in parallel with the energy storage capacitor.
6. The circuit according to claim 3, characterized in that, The first power supply switch and the second power supply switch are respectively connected in parallel with corresponding energy storage capacitors.
7. The circuit according to claim 4, wherein 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 the signal line 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 other end of the first resistor, and is used to control the current loop communication loop to generate current to send a signal to the second device end.
8. The circuit according to claim 7, 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 obtain power from the live wire.
9. The circuit according to claim 8, wherein The signal receiving subunit comprises a bidirectional optical coupler, a first input end of the bidirectional optical coupler is connected to the signal line, and a second input end of the bidirectional optical coupler is connected to a first output end of the signal sending subunit.
10. The circuit according to any one of claims 7-9, characterized in that, The first communication unit further includes: A fourth resistor, one end of the fourth resistor is connected to the signal line, and the other end of the fourth resistor is connected to the first input end of the signal receiving subunit; A fifth resistor, one end of the fifth resistor is connected to the first input end of the signal receiving subunit, and the other end of the fifth 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 fifth 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 sixth resistor, one end of the sixth resistor is connected to one end of the fourth resistor; A fourth capacitor, one end of the fourth capacitor is connected to the other end of the sixth resistor, and the other end of the fourth capacitor is connected to one end of the first resistor.
11. The circuit according to claim 1, characterized in that, The one power supply unit draws power from the entire cycle of the alternating current of the live wire.
12. 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-11, 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 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.
13. The method according to claim 12, 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 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.
14. The method according to claim 12, wherein When the one power supply unit is the first power supply unit, controlling the first communication unit and the second communication unit to perform signal transmission and reception in the 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 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 of 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, Obtain the first reception waiting duration and the first communication waiting duration, and when the first reception waiting duration is less than a first preset duration or the first communication waiting duration is less than a second preset duration, determine that the communication state of the current loop communication loop is normal.
15. The method according to claim 13, characterized in that, When the other power supply unit is the second power supply unit, 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 includes: Controlling the first device end to send a second preset signal; Obtain the 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, determine that the communication state of the current loop communication loop is normal; or, Obtain the 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, determine that the communication state of the current loop communication loop is normal; or, Obtain the second reception waiting duration and the second communication waiting duration, and when the second reception waiting duration is less than a third preset duration or the second communication waiting duration is less than a fourth preset duration, determine that the communication state of the current loop communication loop is normal.
16. An air conditioner, characterized in that, Including the current loop communication circuit according to any one of claims 1-11.
17. An air conditioner, characterized in that, Including: A memory, a processor, and a program stored on the memory and executable on the processor. When the processor executes the program, it implements the communication control method of the current loop communication circuit according to any one of claims 12-15.
18. An air conditioner, characterized in that, Including: An indoor unit and an outdoor unit; 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 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; A controller for controlling the first power supply switch and the second power supply switch so that the one power supply unit draws power from the live line to supply power to the current loop communication loop.