CN111835378B - 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
CN111835378B
CN111835378B CN202010514880.XA CN202010514880A CN111835378B CN 111835378 B CN111835378 B CN 111835378B CN 202010514880 A CN202010514880 A CN 202010514880A CN 111835378 B CN111835378 B CN 111835378B
Authority
CN
China
Prior art keywords
terminal
transceiver unit
unit
communication
transceiver
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.)
Active
Application number
CN202010514880.XA
Other languages
Chinese (zh)
Other versions
CN111835378A (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

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, a communication type switching method and air conditioning equipment. Wherein the circuit includes a transceiver module, the transceiver module includes: the first transceiver unit is connected with the second transceiver unit in parallel, one end of the first transceiver unit is connected to the MCU, the other end of the first transceiver unit is connected with the communication bus, and the first transceiver unit and the second transceiver unit respectively correspond to different types of communication; the power management unit is respectively connected with the first transceiver unit and the second transceiver unit and is used for controlling the first transceiver unit and the second transceiver unit to be selectively conducted so that the communication type corresponding to the conducted transceiver unit is consistent with the actual communication type of the circuit. The invention can realize that two types of communication can be completed by using the same group of interfaces without arranging two communication interfaces, thereby saving the area of a circuit board and avoiding the risk of wrong connection.

Description

Communication type switching circuit and method and air conditioning equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a communications type switching circuit, a communications type switching method, and an air conditioning apparatus.
Background
At present, communication between an inner machine and an outer machine of air conditioning equipment is mostly CAN bus communication and RS485 bus communication, and when units of different communication types are to be combined together, the inner machine or the outer machine is required to be simultaneously provided with two interfaces of CAN and RS 485. This situation has two drawbacks: 1. the design of the inner machine board, the outer machine board or the circuit of the inner machine board is necessary to be provided with two communication circuits of CAN and RS485, and two communication interfaces are reserved on the board, so that the area of the board is occupied; 2. the engineering wiring needs to distinguish which communication is connected to the correct interface, and the risk of wrong wiring exists.
Aiming at the problem that two types of communication are realized in the prior art and two interfaces are required to be arranged on a circuit board at the same time, no effective solution is proposed 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, which are used for solving the problem that two interfaces are required to be arranged on a circuit board simultaneously for realizing two types of communication in the prior art.
In order to solve the above technical problems, the present invention provides a communication type switching circuit, wherein the circuit includes a transceiver module, the transceiver module includes:
the first transceiver unit is connected with the second transceiver unit in parallel, one end of the first transceiver unit is connected to the MCU, the other end of the first transceiver unit is connected with the communication bus, and the first transceiver unit and the second transceiver unit respectively correspond to different types of communication;
the power management unit is respectively connected with the first transceiver unit and the second transceiver unit and is used for controlling the first transceiver unit and the second transceiver unit to be selectively conducted so that the communication type corresponding to the conducted transceiver 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 selectively turned on, and monitor whether a communication type corresponding to the turned-on transceiver unit is consistent with an actual communication type of the circuit; if the current conduction state of the transceiver unit is consistent, the conduction state of the transceiver unit which is conducted currently is maintained, and if the current conduction state of the transceiver unit is inconsistent, the other transceiver unit is switched on.
Further, the transceiver module further includes:
the input end of the first signal processing unit is respectively connected with the first receiving and transmitting unit and the second receiving and transmitting unit, the output end of the first signal processing unit is connected with the MCU, the control end of the first signal processing unit is connected with the power management unit, and the first signal processing unit is used for determining the actual communication type of the circuit according to the data format sent by the receiving and transmitting module and judging whether the communication type corresponding to the currently conducted receiving and transmitting unit is consistent with the actual communication type of the circuit or not; then, a first control instruction is sent to the power management unit according to the judging result; the first control instruction is used for indicating to maintain the conducting state of the currently conducted transceiver unit or switch on the other transceiver 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 transceiver unit and the second transceiver unit, and the control end of the second signal processing unit is connected with the power management unit and is 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 transceiver unit or the second transceiver unit to be conducted.
Further, the first transceiver unit includes a first terminal and a second terminal, the first terminal is connected to a first line of the communication bus, and the second terminal is connected to a second line of the communication bus;
the second transceiver unit comprises a third terminal and a fourth terminal, wherein 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 transceiver 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, and the output end of the receiver is connected with the signal receiving terminal of the MCU and is used for converting differential signals input by the first terminal and the second terminal and transmitting the differential signals to the MCU;
and the input end of the driver is connected with the signal sending 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 and is used for converting the sent signal of the MCU into a differential signal and then sending the differential signal to the communication bus through the first terminal and the second terminal.
Further, the receiver is further connected with a signal inversion terminal of the MCU, and the signal inversion terminal is used for controlling the inversion 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.
Further, the second transceiver unit is connected to the signal receiving terminal of the MCU and the signal transmitting terminal of the MCU, and is configured to convert and transmit the differential signals input by the third terminal and the fourth terminal to the MCU, and convert the signals transmitted by the MCU into differential signals, and then transmit the differential signals to the communication bus through the third terminal and the fourth terminal.
Further, the second transceiver unit is further connected to a signal inversion terminal of the MCU, where the signal inversion terminal is configured to control inversion of differential signals input by the third terminal and the fourth terminal 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 MCU by the same power supply, and the isolation module is used for isolating interference signals.
Further, the circuit further comprises:
a first resistor connected between the transceiver module and a first line of the communication bus;
a second resistor connected between the transceiver module and a second line of the communication bus;
and a third resistor connected between the first line of the communication bus and the second line of the communication bus.
Further, the circuit further comprises:
and the static protection module is 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 based on the realization of the communication type switching circuit, which comprises the following steps:
controlling one of the first transceiver unit and the second transceiver unit to be conducted;
and judging whether the communication type corresponding to the conducted transceiver unit is consistent with the actual communication type of the circuit, and determining whether to switch on the other transceiver unit according to the judging result.
Further, determining whether to switch on another transceiver unit according to the judgment result includes:
when the communication type corresponding to the conducting transceiver unit is consistent with the actual communication type of the circuit, maintaining the conducting state of the current conducting transceiver unit unchanged;
and when the communication type corresponding to the conducted transceiver unit is inconsistent with the actual communication type of the circuit, switching and conducting the other transceiver unit.
Further, after determining whether to switch on another transceiver unit according to the judgment result, the method further includes:
judging whether the signal output by the transceiver module is abnormal or not;
when the signal output by the transceiver module is abnormal, the signal overturning terminal of the MCU is triggered to be conducted, so that the differential signal input by the transceiver module is overturned.
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 transceiver unit and the second transceiver unit are arranged, the first transceiver unit or the second transceiver unit is controlled to be conducted through the power management unit, when the communication type corresponding to the conducted transceiver unit is inconsistent with the actual communication type of the circuit, the other transceiver unit is switched and conducted, the first transceiver unit and the second transceiver unit are connected in parallel to form a group of external interfaces, the switching of the transceiver units is completed in the circuit, two types of communication can be completed by using the same group of interfaces, two communication interfaces are not required to be arranged, the area of a circuit board is saved, and meanwhile, the risk of error 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 block 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 present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the 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 this application 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, the "plurality" generally includes at least two.
It should be understood that the term "and/or" as used herein is merely one relationship describing the association of the associated objects, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
It should be understood that although the terms first, second, etc. may be used in embodiments of the present invention to describe transceiver units, these transceiver units should not be limited by these terms. These terms are only used to distinguish between transceiver units that perform different functions. For example, a first transceiver unit may also be referred to as a second transceiver unit, and similarly, a second transceiver unit may also be referred to as a first transceiver unit, without departing from the scope of 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 phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event)" or "in response to detection (stated condition or event), depending on the context.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a product 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 product or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a commodity or device comprising such element.
Alternative embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Example 1
The present embodiment provides a communication type switching circuit, fig. 1 is a block diagram of the 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 is connected with the second transceiver unit 12 in parallel, one end of the first transceiver unit 11 is connected to the micro control unit MCU3, the other end of the first transceiver unit is connected to a communication bus, the first transceiver unit 11 and the second transceiver unit 12 are used for realizing different types of communication, the first transceiver unit 11 is used for realizing a first type of communication, such as RS485 communication, and the second transceiver unit 12 is used for realizing 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 is configured to control the first transceiver unit 11 and the second transceiver unit 12 to be selectively turned on, so that a communication type corresponding to the turned-on 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 selectively conduct, monitor whether a communication type corresponding to the conducted transceiver unit is consistent with an actual communication type of the circuit, control the currently conducted transceiver unit to maintain a conducting state when the communication type corresponding to the conducted transceiver unit is consistent with the actual communication type of the circuit, and switch and conduct the other transceiver unit when the communication type corresponding to the conducted transceiver unit is inconsistent with the actual communication type of the circuit. The power management unit 13 includes three terminals, a first terminal is connected to the voltage source VCC, a second terminal is connected to the second transceiver unit 12, a third terminal is connected to the first transceiver unit 11, the first transceiver unit 11 includes a power terminal VCC1, the second transceiver unit 12 includes a power terminal VCC2, in a specific implementation, the power management unit 13 may first select any one of the first transceiver unit 11 and the second transceiver unit 12 to supply power to the first transceiver unit to turn on the first transceiver unit, for example, first control the third terminal to turn on the power terminal VCC1 of the first transceiver unit 11, so that the first transceiver unit 11 is electrically turned on, and since different data formats outputted by different communication types are different, according to the data format outputted by the transceiver unit 1, an actual communication type of a circuit can be determined, and then it is judged whether the communication type corresponding to the turned on first transceiver unit 11 is consistent with the actual communication type of the circuit, if so, the communication can be completed, and if not, the communication can be completed continuously, and if not, the communication can not be completed, the power terminal VCC2 of the third terminal and the second transceiver unit 12 need to be controlled to turn on is turned on, and the second transceiver unit 12 also includes the ground terminal GND2, and the ground terminal GND2 is turned on, and the ground terminal GND2 is also turned on.
The communication type switching circuit of this embodiment sets up first transceiver unit and second transceiver unit, controls first transceiver unit or second transceiver unit and switches on through power management unit to when the communication type that the transceiver unit that switches on corresponds with the actual communication type of circuit is inconsistent, switches on another transceiver unit, and first transceiver unit and second transceiver unit form a set of external interface after parallelly connected, accomplish the switching of transceiver unit in the circuit inside, can realize accomplishing two types of communication with same group interface, need not to set up two kinds of communication interfaces, saved the circuit board area, can avoid the risk of connecing the mistake simultaneously.
Example 2
In order to achieve that the communication type corresponding to the transceiver unit that is controlled to be turned on is consistent with the actual communication type of the circuit, the transceiver module 1 further includes a first signal processing unit 14, an input end of which is connected to the first transceiver unit 11 and the second transceiver unit respectively, 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 the actual communication type of the circuit according to the data format sent by the transceiver module 1, and further determine whether the communication type corresponding to the transceiver unit that is turned on currently is consistent with the actual communication type of the circuit, and then send a first control instruction to the power management unit according to the determination result; the first control instruction is used for indicating to maintain the conducting state of the currently conducted transceiver unit or switch on the other transceiver unit;
the signal may be transmitted from the communication bus to the MCU or from the MCU to the communication bus, so the transceiver module 1 further includes a second signal processing unit 15, an input end of which is connected to the MCU, an output end of which is connected to the first transceiver unit 11 and the second transceiver unit 12, respectively, and a control end of which is connected to the power management unit, and is configured to determine, according to an actual communication type, a transceiver unit that needs to be turned on, and send, according to the transceiver unit that needs to be turned on, a second control instruction to the power management unit 13, where the second control instruction is configured to control the first transceiver unit 11 or the second transceiver unit 12 to be turned on.
Because 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, where 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, and when the communication type is RS485 communication, that is, when the communication signal on the bus is an RS485 communication signal, the first transceiver unit 11 is turned on, and the differential signals are input into 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 fourth terminal is connected to the second line SIG2 of the communication bus, and when the communication type is CAN communication, that is, when the communication signal on the bus is 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 realize the function of transmitting and receiving signals, as shown in fig. 2, the first transmitting and receiving unit 11 includes: the first input end of the receiver R is connected with the first terminal B, the second input end of the receiver R is connected with the second terminal A, the output end RXD1 of the receiver R is connected with the signal receiving terminal RXD of the MCU, and the receiver R is used for converting differential signals input by the first terminal B and the second terminal A and transmitting the 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 transmitted signal of the MCU into a differential signal and 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 the practical application process, the two wires of the communication bus may be reversed, and once the two wires are reversed, signals cannot be normally transmitted, in order to solve the problem, as shown in fig. 2, the receiver R is further connected with the signal overturning terminal INV of the MCU through the terminal INV1, and the signal overturning terminal INV outputs a control signal when the first wire of the communication bus is reversed to the second wire of the communication bus, so as to control the overturning of the differential signals input by the first terminal B and the second terminal a.
Similarly, to implement the transceiving function, the second transceiving unit forms a common terminal RXD with the output terminal RXD1 of the above-mentioned receiver R through a terminal RXD2, the common terminal RXD is used for being connected to a signal receiving terminal mcu_rxd of the MCU, the common terminal TXD is formed with the input terminal TXD1 of the above-mentioned receiver R through a terminal TXD2, the common terminal TXD is used for being connected to a signal transmitting terminal mcu_txd of the MCU, the second transceiving unit 12 is used for converting and transmitting differential signals input by the third terminal CANH and the fourth terminal CANL to the MCU, and transmitting signals transmitted by the MCU to the communication bus through the third terminal CANH and the fourth terminal CANL after converting the signals into differential signals.
In order to solve the problem that signals cannot be normally transmitted after two wires of the communication bus are connected reversely, as shown in fig. 2, the second transceiver unit further forms a common connection terminal INV through a terminal INV2 and a terminal INV1, the common connection terminal INV is used for connecting a signal turning terminal mcu_inv of the MCU, and when the first wire and the second wire of the communication bus are connected reversely, the signal turning terminal INV outputs a control signal to control the turning of differential signals input by the third terminal CANH and the fourth terminal CANL.
In order to realize the controllable working states of the first transceiver unit 11 and the second transceiver unit 12, the first transceiver unit 11 further comprises a terminal DE1, the second transceiver unit 12 further comprises a terminal DE2, the terminal DE1 and the terminal DE2 form a common connection terminal EN, the common connection terminal EN is used for being connected to an enabling terminal mcu_en of the MCU, and the enabling terminal mcu_en sends an enabling signal to control the first transceiver unit 11 and the second transceiver unit 12 to work or stop working.
Example 3
In order to avoid the interference signal from entering the MCU, fig. 3 is a block diagram of a communication type switching circuit according to a third embodiment of the present invention, the circuit further includes:
the isolation module 2, the isolation module 2 is an isolation chip, the isolation chip is connected between the MCU and the transceiver module 1 and is connected with the MCU to form the same power supply, namely, a first power supply terminal VCC3 of the isolation module 2 is connected with a power supply terminal VCC_MCU of the MCU, a first grounding terminal GND3 is connected with a grounding terminal GND_MCU of the MCU, a second power supply terminal VCC4 is connected with a power supply terminal VCC_SIG of the communication bus, and a second grounding terminal GND4 is connected with a grounding terminal GND_SIG of the communication bus to ensure the compatibility of the communication level.
The output terminal, the input terminal and the signal overturning terminal of the isolation chip are respectively connected with the MCU and the corresponding terminals in the transceiver module 1 in a one-to-one correspondence manner, 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: the first resistor R1 is connected between the transceiver module 1 and a first line of the communication bus; a second resistor R2 connected between the transceiver module 1 and a second line of the communication bus; the first resistor R1 and the second resistor R2 are used for reducing interference signals on the first line and the second line of the communication bus, respectively.
The communication device further comprises a third resistor R3, wherein the third resistor R3 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 is used for adjusting the quality of communication signals 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 static electricity on signal transmission, as shown in fig. 3, the circuit further includes: and an electrostatic protection module 3 connected between the first line of the communication bus and the second line of the communication bus. The electrostatic protection module includes at least one electrostatic protection diode, in this embodiment, the electrostatic protection module includes an electrostatic protection diode D1, which is disposed between a first line of the communication bus and a second line of the communication bus, and further includes a protection diode group D2 formed by two electrostatic protection diodes connected in series between the first line of the communication bus and the second line of the communication bus, where a line between the two electrostatic protection diodes connected in series is connected to a ground GND-SIG of the communication bus, and the electrostatic protection module 3 is used to prevent ESD interference on the communication bus or to shield an interference signal coming from a far end.
Example 4
In this embodiment, another communication type switching circuit is provided, fig. 4 is a block diagram of a communication type switching circuit according to a fourth embodiment of the present invention, and as shown in fig. 4, the circuit is a circuit that CAN be shared by CAN communication and RS485 communication, a differential signal on a CAN bus or an RS485 bus is accessed through a relay J1, and D1 and D2 are two ESD protection units, so as to prevent ESD interference of the communication bus or an interference signal from a far end; the first resistor R1 and the second resistor R2 are used for reducing interference connected in series on a communication bus, the resistance values of the first resistor R1 and the second resistor R2 can influence the network communication distance, the network communication distance is generally selected according to a rule of 25 omega/Km, and the third resistor R3 is a matched resistor on the bus and is used for adjusting the communication quality on the bus, and 120 omega is generally selected;
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 differential signals on a bus are processed into digital signals which CAN be identified by an MCU through the U1;
the second processing chip U2 is an isolation chip for further preventing interference from entering the MCU. The grounding end gnd_mcu of the MCU and the grounding end gnd_sig of the communication bus may access the same network, or may access two different networks. The power supply VCC_MCU of the isolated chip must be the same as the MCU to ensure compatibility of communication levels.
Fig. 5 is an internal structural diagram of a first processing chip according to a fourth embodiment of the present invention, and an operation principle of a transceiver for automatically recognizing CAN communication signals and RS485 communication signals:
as shown in fig. 5, two signal processing units are arranged in 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 initially supplied to the first transceiver unit U11, so that the second transceiver unit U12 is in a power-off state; the differential information of the communication bus is processed by the first transceiver unit U11 to reach the signal processing unit, the signal processing unit communicates with the MCU through the received signal, if the communication bus sends an RS485 communication signal, the communication is successful, and the current communication state is maintained; if the bus sends a CAN communication signal, the communication fails, the signal processing unit sends a command to the power management unit, the power supply of the first transceiver unit U11 is cut off, the power supply is changed into the power supply of the second transceiver unit U12, the CAN communication signal on the bus is processed by the second transceiver unit U12 and then sent to the MCU to complete the normal communication.
The power signal receiving RXD terminal, the signal transmitting terminal TXD, and the bus signals SIG1 and SIG2 of the first transceiver unit U11 and the second transceiver unit U12 are connected together to realize that the CAN communication signal and the RS485 communication signal CAN share a common communication bus, and the power management unit determines which transceiver unit operates.
The INV pins of the first transceiver unit U11 and the second transceiver unit U12 CAN realize the overturn of communication bus signals (SIG 1 and SIG 2), and because the CAN communication and RS485 communication wires are required to be wired, once the wires are connected reversely (for example, the RS485 communication a wire is connected to the B pin position, the B wire is connected to the a pin position, or the CAN communication CAN high wire is connected to the CANL pin position, and the CAN low wire is connected to the CANH pin position), the communication with the MCU is unsuccessful, the MCU CAN send an overturn instruction through the mcu_inv signal wire, so that the SIG1 and SIG2 signals inside the first transceiver unit U11 or the second transceiver unit U12 are overturned, and the communication is realized.
Example 5
The embodiment provides an air conditioning device, including the communication type switching circuit in the above-mentioned embodiment, through realizing accomplishing two types of communication through same group interface, need not to set up two kinds of communication interfaces, saved the circuit board area, can avoid the risk of connecing the mistake simultaneously.
Example 6
The 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, controlling one of the first transceiver unit and the second transceiver unit 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 determining the communication type, one of the first transceiver unit or the second transceiver unit may be optionally turned on.
S102, judging whether the communication type corresponding to the conducted transceiver unit is consistent with the actual communication type of the circuit, and determining whether to switch on the other transceiver unit according to the judging result.
After controlling the conduction of one transceiver unit, the data formats output by different communication types are different, so that the actual communication type can be determined according to the data format output by the transceiver module, and further whether the communication type corresponding to the currently conducted transceiver unit is consistent with the actual communication type of the circuit is judged. If the communication is consistent, the communication can be completed, the currently conducted transceiver unit can be kept in a conducting state, if the communication is inconsistent, the communication cannot be completed, and the other transceiver unit needs to be switched and conducted, so that the success of the communication is ensured. In specific implementation, S102 specifically includes: when the communication type corresponding to the conducted transceiver unit is consistent with the actual communication type of the circuit, the current conducted transceiver unit is maintained unchanged; and when the communication type corresponding to the conducted transceiver unit is inconsistent with the actual communication type of the circuit, switching and conducting the other transceiver unit.
After maintaining the currently conducted transceiver unit unchanged or switching on another transceiver unit, the problem that the communication type realized by the transceiver unit is inconsistent with the actual communication type is solved, but two wires of the communication bus may be reversed, and once the two wires are reversed, signals cannot be normally transmitted, so that in order to solve the problem that the two wires of the communication bus are reversed, 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 overturning terminal of the MCU is triggered to be conducted, so that the differential signal input by the transceiver module is overturned, and the communication is recovered to be normal. Therefore, normal communication can be ensured when two wires of the communication bus are connected reversely.
Example 7
The present embodiment provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the communication type switching method in the above-described embodiments.
The circuit embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (15)

