CN111835378A - Communication type switching circuit and method and air conditioning equipment - Google Patents

Communication type switching circuit and method and air conditioning equipment Download PDF

Info

Publication number
CN111835378A
CN111835378A CN202010514880.XA CN202010514880A CN111835378A CN 111835378 A CN111835378 A CN 111835378A CN 202010514880 A CN202010514880 A CN 202010514880A CN 111835378 A CN111835378 A CN 111835378A
Authority
CN
China
Prior art keywords
terminal
communication
unit
transceiving unit
mcu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010514880.XA
Other languages
Chinese (zh)
Other versions
CN111835378B (en
Inventor
李玉发
杨都
刘泉洲
叶铁英
张亚国
李陈杰
吴卫钟
张争
杨梅
梁董腾
杨佳宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202010514880.XA priority Critical patent/CN111835378B/en
Publication of CN111835378A publication Critical patent/CN111835378A/en
Application granted granted Critical
Publication of CN111835378B publication Critical patent/CN111835378B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • H04B1/401Circuits for selecting or indicating operating mode
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/56Remote control
    • F24F11/58Remote control using Internet communication
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/88Electrical aspects, e.g. circuits

Abstract

The invention discloses a communication type switching circuit and method and air conditioning equipment. Wherein the circuit comprises a transceiver module, the transceiver module comprising: the first transceiving unit and the second transceiving unit are connected in parallel, one end of the first transceiving unit is connected to the MCU, the other end of the first transceiving unit is connected to the communication bus, and the first transceiving unit and the second transceiving unit correspond to different types of communication respectively; and the power management unit is respectively connected with the first transceiving unit and the second transceiving unit and is used for controlling the first transceiving unit and the second transceiving unit to be alternatively conducted so that the communication type corresponding to the conducted transceiving unit is consistent with the actual communication type of the circuit. According to the invention, two types of communication can be completed by using the same group of interfaces without arranging two communication interfaces, so that the area of a circuit board is saved, and meanwhile, the risk of wrong connection can be avoided.

Description

Communication type switching circuit and method and air conditioning equipment
Technical Field
The invention relates to the technical field of communication, in particular to a communication type switching circuit and method and air conditioning equipment.
Background
At present, most of communication between an inner machine and an outer machine of the air conditioning equipment is CAN bus communication and RS485 bus communication, and when units of different communication types are combined to be used together, two interfaces of CAN and RS485 are required to be simultaneously arranged on a circuit board of the inner machine or the outer machine. This situation has two drawbacks: the inner machine board, the outer machine board or the inner machine board and the outer machine board are designed with two communication circuits of CAN and RS485, and two communication interfaces are reserved on the boards, so that the board distribution area is occupied; secondly, engineering wiring needs to identify which communication is connected to a correct interface, and the risk of wrong wiring connection exists.
Aiming at the problem that two interfaces need to be arranged on a circuit board simultaneously for realizing two types of communication in the prior art, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a communication type switching circuit, a communication type switching method and air conditioning equipment, and aims to solve the problem that two interfaces need to be arranged on a circuit board at the same time when two types of communication are realized in the prior art.
In order to solve the above technical problem, the present invention provides a communication type switching circuit, wherein the circuit includes a transceiver module, and the transceiver module includes:
the first transceiving unit and the second transceiving unit are connected in parallel, one end of the first transceiving unit is connected to the MCU, the other end of the first transceiving unit is connected to the communication bus, and the first transceiving unit and the second transceiving unit correspond to different types of communication respectively;
and the power management unit is respectively connected with the first transceiving unit and the second transceiving unit and is used for controlling the first transceiving unit and the second transceiving unit to be alternatively conducted so that the communication type corresponding to the conducted transceiving unit is consistent with the actual communication type of the circuit.
Further, the power management unit is specifically configured to control the first transceiver unit and the second transceiver unit to be alternatively conducted, and monitor whether a communication type corresponding to the conducted transceiver unit is consistent with an actual communication type of the circuit; if the two receiving and transmitting units are consistent, the conducting state of the currently conducting receiving and transmitting unit is maintained, and if the two receiving and transmitting units are not consistent, the other receiving and transmitting unit is switched to be conducted.
Further, the transceiver module further includes:
the input end of the first signal processing unit is respectively connected with the first transceiving unit and the second transceiving unit, the output end of the first signal processing unit is connected with the MCU, and the control end of the first signal processing unit is connected with the power management unit and is used for determining the actual communication type of the circuit according to the data format sent by the transceiving module and judging whether the communication type corresponding to the currently switched-on transceiving unit is consistent with the actual communication type of the circuit or not; then sending a first control instruction to the power management unit according to a judgment result; the first control instruction is used for indicating to maintain the conduction state of the currently conducted transceiving unit or switch to conduct another transceiving unit;
the input end of the second signal processing unit is connected with the MCU, the output end of the second signal processing unit is respectively connected with the first transceiving unit and the second transceiving unit, and the control end of the second signal processing unit is connected with the power management unit and used for sending a second control instruction to the power management unit according to the actual communication type; the second control instruction is used for controlling the first transceiving unit or the second transceiving unit to be conducted.
Further, the first transceiver unit includes a first terminal and a second terminal, the first terminal is connected to the first line of the communication bus, and the second terminal is connected to the second line of the communication bus;
the second transceiver unit comprises a third terminal and a fourth terminal, the third terminal is connected with the first line of the communication bus, and the fourth terminal is connected with the second line of the communication bus.
Further, the first transceiving unit includes:
the first input end of the receiver is connected with the first terminal, the second input end of the receiver is connected with the second terminal, the output end of the receiver is connected with the signal receiving terminal of the MCU, and the receiver is used for converting differential signals input by the first terminal and the second terminal and sending the differential signals to the MCU;
and the input end of the driver is connected with the signal transmitting terminal of the MCU, the first output end of the driver is connected with the second terminal, and the second output end of the driver is connected with the first terminal, so that the signal transmitted by the MCU is converted into a differential signal and then is transmitted to the communication bus through the first terminal and the second terminal.
Furthermore, the receiver is further connected with a signal turning terminal of the MCU, and the signal turning terminal is used for controlling the turning of differential signals input by the first terminal and the second terminal when the first line of the communication bus is reversely connected with the second line of the communication bus.
Furthermore, the second transceiver unit is connected to a signal receiving terminal of the MCU and a signal transmitting terminal of the MCU, and is configured to convert a differential signal input from the third terminal and the fourth terminal and transmit the converted differential signal to the MCU, and convert a signal transmitted from the MCU into a differential signal, and transmit the differential signal to the communication bus via the third terminal and the fourth terminal.
Furthermore, the second transceiver unit is further connected to a signal flip terminal of the MCU, and the signal flip terminal is configured to control the differential signal input from the third terminal and the fourth terminal to flip when the first line of the communication bus is reversely connected to the second line of the communication bus.
Further, the circuit further comprises:
and the isolation module is connected between the MCU and the transceiver module and is connected with the same power supply with the MCU, and the isolation module is used for isolating interference signals.
Further, the circuit further comprises:
the first resistor is connected between the transceiver module and a first line of the communication bus;
the second resistor is connected between the transceiver module and a second wire of the communication bus;
and the third resistor is connected between the first line of the communication bus and the second line of the communication bus.
Further, the circuit further comprises:
an electrostatic protection module connected between the first line of the communication bus and the second line of the communication bus.
The invention also provides air conditioning equipment which comprises the communication type switching circuit.
The invention also provides a communication type switching method, which is realized based on the communication type switching circuit and comprises the following steps:
controlling one of the first transceiving unit and the second transceiving unit to be conducted;
and judging whether the communication type corresponding to the connected transceiving unit is consistent with the actual communication type of the circuit or not, and determining whether to switch on another transceiving unit or not according to the judgment result.
Further, determining whether to switch on another transceiver unit according to the judgment result includes:
when the communication type corresponding to the connected transceiving unit is consistent with the actual communication type of the circuit, the connection state of the currently connected transceiving unit is maintained unchanged;
and switching to conduct the other transceiving unit when the communication type corresponding to the conducted transceiving unit is not consistent with the actual communication type of the circuit.
Further, after determining whether to switch on another transceiver unit according to the determination result, the method further includes:
judging whether the signal output by the transceiver module is abnormal;
and when the signal output by the transceiver module is abnormal, triggering a signal turning terminal of the MCU to be conducted so as to turn over the differential signal input by the transceiver module.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described communication-type switching method.
By applying the technical scheme of the invention, the first transceiving unit and the second transceiving unit are arranged, the power management unit is used for controlling the conduction of the first transceiving unit or the second transceiving unit, when the communication type corresponding to the conducted transceiving unit is inconsistent with the actual communication type of the circuit, the other transceiving unit is switched and conducted, the first transceiving unit and the second transceiving unit are connected in parallel to form a group of external interfaces, the switching of the transceiving units is completed in the circuit, the communication of two types can be completed by using the same group of interfaces, two communication interfaces do not need to be arranged, the area of a circuit board is saved, and the risk of wrong connection can be avoided.
Drawings
Fig. 1 is a block diagram of a communication type switching circuit according to a first embodiment of the present invention;
fig. 2 is a block diagram of a transceiver module according to a second embodiment of the present invention;
fig. 3 is a block diagram of a communication type switching circuit according to a third embodiment of the present invention;
fig. 4 is a structural diagram of a communication type switching circuit according to a fourth embodiment of the present invention;
FIG. 5 is an internal structural view of a first processing chip according to a fourth embodiment of the present invention;
fig. 6 is a flowchart of a communication type switching method according to a sixth embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, and "a plurality" typically includes at least two.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
It should be understood that although the terms first, second, etc. may be used to describe the transceiving units in the embodiments of the present invention, the transceiving units should not be limited to these terms. These terms are only used to distinguish between transceiver units that perform different functions. For example, the first transceiver unit may also be referred to as a second transceiver unit, and similarly, the second transceiver unit may also be referred to as a first transceiver unit without departing from the scope of the embodiments of the present invention.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that an article or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such article or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in the article or device in which the element is included.
Alternative embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Example 1
This embodiment provides a communication type switching circuit, and fig. 1 is a structural diagram of a communication type switching circuit according to a first embodiment of the present invention, as shown in fig. 1, the circuit includes:
the transceiver module 1 comprises a first transceiver unit 11 and a second transceiver unit 12, wherein after the first transceiver unit 11 and the second transceiver unit 12 are connected in parallel, one end of the first transceiver unit 11 is connected to the MCU3, and the other end of the first transceiver unit is connected to the communication bus, the first transceiver unit 11 and the second transceiver unit 12 are used for implementing different types of communication, the first transceiver unit 11 is used for implementing a first type of communication, such as RS485 communication, and the second transceiver unit 12 is used for implementing a second type of communication, such as CAN communication; the transceiver module 1 further includes a power management unit 13, which is respectively connected to the first transceiver unit 11 and the second transceiver unit 12, and configured to control the first transceiver unit 11 and the second transceiver unit 12 to be alternatively conducted, so that a communication type corresponding to the conducted transceiver unit is consistent with an actual communication type of the circuit.
The power management unit 13 is specifically configured to control the first transceiver unit 11 and the second transceiver unit 12 to be selectively turned on, monitor whether a communication type corresponding to the turned-on transceiver unit is consistent with an actual communication type of the circuit, control the currently turned-on transceiver unit to maintain a turned-on state when the communication type corresponding to the turned-on transceiver unit is consistent with the actual communication type of the circuit, and switch to turn on another transceiver unit when the communication type corresponding to the turned-on transceiver unit is inconsistent with the actual communication type of the circuit. The power management unit 13 comprises three terminals, a first terminal is connected to a voltage source VCC, a second terminal is connected to a second transceiver unit 12, a third terminal is connected to the first transceiver unit 11, the first transceiver unit 11 comprises a power terminal VCC1, the second transceiver unit 12 comprises a power terminal VCC2, in specific implementation, the power management unit 13 can select any one of the first transceiver unit 11 and the second transceiver unit 12 to supply power to the selected one, and then the selected one is conducted, for example, the power management unit controls the third terminal to be connected with the power terminal VCC1 of the first transceiver unit 11 to enable the first transceiver unit 11 to be electrically conducted, because data formats output by different communication types are different, an actual communication type of a circuit can be determined according to a data format output by the transceiver module 1, and then whether a communication type corresponding to the conducted first transceiver unit 11 is consistent with an actual communication type of the circuit is judged, if they match, the communication can be completed, and the first transceiver unit 11 is allowed to continue to be in the on state, or if they do not match, the communication cannot be completed, and it is necessary to change the communication to control the third terminal to be connected to the power supply terminal VCC2 of the second transceiver unit 12, so as to allow the second transceiver unit 12 to be in the on state, and the first transceiver unit 11 further includes a ground terminal GND1, the second transceiver unit 12 further includes a ground terminal GND2, and both the ground terminal GND1 and the ground terminal GND2 are grounded.
The communication type switching circuit of this embodiment sets up first transceiver unit and second transceiver unit, switches on through first transceiver unit of power management unit control or second transceiver unit to the communication type that the transceiver unit that switches on corresponds with when the actual communication type of circuit is inconsistent, switch and switch on another transceiver unit, form a set of external interface after first transceiver unit and second transceiver unit connect in parallel, accomplish transceiver unit's switching inside the circuit, can realize accomplishing two kinds of types of communication with same group interface, need not to set up two kinds of communication interfaces, saved the circuit board area, can avoid connecing wrong risk simultaneously.
Example 2
In this embodiment, another communication type switching circuit is provided, and fig. 2 is a structural diagram of a transceiver module according to a second embodiment of the present invention, in order to implement that a communication type corresponding to a transceiver unit that is controlled to be turned on is consistent with an actual communication type of a circuit, the transceiver module 1 further includes a first signal processing unit 14, input ends of which are respectively connected to the first transceiver unit 11 and the second transceiver unit, an output end of which is connected to the MCU, and a control end of which is connected to the power management unit 13, and is configured to determine an actual communication type of the circuit according to a data format sent by the transceiver module 1, and further determine whether a communication type corresponding to a currently turned on transceiver unit is consistent with an actual communication type of the circuit, and then send a first control instruction to the power management unit according to a determination; the first control instruction is used for indicating to maintain the conduction state of the currently conducted transceiving unit or switch to conduct another transceiving unit;
therefore, the transceiver module 1 further includes a second signal processing unit 15, an input end of the second signal processing unit is connected to the MCU, an output end of the second signal processing unit is connected to the first transceiver unit 11 and the second transceiver unit 12, a control end of the second signal processing unit is connected to the power management unit, the transceiver unit that needs to be turned on is determined according to an actual communication type, and the transceiver unit that needs to be turned on sends a second control instruction to the power management unit 13, where the second control instruction is used to control the first transceiver unit 11 or the second transceiver unit 12 to be turned on.
As the input communication signals are two differential signals, they need to be input through different terminals, as shown in fig. 2, on the basis of the above embodiment, the first transceiver unit 11 includes a first terminal B and a second terminal a, the first terminal B is connected to the first line SIG1 of the communication bus, the second terminal a is connected to the second line SIG2 of the communication bus, when the communication type is RS485 communication, that is, the communication signal on the bus is RS485 communication signal, the first transceiver unit 11 is turned on, and the differential signals are input to the transceiver module 1 through the first terminal B and the second terminal a; the second transceiver unit 12 includes a third terminal CANH and a fourth terminal CANL, the third terminal is connected to the first line SIG1 of the communication bus, the second line SIG2 for the fourth terminal is connected to the communication bus, when the communication type is CAN communication, that is, the communication signal on the bus is a CAN communication signal, the second transceiver unit 12 is turned on, and the differential signal is input to the transceiver module 1 through the third terminal CANH and the fourth terminal CANL.
Specifically, in order to implement a transceiving function, as shown in fig. 2, the first transceiving unit 11 includes: a receiver R, a first input end of which is connected to the first terminal B, a second input end of which is connected to the second terminal a, and an output end RXD1 of which is connected to a signal receiving terminal RXD of the MCU, for converting the differential signals input from the first terminal B and the second terminal a and transmitting the converted differential signals to the MCU; and the input end TXD1 of the driver D is connected with the signal transmission terminal TXD of the MCU, the first output end of the driver D is connected with the second terminal A, the second output end of the driver D is connected with the first terminal B, and the driver D is used for converting the signal transmitted by the MCU into a differential signal and then transmitting the differential signal to the first line SIG1 and the second line SIG2 of the communication bus through the first terminal B and the second terminal A.
In practical applications, two lines of the communication bus may be connected in an opposite direction, and once the two lines are connected in the opposite direction, the receiver R cannot normally transmit signals, and to solve this problem, as shown in fig. 2, the receiver R is further connected to a signal inversion terminal INV of the MCU through a terminal INV1, and the signal inversion terminal INV outputs a control signal when the first line of the communication bus is connected in the opposite direction to the second line of the communication bus, so as to control the inversion of the differential signal input by the first terminal B and the second terminal a.
Similarly, in order to implement a transceiving function, the second transceiving unit forms a common terminal RXD with the output terminal RXD1 of the receiver R through a terminal RXD2, the common terminal RXD is used for connecting a signal receiving terminal MCU _ RXD of the MCU, forms a common terminal TXD with the input terminal TXD1 of the receiver R through a terminal TXD2, the common terminal TXD is used for connecting a signal transmitting terminal MCU _ TXD of the MCU, and the second transceiving unit 12 is used for converting and transmitting a differential signal input by the third terminal CANH and the fourth terminal CANL to the MCU, and after converting a signal transmitted by the MCU into a differential signal, transmitting the differential signal to the communication bus through the third terminal CANH and the fourth terminal CANL.
In order to solve the problem that signals cannot be normally transmitted after the two wires of the communication bus are reversely connected, as shown in fig. 2, the second transceiver unit further forms a common connection terminal INV with a terminal INV1 through a terminal INV2, the common connection terminal INV is used for connecting a signal inversion terminal MCU _ INV of the MCU, and when the first wire and the second wire of the communication bus are reversely connected, the signal inversion terminal INV outputs a control signal to control the inversion of a differential signal input by the third terminal CANH and the fourth terminal CANL.
In order to realize that the operating states of the first transceiving unit 11 and the second transceiving unit 12 are controllable, the first transceiving unit 11 further comprises a terminal DE1, the second transceiving unit 12 further comprises a terminal DE2, and the terminal DE1 and the terminal DE2 form a common connection terminal EN for connecting to an enable terminal MCU _ EN of the MCU, and the enable terminal MCU _ EN sends an enable signal to control the first transceiving unit 11 and the second transceiving unit 12 to operate or stop operating.
Example 3
In this embodiment, another communication type switching circuit is provided, and fig. 3 is a structural diagram of a communication type switching circuit according to a third embodiment of the present invention, in order to avoid interference signals entering an MCU, the circuit further includes:
isolation module 2, isolation module 2 is an isolation chip, this isolation chip inserts between MCU and transceiver module 1, and with MCU connects same power, and the first power supply terminal VCC3 of isolation module 2 is connected with MCU's power supply terminal VCC _ MCU promptly, and first ground terminal GND3 is connected with MCU's ground terminal GND _ MCU, and second power supply terminal VCC4 is connected with communication bus's power supply terminal VCC _ SIG, and second ground terminal GND4 is connected with communication bus's ground terminal GND _ SIG, with this compatibility of guaranteeing the communication level.
The output terminal, the input terminal and the signal turning terminal of the isolation chip are connected with the MCU and the corresponding terminals in the transceiver module 1 in a one-to-one correspondence mode, and the isolation module is used for isolating interference signals.
As shown in fig. 3, on the basis of the above embodiment, the circuit further includes: a first resistor R1 connected between the transceiver module 1 and the first line of the communication bus; the second resistor R2 is connected between the transceiver module 1 and the second line of the communication bus; the first resistor R1 and the second resistor R2 are used to reduce interference signals on the first line and the second line of the communication bus, respectively.
The communication bus further comprises a third resistor R3 which is connected between the first line of the communication bus and the second line of the communication bus, and the third resistor R3 is a matched resistor on the communication bus and used for adjusting the communication signal quality on the communication bus.
In addition, since static electricity is generated between the first line and the second line of the communication bus, in order to avoid the influence of the static electricity on signal transmission, as shown in fig. 3, the circuit further includes: an electrostatic protection module 3 connected between the first line of the communication bus and the second line of the communication bus. The ESD protection module includes at least one ESD protection diode, in this embodiment, includes an ESD protection diode D1, which is disposed between the first line of the communication bus and the second line of the communication bus, and further includes a protection diode group D2 formed by two ESD protection diodes connected in series between the first line of the communication bus and the second line of the communication bus, a line between the two ESD protection diodes connected in series is connected to a ground terminal GND-SIG of the communication bus, and the ESD protection module 3 is used for preventing ESD interference on the communication bus or shielding an interference signal from a far end.
Example 4
Fig. 4 is a structural diagram of a communication type switching circuit according to a fourth embodiment of the present invention, as shown in fig. 4, the circuit is a circuit that CAN share CAN communication and RS485 communication, a differential signal on a CAN bus or an RS485 bus is accessed through a relay J1, D1 and D2 are two ESD protection units, and the purpose is to prevent ESD interference of a communication bus or an interference signal coming from a far end; the first resistor R1 and the second resistor R2 are used for reducing interference in series connection on a communication bus, the resistance values of the first resistor R1 and the second resistor R2 can influence the distance of network communication and are generally selected according to the rule of 25 omega/Km, and the third resistor R3 is a matching resistor on the bus and is used for adjusting the communication quality on the bus and is generally selected to be 120 omega;
the first processing chip U1 is an internal chip of a transceiver capable of automatically identifying whether an access signal is a CAN communication signal or an RS485 communication signal, and a differential signal on a bus is processed into a digital signal which CAN be identified by an MCU through U1;
the second processing chip U2 is an isolation chip to further prevent interference from entering the MCU. The ground end GND _ MCU and the ground end GND _ SIG of the communication bus of the MCU can be connected to the same network or two different networks. The power supply VCC _ MCU of the isolated chip must be the same as the MCU power supply to ensure the compatibility of the communication level.
Fig. 5 is an internal structure diagram of a first processing chip according to a fourth embodiment of the present invention, which automatically identifies the operating principle of a transceiver for a CAN communication signal and an RS485 communication signal:
as shown in fig. 5, two signal processing units are disposed inside the first processing chip U1, the first transceiver unit U11 is an RS485 communication signal processing unit, the second transceiver unit U12 is a CAN communication signal processing unit, and power is supplied to the first transceiver unit U11 at the beginning to make the second transceiver unit U12 in a power-off state; the differential information of the communication bus is processed by the first transceiving unit U11 to reach the signal processing unit, the signal processing unit communicates with the MCU through the received signal, if the bus sends an RS485 communication signal, the communication is successful, and the current communication state is kept; if the CAN communication signal is sent by the bus, the communication is failed, the signal processing unit sends a command to the power management unit, the power supply of the first transceiving unit U11 is cut off, the power supply is changed to be supplied to the second transceiving unit U12, the CAN communication signal on the bus is processed by the second transceiving unit U12, and the CAN communication signal is sent to the MCU through the signal processing unit to complete normal communication.
The power signal receiving RXD terminal, the signal transmitting terminal TXD, the bus signals SIG1 and SIG2 of the first transceiving unit U11 and the second transceiving unit U12 are connected together to realize that the CAN communication signal and the RS485 communication signal CAN share one communication bus, and the power management unit determines which transceiving unit works.
The INV pins of the first transceiving unit U11 and the second transceiving unit U12 CAN realize the turnover of communication bus signals (SIG1 and SIG2), and due to the fact that both CAN communication and RS485 communication wiring have wire sequence requirements, once the wire sequence is reversed (for example, an RS485 communication A wire is connected to a B pin position, a B wire is connected to an A pin position, or a CAN communication CAN high wire is connected to a CANL pin position, and a CAN low wire is connected to a CANH pin position), the communication with the MCU is unsuccessful, and the MCU CAN send a turnover instruction through an MCU _ INV signal wire, so that SIG1 and SIG2 signals inside the first transceiving unit U11 or the second transceiving unit U12 are turned over, and communication is realized.
Example 5
This embodiment provides an air conditioning equipment, including the communication type switching circuit in above-mentioned embodiment, accomplish two kinds of communications through the realization through same group interface, need not to set up two kinds of communication interfaces, saved the circuit board area, can avoid connecing wrong risk simultaneously.
Example 6
This embodiment provides a communication type switching method, which is implemented based on the communication type switching circuit in the above embodiment, and fig. 6 is a flowchart of a communication type switching method according to a sixth embodiment of the present invention, where the method includes:
s101, one of the first transceiver unit and the second transceiver unit is controlled to be conducted.
In the case of determining the communication type, the transceiver unit for implementing the communication of the communication type may be directly selected to be turned on, and in the case of not determining the communication type, one of the transceiver units, i.e., the first transceiver unit or the second transceiver unit, may be optionally turned on.
And S102, judging whether the communication type corresponding to the connected transceiving unit is consistent with the actual communication type of the circuit, and determining whether to switch on another transceiving unit according to the judgment result.
After one transceiving unit is controlled to be switched on, because the data formats output by different communication types are different, the actual communication type can be determined according to the data format output by the transceiving module, and whether the communication type corresponding to the currently switched-on transceiving unit is consistent with the actual communication type of the circuit or not is further judged. If the two receiving and sending units are consistent, the communication can be completed, the currently conducted receiving and sending unit can be kept in a conducting state continuously, if the two receiving and sending units are not consistent, the communication cannot be completed, and another receiving and sending unit needs to be switched and conducted to ensure that the communication is successful. In a specific implementation, S102 specifically includes: when the communication type corresponding to the connected transceiving unit is consistent with the actual communication type of the circuit, the currently connected transceiving unit is maintained unchanged; and switching to conduct the other transceiving unit when the communication type corresponding to the conducted transceiving unit is not consistent with the actual communication type of the circuit.
After the currently-switched on transceiver unit is maintained unchanged or another transceiver unit is switched on, the problem that the communication type realized by the transceiver unit is inconsistent with the actual communication type is solved, but two lines of the communication bus may be reversely connected, and once the two lines are reversely connected, the signal cannot be normally transmitted, so that in order to solve the problem that the two lines of the communication bus are reversely connected, the method further comprises: judging whether the signal output by the transceiver module is abnormal or not, and judging whether the communication bus is reversely connected or not according to whether the signal output by the transceiver module is abnormal or not; when the signal output by the transceiver module is abnormal, the communication bus is indicated to be reversely connected, and the signal turning terminal of the MCU is triggered to be conducted, so that the differential signal input by the transceiver module is turned, and the communication is recovered to be normal. Therefore, normal communication can still be ensured when the two wires of the communication bus are reversely connected.
Example 7
The present embodiment provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the communication type switching method in the above-described embodiments.
The above-described circuit embodiments are only illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (16)

1. A communication type switching circuit, wherein the circuit comprises a transceiver module, and wherein the transceiver module comprises:
the first transceiving unit and the second transceiving unit are connected in parallel, one end of the first transceiving unit is connected to the MCU, the other end of the first transceiving unit is connected to the communication bus, and the first transceiving unit and the second transceiving unit correspond to different types of communication respectively;
and the power management unit is respectively connected with the first transceiving unit and the second transceiving unit and is used for controlling the first transceiving unit and the second transceiving unit to be alternatively conducted so that the communication type corresponding to the conducted transceiving unit is consistent with the actual communication type of the circuit.
2. The communication-type switching circuit according to claim 1,
the power management unit is specifically configured to control the first transceiver unit and the second transceiver unit to be alternatively conducted, and monitor whether a communication type corresponding to the conducted transceiver unit is consistent with an actual communication type of the circuit; if the two receiving and transmitting units are consistent, the conducting state of the currently conducting receiving and transmitting unit is maintained, and if the two receiving and transmitting units are not consistent, the other receiving and transmitting unit is switched to be conducted.
3. The communication-type switching circuit according to claim 1, wherein the transceiver module further comprises:
the input end of the first signal processing unit is respectively connected with the first transceiving unit and the second transceiving unit, the output end of the first signal processing unit is connected with the MCU, and the control end of the first signal processing unit is connected with the power management unit and is used for determining the actual communication type of the circuit according to the data format sent by the transceiving module and judging whether the communication type corresponding to the currently switched-on transceiving unit is consistent with the actual communication type of the circuit or not; then sending a first control instruction to the power management unit according to a judgment result; the first control instruction is used for indicating to maintain the conduction state of the currently conducted transceiving unit or switch to conduct another transceiving unit;
the input end of the second signal processing unit is connected with the MCU, the output end of the second signal processing unit is respectively connected with the first transceiving unit and the second transceiving unit, and the control end of the second signal processing unit is connected with the power management unit and used for sending a second control instruction to the power management unit according to the actual communication type; the second control instruction is used for controlling the first transceiving unit or the second transceiving unit to be conducted.
4. The communication-type switching circuit according to claim 1,
the first transceiver unit comprises a first terminal and a second terminal, wherein the first terminal is connected with a first line of the communication bus, and the second terminal is connected with a second line of the communication bus;
the second transceiver unit comprises a third terminal and a fourth terminal, the third terminal is connected with the first line of the communication bus, and the fourth terminal is connected with the second line of the communication bus.
5. The communication type switching circuit according to claim 4, wherein the first transceiver unit comprises:
the first input end of the receiver is connected with the first terminal, the second input end of the receiver is connected with the second terminal, the output end of the receiver is connected with the signal receiving terminal of the MCU, and the receiver is used for converting differential signals input by the first terminal and the second terminal and sending the differential signals to the MCU;
and the input end of the driver is connected with the signal transmitting terminal of the MCU, the first output end of the driver is connected with the second terminal, and the second output end of the driver is connected with the first terminal, so that the signal transmitted by the MCU is converted into a differential signal and then is transmitted to the communication bus through the first terminal and the second terminal.
6. The communication type switching circuit according to claim 5, wherein the receiver is further connected to a signal flip terminal of the MCU, and the signal flip terminal is configured to control the differential signal input from the first terminal and the second terminal to flip when the first line of the communication bus is reversely connected to the second line of the communication bus.
7. The communication type switching circuit according to claim 4, wherein the second transceiver unit is connected to a signal receiving terminal of the MCU and a signal transmitting terminal of the MCU, and the second transceiver unit is configured to convert a differential signal input from the third terminal and the fourth terminal, transmit the converted signal to the MCU, convert a signal transmitted from the MCU into a differential signal, and transmit the differential signal to the communication bus through the third terminal and the fourth terminal.
8. The communication type switching circuit according to claim 7, wherein the second transceiver unit is further connected to a signal flip terminal of the MCU, and the signal flip terminal is configured to control a differential signal input from the third terminal and the fourth terminal to flip when the first line of the communication bus is reversely connected to the second line of the communication bus.
9. The communication-type switching circuit according to claim 1, further comprising:
and the isolation module is connected between the MCU and the transceiver module and is connected with the same power supply with the MCU, and the isolation module is used for isolating interference signals.
10. The communication-type switching circuit according to claim 1, further comprising:
the first resistor is connected between the transceiver module and a first line of the communication bus;
the second resistor is connected between the transceiver module and a second wire of the communication bus;
and the third resistor is connected between the first line of the communication bus and the second line of the communication bus.
11. The communication-type switching circuit according to claim 10, further comprising:
an electrostatic protection module connected between the first line of the communication bus and the second line of the communication bus.
12. An air conditioning apparatus characterized by comprising the communication type switching circuit according to any one of claims 1 to 11.
13. A communication type switching method implemented based on the communication type switching circuit according to any one of claims 1 to 11, the method comprising:
controlling one of the first transceiving unit and the second transceiving unit to be conducted;
and judging whether the communication type corresponding to the connected transceiving unit is consistent with the actual communication type of the circuit or not, and determining whether to switch on another transceiving unit or not according to the judgment result.
14. The method of claim 13, wherein determining whether to switch on another transceiver unit according to the determination result comprises:
when the communication type corresponding to the connected transceiving unit is consistent with the actual communication type of the circuit, the connection state of the currently connected transceiving unit is maintained unchanged;
and switching to conduct the other transceiving unit when the communication type corresponding to the conducted transceiving unit is not consistent with the actual communication type of the circuit.
15. The method of claim 13, wherein after determining whether to switch on another transceiver unit according to the determination result, the method further comprises:
judging whether the signal output by the transceiver module is abnormal;
and when the signal output by the transceiver module is abnormal, triggering a signal turning terminal of the MCU to be conducted so as to turn over the differential signal input by the transceiver module.
16. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the communication-type switching method according to any one of claims 13 to 15.
CN202010514880.XA 2020-06-08 2020-06-08 Communication type switching circuit and method and air conditioning equipment Active CN111835378B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010514880.XA CN111835378B (en) 2020-06-08 2020-06-08 Communication type switching circuit and method and air conditioning equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010514880.XA CN111835378B (en) 2020-06-08 2020-06-08 Communication type switching circuit and method and air conditioning equipment

Publications (2)

Publication Number Publication Date
CN111835378A true CN111835378A (en) 2020-10-27
CN111835378B CN111835378B (en) 2024-03-08

Family

ID=72898454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010514880.XA Active CN111835378B (en) 2020-06-08 2020-06-08 Communication type switching circuit and method and air conditioning equipment

Country Status (1)

Country Link
CN (1) CN111835378B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0798626A1 (en) * 1996-03-26 1997-10-01 Mercedes-Benz Ag Apparatus for operating an electronic device in a bus network with a microcontroller and method therefor
US20080119991A1 (en) * 2006-11-17 2008-05-22 Denso Corporation Communication device and passive safety device
CN101572642A (en) * 2009-06-17 2009-11-04 北京易艾斯德科技有限公司 RS485 communication circuit
CN102521188A (en) * 2011-11-30 2012-06-27 上海新时达电气股份有限公司 Self-adaptive transmit-receive circuit for recommended standard (RS) 485 communication and RS 232 communication
CN102708823A (en) * 2012-06-01 2012-10-03 天马微电子股份有限公司 Automatic switching circuit for RS232 interface and RS485 interface and serial port liquid crystal display module
JP2014007601A (en) * 2012-06-25 2014-01-16 Hitachi Ltd Built-in interface circuit
CN203705865U (en) * 2013-12-30 2014-07-09 武汉光谷电气有限公司 Communication plug-in member plate and main control board capable of automatically identifying plug-in member plate communication type
CN107070445A (en) * 2017-03-22 2017-08-18 广州致远电子股份有限公司 A kind of serial communication interface function switching circuit and method
CN206542410U (en) * 2017-03-14 2017-10-03 武汉汉源光通信技术有限公司 Light Transmit-Receive Unit, optical module and optical communication system
CN107273320A (en) * 2016-04-08 2017-10-20 中兴通讯股份有限公司 A kind of adaptive multiplexer of communication interface hardware and method
CN206820735U (en) * 2017-03-22 2017-12-29 广州致远电子股份有限公司 A kind of serial communication interface function switch circuit
CN206863936U (en) * 2017-03-31 2018-01-09 常州天厚仪表科技有限公司 Wireless meter communication module
CN208000568U (en) * 2018-01-19 2018-10-23 杭州士兰微电子股份有限公司 Universal input/output interface circuit
CN109274378A (en) * 2017-07-17 2019-01-25 西安中兴新软件有限责任公司 A kind of radio circuit, communication terminal and radio frequency transmit-receive method
CN109951113A (en) * 2019-03-08 2019-06-28 深圳市雷赛智能控制股份有限公司 Motor driver, automation equipment and automatic control system
CN210109585U (en) * 2019-03-08 2020-02-21 深圳市雷赛智能控制股份有限公司 Motor driver, automation equipment and automation control system

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0798626A1 (en) * 1996-03-26 1997-10-01 Mercedes-Benz Ag Apparatus for operating an electronic device in a bus network with a microcontroller and method therefor
US20080119991A1 (en) * 2006-11-17 2008-05-22 Denso Corporation Communication device and passive safety device
CN101572642A (en) * 2009-06-17 2009-11-04 北京易艾斯德科技有限公司 RS485 communication circuit
CN102521188A (en) * 2011-11-30 2012-06-27 上海新时达电气股份有限公司 Self-adaptive transmit-receive circuit for recommended standard (RS) 485 communication and RS 232 communication
CN102708823A (en) * 2012-06-01 2012-10-03 天马微电子股份有限公司 Automatic switching circuit for RS232 interface and RS485 interface and serial port liquid crystal display module
JP2014007601A (en) * 2012-06-25 2014-01-16 Hitachi Ltd Built-in interface circuit
CN203705865U (en) * 2013-12-30 2014-07-09 武汉光谷电气有限公司 Communication plug-in member plate and main control board capable of automatically identifying plug-in member plate communication type
CN107273320A (en) * 2016-04-08 2017-10-20 中兴通讯股份有限公司 A kind of adaptive multiplexer of communication interface hardware and method
CN206542410U (en) * 2017-03-14 2017-10-03 武汉汉源光通信技术有限公司 Light Transmit-Receive Unit, optical module and optical communication system
CN107070445A (en) * 2017-03-22 2017-08-18 广州致远电子股份有限公司 A kind of serial communication interface function switching circuit and method
CN206820735U (en) * 2017-03-22 2017-12-29 广州致远电子股份有限公司 A kind of serial communication interface function switch circuit
CN206863936U (en) * 2017-03-31 2018-01-09 常州天厚仪表科技有限公司 Wireless meter communication module
CN109274378A (en) * 2017-07-17 2019-01-25 西安中兴新软件有限责任公司 A kind of radio circuit, communication terminal and radio frequency transmit-receive method
CN208000568U (en) * 2018-01-19 2018-10-23 杭州士兰微电子股份有限公司 Universal input/output interface circuit
CN109951113A (en) * 2019-03-08 2019-06-28 深圳市雷赛智能控制股份有限公司 Motor driver, automation equipment and automatic control system
CN210109585U (en) * 2019-03-08 2020-02-21 深圳市雷赛智能控制股份有限公司 Motor driver, automation equipment and automation control system

Also Published As

Publication number Publication date
CN111835378B (en) 2024-03-08

Similar Documents

Publication Publication Date Title
CN212695990U (en) Communication type switching circuit and air conditioning equipment
HUP0003588A2 (en) Redundant communications in a protective relay; circuit for redundant communications in a digital protective relay, and method of transmitting informations about protective glay from it
CN103166821A (en) Method, device and system capable of achieving serial port communication
JPH10135987A (en) Control method for input signal transmission in communication network and connector for the purpose and separate circuit built therein
US11516043B2 (en) Monolithic high-voltage transceiver connected to two different supply voltage domains
CN107231270B (en) Slave module for monitoring an electrical system
US7467246B2 (en) Secure local network
CN111711552B (en) Terminal resistor access circuit, servo driver and control system
CN111835378B (en) Communication type switching circuit and method and air conditioning equipment
US20040010651A1 (en) Field bus system for controlling safety-critical processes
CN203869260U (en) Group control circuit for air conditioner indoor units
EP0199338B1 (en) Repeater circuit
US6744779B1 (en) Data processing system
US11115236B2 (en) Subscriber station for a bus system and method for transmitting data in a bus system
CN115037569A (en) LIN bus interface circuit
WO2022182771A1 (en) Apl field switch with automatic protocol detection
JPH04247742A (en) Bus line termination system
EP3220583B1 (en) Communications bus line isolator
JP2009130535A (en) Abnormal signal propagation preventing device
US6112157A (en) Constant-current regulator with redundant bus control
JP2011084101A (en) Communication device and system
US11810745B2 (en) Apparatus for compensating for resistance tolerances of a fuse for a circuit and line driver for a connection of a communication device
CN114844529B (en) Power line communication circuit and system based on solid-state power controller
US11757678B2 (en) Distributor device and method
CN210578569U (en) Novel optical coupler communication and automatic coding circuit

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant