Air conditioning system and communication method thereof
By introducing repeater structures and signal conversion technology into the air conditioning system, the problem of Homebus communication protocol limiting long-distance transmission was solved, improving long-distance signal transmission and anti-interference capabilities, and reducing system integration costs.
Patent Information
- Application Number
- CN202411163374.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2026-03-03
AI Technical Summary
In existing air conditioning systems, the hardware design and communication mechanism of the Homebus communication protocol limit the communication bus length to no more than 1,000 meters, which cannot meet the long-distance communication needs of large public building projects, resulting in increased system integration and deployment costs.
It adopts a repeater structure, transmits differential signals through the first and second buses, and uses the main control chip and control circuit to perform signal comparison and switching circuit control to realize the conversion between differential signals and single-ended signals, detect communication conflicts in real time and block signal transmission, thereby improving signal transmission performance and response speed.
It enables long-distance signal transmission in air conditioning systems, improves signal anti-interference capabilities, avoids infinite loop conflict states, and reduces system integration and deployment costs.
Smart Images

Figure CN121594482A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of air conditioning technology, and in particular to an air conditioning system and its communication method. Background Technology
[0002] With the development of science and technology, the application of electrical appliances is becoming more and more common, and air conditioning has become an integral part of the daily lives of more and more people.
[0003] Currently, central air conditioning systems generally use the Homebus communication protocol for communication, which enables convenient interaction and control between devices.
[0004] However, due to the limitations of HomeBus' hardware design and communication mechanism, the communication bus length is generally no more than 1,000 meters. This cannot meet the long-distance communication requirements in large-scale public building projects, and often requires the deployment of large-scale air conditioning systems in the form of split buses, which has an adverse impact on system integration and deployment costs. Summary of the Invention
[0005] This invention provides an air conditioning system and its communication method. The air conditioning system can transmit signals over long distances in real time by improving the repeater, and can stop signal transmission in time when there is a signal conflict.
[0006] According to a first aspect of the embodiments of this application, an air conditioning system is provided, the air conditioning system including an outdoor unit and an indoor unit that communicate with each other via a bus, and a repeater connected to the bus; the bus includes: a first bus configured to transmit differential signals; a second bus configured to transmit differential signals; the repeater includes: a main control chip; a first control circuit, the signal terminal of the first control circuit being electrically connected to the first bus; a second output terminal of the first control circuit being electrically connected to a first detection terminal of the main control chip; a second control circuit, the signal terminal of the second control circuit being electrically connected to the second bus; a second output terminal of the second control circuit being electrically connected to a second detection terminal of the main control chip; and a first switching circuit, the control terminal of the first switching circuit being connected to the main control chip. The first control terminal is electrically connected; the first switching circuit is electrically connected between the first output terminal of the first control circuit and the first input terminal of the second control circuit; the second switching circuit has its control terminal electrically connected to the second control terminal of the main control chip; the second switching circuit is electrically connected between the first output terminal of the second control circuit and the first input terminal of the first control circuit; wherein, the first control circuit is configured to: compare whether the signal at the first output terminal and the signal at the first input terminal are the same, obtain a first result signal, and transmit the first result signal to the first detection terminal; the second control circuit is configured to: compare whether the signal at the first output terminal and the signal at the first input terminal are the same, obtain a second result signal, and transmit the second result signal to the second detection terminal.
[0007] In some embodiments of this application, a first result signal is obtained by comparing whether the signal at the first output terminal and the signal at the first input terminal are the same. Specifically, when the signal at the first output terminal of the first control circuit is the same as the signal at the first input terminal of the first control circuit, the first result signal is a low-level signal; when the signal at the first output terminal of the first control circuit is different from the signal at the first input terminal of the first control circuit, the first result signal is a high-level signal.
[0008] In some embodiments of this application, a second result signal is obtained by comparing whether the signal at the first output terminal is the same as the signal at the first input terminal. Specifically, when the signal at the first output terminal of the second control circuit is the same as the signal at the first input terminal of the first control circuit, the second result signal is a low-level signal; when the signal at the first output terminal of the second control circuit is different from the signal at the first input terminal of the second control circuit, the first result signal is a high-level signal.
[0009] In some embodiments of this application, transmitting the first result signal to the first detection terminal specifically involves: when the second output terminal of the first control circuit outputs a low-level signal to the first detection terminal of the main control chip, the main control chip does not perform any action if it detects the low-level signal; when the second output terminal of the first control circuit outputs a high-level signal to the first detection terminal of the main control chip, the main control chip determines that a communication conflict has occurred if it detects the high-level signal.
[0010] In some embodiments of this application, after a communication conflict is determined to occur, the main control chip is configured to control the second switching circuit to disconnect.
[0011] In some embodiments of this application, the second result signal is transmitted to the second detection terminal. Specifically, when the second output terminal of the second control circuit outputs a low-level signal to the second detection terminal of the main control chip, the main control chip does not perform any action if it detects the low-level signal; when the second output terminal of the second control circuit outputs a high-level signal to the second detection terminal of the main control chip, the main control chip determines that a communication conflict has occurred if it detects the high-level signal.
[0012] In some embodiments of this application, after a communication conflict is determined to occur, the main control chip is configured to control the first switching circuit to disconnect.
[0013] In some embodiments of this application, the first output terminal of the first control circuit and the first input terminal of the second control circuit are configured to transmit single-ended signals; the first output terminal of the second control circuit and the first input terminal of the first control circuit are configured to transmit single-ended signals.
[0014] In some embodiments of this application, the first control circuit is configured to convert differential signals and single-ended signals; the second control circuit is configured to convert differential signals and single-ended signals.
[0015] According to a second aspect of the embodiments of this application, a communication method for an air conditioning system is provided. The air conditioning system includes an outdoor unit and an indoor unit that communicate with each other via a bus, and a repeater connected to the bus. The bus includes: a first bus configured to transmit differential signals; a second bus configured to transmit differential signals; the repeater includes: a main control chip; a first control circuit, the signal terminal of which is electrically connected to the first bus; a second output terminal of which is electrically connected to a first detection terminal of the main control chip; a second control circuit, the signal terminal of which is electrically connected to the second bus; a second output terminal of which is electrically connected to a second detection terminal of the main control chip; and a first switching circuit, the control terminal of which is electrically connected to a first control terminal of the main control chip. Between the first output terminal of the first control circuit and the first input terminal of the second control circuit; a second switching circuit, the control terminal of the second switching circuit being electrically connected to the second control terminal of the main control chip; the second switching circuit being electrically connected between the first output terminal of the second control circuit and the first input terminal of the first control circuit, the communication method comprising: the first control circuit receiving a signal from the first output terminal and a signal from the first input terminal, comparing whether the signal from the first output terminal and the signal from the first input terminal are the same, obtaining a first result signal, and transmitting the first result signal to the first detection terminal; the second control circuit receiving a signal from the first output terminal and a signal from the first input terminal, comparing whether the signal from the first output terminal and the signal from the first input terminal are the same, obtaining a second result signal, and transmitting the second result signal to the second detection terminal.
[0016] Based on the above solutions, some embodiments of this application provide an air conditioning system and its communication method. In this air conditioning system, when a repeater has a signal on only one side of the bus, it can transmit the signal to the other side in real time, improving the overall performance and response speed of the repeater's signal transmission. Simultaneously, when signals are transmitted on both sides of the bus, the main control chip can shut down the corresponding switching circuit to block signal transmission, ensuring that even if two or more nodes start sending data simultaneously, the entire network will not fall into an infinite loop of conflict. Furthermore, when multiple air conditioning systems transmit signals over long distances, the signal gradually weakens. Converting differential signals to single-ended signals using a repeater can improve the signal's anti-interference capability and further enhance the signal. Then, converting the single-ended signal back to a differential signal suitable for air conditioning system communication completes long-distance communication. Attached Figure Description
[0017] The accompanying drawings are provided to further understand the technical solutions of the present invention and constitute a part of the specification. They are used together with the embodiments of the present invention to explain the technical solutions of the present invention, and do not constitute a limitation on the technical solutions of the present invention.
[0018] Figure 1 A schematic diagram of an air conditioning system provided in an embodiment of this application;
[0019] Figure 2 A structural block diagram of a repeater provided in an embodiment of this application;
[0020] Figure 3 A structural block diagram of a repeater signal routing provided in an embodiment of this application;
[0021] Figure 4 A structural block diagram of another repeater signal routing provided in an embodiment of this application;
[0022] Figure 5 A structural block diagram of another repeater provided in the embodiments of this application;
[0023] Figure 6 A structural block diagram of a repeater as provided in this application embodiment;
[0024] Figure 7 A structural block diagram of the overall signal routing of a repeater provided in an embodiment of this application;
[0025] Figure 8 Another structural block diagram of the overall signal routing of a repeater provided in this application embodiment;
[0026] Figure 9 A structural block diagram of a first control circuit provided in an embodiment of this application;
[0027] Figure 10 A structural block diagram of a first conversion circuit provided in an embodiment of this application;
[0028] Figure 11 A circuit diagram of a first receiving coupling circuit provided in an embodiment of this application;
[0029] Figure 12 A circuit diagram of a first transmitting coupling circuit provided in an embodiment of this application;
[0030] Figure 13 A structural block diagram of a first bus driving circuit provided in an embodiment of this application;
[0031] Figure 14 A circuit diagram of a first bus driving circuit provided in an embodiment of this application;
[0032] Figure 15A circuit diagram of a first switching circuit provided in an embodiment of this application;
[0033] Figure 16 A structural block diagram of a second control circuit provided in an embodiment of this application;
[0034] Figure 17 A structural block diagram of a second conversion circuit provided in an embodiment of this application;
[0035] Figure 18 A circuit diagram of a second receiving coupling circuit provided in an embodiment of this application;
[0036] Figure 19 A circuit diagram of a second transmitting coupling circuit provided in an embodiment of this application;
[0037] Figure 20 A structural block diagram of a second bus driving circuit provided in an embodiment of this application;
[0038] Figure 21 A circuit diagram of a second bus driving circuit provided in an embodiment of this application;
[0039] Figure 22 A circuit diagram of a second switching circuit provided in an embodiment of this application. Detailed Implementation
[0040] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0041] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indication will also change accordingly.
[0042] 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 number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, unless otherwise stated, "a plurality of" means two or more.
[0043] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "connected" and "linked" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances. Furthermore, when describing pipelines, the terms "connected" and "linked" as used in this invention have the meaning of enabling conduction. The specific meaning needs to be understood in conjunction with the context.
[0044] In embodiments of the present invention, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design described as "exemplary" or "for example" in embodiments of the present invention should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0045] With the development of science and technology, the application of electrical appliances is becoming more and more common, and air conditioning has become an integral part of the daily lives of more and more people.
[0046] Currently, air conditioning systems generally use the Homebus communication protocol for communication, which enables convenient interaction and control between devices.
[0047] However, due to the limitations of HomeBus' hardware design and communication mechanism, the communication bus length is generally no more than 1,000 meters. This cannot meet the long-distance communication requirements in large-scale public building projects, and often requires the deployment of large-scale air conditioning systems in the form of split buses, which has an adverse impact on system integration and deployment costs.
[0048] Based on this, embodiments of the present invention provide an air conditioning system. For example... Figure 1 As shown, the air conditioning system 1000 includes: an outdoor unit and an indoor unit that communicate with each other via a bus, and a repeater 400 connected to the bus; the bus includes: a first bus 100, a second bus 200, multiple air conditioning systems 300, and the repeater 400. The multiple air conditioning systems 300 are electrically connected to each other via the first bus 100 and the second bus 200, and the repeater 400 is disposed between the first bus 100 and the second bus 200. A first terminal of the repeater is electrically connected to the first bus 100, and a second terminal of the repeater is electrically connected to the second bus 200.
[0049] The first bus 100 is configured to transmit differential signals; the second bus 200 is configured to transmit differential signals.
[0050] In some embodiments, the first bus 100 and the second bus 200 are Homebus buses.
[0051] like Figure 2 As shown, the repeater 400 includes: a main control chip 10, a first control circuit 20, a second control circuit 30, a first switching circuit 40, and a second switching circuit 50.
[0052] The signal terminal 20X of the first control circuit 20 is electrically connected to the first bus 100; the second output terminal 204 of the first control circuit 20 is electrically connected to the first detection terminal HBS1-Diff of the main control chip 10.
[0053] The signal terminal 30X of the second control circuit 30 is electrically connected to the second bus 200; the second output terminal 304 of the second control circuit 30 is electrically connected to the second detection terminal HBS2-Diff of the main control chip 10.
[0054] The control terminal 401 of the first switching circuit 40 is electrically connected to the first control terminal Switch1 of the main control chip 10; the first switching circuit 40 is electrically connected between the first output terminal 203 of the first control circuit 20 and the first input terminal 305 of the second control circuit 30.
[0055] The first output terminal 203 of the first control circuit 20 and the first input terminal 305 of the second control circuit 30 are configured to transmit single-ended signals.
[0056] The control terminal 501 of the second switching circuit 50 is electrically connected to the second control terminal Switch2 of the main control chip 10; the second switching circuit 50 is electrically connected between the first output terminal 303 of the second control circuit 30 and the first input terminal 205 of the first control circuit 20.
[0057] The first output terminal 303 of the second control circuit 30 and the first input terminal 205 of the first control circuit 20 are configured to transmit single-ended signals.
[0058] The first control circuit 20 is configured to convert differential signals and single-ended signals, compare whether the signal at the first output terminal 203 and the signal at the first input terminal 205 are the same, and transmit the first result signal to the first detection terminal HBS1-Diff; if not, the main control chip 10 is configured to control the second switching circuit 50 to disconnect.
[0059] The second control circuit 30 is configured to convert differential signals and single-ended signals, compare whether the signal at the first output terminal 303 and the signal at the first input terminal 305 are the same, and transmit the second result signal to the second detection terminal HBS2-Diff; if not, the main control chip 10 is configured to control the first switching circuit 40 to disconnect.
[0060] Among them, the first result signal and the second result signal are level signals.
[0061] The first control circuit 20 is configured to convert differential signals and single-ended signals, meaning that the first control circuit 20 is configured to convert the differential signal received at its signal terminal 20X into a single-ended signal and output it from its first output terminal 203, and is also configured to convert the single-ended signal received at its first input terminal 205 into a differential signal and output it from its signal terminal 20X.
[0062] The second control circuit 30 is configured to convert differential signals and single-ended signals, meaning that the second control circuit 30 is configured to convert the differential signal received at its signal terminal 30X into a single-ended signal and output it from its first output terminal 303, and is also configured to convert the single-ended signal received at its first input terminal 305 into a differential signal and output it from its signal terminal 30X.
[0063] In some embodiments, when the signal at the first output terminal 203 is the same as the signal at the first input terminal 205, the first result signal is a low-level signal; when the signal at the first output terminal 203 is different from the signal at the first input terminal 205, the first result signal is a high-level signal. Similarly, when the signal at the first output terminal 303 is the same as the signal at the first input terminal 305, the second result signal is a low-level signal; when the signal at the first output terminal 303 is different from the signal at the first input terminal 305, the second result signal is a high-level signal.
[0064] For example, refer to Figure 3 The first bus 100 transmits the differential signal to the signal terminal 20X of the first control circuit 20. The first control circuit 20 converts the differential signal into a single-ended signal, and the first output terminal 203 of the first control circuit 20 outputs the single-ended signal to the first switching circuit 40. When the first switching circuit 40 is turned on, the single-ended signal is transmitted to the first input terminal 305 of the second control circuit 30 via the first switching circuit 40. The second control circuit 30 converts the single-ended signal into a differential signal, and the signal terminal 30X of the second control circuit 30 transmits the differential signal to the second bus 200.
[0065] During the transmission of the differential signal from the first bus 100 to the second bus 200, the second control circuit 30 compares whether the signal at the first output terminal 303 and the signal at the first input terminal 305 are the same, and transmits the second result signal to the second detection terminal HBS2-Diff of the main control chip 10.
[0066] Here, the signal compared by the first output terminal 303 of the second control circuit 30 refers to: the differential signal of the first bus 100 is converted into a single-ended signal and transmitted to the first input terminal 305 of the second control circuit 30; the second control circuit 30 then converts the single-ended signal into a differential signal and transmits it to the second bus 200; at the same time, the second control circuit 30 converts the differential signal from the second bus 200 and outputs it as a single-ended signal through the first output terminal 303.
[0067] The differential signal from the second bus includes two cases: the first is the differential signal from the first bus 100 that is transmitted to the second bus 200 after a series of conversions; the second is the differential signal obtained by superimposing the differential signal from the first bus 100 that is transmitted to the second bus 200 after a series of conversions and the differential signal from the second bus 200 that is transmitted to the repeater.
[0068] If the signal at the first output terminal 303 is the same as the signal at the first input terminal 305, it means that the signal received by the repeater only comes from the first bus, and the second bus itself does not transmit a signal to the repeater. The second output terminal 304 of the second control circuit 30 outputs a low level to the second detection terminal HBS2-Diff of the main control chip 10. The main control chip 10 does not perform any action when it detects the low level. That is to say, at this time, the first switch circuit 40 remains in the conducting state, the signal is transmitted normally, and the first bus 100 can transmit the differential signal to the second bus 200.
[0069] If the signal at the first output terminal 303 is different from the signal at the first input terminal 305, it indicates that the repeater receives signals not only from the first bus but also from the second bus. The second output terminal 304 of the second control circuit 30 outputs a high level to the second detection terminal HBS2-Diff of the main control chip 10. The main control chip 10 detects the high level and determines that a communication conflict has occurred. At this time, the first control terminal Switch1 of the main control chip 10 controls the first switch circuit 40 to open, preventing the signal from the first bus 100 from being transmitted to the second bus. In this way, stopping signal transmission does not cause the entire repeater to fall into an infinite loop of conflict.
[0070] It should be noted that the signals at the first output terminal 303 and the first input terminal 305 are different because: the signal at the first input terminal 305 is a single-ended signal from the differential signal of the first bus 100, which is converted and transmitted to the first input terminal 305 of the second control circuit 30. The signal at the first output terminal 303 is the result of: the differential signal of the first bus 100 being converted into a single-ended signal and transmitted to the first input terminal 305 of the second control circuit 30; the second control circuit 30 then converts the single-ended signal back into a differential signal and transmits it to the second bus 200; simultaneously, the second control circuit 30 combines this differential signal with the differential signal transmitted from the second bus itself, performs a further conversion, and then outputs a single-ended signal via the first output terminal 303. Therefore, the two signals are different.
[0071] Similarly, refer to Figure 4The second bus 200 transmits the differential signal to the signal terminal 30X of the second control circuit 30. The second control circuit 30 converts the differential signal into a single-ended signal, and the first output terminal 303 of the second control circuit 30 outputs the single-ended signal to the second switching circuit 50. When the second switching circuit 50 is turned on, the single-ended signal is transmitted to the first input terminal 205 of the first control circuit 20 via the second switching circuit 50. The first control circuit 20 converts the single-ended signal into a differential signal, and the signal terminal 20X of the first control circuit 20 transmits the differential signal to the first bus 100.
[0072] During the transmission of the differential signal from the second bus 200 to the first bus 100, the first control circuit 20 compares whether the signal at the first output terminal 203 and the signal at the first input terminal 205 are the same, and transmits the second result signal to the first detection terminal HBS1-Diff of the main control chip 10.
[0073] Here, the signal compared by the first output terminal 203 of the first control circuit 20 refers to: the differential signal of the second bus 200 is converted into a single-ended signal and transmitted to the first input terminal 205 of the first control circuit 20; the first control circuit 20 then converts the single-ended signal into a differential signal and transmits it to the first bus 100; at the same time, the first control circuit 20 converts the differential signal from the first bus 100 and outputs it as a single-ended signal through the first output terminal 203.
[0074] The differential signal from the first bus includes two cases: the first is the differential signal from the second bus 200 transmitted to the first bus 100 after a series of conversions; the second is the differential signal obtained by superimposing the differential signal from the second bus 200 transmitted to the first bus 100 after a series of conversions and the differential signal from the first bus 100 itself transmitted to the repeater.
[0075] If the signal at the first output terminal 203 is the same as the signal at the first input terminal 205, it means that the signal received by the repeater only comes from the second bus, and the first bus itself does not transmit a signal to the repeater. The second output terminal 204 of the first control circuit 20 outputs a low level to the first detection terminal HBS1-Diff of the main control chip 10. The main control chip 10 does not perform any action when it detects the low level. That is to say, at this time, the second switch circuit 50 remains in the conducting state, the signal is transmitted normally, and the second bus 200 can transmit the differential signal to the first bus 100.
[0076] If the signal at the first output terminal 203 is different from the signal at the first input terminal 205, it indicates that the repeater receives signals not only from the second bus but also from the first bus. The second output terminal 204 of the first control circuit 20 outputs a high level to the first detection terminal HBS1-Diff of the main control chip 10. The main control chip 10 detects the high level and determines that a communication conflict has occurred. At this time, the second control terminal Switch2 of the main control chip 10 controls the second switch circuit 50 to open, preventing signals from the second bus 200 from being transmitted to the second bus. In this way, stopping signal transmission does not cause the entire repeater to fall into an infinite loop of conflict.
[0077] It should be noted that the signals at the first output terminal 203 and the first input terminal 205 are different because: the signal at the first input terminal 205 is a single-ended signal from the differential signal of the second bus 200, which is converted and transmitted to the first input terminal 205 of the first control circuit 20. The signal at the first output terminal 203 is the result of: the differential signal of the second bus 200 being converted into a single-ended signal and transmitted to the first input terminal 205 of the first control circuit 20; the first control circuit 20 then converts the single-ended signal back into a differential signal and transmits it to the first bus 100; simultaneously, the first control circuit 20 combines this differential signal with the differential signal transmitted from the first bus itself, performs further conversion, and then outputs a single-ended signal via the first output terminal 203. Therefore, the two signals are different.
[0078] In this system, multiple air conditioning systems 300 communicate with each other via a first bus and a second bus using differential signals. A differential signal consists of two voltage signals with equal amplitude but opposite phase, typically used to suppress common-mode interference and improve anti-interference capabilities. The main purpose of converting a differential signal to a single-ended signal is for waveform shaping. After long-distance transmission, the waveform of a differential signal becomes poor, meaning the signal has weakened and needs shaping to further enhance and improve the waveform. The main purpose of converting a single-ended signal to a differential signal is for differential signal regeneration, allowing for further long-distance transmission. Differential signals achieve interference cancellation by applying equal but opposite AC voltages and currents to the two lines, significantly reducing radiation loss. This makes differential signals particularly suitable for high-speed data transmission applications.
[0079] Therefore, converting differential signals to single-ended signals first can enhance the signal and improve its anti-interference ability; then converting single-ended signals to differential signals further completes the communication between multiple air conditioning systems.
[0080] A second aspect of this application provides a communication method for an air conditioning system, the communication method comprising:
[0081] The first control circuit receives the signal from the first output terminal and the signal from the first input terminal, compares whether the signal from the first output terminal and the signal from the first input terminal are the same, obtains the first result signal, and transmits the first result signal to the first detection terminal.
[0082] The second control circuit structure compares the signal at the first output terminal with the signal at the first input terminal to determine if they are the same, obtains a second result signal, and transmits the second result signal to the second detection terminal.
[0083] In summary, some embodiments of this application provide an air conditioning system in which a repeater can transmit signals to the other side in real time when there is a signal on only one side of the bus, thereby improving the overall performance and response speed of the repeater's signal transmission. Simultaneously, when signals are transmitted on both sides of the bus, the main control chip can shut down the corresponding switching circuits to block signal transmission, ensuring that even if two or more nodes start sending data simultaneously, the entire network will not fall into an infinite loop of conflict. Furthermore, when multiple air conditioning systems transmit signals over long distances, the signal gradually weakens. Converting differential signals to single-ended signals using a repeater can improve the signal's anti-interference capability and further strengthen the signal. Then, converting the single-ended signal back to a differential signal suitable for air conditioning system communication completes long-distance communication.
[0084] like Figure 5 As shown, the first transmitting terminal UART1-TXD of the main control chip 10 is electrically connected to the first input terminal 205 of the first control circuit 20, and the second transmitting terminal UART2-TXD of the main control chip is electrically connected to the first input terminal 305 of the second control circuit 30.
[0085] When the signal at the first output terminal 203 of the first control circuit 20 and the signal at the first input terminal 205 are different, the main control chip 10 is configured to output a blocking signal to the first input terminal 205 of the first control circuit 20 and the first input terminal 305 of the second control circuit 30.
[0086] When the signal at the first output terminal 303 of the second control circuit 30 is different from the signal at the first input terminal 305, the main control chip 10 is configured to output a blocking signal to the first input terminal 205 of the first control circuit 20 and the first input terminal 305 of the second control circuit 30.
[0087] The first bus 100 includes a first bus 110 and a second bus 120; the signal terminal 20X of the first control circuit 20 includes a first terminal 201 and a second terminal 202.
[0088] The second bus 200 includes: a first second bus 210 and a second second bus 220; the signal terminal 30X of the second control circuit 30 includes: a first terminal 301 and a second terminal 302.
[0089] like Figure 6 As shown, the first output terminal 203 of the first control circuit 20 is also electrically connected to the first receiving terminal UART1-RXD and the first external interrupt terminal MCU-IRQ1 of the main control chip 10.
[0090] The first output terminal 303 of the second control circuit 30 is also electrically connected to the second receiving terminal UART2-RXD and the second external interrupt terminal MCU-IRQ2 of the main control chip 10.
[0091] The main control chip 10 is also configured to control the first switching circuit 40 to turn on when it receives a single-ended signal from the first output terminal 203 of the first control circuit 20; and to control the second switching circuit 50 to turn on when it receives a single-ended signal from the first output terminal 303 of the second control circuit 30.
[0092] For example, the first bus 100 transmits the differential signal to the first terminal 201 and the second terminal 202 of the first control circuit 20. The first control circuit 20 converts the differential signal into a single-ended signal and transmits it from the first output terminal 203 to the first receiving terminal UART1-RXD of the main control chip 10 and the first external interrupt terminal MCU-IRQ1 of the main control chip 10.
[0093] The main control chip 10 will generate a serial port receive interrupt after its first receiving terminal UART1-RXD receives a complete byte.
[0094] The first external interrupt terminal MCU-IRQ1 of the main control chip 10 is configured to be triggered by the falling edge. Once the first output terminal 203 of the first control circuit 20 has a signal output, it will be detected immediately, thus realizing carrier detection in carrier sense multiple access / collision detection.
[0095] Similarly, the second bus 200 transmits the differential signal to the first terminal 301 and the second terminal 302 of the second control circuit 30. The second control circuit 30 converts the differential signal into a single-ended signal and transmits it from the first output terminal 303 to the second receiving terminal UART2-RXD of the main control chip 10 and the second external interrupt terminal MCU-IRQ2 of the main control chip 10. At the same time, it also transmits the single-ended signal to the first input terminal 205 of the first control circuit 20.
[0096] Similarly, the first control circuit 20 converts the differential signal into a single-ended signal and transmits it from the first output terminal 203 to the first input terminal 305 of the second control circuit 30.
[0097] Among them, the second receiving terminal UART2-RXD of the main control chip 10 will generate a serial port receive interrupt after receiving a complete byte.
[0098] The second external interrupt terminal MCU-IRQ2 of the main control chip 10 is configured to be triggered by the falling edge. Once the first output terminal 303 of the second control circuit 30 has a signal output, it will be detected immediately, thus realizing carrier detection in carrier sense multiple access / collision detection.
[0099] The main purpose of the serial port receive interrupt generated by the main control chip is to determine that a complete byte of data has been relayed and to shut down either the first switch circuit 40 or the second switch circuit 50, thus restoring the repeater to its normal state, where both switches are in the off state. Specifically, when data is received via the serial port, the serial port receive interrupt is set. As long as the serial port interrupt is enabled, the main control chip will enter the serial port interrupt handler. By using the serial port interrupt, the processor can avoid spending excessive time polling the serial port, thereby improving the overall system performance and response speed.
[0100] It's important to note that Carrier Sense Multiple Access with Collision Detection (CSMA / CD) is a protocol used in Ethernet LANs to implement multi-point access and collision detection. Its working principle is as follows: Before sending data, a node first listens to the channel status. If the channel is idle, the node can begin sending data; if the channel is busy, the node needs to wait for a period before retrying. When the node finds the channel idle, it immediately begins sending data and continues listening to the channel. If a collision is detected during data transmission (i.e., another node simultaneously begins sending data), that node immediately stops sending and enters a backoff phase. Once a collision occurs, all nodes involved in the collision stop sending and randomly select a time delay before retrying to send data. This mechanism ensures that even if two or more nodes begin sending data simultaneously, the entire network will not fall into an infinite collision loop.
[0101] For example, refer to Figure 7 For the first control circuit 20: the first input terminal 205 of the first control circuit 20 receives a single-ended signal from the second control circuit 30, and the first control circuit 20 converts the single-ended signal from the second control circuit 30 into a differential signal. The differential signal is transmitted to the first bus 100 via the first terminal 201 and the second terminal 202 of the first control circuit 20. At the same time, the differential signal of the second bus 200 is converted into a differential signal on the first bus 100 and a differential signal on the first bus 100 itself transmitted to the repeater. The differential signal obtained by superimposing the two differential signals is converted into a single-ended signal again and compared with the single-ended signal from the second control circuit 30.
[0102] If the signals of the two are the same, it means that the signal only comes from the second bus and the first bus has no signal transmitted to the repeater. The second output terminal 204 of the first control circuit 20 outputs a low level to the first detection terminal HBS1-Diff of the main control chip 10. The main control chip 10 does not take any action when it detects the low level. That is to say, the second switch circuit 50 remains on at this time, the signal is transmitted normally, and the second bus 200 can transmit the differential signal to the first bus 100.
[0103] If the signals from the two are different, it means that the signal comes not only from the second bus, but also from the first bus. The second output terminal 204 of the first control circuit 20 outputs a high level to the first detection terminal HBS1-Diff of the main control chip 10. When the main control chip 10 detects the high level, it determines that a communication conflict has occurred.
[0104] After a collision is detected, the main control chip 10 will control the second switch circuit 50 to disconnect. Then, the main control chip 10 will send a blocking signal 0XAA through the first receiving terminal UART1-TXD. The blocking signal will be sent to the first input terminal 205 of the first control circuit 20 and the first input terminal 305 of the second control circuit 30. Through the conversion of the first control circuit 20 and the second control circuit 30, the blocking signal will be transmitted to the first bus 100 and the second bus 200 on both sides of the repeater 400.
[0105] After the blocking signal is sent to the first bus 100 and the second bus 200, the communication nodes on both sides of the repeater 400 will detect a communication conflict. According to the CSMA / CD principle, the communication nodes on both sides will stop sending data to the first bus and the second bus, and enter the communication logic of contending for the bus again after a random delay.
[0106] When the repeater 400 feeds back the blocking signal 0XAA to the first bus 100 and the second bus 200 on both sides, the first receiving terminal UART1-TXD and the second receiving terminal UART2-TXD of the main control chip synchronously receive the data from the first output terminal 203 of the first control circuit 20 and the first output terminal 303 of the second control circuit 30. This continues until both the first receiving terminal UART1-TXD and the second receiving terminal UART2-TXD receive the blocking signal 0XAA on the bus. At this point, the blocking is considered successful. Otherwise, the main control chip 10 continues to send blocking signals to the first bus 100 and the second bus 200. After successful blocking, the main control chip 10 controls the repeater to return to its normal state (i.e., the repeater is in an idle state).
[0107] For example, refer to Figure 8For the second control circuit 30: the first input terminal 305 of the second control circuit 30 receives the single-ended signal from the first control circuit 20, and the second control circuit 30 converts the single-ended signal from the first control circuit 20 into a differential signal. The differential signal is transmitted to the second bus 200 via the first terminal 301 and the second terminal 302 of the second control circuit 30. At the same time, the differential signal of the first bus 100 is converted into a differential signal on the second bus 200 and a differential signal on the second bus 200 that is transmitted to the repeater. The differential signal obtained by superimposing the two differential signals is converted into a single-ended signal again and compared with the single-ended signal from the first control circuit 20.
[0108] If the signals of the two are the same, it means that the signal only comes from the first bus 100 and the second bus 200 has no signal transmitted to the repeater 400. The second output terminal 304 of the second control circuit 30 outputs a low level to the second detection terminal HBS2-Diff of the main control chip 10. The main control chip 10 does not take any action when it detects the low level. That is to say, the first switch circuit 40 remains in the conducting state at this time, the signal is transmitted normally, and the first bus 100 can transmit the differential signal to the second bus 200.
[0109] If the two signals are different, it means that the signal comes not only from the first bus 100, but also from the second bus 200. The second output terminal 304 of the second control circuit 30 outputs a high level to the second detection terminal HBS2-Diff of the main control chip 10. When the main control chip 10 detects the high level, it determines that a communication conflict has occurred.
[0110] After a collision is detected, the main control chip 10 will control the first switching circuit 40 to disconnect. Then, the main control chip 10 will send a blocking signal 0XAA through the second receiving terminal UART2-TXD. The blocking signal will be sent to the first input terminal 305 of the second control circuit 30 and the first input terminal 205 of the first control circuit 20. Through the conversion between the first control circuit 20 and the second control circuit 30, the blocking signal will be transmitted to the first bus 100 and the second bus 200 on both sides of the repeater 400.
[0111] After the blocking signal is sent to the first bus 100 and the second bus 200, the communication nodes on both sides of the repeater 400 will detect a communication conflict. According to the CSMA / CD principle, the communication nodes on both sides will stop sending data to the first bus 100 and the second bus 200, and enter the communication logic of contending for the bus again after a random delay.
[0112] When the repeater 400 feeds back the blocking signal 0XAA to the first bus 100 and the second bus 200 on both sides, the first receiving terminal UART1-TXD and the second receiving terminal UART2-TXD of the main control chip synchronously receive the data from the first output terminal 203 of the first control circuit 20 and the first output terminal 303 of the second control circuit 30. This continues until both the first receiving terminal UART1-TXD and the second receiving terminal UART2-TXD receive the blocking signal 0XAA on the bus. At this point, the blocking is considered successful. Otherwise, the main control chip 10 continues to send blocking signals to the first bus 100 and the second bus 200. After successful blocking, the main control chip 10 controls the repeater to return to its normal state (i.e., the repeater is in an idle state).
[0113] The above control process enables the detection of communication conflicts on both sides of the repeater and the feedback of communication conflicts to both sides.
[0114] In summary, some embodiments of this application provide an air conditioning system in which the repeater uses carrier detection and collision detection to achieve signal transmission and collision feedback. When there is a signal on only one side of the bus, the signal can be transmitted to the other side in real time. By generating a serial port receive interrupt through the main control chip, it can be determined that a complete byte has been relayed, allowing the repeater to return to its normal idle state. At the same time, when there is signal transmission on both sides, the corresponding switching circuit can be turned off by the main control chip to block signal transmission. Carrier detection and collision detection ensure that even if two or more nodes start sending data simultaneously, the entire network will not fall into an infinite loop of collision. Furthermore, the blocking signal issued by the main control chip can cause the air conditioning system to stop sending data and enter the communication logic of contending for the bus again after a random delay; this will not cause signal transmission collisions. Further, when multiple air conditioning systems transmit signals over long distances, the signal will gradually weaken. By using the repeater to convert the differential signal into a single-ended signal, the waveform of the signal can be shaped and the signal can be enhanced. Then, the single-ended signal can be converted into a differential signal suitable for air conditioning system communication to complete long-distance communication.
[0115] like Figure 9 As shown, the first control circuit 20 includes a first conversion circuit 21 and a first comparison circuit 22.
[0116] The first conversion circuit 21 includes: a first terminal 211, a second terminal 212, a first output terminal HBS1-Out, and a first input terminal HBS1-In.
[0117] The first terminal 211 of the first conversion circuit 21 is electrically connected to the first terminal 201 of the first control circuit 20, the second terminal 212 of the first conversion circuit 21 is electrically connected to the second terminal 202 of the first control circuit 20, the first output terminal HBS1-Out of the first conversion circuit 21 is electrically connected to the first output terminal 203 of the first control circuit 20, and the first input terminal HBS1-In of the first conversion circuit 21 is electrically connected to the first input terminal 205 of the first control circuit 20.
[0118] The first comparator circuit 22 includes a first input terminal 221, a second input terminal 222, and an output terminal 223.
[0119] The first input terminal 221 of the first comparison circuit 22 is electrically connected to the first output terminal HBS1-Out of the first conversion circuit 21. The second input terminal 222 of the first comparison circuit 22 is electrically connected to the first input terminal HBS1-In of the first conversion circuit 21. The output terminal 223 of the first comparison circuit 22 is electrically connected to the first detection terminal HBS1-Diff of the main control chip 10, which is also electrically connected to the second output terminal 204 of the first control circuit.
[0120] The first conversion circuit 21 is configured to convert the differential signal from the first bus 100 into a single-ended signal, and to convert the single-ended signal from the second control circuit 30 into a differential signal and transmit it to the first bus 100.
[0121] During the transmission of signals from the second bus to the first bus, the first comparison circuit 22 is configured to compare whether the signal at the first output terminal HBS1-Out of the first conversion circuit 21 is the same as the signal at the first input terminal HBS1-In; if they are different, the main control chip 10 is configured to control the second switching circuit 50 to disconnect.
[0122] In some embodiments, the first comparison circuit 22 is an XOR gate circuit, mainly used to detect whether the signal at the first output terminal HBS1-Out and the signal at the first input terminal HBS1-In of the first conversion circuit 21 are the same. If they are the same, a low level "0" is output; if they are different, a high level "1" is output.
[0123] The first switching circuit 40 is configured to turn on when the main control chip 10 receives a signal from the first output terminal HBS1-Out of the first conversion circuit 21.
[0124] For example, the first bus 100 transmits the differential signal to the first terminal 201 and the second terminal 202 of the first control circuit 20, and then transmits the differential signal to the first terminal 211 and the second terminal 212 of the first conversion circuit 21. The first conversion circuit 21 converts the differential signal into a single-ended signal and transmits it from the first output terminal HBS1-Out to the first receiving terminal UART1-RXD of the main control chip 10 and the first external interrupt terminal MCU-IRQ1 of the main control chip 10.
[0125] After the first receiving terminal UART1-RXD of the main control chip 10 receives a complete byte, it will generate a serial port receive interrupt. The first external interrupt terminal MCU-IRQ1 of the main control chip 10 is configured to be triggered by the falling edge. Once the first output terminal HBS1-Out of the first conversion circuit 21 has a signal output, it will be detected immediately, thus realizing carrier detection in carrier sense multiple access / collision detection.
[0126] At this time, the first control terminal Switch1 of the main control chip 10 outputs a high level, which turns on the first switching circuit 40, so that the single-ended signal can be transmitted to the second control circuit.
[0127] The specific process is as follows: The first bus 100 transmits the differential signal to the first terminal 211 and the second terminal 212 of the first conversion circuit 21. The first conversion circuit 21 converts the differential signal into a single-ended signal and transmits it from the first output terminal HBS1-Out to the first external interrupt terminal MCU-IRQ1 of the main control chip 10. The first external interrupt terminal MCU-IRQ1 of the main control chip 10 is configured to be triggered by a falling edge. Once the first output terminal HBS1-Out of the first conversion circuit 21 has a signal output, it will be detected immediately. As a result, the first control terminal Switch1 of the main control chip outputs a high level, which turns on the first switch circuit 40 and transmits the single-ended signal to the second control circuit 30.
[0128] For the first control circuit, the above process refers to the transmission of differential signals from the first bus 100 to the second bus 200; and the specific process of transmitting differential signals from the second bus 200 to the first bus 100 is as follows:
[0129] The first input terminal 205 of the first conversion circuit 21 receives a single-ended signal from the second control circuit 30. The first conversion circuit 21 converts the single-ended signal from the second control circuit 30 into a differential signal. While transmitting the differential signal to the first bus 100 via the first terminal 211 and the second terminal 212 of the first conversion circuit 21, the differential signal is converted back into a single-ended signal and compared with the single-ended signal from the second control circuit 30 via the first comparison circuit 22.
[0130] If the signals of the two are the same, it means that the signal only comes from the second bus and the first bus has no signal transmitted to the repeater. The second output terminal 223 of the first comparator circuit 22 outputs a low level to the first detection terminal HBS1-Diff of the main control chip 10. The main control chip 10 will work normally if it detects the low level.
[0131] If the two signals are different, it means that the signal comes not only from the second bus, but also from the first bus. The second output terminal 223 of the first comparison circuit 22 outputs a high level to the first detection terminal HBS1-Diff of the main control chip 10. The main control chip 10 detects the high level and determines that a communication conflict has occurred.
[0132] After a collision is detected, the main control chip 10 will control the second switch circuit 50 to disconnect. Then, the main control chip 10 will send a blocking signal 0XAA through the first transmitting terminal UART1-TXD. The blocking signal will be sent to the first input terminal 205 of the first control circuit 20 and the first input terminal 305 of the second control circuit 30. Through the conversion of the first control circuit 20 and the second control circuit 30, the blocking signal will be transmitted to the first bus 100 and the second bus 200 on both sides of the repeater 400.
[0133] After the blocking signal is sent to the first bus 100 and the second bus 200, the communication nodes on both sides of the repeater 400 will detect a communication conflict. According to the CSMA / CD principle, the communication nodes on both sides will stop sending data to the first bus and the second bus, and enter the communication logic of contending for the bus again after a random delay.
[0134] When the repeater 400 feeds back the blocking signal 0XAA to the first bus 100 and the second bus 200 on both sides, the first receiving terminal UART1-TXD and the second receiving terminal UART2-TXD of the main control chip synchronously receive data from the first output terminal 203 of the first control circuit 20 and the first output terminal 303 of the second control circuit 30. This continues until both the first receiving terminal UART1-RXD and the second receiving terminal UART2-RXD receive the blocking signal 0XAA on the bus. At this point, the blocking is considered successful. Otherwise, the main control chip 10 continues to send blocking signals to the first bus 100 and the second bus 200. After successful blocking, the main control chip 10 controls the repeater to return to its normal state (i.e., the repeater is in an idle state).
[0135] like Figure 10 As shown, the first conversion circuit 21 includes: a first receiving coupling circuit 24, a first transmitting coupling circuit 25, and a first driving chip IC1.
[0136] The first terminal 241 of the first receiving coupling circuit 24 is electrically connected to the first terminal 211 of the first conversion circuit 21, and the second terminal 242 of the first receiving coupling circuit 24 is electrically connected to the second terminal 212 of the first conversion circuit 21.
[0137] The first terminal 251 of the first transmitting coupling circuit 25 is electrically connected to the first terminal 211 of the first conversion circuit 21, and the second terminal 252 of the first transmitting coupling circuit 25 is electrically connected to the second terminal 212 of the first conversion circuit 21.
[0138] The first input terminal IN11 of the first driver chip IC1 is electrically connected to the third terminal 243 of the first receiving coupling circuit 24; the second input terminal IN12 of the first driver chip IC1 is electrically connected to the fourth terminal 244 of the first receiving coupling circuit 24; the first output terminal OutB of the first driver chip IC1 is electrically connected to the third terminal 253 of the first transmitting coupling circuit 25; and the second output terminal OutA of the first driver chip IC1 is electrically connected to the fourth terminal 254 of the first transmitting coupling circuit 25.
[0139] The third output terminal Out of the first driver chip IC1 is electrically connected to the first output terminal HBS1-Out of the first conversion circuit, and the third input terminal IN of the first driver chip IC1 is electrically connected to the first input terminal HBS1-In of the first conversion circuit.
[0140] The first driver chip IC1 is configured to convert differential signals from the first bus 100 into single-ended signals and single-ended signals from the second bus 200 into differential signals.
[0141] For example, the first bus 100 transmits the differential signal via the first receiving coupling circuit 24 to the first input terminal IN11 and the second input terminal IN12 of the first driver chip IC1. The first driver chip IC1 converts the differential signal into a single-ended signal and transmits it from the first output terminal HBS1-Out to the first receiving terminal UART1-RXD of the main control chip 10 and the first external interrupt terminal MCU-IRQ1 of the main control chip 10.
[0142] After the first receiving terminal UART1-RXD of the main control chip 10 receives a complete byte, it generates a serial port receive interrupt. The first external interrupt terminal MCU-IRQ1 of the main control chip 10 is configured to be triggered by a falling edge. Once the first output terminal HBS1-Out of the first conversion circuit 21 has a signal output, it will be detected immediately, thus realizing carrier detection in carrier sense multiple access / collision detection. At this time, the first control terminal Switch1 of the main control chip 10 outputs a high level, which turns on the first switching circuit 40, thereby allowing the single-ended signal to be transmitted to the second control circuit.
[0143] The first receiving coupling circuit 24 is configured to remove the DC component from the differential signal from the first bus and couple the differential signal to the first driver chip IC1 for amplification, thereby enhancing the weak differential signal.
[0144] Similarly, the first transmitting coupling circuit 25 is configured to remove the DC component from the differential signal from the second bus, and the differential signal is amplified by the first driver chip IC1. The amplified signal can also be output through coupling, thus realizing the transmission of signal and energy.
[0145] In some embodiments, the first receiving coupling circuit 24 and the first transmitting coupling circuit 25 can also suppress low-frequency interference.
[0146] like Figure 11 As shown, the first receiving coupling circuit 24 includes: a first capacitor C1 and a second capacitor C2.
[0147] The first end of the first capacitor C1 is electrically connected to the first end 241 of the first receiving coupling circuit 24, and the second end of the first capacitor C1 is electrically connected to the third end 243 of the first receiving coupling circuit 24.
[0148] The first end of the second capacitor C2 is electrically connected to the second end 242 of the first receiving coupling circuit 24, and the second end of the second capacitor C2 is electrically connected to the fourth end 244 of the first receiving coupling circuit 24.
[0149] like Figure 12 As shown, the first transmitting coupling circuit 25 includes a third capacitor C3 and a fourth capacitor C4.
[0150] The first end of the third capacitor C3 is electrically connected to the first end 251 of the first transmitting coupling circuit 25, and the second end of the third capacitor C3 is electrically connected to the third end 253 of the first transmitting coupling circuit 25.
[0151] The first terminal of the fourth capacitor C4 is electrically connected to the second terminal 252 of the first transmitting coupling circuit 25, and the second terminal of the third capacitor C3 is electrically connected to the fourth terminal 254 of the first transmitting coupling circuit 25.
[0152] like Figure 13 As shown, in some embodiments, the first conversion circuit 21 further includes a first bus driving circuit 26.
[0153] The first terminal 261 of the first bus driver circuit 26 is electrically connected to the third output terminal Outb of the first driver chip IC1; the second terminal 262 of the first bus driver circuit 26 is electrically connected to the fourth output terminal Outa of the first driver chip IC1; the third terminal 263 of the first bus driver circuit 26 is electrically connected to the first output terminal OutB of the first driver chip IC1; the fourth terminal 264 of the first bus driver circuit 26 is electrically connected to the second output terminal OutA of the first driver chip IC1; and the fifth terminal 265 and the sixth terminal 266 of the first bus driver circuit 26 are electrically connected to the ground terminal GND.
[0154] like Figure 14 As shown, the first bus driving circuit 26 includes: a first transistor Q1 and a second transistor Q2.
[0155] The control terminal of the first transistor Q1 is electrically connected to the first terminal 261 of the first bus driving circuit 26, the first terminal of the first transistor Q1 is electrically connected to the third terminal 263 of the first bus driving circuit 26, and the second terminal of the first transistor Q1 is electrically connected to the fifth terminal 265 of the first bus driving circuit 26.
[0156] The control terminal of the second transistor Q2 is electrically connected to the second terminal 262 of the first bus driving circuit 26, the first terminal of the second transistor Q2 is electrically connected to the fourth terminal 264 of the first bus driving circuit 26, and the second terminal of the second transistor Q2 is electrically connected to the sixth terminal 266 of the first bus driving circuit 26.
[0157] like Figure 15 As shown, the first switching circuit 40 includes: a fifth transistor Q5, a sixth transistor Q6, and a first resistor R1.
[0158] The control terminal of the fifth transistor Q5 is electrically connected to the control terminal 401 of the first switching circuit 40; the second terminal of the fifth transistor Q5 is electrically connected to the ground terminal GND.
[0159] The control terminal of the sixth transistor Q6 is electrically connected to the first terminal of the fifth transistor Q5, the first terminal of the sixth transistor Q6 is electrically connected to the first terminal of the first switching circuit 40, and the second terminal of the sixth transistor Q6 is electrically connected to the second terminal of the first switching circuit 40.
[0160] The first end of the first resistor R1 is electrically connected to the first end of the first switching circuit 40, and the second end of the first resistor R1 is electrically connected to the first end of the fifth transistor Q5.
[0161] In some embodiments, the fifth transistor Q5 is an NMOS transistor, and the sixth transistor Q6 is a PMOS transistor. The NMOS transistor is turned on when it receives a high level and turned off when it receives a low level; the PMOS transistor is turned off when it receives a high level and turned on when it receives a low level.
[0162] For example, if the first bus 100 has a differential signal but the second bus 200 does not, the first bus 100 transmits the differential signal to the first terminal 201 and the second terminal 202 of the first control circuit 20, and then transmits the differential signal to the first terminal 211 and the second terminal 212 of the first conversion circuit 21. The first conversion circuit 21 converts the differential signal into a single-ended signal and transmits it from the first output terminal HBS1-Out to the first receiving terminal UART1-RXD of the main control chip 10 and the first external interrupt terminal MCU-IRQ1 of the main control chip 10.
[0163] The first switch circuit 40 is turned on by the interrupt service of the first external interrupt terminal MCU_IRQ1. Once the first external interrupt terminal MCU_IRQ1 detects a signal transmission, it can immediately turn on the first switch circuit 40.
[0164] During the interrupt service, the main control chip 10 outputs a high level to the control terminal of the first switching circuit 40. At this time, the fifth transistor Q5 receives the high level and turns on, causing the potential of the first terminal of the fifth transistor Q5 to be pulled down to the potential of the ground terminal, which is a low level. The control terminal of the sixth transistor Q6 is electrically connected to the first terminal of the fifth transistor Q5, so the potential of the control terminal of the sixth transistor Q6 is also a low level. The sixth transistor Q6 receives the low level and turns on, so the single-ended signal from the first output terminal HBS1-Out of the first conversion circuit can be transmitted from the first terminal of the first switching circuit 40 to the second terminal of the first switching circuit 40, and then the single-ended signal is transmitted to the second control circuit 30. The second control circuit converts the single-ended signal into a differential signal and transmits the differential signal to the second bus 200, thereby completing the signal transmission from the first bus 100 to the second bus 200.
[0165] After a complete byte is transmitted on the first bus 100, the first receiving terminal UART1-RXD of the main control chip 10 will trigger a receive interrupt. During this interrupt service, the main control chip 10 will output a low level to the control terminal of the first switching circuit 40, causing the first switching circuit 40 to disconnect. The above control process completes the transmission of a complete byte of information from the first bus 100 to the second bus 200.
[0166] The function of the first receiver, UART1_RXD, is to determine when a complete byte has been relayed and to restore the repeater to an idle state. This idle state restoration is completed within the interrupt service routine triggered by the first receiver, UART1_RXD. At this point, the repeater is essentially disconnected and cannot transmit signals until the next byte signal arrives.
[0167] like Figure 16 As shown, the second control circuit 30 includes: a second conversion circuit 31 and a second comparison circuit 32.
[0168] The second conversion circuit 31 includes: a first terminal 311, a second terminal 312, a first output terminal HBS2-Out, and a first input terminal HBS2-In.
[0169] The first terminal 311 of the second conversion circuit 31 is electrically connected to the first terminal 301 of the second control circuit 30, the second terminal 312 of the second conversion circuit 31 is electrically connected to the second terminal 302 of the second control circuit 30, the first output terminal HBS2-Out of the second conversion circuit 31 is electrically connected to the first output terminal 303 of the second control circuit 30, and the first input terminal HBS2-In of the second conversion circuit 31 is electrically connected to the first input terminal 305 of the second control circuit 30.
[0170] The second comparator circuit 32 includes a first input terminal 321, a second input terminal 322, and an output terminal 323.
[0171] The first input terminal 321 of the second comparison circuit 32 is electrically connected to the first output terminal HBS2-Out of the second conversion circuit 31, the second input terminal 322 of the second comparison circuit 32 is electrically connected to the first input terminal HBS2-In of the second conversion circuit 31, and the output terminal 323 of the second comparison circuit 32 is electrically connected to the second detection terminal HBS2-Diff of the main control chip 10.
[0172] The second conversion circuit 31 is configured to convert the differential signal from the second bus 200 into a single-ended signal and convert the single-ended signal from the first control circuit 20 into a differential signal for transmission to the second bus 200.
[0173] During the transmission of signals from the first bus to the second bus, the second comparison circuit 32 is configured to compare whether the signal at the first output terminal HBS2-Out of the second conversion circuit 31 is the same as the signal at the first input terminal HBS2-In; if they are different, the main control chip 10 is configured to control the first switching circuit 40 to disconnect.
[0174] In some embodiments, the second comparison circuit 32 is an XOR gate circuit, mainly used to detect whether the signal at the first output terminal HBS2-Out and the signal at the first input terminal HBS2-In of the second conversion circuit 31 are the same. If they are the same, a low level "0" is output; if they are different, a high level "1" is output.
[0175] The second switching circuit 50 is configured to turn on when the main control chip 10 receives a signal from the first output terminal HBS2-Out of the second conversion circuit 31.
[0176] For example, the second bus 200 transmits the differential signal to the first terminal 301 and the second terminal 302 of the second control circuit 30, and then transmits the differential signal to the first terminal 311 and the second terminal 312 of the second conversion circuit 31. The second conversion circuit 31 converts the differential signal into a single-ended signal and transmits it from the first output terminal HBS2-Out to the second receiving terminal UART2-RXD of the main control chip 10 and the second external interrupt terminal MCU-IRQ2 of the main control chip 10.
[0177] Among them, the second receiving terminal UART2-RXD of the main control chip 10 will generate a serial port receive interrupt after receiving a complete byte.
[0178] The second external interrupt terminal MCU-IRQ2 of the main control chip 10 is configured to be triggered by the falling edge. Once the first output terminal HBS2-Out of the second conversion circuit 31 has a signal output, it will be detected immediately, thus realizing carrier detection in carrier sense multiple access / collision detection.
[0179] At this time, the second control terminal Switch2 of the main control chip 10 outputs a high level, which turns on the second switch circuit 50, so that the single-ended signal can be transmitted to the first control circuit.
[0180] The specific process is as follows: The second bus 200 transmits the differential signal to the first terminal 311 and the second terminal 312 of the second conversion circuit 31. The second conversion circuit 31 converts the differential signal into a single-ended signal and transmits it from the first output terminal HBS2-Out to the second external interrupt terminal MCU-IRQ2 of the main control chip 10. The first external interrupt terminal MCU-IRQ2 of the main control chip 10 is configured to be triggered by a falling edge. Once the first output terminal HBS2-Out of the second conversion circuit 31 has a signal output, it will be detected immediately, thereby causing the second control terminal Switch2 of the main control chip 10 to output a high level, thus turning on the second switch circuit 50. The single-ended signal is then transmitted to the first control circuit 20.
[0181] For the second control circuit, the above process refers to the transmission of the differential signal from the second bus 200 to the first bus 100; and the specific process of the transmission of the differential signal from the first bus 100 to the second bus 200 is as follows.
[0182] The first input terminal 305 of the second conversion circuit 31 receives a single-ended signal from the first control circuit 20. The second conversion circuit 31 converts the single-ended signal from the first control circuit 20 into a differential signal. While transmitting the differential signal to the second bus 200 via the first terminal 311 and the second terminal 312 of the second conversion circuit 31, the differential signal is converted back into a single-ended signal and compared with the single-ended signal from the first control circuit 20 via the second comparison circuit.
[0183] If the signals from both are the same, it means that the signal only comes from the first bus and no signal is transmitted to the repeater from the second bus. The second output terminal 323 of the second comparator circuit 32 outputs a low level to the second detection terminal HBS2-Diff of the main control chip 10. The main control chip 10 will work normally if it detects the low level.
[0184] If the two signals are different, it means that the signal comes not only from the first bus, but also from the second bus. The second output terminal 223 of the first comparison circuit 22 outputs a high level to the first detection terminal HBS1-Diff of the main control chip 10. The main control chip 10 detects the high level and determines that a communication conflict has occurred.
[0185] After a collision is detected, the main control chip 10 will control the first switching circuit 40 to disconnect. Then, the main control chip 10 will send a blocking signal 0XAA through the second transmitting terminal UART2-TXD. The blocking signal will be sent to the first input terminal 205 of the first control circuit 20 and the first input terminal 305 of the second control circuit 30. Through the conversion of the first control circuit 20 and the second control circuit 30, the blocking signal will be transmitted to the first bus 100 and the second bus 200 on both sides of the repeater 400.
[0186] After the blocking signal is sent to the first bus 100 and the second bus 200, the communication nodes on both sides of the repeater 400 will detect a communication conflict. According to the CSMA / CD principle, the communication nodes on both sides will stop sending data to the first bus and the second bus, and enter the communication logic of contending for the bus again after a random delay.
[0187] When the repeater 400 feeds back the blocking signal 0XAA to the first bus 100 and the second bus 200 on both sides, the first transmitting terminal UART1-TXD and the second transmitting terminal UART2-TXD of the main control chip synchronously receive data from the first output terminal 203 of the first control circuit 20 and the first output terminal 303 of the second control circuit 30. This continues until both the first receiving terminal UART1-RXD and the second receiving terminal UART2-RXD receive the blocking signal 0XAA on the bus. At this point, the blocking is considered successful. Otherwise, the main control chip 10 continues to send blocking signals to the first bus 100 and the second bus 200. After successful blocking, the main control chip 10 controls the repeater to return to its normal state (i.e., the repeater is in an idle state).
[0188] like Figure 17 As shown, the second conversion circuit 31 includes: a second receiving coupling circuit 34, a second transmitting coupling circuit 35, and a second driver chip IC2.
[0189] The first terminal 341 of the second receiving coupling circuit 34 is electrically connected to the first terminal 311 of the second conversion circuit 31, and the second terminal 342 of the second receiving coupling circuit 34 is electrically connected to the second terminal 312 of the second conversion circuit 31.
[0190] The first terminal 351 of the second transmitting coupling circuit 35 is electrically connected to the first terminal 311 of the second conversion circuit 31, and the second terminal 352 of the second transmitting coupling circuit 35 is electrically connected to the second terminal 312 of the second conversion circuit 31.
[0191] The first input terminal IN21 of the second driver chip IC2 is electrically connected to the third terminal 343 of the second receiving coupling circuit 34; the second input terminal IN22 of the second driver chip IC2 is electrically connected to the fourth terminal 344 of the second receiving coupling circuit 34; the first output terminal OutB of the second driver chip IC2 is electrically connected to the third terminal 353 of the second transmitting coupling circuit 35; and the second output terminal OutA of the second driver chip IC2 is electrically connected to the fourth terminal 354 of the second transmitting coupling circuit 35.
[0192] The third output terminal Out of the second driver chip IC2 is electrically connected to the first output terminal HBS2-Out of the second conversion circuit 31, and the third input terminal IN of the second driver chip IC2 is electrically connected to the first input terminal HBS2-In of the second conversion circuit 31.
[0193] The second driver chip IC2 is configured to convert differential signals from the second bus 200 into single-ended signals and single-ended signals from the first bus 100 into differential signals.
[0194] For example, the second bus 200 transmits the differential signal via the second receiving coupling circuit 34 to the first input terminal IN21 and the second input terminal IN22 of the second driver chip IC2. The second driver chip IC2 converts the differential signal into a single-ended signal and transmits it from the first output terminal HBS2-Out to the second receiving terminal UART2-RXD of the main control chip 10 and the second external interrupt terminal MCU-IRQ2 of the main control chip 10.
[0195] After the second receiving terminal UART2-RXD of the main control chip 10 receives a complete byte, it generates a serial port receive interrupt. The second external interrupt terminal MCU-IRQ2 of the main control chip 10 is configured to be triggered by a falling edge. Once the first output terminal HBS2-Out of the second conversion circuit 31 has a signal output, it will be detected immediately, thus realizing carrier detection in carrier sense multiple access / collision detection. At this time, the second control terminal Switch2 of the main control chip 10 outputs a high level, which turns on the second switching circuit 50, thereby allowing the single-ended signal to be transmitted to the first control circuit.
[0196] The second receiving coupling circuit 34 is configured to remove the DC component from the differential signal from the second bus and couple the differential signal to the second driver chip IC2 for amplification, thereby enhancing the weak differential signal.
[0197] Similarly, the second transmitting coupling circuit 35 is configured to remove the DC component from the differential signal from the first bus, and the differential signal is amplified by the second driver chip IC2. The amplified signal can also be output through coupling, thus realizing the transmission of signal and energy.
[0198] In some embodiments, the second receiving coupling circuit 34 and the second transmitting coupling circuit 35 can also suppress low-frequency interference.
[0199] like Figure 18 As shown, the second receiving coupling circuit 34 includes a fifth capacitor C5 and a sixth capacitor C6.
[0200] The first terminal of the fifth capacitor C5 is electrically connected to the first terminal of the second receiving coupling circuit 34, and the second terminal of the fifth capacitor C5 is electrically connected to the third terminal of the second receiving coupling circuit 34.
[0201] The first terminal of the sixth capacitor C6 is electrically connected to the second terminal of the second receiving coupling circuit 34, and the second terminal of the sixth capacitor C6 is electrically connected to the fourth terminal of the second receiving coupling circuit 34.
[0202] like Figure 19 As shown, the second transmitting coupling circuit 35 includes a seventh capacitor C7 and an eighth capacitor C8.
[0203] The first terminal of the seventh capacitor C7 is electrically connected to the first terminal 351 of the second transmitting coupling circuit 35, and the second terminal of the seventh capacitor C7 is electrically connected to the third terminal 353 of the second transmitting coupling circuit 35.
[0204] The first terminal of the eighth capacitor C8 is electrically connected to the second terminal 352 of the second transmitting coupling circuit 35, and the second terminal of the seventh capacitor C7 is electrically connected to the fourth terminal 354 of the second transmitting coupling circuit 35.
[0205] like Figure 20 As shown, the second conversion circuit 31 also includes a second bus drive circuit 36.
[0206] The first terminal 361 of the second bus driver circuit 36 is electrically connected to the third output terminal Outb of the second driver chip IC2; the second terminal 362 of the second bus driver circuit 36 is electrically connected to the fourth output terminal Outa of the second driver chip IC2; the third terminal 363 of the second bus driver circuit 36 is electrically connected to the first output terminal OutB of the second driver chip IC2; the fourth terminal 364 of the second bus driver circuit 36 is electrically connected to the second output terminal OutA of the second driver chip IC2; and the fifth terminal 365 and the sixth terminal 366 of the second bus driver circuit 36 are electrically connected to the ground terminal GND.
[0207] like Figure 21 As shown, the second bus drive circuit 36 includes a third transistor Q3 and a fourth transistor Q4.
[0208] The control terminal of the third transistor Q3 is electrically connected to the first terminal 361 of the second bus drive circuit 36, the first terminal of the third transistor Q3 is electrically connected to the third terminal 363 of the second bus drive circuit 36, and the second terminal of the third transistor Q3 is electrically connected to the fifth terminal 365 of the second bus drive circuit 36.
[0209] The control terminal of the fourth transistor Q4 is electrically connected to the second terminal 362 of the second bus drive circuit 36, the first terminal of the fourth transistor Q4 is electrically connected to the fourth terminal 364 of the second bus drive circuit 36, and the second terminal of the fourth transistor Q4 is electrically connected to the sixth terminal 366 of the second bus drive circuit 36.
[0210] like Figure 22 As shown, the second switching circuit 50 includes: a seventh transistor Q7, an eighth transistor Q8, and a second resistor R2.
[0211] The control terminal of the seventh transistor Q7 is electrically connected to the control terminal of the first switching circuit 40; the second terminal of the seventh transistor Q7 is electrically connected to the ground terminal.
[0212] The control terminal of the eighth transistor Q8 is electrically connected to the first terminal of the seventh transistor Q7, the first terminal of the eighth transistor Q8 is electrically connected to the first terminal of the second switching circuit 50, and the second terminal of the eighth transistor Q8 is electrically connected to the second terminal of the second switching circuit 50.
[0213] The first end of the second resistor R2 is electrically connected to the first end of the second switching circuit 50, and the second end of the second resistor R2 is electrically connected to the first end of the seventh transistor Q7.
[0214] In some embodiments, the seventh transistor Q7 is an NMOS transistor, and the eighth transistor Q8 is a PMOS transistor. The NMOS transistor is turned on when it receives a high level and turned off when it receives a low level; the PMOS transistor is turned off when it receives a high level and turned on when it receives a low level.
[0215] For example, if the second bus 200 has a differential signal but the first bus 100 does not, the second bus 200 transmits the differential signal to the first terminal 301 and the second terminal 302 of the second control circuit 30, and then transmits the differential signal to the first terminal 311 and the second terminal 312 of the second conversion circuit 31. The second conversion circuit 31 converts the differential signal into a single-ended signal and transmits it from the second output terminal HBS2-Out to the second receiving terminal UART2-RXD of the main control chip 10 and the second external interrupt terminal MCU-IRQ2 of the main control chip 10.
[0216] The second switch circuit 50 is turned on by the interrupt service of the second external interrupt terminal MCU_IRQ2. Once the second external interrupt terminal MCU_IRQ2 detects a signal transmission, it can immediately turn on the second switch circuit 50.
[0217] During the interrupt service, the main control chip 10 outputs a high level to the control terminal of the second switching circuit 50. At this time, the seventh transistor Q7 receives the high level and turns on, causing the potential of the first terminal of the seventh transistor Q7 to be pulled down to the potential of the ground terminal GND, which is a low level. The control terminal of the eighth transistor Q8 is electrically connected to the first terminal of the seventh transistor Q7, so the potential of the control terminal of the eighth transistor Q8 is also a low level. The eighth transistor Q8 receives the low level and turns on, so the single-ended signal from the first output terminal HBS2-Out of the second conversion circuit can be transmitted from the first terminal of the second switching circuit 50 to the second terminal of the second switching circuit 50, and then the single-ended signal is transmitted to the first control circuit 20. The first control circuit 20 converts the single-ended signal into a differential signal and transmits the differential signal to the first bus 100, thereby completing the signal transmission from the second bus 200 to the first bus 100.
[0218] After a complete byte is transmitted on the second bus 200, the second receiver terminal UART2-RXD of the main control chip 10 will trigger a receive interrupt. During this interrupt service, the main control chip 10 will output a low level to the control terminal 501 of the second switching circuit 50, causing the second switching circuit 50 to disconnect. The above control process completes the transmission of a complete byte of information from the second bus 200 to the first bus 100.
[0219] The function of the second receiver, UART2_RXD, is to determine when a complete byte has been relayed and to restore the repeater to an idle state. This idle state restoration is completed within the interrupt service routine triggered by the second receiver, UART2_RXD. At this point, the repeater is essentially disconnected and cannot transmit signals until the next byte signal arrives.
[0220] In summary, some embodiments of this application provide an air conditioning system in which the repeater uses carrier detection and collision detection to achieve signal transmission and collision feedback. When there is a signal on only one side of the bus, the signal can be transmitted to the other side in real time. By generating a serial port receive interrupt through the main control chip, it can be determined that a complete byte has been relayed, allowing the repeater to return to its normal idle state. At the same time, when there is signal transmission on both sides, the corresponding switching circuit can be turned off by the main control chip to block signal transmission. Carrier detection and collision detection ensure that even if two or more nodes start sending data simultaneously, the entire network will not fall into an infinite loop of collision. Furthermore, the blocking signal issued by the main control chip can cause the air conditioning system to stop sending data and enter the communication logic of contending for the bus again after a random delay; this will not cause signal transmission collisions. Further, when multiple air conditioning systems transmit signals over long distances, the signal will gradually weaken. By converting the differential signal into a single-ended signal through the repeater, the waveform of the signal can be shaped and the signal can be enhanced. Then, the single-ended signal can be converted into a differential signal suitable for air conditioning system communication to complete long-distance communication.
[0221] The above are merely specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. An air conditioning system comprising an outdoor unit and an indoor unit that communicate with each other via a bus, and a repeater connected to the bus; The bus includes: The first bus is configured to transmit differential signals; The second bus is configured to transmit differential signals; The repeater includes: Main control chip; A first control circuit, wherein the signal terminal of the first control circuit is electrically connected to the first bus; and the second output terminal of the first control circuit is electrically connected to the first detection terminal of the main control chip. The second control circuit has its signal terminal electrically connected to the second bus; the second output terminal of the second control circuit is electrically connected to the second detection terminal of the main control chip. A first switching circuit, wherein the control terminal of the first switching circuit is electrically connected to the first control terminal of the main control chip; the first switching circuit is electrically connected between the first output terminal of the first control circuit and the first input terminal of the second control circuit; The second switching circuit has its control terminal electrically connected to the second control terminal of the main control chip; the second switching circuit is also electrically connected between the first output terminal of the second control circuit and the first input terminal of the first control circuit. The first control circuit is configured to: compare the signal at the first output terminal with the signal at the first input terminal to obtain a first result signal, and transmit the first result signal to the first detection terminal; The second control circuit is configured to: compare the signal at the first output terminal with the signal at the first input terminal to obtain a second result signal, and transmit the second result signal to the second detection terminal.
2. The air conditioning system according to claim 1, characterized in that, By comparing the signal at the first output terminal with the signal at the first input terminal to obtain the first result signal, the following steps are taken: When the signal at the first output terminal of the first control circuit is the same as the signal at the first input terminal of the first control circuit, the first result signal is a low-level signal. When the signal at the first output terminal of the first control circuit is different from the signal at the first input terminal of the first control circuit, the first result signal is a high-level signal.
3. The air conditioning system according to claim 1, characterized in that, The second result signal is obtained by comparing the signal at the first output terminal with the signal at the first input terminal, as follows: When the signal at the first output terminal of the second control circuit is the same as the signal at the first input terminal of the first control circuit, the second result signal is a low-level signal. When the signal at the first output terminal of the second control circuit is different from the signal at the first input terminal of the second control circuit, the first result signal is a high-level signal.
4. The air conditioning system according to claim 2, characterized in that, The first result signal is transmitted to the first detection terminal, specifically as follows: When the second output terminal of the first control circuit outputs a low-level signal to the first detection terminal of the main control chip, the main control chip does not perform any action if it detects the low-level signal. When the second output terminal of the first control circuit outputs a high-level signal to the first detection terminal of the main control chip, the main control chip detects the high-level signal and determines that a communication conflict has occurred.
5. The air conditioning system according to claim 4, characterized in that, After a communication conflict is determined to have occurred, the main control chip is configured to control the second switching circuit to disconnect.
6. The air conditioning system according to claim 3, characterized in that, The second result signal is transmitted to the second detection terminal, specifically as follows: When the second output terminal of the second control circuit outputs a low-level signal to the second detection terminal of the main control chip, the main control chip does not perform any action if it detects the low-level signal. When the second output terminal of the second control circuit outputs a high-level signal to the second detection terminal of the main control chip, the main control chip detects the high-level signal and determines that a communication conflict has occurred.
7. The air conditioning system according to claim 6, characterized in that, After a communication conflict is determined to have occurred, the main control chip is configured to control the first switching circuit to disconnect.
8. The air conditioning system according to claim 1, characterized in that, The first output terminal of the first control circuit and the first input terminal of the second control circuit are configured to transmit single-ended signals; the first output terminal of the second control circuit and the first input terminal of the first control circuit are configured to transmit single-ended signals.
9. The air conditioning system according to claim 1, characterized in that, The first control circuit is configured to convert differential signals and single-ended signals; the second control circuit is configured to convert differential signals and single-ended signals.
10. A communication method for an air conditioning system, the air conditioning system comprising an outdoor unit and an indoor unit that communicate with each other via a bus, and a repeater connected to the bus; The bus includes: The first bus is configured to transmit differential signals; The second bus is configured to transmit differential signals; The repeater includes: Main control chip; A first control circuit, wherein the signal terminal of the first control circuit is electrically connected to the first bus; and the second output terminal of the first control circuit is electrically connected to the first detection terminal of the main control chip. The second control circuit has its signal terminal electrically connected to the second bus; the second output terminal of the second control circuit is electrically connected to the second detection terminal of the main control chip. A first switching circuit, wherein the control terminal of the first switching circuit is electrically connected to the first control terminal of the main control chip; the first switching circuit is electrically connected between the first output terminal of the first control circuit and the first input terminal of the second control circuit; A second switching circuit is provided, the control terminal of which is electrically connected to the second control terminal of the main control chip; the second switching circuit is also electrically connected between the first output terminal of the second control circuit and the first input terminal of the first control circuit. The communication method is characterized by comprising: The first control circuit receives the signal from the first output terminal and the signal from the first input terminal, compares whether the signal from the first output terminal and the signal from the first input terminal are the same, obtains a first result signal, and transmits the first result signal to the first detection terminal. The second control circuit structure compares the signal at the first output terminal with the signal at the first input terminal to determine if they are the same, obtains a second result signal, and transmits the second result signal to the second detection terminal.