Two-way communication device
By using level switching circuits and surge protection circuits in the communication devices between MCUs, the complexity and high cost of communication between 12V systems and 24V or 48V systems are solved, achieving reliable bidirectional communication and low-cost circuit design.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BYD CO LTD
- Filing Date
- 2026-02-09
- Publication Date
- 2026-06-05
AI Technical Summary
In existing technologies, communication between MCUs, especially between 12V and 24V or 48V systems, requires the use of high-voltage conversion chips, which leads to complex circuits, high costs, and communication delay issues.
The circuit employs a level switching circuit and a surge protection circuit. The level switching circuit enables level conversion between different MCUs, while the surge protection circuit provides soft-start protection to prevent current surges, thereby reducing circuit complexity and cost.
It ensures reliable communication between different MCUs, reduces communication latency and effectively lowers communication costs, while preventing device damage and improving the reliability and security of communication equipment.
Smart Images

Figure CN122159853A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and in particular to a two-way communication device. Background Technology
[0002] In the hardware of electronic devices, various MCUs (Microcontroller Units) often need to exchange signals. However, different MCUs have different power supply voltages (for example, some MCUs are powered by 5V, while others are powered by 3V), so the voltage strength of the electrical signals used for MCU communication also varies. The current solution to this problem is to add a conversion chip between the two communicating MCUs. This conversion chip transforms the electrical signal sent by one MCU into an electrical signal that the other MCU can recognize.
[0003] However, since current automotive motor systems mainly use 12V systems, for other higher-level 24V or 48V systems, if it is necessary to directly use the high and low levels between 0V and 48V to communicate with the LIN communication chip of the 12V system, it is easy to cause the chip's withstand voltage value to exceed the range, resulting in chip damage or even failure. In many cases, it is necessary to develop or use conversion chips or LIN (Local Interconnect Network) communication chips with higher withstand voltage values for design. This may lead to the use of conversion chips or LIN communication chips with higher withstand voltage values, resulting in relatively high circuit costs. Summary of the Invention
[0004] The present invention aims to at least solve one of the technical problems existing in the related art. Therefore, the object of the present invention is to provide a two-way communication device.
[0005] The present invention proposes a bidirectional communication device, the bidirectional communication device comprising: a level switching circuit, a first end of the level switching circuit being connected to a first signal port, and a second end of the level switching circuit being connected to a second signal port, for performing level conversion and outputting a target conversion signal based on the level output signal of the first signal port or the second signal port and the power supply voltage.
[0006] According to an embodiment of the present invention, a bidirectional communication device includes a level switching circuit. A first end of the level switching circuit is connected to a first signal port, and a second end of the level switching circuit is connected to a second signal port. The level switching circuit is used to perform level conversion and output a target conversion signal based on the level output signal of the first signal port or the second signal port and the supply voltage. Thus, the bidirectional communication device can convert the level between the first signal port and the second signal port using only the level switching circuit, and establish compatible bidirectional communication between the first signal port and the second signal port. Therefore, the bidirectional communication device can not only ensure reliable communication between different controllers and reduce communication latency through the level switching circuit, but also effectively reduce communication costs due to the simplicity of the circuit.
[0007] In addition, the bidirectional communication device according to embodiments of the present invention may also have the following additional technical features: Furthermore, the bidirectional communication device also includes a surge protection circuit, wherein a first end of the surge protection circuit is connected to the first signal port, a second end of the surge protection circuit is connected to the first end of the level switching circuit, and a third end of the surge protection circuit is grounded, for reducing voltage surges when the bidirectional communication device is started; thereby, by setting a surge protection circuit between the first signal port and the level switching circuit, soft-start surge protection can be achieved, preventing current surges, thus avoiding damage to some components and ensuring the normal use of the bidirectional communication device.
[0008] Furthermore, the power supply voltage includes a first power supply voltage and a second power supply voltage. The level switching circuit includes: a first level switching sub-circuit, the first terminal of which is connected to the second terminal of the surge protection circuit, the second terminal of which is connected to the first power supply voltage, and the third terminal of which is connected to the second signal port, for turning on or off the output signal according to the level of the first power supply voltage and / or the second signal port; and a second level switching sub-circuit, the first terminal of which is connected to the first terminal of the first level switching sub-circuit, the second terminal of which is connected to the fourth terminal of the first level switching sub-circuit, and the third terminal of which is connected to the second power supply voltage, for turning on or off the output signal according to the level of the first signal port and / or the second power supply voltage. Thus, the level switching circuit can perform level conversion and output a target conversion signal by switching the on / off states of the first and second level switching sub-circuits, thereby ensuring the reliability of communication.
[0009] Furthermore, the first level switching sub-circuit includes: a first switching transistor, the collector of which is connected to the second terminal of the surge protection circuit, for turning on or off the output signal according to the first supply voltage and / or the level of the second signal port; a first driving resistor, one end of which is connected to the base of the first switching transistor, and the other end of which is connected to the first supply voltage; and a first pull-up resistor, one end of which is connected to the other end of the first driving resistor, and the other end of which is connected to the emitter of the first switching transistor. Thus, through the cooperation of the first switching transistor, the first driving resistor, and the first pull-up resistor, the first level switching sub-circuit can turn on or off the output signal according to the first supply voltage and / or the level of the second signal port, which helps to ensure the reliability of communication.
[0010] Furthermore, the second level switching sub-circuit includes: a second switching transistor, the emitter of which is connected to the second terminal of the surge protection circuit, for turning on or off according to the level of the first signal port and / or the second power supply voltage; a second driving resistor, one end of which is connected to the base of the second switching transistor, and the other end of which is connected to the second power supply voltage; and a second pull-up resistor, one end of which is connected to the other end of the second driving resistor, and the other end of which is connected to the emitter of the second switching transistor. Thus, through the cooperation of the second switching transistor, the second driving resistor, and the second pull-up resistor, the second level switching sub-circuit can turn on or off according to the level of the first signal port and / or the second power supply voltage, which helps to ensure the reliability of communication.
[0011] Furthermore, the surge protection circuit includes: a TVS diode, one end of which is connected to the first signal port, and the other end of which is grounded; a first voltage divider resistor, one end of which is connected to the first signal port; a second voltage divider resistor, one end of which is connected to the other end of the first voltage divider resistor; a Zener diode, the cathode of which is connected to the other end of the first voltage divider resistor or one end of the second voltage divider resistor; a first capacitor, one end of which is connected to the cathode of the Zener diode, and the other end of which is connected to the anode of the Zener diode; and a third switching transistor, the first, second, and third ends of which are connected to the other end of the first capacitor, the fourth end of which is connected to the other end of the second voltage divider resistor, and the fifth, sixth, seventh, and eighth ends of which are grounded. Thus, through the cooperation of the TVS diode, the first voltage divider resistor, the second voltage divider resistor, the Zener diode, the first capacitor, and the third switching transistor, the surge protection circuit can reduce the voltage surge during startup of the bidirectional communication device, helping to avoid damage to some components and ensuring the normal operation of the bidirectional communication device.
[0012] Furthermore, the two-way communication device also includes a first resistor, one end of which is connected to the second terminal of the surge protection circuit, and the other end of which is connected to the first terminal of the level switching circuit; thus, filtering through the first resistor can effectively ensure the security of the two-way communication device.
[0013] Furthermore, the bidirectional communication device also includes: a second capacitor, one end of which is connected to the second terminal of the surge protection circuit; and a third capacitor, one end of which is connected to the other end of the second capacitor, and the other end of which is grounded. By using capacitors in series for filtering, it can also be ensured that the other capacitor can still function when one capacitor is short-circuited, thereby effectively avoiding current surges that could interfere with or damage the device.
[0014] Furthermore, the bidirectional communication device also includes: a fourth capacitor, one end of which is connected to the second signal port; and a fifth capacitor, one end of which is connected to the other end of the fourth capacitor, and the other end of which is grounded. By using capacitors connected in series for filtering, it can be ensured that the other capacitor can still function when one capacitor is short-circuited, thereby effectively avoiding current surges that could interfere with or damage the device.
[0015] Furthermore, the bidirectional communication device also includes a communication circuit, one end of which is connected to the second signal port for receiving the target conversion voltage and communicating bidirectionally with the controller based on the target conversion voltage; thereby, reliable communication between different controllers can be ensured through bidirectional communication between the communication circuit and the controller.
[0016] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0017] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which: Figure 1 This is a structural block diagram of a two-way communication device according to an embodiment of the present invention; Figure 2 This is a structural block diagram of a two-way communication device according to another embodiment of the present invention; Figure 3 This is a structural block diagram of a two-way communication device according to yet another embodiment of the present invention; Figure 4 This is a circuit diagram of a two-way communication device according to a specific embodiment of the present invention; Figure 5This is a circuit diagram of a communication circuit according to a specific embodiment of the present invention; Figure 6 This is a communication schematic diagram of a two-way communication device according to a specific embodiment of the present invention; Figure 7 This is a schematic diagram of a two-way communication device according to a specific embodiment of the present invention, showing the communication from 48V to 12V from left to right. Figure 8 This is a schematic diagram of a two-way communication device from left to right (0V to 0V) according to a specific embodiment of the present invention. Figure 9 This is a schematic diagram of the communication from right to left (12V to 48V) of a two-way communication device according to a specific embodiment of the present invention. Figure 10 This is a schematic diagram of a two-way communication device from right to left (0V to 0V) according to a specific embodiment of the present invention.
[0018] Figure label: 100 - Two-way communication device; 110 - Level switching circuit; 111 - First level switching sub-circuit; 112 - Second level switching sub-circuit; 120 - Surge protection circuit; 130 - Communication circuit; 200 - First signal port; 300 - First signal port. Detailed Implementation
[0019] The embodiments of the present invention are described in detail below. The embodiments described with reference to the accompanying drawings are exemplary. The embodiments of the present invention are described in detail below.
[0020] Currently, communication between MCUs (Microcontroller Units) primarily relies on 12V LIN (Local Interconnect Network) communication. High and low LIN signals between 0V and 12V are used to communicate with a LIN communication chip, which then communicates with the MCU, achieving bidirectional communication. However, if a 48V motor system requires LIN communication between 0V and 48V, a level conversion chip will be necessary, or a LIN communication chip with a higher voltage withstand capability will need to be developed. This approach inevitably leads to drawbacks such as circuit complexity, high cost, and communication time delays.
[0021] To address the aforementioned problems in related technologies, embodiments of the present invention provide a two-way communication device, which is described below with reference to... Figures 1-10 A bidirectional communication device according to an embodiment of the present invention is described.
[0022] Figure 1 This is a structural block diagram of a two-way communication device according to an embodiment of the present invention. Figure 1As shown, a bidirectional communication device 100 according to an embodiment of the present invention includes: a level switching circuit 110, a first end of the level switching circuit 110 connected to a first signal port 200, a second end of the level switching circuit 110 connected to a second signal port 300, and the level switching circuit 110 being used to perform level conversion and output a target conversion signal according to the level output signal of the first signal port 200 or the second signal port 300 and the power supply voltage.
[0023] In a specific embodiment, the bidirectional communication device 100 includes a level switching circuit 110. The first terminal of the level switching circuit 110 is connected to a first signal port 200, and the second terminal is connected to a second signal port 300. The level switching circuit 110 is used to perform level conversion and output a target conversion signal based on the level output signal of the first signal port 200 or the second signal port 300 and the supply voltage. Specifically, the first signal port 200 and the second signal port 300 can communicate with different MCUs respectively. The first signal port 200 is, for example, a 48V_LIN port, and the second signal port 300 is, for example, a 12V_LIN port. The level switching circuit 110 includes, for example, two switching transistors and their corresponding drive resistors and pull-up resistors.
[0024] Specifically, the bidirectional communication device 100 according to an embodiment of the present invention includes a level switching circuit 110. The first end of the level switching circuit 110 is connected to a first signal port 200, and the second end of the level switching circuit 110 is connected to a second signal port 300. The level switching circuit 110 is used to perform level conversion and output a target conversion signal according to the level output signal and supply voltage of the first signal port 200 or the second signal port 300. In this way, the bidirectional communication device 100 can convert the level between the first signal port 200 and the second signal port 300 by means of the level switching circuit 110 alone, and establish compatible bidirectional communication between the first signal port 200 and the second signal port 300. Thus, the bidirectional communication device 100 can not only ensure reliable communication between different controllers and reduce communication latency through the level switching circuit 110, but also effectively reduce communication costs due to the simplicity of the circuit.
[0025] Figure 2 This is a structural block diagram of a two-way communication device according to another embodiment of the present invention. Figure 2 As shown, in one embodiment of the present invention, the bidirectional communication device 100 further includes: a surge protection circuit 120, the first end of the surge protection circuit 120 is connected to the first signal port 200, the second end of the surge protection circuit 120 is connected to the first end of the level switching circuit 110, and the third end of the surge protection circuit 120 is grounded, for reducing the voltage surge when the bidirectional communication device 100 is started.
[0026] In a specific embodiment, the bidirectional communication device 100 further includes a surge protection circuit 120. The first terminal of the surge protection circuit 120 is connected to the first signal port 200, the second terminal is connected to the first terminal of the level switching circuit 110, and the third terminal is grounded. The surge protection circuit 120 is used to reduce voltage surges during startup of the bidirectional communication device 100. Specifically, the surge protection circuit 120 may include, for example, a TVS diode, a Zener diode, a switching transistor, and their corresponding voltage divider resistors and capacitors.
[0027] Specifically, the bidirectional communication device 100 according to an embodiment of the present invention further includes a surge protection circuit 120. The first end of the surge protection circuit 120 is connected to the first signal port 200, the second end of the surge protection circuit 120 is connected to the first end of the level switching circuit 110, and the third end of the surge protection circuit 120 is grounded. The surge protection circuit 120 is used to reduce the voltage surge when the bidirectional communication device 100 is started. In this way, by setting the surge protection circuit 120 between the first signal port 200 and the level switching circuit 110, soft start surge protection can be achieved to prevent current surges, thereby avoiding damage to some components and ensuring the normal use of the bidirectional communication device 100.
[0028] In one embodiment of the present invention, the power supply voltage includes a first power supply voltage and a second power supply voltage. The level switching circuit 110 includes: a first level switching sub-circuit 111, the first end of which is connected to the second end of the surge protection circuit 120, the second end of which is connected to the first power supply voltage, and the third end of which is connected to the second signal port 300, for turning on or off by outputting a signal according to the level of the first power supply voltage and / or the level of the second signal port 300; and a second level switching sub-circuit 112, the first end of which is connected to the first end of the first level switching sub-circuit 111, the second end of which is connected to the fourth end of the first level switching sub-circuit 111, and the third end of which is connected to the second power supply voltage, for turning on or off by outputting a signal according to the level of the first signal port 200 and / or the second power supply voltage.
[0029] In a specific embodiment, the power supply voltage includes a first power supply voltage and a second power supply voltage. The level switching circuit 110 includes a first level switching sub-circuit 111 and a second level switching sub-circuit 112. The first level switching sub-circuit 111 is used to turn on or off the output signal according to the first power supply voltage and / or the level of the second signal port 300. The second level switching sub-circuit 112 is used to turn on or off the output signal according to the level of the first signal port 200 and / or the second power supply voltage. Specifically, the first power supply voltage is, for example, 12V, and the second power supply voltage is, for example, 48V.
[0030] Specifically, the first terminal of the first level switching sub-circuit 111 is connected to the second terminal of the surge protection circuit 120, the second terminal of the first level switching sub-circuit 111 is connected to the first power supply voltage, the third terminal of the first level switching sub-circuit 111 is connected to the second signal port 300, the first terminal of the second level switching sub-circuit 112 is connected to the first terminal of the first level switching sub-circuit 111, the second terminal of the second level switching sub-circuit 112 is connected to the fourth terminal of the first level switching sub-circuit 111, and the third terminal of the second level switching sub-circuit 112 is connected to the second power supply voltage.
[0031] Specifically, according to the bidirectional communication device 100 of the present invention, the power supply voltage includes a first power supply voltage and a second power supply voltage, and the level switching circuit 110 includes a first level switching sub-circuit 111 and a second level switching sub-circuit 112. The first level switching sub-circuit 111 is used to turn on or off according to the first power supply voltage and / or the level output signal of the second signal port 300, and the second level switching sub-circuit 112 is used to turn on or off according to the level output signal of the first signal port 200 and / or the second power supply voltage. In this way, the level switching circuit 110 can perform level conversion and output a target conversion signal by controlling the on / off state of the first level switching sub-circuit 111 and the second level switching sub-circuit 112, thereby ensuring the reliability of communication.
[0032] In one embodiment of the present invention, the first level switching sub-circuit 111 includes: a first switching transistor Q1, the collector of which is connected to the second terminal of the surge protection circuit 120, for turning on or off the output signal according to the first power supply voltage and / or the level of the second signal port 300; a first driving resistor R1, one end of which is connected to the base of the first switching transistor Q1, and the other end of which is connected to the first power supply voltage; and a first pull-up resistor R2, one end of which is connected to the other end of the first driving resistor R1, and the other end of which is connected to the emitter of the first switching transistor Q1.
[0033] In a specific embodiment, the first level switching sub-circuit 111 includes a first switching transistor Q1, a first driving resistor R1, and a first pull-up resistor R2. Specifically, the collector of the first switching transistor Q1 is connected to the second terminal of the surge protection circuit 120. The first switching transistor Q1 is used to turn on or off according to the output signal of the first supply voltage and / or the level of the second signal port 300. One end of the first driving resistor R1 is connected to the base of the first switching transistor Q1, and the other end of the first driving resistor R1 is connected to the first supply voltage. One end of the first pull-up resistor R2 is connected to the other end of the first driving resistor R1, and the other end of the first pull-up resistor R2 is connected to the emitter of the first switching transistor Q1.
[0034] Specifically, according to the bidirectional communication device 100 of the present invention, the first level switching sub-circuit 111 includes a first switching transistor Q1, a first driving resistor R1, and a first pull-up resistor R2; thereby, through the cooperation of the first switching transistor Q1, the first driving resistor R1, and the first pull-up resistor R2, the first level switching sub-circuit 111 can turn on or off the output signal according to the first power supply voltage and / or the level of the second signal port 300, which helps to ensure the reliability of communication.
[0035] In one embodiment of the present invention, the second level switching sub-circuit 112 includes: a second switching transistor Q2, the emitter of which is connected to the second terminal of the surge protection circuit 120, for turning on or off according to the level of the first signal port 200 and / or the second power supply voltage; a second driving resistor R9, one end of which is connected to the base of the second switching transistor Q2, and the other end of which is connected to the second power supply voltage; and a second pull-up resistor R8, one end of which is connected to the other end of the second driving resistor R9, and the other end of which is connected to the emitter of the second switching transistor Q2.
[0036] In a specific embodiment, the second level switching sub-circuit 112 includes a second switching transistor Q2, a second driving resistor R9, and a second pull-up resistor R8. Specifically, the emitter of the second switching transistor Q2 is connected to the second terminal of the surge protection circuit 120. The second switching transistor Q2 is used to turn on or off according to the level output signal of the first signal port 200 and / or the second supply voltage. One end of the second driving resistor R9 is connected to the base of the second switching transistor Q2, and the other end of the second driving resistor R9 is connected to the second supply voltage. One end of the second pull-up resistor R8 is connected to the other end of the second driving resistor R9, and the other end of the second pull-up resistor R8 is connected to the emitter of the second switching transistor Q2.
[0037] Specifically, according to the bidirectional communication device 100 of the present invention, the second level switching sub-circuit 112 includes a second switch Q2, a second driving resistor R9, and a second pull-up resistor R8; thereby, through the cooperation of the second switch Q2, the second driving resistor R9, and the second pull-up resistor R8, the second level switching sub-circuit 112 can turn on or off according to the level of the first signal port 200 and / or the second power supply voltage, which helps to ensure the reliability of communication.
[0038] In one embodiment of the present invention, the surge protection circuit 120 includes: a TVS diode D1, one end of which is connected to a first signal port 200, and the other end of which is grounded; a first voltage divider resistor R5, one end of which is connected to the first signal port 200; a second voltage divider resistor R7, one end of which is connected to the other end of the first voltage divider resistor R5; a Zener diode D2, the cathode of which is connected to the other end of the first voltage divider resistor R5 or one end of the second voltage divider resistor R7; a first capacitor C10, one end of which is connected to the cathode of the Zener diode D2, and the other end of which is connected to the anode of the Zener diode D2; and a third switch Q3, the first, second, and third ends of which are connected to the other end of the first capacitor C10, the fourth end of which is connected to the other end of the second voltage divider resistor R7, and the fifth, sixth, seventh, and eighth ends of which are grounded.
[0039] In a specific embodiment, the surge protection circuit 120 includes a TVS diode D1, a first voltage divider resistor R5, a second voltage divider resistor R7, a Zener diode D2, a first capacitor C10, and a third switch Q3. Specifically, one end of the TVS diode D1 is connected to the first signal port 200, and the other end of the TVS diode D1 is grounded. One end of the first voltage divider resistor R5 is connected to the first signal port 200. One end of the second voltage divider resistor R7 is connected to the other end of the first voltage divider resistor R5. The cathode of the Zener diode D2 is connected to either the other end of the first voltage divider resistor R5 or one end of the second voltage divider resistor R7. One end of the first capacitor C10 is connected to the cathode of the Zener diode D2, and the other end of the first capacitor C10 is connected to the anode of the Zener diode D2. The first, second, and third ends of the third switch Q3 are connected to the other end of the first capacitor C10. The fourth end of the third switch Q3 is connected to the other end of the second voltage divider resistor R7. The fifth, sixth, seventh, and eighth ends of the third switch Q3 are grounded.
[0040] Specifically, according to an embodiment of the present invention, the surge protection circuit 120 of the bidirectional communication device 100 includes a TVS diode D1, a first voltage divider resistor R5, a second voltage divider resistor R7, a Zener diode D2, a first capacitor C10, and a third switch Q3. Through the cooperation of the TVS diode D1, the first voltage divider resistor R5, the second voltage divider resistor R7, the Zener diode D2, the first capacitor C10, and the third switch Q3, the surge protection circuit 120 can reduce the voltage surge during startup of the bidirectional communication device 100, helping to avoid damage to some components and ensuring the normal operation of the bidirectional communication device 100.
[0041] In one embodiment of the present invention, the bidirectional communication device 100 further includes: a first resistor R6, one end of the first resistor R6 being connected to the second end of the surge protection circuit 120, and the other end of the first resistor R6 being connected to the first end of the level switching circuit 110.
[0042] Specifically, according to the bidirectional communication device 100 of the present invention, a first resistor R6 is provided between the level switching circuit 110 and the surge protection circuit 120; thereby, filtering by the first resistor R6 can effectively ensure the safety of the bidirectional communication device 100.
[0043] In one embodiment of the present invention, the bidirectional communication device 100 further includes: a second capacitor C8, one end of which is connected to the second terminal of the surge protection circuit 120; and a third capacitor C3, one end of which is connected to the other end of the second capacitor, and the other end of which is grounded.
[0044] Specifically, according to the bidirectional communication device 100 of the present invention, a second capacitor C8 and a third capacitor C3 are connected in series between the second terminal and the ground terminal of the surge protection circuit 120; thus, filtering is performed by the series capacitors, and it can also be ensured that the other capacitor can still function when one capacitor is short-circuited, thereby effectively avoiding current surges that may interfere with or damage the device.
[0045] In one embodiment of the present invention, the bidirectional communication device 100 further includes: a fourth capacitor C1, one end of which is connected to the second signal port 300; and a fifth capacitor C9, one end of which is connected to the other end of the fourth capacitor, and the other end of which is grounded.
[0046] Specifically, according to the bidirectional communication device 100 of the present invention, a fourth capacitor C1 and a fifth capacitor C9 are connected in series between the second signal port 300 and the ground terminal; thus, filtering is performed by the series capacitors, and it can also be ensured that the other capacitor can still function when one capacitor is short-circuited, thereby effectively avoiding current surges that may interfere with or damage the device.
[0047] Figure 3 This is a structural block diagram of a two-way communication device according to yet another embodiment of the present invention. Figure 3 As shown, in one embodiment of the present invention, the bidirectional communication device 100 further includes a communication circuit 130, one end of which is connected to a second signal port 300 for receiving the target conversion voltage and communicating bidirectionally with the controller based on the target conversion voltage.
[0048] In a specific embodiment, the bidirectional communication device 100 further includes a communication circuit 130, one end of which is connected to the second signal port 300. The communication circuit 130 is used to receive the target conversion voltage and communicate bidirectionally with the controller based on the target conversion voltage. Specifically, the communication circuit 130 may include, for example, a 12V LIN communication circuit, and the controller may include, for example, an MCU.
[0049] Specifically, the bidirectional communication device 100 according to an embodiment of the present invention further includes a communication circuit 130. One end of the communication circuit 130 is connected to the second signal port 300. The communication circuit 130 is used to receive the target conversion voltage and communicate bidirectionally with the controller according to the target conversion voltage. In this way, reliable communication between different controllers can be ensured through bidirectional communication between the communication circuit 130 and the controller.
[0050] The following describes the bidirectional communication device of the above embodiments of the present invention in further detail with reference to a specific embodiment. In this specific embodiment, a bidirectional communication device 100 is provided.
[0051] Figure 4 This is a circuit diagram of a two-way communication device according to a specific embodiment of the present invention. Figure 5 This is a circuit diagram of a communication circuit according to a specific embodiment of the present invention. Figure 4 and Figure 5 As shown in this specific embodiment, the bidirectional communication device 100 includes a level switching circuit 110, a surge protection circuit 120, and a communication circuit 130. The communication circuit 130 communicates with the MCU, with a first signal port being a 48V_LIN input and a second signal port being a 12V_LIN output.
[0052] like Figure 4 As shown in this specific embodiment, the level switching circuit 110 consists of Q1 and Q2, controlled by 12V and 48V respectively. The driving resistor for 12V is R1, and the pull-up resistor is R2; the driving resistor for 48V is R9, and the pull-up resistor is R8. Through the communication switching of Q1 and Q2, the 48V and 12V levels can be switched to complete the differential voltage LIN communication.
[0053] like Figure 5 As shown, in this specific embodiment, the 12V communication circuit 130 is powered by the 12V VSUP. It receives the high and low levels of 0V and 12V from LIN. The LIN communication chip converts the high and low levels of 12V into communication with the MCU module via TX and RX. The communication circuit 130 includes an enable pin EN and a reset pin nRST. EN is pulled up to 12V, and nRST serves as a reset pin.
[0054] Figure 6This is a communication schematic diagram of a two-way communication device according to a specific embodiment of the present invention. Figure 6 As shown, in this specific embodiment, the circuit communication process of the bidirectional communication device 100 involves a surge protection circuit 120, a level switching circuit 110, a communication circuit 130, and an MCU. The communication circuit 130 includes a LIN communication chip. Specifically, the circuit communication process of the bidirectional communication device 100 includes: communication from left to right from 48V to 12V, communication from left to right from 0V to 0V, communication from right to left from 12V to 48V, and communication from right to left from 0V to 0V.
[0055] Figure 7 This is a schematic diagram of a two-way communication device according to a specific embodiment of the present invention, showing the communication from 48V to 12V from left to right. Figure 7 As shown in this specific embodiment, the communication of the bidirectional communication device 100 from left to right from 48V to 12V includes: when the level on the left side of the surge protection circuit 120 is a high level of 48V, the voltage at R6 is 48V. Since the base (B) and emitter (E) of Q2 are both 48V, the voltage difference between the two ends is approximately equal, so Q2 in the level switching circuit 110 is in the off state. At this time, the collector (C) of Q1 in the level switching circuit 110 is 48V, but since the base (B) of Q1 is 12V, and R2 acts as a pull-up resistor, the right side of the switching circuit is pulled high to 12V. Therefore, when the input is 48V, the output to the LIN communication chip is 12V, completing the conversion from a high level of 48V to a high level of 12V. At this time, neither Q1 nor Q2 is turned on, and the level is pulled up by the pull-up resistor.
[0056] Figure 8 This is a schematic diagram of a two-way communication device according to a specific embodiment of the present invention, showing the communication from left to right (0V to 0V). Figure 8 As shown in this specific embodiment, the communication from left to right (0V to 0V) of the bidirectional communication device 100 includes: when the level on the left side of the surge protection circuit 120 is 0V (low level), the R6 terminal is 0V. Since the base (B) of Q2 is 48V and the emitter (E) is also 0V, there is a voltage difference between the two ends greater than 0.7V. Therefore, Q2 in the level switching circuit 110 is in the open state. At this time, the collector (C) of Q1 in the level switching circuit 110 is 0V, and the base (B) of Q1 is 12V. R2 acts as a pull-up resistor, pulling the right side of the switching circuit high to 12V. The circuit to which Q1 belongs is not active at this time. Q2 is in the open state, and the 0V input will be directly pulled low to 0V due to the open state of Q2. Therefore, when the input is 0V, the output to the LIN communication chip is 0V, completing the transition from low level 0V to low level 0V. At this time, Q2 is open, Q1 is closed, and Q2 conducts to pull the level low.
[0057] Figure 9This is a schematic diagram of a two-way communication device according to a specific embodiment of the present invention, showing the communication voltage from 12V to 48V from right to left. Figure 9 As shown in this specific embodiment, the communication from right to left (12V to 48V) of the bidirectional communication device 100 includes: when the left side of the LIN communication chip is 12V, since the base (B) of Q1 is 12V and R2 acts as a pull-up resistor, the right side of the switching circuit is pulled high to 12V, and Q1 in the level switching circuit 110 is in the off state. Since the base (B) of Q2 is 48V, and the emitter (E) has a pull-up resistor R8, the voltage from the surge protection resistor to the LIN signal input terminal is 48V. At this time, Q2 is also not turned on, and the voltage is pulled up to 48V by R8 of Q2. Therefore, when the LIN communication chip outputs 12V, the output level to the left side of the surge protection circuit is 48V, completing the conversion from a high level of 12V to a high level of 48V from right to left. At this time, neither Q1 nor Q2 is turned on, and the level is pulled up by the pull-up resistor.
[0058] Figure 10 This is a schematic diagram of a two-way communication device according to a specific embodiment of the present invention, showing communication from right to left (0V to 0V). Figure 10 As shown in this specific embodiment, the communication from right to left (0V to 0V) of the bidirectional communication device 100 includes: When the level on the left side of the LIN communication chip is 0V (low level), since the base (B) of Q1 is 12V and the emitter (E) is also 0V, there is a voltage difference between the two ends greater than 0.7V. Therefore, Q1 in the level switching circuit 110 is in the open state. At this time, the collector (C) of Q2 in the level switching circuit 110 is 0V, and the base (B) of Q2 is 18V. With R8 as a pull-up resistor, the right side of the switching circuit is pulled high to 48V. The circuit to which Q2 belongs is not active at this time. Q1 is in the open state, and the 0V input will be directly pulled low to 0V due to the open state of Q1. Therefore, when the input is 0V, the output to the right side of the surge protection circuit is 0V, completing the transition from low level 0V to low level 0V. At this time, Q1 is open, Q2 is closed, and Q1 conducts to pull the level low.
[0059] In this specific embodiment, the surge protection circuit 120 obtains a voltage drop that allows Q3 to turn on through the Zener diode D2. The capacitor C10 is connected in parallel across the Zener diode. The capacitor C10 is used to filter the circuit and achieve soft start, which reduces the impact of the pulse voltage at the moment of power-on. This achieves soft start surge protection, prevents current surges, avoids damage to some components, and ensures the normal use of the switching power supply.
[0060] In this specific embodiment, when using the bidirectional communication device 100, since the input terminal of electronic devices typically has large-capacity energy storage and filtering capacitors, a large current will surge into the input capacitor at the moment of power-on. Such surge current will cause significant interference to the power supply, load, and other electrical equipment, and in severe cases, may lead to malfunction or even damage. In this bidirectional communication device 100, if one of the capacitors (C3 or C8) fails due to a short circuit, it is easy to overheat due to the short circuit overcurrent between the positive and negative terminals, thereby causing the circuit board to burn out. With the series capacitors in the bidirectional communication device 100, when one is short-circuited, the other is still functioning, thus better protecting the circuit from overcurrent and combustion.
[0061] In summary, in this specific embodiment, the bidirectional communication device 100 constructs a bidirectional communication circuit with level conversion isolation, which is compatible with the original 12V system's LIN communication. The circuit is simple, has a short delay time, and can greatly reduce costs. At the same time, by providing surge protection for the circuit, it can effectively avoid damage to the devices caused by current surges. Finally, by using series capacitors, it can be ensured that when one capacitor is short-circuited, the other capacitor can still function, thereby effectively preventing current surges from interfering with or damaging the device.
[0062] In summary, the bidirectional communication device 100 according to an embodiment of the present invention includes a level switching circuit 110. The first end of the level switching circuit 110 is connected to a first signal port 200, and the second end of the level switching circuit 110 is connected to a second signal port 300. The level switching circuit 110 is used to perform level conversion and output a target conversion signal based on the level output signal of the first signal port 200 or the second signal port 300 and the power supply voltage. Thus, the bidirectional communication device 100 can convert the levels between the first signal port 200 and the second signal port 300 using only the level switching circuit 110, establishing compatible bidirectional communication between the first signal port 200 and the second signal port 300. Therefore, the bidirectional communication device 100, through the level switching circuit 110, not only ensures reliable communication between different controllers and reduces communication latency, but also effectively reduces communication costs due to the simplicity of the circuit.
[0063] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example.
[0064] Although embodiments of the invention have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
Claims
1. A two-way communication device, characterized in that, include: A level switching circuit, wherein a first terminal of the level switching circuit is connected to a first signal port and a second terminal of the level switching circuit is connected to a second signal port, is used to perform level conversion and output a target conversion signal based on the level output signal of the first signal port or the second signal port and the power supply voltage.
2. The two-way communication device according to claim 1, characterized in that, Also includes: A surge protection circuit is provided, wherein the first terminal of the surge protection circuit is connected to the first signal port, the second terminal of the surge protection circuit is connected to the first terminal of the level switching circuit, and the third terminal of the surge protection circuit is grounded, for reducing the voltage surge when the bidirectional communication device is started.
3. The two-way communication device according to claim 2, characterized in that, The power supply voltage includes a first power supply voltage and a second power supply voltage, and the level switching circuit includes: A first level switching sub-circuit, wherein a first terminal of the first level switching sub-circuit is connected to a second terminal of the surge protection circuit, a second terminal of the first level switching sub-circuit is connected to a first power supply voltage, and a third terminal of the first level switching sub-circuit is connected to a second signal port, for use to turn on or off the output signal according to the level of the first power supply voltage and / or the second signal port; The second level switching sub-circuit has a first terminal connected to the first terminal of the first level switching sub-circuit, a second terminal connected to the fourth terminal of the first level switching sub-circuit, and a third terminal connected to the second power supply voltage. It is used to output a signal and / or turn on or off the power supply voltage according to the level of the first signal port.
4. The two-way communication device according to claim 3, characterized in that, The first level switching sub-circuit includes: The first switching transistor, whose collector is connected to the second terminal of the surge protection circuit, is used to turn on or off the output signal according to the first power supply voltage and / or the level of the second signal port. A first driving resistor, one end of which is connected to the base of a first switching transistor, and the other end of which is connected to the first power supply voltage; A first pull-up resistor, one end of which is connected to the other end of the first drive resistor, and the other end of which is connected to the emitter of the first switching transistor.
5. The two-way communication device according to claim 3, characterized in that, The second level switching sub-circuit includes: The second switching transistor, whose emitter is connected to the second terminal of the surge protection circuit, is used to turn on or off the circuit according to the level of the first signal port and / or the second power supply voltage. The second driving resistor has one end connected to the base of the second switching transistor and the other end connected to the second power supply voltage. The second pull-up resistor has one end connected to the other end of the second drive resistor, and the other end connected to the emitter of the second switch transistor.
6. The two-way communication device according to claim 2, characterized in that, The surge protection circuit includes: A TVS diode, one end of which is connected to the first signal port, and the other end of which is grounded; A first voltage divider resistor, one end of which is connected to the first signal port; The second voltage divider resistor has one end connected to the other end of the first voltage divider resistor; A Zener diode, wherein the cathode of the Zener diode is connected to the other end of the first voltage divider resistor or one end of the second voltage divider resistor; A first capacitor, one end of which is connected to the cathode of the Zener diode, and the other end of which is connected to the anode of the Zener diode; The third switch has its first, second, and third terminals connected to the other end of the first capacitor, its fourth terminal connected to the other end of the second voltage divider resistor, and its fifth, sixth, seventh, and eighth terminals grounded.
7. The two-way communication device according to claim 2, characterized in that, Also includes: A first resistor, one end of which is connected to the second terminal of the surge protection circuit, and the other end of which is connected to the first terminal of the level switching circuit.
8. The two-way communication device according to claim 2, characterized in that, Also includes: A second capacitor, one end of which is connected to the second terminal of the surge protection circuit; A third capacitor, one end of which is connected to the other end of the second capacitor, and the other end of which is grounded.
9. The two-way communication device according to claim 2, characterized in that, Also includes: A fourth capacitor, one end of which is connected to the second signal port; The fifth capacitor has one end connected to the other end of the fourth capacitor, and the other end of the fifth capacitor is grounded.
10. The two-way communication device according to claim 1, characterized in that, Also includes: A communication circuit, one end of which is connected to the second signal port, is used to receive the target conversion voltage and communicate bidirectionally with the controller based on the target conversion voltage.