Control method for vehicle communication system, and vehicle communication system
By using the bus signal unit to judge the communication signal and control the output level in the vehicle communication system, the problem that K-line and first-line communication signals cannot be shared transmission is solved, and a wiring solution with lower cost and space efficiency is realized.
Patent Information
- Application Number
- PCT/CN2024/081793
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-11-27
- Filing Date
- 2024-03-15
- Publication Date
- 2025-06-05
AI Technical Summary
In the prior art, the communication signals between K-line and first-line cannot be transmitted using the same signal line, resulting in increased line setting costs and large wiring space.
By determining whether the K-line input unit and the first-line input unit have communication signals at the same time, and controlling the K-line output unit and the first-line output unit to output corresponding level values according to the level value of the bus voltage, so as to realize the shared transmission of the K-line and the first-line signal.
It realizes that using one signal line can transmit communication signals between K-line and first-line, reducing wiring costs and space requirements.
Smart Images

Figure CN2024081793_05062025_PF_FP_ABST
Abstract
Description
A control method for a vehicle communication system and a vehicle communication system Technical Field
[0001] Embodiments of the present invention relate to the field of communication technology, and in particular to a control method for a vehicle communication system and a vehicle communication system. Background Art
[0002] The K-line is a special line for data transmission between the control unit and the diagnostic instrument of the car. The one-line is used to transmit the faults of the electric vehicle to the LCD display. In current vehicles, the signal transmission of the K-line and the one-line is completed using a separate signal line. However, due to the different communication protocols of the K-line and the one-line, the K-line and the one-line need to set up their own signal lines respectively. This requires two signal lines to transmit the communication information of the K-line and the one-line respectively, which increases the line setting cost and also increases the wiring space of the control line.
[0003] Summary of the Invention
[0004] The embodiments of the present invention provide a control method and a vehicle communication system, which solve the technical problems in the prior art that K-line and one-line communication signals cannot be transmitted using the same signal line, resulting in increased line setting costs and a large wiring space.
[0005] In a first aspect, an embodiment of the present invention provides a vehicle communication system, wherein the vehicle communication system executes the vehicle communication system control method described in any of the above embodiments, wherein the communication circuit system includes a K-line input unit, a K-line output unit, a one-line input unit, a one-line output unit, and a bus signal unit;
[0006] The K-line input unit, the K-line output unit, the one-line input unit and the one-line output unit are all electrically connected to the bus signal unit;
[0007] The bus signal unit is used to determine whether the K-line input unit and the one-line input unit have communication signals at the same time, and to determine whether the bus voltage is at the first level when the communication signals are present at the same time;
[0008] The K-line output unit is configured to output a second level when the bus signal unit determines that the bus voltage is at the first level, or to output a second level or a third level when the bus signal unit determines that the bus voltage is not at the first level.
[0009] The one-line output unit is configured to output a second level when the bus signal unit determines that the bus voltage is at the first level, or to output a third level when the bus signal unit determines that the bus voltage is not at the first level, wherein the first level is greater than the second level, and the second level is greater than the third level;
[0010] The one-line output unit is further configured to detect an output interval of the third level. If the output interval is less than the first interval, the one-line output unit outputs the second level. If the output interval is equal to the second interval, the one-line output unit outputs the third level.
[0011] In a second aspect, an embodiment of the present invention further provides a method for controlling a vehicle communication system. The vehicle communication system according to any embodiment of the first aspect executes the method for controlling the vehicle communication system, and the method includes:
[0012] The bus signal unit determines whether the K-line input unit and the one-line input unit have communication signals at the same time;
[0013] If the K-line input unit has a K-line communication signal and the one-line input unit has a one-line communication signal, the bus signal unit determines whether the bus voltage is at a first level;
[0014] If the bus signal unit determines that the bus voltage is at the first level, the K-line output unit outputs a second level, and the one-line output unit outputs a second level, wherein the first level is greater than the second level;
[0015] If the bus signal unit determines that the bus voltage is not at the first level, the K-line output unit outputs a second level or a third level, and the one-line output unit outputs a third level, wherein the second level is greater than the third level;
[0016] The one-line output unit detects an output interval time of outputting the third level;
[0017] If the output interval is less than the first interval, the one-line output unit outputs the second level;
[0018] If the output interval is equal to the second interval, the one-line output unit outputs the third level.
[0019] In a third aspect, an embodiment of the present invention further provides a driving device, which includes the vehicle communication system described in any embodiment of the first aspect.
[0020] An embodiment of the present invention discloses a control method for a vehicle communication system and a vehicle communication system. When it is determined that a K-line input unit and a one-line input unit simultaneously have communication signals, the K-line output unit and the one-line output unit are controlled to output their respective corresponding level values according to the level value of the bus voltage transmitted by the bus signal unit. This solves the technical problems in the prior art of increased line setting costs and large wiring space caused by the inability to use the same signal line for transmission of the K-line and one-line communication signals. This achieves the technical effect of using one signal line to transmit the K-line and one-line communication signals, and of complementary interference between the two signals, thereby reducing wiring costs and reducing wiring space. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] FIG1 is a structural diagram of a vehicle communication system provided by an embodiment of the present invention;
[0022] FIG2 is a waveform diagram of a K-line communication signal provided by an embodiment of the present invention;
[0023] FIG3 is a waveform diagram of a one-line communication signal provided by an embodiment of the present invention;
[0024] 4 is a schematic diagram of the interval time when the one-line output unit outputs the third level according to an embodiment of the present invention;
[0025] 5 is a waveform diagram of a bus provided by an embodiment of the present invention when only one-line communication signals are transmitted;
[0026] 6 is a waveform diagram of a bus provided in an embodiment of the present invention when only K-line communication signals are transmitted;
[0027] 7 is a waveform diagram of both a K-line communication signal and a one-line communication signal on the bus provided by an embodiment of the present invention;
[0028] FIG8 is a circuit diagram of a vehicle communication system provided by an embodiment of the present invention;
[0029] 9 is a waveform diagram of a bus idle state according to an embodiment of the present invention;
[0030] FIG10 is a flowchart of a method for controlling a vehicle communication system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0031] The present invention will be further described in detail below with reference to the accompanying drawings and examples. It will be understood that the specific embodiments described herein are intended only to illustrate the present invention and are not intended to limit the present invention. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions relevant to the present invention, not all structures.
[0032] It should be noted that the terms "first," "second," and so on, in the specification, claims, and drawings of the present invention are used to distinguish different objects, and are not intended to limit a specific order. The following embodiments of the present invention can be implemented independently or in combination with each other, and the present invention does not impose specific limitations on this.
[0033] Figure 1 is a structural diagram of a vehicle communication system according to an embodiment of the present invention. Figure 2 is a waveform diagram of a K-line communication signal according to an embodiment of the present invention. Figure 3 is a waveform diagram of a one-line communication signal according to an embodiment of the present invention.
[0034] As shown in Figure 1, the vehicle communication system includes a K-line input unit 10, a K-line output unit 20, a one-line input unit 30, a one-line output unit 40 and a bus signal unit 50; the K-line input unit 10, the K-line output unit 20, the one-line input unit 30 and the one-line output unit 40 are all electrically connected to the bus signal unit 50.
[0035] The bus signal unit 50 is used to determine whether communication signals are simultaneously present in the K-line input unit 10 and the one-line input unit 30 , and to determine whether the bus voltage is at a first level when communication signals are simultaneously present.
[0036] The K-line output unit 20 is used to output the second level when the bus signal unit 50 determines that the bus voltage is at the first level, or to output the second level or the third level when the bus signal unit 50 determines that the bus voltage is not at the first level.
[0037] The one-line output unit 40 is used to output a second level when the bus signal unit 50 determines that the bus voltage is at the first level, or to output a third level when the bus signal unit 50 determines that the bus voltage is not at the first level, wherein the first level is greater than the second level, and the second level is greater than the third level.
[0038] The one-line output unit 40 is further configured to detect an output interval of the third level. If the output interval is less than the first interval, the one-line output unit 40 outputs the second level. If the output interval is equal to the second interval, the one-line output unit 40 outputs the third level.
[0039] Specifically, the high level of the K-line communication signal is 5V and the low level is 0V, as shown in Figure 2; the high level of the one-line K-line communication signal is also 5V and the low level is 0V, as shown in Figure 3. In order to distinguish the K-line communication signal and the one-line communication signal when they are transmitted simultaneously on a line and accurately transmit them to the corresponding output port, the bus signal unit 50 first needs to determine whether the K-line communication signal and the one-line communication signal exist simultaneously on the line.
[0040] For example, the first level is 12V, the second level is 5V, and the third level is 0V. When the bus signal unit 50 determines that there are communication signals in the K-line input unit 10 and the one-line input unit 30 at the same time, it indicates that there are two communication signals in the line at the same time. Therefore, the bus signal unit 50 needs to determine whether the bus voltage output by itself is 12V at this time; it should be noted that the bus voltage on the bus signal unit 50 is determined by the level of the K-line communication signal and the one-line communication signal.
[0041] If the bus voltage is 12V at this time, the K-line output unit 20 outputs 5V and the one-line output unit 40 also outputs 5V; if the bus voltage is not 12V at this time, the K-line output unit 20 outputs 5V or 0V, and its output value is determined based on the output value of the bus voltage, and the one-line output unit 40 outputs 0V.
[0042] It should be noted that, since the bus voltage on the bus is constantly switching when the one-line communication signal is transmitted, when the one-line output unit 40 outputs 0V, it is necessary to determine whether the bus voltage is 5V or 0V. Therefore, the one-line output unit 40 needs to detect the output interval of 0V in real time. Figure 4 is a schematic diagram of the interval time when the one-line output unit according to an embodiment of the present invention outputs the third level. Referring to Figure 4, since the communication baud rate of the K-line is 115200 bps, the maximum interval time T1 of the K-line low level (i.e., the first interval time described below) is calculated based on the K-line baud rate to be approximately 0.08 ms. The calculation process is as follows:
[0043] BitTime = 1 / 115200s;
[0044] T1 = BitTime * 9;
[0045] T1=0.000078125s.
[0046] The communication baud rate of the one-line communication is 500bps. The minimum low-level time interval T2 of the one-line communication (i.e., the second interval time mentioned below) is the time interval when the SIF logic is "1", which is approximately 0.5ms±0.01. The calculation process is as follows:
[0047] BitTime = 1 / 500s;
[0048] BitTime=BitTimeLow+BitTimeHigh;
[0049] BitTimeLow=BitTime*1 / 4;
[0050] T2 = BitTimeLow;
[0051] T2=0.5ms±0.01.
[0052] Therefore, we can judge whether the low level at this time is a one-line communication signal or a K-line communication signal based on the low level time of T1 and T2. If it is the T1 low level time interval of the K-line, it can be ignored during analysis.
[0053] Specifically, if the detected output interval is less than the first interval T1, that is, less than 0.08ms, it indicates that the low level at this time is a K-line communication signal, and the one-line output unit 40 outputs a high level 5V. If the output interval is equal to the second interval T2, that is, equal to 0.5ms±0.01, it indicates that the low level at this time is a one-line communication signal, and the one-line output unit 40 outputs a low level 0V.
[0054] In summary, for the vehicle communication system provided in the embodiments of the present application:
[0055] (1) The one-line communication signal includes a high level of 5V and a low level of 0V. If there is only one-line communication signal in the bus line, when the one-line communication signal is at a high level of 5V, the bus voltage is pulled up to 12V, and when the one-line communication signal is at a low level of 0V, the bus voltage is pulled up to 5V. FIG5 is a waveform diagram of the bus provided by an embodiment of the present invention when only the one-line communication signal is transmitted. Referring to FIG5 , when there is only one-line communication signal on the bus, the waveform diagram of the one-line communication signal transmitted by the bus is shown in FIG5 .
[0056] (2) The K-line communication signal also includes a high level of 5V and a low level of 0V. If there is only the K-line communication signal in the bus line, when the K-line communication signal is at a high level of 5V, the bus voltage is pulled up to 12V, and when the K-line communication signal is at a low level of 0V, the bus voltage is pulled up to 0V. FIG6 is a waveform diagram of the bus provided by an embodiment of the present invention when only the K-line communication signal is transmitted. Referring to FIG6 , when there is only the K-line communication signal on the bus, the waveform diagram of the K-line communication signal transmitted by the bus is shown in FIG6 .
[0057] (3) If there are both K-line communication signals and one-line communication signals in the bus line, the bus voltage on the bus will continuously switch when the one-line communication signal is working. When the K-line communication signal is at a high level of 5V, the bus voltage may be 12V or 5V. When the K-line communication signal is at a low level of 0V, the bus voltage is 0V. That is, it is a mixed waveform at this time, similar to a carrier signal. Figure 7 is a waveform diagram of both the K-line communication signal and the one-line communication signal on the bus provided by an embodiment of the present invention. Referring to Figure 7, when the bus voltage is 12V, the one-line communication signal is 5V, and the K-line communication signal is 5V; when the bus voltage is 5V, the one-line communication signal is 0V, and the K-line communication signal is 5V; when the bus voltage is 0V, the one-line communication signal is 0V, and the K-line communication signal is 0V; and when the one-line communication signal is 0V, it is necessary to determine whether the bus voltage is 5V or 0V, that is, the above-mentioned determination process is performed by outputting the interval time. If the determination result is that the output interval time is less than 0.08ms, it indicates that the low level output by the bus at this time is the K-line communication signal, and the one-line communication signal is a high level 5V at this time.
[0058] The embodiment of the present invention controls the K-line output unit and the one-line output unit to output their respective corresponding level values according to the level value of the bus voltage transmitted by the bus signal unit when it is determined that the K-line input unit and the one-line input unit have communication signals at the same time. This solves the technical problems in the prior art that the communication signals of the K-line and the one-line cannot be transmitted using the same signal line, resulting in increased line setting costs and a large wiring space. This achieves the technical effect of using one signal line to transmit the communication signals of the K-line and the one-line, and of the two signals complementary interference, thereby reducing wiring costs and reducing wiring space.
[0059] FIG8 is a circuit diagram of a vehicle communication system provided by an embodiment of the present invention.
[0060] Optionally, as shown in FIG8 , the K-line input unit 10 includes a K-line input port K_IO_IN, a first resistor R1 , a second resistor R2 , a third resistor R3 , a fourth resistor R4 , a first transistor T1 , and a second transistor T2 .
[0061] The K-line output unit 20 includes a K-line output port K_IO_OUT, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, a ninth resistor R9, a third transistor T3, a fourth transistor T4, a first capacitor C1, and a second capacitor C2.
[0062] The K-line input port K_IO_IN is electrically connected to the first power supply VCC1 through the first resistor R1, and the K-line input port K_IO_IN is electrically connected to the base of the first transistor T1 through the second resistor R2; the emitter of the first transistor T1 is grounded GND, and the collector of the first transistor T1 is electrically connected to the second power supply VCC2 through the third resistor R3; the base of the second transistor T2 is electrically connected to the collector of the first transistor T1 through the fourth resistor R4, the emitter of the second transistor T2 is grounded GND, and the collector of the second transistor T2 is electrically connected to the bus signal unit 50 and the first end of the fifth resistor R5, respectively.
[0063] The second end of the fifth resistor R5 is electrically connected to the base of the third triode T3, the emitter of the third triode T3 is grounded GND, and the collector of the third triode T3 is electrically connected to the third power supply VCC3 through the sixth resistor R6; the base of the fourth triode T4 is electrically connected to the collector of the third triode T3 through the seventh resistor R7, the emitter of the fourth triode T4 is grounded GND, and the collector of the fourth triode T4 is electrically connected to the fourth power supply VCC4 through the eighth resistor R8; the collector of the fourth triode T4 is electrically connected to the K-line output port K_IO_OUT; the ninth resistor R9 is connected in parallel between the base and emitter of the third triode T3; the first end of the first capacitor C1 is electrically connected to the first end of the fifth resistor R5, and the second end of the first capacitor C1 is electrically connected to the emitter of the third triode T3; the first end of the second capacitor C2 is electrically connected to the collector of the third triode T3, and the second end of the second capacitor C2 is grounded GND.
[0064] Optionally, as shown in FIG8 , the one-line input unit 30 includes a one-line input port Y_IO_IN, a tenth resistor R10 , an eleventh resistor R11 , a twelfth resistor R12 , a thirteenth resistor R13 , a fifth transistor T5 , a first switch Q1 , and a second switch Q2 .
[0065] The one-line output unit 40 includes a one-line output port Y_IO_OUT, a fourteenth resistor R14, a fifteenth resistor R15, a sixteenth resistor R16, a seventeenth resistor R17, an eighteenth resistor R18, a sixth transistor T6, a seventh transistor T7, a third capacitor C3, and a fourth capacitor C4.
[0066] The one-line input port Y_IO_IN is electrically connected to the base of the fifth transistor T5 via a tenth resistor R10. The emitter of the fifth transistor T5 is grounded GND, and the collector of the fifth transistor T5 is electrically connected to the fifth power supply VCC5 via an eleventh resistor R11. A first end of a twelfth resistor R12 is electrically connected to the one-line input port Y_IO_IN, and a second end of the twelfth resistor R12 is electrically connected to the fifth power supply VCC5. The gate of the first switch Q1 is electrically connected to the collector of the fifth transistor T5, the source of the first switch Q1 is grounded GND, and the drain of the first switch Q1 is electrically connected to the gates of the bus signal unit 50 and the second switch Q2, respectively. A thirteenth resistor R13 is connected in parallel between the gate and source of the first switch Q1. The source of the second switch Q2 is grounded GND, and the drain of the second switch Q2 is electrically connected to the bus signal unit 50.
[0067] The one-line output port Y_IO_OUT is electrically connected to the sixth power supply VCC6 through the fourteenth resistor R14, the one-line output port Y_IO_OUT is electrically connected to the collector of the sixth transistor T6, the emitter of the sixth transistor T6 is grounded GND, the collector of the sixth transistor T6 is electrically connected to the collector of the seventh transistor T7 through the fifteenth resistor R15; the collector of the seventh transistor T7 is electrically connected to the seventh power supply VCC7 through the sixteenth resistor R16, and the emitter of the seventh transistor T7 is grounded GND, the base of the seventh transistor T7 is electrically connected to the bus signal unit 50 through the seventeenth resistor R17; the eighteenth resistor R18 is connected in parallel between the base and the emitter of the seventh transistor T7; the first end of the third capacitor C3 is electrically connected to the collector of the seventh transistor T7, and the second end of the third capacitor C3 is grounded GND; the first end of the fourth capacitor C4 is electrically connected to the end of the seventeenth resistor R17 away from the base of the seventh transistor T7, and the second end of the fourth capacitor C4 is electrically connected to the emitter of the seventh transistor T7.
[0068] Optionally, as shown in FIG8 , the bus signal unit 50 includes a bus power port V_OUT, a nineteenth resistor R19 , a twentieth resistor R20 , a twenty-first resistor R21 , a twenty-second resistor R22 , a first diode D1 , a third switch Q3 , a fourth switch Q4 and a fifth capacitor C5 .
[0069] The bus power port V_OUT is electrically connected to the anode of the first diode D1 , the cathode of the first diode D1 is grounded GND via the nineteenth resistor R19 , and the cathode of the first diode D1 is electrically connected to the K-line input unit 10 via the twentieth resistor R20 .
[0070] The source of the third switch tube Q3 is electrically connected to the eighth power supply VCC8, the drain of the third switch tube Q3 is electrically connected to the bus power port V_OUT, and the gate of the third switch tube Q3 is electrically connected to the one-line input unit 30; the twenty-first resistor R21 is connected in parallel between the source and gate of the third switch tube Q3.
[0071] The source of the fourth switch tube Q4 is electrically connected to the ninth power supply VCC9, the drain of the fourth switch tube Q4 is electrically connected to the bus power port V_OUT, and the gate of the fourth switch tube Q4 is electrically connected to the one-line input unit 30. The twenty-second resistor R22 is connected in parallel between the source and gate of the fourth switch tube Q4.
[0072] A first end of the fifth capacitor C5 is electrically connected to the bus power port V_OUT, and a second end of the fifth capacitor C5 is grounded GND.
[0073] Specifically, referring to Figure 8, when there is only the K-line communication signal in the line:
[0074] When the K line communication signal is high level 5V, the K line input port K_IO_IN inputs high level 5V, the first power supply VCC1 When the bus voltage Vout is +5V and the second power supply VCC2 is +5V, the first transistor T1 is turned on, the voltage at the collector of the first transistor T1 is pulled to ground, and the base of the second transistor T2 is 0V. When the second transistor T2 is turned off, the voltage at the twentieth resistor R20 is the bus voltage Vout, which is determined by the eighth power supply VCC8 of +5V and the ninth power supply VCC9 of +12V. When the second transistor T2 is turned off and the bus voltage Vout is 12V, the third switch tube T3 is turned on, the voltage at the seventh resistor R7 is 0V, and the base of the fourth switch tube T4 is 0V. When the fourth switch tube T4 is turned off, the third power supply VCC3 is +5V, and the fourth power supply VCC4 is +5V. The fourth power supply VCC4 pulls up the voltage at the collector of the fourth switch tube T4 to 5V through the eighth resistor R8, and the K-line output port K_IO_OUT ultimately outputs 5V.
[0075] When the K-line communication signal is at a low level of 0V, the K-line input port K_IO_IN inputs a low level of 0V, the first power supply VCC1 is +5V, the second power supply VCC2 is +5V, the first transistor T1 is turned off, and the voltage at the collector of the first transistor T1 is pulled up to 5V by the second power supply VCC2 through the third resistor R3. The base of the second transistor T2 is 5V, and the second transistor T2 is turned on. The voltage at the twentieth resistor R20 is 0V, and the voltage at the base of the third switch tube T3 is 0V. The third switch tube is turned off, and the voltage at the seventh resistor R7 is pulled up to 5V by the third power supply VCC3. The base of the fourth switch tube T4 is 5V, and the fourth switch tube T4 is turned on. The voltage at the collector of the fourth switch tube T4 is pulled down to ground, which is 0V, and the K-line output port K_IO_OUT finally outputs 0V.
[0076] Specifically, referring to FIG8 , when there is only one communication signal in the line:
[0077] When the one-line communication signal is at a high level of 5V, the one-line input port Y_IO_IN inputs a high level of 5V, the fifth power supply VCC5 is at +5V, the fifth transistor T5 is turned on, and the voltage of the collector of the fifth transistor T5 is pulled to ground, which is 0V. Then, the gate of the first switch tube Q1 is 0V, the first switch tube Q1 is in a high-impedance state, the first switch tube Q1 is turned off, and the drain of the first switch tube Q1 is pulled up to 5V by the eighth power supply VCC8. Then, the gates of the second switch tube Q2 and the third switch tube Q3 are both at 5V, the third switch tube Q3 is turned off, the second switch tube Q2 is turned on, and the drain of the second switch tube Q2 is pulled to ground, which is 0V. The gate of the fourth switch tube Q4 is 0V, the fourth switch tube Q4 is turned on, the ninth power supply VCC9 pulls up the bus voltage Vout to 12V, and after being divided by the seventeenth resistor R17 and the eighteenth resistor R18, enters the seventh transistor T7, so that the seventh transistor T7 is turned on. The collector of the seventh transistor T7 is pulled down to ground and is 0V, then the sixth transistor T6 is turned off, the sixth power supply VCC6 is +5V, the seventh power supply VCC7 is +5V, and the sixth power supply VCC6 pulls up the voltage of the collector of the sixth transistor T6 to 5V through the fourteenth resistor R14. Then, the one-line output port Y_IO_OUT finally outputs 5V.
[0078] When the one-line communication signal is at a low level of 0V, the one-line input port Y_IO_IN inputs a low level of 0V, the fifth transistor T5 is turned off, and the gate of the first switch tube Q1 is pulled up to 5V by the fifth power supply VCC5, the first switch tube Q1 is turned on, and the drain voltage of the first switch tube Q1 is pulled down to ground, which is 0V. Then the gate of the second switch tube Q2 and the gate of the third switch tube Q3 are both 0V, the third switch tube Q3 is turned on, the second switch tube Q2 is turned off, the third switch tube Q3 is turned on, and the gate of the fourth switch tube Q4 is pulled up to 5V by the fifth power supply VCC5. The ninth power supply VCC9 is pulled up to 12V, the fourth switch tube Q4 is turned off, and the eighth power supply VCC8 pulls up the bus voltage Vout to 5V. After being divided by the seventeenth resistor R17 and the eighteenth resistor R18, the bus voltage enters the seventh transistor T7, causing the seventh transistor T7 to be turned off. The collector of the seventh transistor T7 is pulled up to 5V by the seventh power supply VCC7, and the sixth transistor T6 is turned on. The voltage of the collector of the sixth transistor T6 is pulled to ground, which is 0V. Then, the one-line output port Y_IO_OUT finally outputs 0V.
[0079] 9 is a waveform diagram of the bus idle when the embodiment of the present invention provides, referring to FIG9, when there is neither a K-line communication signal nor a one-line communication signal in the line, the bus is idle and the bus voltage is a high level 12V.
[0080] Specifically, referring to Figure 8, when there are both K-line communication signals and one-line communication signals in the line, if the bus voltage is 12V, the one-line communication signal output is 5V, and the K-line communication signal output is 5V; if the bus voltage is 5V, the one-line communication signal output is 0V, and the K-line communication signal output is 5V; if the bus voltage is 0V, the one-line communication signal output is 0V, and the K-line communication signal output is 0V; when the one-line communication signal output is 0V, it is necessary to determine whether the bus voltage is 5V or 0V, that is, use the above-mentioned judgment process through the output interval time, which will not be repeated here.
[0081] FIG10 is a flowchart of a method for controlling a vehicle communication system according to an embodiment of the present invention.
[0082] As shown in FIG10 , the control method of the vehicle communication system specifically includes the following steps:
[0083] S101, the bus signal unit determines whether the K-line input unit and the one-line input unit have communication signals at the same time.
[0084] Specifically, the high level of the K-line communication signal is 5V, and the low level is 0V. The high level of the one-line K-line communication signal is also 5V, and the low level is also 0V. In order to identify the two signals when the K-line communication signal and the one-line communication signal are transmitted simultaneously in one line, and accurately transmit them to the corresponding output port, the bus signal unit first determines whether the K-line communication signal and the one-line communication signal exist in the line at the same time.
[0085] S102: If the K-line input unit has a K-line communication signal and the one-line input unit has a one-line communication signal, the bus signal unit determines whether the bus voltage is at a first level.
[0086] Specifically, when there is a K-line communication signal in the K-line input unit and a one-line communication signal in the one-line input unit at the same time, the K-line communication signal and the one-line communication signal will be transmitted to the bus signal unit together. At this time, it is necessary to determine whether the bus voltage output by the bus signal unit is pulled up to the first level 12V.
[0087] S103 , if the bus signal unit determines that the bus voltage is at the first level, the K-line output unit outputs the second level, and the one-line output unit outputs the second level, wherein the first level is greater than the second level.
[0088] Specifically, if the bus voltage is pulled up to the first level 12V, referring to the circuit diagram shown in FIG6 , the K-line output unit outputs the second level 5V, and the one-line output unit outputs the second level 5V.
[0089] S104 , if the bus signal unit determines that the bus voltage is not at the first level, the K-line output unit outputs the second level or the third level, and the one-line output unit outputs the third level, wherein the second level is greater than the third level.
[0090] Specifically, if the judgment result at this time is that the bus voltage is not the first level 12V, the one-line output unit outputs the third level 0V, and the K-line output unit outputs the second level 5V or the third level 0V. Specifically, when the bus voltage is the second level 5V, the K-line output unit outputs the second level 5V, and when the bus voltage is the third level 0V, the K-line output unit outputs the third level 0V.
[0091] S105 , the one-line output unit detects an output interval time of outputting the third level.
[0092] Specifically, since the bus voltage may be 5V or 0V when the one-line output unit outputs the third level 0V, in order to ensure the accuracy of the signal transmission, the one-line output unit needs to detect the output interval time of the third level 0V in real time to determine whether the low level 0V at this time is a one-line communication signal or a K-line communication signal.
[0093] S106: If the output interval is less than the first interval, the one-line output unit outputs a second level.
[0094] S107 , if the output interval is equal to the second interval, the one-line output unit outputs a third level.
[0095] Specifically, if the detected output interval is less than the first interval T1, that is, less than 0.08ms, it indicates that the low level 0V at this time is a K-line communication signal, and the one-line output unit outputs the second level 5V. If the output interval is equal to the second interval T2, that is, equal to 0.5ms±0.01, it indicates that the low level 0V at this time is a one-line communication signal, and the one-line output unit outputs the third level 0V.
[0096] Optionally, as shown in FIG10 , the control method of the vehicle communication system further includes:
[0097] S108: If only the K-line input unit has the K-line communication signal, the bus signal unit determines whether the bus voltage is at the first level or the second level.
[0098] S109 , if the bus voltage is at the first level or the second level, the K line input unit outputs the second level.
[0099] S110 , if the bus voltage is neither the first level nor the second level, the K line input unit outputs a third level.
[0100] Specifically, if there is only a K-line communication signal in the bus line, when the bus voltage is the first level 12V or the second level 5V, the K-line communication signal outputs the second level 5V; when the bus voltage is neither the first level 12V nor the second level 5V, that is, when the bus voltage is the third level 0V, the K-line communication signal outputs the third level 0V.
[0101] Optionally, as shown in FIG10 , the control method of the vehicle communication system further includes:
[0102] S111 , if only the one-line input unit has a one-line communication signal, the bus signal unit determines whether the bus voltage is at a first level.
[0103] S112: If the bus voltage is at the first level, the one-line output unit outputs a second level.
[0104] S113 , if the bus voltage is not at the first level, the one-line output unit outputs a third level.
[0105] Specifically, if there is only one-line communication signal in the bus line, when the bus voltage is the first level 12V, the one-line output unit outputs the second level 5V; when the bus voltage is not the first level 12V, that is, when the bus voltage is the second level 5V or the third level 0V, the one-line output unit outputs the third level 0V.
[0106] Optionally, as shown in FIG7 , the control method of the vehicle communication system further includes:
[0107] S114 , if the K-line input unit does not have a K-line communication signal, and simultaneously the one-line input unit does not have a one-line communication signal, the bus signal unit outputs the bus voltage at a first level.
[0108] Specifically, when there is neither a K-line communication signal nor a one-line communication signal in the line, the bus is idle, and the bus voltage is a first level of 12V.
[0109] Optionally, before determining whether communication signals are simultaneously present in the K-line input unit and the one-line input unit in S101, the control method further includes:
[0110] The bus signal unit determines whether there is a bus signal for transmission on the bus; if so, the bus signal unit outputs the bus voltage at a first level; if not, the bus signal unit executes the step of determining whether there are communication signals in the K-line input unit and the one-line input unit at the same time.
[0111] Specifically, before the bus signal unit determines whether there are communication signals in the K-line input unit and the one-line input unit at the same time, it is also necessary to determine whether there is a bus signal transmitted on the bus. If there is a bus signal transmitted, it indicates that the bus is in a non-idle state at this time, and the bus voltage continues to output the first level 12V. If there is no bus signal, it indicates that the bus is in an idle state at this time, and S101 needs to be further executed.
[0112] The control method of the vehicle communication system provided in the embodiment of the present invention is executed by the vehicle communication system in the above embodiment. Therefore, the control method of the vehicle communication system provided in the embodiment of the present invention also has the beneficial effects described in the above embodiment, which will not be repeated here.
[0113] An embodiment of the present invention further provides a driving device, which includes the vehicle communication system in any of the above embodiments.
[0114] The driving device provided by the embodiment of the present invention includes the vehicle communication system in the above embodiment. Therefore, the driving device provided by the embodiment of the present invention also has the beneficial effects described in the above embodiment, which will not be repeated here.
[0115] In the description of the embodiments of the present invention, unless otherwise expressly specified or limited, the terms "mounted," "connected," and "connected" should be understood in a broad sense. For example, they may refer to fixed, detachable, or integral connections; mechanical or electrical connections; direct or indirect connections through an intermediate medium; and internal communication between two components. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on specific circumstances.
[0116] Finally, it should be noted that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the scope of the present invention. The scope of the present invention is determined by the scope of the appended claims.
Claims
1. A vehicle communication system, characterized in that: The vehicle communication system includes a K-line input unit, a K-line output unit, a one-line input unit, a one-line output unit and a bus signal unit; The K-line input unit, the K-line output unit, the one-line input unit and the one-line output unit are all electrically connected to the bus signal unit; The bus signal unit is used to determine whether the K-line input unit and the one-line input unit have communication signals at the same time, and to determine whether the bus voltage is at the first level when the communication signals exist at the same time; The K-line output unit is used to output the second level when the bus signal unit determines that the bus voltage is at the first level, or to output the second level or the third level when the bus signal unit determines that the bus voltage is not at the first level; The one-line output unit is used to output a second level when the bus signal unit determines that the bus voltage is at the first level, or to output a third level when the bus signal unit determines that the bus voltage is not at the first level, wherein the first level is greater than the second level, and the second level is greater than the third level; The one-line output unit is further used to detect an output interval time of outputting the third level. If the output interval time is less than the first interval time, the one-line output unit outputs the second level. If the output interval time is equal to the second interval time, the one-line output unit outputs the third level.
2. The vehicle communication system according to claim 1, characterized in that: The K-line input unit includes a K-line input port, a first resistor, a second resistor, a third resistor, a fourth resistor, a first transistor and a second transistor; The K-line output unit includes a K-line output port, a fifth resistor, a sixth resistor, a seventh resistor, an eighth resistor, a ninth resistor, a third transistor, a fourth transistor, a first capacitor, and a second capacitor; The K-line input port is electrically connected to the first power supply through the first resistor, and the K-line input port is electrically connected to the base of the first transistor through the second resistor; the emitter of the first transistor is grounded, and the collector of the first transistor is electrically connected to the second power supply through the third resistor; the base of the second transistor is electrically connected to the collector of the first transistor through the fourth resistor, the emitter of the second transistor is grounded, and the collector of the second transistor is electrically connected to the bus signal unit and the first end of the fifth resistor respectively; The second end of the fifth resistor is electrically connected to the base of the third triode, the emitter of the third triode is grounded, and the collector of the third triode is electrically connected to the third power supply through the sixth resistor; the base of the fourth triode is electrically connected to the collector of the third triode through the seventh resistor, the emitter of the fourth triode is grounded, and the collector of the fourth triode is electrically connected to the fourth power supply through the eighth resistor; the collector of the fourth triode is electrically connected to the K line output port; the ninth resistor is connected in parallel between the base and emitter of the third triode; the first capacitor The first end of the first capacitor is electrically connected to the first end of the fifth resistor, and the second end of the first capacitor is electrically connected to the emitter of the third transistor; the first end of the second capacitor is electrically connected to the collector of the third transistor, and the second end of the second capacitor is grounded.
3. The vehicle communication system according to claim 1, characterized in that: The one-line input unit comprises a one-line input port, a tenth resistor, an eleventh resistor, a twelfth resistor, a thirteenth resistor, a fifth triode, a first switch tube and a second switch tube; The one-line output unit includes a one-line output port, a fourteenth resistor, a fifteenth resistor, a sixteenth resistor, a seventeenth resistor, an eighteenth resistor, a sixth transistor, a seventh transistor, a third capacitor and a fourth capacitor; The one-line input port is electrically connected to the base of the fifth triode through the tenth resistor, the emitter of the fifth triode is grounded, and the collector of the fifth triode is electrically connected to the fifth power supply through the eleventh resistor; the first end of the twelfth resistor is electrically connected to the one-line input port, and the second end of the twelfth resistor is electrically connected to the fifth power supply; the gate of the first switch tube is electrically connected to the collector of the fifth triode, the source of the first switch tube is grounded, and the drain of the first switch tube is electrically connected to the gates of the bus signal unit and the second switch tube respectively; the thirteenth resistor is connected in parallel between the gate and the source of the first switch tube; the source of the second switch tube is grounded, and the drain of the second switch tube is electrically connected to the bus signal unit; The one-line output port is electrically connected to the sixth power supply through the fourteenth resistor, the one-line output port is electrically connected to the collector of the sixth triode, the emitter of the sixth triode is grounded, and the collector of the sixth triode is electrically connected to the collector of the seventh triode through the fifteenth resistor; the collector of the seventh triode is electrically connected to the seventh power supply through the sixteenth resistor, the emitter of the seventh triode is grounded, and the base of the seventh triode is electrically connected to the bus signal unit through the seventeenth resistor; the eighteenth resistor is connected in parallel between the base and the emitter of the seventh triode; the first end of the third capacitor is electrically connected to the collector of the seventh triode, and the second end of the third capacitor is grounded; the first end of the fourth capacitor is electrically connected to an end of the seventeenth resistor away from the base of the seventh triode, and the second end of the fourth capacitor is electrically connected to the emitter of the seventh triode.
4. The vehicle communication system according to claim 1, characterized in that: The bus signal unit includes a bus power port, a nineteenth resistor, a twentieth resistor, a twenty-first resistor, a twenty-second resistor, a first diode, a third switch tube, a fourth switch tube and a fifth capacitor; The bus power port is electrically connected to the anode of the first diode, the cathode of the first diode is grounded through the nineteenth resistor, and the cathode of the first diode is electrically connected to the K-line input unit through the twenty-third resistor; The source of the third switch tube is electrically connected to the eighth power supply, the drain of the third switch tube is electrically connected to the bus power port, and the gate of the third switch tube is electrically connected to the one-line input unit; the twenty-first resistor is connected in parallel to the between the source and the gate of the third switch tube; The source of the fourth switch tube is electrically connected to the ninth power supply, the drain of the fourth switch tube is electrically connected to the bus power port, and the gate of the fourth switch tube is electrically connected to the one-line input unit; the twenty-second resistor is connected in parallel between the source and the gate of the fourth switch tube; A first end of the fifth capacitor is electrically connected to the bus power port, and a second end of the fifth capacitor is grounded.
5. A control method for a vehicle communication system, characterized in that: The vehicle communication system according to any one of claims 1 to 4 above executes a control method of the vehicle communication system, and the control method comprises: The bus signal unit determines whether the K-line input unit and the one-line input unit have communication signals at the same time; If the K-line input unit has a K-line communication signal, and the one-line input unit has a one-line communication signal, the bus signal unit determines whether the bus voltage is at a first level; If the bus signal unit determines that the bus voltage is at the first level, the K-line output unit outputs a second level, and the one-line output unit outputs a second level, wherein the first level is greater than the second level; If the bus signal unit determines that the bus voltage is not at the first level, the K-line output unit outputs a second level or a third level, and the one-line output unit outputs a third level, wherein the second level is greater than the third level; The one-line output unit detects the output interval time of outputting the third level; If the output interval is less than the first interval, the one-line output unit outputs the second level; If the output interval is equal to the second interval, the one-line output unit outputs the third level.
6. The control method of the vehicle communication system according to claim 5, characterized in that: The control method further comprises: If only the K-line input unit has the K-line communication signal, the bus signal unit determines whether the bus voltage is the first level or the second level; If the bus voltage is the first level or the second level, the K line input unit outputs the second level; If the bus voltage is neither the first level nor the second level, the K line input unit outputs the third level.
7. The control method of the vehicle communication system according to claim 5, characterized in that: The control method further comprises: If only the one-line input unit has the one-line communication signal, the bus signal unit determines whether the bus voltage is at the first level; If the bus voltage is at the first level, the one-line output unit outputs the second level; If the bus voltage is not at the first level, the one-line output unit outputs the third level.
8. The control method of the vehicle communication system according to claim 5, characterized in that: The control method further comprises: If the K-line input unit does not have the K-line communication signal, and at the same time the one-line input unit does not have the one-line communication signal, the bus signal unit outputs the bus voltage at the first level.
9. The control method of the vehicle communication system according to claim 5, characterized in that: Before determining whether the K-line input unit and the one-line input unit have communication signals at the same time, the control method further includes: The bus signal unit determines whether the bus has a bus signal to transmit; If present, the bus signal unit outputs the bus voltage at the first level; If not, the bus signal unit executes the step of determining whether the K-line input unit and the one-line input unit simultaneously have communication signals.
10. A driving device, characterized in that: The driving device includes the vehicle communication system according to any one of claims 1 to 4 above.
Citation Information
Patent Citations
Electric vehicle positioner communication circuit with bus protection and anti-interference functions
CN113985851A
Method for realizing independent communication of two channels on serial bus
CN115277298A
Detection device and method for motorcycle instrument
CN116256014A
Control method of vehicle communication system and vehicle communication system
CN117519090A
Bidirectional integrated services digital network transceiver circuit
CN219164569U