1. A communication type switching circuit, the circuit comprising a transceiver module, the transceiver module comprising:
the first transceiver unit is connected with the second transceiver unit in parallel, one end of the first transceiver unit is connected to a Micro Control Unit (MCU), the other end of the first transceiver unit is connected with a communication bus, and the first transceiver unit and the second transceiver unit respectively correspond to different types of communication;
the power management unit is respectively connected with the first transceiver unit and the second transceiver unit and is used for controlling the first transceiver unit and the second transceiver unit to be selectively conducted so that the communication type corresponding to the conducted transceiver unit is consistent with the actual communication type of the circuit;
the transceiver module further comprises:
the input end of the first signal processing unit is respectively connected with the first receiving and transmitting unit and the second receiving and transmitting unit, the output end of the first signal processing unit is connected with the Micro Control Unit (MCU), the control end of the first signal processing unit is connected with the power management unit, and the first signal processing unit is used for determining the actual communication type of the circuit according to the data format sent by the receiving and transmitting module and judging whether the communication type corresponding to the currently conducted receiving and transmitting unit is consistent with the actual communication type of the circuit or not; then, a first control instruction is sent to the power management unit according to the judging result; the first control instruction is used for indicating to maintain the conducting state of the currently conducted transceiver unit or switch on the other transceiver unit;
the input end of the second signal processing unit is connected with the Micro Control Unit (MCU), the output end of the second signal processing unit is respectively connected with the first transceiver unit and the second transceiver unit, and the control end of the second signal processing unit is connected with the power management unit and is 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 transceiver unit or the second transceiver unit to be conducted.
2. The communication type switching circuit according to claim 1, wherein,
the power management unit is specifically configured to control the first transceiver unit and the second transceiver unit to be selectively turned on, and monitor whether a communication type corresponding to the turned-on transceiver unit is consistent with an actual communication type of the circuit; if the current conduction state of the transceiver unit is consistent, the conduction state of the transceiver unit which is conducted currently is maintained, and if the current conduction state of the transceiver unit is inconsistent, the other transceiver unit is switched on.
3. The communication type switching circuit according to claim 1, wherein,
the first transceiver unit comprises a first terminal and a second terminal, 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, wherein 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.
4. A communication type switching circuit according to claim 3, wherein the first transceiving unit comprises:
a receiver, a first input end of which is connected with the first terminal, a second input end of which is connected with the second terminal, and an output end of which is connected with a signal receiving terminal of the Micro Control Unit (MCU), wherein the receiver is used for converting differential signals input by the first terminal and the second terminal and transmitting the differential signals to the Micro Control Unit (MCU);
and the input end of the driver is connected with the signal transmission terminal of the Micro Control Unit (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 and is used for converting the signal transmitted by the Micro Control Unit (MCU) into a differential signal and transmitting the differential signal to the communication bus through the first terminal and the second terminal.
5. The communication type switching circuit according to claim 4, wherein the receiver is further connected to a signal inverting terminal of the Micro Control Unit (MCU), the signal inverting terminal being configured to control an inversion of a differential signal inputted from the first terminal and the second terminal when a first line of the communication bus is inversely connected to a second line of the communication bus.
6. A communication type switching circuit according to claim 3, wherein the second transceiver unit is connected to a signal receiving terminal of the Micro Control Unit (MCU) and a signal transmitting terminal of the Micro Control Unit (MCU), and is configured to convert and transmit differential signals inputted from the third terminal and the fourth terminal to the Micro Control Unit (MCU), and convert signals transmitted from the Micro Control Unit (MCU) to differential signals, and transmit the differential signals to the communication bus through the third terminal and the fourth terminal.
7. The communication type switching circuit according to claim 6, wherein the second transceiver unit is further connected to a signal flip terminal of the Micro Control Unit (MCU), the signal flip terminal being configured to control a differential signal flip input from the third terminal and the fourth terminal when a first line of the communication bus is connected to a second line of the communication bus in reverse.
8. The communication type switching circuit according to claim 1, wherein the circuit further comprises:
the isolation module is connected between the Micro Control Unit (MCU) and the transceiver module and is connected with the same power supply with the Micro Control Unit (MCU), and the isolation module is used for isolating interference signals.
9. The communication type switching circuit according to claim 1, wherein the circuit further comprises:
a first resistor connected between the transceiver module and a first line of the communication bus;
a second resistor connected between the transceiver module and a second line of the communication bus;
and a third resistor connected between the first line of the communication bus and the second line of the communication bus.
10. The communication type switching circuit according to claim 9, wherein the circuit further comprises:
and the static protection module is connected between the first line of the communication bus and the second line of the communication bus.
11. An air conditioning apparatus comprising the communication type switching circuit according to any one of claims 1 to 10.
12. A communication type switching method, implemented based on the communication type switching circuit of any one of claims 1 to 11, characterized in that the method comprises:
controlling one of the first transceiver unit and the second transceiver unit to be conducted;
and judging whether the communication type corresponding to the conducted transceiver unit is consistent with the actual communication type of the circuit, and determining whether to switch on the other transceiver unit according to the judging result.
13. The communication type switching method according to claim 12, wherein determining whether to switch on the other transceiver unit according to the determination result comprises:
when the communication type corresponding to the conducting transceiver unit is consistent with the actual communication type of the circuit, maintaining the conducting state of the current conducting transceiver unit unchanged;
and when the communication type corresponding to the conducted transceiver unit is inconsistent with the actual communication type of the circuit, switching and conducting the other transceiver unit.
14. The communication type switching method according to claim 12, 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 or not;
when the signal output by the transceiver module is abnormal, a signal overturning terminal of a Micro Control Unit (MCU) is triggered to be conducted, so that the differential signal input by the transceiver module is overturned.
15. A computer readable storage medium having stored thereon a computer program, wherein the program when executed by a processor implements a communication type switching method according to any of claims 12-14.
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 CN111835378A (en) 2020-10-27
CN111835378B true 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 (15)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4900692B2 (en) * 2006-11-17 2012-03-21 株式会社デンソー Communication device and occupant protection device

Patent Citations (15)

* 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
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
CN111835378A (en) 2020-10-27

Similar Documents

Publication Publication Date Title
US9229889B2 (en) Dual voltage communication bus
JPH02266628A (en) Communication network
CN212695990U (en) Communication type switching circuit and air conditioning equipment
JPH05508268A (en) Serial data link diagnostic hardware
CN106059911B (en) CAN bus is connected to the control device and motor vehicles of radio net
CN105517850B (en) Method for monitoring the component in motor vehicle
JP2018042232A (en) Communication system, communication device, relay device, communication ic (integrated circuit), control ic, and communication method
US20180198481A1 (en) Transmitter-receiver device connectable to a communications network by a can-type or flexray-type bus
US20210006431A1 (en) Transmitter/receiver device for a bus system and method for reducing conducted emissions
JP2008278403A (en) Monitoring apparatus and method of network system
CN113196711B (en) Device for a subscriber station of a serial bus system and method for communication in a serial bus system
CN107231270B (en) Slave module for monitoring an electrical system
CN111835378B (en) Communication type switching circuit and method and air conditioning equipment
US10089274B2 (en) Dual voltage communication bus
US20060279398A1 (en) CAN controller system
US6744810B1 (en) Signal repeater for voltage intolerant components used in a serial data line
EP0199338B1 (en) Repeater circuit
JP3679944B2 (en) Information transmission equipment
US6744779B1 (en) Data processing system
US11115236B2 (en) Subscriber station for a bus system and method for transmitting data in a bus system
CN102426452A (en) Vehicle-mounted system with long-distance diagnostic function
JP2010206651A (en) Communication repeater, communication relay method, communication network, and electronic controller
WO2018043264A1 (en) Communication system, communication device, relay device, communication integrated circuit (ic), control ic, and communication method
US20210064559A1 (en) Data processing apparatus
KR102177230B1 (en) Apparatus and method for serial communication control discriminating

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