WO2023137593A1 - Bus processing apparatus and system - Google Patents

Bus processing apparatus and system Download PDF

Info

Publication number
WO2023137593A1
WO2023137593A1 PCT/CN2022/072595 CN2022072595W WO2023137593A1 WO 2023137593 A1 WO2023137593 A1 WO 2023137593A1 CN 2022072595 W CN2022072595 W CN 2022072595W WO 2023137593 A1 WO2023137593 A1 WO 2023137593A1
Authority
WO
WIPO (PCT)
Prior art keywords
level
transceiver
bus
switching device
gate
Prior art date
Application number
PCT/CN2022/072595
Other languages
French (fr)
Chinese (zh)
Inventor
樊孝斌
于鹏鹏
Original Assignee
华为数字能源技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为数字能源技术有限公司 filed Critical 华为数字能源技术有限公司
Priority to PCT/CN2022/072595 priority Critical patent/WO2023137593A1/en
Priority to CN202280005473.3A priority patent/CN116783870A/en
Publication of WO2023137593A1 publication Critical patent/WO2023137593A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/14Two-way operation using the same type of signal, i.e. duplex
    • H04L5/18Automatic changing of the traffic direction

Definitions

  • the present application relates to the technical field of communications, and in particular to a bus processing device and system.
  • the controller area network (CAN) bus is a field bus that can effectively support the serial communication of the distributed control system.
  • CAN bus has been widely used in industrial automation, ships, medical equipment, industrial equipment and other fields.
  • the CAN bus can be connected to each other in the form of a cable bus.
  • the first CAN bus 10 may be connected to the second CAN bus 50 through the first transceiver 20 , the isolation device 30 and the second transceiver 40 in sequence.
  • the first transceiver 20 is connected to the first CAN bus 10 and can receive or send signals through the first CAN bus 10
  • the second transceiver 40 is connected to the second CAN bus 50 and can receive or send signals through the second CAN bus 50 .
  • the levels of RX1 , TX1 , RX2 , and TX2 may all be low, thus causing self-locking of the first CAN bus 10 and the second CAN bus 50 .
  • RX1 is the receiving end of the first transceiver 20
  • TX1 is the transmitting end of the first transceiver 20
  • RX2 is the receiving end of the second transceiver 40
  • TX2 is the transmitting end of the second transceiver 40 .
  • the present application provides a bus processing device and system for avoiding self-locking phenomenon when CAN bus is connected.
  • the embodiment of the present application provides a bus processing device.
  • This method can be adapted for use in the systems shown in Figure 2A or 2B below.
  • the bus processing device includes: a first switch device, a second switch device, a power supply, a first resistor and a second resistor.
  • control electrode of the first switching device is connected to the transmitting terminal of the first transceiver (hereinafter referred to as TX1), the first electrode of the first switching device is connected to the receiving terminal of the first transceiver (hereinafter referred to as RX1), the second electrode of the first switching device is connected to the transmitting terminal of the second transceiver (hereinafter referred to as TX2), and the second electrode of the first switching device is also connected to the power supply through the first resistor.
  • the control electrode of the second switching device is connected to the sending end of the second transceiver, the first electrode of the second switching device is connected to the receiving end of the second transceiver (hereinafter referred to as RX2), the second electrode of the second switching device is connected to the sending end of the first transceiver, and the second electrode of the second switching device is also connected to the power supply through the second resistor.
  • the first transceiver is connectable to the first CAN bus
  • the second transceiver is connectable to the second CAN bus.
  • the first switching device is used for: disconnecting the path between the receiving end of the first transceiver and the transmitting end of the second transceiver when the level of the transmitting end of the first transceiver is low; the second switching device is used for disconnecting the path between the receiving end of the second transceiver and the transmitting end of the first transceiver when the level of the transmitting end of the second transceiver is low.
  • the levels of RX1, TX1, RX2 and TX2 can be different from being low at the same time, so as to avoid the self-locking phenomenon when the CAN bus is connected, which will be explained in detail below.
  • the level of TX1 is high level, and the level of RX1 is low level.
  • the transmission direction of the signal is RX1->TX2->RX2->TX1.
  • the first switching device conducts the path between RX1 and TX2, and RX1 can transmit the signal from the first CAN bus to TX2, so that the level of TX2 is the same as the level of RX1, both of which are low level.
  • RX2 receives the signal from TX2, so that the level of RX2 is the same as the level of TX2, both of which are low level. Since the level of TX2 is low level, the second switching device disconnects the path between RX2 and TX1, and the level of TX1 is its own static level.
  • TX1 is connected to a power supply device (for example, a power supply for the first transceiver or a power supply for the isolation device), the level of TX1 is high. In this way, in the first possible situation, the levels of RX1, TX2 and RX2 are low level, and the level of TX1 is high level.
  • a power supply device for example, a power supply for the first transceiver or a power supply for the isolation device
  • the first switching device disconnects the path between RX1 and TX2, and the level of TX2 is its own static level. Since TX2 is connected to a power supply device (for example, a power supply for the second transceiver), the level of TX2 is high level. RX2 receives the signal from TX2, so that the level of RX2 is the same as the level of TX2, both of which are high level.
  • a power supply device for example, a power supply for the second transceiver
  • the second case can have two branches.
  • Branch 1 if the level of TX2 is high level, the second switching device turns on the path between RX2 and TX1, then the level of TX1 is the same as the level of RX2, both of which are high level. In this way, in branch one of the second possible situation, the level of RX1 is low level, the level of TX2, the level of RX2 and the level of TX1 are high level.
  • Branch two if the level of TX2 is high level, the second switching device disconnects the path between RX2 and TX1, and the level of TX1 is its own static level. Since TX1 is connected with a power supply device, the level of TX1 is high level. In this way, in branch two of the second possible situation, the level of RX1 is low level, the level of TX2, the level of RX2 and the level of TX1 are high level.
  • the level of TX1 is 1.
  • the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are not 0 at the same time, so as to avoid the self-locking phenomenon when the CAN bus is connected.
  • the level of TX2 is 1.
  • the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are not 0 at the same time, so as to avoid the self-locking phenomenon when the CAN bus is connected.
  • any one of the first switching device and the second switching device is at least one of the following: a transistor and an N-type metal oxide semiconductor field effect transistor.
  • the bus processing device includes a simple triode or N-type metal oxide semiconductor field effect transistor, which can avoid the self-locking phenomenon when the CAN bus is connected, and has the advantages of simple structure and low cost.
  • any switching device in the first switching device and the second switching device is a triode
  • the control electrode of any switching device is a base
  • the first electrode of any switching device is an emitter
  • the second electrode of any switching device is a collector
  • the control electrode of any switching device is a gate
  • the first electrode of any switching device is a drain
  • the second electrode of any switching device is a source
  • any switching device is an NMOS field effect transistor
  • the control electrode of any switching device is a gate
  • the first electrode of any switching device is a source
  • the second electrode of any switching device is a drain.
  • the above device further includes: a first diode and a second diode.
  • the anode of the first diode is connected to the receiving end of the first transceiver
  • the cathode of the first diode is connected to the sending end of the second transceiver
  • the anode of the second diode is connected to the receiving end of the second transceiver
  • the cathode of the second diode is connected to the sending end of the first transceiver.
  • the first diode is connected in parallel with the first switching device, which can speed up the disconnection of the first switching device
  • the second diode is connected in parallel with the second switching device, which can speed up the disconnection of the second switching device. Since the disconnection of the switch device can avoid the self-locking phenomenon when the CAN bus is connected, therefore, accelerating the disconnection of the switch device can accelerate the avoidance of the self-locking phenomenon when the CAN bus is connected.
  • the above device may further include: a first capacitor and a second capacitor. Both ends of the first capacitor are respectively connected to the receiving end of the first transceiver and the sending end of the second transceiver; two ends of the second capacitor are respectively connected to the receiving end of the second transceiver and the sending end of the first transceiver.
  • the first capacitor is connected in parallel with the first switching device, so that the signal of the first switching device can be filtered; the second capacitor is connected in parallel with the second switching device, so that the signal of the second switching device can be filtered.
  • the above device may further include a third resistor and/or a fourth resistor.
  • the control electrode of the first switching device is connected to the sending end of the first transceiver through the third resistor; the control electrode of the second switching device is connected to the sending end of the second transceiver through the fourth resistor.
  • the third resistor can limit the current input to the control electrode of the first switching device, so as to avoid damage to the first switching device due to excessive current, thereby improving the performance and service life of the first switching device.
  • the fourth resistor can limit the current input to the control electrode of the second switching device, thereby avoiding damage to the second switching device due to excessive current, thereby improving the performance and service life of the second switching device.
  • the embodiment of the present application provides a bus processing device.
  • This method can be adapted for use in the systems shown in Figure 2A or 2B below.
  • the bus processing device includes: a first tri-state gate, a second tri-state gate, a first NOT gate, a second NOT gate, a power supply, a fifth resistor and a sixth resistor.
  • the input end of the first tri-state gate is connected to the receiving end of the first transceiver (hereinafter referred to as RX1), the output end of the first tri-state gate is connected to the transmitting end of the second transceiver (hereinafter referred to as TX2), the output end of the first tri-state gate is also connected to the power supply through the fifth resistor;
  • the input end of the second tri-state gate is connected to the receiving end of the second transceiver (hereinafter referred to as RX2), the output end of the second tri-state gate is connected to the transmitting end of the first transceiver (hereinafter referred to as TX1), and the output end of the second tri-state gate is also connected to the power supply through the fifth resistor;
  • the input end of the first NOT gate is connected to the sending end of the first transceiver, and the output end of the first NOT gate is connected to the output control end of the first tri-state gate;
  • the input end of the second NOT gate is
  • the levels of RX1, TX1, RX2 and TX2 are not low at the same time, so as to avoid the self-locking phenomenon when the CAN bus is connected. This will be described in detail below.
  • the level of TX1 is high level, the level of RX1 is low level, and the transmission direction of the signal is RX1->TX2->RX2->TX1.
  • RX1 needs to transmit a signal to TX2 through the first tri-state gate, therefore, the relationship between the input terminal and the output terminal of the first tri-state gate needs to be judged.
  • the high level of TX1 becomes low level through the first NOT gate; when the output control terminal of the first tristate gate is low level, the level of the output terminal of the first tristate gate is the same as the level of the input terminal of the first tristate gate, so the level of TX2 is low level.
  • RX2 receives the signal from TX2, so that the level of RX2 is the same as the level of TX2, therefore, the level of RX2 is low level.
  • RX2 needs to transmit a signal to TX1 through the second tri-state gate, therefore, the relationship between the input terminal and the output terminal of the second tri-state gate needs to be judged.
  • the low level of TX2 becomes high level through the second NOT gate; when the output control terminal of the second tristate gate is high level, the output terminal of the second tristate gate is high impedance, blocking the path between RX2 and TX1. Since TX1 is connected to a power supply device, the level of TX1 is high level. Thus, in case 1, the levels of RX1, TX2 and RX2 are low, and the level of TX1 is high.
  • the second CAN bus sends a signal (that is, the state of the second CAN bus is dominant)
  • the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are not low at the same time, thereby avoiding the self-locking phenomenon when the CAN bus is connected.
  • the level of TX1 is high level
  • the level of RX1 is low level
  • the transmission direction of the signal is RX1->TX2->RX2->TX1.
  • RX1 needs to transmit a signal to TX2 through the first tri-state gate, therefore, the relationship between the input terminal and the output terminal of the first tri-state gate needs to be judged.
  • the high level of TX1 becomes low level through the first NOT gate; when the output control terminal of the first tristate gate is low level, the output terminal of the first tristate gate is high impedance, which can block the path between RX1 and TX2.
  • TX2 Since TX2 is connected with a power supply device, the level of TX2 is high level. RX2 receives the signal from TX2, so that the level of RX2 is the same as the level of TX2, therefore, the level of RX2 is high level. RX2 needs to transmit a signal to TX1 through the second tri-state gate, therefore, the relationship between the input terminal and the output terminal of the second tri-state gate needs to be judged.
  • the high level of TX2 becomes low level through the second NOT gate; when the output control terminal of the second tristate gate is low level, the output terminal of the second tristate gate is high impedance, thereby blocking the path between RX2 and TX1. Since TX1 is connected to a power supply device, the level of TX1 is high level. In this way, in case 2, the level of RX1 is low level, the level of TX2, the level of RX2 and the level of TX1 are high level.
  • the second CAN bus sends a signal (that is, the state of the second CAN bus is dominant)
  • the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are not low at the same time, thereby avoiding the self-locking phenomenon when the CAN bus is connected.
  • an embodiment of the present application provides a bus processing system, including: any bus processing device described above, a first transceiver, and a second transceiver.
  • FIG. 1A is a schematic diagram of a communication system
  • FIG. 1B is a schematic diagram of another communication system
  • FIG. 2A is a schematic diagram of a system applicable to the bus processing device provided in the embodiment of the present application.
  • FIG. 2B is a schematic diagram of another system applicable to the bus processing device provided in the embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a bus processing device provided in an embodiment of the present application.
  • Fig. 4, Fig. 5, Fig. 6, and Fig. 7A-Fig. 7D are respectively schematic diagrams of an expansion scheme of a bus processing device provided in the embodiment of the present application;
  • FIG. 8 is a schematic diagram of an implementation of a bus processing device provided in an embodiment of the present application.
  • FIG. 9 is a schematic diagram of another implementation of a bus processing device provided in an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of another bus processing device provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of a bus processing system provided by an embodiment of the present application.
  • the present application provides a bus processing device and system to avoid self-locking phenomenon when CAN bus is connected.
  • the bus processing device includes a first switching device, a second switching device, a power supply, a first resistor, and a second resistor.
  • the control electrode of the first switching device can be connected to the transmitting terminal of the first transceiver (hereinafter referred to as TX1)
  • the first electrode of the first switching device can be connected to the receiving terminal of the first transceiver (hereinafter referred to as RX1)
  • the second electrode of the first switching device can be connected to the transmitting terminal of the second transceiver (hereinafter referred to as TX2)
  • the second electrode of the first switching device is also connected to the power supply through the first resistor
  • the control electrode of the second switching device can be connected to TX2
  • the first electrode of the second switching device can be connected to the receiving terminal of the second transceiver (hereinafter referred to as RX2)
  • a second electrode of the second switching device may be connected to TX1, and the second electrode of the second switching device is also connected to
  • the first transceiver is a transceiver connected to the first CAN bus
  • the second transceiver is a transceiver connected to the second CAN bus.
  • the first switching device can be used to disconnect the path between RX1 and TX2 when the level of TX1 is low
  • the second switching device can be used to disconnect the path between RX2 and TX1 when the level of TX2 is low.
  • the level of TX1 is 1 (for details, please refer to the summary of the invention, which will not be repeated here).
  • the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are not 0 at the same time, so as to avoid the self-locking phenomenon when the CAN bus is connected.
  • the level of TX2 is 1. That is to say, the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are also 0 at the same time, so as to avoid the self-locking phenomenon when the CAN bus is connected.
  • a high level greater than 2.4 volts (V) can be represented by 1; a low level less than 0.4V can be represented by 0.
  • a high level greater than 4.99V can be represented by 1; a low level less than 0.01V can be represented by 0.
  • the CAN bus is a bus that can support serial communication of a distributed control system.
  • the CAN bus can transmit signals according to differential levels.
  • the CAN bus can be a twisted pair, and the two lines can be called CAN_H and CAN_L respectively.
  • the voltages of CAN_H and CAN_L are the same (for example, the voltages of CAN_H and CAN_L are both 2.5 volts (V)), that is, the difference between CAN_H and CAN_L is 0; at this time, the levels of CAN_H and CAN_L are both 0, and the state of the CAN bus is recessive (also called idle).
  • the voltages of CAN_H and CAN_L are different (for example, the voltage of CAN_H is 3.5V, and the voltage of CAN_L is 1.5V), resulting in a voltage difference; at this time, the level of CAN_H is 1, the level of CAN_L is 0, and the state of the CAN bus is dominant.
  • the transceiver in the present application is used for receiving signals from the CAN bus and/or sending signals to the CAN bus.
  • the transceiver can receive signals from the CAN bus and convert the signals from the CAN bus to TTL level. At this time, the level of the receiving end of the transceiver is 0, and the level of the transmitting end of the transceiver is 1.
  • the transceiver When the level of the sending end of the transceiver is 0, it means that the transceiver has a signal to send and needs to occupy the CAN bus, so that the state of the CAN bus is dominant for transmitting signals.
  • the transceiver in this application may be a device such as a sensor or an electronic device.
  • the sensor may be: a speed sensor, a temperature sensor or a humidity sensor and the like.
  • the electronic device may be a computer device with a processor, such as a desktop computer, a personal computer, or a server. It should also be understood that the electronic device may also be a portable electronic device with a processor, such as a mobile phone, a tablet computer, a wearable device with a wireless communication function (such as a smart watch), a vehicle-mounted device, and the like. Exemplary embodiments of portable electronic devices include, but are not limited to Or portable electronic devices with other operating systems.
  • the transceiver can also be replaced by a device capable of converting the signal of the CAN bus into a TTL level, for example, a level converter.
  • a tri-state gate also known as a tri-state output circuit, is a logic device.
  • the tri-state gate includes an input terminal, an output terminal and an output control terminal; under the control of the output control terminal, the tri-state gate can output three different output values: 0 (corresponding to low level), 1 (corresponding to high level) and high impedance.
  • the tri-state gate can be a low-level enabled tri-state gate or a high-level enabled tri-state gate.
  • the three-state gate is a low-level enabled three-state gate
  • the level of the output control terminal is 0, the level of the output terminal is the same as that of the input terminal; if the level of the output control terminal is 1, the state of the output terminal is high impedance.
  • Table 1 the corresponding relationship of the levels of the input terminal, the output terminal and the output control terminal of the low-level enabled tri-state gate is shown in Table 1.
  • the level of the output control terminal input level output level 1 0 or 1 high resistance 0 0 0 0 1 1
  • the tri-state gate is a high-level enabled tri-state gate
  • the level of the output control terminal is 1, the level of the output terminal is the same as the level of the input terminal; if the level of the output control terminal is 0, the state of the output terminal is high impedance.
  • Table 2 the corresponding relationship of the levels of the input terminal, the output terminal and the output control terminal of the high-level enabled tri-state gate is shown in Table 2.
  • the level of the output control terminal input level output level 0 0 or 1 high resistance 1 0 0 1 1 1
  • Electrical isolation refers to the electrical isolation of the power supply and the electrical circuit, that is, the electrical isolation of the branch circuit from the entire electrical system, making it an electrically isolated, independent ungrounded safety system, in order to prevent the risk of indirect electrical contact when the exposed conductor is faulty and charged.
  • connection in this application may be a direct connection, or a connection through one or more modules or one or more devices.
  • a is connected to B, or A is connected to B may mean: A is directly connected to B, or A is connected to B through C.
  • C may represent one or more modules, and may also represent one or more devices.
  • RX1 is the receiving end of the first transceiver 20
  • TX1 is the transmitting end of the first transceiver 20
  • RX2 is the receiving end of the second transceiver 40
  • TX2 is the transmitting end of the second transceiver 40.
  • nouns for the number of nouns, unless otherwise specified, it means “singular noun or plural noun", that is, “one or more”. “At least one” means one or more, and “plurality” means two or more. "And/or” describes the association relationship of associated objects, indicating that there may be three kinds of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. "At least one (individual) of the following" or similar expressions refer to any combination of these items (individuals), including any combination of a single item (individuals) or a plurality of item (individuals).
  • Fig. 1A shows a possible system structure diagram after two CAN buses are connected.
  • the system includes: a first CAN bus 10 , a first transceiver 20 , an isolation device 30 , a second transceiver 40 , and a second CAN bus 50 .
  • the first CAN bus 10 can be connected to the second CAN bus 50 through the first transceiver 20 , the isolation device 30 and the second transceiver 40 in sequence.
  • the specific content of the first CAN bus 10 , the first transceiver 20 , the second transceiver 40 and the second CAN bus 50 can refer to the description of the CAN bus and transceivers in the glossary of terms, and the repeated parts will not be repeated.
  • the isolation device 30 is used to realize electrical isolation between the first CAN bus 10 and the second CAN bus 50 .
  • the isolation device 30 may be equipment such as an isolation transformer, a photoelectric coupling element, and the like.
  • the levels on both sides of the isolation device 30 are the same.
  • the state of the first CAN bus 10 is dominant, and the transmission path of the signal is RX1->TX2->RX2->TX1->RX1. Since the state of the first CAN bus 10 is dominant, the voltage of CAN_H1 is higher than CAN_L1, and the level of RX1 is 0. The levels at both ends of the isolation device 30 are the same, therefore, the levels of TX2 and RX1 are the same, both being 0. RX2 receives the signal from TX2, therefore, the level of RX2 is the same as that of TX2, both are 0.
  • the levels at both ends of the isolation device are the same, the levels of TX1 and RX2 are the same, both being 0. Since the level of TX1 is 0, RX1 receives the signal from TX1, so that the level of RX1 is 0. Repeat the above process, and the levels of RX1, TX1, RX2 and TX2 remain at 0. As mentioned above, when the level of the sending end of the transceiver is 0, it means that the transceiver has a signal to send and needs to occupy the CAN bus, so that the state of the CAN bus is dominant for signal transmission. Therefore, if the level of TX1 is continuously 0, the state of the first CAN bus 10 will continue to be dominant, and then the first CAN bus 10 cannot be released, forming a self-locking phenomenon of the CAN bus.
  • the second CAN bus 20 sends a signal
  • the levels of RX1, TX1, RX2, and TX2 will continue to be 0, and the state of the second CAN bus 20 will continue to be dominant, so that the second CAN bus cannot be released, forming a self-locking phenomenon of the CAN bus.
  • the system includes: OR gate U1, OR gate U2, NAND gate U3, lower edge delay circuit U4, OR gate U5, OR gate U6, NAND gate U7, lower edge delay circuit U8, and NAND gate U9.
  • connection manner of each device is shown in FIG. 1B .
  • one input of the OR gate U1 is connected to 1T and the output of the OR gate U2, the other input of the OR gate U1 is connected to the output of the NAND gate U9, and the output of the OR gate U1 is connected to one input of the NAND gate U3.
  • One input of the OR gate U2 is connected to the output terminal of the lower edge delay circuit U4, and the other input of the OR gate U2 is connected to 2R.
  • One input of the NAND gate U3 is connected to 1R, the other input is connected to the output terminal of the OR gate U1, and the output terminal of the NAND gate U3 is connected to the lower edge delay circuit U4.
  • the signal of RX1 becomes the signal of 1R after digital isolation
  • the signal of 1T becomes the signal of TX1 after digital isolation
  • the levels at both ends of the digital isolation are equal.
  • the connection mode of the OR gate U5, the OR gate U6, the NAND gate U7, and the lower edge delay circuit U8 is corresponding to the connection mode of the OR gate U1, the OR gate U2, the NAND gate U3, and the lower edge delay circuit U4, and will not be repeated here.
  • the first CAN bus 10 connected to the first transceiver 20 is a remote CAN bus
  • the second CAN bus 50 connected to the second transceiver 40 is a local CAN bus.
  • the isolation device 30 includes a digital isolation 301 and a digital isolation 302 .
  • the level of TX1 is 1, and the level of RX1 is 0.
  • the signal of RX1 becomes a 1R signal after digital isolation, and the level of 1R is 0.
  • the level 0 is used as the input of the NAND gate U3, so that the level of the output terminal of the NAND gate U3 is 1.
  • the level 1 is still 1 after passing through the lower edge delay circuit U4, that is, the level of the output end of the lower edge delay circuit U4 is 1.
  • Level 1 is used as the input of OR gate U2, so that the level of the output terminal of OR gate U2 is 1, so the level of 1T is also 1.
  • the level of 1T becomes the signal of TX1 after digital isolation, so that the level of TX1 is 1.
  • the OR gate U5 the OR gate U6, the NAND gate U7, and the lower edge delay circuit U8, the CAN bus can be prevented from self-locking when the first CAN field bus sends a signal.
  • the present application provides a bus processing device 60, which can use a simple structure to avoid the self-locking phenomenon when the CAN bus is connected.
  • the bus processing device 60 can be applied to the system shown in FIG. 2A or FIG. 2B .
  • the system may include a first CAN bus 10 , a first transceiver 20 , an isolation device 30 , a second transceiver 40 , a second CAN bus 50 , and a bus processing device 60 .
  • the first CAN bus 10 can be connected to the second CAN bus 50 through the first transceiver 20 , the isolation device 30 , the bus processing device 60 and the second transceiver 40 in sequence.
  • the system may include a first CAN bus 10 , a first transceiver 20 , a second transceiver 40 , a second CAN bus 50 , and a bus processing device 60 .
  • the first CAN bus 10 can be connected to the second CAN bus 50 through the first transceiver 20 , the bus processing device 60 and the second transceiver 40 in sequence.
  • the voltages of the first CAN bus 10 and the second CAN bus 50 may be the same or different.
  • the voltage of the first CAN bus 10 and the second CAN bus 50 can be higher than the voltage of the second CAN bus, and the voltage of the first CAN bus can also be lower than the voltage of the second CAN bus.
  • bus processing device 60 The implementation of the bus processing device 60 will be specifically described below with reference to the accompanying drawings.
  • FIG. 3 shows a possible structure of the bus processing device 60 provided by the embodiment of the present application.
  • the bus processing device 60 includes: a first switching device 601 , a second switching device 602 , a power supply 603 , a resistor R1 and a resistor R2 .
  • the second electrode of the first switching device 601 can be connected to the power source 603 through the resistor R1.
  • the power supply 603 can supply power to the first switching device 601 .
  • the current passing through the first switching device 601 can be limited to avoid damage to the first switching device 601 .
  • the second electrode of the second switching device 602 can be connected to a power source 603 through a resistor R2.
  • the power source 603 can supply power to the second switching device 602 .
  • the current passing through the second switching device 602 can be limited to avoid damage to the second switching device 602 .
  • the power source 603 is a DC power source such as a storage battery or a lithium battery.
  • control electrode of the first switching device 601 can be connected to TX1, the first electrode of the first switching device 601 can be connected to RX1, the second electrode of the first switching device 601 can be connected to TX2; the control electrode of the second switching device 602 can be connected to TX2, the first electrode of the second switching device 602 can be connected to RX2, and the second electrode of the second switching device 602 can be connected to TX1.
  • the first switching device 601 and the second switching device 602 may be connected to the first transceiver 20 through the isolation device 30 .
  • the control electrode of the first switching device 601 can be connected to TX1 through the isolation device 30, the first electrode of the first switching device 601 can be connected to RX1 through the isolation device 30; the second electrode of the second switching device 602 can be connected to TX1 through the isolation device 30.
  • the first switching device 601 can be used to: when the level of TX1 is 0, disconnect the path between RX1 and TX2; that is, when the level of TX1 is 0, the first switching device 601 is in an off state.
  • the second switching device 602 can be used to: disconnect the path between RX2 and TX1 when the level of TX2 is 0. That is to say, when the level of TX2 is 0, the second switching device 602 is in an off state.
  • the level of TX1 is 1 (specific content can refer to the content of the invention, which will not be repeated here), so that the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are not 0 at the same time, so that the self-locking phenomenon can be avoided when the CAN bus is connected.
  • the level of TX2 is 1. That is to say, the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are also 0 at the same time, so as to avoid the self-locking phenomenon when the CAN bus is connected.
  • the device connects two CAN buses through a simple switching device.
  • the signals between the two CAN buses can be transmitted without delay, so as to meet the real-time requirements; and the simple switching device can reduce the cost and the power consumption of the bus, and can be used in various complex network topologies. Therefore, the device has a good application prospect.
  • any switching device in the first switching device 601 and the second switching device 602 is one of the following: semiconductor switches such as triodes, N-type metal oxide semiconductor field effect transistors (metal oxide semiconductor field effect transistors, MOSFETs), and relays.
  • semiconductor switches such as triodes, N-type metal oxide semiconductor field effect transistors (metal oxide semiconductor field effect transistors, MOSFETs), and relays.
  • MOSFETs metal oxide semiconductor field effect transistors
  • each of the first switching device 601 and the second switching device 602 may include a control electrode, a first electrode and a second electrode.
  • the control electrode is used to control the switching device to be turned on or off.
  • the switch device When the switch device is turned on, current can be transmitted between the first electrode and the second electrode of the switch device, and the level of the output terminal is equal to the level of the input terminal; when the switch device is turned off, no current can be transmitted between the first electrode and the second electrode of the switch device.
  • the control electrode of the switching device is the base
  • the first electrode of the switching device is the emitter
  • the second electrode of the switching device is the collector.
  • the control electrode of the switching device is the gate
  • the first electrode of the switching device may be the source
  • the second electrode of the switching device may be the drain
  • the control electrode of the switching device is the gate
  • the first electrode of the switching device may be the drain
  • the second electrode of the switching device may be the source
  • FIG. 4-7D shows an extension solution of the bus processing device 60 shown in FIG. 3 , and the present application will be described below in conjunction with FIG. 4-7D .
  • the bus processing device 60 may further include: a diode D1 and a diode D2 .
  • the anode of the diode D1 is connected to RX1
  • the cathode of the diode D1 is connected to TX2 ; that is, the diode D1 is connected in parallel with the first switching device 601 .
  • the anode of the diode D2 is connected to RX2
  • the cathode of the diode D2 is connected to TX1 ; that is, the diode D2 is connected in parallel with the second switching device 602 .
  • the diode D1 and the diode D2 may be connected to the first transceiver 20 through the isolation device 30 .
  • the anode of the diode D1 can be connected to RX1 through the isolation device 30
  • the cathode of the diode D2 can be connected to TX1 through the isolation device 30 .
  • the diode D1 is connected in parallel with the first switching device 601 , which can accelerate the turn-off of the first switching device 601 .
  • the first switching device 601 can quickly disconnect the path between RX1 and TX2, so that the level of TX2 quickly becomes 1, thereby quickly avoiding the self-locking phenomenon when the CAN bus is connected.
  • the diode D2 is connected in parallel with the second switching device 602 to speed up the turn-off of the second switching device 602 . In this way, when the level of TX2 is 0, the second switching device 602 can quickly disconnect the path between RX2 and TX1, so that the level of TX1 quickly becomes 1, thereby quickly avoiding the self-locking phenomenon when the CAN bus is connected.
  • the bus processing device 60 may further include: a capacitor C1 and a capacitor C2 .
  • both ends of the capacitor C1 are connected to RX1 and TX2 respectively; that is, the capacitor C1 is connected in parallel with the first switching device 601 .
  • Two ends of the capacitor C2 are connected to RX2 and TX1 respectively; that is, the capacitor C2 is connected in parallel with the second switching device 602 .
  • the capacitors C1 and C2 may be connected to the first transceiver 20 through the isolation device 30 .
  • the capacitor C1 can be connected to RX1 through the isolation device 30
  • the capacitor C2 can be connected to TX1 through the isolation device 30 .
  • the capacitor C1 is connected in parallel with the first switching device 601 , so that the signal of the first switching device 601 can be filtered.
  • the capacitor C2 is connected in parallel with the second switching device 602 so as to filter the signal of the second switching device 602 .
  • the bus processing device 60 may further include: a resistor R3 and/or a resistor R4.
  • the resistor R3 can limit the current input to the control electrode of the first switching device 601 , therefore, the resistor R3 is a current limiting resistor.
  • the resistor R3 may be connected to the first transceiver 20 through the isolation device 30 .
  • the resistor R3 can be connected to TX1 through the isolation device 30 .
  • Both ends of the resistor R4 are respectively connected to the control electrode of the second switching device 602 and TX2.
  • the resistor R4 can limit the current input to the control electrode of the second switching device 602, therefore, the resistor R4 is a current limiting resistor.
  • the bus processing devices 60 shown in FIGS. 4-6 can be combined.
  • the bus processing device 60 may include: a first switching device 601 , a second switching device 602 , a power supply 603 , a resistor R1 , a resistor R2 , a diode D1 , a diode D2 , a resistor R3 and a resistor R4 .
  • the bus processing device 60 may include: a first switching device 601, a second switching device 602, a power supply 603, a resistor R1, a resistor R2, a diode D1, a diode D2, a capacitor C1 and a capacitor C2.
  • the bus processing device 60 may further include: a first switching device 601, a second switching device 602, a power supply 603, a resistor R1, a resistor R2, a diode D1, a diode D2, a capacitor C1, a capacitor C2, a resistor R3, and a resistor R4.
  • FIG. 7C the bus processing device 60 may further include: a first switching device 601, a second switching device 602, a power supply 603, a resistor R1, a resistor R2, a diode D1, a diode D2, a capacitor C1, a capacitor C2, a resistor R3, and a resistor R4.
  • the bus processing device 60 may further include: a first switching device 601, a second switching device 602, a power supply 603, a resistor R1, a resistor R2, a capacitor C1, a capacitor C2, a resistor R3 and a resistor R4.
  • the connection relationship between devices in FIGS. 7A-7D can refer to the devices shown in FIGS. 3-6 , and details will not be repeated here.
  • the specific implementation manners of the first switching device 601 and the second switching device 602 in the bus processing device 60 shown in FIGS. 3-7D are introduced below through the bus processing device 60 shown in FIGS. 8-9 respectively.
  • the bus processing device 60 shown in FIG. 8 mainly introduces possible situation 1, that is, both the first switching device 601 and the second switching device 602 are triodes;
  • the bus processing device 60 shown in FIG. 9 mainly introduces possible situation 2, that is, both the first switching device 601 and the second switching device 602 are N-type MOSFETs.
  • the bus processing device 60 may include: a transistor Q1, a transistor Q2, a power supply 603, a resistor R1, a resistor R2, a diode D1, a diode D2, a capacitor C1, a capacitor C2, a resistor R3 and a resistor R4.
  • the base of the triode Q1 is connected to TX1, the emitter of the triode Q1 is connected to RX1, the collector of the triode Q1 is connected to TX2, and the collector of the triode Q1 can also be connected to the power supply 603 through the resistor R1; That is to say, the transistor Q1 can be the first switching device 601 in the bus processing device 60 shown in FIG. 3-FIG. 7D, and the transistor Q2 can be the second switching device 602 in the bus processing device 60 shown in FIG. 3-FIG. 7D.
  • connection relationship between the diode D1, the diode D2, the capacitor C1, the capacitor C2, the resistor R3 and the resistor R4, and the transistor Q1 and the transistor Q2 can refer to the connection relationship between the diode D1, the diode D2, the capacitor C1, the capacitor C2, the resistor R3 and the resistor R4 and the first switching device 601 and the second switching device 602 in the bus processing device 60 shown in FIGS.
  • TX1, TX2, RX1 and RX2 can all be connected to a power supply device.
  • the power supply device may be a power supply (for example, a DC power supply such as a storage battery or a lithium battery).
  • TX1 is connected to the power supply through the resistor R3, and TX2 can be connected to the power supply through the resistor R4.
  • RX1 and RX2 are respectively connected to the power supply.
  • the power supply connected to TX1 and RX1 may be the power supply for the first transceiver 20 ; the power supply connected to TX2 and RX2 may be the power supply for the second transceiver 40 .
  • the power supply connected to TX1 and TX2 may also be the power supply for the isolation device 30 . In this way, when there is no input signal, the levels of TX1, TX2, RX1, and RX2 are 1.
  • the levels of TX1 , RX1 , TX2 , and RX1 are not at 0 at the same time, thereby avoiding the self-locking phenomenon when the CAN bus is connected. This will be described in detail below.
  • the level of TX1 is 1, the level of RX1 is 0, and the transmission direction of the signal is RX1->TX2->RX2->TX1.
  • RX1 needs to transmit a signal to TX2 through the transistor Q1, therefore, it is necessary to judge the conduction of the transistor Q1. Since the level of TX1 is higher than the level of RX1, the transistor Q1 is turned on; at this time, the level of the collector of the transistor Q1 is the same as that of the emitter, that is, the level of RX1 is the same as that of TX2, so the level of TX2 is 0.
  • RX2 receives the signal from TX2, so that the level of RX2 is the same as that of TX2, so the level of RX2 is 0.
  • RX2 needs to transmit a signal to TX1 through the transistor Q2, therefore, it is necessary to judge the conduction of the transistor Q2. Since the levels of RX2 and TX2 are both 0, the transistor Q2 is cut off. When the transistor Q2 is cut off, it is equivalent to a high impedance, which can block the path between RX2 and TX1. Since TX1 is connected to a power supply device, the level of TX1 is 1. In this way, the level of RX1 is 0, the level of TX2 is 0, the level of RX2 is 0, and the level of TX1 is 1.
  • the first CAN bus 10 can also send a recessive level signal (that is, a signal with a sending level of 1).
  • a recessive level signal that is, a signal with a sending level of 1.
  • the level of RX1 is 1
  • the level of TX1 is 1
  • the transmission direction of the signal is RX1->TX2->RX2->TX1.
  • RX1 needs to transmit a signal to TX2 through the transistor Q1, therefore, it is necessary to judge the conduction of the transistor Q1. Since the level of RX1 is the same as that of TX1, the transistor Q1 is cut off. When the transistor Q1 is cut off, it is equivalent to a high impedance, which can block the path between RX1 and TX2. Since TX2 is connected to a power supply device, the level of TX2 is 1.
  • the level of RX2 is the same as that of TX2, therefore, the level of RX2 is 1.
  • RX2 needs to transmit a signal to TX1 through the transistor Q2, therefore, it is necessary to judge the conduction of the transistor Q2. Since the level of RX2 is equal to the level of TX2, the transistor Q2 is cut off. When the transistor Q2 is cut off, it is equivalent to a high impedance, which can block the path between RX2 and TX1. Since TX1 is connected to a power supply device, the level of TX1 is 1. In this way, the level of RX1 is 1, the level of TX2 is 1, the level of RX2 is 1, and the level of TX1 is 1.
  • the second CAN bus 50 sends a signal (that is, the state of the second CAN bus 50 is dominant), the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are different from 0 at the same time, so that the self-locking phenomenon can be avoided when the CAN bus is connected.
  • the level of RX1 is 1, and the level of TX1 is 1.
  • the level of TX2 is 1
  • the level of RX2 is 1
  • the level of TX1 is 1. Therefore, by the device shown in FIG. 8, when the states of the first CAN bus 10 and the second CAN bus 50 are both idle, the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are different from 0 at the same time, thereby avoiding the self-locking phenomenon when the CAN bus is connected.
  • both the first switching device 601 and the second switching device 602 are N-type MOSFETs.
  • the bus processing device 60 may include: N-type MOSFET M1, N-type MOSFET M2, power supply 603, resistor R1, resistor R2, diode D1, diode D2, capacitor C1, capacitor C2, resistor R3 and resistor R4.
  • the gate of N-type MOSFET M1 is connected to TX1, the source of N-type MOSFET M1 is connected to RX1, the drain of N-type MOSFET M1 is connected to TX2, and the drain of N-type MOSFET M1 can also be connected to the power supply 603 through resistor R1; or, the gate of N-type MOSFET M1 is connected to TX1, the drain of N-type MOSFET M1 is connected to RX1, and the drain of N-type MOSFET M1
  • the source of the N-type MOSFET M1 is connected to TX2, and the source of the N-type MOSFET M1 can also be connected to the power supply 603 through the resistor R1. That is to say, the N-type MOSFET M1 can be the first switching device 601 in the bus processing device 60 shown in FIG. 3-FIG. 7D.
  • the gate of N-type MOSFET M2 is connected to TX2, the source of N-type MOSFET M2 is connected to RX2, the drain of N-type MOSFET M2 is connected to TX1, and the drain of N-type MOSFET M2 can also be connected to power supply 603 through resistor R2; or, the gate of N-type MOSFET M2 is connected to TX2, the drain of N-type MOSFET M2 is connected to RX2, and the source of N-type MOSFET M2 The pole is connected to TX1, and the source of the N-type MOSFET M2 can also be connected to the power supply 603 through the resistor R2. That is to say, the N-type MOSFET M2 can be the second switching device 602 in the bus processing device 60 shown in FIG. 3-FIG. 7D.
  • connection relationship between the diode D1, the diode D2, the capacitor C1, the capacitor C2, the resistor R3, and the resistor R4, and the N-type MOSFET M1 and the N-type MOSFET M2 can refer to the connection relationship between the diode D1, the diode D2, the capacitor C1, the capacitor C2, the resistor R3, and the resistor R4, and the first switching device 601 and the second switching device 602 in the bus processing device 60 shown in FIGS.
  • the levels of TX1 , RX1 , TX2 , and RX1 are not 0 at the same time, thereby avoiding the self-locking phenomenon when the CAN bus is connected. This will be described in detail below.
  • the level of TX1 is 1, the level of RX1 is 0, and the transmission direction of the signal is RX1->TX2->RX2->TX1.
  • RX1 needs to transmit signals to TX2 through N-type MOSFET M1, therefore, it is necessary to judge the conduction of N-type MOSFET M1. Since the level of TX1 is 1, the N-type MOSFET M1 is turned on; at this time, the level of the source of the N-type MOSFET M1 is the same as that of the drain, and the level of RX1 is the same as that of TX2, so the level of TX2 is 0.
  • RX2 receives the signal from TX2, so that the level of RX2 is the same as that of TX2, so the level of RX2 is 0.
  • RX2 needs to transmit signals to TX1 through N-type MOSFET M2, therefore, it is necessary to judge the conduction of N-type MOSFET M2. Since the level of TX2 is 0, the N-type MOSFET M2 is not turned on, thus blocking the path between RX2 and TX1. Since TX1 is connected to a power supply device, the level of TX1 is 1. In this way, the level of RX1 is 0, the level of TX2 is 0, the level of RX2 is 0, and the level of TX1 is 1.
  • the first CAN bus 10 can also send a recessive level signal (that is, a signal with a sending level of 1).
  • a recessive level signal that is, a signal with a sending level of 1.
  • the level of RX1 is 1
  • the level of TX1 is 1
  • the transmission direction of the signal is RX1->TX2->RX2->TX1.
  • RX1 needs to transmit signals to TX2 through N-type MOSFET M1, therefore, it is necessary to judge the conduction of N-type MOSFET M1. Since the level of TX1 is 1, the N-type MOSFET M1 is turned on; at this time, the level of the source of the N-type MOSFET M1 is the same as the level of the drain, that is, the level of RX1 is the same as that of TX2, so the level of TX2 is 1.
  • the level of RX2 is the same as that of TX2, therefore, the level of RX2 is 1.
  • RX2 needs to transmit signals to TX1 through N-type MOSFET M2, therefore, it is necessary to judge the conduction of N-type MOSFET M2. Since the level of TX2 is 1, the N-type MOSFET M2 is turned on; at this time, the level of the source of the N-type MOSFET M2 is the same as the level of the drain, that is, the level of RX2 is the same as that of TX1, so the level of TX1 is 1. In this way, the level of RX1 is 1, the level of TX2 is 1, the level of RX2 is 1, and the level of TX1 is 1.
  • the level of RX1 is 1, and the level of TX1 is 1.
  • the level of RX1 is 1, the level of TX2 is 1, the level of RX2 is 1, and the level of TX1 is 1. Therefore, by means of the device shown in FIG. 9, when the states of the first CAN bus 10 and the second CAN bus 50 are both idle, the levels of TX1, RX1, TX2, and RX1 are different from 0 at the same time, thereby avoiding the self-locking phenomenon when the CAN bus is connected.
  • FIG. 10 shows another possible structure of the bus processing device 60 provided by the embodiment of the present application.
  • the bus processing device 60 includes: a tri-state gate U10, a tri-state gate U12, a NOT gate U11, a NOT gate U13, a power supply 603, a resistor R5 and a resistor R6.
  • the output terminal of the tri-state gate U10 can be connected to the power supply 603 through the resistor R5; thus, the power supply 603 can supply power for the tri-state gate U10. And due to the existence of the resistor 5, the current passing through the tri-state gate U10 can be limited to avoid damage to the tri-state gate U10.
  • the output end of the tri-state gate U12 can be connected to the power supply 603 through the resistor R6; thus, the power supply 603 can supply power to the tri-state gate U12. And due to the existence of the resistor 6, the current passing through the tri-state gate U12 can be limited to avoid damage to the tri-state gate U12.
  • the power source 603 is a DC power source such as a storage battery or a lithium battery; the resistance value of the resistor R5 and/or the resistor R6 is 1 kilohm.
  • the input end of the tri-state gate U10 is connected to RX1, the output end of the tri-state gate U10 is connected to TX2; the input end of the tri-state gate U12 is connected to RX2, and the output end of the tri-state gate U12 is connected to TX1.
  • the input terminal of the NOT gate U11 is connected to TX1, and the output terminal of the NOT gate U11 is connected to the output control terminal of the tri-state gate U10, that is, the level of TX1 can be used as the output control of the tri-state gate U10 after being converted by the NOT gate U11.
  • the input terminal of the NOT gate U13 is connected to TX2, and the output terminal of the NOT gate U13 is connected to the output control terminal of the tri-state gate U12, that is, the level of TX2 can be used as the output control of the tri-state gate U11 after being converted by the NOT gate U13.
  • TX1, TX2, RX1 and RX2 can all be connected to a power supply device.
  • the power supply device may be a power supply (for example, a DC power supply such as a storage battery or a lithium battery).
  • the power supply connected to TX1 and RX1 may be the power supply for the first transceiver 20 ; the power supply connected to TX2 and RX2 may be the power supply for the second transceiver 40 .
  • the power supply connected to TX1 and TX2 may also be the power supply for the isolation device 30 . In this way, when there is no input signal, the levels of TX1, TX2, RX1, and RX2 are 1.
  • both the tri-state gate U10 and the tri-state gate U12 are low-level enabled tri-state gates.
  • the tri-state gate U10 and the tri-state gate U12 may both be HC125 type tri-state gates, wherein the HC125 type tri-state gate is a low-level enabled tri-state gate.
  • both the tri-state gate U10 and the tri-state gate U12 are high-level enabled tri-state gates.
  • both the tri-state gate U10 and the tri-state gate U12 may include: a HC125 type tri-state gate and a NOT gate, wherein the output control terminal of the HC125 tri-state gate is connected to the output terminal of the NOT gate.
  • the NOT gate U11 and/or the NOT gate U13 are LS04 type NOT gates.
  • the levels of TX1 , RX1 , TX2 , and RX1 are not at 0 at the same time, thereby avoiding the self-locking phenomenon when the CAN bus is connected. This will be described in detail below.
  • the level of RX1 is 0, the level of TX2 is 0, the level of RX2 is 0, and the level of TX1 is 1 (specific content can refer to the content of the invention, and will not be repeated here).
  • the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are not 0 at the same time, so as to avoid the self-locking phenomenon when the CAN bus is connected.
  • the first CAN bus 10 can also send a recessive level signal (that is, a signal with a sending level of 1).
  • a recessive level signal that is, a signal with a sending level of 1.
  • the level of RX1 is 1
  • the level of TX1 is 1
  • the transmission direction of the signal is RX1->TX2->RX2->TX1.
  • RX1 needs to transmit a signal to TX2 through the tri-state gate U10, therefore, it is necessary to judge the relationship between the input terminal and the output terminal of the tri-state gate U10.
  • the level 1 of TX1 becomes level 0 through the NOT gate U11; when the level of the output control terminal of the tri-state gate U10 is 0, the level of the output terminal of the tri-state gate U10 is the same as the level of the input terminal of the tri-state gate U10, so the level of TX2 is the same as the level of RX1, both are 1.
  • the level of RX2 is the same as that of TX2, therefore, the level of RX2 is 1.
  • RX2 needs to transmit signals to TX1 through the tri-state gate U12, therefore, it is necessary to judge the relationship between the input terminal and the output terminal of the tri-state gate U12.
  • the level 1 of TX2 becomes 0 through the NOT gate U13; the level of the output control terminal of the tri-state gate U12 is 0, and the level of the output terminal of the tri-state gate U12 is the same as the level of the input terminal of the tri-state gate U12. Therefore, the level of TX1 connected to the output terminal of U7 is 1. In this way, the level of RX1 is 1, the level of TX2 is 1, the level of RX2 is 1, and the level of TX1 is 1.
  • the second CAN bus 50 sends a signal (that is, the state of the second CAN bus 50 is dominant), the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are not 0 at the same time, so that the self-locking phenomenon can be avoided when the CAN bus is connected.
  • the level of RX1 is 1, and the level of TX1 is 1.
  • the level of TX2 is 1
  • the level of RX2 is 1
  • the level of TX1 is 1. Therefore, through the device shown in Figure 10, when the states of the first CAN bus 10 and the second CAN bus 50 are both idle, the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are different from 0 at the same time, thereby avoiding the self-locking phenomenon when the CAN bus is connected.
  • the level of RX1 is 0, the level of TX2 is 1, the level of RX2 is 1, and the level of TX1 is 1 (specific content can refer to the content of the invention, and will not be repeated here).
  • the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are not 0 at the same time, so as to avoid the self-locking phenomenon when the CAN bus is connected.
  • the first CAN bus 10 can also send a recessive level signal (that is, a signal with a sending level of 1).
  • a recessive level signal that is, a signal with a sending level of 1.
  • the level of RX1 is 1
  • the level of TX1 is 1
  • the transmission direction of the signal is RX1->TX2->RX2->TX1.
  • RX1 needs to transmit a signal to TX2 through the tri-state gate U10, therefore, it is necessary to judge the relationship between the input terminal and the output terminal of the tri-state gate U10.
  • the level 1 of TX1 becomes level 0 through the NOT gate U11; when the level of the output control terminal of the tri-state gate U10 is 0, the output terminal of the tri-state gate U10 is high impedance, which can block the path between RX1 and TX2.
  • TX2 Since TX2 is connected to a power supply device, the level of TX2 is 1. RX2 receives the signal from TX2, so that the level of RX2 is the same as the level of TX2, therefore, the level of RX2 is 1. RX2 needs to transmit signals to TX1 through the tri-state gate U12, therefore, it is necessary to judge the relationship between the input terminal and the output terminal of the tri-state gate U12. The level 1 of TX2 becomes 0 through the NOT gate U13; when the level of the output control terminal of the tri-state gate U12 is 0, the output terminal of the tri-state gate U12 is high impedance, blocking the path between RX2 and TX1. Since TX1 is connected to a power supply device, the level of TX1 is 1. In this way, the level of RX1 is 1, the level of TX2 is 1, the level of RX2 is 1, and the level of TX1 is 1.
  • the second CAN bus 50 sends a signal (that is, the state of the second CAN bus 50 is dominant), the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are not 0 at the same time, so that the self-locking phenomenon can be avoided when the CAN bus is connected.
  • the level of RX1 is 1, and the level of TX1 is 1.
  • the level of TX2 is 1
  • the level of RX2 is 1
  • the level of TX1 is 1. Therefore, through the device shown in Figure 10, when the states of the first CAN bus 10 and the second CAN bus 50 are both idle, the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are different from 0 at the same time, thereby avoiding the self-locking phenomenon when the CAN bus is connected.
  • FIG. 11 shows a possible architecture of the bus processing system 70.
  • the bus processing system 70 includes: a first transceiver 20, a second transceiver 40, and any of the bus processing devices 60; wherein, the connection relationship between the first transceiver 20, the second transceiver 40 and the bus processing device 60 can refer to the above-mentioned embodiments, and will not be repeated here.
  • the bus processing system 70 can realize the effects of any of the bus processing devices 60 described above, which will not be repeated here.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Dc Digital Transmission (AREA)
  • Small-Scale Networks (AREA)

Abstract

A bus processing apparatus and system. The apparatus comprises: a first switch device, a second switch device, a power supply, a first resistor, and a second resistor. A control electrode of the first switch device is connected to a transmit end (i.e., TX1) of a first transceiver, a first electrode is connected to a receiving end (i.e., RX1) of the first transceiver, and a second electrode is connected to a transmit end (i.e., TX2) of a second transceiver and is connected to the power supply by means of the first resistor. A control electrode of the second switch device is connected to TX2, a first electrode is connected to a receiving end (i.e., RX2) of the second transceiver, and a second electrode is connected to TX1 and is connected to the power supply by means of the second resistor. The first switch device is used for: disconnecting a path between RX1 and TX2 when the level of TX1 is a low level. The second switch device is used for: disconnecting a path between RX2 and TX1 when the level of TX2 is a low level. Therefore, a self-locking phenomenon during CAN bus connection can be avoided.

Description

一种总线处理装置及系统A bus processing device and system 技术领域technical field
本申请涉及通信技术领域,尤其涉及一种总线处理装置及系统。The present application relates to the technical field of communications, and in particular to a bus processing device and system.
背景技术Background technique
控制器局域网(controller area network,CAN)总线是一种现场总线,能够有效支持分布式控制系统的串行通信。目前,CAN总线已经广泛应用于工业自动化、船舶、医疗设备、工业设备等领域。The controller area network (CAN) bus is a field bus that can effectively support the serial communication of the distributed control system. At present, CAN bus has been widely used in industrial automation, ships, medical equipment, industrial equipment and other fields.
CAN总线可以以电缆总线的形式互相连接。例如,如图1A所示,第一CAN总线10可以依次通过第一收发器20、隔离装置30和第二收发器40连接至第二CAN总线50。其中,第一收发器20和第一CAN总线10连接,可以通过第一CAN总线10接收或发送信号;第二收发器40和第二CAN总线50连接,可以通过第二CAN总线50接收或发送信号。通过图1A的架构,RX1的电平、TX1的电平、RX2的电平和TX2的电平可能均为低电平,从而导致第一CAN总线10和第二CAN总线50发生自锁现象。其中,RX1为第一收发器20的接收端,TX1为第一收发器20的发送端,RX2为第二收发器40的接收端,TX2为第二收发器40的发送端。The CAN bus can be connected to each other in the form of a cable bus. For example, as shown in FIG. 1A , the first CAN bus 10 may be connected to the second CAN bus 50 through the first transceiver 20 , the isolation device 30 and the second transceiver 40 in sequence. Wherein, the first transceiver 20 is connected to the first CAN bus 10 and can receive or send signals through the first CAN bus 10 ; the second transceiver 40 is connected to the second CAN bus 50 and can receive or send signals through the second CAN bus 50 . Through the architecture of FIG. 1A , the levels of RX1 , TX1 , RX2 , and TX2 may all be low, thus causing self-locking of the first CAN bus 10 and the second CAN bus 50 . Wherein, RX1 is the receiving end of the first transceiver 20 , TX1 is the transmitting end of the first transceiver 20 , RX2 is the receiving end of the second transceiver 40 , and TX2 is the transmitting end of the second transceiver 40 .
发明内容Contents of the invention
本申请提供一种总线处理装置及系统,用于避免CAN总线连接时发生自锁现象。The present application provides a bus processing device and system for avoiding self-locking phenomenon when CAN bus is connected.
第一方面,本申请实施例提供了一种总线处理装置。该方法可以适用于下文图2A或2B所示的系统中。该总线处理装置包括:第一开关器件、第二开关器件、电源、第一电阻和第二电阻。In a first aspect, the embodiment of the present application provides a bus processing device. This method can be adapted for use in the systems shown in Figure 2A or 2B below. The bus processing device includes: a first switch device, a second switch device, a power supply, a first resistor and a second resistor.
其中,第一开关器件的控制电极连接至第一收发器的发送端(下面简称为TX1),第一开关器件的第一电极连接至第一收发器的接收端(下面简称为RX1),第一开关器件的第二电极连接至第二收发器的发送端(下面简称为TX2),第一开关器件的第二电极还通过第一电阻连接至电源。第二开关器件的控制电极连接至第二收发器的发送端,第二开关器件的第一电极连接至第二收发器的接收端(下面简称为RX2),第二开关器件的第二电极连接至第一收发器的发送端,第二开关器件的第二电极还通过第二电阻连接至电源。第一收发器可与第一CAN总线连接,第二收发器可与第二CAN总线连接。Wherein, the control electrode of the first switching device is connected to the transmitting terminal of the first transceiver (hereinafter referred to as TX1), the first electrode of the first switching device is connected to the receiving terminal of the first transceiver (hereinafter referred to as RX1), the second electrode of the first switching device is connected to the transmitting terminal of the second transceiver (hereinafter referred to as TX2), and the second electrode of the first switching device is also connected to the power supply through the first resistor. The control electrode of the second switching device is connected to the sending end of the second transceiver, the first electrode of the second switching device is connected to the receiving end of the second transceiver (hereinafter referred to as RX2), the second electrode of the second switching device is connected to the sending end of the first transceiver, and the second electrode of the second switching device is also connected to the power supply through the second resistor. The first transceiver is connectable to the first CAN bus, and the second transceiver is connectable to the second CAN bus.
第一开关器件用于:当第一收发器的发送端的电平为低电平时,断开第一收发器的接收端和第二收发器的发送端之间的通路;第二开关器件用于:当第二收发器的发送端的电平为低电平时,断开第二收发器的接收端和第一收发器的发送端之间的通路。The first switching device is used for: disconnecting the path between the receiving end of the first transceiver and the transmitting end of the second transceiver when the level of the transmitting end of the first transceiver is low; the second switching device is used for disconnecting the path between the receiving end of the second transceiver and the transmitting end of the first transceiver when the level of the transmitting end of the second transceiver is low.
通过该装置中的两个简单的开关器件,就可以使RX1的电平、TX1的电平、RX2的电平和TX2的电平不同时为低电平,从而避免CAN总线连接时发生自锁现象,下面对此进行具体说明。Through the two simple switching devices in the device, the levels of RX1, TX1, RX2 and TX2 can be different from being low at the same time, so as to avoid the self-locking phenomenon when the CAN bus is connected, which will be explained in detail below.
当第一CAN总线发送信号时,TX1的电平为高电平,RX1的电平为低电平。信号的传输方向为RX1->TX2->RX2->TX1。When the first CAN bus sends a signal, the level of TX1 is high level, and the level of RX1 is low level. The transmission direction of the signal is RX1->TX2->RX2->TX1.
在第一种可能的情况下,当TX1的电平为高电平时,第一开关器件导通RX1和TX2 之间的通路,RX1可向TX2传递来自第一CAN总线的信号,从而使得TX2的电平与RX1的电平相同,均为低电平。RX2接收来自TX2的信号,从而使得RX2的电平与TX2的电平相同,均为低电平。由于TX2的电平为低电平,第二开关器件断开RX2和TX1之间的通路,TX1的电平为自身的静态电平。由于TX1连接有供电装置(例如,为第一收发器供电的电源或者为隔离装置供电的电源),因此,TX1的电平为高电平。这样,在第一种可能的情况下,RX1的电平、TX2的电平和RX2的电平为低电平,TX1的电平为高电平。In the first possible situation, when the level of TX1 is high level, the first switching device conducts the path between RX1 and TX2, and RX1 can transmit the signal from the first CAN bus to TX2, so that the level of TX2 is the same as the level of RX1, both of which are low level. RX2 receives the signal from TX2, so that the level of RX2 is the same as the level of TX2, both of which are low level. Since the level of TX2 is low level, the second switching device disconnects the path between RX2 and TX1, and the level of TX1 is its own static level. Since TX1 is connected to a power supply device (for example, a power supply for the first transceiver or a power supply for the isolation device), the level of TX1 is high. In this way, in the first possible situation, the levels of RX1, TX2 and RX2 are low level, and the level of TX1 is high level.
在第二种可能的情况下,当TX1的电平为高电平时,第一开关器件断开RX1和TX2之间的通路,TX2的电平为自身的静态电平。由于TX2连接有供电装置(例如,为第二收发器供电的电源),TX2的电平为高电平。RX2接收来自TX2的信号,从而使得RX2的电平与TX2的电平相同,均为高电平。In the second possible situation, when the level of TX1 is high level, the first switching device disconnects the path between RX1 and TX2, and the level of TX2 is its own static level. Since TX2 is connected to a power supply device (for example, a power supply for the second transceiver), the level of TX2 is high level. RX2 receives the signal from TX2, so that the level of RX2 is the same as the level of TX2, both of which are high level.
然后,第二种情况可以有两个分支。Then, the second case can have two branches.
分支一:若TX2的电平为高电平时,第二开关器件导通RX2和TX1之间的通路,则TX1的电平与RX2的电平相同,均为高电平。这样,在第二种可能的情况的分支一中,RX1的电平为低电平,TX2的电平、RX2的电平和TX1的电平为高电平。Branch 1: if the level of TX2 is high level, the second switching device turns on the path between RX2 and TX1, then the level of TX1 is the same as the level of RX2, both of which are high level. In this way, in branch one of the second possible situation, the level of RX1 is low level, the level of TX2, the level of RX2 and the level of TX1 are high level.
分支二:若TX2的电平为高电平时,第二开关器件断开RX2和TX1之间的通路,则TX1的电平为自身的静态电平。由于TX1连接有供电装置,TX1的电平为高电平。这样,在第二种可能的情况的分支二中,RX1的电平为低电平,TX2的电平、RX2的电平和TX1的电平为高电平。Branch two: if the level of TX2 is high level, the second switching device disconnects the path between RX2 and TX1, and the level of TX1 is its own static level. Since TX1 is connected with a power supply device, the level of TX1 is high level. In this way, in branch two of the second possible situation, the level of RX1 is low level, the level of TX2, the level of RX2 and the level of TX1 are high level.
综上,当第一CAN总线发送信号时,不管是何种情况,TX1的电平为1。这样,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为0,从而避免CAN总线连接时发生自锁现象。To sum up, when the first CAN bus sends a signal, no matter what the situation is, the level of TX1 is 1. In this way, the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are not 0 at the same time, so as to avoid the self-locking phenomenon when the CAN bus is connected.
类似的,当第二CAN总线发送信号时,TX2的电平为1。这样,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为0,从而避免CAN总线连接时发生自锁现象。Similarly, when the second CAN bus sends a signal, the level of TX2 is 1. In this way, the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are not 0 at the same time, so as to avoid the self-locking phenomenon when the CAN bus is connected.
在一种可能的设计中,第一开关器件和第二开关器件中的任一开关器件为以下至少一项:三极管、N型金属氧化物半导体场效应晶体管。通过该设计,总线处理装置中包含简单的三极管或N型金属氧化物半导体场效应晶体管,就可以避免CAN总线连接时发生自锁现象,具有结构简单和低成本的优点。In a possible design, any one of the first switching device and the second switching device is at least one of the following: a transistor and an N-type metal oxide semiconductor field effect transistor. Through this design, the bus processing device includes a simple triode or N-type metal oxide semiconductor field effect transistor, which can avoid the self-locking phenomenon when the CAN bus is connected, and has the advantages of simple structure and low cost.
在一种可能的设计中,当第一开关器件和第二开关器件中的任一开关器件为三极管时,任一开关器件的控制电极为基极,任一开关器件的第一电极为发射极,任一开关器件的第二电极为集电极;或者,当第一开关器件和第二开关器件中的任一开关器件为N型金属氧化物半导体场效应晶体管时,任一开关器件的控制电极为栅极,任一开关器件的第一电极为漏极,任一开关器件的第二电极为源极;或者,当第一开关器件和第二开关器件中的任一开关器件为N型金属氧化物半导体场效应晶体管时,任一开关器件的控制电极为栅极,任一开关器件的第一电极为源极,任一开关器件的第二电极为漏极。该设计提供了开关器件与其他设备连接的多种方式,设计较为灵活。In a possible design, when any switching device in the first switching device and the second switching device is a triode, the control electrode of any switching device is a base, the first electrode of any switching device is an emitter, and the second electrode of any switching device is a collector; or, when any switching device in the first switching device and the second switching device is an N-type metal oxide semiconductor field effect transistor, the control electrode of any switching device is a gate, the first electrode of any switching device is a drain, and the second electrode of any switching device is a source; When any switching device is an NMOS field effect transistor, the control electrode of any switching device is a gate, the first electrode of any switching device is a source, and the second electrode of any switching device is a drain. This design provides a variety of ways for the switch device to connect with other devices, and the design is more flexible.
在一种可能的设计中,上述装置还包括:第一二极管和第二二极管。其中,第一二极管的正极连接至第一收发器的接收端,第一二极管的负极连接至第二收发器的发送端;第二二极管的正极连接至第二收发器的接收端,第二二极管的负极连接至第一收发器的发送端。通过该设计,第一二极管与第一开关器件并联,可以加速第一开关器件的断开;第二二极管与第二开关器件并联,可以加速第二开关器件的断开。由于开关器件的断开可避免 CAN总线连接时的自锁现象,因此,加速开关器件的断开可以加速避免CAN总线连接时的自锁现象。In a possible design, the above device further includes: a first diode and a second diode. Wherein, the anode of the first diode is connected to the receiving end of the first transceiver, the cathode of the first diode is connected to the sending end of the second transceiver; the anode of the second diode is connected to the receiving end of the second transceiver, and the cathode of the second diode is connected to the sending end of the first transceiver. With this design, the first diode is connected in parallel with the first switching device, which can speed up the disconnection of the first switching device; the second diode is connected in parallel with the second switching device, which can speed up the disconnection of the second switching device. Since the disconnection of the switch device can avoid the self-locking phenomenon when the CAN bus is connected, therefore, accelerating the disconnection of the switch device can accelerate the avoidance of the self-locking phenomenon when the CAN bus is connected.
在一种可能的设计中,上述装置还可包括:第一电容和第二电容。第一电容的两端分别连接至第一收发器的接收端和第二收发器的发送端;第二电容的两端分别连接至第二收发器的接收端和第一收发器的发送端。通过该设计,第一电容与第一开关器件并联,从而可以对第一开关器件的信号进行滤波;第二电容与第二开关器件并联,从而可以对第二开关器件的信号进行滤波。In a possible design, the above device may further include: a first capacitor and a second capacitor. Both ends of the first capacitor are respectively connected to the receiving end of the first transceiver and the sending end of the second transceiver; two ends of the second capacitor are respectively connected to the receiving end of the second transceiver and the sending end of the first transceiver. Through this design, the first capacitor is connected in parallel with the first switching device, so that the signal of the first switching device can be filtered; the second capacitor is connected in parallel with the second switching device, so that the signal of the second switching device can be filtered.
在一种可能的设计中,上述装置还可包括第三电阻和/或第四电阻。第一开关器件的控制电极通过第三电阻连接至第一收发器的发送端;第二开关器件的控制电极通过第四电阻连接至第二收发器的发送端。In a possible design, the above device may further include a third resistor and/or a fourth resistor. The control electrode of the first switching device is connected to the sending end of the first transceiver through the third resistor; the control electrode of the second switching device is connected to the sending end of the second transceiver through the fourth resistor.
通过该设计,第三电阻可以对输入到第一开关器件的控制电极的电流进行限流,从而可以避免因电流过大而损伤第一开关器件,进而可以提高第一开关器件的性能和使用寿命。第四电阻可以对输入到第二开关器件的控制电极的电流进行限流,从而可以避免因电流过大而损伤第二开关器件,进而可以提高第二开关器件的性能和使用寿命。Through this design, the third resistor can limit the current input to the control electrode of the first switching device, so as to avoid damage to the first switching device due to excessive current, thereby improving the performance and service life of the first switching device. The fourth resistor can limit the current input to the control electrode of the second switching device, thereby avoiding damage to the second switching device due to excessive current, thereby improving the performance and service life of the second switching device.
第二方面,本申请实施例提供了一种总线处理装置。该方法可以适用于下文图2A或2B所示的系统中。该总线处理装置包括:第一三态门、第二三态门、第一非门、第二非门、电源、第五电阻和第六电阻。其中,第一三态门的输入端连接至第一收发器的接收端(下面简称为RX1),第一三态门的输出端连接至第二收发器的发送端(下面简称为TX2),第一三态门的输出端还通过第五电阻连接至电源;第二三态门的输入端连接至第二收发器的接收端(下面简称为RX2),第二三态门的输出端连接至第一收发器的发送端(下面简称为TX1),第二三态门的输出端还通过第六电阻连接至电源;第一非门的输入端连接至第一收发器的发送端,第一非门的输出端连接至第一三态门的输出控制端;第二非门的输入端连接至第二收发器的发送端,第二非门的输出端连接至第二三态门的输出控制端;其中,第一收发器与第一CAN总线连接,第二收发器与第二CAN总线连接。第一三态门和第二三态门可以均为低电平使能的三态门;或者,第一三态门和第二三态门可以均为高电平使能的三态门。In a second aspect, the embodiment of the present application provides a bus processing device. This method can be adapted for use in the systems shown in Figure 2A or 2B below. The bus processing device includes: a first tri-state gate, a second tri-state gate, a first NOT gate, a second NOT gate, a power supply, a fifth resistor and a sixth resistor. Wherein, the input end of the first tri-state gate is connected to the receiving end of the first transceiver (hereinafter referred to as RX1), the output end of the first tri-state gate is connected to the transmitting end of the second transceiver (hereinafter referred to as TX2), the output end of the first tri-state gate is also connected to the power supply through the fifth resistor; the input end of the second tri-state gate is connected to the receiving end of the second transceiver (hereinafter referred to as RX2), the output end of the second tri-state gate is connected to the transmitting end of the first transceiver (hereinafter referred to as TX1), and the output end of the second tri-state gate is also connected to the power supply through the fifth resistor; Connected to the power supply; the input end of the first NOT gate is connected to the sending end of the first transceiver, and the output end of the first NOT gate is connected to the output control end of the first tri-state gate; the input end of the second NOT gate is connected to the sending end of the second transceiver, and the output end of the second NOT gate is connected to the output control end of the second tri-state gate; wherein, the first transceiver is connected with the first CAN bus, and the second transceiver is connected with the second CAN bus. Both the first tri-state gate and the second tri-state gate may be tri-state gates enabled with a low level; or, both the first tri-state gate and the second tri-state gate may be tri-state gates enabled with a high level.
通过该装置中的简单的器件,使RX1的电平、TX1的电平、RX2的电平和TX2的电平不同时为低电平,从而避免CAN总线连接时发生自锁现象。下面对此进行具体说明。Through the simple devices in the device, the levels of RX1, TX1, RX2 and TX2 are not low at the same time, so as to avoid the self-locking phenomenon when the CAN bus is connected. This will be described in detail below.
情形1:第一三态门和第二三态门均为低电平使能的三态门。Case 1: Both the first tri-state gate and the second tri-state gate are tri-state gates enabled with a low level.
当第一CAN总线发送信号(即第一CAN总线的状态为显性)时,TX1的电平为高电平,RX1的电平为低电平,信号的传输方向为RX1->TX2->RX2->TX1。RX1需要通过第一三态门向TX2传递信号,因此,需要判断第一三态门的输入端和输出端之间的关系。TX1的高电平经过第一非门变成低电平;第一三态门的输出控制端为低电平时,第一三态门输出端的电平和第一三态门输入端的电平相同,因此,TX2的电平为低电平。RX2接收到来自TX2的信号,从而使得RX2的电平与TX2的电平相同,因此,RX2的电平为低电平。RX2需要通过第二三态门向TX1传递信号,因此,需要判断第二三态门的输入端和输出端之间的关系。TX2的低电平经过第二非门变成高电平;第二三态门的输出控制端为高电平时,第二三态门的输出端为高阻,阻断了RX2和TX1之间的通路。由于TX1连接有供电装置,因此,TX1的电平为高电平。这样,在情形1中,RX1的电平、TX2的电平和RX2的电平为低电平, TX1的电平为高电平。When the first CAN bus sends a signal (that is, the state of the first CAN bus is dominant), the level of TX1 is high level, the level of RX1 is low level, and the transmission direction of the signal is RX1->TX2->RX2->TX1. RX1 needs to transmit a signal to TX2 through the first tri-state gate, therefore, the relationship between the input terminal and the output terminal of the first tri-state gate needs to be judged. The high level of TX1 becomes low level through the first NOT gate; when the output control terminal of the first tristate gate is low level, the level of the output terminal of the first tristate gate is the same as the level of the input terminal of the first tristate gate, so the level of TX2 is low level. RX2 receives the signal from TX2, so that the level of RX2 is the same as the level of TX2, therefore, the level of RX2 is low level. RX2 needs to transmit a signal to TX1 through the second tri-state gate, therefore, the relationship between the input terminal and the output terminal of the second tri-state gate needs to be judged. The low level of TX2 becomes high level through the second NOT gate; when the output control terminal of the second tristate gate is high level, the output terminal of the second tristate gate is high impedance, blocking the path between RX2 and TX1. Since TX1 is connected to a power supply device, the level of TX1 is high level. Thus, in case 1, the levels of RX1, TX2 and RX2 are low, and the level of TX1 is high.
因此,当第一CAN总线发送信号时,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为低电平,从而可以避免CAN总线连接时发生自锁现象。Therefore, when the first CAN bus sends a signal, the levels of TX1, RX1, TX2, and RX1 are not low at the same time, thereby avoiding the self-locking phenomenon when the CAN bus is connected.
类似的,当第二CAN总线发送信号(即第二CAN总线的状态为显性)时,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为低电平,从而可以避免CAN总线连接时发生自锁现象。Similarly, when the second CAN bus sends a signal (that is, the state of the second CAN bus is dominant), the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are not low at the same time, thereby avoiding the self-locking phenomenon when the CAN bus is connected.
情形2:第一三态门和第二三态门均为高电平使能的三态门。Case 2: Both the first tri-state gate and the second tri-state gate are high-level enabled tri-state gates.
当第一CAN总线发送信号(即第一CAN总线的状态为显性)时,TX1的电平为高电平,RX1的电平为低电平,信号的传输方向为RX1->TX2->RX2->TX1。RX1需要通过第一三态门向TX2传递信号,因此,需要判断第一三态门的输入端和输出端之间的关系。TX1的高电平经过第一非门变成低电平;当第一三态门的输出控制端为低电平时,第一三态门的输出端为高阻,可阻断RX1和TX2之间的通路。由于TX2连接有供电装置,因此,TX2的电平为高电平。RX2接收到来自TX2的信号,从而使得RX2的电平与TX2的电平相同,因此,RX2的电平为高电平。RX2需要通过第二三态门向TX1传递信号,因此,需要判断第二三态门的输入端和输出端之间的关系。TX2的高电平经过第二非门变成低电平;第二三态门的输出控制端为低电平时,第二三态门的输出端为高阻,从而阻断RX2和TX1之间的通路。由于TX1连接有供电装置,因此,TX1的电平为高电平。这样,在情形2中,RX1的电平为低电平,TX2的电平、RX2的电平和TX1的电平为高电平。When the first CAN bus sends a signal (that is, the state of the first CAN bus is dominant), the level of TX1 is high level, the level of RX1 is low level, and the transmission direction of the signal is RX1->TX2->RX2->TX1. RX1 needs to transmit a signal to TX2 through the first tri-state gate, therefore, the relationship between the input terminal and the output terminal of the first tri-state gate needs to be judged. The high level of TX1 becomes low level through the first NOT gate; when the output control terminal of the first tristate gate is low level, the output terminal of the first tristate gate is high impedance, which can block the path between RX1 and TX2. Since TX2 is connected with a power supply device, the level of TX2 is high level. RX2 receives the signal from TX2, so that the level of RX2 is the same as the level of TX2, therefore, the level of RX2 is high level. RX2 needs to transmit a signal to TX1 through the second tri-state gate, therefore, the relationship between the input terminal and the output terminal of the second tri-state gate needs to be judged. The high level of TX2 becomes low level through the second NOT gate; when the output control terminal of the second tristate gate is low level, the output terminal of the second tristate gate is high impedance, thereby blocking the path between RX2 and TX1. Since TX1 is connected to a power supply device, the level of TX1 is high level. In this way, in case 2, the level of RX1 is low level, the level of TX2, the level of RX2 and the level of TX1 are high level.
因此,当第一CAN总线发送信号时,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为低电平,从而可以避免CAN总线连接时发生自锁现象。Therefore, when the first CAN bus sends a signal, the levels of TX1, RX1, TX2, and RX1 are not low at the same time, thereby avoiding the self-locking phenomenon when the CAN bus is connected.
类似的,当第二CAN总线发送信号(即第二CAN总线的状态为显性)时,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为低电平,从而可以避免CAN总线连接时发生自锁现象。Similarly, when the second CAN bus sends a signal (that is, the state of the second CAN bus is dominant), the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are not low at the same time, thereby avoiding the self-locking phenomenon when the CAN bus is connected.
第三方面,本申请实施例提供了一种总线处理系统,包括:上述任一种总线处理装置,第一收发器,以及第二收发器。In a third aspect, an embodiment of the present application provides a bus processing system, including: any bus processing device described above, a first transceiver, and a second transceiver.
上述第三方面可以达到的技术效果可以参照上述第一方面或第二方面中任一方面中任一种可能设计可以达到的技术效果说明,重复之处不予论述。The technical effects that can be achieved in the above third aspect can be described with reference to the technical effects that can be achieved by any possible design in any of the above first or second aspects, and the repetition will not be discussed.
附图说明Description of drawings
图1A为一种通信系统的示意图;FIG. 1A is a schematic diagram of a communication system;
图1B为另一种通信系统的示意图;FIG. 1B is a schematic diagram of another communication system;
图2A为本申请实施例提供的总线处理装置适用的一种系统的示意图;FIG. 2A is a schematic diagram of a system applicable to the bus processing device provided in the embodiment of the present application;
图2B为本申请实施例提供的总线处理装置适用的另一种系统的示意图;FIG. 2B is a schematic diagram of another system applicable to the bus processing device provided in the embodiment of the present application;
图3为本申请实施例提供的一种总线处理装置的结构示意图;FIG. 3 is a schematic structural diagram of a bus processing device provided in an embodiment of the present application;
图4、图5、图6、图7A-图7D分别为本申请实施例提供的一种总线处理装置的扩展方案的示意图;Fig. 4, Fig. 5, Fig. 6, and Fig. 7A-Fig. 7D are respectively schematic diagrams of an expansion scheme of a bus processing device provided in the embodiment of the present application;
图8为本申请实施例提供的一种总线处理装置的一种实现方式的示意图;FIG. 8 is a schematic diagram of an implementation of a bus processing device provided in an embodiment of the present application;
图9为本申请实施例提供的一种总线处理装置的另一种实现方式的示意图;FIG. 9 is a schematic diagram of another implementation of a bus processing device provided in an embodiment of the present application;
图10为本申请实施例提供的另一种总线处理装置的结构示意图;FIG. 10 is a schematic structural diagram of another bus processing device provided by an embodiment of the present application;
图11为本申请实施例提供的一种总线处理系统的示意图。FIG. 11 is a schematic diagram of a bus processing system provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请提供一种总线处理装置及系统,用以避免CAN总线连接时发生自锁现象。The present application provides a bus processing device and system to avoid self-locking phenomenon when CAN bus is connected.
在本申请实施例提供的方案中,总线处理装置包括第一开关器件、第二开关器件、电源、第一电阻和第二电阻。其中,第一开关器件的控制电极可连接至第一收发器的发送端(下面简称为TX1),第一开关器件的第一电极可连接至第一收发器的接收端(下面简称为RX1),第一开关器件的第二电极可连接至第二收发器的发送端(下面简称为TX2),第一开关器件的第二电极还通过第一电阻连接至电源;第二开关器件的控制电极可连接至TX2,第二开关器件的第一电极可连接至第二收发器的接收端(下面简称为RX2),第二开关器件的第二电极可连接至TX1,第二开关器件的第二电极还通过第二电阻连接至电源。第一收发器为与第一CAN总线连接的收发器,第二收发器为与第二CAN总线连接的收发器。第一开关器件可用于:当TX1的电平为低电平时,断开RX1和TX2之间的通路;第二开关器件可用于:当TX2的电平为低电平时,断开RX2和TX1之间的通路。In the solution provided by the embodiment of the present application, the bus processing device includes a first switching device, a second switching device, a power supply, a first resistor, and a second resistor. Wherein, the control electrode of the first switching device can be connected to the transmitting terminal of the first transceiver (hereinafter referred to as TX1), the first electrode of the first switching device can be connected to the receiving terminal of the first transceiver (hereinafter referred to as RX1), the second electrode of the first switching device can be connected to the transmitting terminal of the second transceiver (hereinafter referred to as TX2), and the second electrode of the first switching device is also connected to the power supply through the first resistor; the control electrode of the second switching device can be connected to TX2, and the first electrode of the second switching device can be connected to the receiving terminal of the second transceiver (hereinafter referred to as RX2), A second electrode of the second switching device may be connected to TX1, and the second electrode of the second switching device is also connected to a power source through a second resistor. The first transceiver is a transceiver connected to the first CAN bus, and the second transceiver is a transceiver connected to the second CAN bus. The first switching device can be used to disconnect the path between RX1 and TX2 when the level of TX1 is low; the second switching device can be used to disconnect the path between RX2 and TX1 when the level of TX2 is low.
通过该方案,当第一CAN总线发送信号时,TX1的电平为1(具体内容可以参考发明内容,此处不再赘述)。这样,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为0,从而可避免CAN总线连接时发生自锁现象。当第二CAN总线发送信号时,TX2的电平为1。也就是说,TX1的电平、RX1的电平、TX2的电平、RX1的电平也不同时为0,从而可避免CAN总线连接时发生自锁现象。Through this solution, when the first CAN bus sends a signal, the level of TX1 is 1 (for details, please refer to the summary of the invention, which will not be repeated here). In this way, the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are not 0 at the same time, so as to avoid the self-locking phenomenon when the CAN bus is connected. When the second CAN bus sends a signal, the level of TX2 is 1. That is to say, the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are also 0 at the same time, so as to avoid the self-locking phenomenon when the CAN bus is connected.
以下,对本申请实施例中的部分用语进行解释说明,以便于本领域技术人员理解。In the following, some terms used in the embodiments of the present application are explained, so as to facilitate the understanding of those skilled in the art.
1)、本申请中,当0和1表示电平时,0表示低电平,1表示高电平。其中,高电平大于低电平。1) In this application, when 0 and 1 represent levels, 0 represents low level and 1 represents high level. Wherein, the high level is greater than the low level.
例如,对于晶体管-晶体管逻辑集成电路(transistor-transistor logic,TTL)电平,高电平大于2.4伏特(V),可以用1来表示;低电平小于0.4V,可以用0来表示。又例如,对于互补金属氧化物半导体(complemetary metal oxide semiconductor,CMOS)电平,高电平大于4.99V,可以用1来表示;低电平小于0.01V,可以用0来表示。For example, for a transistor-transistor logic (TTL) level, a high level greater than 2.4 volts (V) can be represented by 1; a low level less than 0.4V can be represented by 0. For another example, for a complementary metal oxide semiconductor (complementary metal oxide semiconductor, CMOS) level, a high level greater than 4.99V can be represented by 1; a low level less than 0.01V can be represented by 0.
2)、CAN总线,是一种能够支持分布式控制系统的串行通信的总线。2) The CAN bus is a bus that can support serial communication of a distributed control system.
CAN总线可以根据差分电平来传输信号。具体的,CAN总线可以为双绞线,两条线可分别称为CAN_H和CAN_L。当没有信号传输时,CAN_H和CAN_L的电压相同(例如,CAN_H和CAN_L的电压均为2.5伏特(V)),即CAN_H和CAN_L差值为0;此时,CAN_H和CAN_L的电平均为0,CAN总线的状态为隐性(也可以称为空闲)。当有信号传输时,CAN_H和CAN_L的电压不同(例如,CAN_H的电压为3.5V,CAN_L的电压为1.5V),从而产生电压差;此时CAN_H的电平为1,CAN_L的电平为0,CAN总线的状态为显性。The CAN bus can transmit signals according to differential levels. Specifically, the CAN bus can be a twisted pair, and the two lines can be called CAN_H and CAN_L respectively. When there is no signal transmission, the voltages of CAN_H and CAN_L are the same (for example, the voltages of CAN_H and CAN_L are both 2.5 volts (V)), that is, the difference between CAN_H and CAN_L is 0; at this time, the levels of CAN_H and CAN_L are both 0, and the state of the CAN bus is recessive (also called idle). When there is signal transmission, the voltages of CAN_H and CAN_L are different (for example, the voltage of CAN_H is 3.5V, and the voltage of CAN_L is 1.5V), resulting in a voltage difference; at this time, the level of CAN_H is 1, the level of CAN_L is 0, and the state of the CAN bus is dominant.
3)、本申请中的收发器,用于从CAN总线接收信号和/或向CAN总线发送信号。3) The transceiver in the present application is used for receiving signals from the CAN bus and/or sending signals to the CAN bus.
当CAN总线的状态为显性时,收发器可从CAN总线接收信号,并将来自CAN总线的信号转换为TTL电平。此时,收发器的接收端的电平为0,收发器的发送端的电平为1。When the state of the CAN bus is dominant, the transceiver can receive signals from the CAN bus and convert the signals from the CAN bus to TTL level. At this time, the level of the receiving end of the transceiver is 0, and the level of the transmitting end of the transceiver is 1.
当收发器的发送端的电平为0时,表示该收发器有信号要发送,需要占用CAN总线,从而使得CAN总线的状态为用于传输信号的显性。When the level of the sending end of the transceiver is 0, it means that the transceiver has a signal to send and needs to occupy the CAN bus, so that the state of the CAN bus is dominant for transmitting signals.
本申请中的收发器可以为传感器或电子设备等设备。其中,传感器可以为:速度传感 器、温度传感器或湿度传感器等。电子设备可以为是具有处理器的计算机设备,例如台式计算机、个人计算机或服务器等。还应当理解的是,电子设备也可以是具有处理器的便携式电子设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴设备(如智能手表)、车载设备等。便携式电子设备的示例性实施例包括但不限于搭载
Figure PCTCN2022072595-appb-000001
或者其它操作系统的便携式电子设备。
The transceiver in this application may be a device such as a sensor or an electronic device. Wherein, the sensor may be: a speed sensor, a temperature sensor or a humidity sensor and the like. The electronic device may be a computer device with a processor, such as a desktop computer, a personal computer, or a server. It should also be understood that the electronic device may also be a portable electronic device with a processor, such as a mobile phone, a tablet computer, a wearable device with a wireless communication function (such as a smart watch), a vehicle-mounted device, and the like. Exemplary embodiments of portable electronic devices include, but are not limited to
Figure PCTCN2022072595-appb-000001
Or portable electronic devices with other operating systems.
在本申请中,收发器也可以被替换能够将CAN总线的信号转换成TTL电平的设备,例如,电平转换器。In this application, the transceiver can also be replaced by a device capable of converting the signal of the CAN bus into a TTL level, for example, a level converter.
4)、三态门,也可以称为三态输出电路,是一种逻辑器件。三态门包括输入端、输出端和输出控制端;在输出控制端的控制下,三态门可以输出三种不同的输出值:0(对应于低电平)、1(对应于高电平)和高阻。4) A tri-state gate, also known as a tri-state output circuit, is a logic device. The tri-state gate includes an input terminal, an output terminal and an output control terminal; under the control of the output control terminal, the tri-state gate can output three different output values: 0 (corresponding to low level), 1 (corresponding to high level) and high impedance.
三态门可以为低电平使能的三态门或高电平使能的三态门。The tri-state gate can be a low-level enabled tri-state gate or a high-level enabled tri-state gate.
当三态门为低电平使能的三态门时,若输出控制端的电平为0,输出端的电平和输入端的电平相同;若输出控制端的电平为1,输出端的状态为高阻。具体的,低电平使能的三态门的输入端、输出端和输出控制端的电平的对应关系如表1所示。When the three-state gate is a low-level enabled three-state gate, if the level of the output control terminal is 0, the level of the output terminal is the same as that of the input terminal; if the level of the output control terminal is 1, the state of the output terminal is high impedance. Specifically, the corresponding relationship of the levels of the input terminal, the output terminal and the output control terminal of the low-level enabled tri-state gate is shown in Table 1.
表1Table 1
输出控制端的电平The level of the output control terminal 输入端的电平input level 输出端的电平output level
11 0或10 or 1 高阻high resistance
00 00 00
00 11 11
当三态门为高电平使能的三态门时,若输出控制端的电平为1,输出端的电平和输入端的电平相同;若输出控制端的电平为0,输出端的状态为高阻。具体的,高电平使能的三态门的输入端、输出端和输出控制端的电平的对应关系如表2所示。When the tri-state gate is a high-level enabled tri-state gate, if the level of the output control terminal is 1, the level of the output terminal is the same as the level of the input terminal; if the level of the output control terminal is 0, the state of the output terminal is high impedance. Specifically, the corresponding relationship of the levels of the input terminal, the output terminal and the output control terminal of the high-level enabled tri-state gate is shown in Table 2.
表2Table 2
输出控制端的电平The level of the output control terminal 输入端的电平input level 输出端的电平output level
00 0或10 or 1 高阻 high resistance
11 00 00
11 11 11
5)、电气隔离,是指将电源与用电回路做电气上的隔离,即将用电的分支电路与整个电气系统隔离,使之成为一个在电气上被隔离的、独立的不接地安全系统,以防止在裸露导体故障带电情况下发生间接触电的危险。5) Electrical isolation refers to the electrical isolation of the power supply and the electrical circuit, that is, the electrical isolation of the branch circuit from the entire electrical system, making it an electrically isolated, independent ungrounded safety system, in order to prevent the risk of indirect electrical contact when the exposed conductor is faulty and charged.
6)、本申请中的连接可以是直接连接,也可以是通过一个或多个模块或通过一个或多个设备连接。例如,A与B连接,或者A连接至B,可以表示:A直接与B连接,或者A通过C与B连接。其中,C可以表示一个或多个模块,也可以表示一个或多个设备。6). The connection in this application may be a direct connection, or a connection through one or more modules or one or more devices. For example, A is connected to B, or A is connected to B, may mean: A is directly connected to B, or A is connected to B through C. Wherein, C may represent one or more modules, and may also represent one or more devices.
7)、本申请中,RX1为第一收发器20的接收端,TX1为第一收发器20的发送端,RX2为第二收发器40的接收端,TX2为第二收发器40的发送端。7) In this application, RX1 is the receiving end of the first transceiver 20, TX1 is the transmitting end of the first transceiver 20, RX2 is the receiving end of the second transceiver 40, and TX2 is the transmitting end of the second transceiver 40.
本申请实施例中,对于名词的数目,除非特别说明,表示“单数名词或复数名词”,即"一个或多个”。“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。“以下至少一项(个)”或其类似表达,是指这些项(个)中的任意组合,包括单项(个)或复数项(个)的任意组合。In the embodiments of the present application, for the number of nouns, unless otherwise specified, it means "singular noun or plural noun", that is, "one or more". "At least one" means one or more, and "plurality" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three kinds of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. "At least one (individual) of the following" or similar expressions refer to any combination of these items (individuals), including any combination of a single item (individuals) or a plurality of item (individuals).
另外,需要理解的是,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不应理解为指示或暗示相对重要性,也不应理解为指示或暗示顺序。In addition, it should be understood that in the description of the present application, words such as "first" and "second" are only used for the purpose of distinguishing the description, and should not be interpreted as indicating or implying relative importance, nor should they be understood as indicating or implying order.
目前,当两个CAN总线连接时,可能发生自锁现象。下面结合图1A对此进行具体说明。Currently, when two CAN buses are connected, a self-locking phenomenon may occur. This will be specifically described below in conjunction with FIG. 1A .
图1A示出了两个CAN总线连接后的一种可能的系统结构图。如图1A所示,该系统包括:第一CAN总线10、第一收发器20、隔离装置30、第二收发器40、第二CAN总线50。第一CAN总线10可依次通过第一收发器20、隔离装置30和第二收发器40与第二CAN总线50连接。Fig. 1A shows a possible system structure diagram after two CAN buses are connected. As shown in FIG. 1A , the system includes: a first CAN bus 10 , a first transceiver 20 , an isolation device 30 , a second transceiver 40 , and a second CAN bus 50 . The first CAN bus 10 can be connected to the second CAN bus 50 through the first transceiver 20 , the isolation device 30 and the second transceiver 40 in sequence.
其中,第一CAN总线10、第一收发器20、第二收发器40和第二CAN总线50的具体内容可以参考名词解释部分中对CAN总线和收发器的说明,重复之处不再赘述。Wherein, the specific content of the first CAN bus 10 , the first transceiver 20 , the second transceiver 40 and the second CAN bus 50 can refer to the description of the CAN bus and transceivers in the glossary of terms, and the repeated parts will not be repeated.
隔离装置30用于实现第一CAN总线10和第二CAN总线50之间的电气隔离。例如,隔离装置30可以为隔离变压器、光电耦合元件等设备。隔离装置30两侧的电平是相同的。The isolation device 30 is used to realize electrical isolation between the first CAN bus 10 and the second CAN bus 50 . For example, the isolation device 30 may be equipment such as an isolation transformer, a photoelectric coupling element, and the like. The levels on both sides of the isolation device 30 are the same.
如图1A所示,当第一CAN总线10发送信号时,第一CAN总线10的状态为显性,信号的传输路径为RX1->TX2->RX2->TX1->RX1。由于第一CAN总线10的状态为显性,CAN_H1的电压高于CAN_L1,RX1的电平为0。隔离装置30两端的电平相同,因此,TX2的电平与RX1的电平相同,均为0。RX2接收来自TX2的信号,因此,RX2的电平与TX2的电平相同,均为0。由于隔离装置两端的电平相同,TX1的电平与RX2的电平相同,均为0。由于TX1的电平为0,RX1接收来自TX1的信号,使得RX1的电平为0。重复上述过程,RX1、TX1、RX2和TX2的电平持续为0。如前所述,当收发器的发送端的电平为0时,表示该收发器有信号要发送,需要占用CAN总线,从而使得CAN总线的状态为用于传输信号的显性。因此,TX1的电平持续为0,会使得第一CAN总线10的状态持续为显性,进而无法释放第一CAN总线10,形成CAN总线的自锁现象。As shown in FIG. 1A , when the first CAN bus 10 sends a signal, the state of the first CAN bus 10 is dominant, and the transmission path of the signal is RX1->TX2->RX2->TX1->RX1. Since the state of the first CAN bus 10 is dominant, the voltage of CAN_H1 is higher than CAN_L1, and the level of RX1 is 0. The levels at both ends of the isolation device 30 are the same, therefore, the levels of TX2 and RX1 are the same, both being 0. RX2 receives the signal from TX2, therefore, the level of RX2 is the same as that of TX2, both are 0. Because the levels at both ends of the isolation device are the same, the levels of TX1 and RX2 are the same, both being 0. Since the level of TX1 is 0, RX1 receives the signal from TX1, so that the level of RX1 is 0. Repeat the above process, and the levels of RX1, TX1, RX2 and TX2 remain at 0. As mentioned above, when the level of the sending end of the transceiver is 0, it means that the transceiver has a signal to send and needs to occupy the CAN bus, so that the state of the CAN bus is dominant for signal transmission. Therefore, if the level of TX1 is continuously 0, the state of the first CAN bus 10 will continue to be dominant, and then the first CAN bus 10 cannot be released, forming a self-locking phenomenon of the CAN bus.
同理,当第二CAN总线20发送信号时,RX1、TX1、RX2和TX2的电平也会持续为0,第二CAN总线20的状态持续为显性,进而无法释放第二CAN总线,形成CAN总线的自锁现象。Similarly, when the second CAN bus 20 sends a signal, the levels of RX1, TX1, RX2, and TX2 will continue to be 0, and the state of the second CAN bus 20 will continue to be dominant, so that the second CAN bus cannot be released, forming a self-locking phenomenon of the CAN bus.
为了解决CAN总线的自锁问题,目前提供了一种总线多路隔离系统。如图1B所示,该系统包括:或门U1、或门U2、与非门U3、下沿延时电路U4、或门U5、或门U6、与非门U7、下沿延时电路U8、与非门U9。In order to solve the self-locking problem of the CAN bus, a bus multi-channel isolation system is currently provided. As shown in Figure 1B, the system includes: OR gate U1, OR gate U2, NAND gate U3, lower edge delay circuit U4, OR gate U5, OR gate U6, NAND gate U7, lower edge delay circuit U8, and NAND gate U9.
其中,各器件的连接方式如图1B所示。具体的,或门U1的一路输入连接至1T和或门U2的输出端,或门U1的另一路输入连接至与非门U9的输出端,或门U1的输出端连接至与非门U3的一路输入端。或门U2的一路输入连接至下沿延时电路U4的输出端,或门U2的另一路输入连接至2R。与非门U3的一路输入连接至1R,另一路输入连接至或门U1的输出端,与非门U3的输出端连接至下沿延时电路U4。其中,RX1的信号经过数字隔离之后变为1R的信号,1T的信号经数字隔离之后变为TX1的信号,数字隔离两端的电平相等。或门U5、或门U6、与非门U7、下沿延时电路U8的连接方式与或门U1、或门U2、与非门U3、下沿延时电路U4的连接方式相对应,此处不再赘述。Wherein, the connection manner of each device is shown in FIG. 1B . Specifically, one input of the OR gate U1 is connected to 1T and the output of the OR gate U2, the other input of the OR gate U1 is connected to the output of the NAND gate U9, and the output of the OR gate U1 is connected to one input of the NAND gate U3. One input of the OR gate U2 is connected to the output terminal of the lower edge delay circuit U4, and the other input of the OR gate U2 is connected to 2R. One input of the NAND gate U3 is connected to 1R, the other input is connected to the output terminal of the OR gate U1, and the output terminal of the NAND gate U3 is connected to the lower edge delay circuit U4. Among them, the signal of RX1 becomes the signal of 1R after digital isolation, the signal of 1T becomes the signal of TX1 after digital isolation, and the levels at both ends of the digital isolation are equal. The connection mode of the OR gate U5, the OR gate U6, the NAND gate U7, and the lower edge delay circuit U8 is corresponding to the connection mode of the OR gate U1, the OR gate U2, the NAND gate U3, and the lower edge delay circuit U4, and will not be repeated here.
另外,在该系统中,与第一收发器20连接的第一CAN总线10为远端CAN总线,与第二收发器40连接的第二CAN总线50为本地CAN总线。隔离装置30包括数字隔离301和数字隔离302。In addition, in this system, the first CAN bus 10 connected to the first transceiver 20 is a remote CAN bus, and the second CAN bus 50 connected to the second transceiver 40 is a local CAN bus. The isolation device 30 includes a digital isolation 301 and a digital isolation 302 .
下面以第一CAN总线10发送信号为例,对该系统如何解决CAN总线的自锁问题进行说明。当第一CAN总线10发送信号时,TX1的电平为1,RX1的电平为0。RX1的信号经过数字隔离之后变为1R的信号,1R的电平为0。电平0作为与非门U3的输入,使得与非门U3输出端的电平为1。电平1经过下沿延时电路U4之后仍为1,即下沿延时电路U4输出端的电平为1。电平1作为或门U2的输入,使得或门U2输出端的电平为1,这样1T的电平也为1。1T的电平经过数字隔离之后变为TX1的信号,从而使得TX1的电平为1。这样,通过或门U5、或门U6、与非门U7、下沿延时电路U8,可以避免第一CAN现场总线发送信号时CAN总线自锁。Taking the signal sent by the first CAN bus 10 as an example, how the system solves the self-locking problem of the CAN bus will be described below. When the first CAN bus 10 sends a signal, the level of TX1 is 1, and the level of RX1 is 0. The signal of RX1 becomes a 1R signal after digital isolation, and the level of 1R is 0. The level 0 is used as the input of the NAND gate U3, so that the level of the output terminal of the NAND gate U3 is 1. The level 1 is still 1 after passing through the lower edge delay circuit U4, that is, the level of the output end of the lower edge delay circuit U4 is 1. Level 1 is used as the input of OR gate U2, so that the level of the output terminal of OR gate U2 is 1, so the level of 1T is also 1. The level of 1T becomes the signal of TX1 after digital isolation, so that the level of TX1 is 1. In this way, through the OR gate U5, the OR gate U6, the NAND gate U7, and the lower edge delay circuit U8, the CAN bus can be prevented from self-locking when the first CAN field bus sends a signal.
但是,该系统需要使用多个门结构和下沿延时电路才能避免总线自锁,方案较为复杂,对控制器性能的要求也较高。However, this system needs to use multiple gate structures and lower-edge delay circuits to avoid bus self-locking. The scheme is relatively complicated and has high requirements on the performance of the controller.
有鉴于此,本申请提供一种总线处理装置60,该总线处理装置60能够使用简单的结构避免CAN总线连接时发生自锁现象。该总线处理装置60可以应用于图2A或图2B所示的系统中。In view of this, the present application provides a bus processing device 60, which can use a simple structure to avoid the self-locking phenomenon when the CAN bus is connected. The bus processing device 60 can be applied to the system shown in FIG. 2A or FIG. 2B .
如图2A所示,该系统可包括第一CAN总线10、第一收发器20、隔离装置30、第二收发器40、第二CAN总线50、总线处理装置60。第一CAN总线10可依次通过第一收发器20、隔离装置30、总线处理装置60和第二收发器40与第二CAN总线50连接。As shown in FIG. 2A , the system may include a first CAN bus 10 , a first transceiver 20 , an isolation device 30 , a second transceiver 40 , a second CAN bus 50 , and a bus processing device 60 . The first CAN bus 10 can be connected to the second CAN bus 50 through the first transceiver 20 , the isolation device 30 , the bus processing device 60 and the second transceiver 40 in sequence.
如图2B所示,该系统可包括第一CAN总线10、第一收发器20、第二收发器40、第二CAN总线50、总线处理装置60。第一CAN总线10可依次通过第一收发器20、总线处理装置60和第二收发器40与第二CAN总线50连接。As shown in FIG. 2B , the system may include a first CAN bus 10 , a first transceiver 20 , a second transceiver 40 , a second CAN bus 50 , and a bus processing device 60 . The first CAN bus 10 can be connected to the second CAN bus 50 through the first transceiver 20 , the bus processing device 60 and the second transceiver 40 in sequence.
在图2A或图2B所示的系统中,第一CAN总线10和第二CAN总线50的电压可以相同,也可以不同。当第一CAN总线10和第二CAN总线50的电压不同时,第一CAN总线的电压可以高于第二CAN总线的电压,第一CAN总线的电压也可以低于第二CAN总线的电压。In the system shown in FIG. 2A or FIG. 2B , the voltages of the first CAN bus 10 and the second CAN bus 50 may be the same or different. When the voltages of the first CAN bus 10 and the second CAN bus 50 are different, the voltage of the first CAN bus can be higher than the voltage of the second CAN bus, and the voltage of the first CAN bus can also be lower than the voltage of the second CAN bus.
下面结合附图,对总线处理装置60的实现方式进行具体说明。The implementation of the bus processing device 60 will be specifically described below with reference to the accompanying drawings.
图3示出了本申请实施例提供的总线处理装置60的一种可能的结构。该总线处理装置60包括:第一开关器件601、第二开关器件602、电源603、电阻R1和电阻R2。FIG. 3 shows a possible structure of the bus processing device 60 provided by the embodiment of the present application. The bus processing device 60 includes: a first switching device 601 , a second switching device 602 , a power supply 603 , a resistor R1 and a resistor R2 .
其中,第一开关器件601的第二电极可通过电阻R1连接至电源603。这样,电源603可以为第一开关器件601供电。并且由于电阻R1的存在,可以限制通过第一开关器件601的电流,避免损坏第一开关器件601。第二开关器件602的第二电极可通过电阻R2连接至电源603。这样,电源603可以为第二开关器件602供电。并且由于电阻R2的存在,可以限制通过第二开关器件602的电流,避免损坏第二开关器件602。可选的,电源603为蓄电池、锂电池等直流电源。Wherein, the second electrode of the first switching device 601 can be connected to the power source 603 through the resistor R1. In this way, the power supply 603 can supply power to the first switching device 601 . And due to the existence of the resistor R1, the current passing through the first switching device 601 can be limited to avoid damage to the first switching device 601 . The second electrode of the second switching device 602 can be connected to a power source 603 through a resistor R2. In this way, the power source 603 can supply power to the second switching device 602 . And due to the existence of the resistor R2, the current passing through the second switching device 602 can be limited to avoid damage to the second switching device 602 . Optionally, the power source 603 is a DC power source such as a storage battery or a lithium battery.
此外,第一开关器件601的控制电极可连接至TX1,第一开关器件601的第一电极可连接至RX1,第一开关器件601的第二电极可连接至TX2;第二开关器件602的控制电极可连接至TX2,第二开关器件602的第一电极可连接至RX2,第二开关器件602的第二电极可连接至TX1。In addition, the control electrode of the first switching device 601 can be connected to TX1, the first electrode of the first switching device 601 can be connected to RX1, the second electrode of the first switching device 601 can be connected to TX2; the control electrode of the second switching device 602 can be connected to TX2, the first electrode of the second switching device 602 can be connected to RX2, and the second electrode of the second switching device 602 can be connected to TX1.
可选的,当总线处理装置60位于图2A所示的系统中时,第一开关器件601和第二开关器件602可以通过隔离装置30连接至第一收发器20。具体的,第一开关器件601的控 制电极可通过隔离装置30连接至TX1,第一开关器件601的第一电极可通过隔离装置30连接至RX1;第二开关器件602的第二电极可通过隔离装置30连接至TX1。Optionally, when the bus processing device 60 is located in the system shown in FIG. 2A , the first switching device 601 and the second switching device 602 may be connected to the first transceiver 20 through the isolation device 30 . Specifically, the control electrode of the first switching device 601 can be connected to TX1 through the isolation device 30, the first electrode of the first switching device 601 can be connected to RX1 through the isolation device 30; the second electrode of the second switching device 602 can be connected to TX1 through the isolation device 30.
第一开关器件601可用于:当TX1的电平为0时,断开RX1和TX2之间的通路;也就是说,当TX1的电平为0时,第一开关器件601处于断开状态。第二开关器件602可用于:当TX2的电平为0时,断开RX2和TX1之间的通路。也就是说,当TX2的电平为0时,第二开关器件602处于断开状态。The first switching device 601 can be used to: when the level of TX1 is 0, disconnect the path between RX1 and TX2; that is, when the level of TX1 is 0, the first switching device 601 is in an off state. The second switching device 602 can be used to: disconnect the path between RX2 and TX1 when the level of TX2 is 0. That is to say, when the level of TX2 is 0, the second switching device 602 is in an off state.
通过该装置,当第一CAN总线10发送信号时,TX1的电平为1(具体内容可以参考发明内容,此处不再赘述),这样,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为0,从而可避免CAN总线连接时发生自锁现象。当第二CAN总线50发送信号时,TX2的电平为1。也就是说,TX1的电平、RX1的电平、TX2的电平、RX1的电平也不同时为0,从而可避免CAN总线连接时发生自锁现象。Through this device, when the first CAN bus 10 sends a signal, the level of TX1 is 1 (specific content can refer to the content of the invention, which will not be repeated here), so that the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are not 0 at the same time, so that the self-locking phenomenon can be avoided when the CAN bus is connected. When the second CAN bus 50 sends a signal, the level of TX2 is 1. That is to say, the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are also 0 at the same time, so as to avoid the self-locking phenomenon when the CAN bus is connected.
并且,该装置通过简单的开关器件连接两个CAN总线。这样,两个CAN总线之间的信号可以无延时的进行传输,从而满足实时性要求;而且简单的开关器件可以降低成本和总线的功耗,并可用于各类复杂的网络拓扑结构中,因此,该装置具有良好的应用前景。Moreover, the device connects two CAN buses through a simple switching device. In this way, the signals between the two CAN buses can be transmitted without delay, so as to meet the real-time requirements; and the simple switching device can reduce the cost and the power consumption of the bus, and can be used in various complex network topologies. Therefore, the device has a good application prospect.
可选的,在图3所示的总线处理装置60中,第一开关器件601和第二开关器件602中的任一开关器件为以下之一:三极管、N型金属氧化物半导体场效应晶体管(metal oxide semiconductor field effect transistor,MOSFET)等半导体开关、继电器。这样,总线处理装置60的结构简单,且成本较低。Optionally, in the bus processing device 60 shown in FIG. 3 , any switching device in the first switching device 601 and the second switching device 602 is one of the following: semiconductor switches such as triodes, N-type metal oxide semiconductor field effect transistors (metal oxide semiconductor field effect transistors, MOSFETs), and relays. In this way, the structure of the bus processing device 60 is simple and the cost is low.
其中,第一开关器件601和第二开关器件602中的每个开关器件均可包含控制电极、第一电极和第二电极。控制电极用于控制开关器件的导通或断开。当开关器件导通时,开关器件的第一电极和第二电极之间可以传输电流,输出端的电平与输入端的电平相等;当开关器件断开时,开关器件的第一电极和第二电极之间无法传输电流。以三极管为例,开关器件的控制电极为基极,开关器件的第一电极为发射极,开关器件的第二电极为集电极。以N型MOSFET为例,开关器件的控制电极为栅极,开关器件的第一电极可以为源极,开关器件的第二电极可以为漏极;或者,开关器件的控制电极为栅极,开关器件的第一电极可以为漏极,开关器件的第二电极可以为源极。Wherein, each of the first switching device 601 and the second switching device 602 may include a control electrode, a first electrode and a second electrode. The control electrode is used to control the switching device to be turned on or off. When the switch device is turned on, current can be transmitted between the first electrode and the second electrode of the switch device, and the level of the output terminal is equal to the level of the input terminal; when the switch device is turned off, no current can be transmitted between the first electrode and the second electrode of the switch device. Taking a triode as an example, the control electrode of the switching device is the base, the first electrode of the switching device is the emitter, and the second electrode of the switching device is the collector. Taking an N-type MOSFET as an example, the control electrode of the switching device is the gate, the first electrode of the switching device may be the source, and the second electrode of the switching device may be the drain; or, the control electrode of the switching device is the gate, the first electrode of the switching device may be the drain, and the second electrode of the switching device may be the source.
图4-7D示出了图3所示的总线处理装置60的扩展方案,下面结合图4-7D对本申请进行说明。FIG. 4-7D shows an extension solution of the bus processing device 60 shown in FIG. 3 , and the present application will be described below in conjunction with FIG. 4-7D .
如图4所示,在图3所示的总线处理装置60的基础上,该总线处理装置60还可以包括:二极管D1和二极管D2。As shown in FIG. 4 , on the basis of the bus processing device 60 shown in FIG. 3 , the bus processing device 60 may further include: a diode D1 and a diode D2 .
其中,二极管D1的正极连接至RX1,二极管D1的负极连接至TX2;也就是说,二极管D1与第一开关器件601并联。二极管D2的正极连接至RX2,二极管D2的负极连接至TX1;也就是说,二极管D2与第二开关器件602并联。Wherein, the anode of the diode D1 is connected to RX1 , and the cathode of the diode D1 is connected to TX2 ; that is, the diode D1 is connected in parallel with the first switching device 601 . The anode of the diode D2 is connected to RX2 , and the cathode of the diode D2 is connected to TX1 ; that is, the diode D2 is connected in parallel with the second switching device 602 .
可选的,当总线处理装置60位于图2A所示的系统中时,二极管D1和二极管D2可以通过隔离装置30连接至第一收发器20。具体的,二极管D1的正极可通过隔离装置30连接至RX1,二极管D2的负极可通过隔离装置30连接至TX1。Optionally, when the bus processing device 60 is located in the system shown in FIG. 2A , the diode D1 and the diode D2 may be connected to the first transceiver 20 through the isolation device 30 . Specifically, the anode of the diode D1 can be connected to RX1 through the isolation device 30 , and the cathode of the diode D2 can be connected to TX1 through the isolation device 30 .
在该装置中,二极管D1与第一开关器件601并联,可以加速第一开关器件601的断开。这样,当TX1的电平为0时,第一开关器件601可以快速断开RX1和TX2之间的通 路,从而使得TX2的电平快速成为1,进而快速避免CAN总线连接时发生自锁现象。二极管D2与第二开关器件602并联,可以加速第二开关器件602的断开。这样,当TX2的电平为0时,第二开关器件602可以快速断开RX2和TX1之间的通路,从而使得TX1的电平快速成为1,进而快速避免CAN总线连接时发生自锁现象。In this device, the diode D1 is connected in parallel with the first switching device 601 , which can accelerate the turn-off of the first switching device 601 . In this way, when the level of TX1 is 0, the first switching device 601 can quickly disconnect the path between RX1 and TX2, so that the level of TX2 quickly becomes 1, thereby quickly avoiding the self-locking phenomenon when the CAN bus is connected. The diode D2 is connected in parallel with the second switching device 602 to speed up the turn-off of the second switching device 602 . In this way, when the level of TX2 is 0, the second switching device 602 can quickly disconnect the path between RX2 and TX1, so that the level of TX1 quickly becomes 1, thereby quickly avoiding the self-locking phenomenon when the CAN bus is connected.
如图5所示,在图3所示的总线处理装置60的基础上,该总线处理装置60还可以包括:电容C1和电容C2。As shown in FIG. 5 , on the basis of the bus processing device 60 shown in FIG. 3 , the bus processing device 60 may further include: a capacitor C1 and a capacitor C2 .
其中,电容C1的两端分别连接至RX1和TX2;也就是说,电容C1与第一开关器件601并联。电容C2的两端分别连接至RX2和TX1;也就是说,电容C2与第二开关器件602并联。Wherein, both ends of the capacitor C1 are connected to RX1 and TX2 respectively; that is, the capacitor C1 is connected in parallel with the first switching device 601 . Two ends of the capacitor C2 are connected to RX2 and TX1 respectively; that is, the capacitor C2 is connected in parallel with the second switching device 602 .
可选的,当总线处理装置60位于图2A所示的系统中时,电容C1和电容C2可以通过隔离装置30连接至第一收发器20。具体的,电容C1可通过隔离装置30连接至RX1,电容C2可通过隔离装置30连接至TX1。Optionally, when the bus processing device 60 is located in the system shown in FIG. 2A , the capacitors C1 and C2 may be connected to the first transceiver 20 through the isolation device 30 . Specifically, the capacitor C1 can be connected to RX1 through the isolation device 30 , and the capacitor C2 can be connected to TX1 through the isolation device 30 .
在该装置中,电容C1与第一开关器件601并联,从而可以对第一开关器件601的信号进行滤波。电容C2与第二开关器件602并联,从而可以对第二开关器件602的信号进行滤波。In this device, the capacitor C1 is connected in parallel with the first switching device 601 , so that the signal of the first switching device 601 can be filtered. The capacitor C2 is connected in parallel with the second switching device 602 so as to filter the signal of the second switching device 602 .
如图6所示,在图3所示的总线处理装置60的基础上,该总线处理装置60还可以包括:电阻R3和/或电阻R4。As shown in FIG. 6 , on the basis of the bus processing device 60 shown in FIG. 3 , the bus processing device 60 may further include: a resistor R3 and/or a resistor R4.
其中,电阻R3的两端分别连接至第一开关器件601的控制电极和TX1。这样,电阻R3可以对输入到第一开关器件601的控制电极的电流进行限流,因此,电阻R3是一个限流电阻。通过限制输入到第一开关器件601的控制电极的电流,可以避免因电流过大而损伤第一开关器件601,进而可以提高第一开关器件601的性能和使用寿命。Wherein, two ends of the resistor R3 are connected to the control electrode of the first switching device 601 and TX1 respectively. In this way, the resistor R3 can limit the current input to the control electrode of the first switching device 601 , therefore, the resistor R3 is a current limiting resistor. By limiting the current input to the control electrode of the first switching device 601 , damage to the first switching device 601 due to excessive current can be avoided, thereby improving the performance and service life of the first switching device 601 .
可选的,当总线处理装置60位于图2A所示的系统中时,电阻R3可以通过隔离装置30连接至第一收发器20。具体的,电阻R3可通过隔离装置30连接至TX1。Optionally, when the bus processing device 60 is located in the system shown in FIG. 2A , the resistor R3 may be connected to the first transceiver 20 through the isolation device 30 . Specifically, the resistor R3 can be connected to TX1 through the isolation device 30 .
电阻R4的两端分别连接至第二开关器件602的控制电极和TX2。这样,电阻R4可以对输入到第二开关器件602的控制电极的电流进行限流,因此,电阻R4是一个限流电阻。通过限制输入到第二开关器件602的控制电极的电流,可以避免因电流过大而损伤第二开关器件602,进而可以提高第二开关器件602的性能和使用寿命。Both ends of the resistor R4 are respectively connected to the control electrode of the second switching device 602 and TX2. In this way, the resistor R4 can limit the current input to the control electrode of the second switching device 602, therefore, the resistor R4 is a current limiting resistor. By limiting the current input to the control electrode of the second switching device 602 , damage to the second switching device 602 due to excessive current can be avoided, thereby improving the performance and service life of the second switching device 602 .
应理解,图4-图6所示的总线处理装置60可以进行组合。例如,如图7A所示,总线处理装置60可以包括:第一开关器件601、第二开关器件602、电源603、电阻R1、电阻R2、二极管D1、二极管D2、电阻R3和电阻R4。又例如,如图7B所示,总线处理装置60可以包括:第一开关器件601、第二开关器件602、电源603、电阻R1、电阻R2、二极管D1、二极管D2、电容C1和电容C2。再例如,如图7C所示,总线处理装置60还可以包括:第一开关器件601、第二开关器件602、电源603、电阻R1、电阻R2、二极管D1、二极管D2、电容C1、电容C2、电阻R3和电阻R4。再例如,如图7D所示,总线处理装置60还可以包括:第一开关器件601、第二开关器件602、电源603、电阻R1、电阻R2、电容C1、电容C2、电阻R3和电阻R4。图7A-图7D中器件之间的连接关系可以参考图3-图6所示的装置,此处不再赘述。It should be understood that the bus processing devices 60 shown in FIGS. 4-6 can be combined. For example, as shown in FIG. 7A , the bus processing device 60 may include: a first switching device 601 , a second switching device 602 , a power supply 603 , a resistor R1 , a resistor R2 , a diode D1 , a diode D2 , a resistor R3 and a resistor R4 . For another example, as shown in FIG. 7B, the bus processing device 60 may include: a first switching device 601, a second switching device 602, a power supply 603, a resistor R1, a resistor R2, a diode D1, a diode D2, a capacitor C1 and a capacitor C2. For another example, as shown in FIG. 7C, the bus processing device 60 may further include: a first switching device 601, a second switching device 602, a power supply 603, a resistor R1, a resistor R2, a diode D1, a diode D2, a capacitor C1, a capacitor C2, a resistor R3, and a resistor R4. For another example, as shown in FIG. 7D, the bus processing device 60 may further include: a first switching device 601, a second switching device 602, a power supply 603, a resistor R1, a resistor R2, a capacitor C1, a capacitor C2, a resistor R3 and a resistor R4. The connection relationship between devices in FIGS. 7A-7D can refer to the devices shown in FIGS. 3-6 , and details will not be repeated here.
下面分别通过图8-9所示的总线处理装置60介绍图3-图7D所示的总线处理装置60中第一开关器件601和第二开关器件602的具体的实现方式。其中,图8所示的总线处理装置60主要介绍其中的可能的情况一,即第一开关器件601和第二开关器件602均为三极管;图9所示的总线处理装置60主要介绍其中的可能的情况二,即第一开关器件601和第二开关器件602均为N型MOSFET。The specific implementation manners of the first switching device 601 and the second switching device 602 in the bus processing device 60 shown in FIGS. 3-7D are introduced below through the bus processing device 60 shown in FIGS. 8-9 respectively. Wherein, the bus processing device 60 shown in FIG. 8 mainly introduces possible situation 1, that is, both the first switching device 601 and the second switching device 602 are triodes; the bus processing device 60 shown in FIG. 9 mainly introduces possible situation 2, that is, both the first switching device 601 and the second switching device 602 are N-type MOSFETs.
如图8所示,总线处理装置60可以包括:三极管Q1、三极管Q2、电源603、电阻R1、电阻R2、二极管D1、二极管D2、电容C1、电容C2、电阻R3和电阻R4。As shown in FIG. 8, the bus processing device 60 may include: a transistor Q1, a transistor Q2, a power supply 603, a resistor R1, a resistor R2, a diode D1, a diode D2, a capacitor C1, a capacitor C2, a resistor R3 and a resistor R4.
三极管Q1的基极连接至TX1,三极管Q1的发射极连接至RX1,三极管Q1的集电极连接至TX2,三极管Q1的集电极还可通过电阻R1连接至电源603;三极管Q2的基极连接至TX2,三极管Q2的发射极连接至RX2,三极管Q2的集电极连接至TX1,三极管Q2的集电极还可通过电阻R2连接至电源603。也就是说,三极管Q1可以为图3-图7D所示的总线处理装置60中的第一开关器件601,三极管Q2可以为图3-图7D所示的总线处理装置60中的第二开关器件602。The base of the triode Q1 is connected to TX1, the emitter of the triode Q1 is connected to RX1, the collector of the triode Q1 is connected to TX2, and the collector of the triode Q1 can also be connected to the power supply 603 through the resistor R1; That is to say, the transistor Q1 can be the first switching device 601 in the bus processing device 60 shown in FIG. 3-FIG. 7D, and the transistor Q2 can be the second switching device 602 in the bus processing device 60 shown in FIG. 3-FIG. 7D.
二极管D1、二极管D2、电容C1、电容C2、电阻R3和电阻R4与三极管Q1和三极管Q2之间的连接关系,可以参考图3-图7D所示的总线处理装置60中二极管D1、二极管D2、电容C1、电容C2、电阻R3和电阻R4与第一开关器件601和第二开关器件602之间的连接关系,此处不再赘述。The connection relationship between the diode D1, the diode D2, the capacitor C1, the capacitor C2, the resistor R3 and the resistor R4, and the transistor Q1 and the transistor Q2 can refer to the connection relationship between the diode D1, the diode D2, the capacitor C1, the capacitor C2, the resistor R3 and the resistor R4 and the first switching device 601 and the second switching device 602 in the bus processing device 60 shown in FIGS.
其中,TX1、TX2、RX1和RX2均可连接供电装置。供电装置可以为电源(例如,蓄电池、锂电池等直流电源)。例如,TX1通过电阻R3连接至电源,TX2可通过电阻R4连接至电源。RX1和RX2分别连接至电源。TX1和RX1连接的电源可以是为第一收发器20供电的电源;TX2和RX2连接的电源可以是为第二收发器40供电的电源。如果第一收发器20和第二收发器40之间存在隔离装置30,TX1和TX2连接的电源也可以是为隔离装置30供电的电源。这样,当没有输入信号时,TX1、TX2、RX1、RX2的电平为1。Wherein, TX1, TX2, RX1 and RX2 can all be connected to a power supply device. The power supply device may be a power supply (for example, a DC power supply such as a storage battery or a lithium battery). For example, TX1 is connected to the power supply through the resistor R3, and TX2 can be connected to the power supply through the resistor R4. RX1 and RX2 are respectively connected to the power supply. The power supply connected to TX1 and RX1 may be the power supply for the first transceiver 20 ; the power supply connected to TX2 and RX2 may be the power supply for the second transceiver 40 . If there is an isolation device 30 between the first transceiver 20 and the second transceiver 40 , the power supply connected to TX1 and TX2 may also be the power supply for the isolation device 30 . In this way, when there is no input signal, the levels of TX1, TX2, RX1, and RX2 are 1.
通过图8所示的总线处理装置60,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为0,从而避免CAN总线连接时发生自锁现象。下面对此进行具体说明。Through the bus processing device 60 shown in FIG. 8 , the levels of TX1 , RX1 , TX2 , and RX1 are not at 0 at the same time, thereby avoiding the self-locking phenomenon when the CAN bus is connected. This will be described in detail below.
当第一CAN总线10发送信号(即第一CAN总线10的状态为显性)时,TX1的电平为1,RX1的电平为0,信号的传输方向为RX1->TX2->RX2->TX1。RX1需要通过三极管Q1向TX2传递信号,因此,需要判断三极管Q1的导通情况。由于TX1的电平高于RX1的电平,三极管Q1导通;此时,三极管Q1的集电极的电平和发射极的电平相同,即RX1的电平和TX2的电平相同,因此,TX2的电平为0。RX2接收来自TX2的信号,从而使得RX2的电平与TX2的电平相同,所以RX2的电平为0。RX2需要通过三极管Q2向TX1传递信号,因此,需要判断三极管Q2的导通情况。由于RX2的电平和TX2的电平均为0,三极管Q2截止。三极管Q2截止时相当于高阻抗,可阻断RX2和TX1之间的通路。由于TX1连接有供电装置,因此,TX1的电平为1。这样,RX1的电平为0,TX2的电平为0,RX2的电平为0,TX1的电平为1。When the first CAN bus 10 sends a signal (that is, the state of the first CAN bus 10 is dominant), the level of TX1 is 1, the level of RX1 is 0, and the transmission direction of the signal is RX1->TX2->RX2->TX1. RX1 needs to transmit a signal to TX2 through the transistor Q1, therefore, it is necessary to judge the conduction of the transistor Q1. Since the level of TX1 is higher than the level of RX1, the transistor Q1 is turned on; at this time, the level of the collector of the transistor Q1 is the same as that of the emitter, that is, the level of RX1 is the same as that of TX2, so the level of TX2 is 0. RX2 receives the signal from TX2, so that the level of RX2 is the same as that of TX2, so the level of RX2 is 0. RX2 needs to transmit a signal to TX1 through the transistor Q2, therefore, it is necessary to judge the conduction of the transistor Q2. Since the levels of RX2 and TX2 are both 0, the transistor Q2 is cut off. When the transistor Q2 is cut off, it is equivalent to a high impedance, which can block the path between RX2 and TX1. Since TX1 is connected to a power supply device, the level of TX1 is 1. In this way, the level of RX1 is 0, the level of TX2 is 0, the level of RX2 is 0, and the level of TX1 is 1.
第一CAN总线10也可以发送隐性电平的信号(即发送电平为1的信号),此时,RX1的电平为1,TX1的电平为1,信号的传输方向为RX1->TX2->RX2->TX1。RX1需要通过三极管Q1向TX2传递信号,因此,需要判断三极管Q1的导通情况。由于RX1的电平和TX1的电平相同,所以三极管Q1截止。三极管Q1截止时相当于高阻抗,可阻断RX1和TX2之间的通路。由于TX2连接有供电装置,因此,TX2的电平为1。RX2的电平和TX2的电平相同,因 此,RX2的电平为1。RX2需要通过三极管Q2向TX1传递信号,因此,需要判断三极管Q2的导通情况。由于RX2的电平和TX2的电平相等,所以三极管Q2截止。三极管Q2截止时相当于高阻抗,可阻断RX2和TX1之间的通路。由于TX1连接有供电装置,因此,TX1的电平为1。这样,RX1的电平为1,TX2的电平为1,RX2的电平为1,TX1的电平为1。The first CAN bus 10 can also send a recessive level signal (that is, a signal with a sending level of 1). At this time, the level of RX1 is 1, the level of TX1 is 1, and the transmission direction of the signal is RX1->TX2->RX2->TX1. RX1 needs to transmit a signal to TX2 through the transistor Q1, therefore, it is necessary to judge the conduction of the transistor Q1. Since the level of RX1 is the same as that of TX1, the transistor Q1 is cut off. When the transistor Q1 is cut off, it is equivalent to a high impedance, which can block the path between RX1 and TX2. Since TX2 is connected to a power supply device, the level of TX2 is 1. The level of RX2 is the same as that of TX2, therefore, the level of RX2 is 1. RX2 needs to transmit a signal to TX1 through the transistor Q2, therefore, it is necessary to judge the conduction of the transistor Q2. Since the level of RX2 is equal to the level of TX2, the transistor Q2 is cut off. When the transistor Q2 is cut off, it is equivalent to a high impedance, which can block the path between RX2 and TX1. Since TX1 is connected to a power supply device, the level of TX1 is 1. In this way, the level of RX1 is 1, the level of TX2 is 1, the level of RX2 is 1, and the level of TX1 is 1.
综上,通过图8所示的装置,当第一CAN总线10发送信号时,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为0,从而可以避免CAN总线连接时发生自锁现象。To sum up, through the device shown in FIG. 8, when the first CAN bus 10 sends a signal, the levels of TX1, RX1, TX2, and RX1 are not 0 at the same time, so that the self-locking phenomenon can be avoided when the CAN bus is connected.
类似的,通过图8所示的装置,当第二CAN总线50发送信号(即第二CAN总线50的状态为显性)时,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为0,从而可以避免CAN总线连接时发生自锁现象。Similarly, through the device shown in FIG. 8, when the second CAN bus 50 sends a signal (that is, the state of the second CAN bus 50 is dominant), the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are different from 0 at the same time, so that the self-locking phenomenon can be avoided when the CAN bus is connected.
另外,假设第一CAN总线10和第二CAN总线50的状态均为空闲时,RX1的电平为1,TX1的电平为1。基于与第一CAN总线10发送隐性电平的信号相同的原因,RX1的电平为1,TX2的电平为1,RX2的电平为1,TX1的电平为1。因此,通过图8所示的装置,当第一CAN总线10和第二CAN总线50的状态均为空闲时,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为0,从而可以避免CAN总线连接时发生自锁现象。In addition, assuming that both the first CAN bus 10 and the second CAN bus 50 are idle, the level of RX1 is 1, and the level of TX1 is 1. Based on the same reason as that the first CAN bus 10 sends a recessive level signal, the level of RX1 is 1, the level of TX2 is 1, the level of RX2 is 1, and the level of TX1 is 1. Therefore, by the device shown in FIG. 8, when the states of the first CAN bus 10 and the second CAN bus 50 are both idle, the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are different from 0 at the same time, thereby avoiding the self-locking phenomenon when the CAN bus is connected.
综上,采用图8所示的装置,总线状态与TX1、RX1、TX2和RX2的电平之间的关系可如表3所示。To sum up, using the device shown in FIG. 8 , the relationship between the bus state and the levels of TX1 , RX1 , TX2 and RX2 can be shown in Table 3.
表3table 3
Figure PCTCN2022072595-appb-000002
Figure PCTCN2022072595-appb-000002
下面参考图9介绍上述可能的情况二,即第一开关器件601和第二开关器件602均为N型MOSFET。The second possible situation above will be described below with reference to FIG. 9 , that is, both the first switching device 601 and the second switching device 602 are N-type MOSFETs.
如图9所示,总线处理装置60可以包括:N型MOSFET M1、N型MOSFET M2、电源603、电阻R1、电阻R2、二极管D1、二极管D2、电容C1、电容C2、电阻R3和电阻R4。As shown in FIG. 9, the bus processing device 60 may include: N-type MOSFET M1, N-type MOSFET M2, power supply 603, resistor R1, resistor R2, diode D1, diode D2, capacitor C1, capacitor C2, resistor R3 and resistor R4.
其中,N型MOSFET M1的栅极连接至TX1,N型MOSFET M1的源极连接至RX1,N型MOSFET M1的漏极连接至TX2,N型MOSFET M1的漏极还可通过电阻R1连接至电源603;或者,N型MOSFET M1的栅极连接至TX1,N型MOSFET M1的漏极连接至RX1,N型MOSFET M1的源极连接至TX2,N型MOSFET M1的源极还可通过电阻R1连接至电源603。也就是说,N型MOSFET M1可以为图3-图7D所示的总线处理装置60中的第一开关器件601。Wherein, the gate of N-type MOSFET M1 is connected to TX1, the source of N-type MOSFET M1 is connected to RX1, the drain of N-type MOSFET M1 is connected to TX2, and the drain of N-type MOSFET M1 can also be connected to the power supply 603 through resistor R1; or, the gate of N-type MOSFET M1 is connected to TX1, the drain of N-type MOSFET M1 is connected to RX1, and the drain of N-type MOSFET M1 The source of the N-type MOSFET M1 is connected to TX2, and the source of the N-type MOSFET M1 can also be connected to the power supply 603 through the resistor R1. That is to say, the N-type MOSFET M1 can be the first switching device 601 in the bus processing device 60 shown in FIG. 3-FIG. 7D.
N型MOSFET M2的栅极连接至TX2,N型MOSFET M2的源极连接至RX2,N型MOSFET M2的漏极连接至TX1,N型MOSFET M2的漏极还可通过电阻R2连接至电源603;或者,N型MOSFET M2的栅极连接至TX2,N型MOSFET M2的漏极连接至RX2, N型MOSFET M2的源极连接至TX1,N型MOSFET M2的源极还可通过电阻R2连接至电源603。也就是说,N型MOSFET M2可以为图3-图7D所示的总线处理装置60中的第二开关器件602。The gate of N-type MOSFET M2 is connected to TX2, the source of N-type MOSFET M2 is connected to RX2, the drain of N-type MOSFET M2 is connected to TX1, and the drain of N-type MOSFET M2 can also be connected to power supply 603 through resistor R2; or, the gate of N-type MOSFET M2 is connected to TX2, the drain of N-type MOSFET M2 is connected to RX2, and the source of N-type MOSFET M2 The pole is connected to TX1, and the source of the N-type MOSFET M2 can also be connected to the power supply 603 through the resistor R2. That is to say, the N-type MOSFET M2 can be the second switching device 602 in the bus processing device 60 shown in FIG. 3-FIG. 7D.
另外,二极管D1、二极管D2、电容C1、电容C2、电阻R3和电阻R4与N型MOSFET M1和N型MOSFET M2之间的连接关系,可以参考图3-图7D所示的总线处理装置60中二极管D1、二极管D2、电容C1、电容C2、电阻R3和电阻R4与第一开关器件601和第二开关器件602之间的连接关系,此处不再赘述。In addition, the connection relationship between the diode D1, the diode D2, the capacitor C1, the capacitor C2, the resistor R3, and the resistor R4, and the N-type MOSFET M1 and the N-type MOSFET M2 can refer to the connection relationship between the diode D1, the diode D2, the capacitor C1, the capacitor C2, the resistor R3, and the resistor R4, and the first switching device 601 and the second switching device 602 in the bus processing device 60 shown in FIGS.
通过图9所示的总线处理装置60,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为0,从而避免CAN总线连接时发生自锁现象。下面对此进行具体说明。Through the bus processing device 60 shown in FIG. 9 , the levels of TX1 , RX1 , TX2 , and RX1 are not 0 at the same time, thereby avoiding the self-locking phenomenon when the CAN bus is connected. This will be described in detail below.
当第一CAN总线10发送信号(即第一CAN总线10的状态为显性)时,TX1的电平为1,RX1的电平为0,信号的传输方向为RX1->TX2->RX2->TX1。RX1需要通过N型MOSFET M1向TX2传递信号,因此,需要判断N型MOSFET M1的导通情况。由于TX1的电平为1,N型MOSFET M1导通;此时,N型MOSFET M1的源极的电平和漏极的电平相同,RX1的电平和TX2的电平相同,因此,TX2的电平为0。RX2接收来自TX2的信号,从而使得RX2的电平与TX2的电平相同,所以RX2的电平为0。RX2需要通过N型MOSFET M2向TX1传递信号,因此,需要判断N型MOSFET M2的导通情况。由于TX2的电平为0,N型MOSFET M2不导通,从而可阻断RX2和TX1之间的通路。由于TX1连接有供电装置,因此,TX1的电平为1。这样,RX1的电平为0,TX2的电平为0,RX2的电平为0,TX1的电平为1。When the first CAN bus 10 sends a signal (that is, the state of the first CAN bus 10 is dominant), the level of TX1 is 1, the level of RX1 is 0, and the transmission direction of the signal is RX1->TX2->RX2->TX1. RX1 needs to transmit signals to TX2 through N-type MOSFET M1, therefore, it is necessary to judge the conduction of N-type MOSFET M1. Since the level of TX1 is 1, the N-type MOSFET M1 is turned on; at this time, the level of the source of the N-type MOSFET M1 is the same as that of the drain, and the level of RX1 is the same as that of TX2, so the level of TX2 is 0. RX2 receives the signal from TX2, so that the level of RX2 is the same as that of TX2, so the level of RX2 is 0. RX2 needs to transmit signals to TX1 through N-type MOSFET M2, therefore, it is necessary to judge the conduction of N-type MOSFET M2. Since the level of TX2 is 0, the N-type MOSFET M2 is not turned on, thus blocking the path between RX2 and TX1. Since TX1 is connected to a power supply device, the level of TX1 is 1. In this way, the level of RX1 is 0, the level of TX2 is 0, the level of RX2 is 0, and the level of TX1 is 1.
第一CAN总线10也可以发送隐性电平的信号(即发送电平为1的信号),此时,RX1的电平为1,TX1的电平为1,信号的传输方向为RX1->TX2->RX2->TX1。RX1需要通过N型MOSFET M1向TX2传递信号,因此,需要判断N型MOSFET M1的导通情况。由于TX1的电平为1,所以N型MOSFET M1导通;此时,N型MOSFET M1的源极的电平和漏极的电平相同,即RX1的电平和TX2的电平相同,因此,TX2的电平为1。RX2的电平和TX2的电平相同,因此,RX2的电平为1。RX2需要通过N型MOSFET M2向TX1传递信号,因此,需要判断N型MOSFET M2的导通情况。由于TX2的电平为1,所以N型MOSFET M2导通;此时,N型MOSFET M2的源极的电平和漏极的电平相同,即RX2的电平和TX1的电平相同,因此,TX1的电平为1。这样,RX1的电平为1,TX2的电平为1,RX2的电平为1,TX1的电平为1。The first CAN bus 10 can also send a recessive level signal (that is, a signal with a sending level of 1). At this time, the level of RX1 is 1, the level of TX1 is 1, and the transmission direction of the signal is RX1->TX2->RX2->TX1. RX1 needs to transmit signals to TX2 through N-type MOSFET M1, therefore, it is necessary to judge the conduction of N-type MOSFET M1. Since the level of TX1 is 1, the N-type MOSFET M1 is turned on; at this time, the level of the source of the N-type MOSFET M1 is the same as the level of the drain, that is, the level of RX1 is the same as that of TX2, so the level of TX2 is 1. The level of RX2 is the same as that of TX2, therefore, the level of RX2 is 1. RX2 needs to transmit signals to TX1 through N-type MOSFET M2, therefore, it is necessary to judge the conduction of N-type MOSFET M2. Since the level of TX2 is 1, the N-type MOSFET M2 is turned on; at this time, the level of the source of the N-type MOSFET M2 is the same as the level of the drain, that is, the level of RX2 is the same as that of TX1, so the level of TX1 is 1. In this way, the level of RX1 is 1, the level of TX2 is 1, the level of RX2 is 1, and the level of TX1 is 1.
综上,通过图9所示的装置,当第一CAN总线10发送信号时,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为0,从而可以避免CAN总线连接时发生自锁现象。In summary, through the device shown in FIG. 9, when the first CAN bus 10 sends a signal, the levels of TX1, RX1, TX2, and RX1 are not at 0 at the same time, so that the self-locking phenomenon can be avoided when the CAN bus is connected.
类似的,通过图9所示的装置,当第二CAN总线50发送信号时,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为0,从而可以避免CAN总线连接时发生自锁现象。Similarly, through the device shown in FIG. 9 , when the second CAN bus 50 sends a signal, the levels of TX1, RX1, TX2, and RX1 are not 0 at the same time, so that the self-locking phenomenon can be avoided when the CAN bus is connected.
另外,假设第一CAN总线10和第二CAN总线50的状态均为空闲时,RX1的电平为1,TX1的电平为1。基于与第一CAN总线10发送隐性电平的信号相同的原因,此时,RX1的电平为1,TX2的电平为1,RX2的电平为1,TX1的电平为1。因此,通过图9所示的装置,当第一CAN总线10和第二CAN总线50的状态均为空闲时,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为0,从而可以避免CAN总线连接时发生自锁现象。In addition, assuming that both the first CAN bus 10 and the second CAN bus 50 are idle, the level of RX1 is 1, and the level of TX1 is 1. Based on the same reason as that the first CAN bus 10 sends a recessive level signal, at this time, the level of RX1 is 1, the level of TX2 is 1, the level of RX2 is 1, and the level of TX1 is 1. Therefore, by means of the device shown in FIG. 9, when the states of the first CAN bus 10 and the second CAN bus 50 are both idle, the levels of TX1, RX1, TX2, and RX1 are different from 0 at the same time, thereby avoiding the self-locking phenomenon when the CAN bus is connected.
综上,采用图9所示的装置,总线状态与TX1、RX1、TX2和RX2的电平之间的关系可如表4所示。To sum up, using the device shown in FIG. 9 , the relationship between the bus state and the levels of TX1 , RX1 , TX2 and RX2 can be shown in Table 4.
表4Table 4
Figure PCTCN2022072595-appb-000003
Figure PCTCN2022072595-appb-000003
图10示出了本申请实施例提供的总线处理装置60的另一种可能的结构。该总线处理装置60包括:三态门U10、三态门U12、非门U11、非门U13、电源603、电阻R5和电阻R6。FIG. 10 shows another possible structure of the bus processing device 60 provided by the embodiment of the present application. The bus processing device 60 includes: a tri-state gate U10, a tri-state gate U12, a NOT gate U11, a NOT gate U13, a power supply 603, a resistor R5 and a resistor R6.
其中,三态门U10的输出端可通过电阻R5连接至电源603;这样,电源603可为三态门U10供电。并且由于电阻5的存在,可以限制通过三态门U10的电流,避免损坏三态门U10。三态门U12的输出端可通过电阻R6连接至电源603;这样,电源603可为三态门U12供电。并且由于电阻6的存在,可以限制通过三态门U12的电流,避免损坏三态门U12。可选的,电源603为蓄电池、锂电池等直流电源;电阻R5和/或电阻R6的电阻值为1千欧姆。Wherein, the output terminal of the tri-state gate U10 can be connected to the power supply 603 through the resistor R5; thus, the power supply 603 can supply power for the tri-state gate U10. And due to the existence of the resistor 5, the current passing through the tri-state gate U10 can be limited to avoid damage to the tri-state gate U10. The output end of the tri-state gate U12 can be connected to the power supply 603 through the resistor R6; thus, the power supply 603 can supply power to the tri-state gate U12. And due to the existence of the resistor 6, the current passing through the tri-state gate U12 can be limited to avoid damage to the tri-state gate U12. Optionally, the power source 603 is a DC power source such as a storage battery or a lithium battery; the resistance value of the resistor R5 and/or the resistor R6 is 1 kilohm.
并且,三态门U10的输入端连接至RX1,三态门U10的输出端连接至TX2;三态门U12的输入端连接至RX2,三态门U12的输出端连接至TX1。非门U11的输入端连接至TX1,非门U11的输出端连接至三态门U10的输出控制端,也就是说,TX1的电平经过非门U11的转换之后可以作为三态门U10的输出控制。非门U13的输入端连接至TX2,非门U13的输出端连接至三态门U12的输出控制端,也就是说,TX2的电平经过非门U13的转换之后可以作为三态门U11的输出控制。Moreover, the input end of the tri-state gate U10 is connected to RX1, the output end of the tri-state gate U10 is connected to TX2; the input end of the tri-state gate U12 is connected to RX2, and the output end of the tri-state gate U12 is connected to TX1. The input terminal of the NOT gate U11 is connected to TX1, and the output terminal of the NOT gate U11 is connected to the output control terminal of the tri-state gate U10, that is, the level of TX1 can be used as the output control of the tri-state gate U10 after being converted by the NOT gate U11. The input terminal of the NOT gate U13 is connected to TX2, and the output terminal of the NOT gate U13 is connected to the output control terminal of the tri-state gate U12, that is, the level of TX2 can be used as the output control of the tri-state gate U11 after being converted by the NOT gate U13.
其中,TX1、TX2、RX1和RX2均可连接供电装置。供电装置可以为电源(例如,蓄电池、锂电池等直流电源)。TX1和RX1连接的电源可以是为第一收发器20供电的电源;TX2和RX2连接的电源可以是为第二收发器40供电的电源。如果第一收发器20和第二收发器40之间存在隔离装置30,TX1和TX2连接的电源也可以是为隔离装置30供电的电源。这样,当没有输入信号时,TX1、TX2、RX1、RX2的电平为1。Wherein, TX1, TX2, RX1 and RX2 can all be connected to a power supply device. The power supply device may be a power supply (for example, a DC power supply such as a storage battery or a lithium battery). The power supply connected to TX1 and RX1 may be the power supply for the first transceiver 20 ; the power supply connected to TX2 and RX2 may be the power supply for the second transceiver 40 . If there is an isolation device 30 between the first transceiver 20 and the second transceiver 40 , the power supply connected to TX1 and TX2 may also be the power supply for the isolation device 30 . In this way, when there is no input signal, the levels of TX1, TX2, RX1, and RX2 are 1.
在一些可能的实现方式中,三态门U10和三态门U12均为低电平使能的三态门。例如,三态门U10和三态门U12可以均为HC125型号的三态门,其中,HC125型号的三态门为低电平使能的三态门。In some possible implementation manners, both the tri-state gate U10 and the tri-state gate U12 are low-level enabled tri-state gates. For example, the tri-state gate U10 and the tri-state gate U12 may both be HC125 type tri-state gates, wherein the HC125 type tri-state gate is a low-level enabled tri-state gate.
在另一些可能的实现方式中,三态门U10和三态门U12均为高电平使能的三态门。例如,三态门U10和三态门U12均可以包括:HC125型号的三态门和非门,其中,HC125型号的三态门的输出控制端与非门的输出端连接。In some other possible implementation manners, both the tri-state gate U10 and the tri-state gate U12 are high-level enabled tri-state gates. For example, both the tri-state gate U10 and the tri-state gate U12 may include: a HC125 type tri-state gate and a NOT gate, wherein the output control terminal of the HC125 tri-state gate is connected to the output terminal of the NOT gate.
可选的,非门U11和/或非门U13为LS04型号的非门。Optionally, the NOT gate U11 and/or the NOT gate U13 are LS04 type NOT gates.
通过图10所示的总线处理装置60,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为0,从而避免CAN总线连接时发生自锁现象。下面对此进行具体说明。Through the bus processing device 60 shown in FIG. 10 , the levels of TX1 , RX1 , TX2 , and RX1 are not at 0 at the same time, thereby avoiding the self-locking phenomenon when the CAN bus is connected. This will be described in detail below.
情形1:三态门U10和三态门U12均为低电平使能的三态门。Case 1: Both the tri-state gate U10 and the tri-state gate U12 are low-level enabled tri-state gates.
当第一CAN总线10发送信号(即第一CAN总线10的状态为显性)时,RX1的电平为0,TX2的电平为0,RX2的电平为0,TX1的电平为1(具体内容可以参考发明内容,此处不再赘述)。这样,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为0,从而可避免CAN总线连接时发生自锁现象。When the first CAN bus 10 sends a signal (that is, the state of the first CAN bus 10 is dominant), the level of RX1 is 0, the level of TX2 is 0, the level of RX2 is 0, and the level of TX1 is 1 (specific content can refer to the content of the invention, and will not be repeated here). In this way, the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are not 0 at the same time, so as to avoid the self-locking phenomenon when the CAN bus is connected.
第一CAN总线10也可以发送隐性电平的信号(即发送电平为1的信号),此时,RX1的电平为1,TX1的电平为1,信号的传输方向为RX1->TX2->RX2->TX1。RX1需要通过三态门U10向TX2传递信号,因此,需要判断三态门U10的输入端和输出端之间的关系。TX1的电平1经过非门U11变成电平0;三态门U10输出控制端的电平为0时,三态门U10输出端的电平和三态门U10输入端的电平相同,因此,TX2的电平与RX1的电平相同,均为1。RX2的电平与TX2的电平相同,因此,RX2的电平为1。RX2需要通过三态门U12向TX1传递信号,因此,需要判断三态门U12的输入端和输出端之间的关系。TX2的电平1经过非门U13变成0;三态门U12输出控制端的电平为0,三态门U12输出端的电平和三态门U12输入端的电平相同,因此,与U7输出端连接的TX1的电平为1。这样,RX1的电平为1,TX2的电平为1,RX2的电平为1,TX1的电平为1。The first CAN bus 10 can also send a recessive level signal (that is, a signal with a sending level of 1). At this time, the level of RX1 is 1, the level of TX1 is 1, and the transmission direction of the signal is RX1->TX2->RX2->TX1. RX1 needs to transmit a signal to TX2 through the tri-state gate U10, therefore, it is necessary to judge the relationship between the input terminal and the output terminal of the tri-state gate U10. The level 1 of TX1 becomes level 0 through the NOT gate U11; when the level of the output control terminal of the tri-state gate U10 is 0, the level of the output terminal of the tri-state gate U10 is the same as the level of the input terminal of the tri-state gate U10, so the level of TX2 is the same as the level of RX1, both are 1. The level of RX2 is the same as that of TX2, therefore, the level of RX2 is 1. RX2 needs to transmit signals to TX1 through the tri-state gate U12, therefore, it is necessary to judge the relationship between the input terminal and the output terminal of the tri-state gate U12. The level 1 of TX2 becomes 0 through the NOT gate U13; the level of the output control terminal of the tri-state gate U12 is 0, and the level of the output terminal of the tri-state gate U12 is the same as the level of the input terminal of the tri-state gate U12. Therefore, the level of TX1 connected to the output terminal of U7 is 1. In this way, the level of RX1 is 1, the level of TX2 is 1, the level of RX2 is 1, and the level of TX1 is 1.
综上,当第一CAN总线10发送信号时,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为0,从而可以避免CAN总线连接时发生自锁现象。To sum up, when the first CAN bus 10 sends a signal, the levels of TX1, RX1, TX2, and RX1 are different from 0 at the same time, thereby avoiding the self-locking phenomenon when the CAN bus is connected.
类似的,当第二CAN总线50发送信号(即第二CAN总线50的状态为显性)时,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为0,从而可以避免CAN总线连接时发生自锁现象。Similarly, when the second CAN bus 50 sends a signal (that is, the state of the second CAN bus 50 is dominant), the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are not 0 at the same time, so that the self-locking phenomenon can be avoided when the CAN bus is connected.
另外,假设第一CAN总线10和第二CAN总线50的状态均为空闲时,RX1的电平为1,TX1的电平为1。基于与第一CAN总线10发送隐性电平的信号相同的原因,此时,RX1的电平为1,TX2的电平为1,RX2的电平为1,TX1的电平为1。因此,通过图10所示的装置,当第一CAN总线10和第二CAN总线50的状态均为空闲时,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为0,从而可以避免CAN总线连接时发生自锁现象。In addition, assuming that both the first CAN bus 10 and the second CAN bus 50 are idle, the level of RX1 is 1, and the level of TX1 is 1. Based on the same reason as that the first CAN bus 10 sends a recessive level signal, at this time, the level of RX1 is 1, the level of TX2 is 1, the level of RX2 is 1, and the level of TX1 is 1. Therefore, through the device shown in Figure 10, when the states of the first CAN bus 10 and the second CAN bus 50 are both idle, the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are different from 0 at the same time, thereby avoiding the self-locking phenomenon when the CAN bus is connected.
综上,在情形1中,总线状态与TX1、RX1、TX2和RX2的电平之间的关系可如表5所示。To sum up, in case 1, the relationship between the bus state and the levels of TX1 , RX1 , TX2 and RX2 can be shown in Table 5.
表5table 5
Figure PCTCN2022072595-appb-000004
Figure PCTCN2022072595-appb-000004
情形2:三态门U10和三态门U12均为高电平使能的三态门。Case 2: Both the tri-state gate U10 and the tri-state gate U12 are high-level enabled tri-state gates.
当第一CAN总线10发送信号(即第一CAN总线10的状态为显性)时,RX1的电平为0,TX2的电平为1,RX2的电平为1,TX1的电平为1(具体内容可以参考发明内容,此处不再赘述)。这样,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为0,从而可避免CAN总线连接时发生自锁现象。When the first CAN bus 10 sends a signal (that is, the state of the first CAN bus 10 is dominant), the level of RX1 is 0, the level of TX2 is 1, the level of RX2 is 1, and the level of TX1 is 1 (specific content can refer to the content of the invention, and will not be repeated here). In this way, the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are not 0 at the same time, so as to avoid the self-locking phenomenon when the CAN bus is connected.
第一CAN总线10也可以发送隐性电平的信号(即发送电平为1的信号),此时,RX1的电平为1,TX1的电平为1,信号的传输方向为RX1->TX2->RX2->TX1。RX1需要通过三态门U10向TX2传递信号,因此,需要判断三态门U10的输入端和输出端之间的关系。TX1的电平1经过非门U11变成电平0;三态门U10输出控制端的电平为0时,三态门U10的输出端为高阻,可阻断RX1和TX2之间的通路。由于TX2连接有供电装置,因此,TX2的电平为1。RX2接收到来自TX2的信号,从而使得RX2的电平与TX2的电平相同,因此,RX2的电平为1。RX2需要通过三态门U12向TX1传递信号,因此,需要判断三态门U12的输入端和输出端之间的关系。TX2的电平1经过非门U13变成0;三态门U12输出控制端的电平为0时,三态门U12的输出端为高阻,阻断了RX2和TX1之间的通路。由于TX1连接有供电装置,因此,TX1的电平为1。这样,RX1的电平为1,TX2的电平为1,RX2的电平为1,TX1的电平为1。The first CAN bus 10 can also send a recessive level signal (that is, a signal with a sending level of 1). At this time, the level of RX1 is 1, the level of TX1 is 1, and the transmission direction of the signal is RX1->TX2->RX2->TX1. RX1 needs to transmit a signal to TX2 through the tri-state gate U10, therefore, it is necessary to judge the relationship between the input terminal and the output terminal of the tri-state gate U10. The level 1 of TX1 becomes level 0 through the NOT gate U11; when the level of the output control terminal of the tri-state gate U10 is 0, the output terminal of the tri-state gate U10 is high impedance, which can block the path between RX1 and TX2. Since TX2 is connected to a power supply device, the level of TX2 is 1. RX2 receives the signal from TX2, so that the level of RX2 is the same as the level of TX2, therefore, the level of RX2 is 1. RX2 needs to transmit signals to TX1 through the tri-state gate U12, therefore, it is necessary to judge the relationship between the input terminal and the output terminal of the tri-state gate U12. The level 1 of TX2 becomes 0 through the NOT gate U13; when the level of the output control terminal of the tri-state gate U12 is 0, the output terminal of the tri-state gate U12 is high impedance, blocking the path between RX2 and TX1. Since TX1 is connected to a power supply device, the level of TX1 is 1. In this way, the level of RX1 is 1, the level of TX2 is 1, the level of RX2 is 1, and the level of TX1 is 1.
综上,当第一CAN总线10发送信号时,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为0,从而可以避免CAN总线连接时发生自锁现象。To sum up, when the first CAN bus 10 sends a signal, the levels of TX1, RX1, TX2, and RX1 are different from 0 at the same time, thereby avoiding the self-locking phenomenon when the CAN bus is connected.
类似的,当第二CAN总线50发送信号(即第二CAN总线50的状态为显性)时,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为0,从而可以避免CAN总线连接时发生自锁现象。Similarly, when the second CAN bus 50 sends a signal (that is, the state of the second CAN bus 50 is dominant), the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are not 0 at the same time, so that the self-locking phenomenon can be avoided when the CAN bus is connected.
另外,假设第一CAN总线10和第二CAN总线50的状态均为空闲时,RX1的电平为1,TX1的电平为1。基于与第一CAN总线10发送隐性电平的信号相同的原因,此时,RX1的电平为1,TX2的电平为1,RX2的电平为1,TX1的电平为1。因此,通过图10所示的装置,当第一CAN总线10和第二CAN总线50的状态均为空闲时,TX1的电平、RX1的电平、TX2的电平、RX1的电平不同时为0,从而可以避免CAN总线连接时发生自锁现象。In addition, assuming that both the first CAN bus 10 and the second CAN bus 50 are idle, the level of RX1 is 1, and the level of TX1 is 1. Based on the same reason as that the first CAN bus 10 sends a recessive level signal, at this time, the level of RX1 is 1, the level of TX2 is 1, the level of RX2 is 1, and the level of TX1 is 1. Therefore, through the device shown in Figure 10, when the states of the first CAN bus 10 and the second CAN bus 50 are both idle, the level of TX1, the level of RX1, the level of TX2, and the level of RX1 are different from 0 at the same time, thereby avoiding the self-locking phenomenon when the CAN bus is connected.
综上,在情形2中,总线状态与TX1、RX1、TX2和RX2的电平之间的关系可如表6所示。To sum up, in case 2, the relationship between the bus state and the levels of TX1 , RX1 , TX2 and RX2 can be shown in Table 6.
表6Table 6
Figure PCTCN2022072595-appb-000005
Figure PCTCN2022072595-appb-000005
本申请实施例还提供了一种总线处理系统。图11示出了该总线处理系统70的可能的架构,如图11所示,该总线处理系统70包括:第一收发器20、第二收发器40和上述任一总线处理装置60;其中,第一收发器20、第二收发器40和总线处理装置60的连接关系可以参考上述实施例,此处不再赘述。该总线处理系统70可以实现上述任一总线处理装置60的效果,此处不再赘述。The embodiment of the present application also provides a bus processing system. Figure 11 shows a possible architecture of the bus processing system 70. As shown in Figure 11, the bus processing system 70 includes: a first transceiver 20, a second transceiver 40, and any of the bus processing devices 60; wherein, the connection relationship between the first transceiver 20, the second transceiver 40 and the bus processing device 60 can refer to the above-mentioned embodiments, and will not be repeated here. The bus processing system 70 can realize the effects of any of the bus processing devices 60 described above, which will not be repeated here.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的保护范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Apparently, those skilled in the art can make various changes and modifications to this application without departing from the protection scope of this application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.

Claims (8)

  1. 一种总线处理装置,其特征在于,包括:第一开关器件、第二开关器件、电源、第一电阻和第二电阻;A bus processing device, characterized by comprising: a first switching device, a second switching device, a power supply, a first resistor and a second resistor;
    所述第一开关器件的控制电极连接至第一收发器的发送端,所述第一开关器件的第一电极连接至所述第一收发器的接收端,所述第一开关器件的第二电极连接至第二收发器的发送端,所述第一开关器件的第二电极还通过所述第一电阻连接至所述电源;The control electrode of the first switching device is connected to the sending end of the first transceiver, the first electrode of the first switching device is connected to the receiving end of the first transceiver, the second electrode of the first switching device is connected to the sending end of the second transceiver, and the second electrode of the first switching device is also connected to the power supply through the first resistor;
    所述第二开关器件的控制电极连接至所述第二收发器的发送端,所述第二开关器件的第一电极连接至所述第二收发器的接收端,所述第二开关器件的第二电极连接至所述第一收发器的发送端,所述第二开关器件的第二电极还通过所述第二电阻连接至所述电源;The control electrode of the second switching device is connected to the sending end of the second transceiver, the first electrode of the second switching device is connected to the receiving end of the second transceiver, the second electrode of the second switching device is connected to the sending end of the first transceiver, and the second electrode of the second switching device is also connected to the power supply through the second resistor;
    其中,所述第一收发器与第一控制器局域网CAN总线连接,所述第二收发器与第二CAN总线连接;Wherein, the first transceiver is connected to the first controller area network CAN bus, and the second transceiver is connected to the second CAN bus;
    所述第一开关器件用于:当所述第一收发器的发送端的电平为低电平时,断开所述第一收发器的接收端和所述第二收发器的发送端之间的通路;The first switching device is configured to: disconnect the path between the receiving end of the first transceiver and the transmitting end of the second transceiver when the level of the sending end of the first transceiver is low;
    所述第二开关器件用于:当所述第二收发器的发送端的电平为低电平时,断开所述第二收发器的接收端和所述第一收发器的发送端之间的通路。The second switching device is configured to disconnect the path between the receiving end of the second transceiver and the sending end of the first transceiver when the level of the sending end of the second transceiver is low.
  2. 根据权利要求1所述的装置,其特征在于,所述第一开关器件和所述第二开关器件中的任一开关器件为以下至少一项:The device according to claim 1, wherein any one of the first switching device and the second switching device is at least one of the following:
    三极管、N型金属氧化物半导体场效应晶体管。Triode, N-type Metal Oxide Semiconductor Field Effect Transistor.
  3. 根据权利要求2所述的装置,其特征在于,The device according to claim 2, characterized in that,
    当所述第一开关器件和所述第二开关器件中的任一开关器件为三极管时,所述任一开关器件的控制电极为基极,所述任一开关器件的第一电极为发射极,所述任一开关器件的第二电极为集电极;或者When any one of the first switching device and the second switching device is a triode, the control electrode of any one of the switching devices is a base, the first electrode of any one of the switching devices is an emitter, and the second electrode of any one of the switching devices is a collector; or
    当所述第一开关器件和所述第二开关器件中的任一开关器件为N型金属氧化物半导体场效应晶体管时,所述任一开关器件的控制电极为栅极,所述任一开关器件的第一电极为漏极,所述任一开关器件的第二电极为源极;或者When any one of the first switching device and the second switching device is an N-type metal-oxide-semiconductor field-effect transistor, the control electrode of any one of the switching devices is a gate, the first electrode of any one of the switching devices is a drain, and the second electrode of any one of the switching devices is a source; or
    当所述第一开关器件和所述第二开关器件中的任一开关器件为N型金属氧化物半导体场效应晶体管时,所述任一开关器件的控制电极为栅极,所述任一开关器件的第一电极为源极,所述任一开关器件的第二电极为漏极。When any switching device in the first switching device and the second switching device is an N-type metal oxide semiconductor field effect transistor, the control electrode of any switching device is a gate, the first electrode of any switching device is a source, and the second electrode of any switching device is a drain.
  4. 根据权利要求1至3任一项所述的装置,其特征在于,还包括:第一二极管和第二二极管;The device according to any one of claims 1 to 3, further comprising: a first diode and a second diode;
    所述第一二极管的正极连接至所述第一收发器的接收端,所述第一二极管的负极连接至所述第二收发器的发送端;The anode of the first diode is connected to the receiving end of the first transceiver, and the cathode of the first diode is connected to the sending end of the second transceiver;
    所述第二二极管的正极连接至所述第二收发器的接收端,所述第二二极管的负极连接至所述第一收发器的发送端。The anode of the second diode is connected to the receiving end of the second transceiver, and the cathode of the second diode is connected to the sending end of the first transceiver.
  5. 根据权利要求1至4任一项所述的装置,其特征在于,还包括:第一电容和第二电 容;The device according to any one of claims 1 to 4, further comprising: a first capacitor and a second capacitor;
    所述第一电容的两端分别连接至所述第一收发器的接收端和所述第二收发器的发送端;Both ends of the first capacitor are respectively connected to the receiving end of the first transceiver and the transmitting end of the second transceiver;
    所述第二电容的两端分别连接至所述第二收发器的接收端和所述第一收发器的发送端。Both ends of the second capacitor are respectively connected to the receiving end of the second transceiver and the sending end of the first transceiver.
  6. 根据权利要求1至5任一项所述的装置,其特征在于,还包括第三电阻和/或第四电阻;The device according to any one of claims 1 to 5, further comprising a third resistor and/or a fourth resistor;
    所述第一开关器件的控制电极通过所述第三电阻连接至第一收发器的发送端;The control electrode of the first switching device is connected to the sending end of the first transceiver through the third resistor;
    所述第二开关器件的控制电极通过所述第四电阻连接至第二收发器的发送端。The control electrode of the second switching device is connected to the sending end of the second transceiver through the fourth resistor.
  7. 一种总线处理装置,其特征在于,包括:第一三态门、第二三态门、第一非门、第二非门、电源、第五电阻和第六电阻;A bus processing device, characterized by comprising: a first tri-state gate, a second tri-state gate, a first NOT gate, a second NOT gate, a power supply, a fifth resistor and a sixth resistor;
    所述第一三态门的输入端连接至第一收发器的接收端,所述第一三态门的输出端连接至第二收发器的发送端,所述第一三态门的输出端还通过所述第五电阻连接至所述电源;The input end of the first tri-state gate is connected to the receiving end of the first transceiver, the output end of the first tri-state gate is connected to the transmitting end of the second transceiver, and the output end of the first tri-state gate is also connected to the power supply through the fifth resistor;
    所述第二三态门的输入端连接至所述第二收发器的接收端,所述第二三态门的输出端连接至所述第一收发器的发送端;The input terminal of the second tristate gate is connected to the receiving terminal of the second transceiver, and the output terminal of the second tristate gate is connected to the transmitting terminal of the first transceiver;
    所述第一非门的输入端连接至所述第一收发器的发送端,所述第一非门的输出端连接至所述第一三态门的输出控制端,所述第二三态门的输出端还通过所述第六电阻连接至所述电源;The input terminal of the first NOT gate is connected to the sending terminal of the first transceiver, the output terminal of the first NOT gate is connected to the output control terminal of the first tri-state gate, and the output terminal of the second tri-state gate is also connected to the power supply through the sixth resistor;
    所述第二非门的输入端连接至所述第二收发器的发送端,所述第二非门的输出端连接至所述第二三态门的输出控制端;The input terminal of the second NOT gate is connected to the sending terminal of the second transceiver, and the output terminal of the second NOT gate is connected to the output control terminal of the second tri-state gate;
    其中,所述第一收发器与第一控制器局域网CAN总线连接,所述第二收发器与第二CAN总线连接;Wherein, the first transceiver is connected to the first controller area network CAN bus, and the second transceiver is connected to the second CAN bus;
    所述第一三态门和所述第二三态门为低电平使能的三态门;或者,所述第一三态门和所述第二三态门为高电平使能的三态门。The first tri-state gate and the second tri-state gate are tri-state gates enabled with a low level; or, the first tri-state gate and the second tri-state gate are tri-state gates enabled with a high level.
  8. 一种总线处理系统,其特征在于,包括:如权利要求1至7任一项所示的装置,所述第一收发器,以及所述第二收发器。A bus processing system, characterized by comprising: the device as claimed in any one of claims 1 to 7, the first transceiver, and the second transceiver.
PCT/CN2022/072595 2022-01-18 2022-01-18 Bus processing apparatus and system WO2023137593A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2022/072595 WO2023137593A1 (en) 2022-01-18 2022-01-18 Bus processing apparatus and system
CN202280005473.3A CN116783870A (en) 2022-01-18 2022-01-18 Bus processing device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/072595 WO2023137593A1 (en) 2022-01-18 2022-01-18 Bus processing apparatus and system

Publications (1)

Publication Number Publication Date
WO2023137593A1 true WO2023137593A1 (en) 2023-07-27

Family

ID=87347585

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/072595 WO2023137593A1 (en) 2022-01-18 2022-01-18 Bus processing apparatus and system

Country Status (2)

Country Link
CN (1) CN116783870A (en)
WO (1) WO2023137593A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5809077A (en) * 1996-01-30 1998-09-15 Mercedes Benz Ag Circuit for signal-transmitting connection of data networks
EP1304837A1 (en) * 2001-10-22 2003-04-23 Renault Logical coupler in a telecommunication network
CN1417984A (en) * 2001-11-05 2003-05-14 清华同方股份有限公司 Concentrator based on two-line two-state communication bus system
WO2003073685A1 (en) * 2002-02-28 2003-09-04 Siemens Mobile Communications S.P.A. Interconnection between can buses with anti-locking circuit.
CN103220199A (en) * 2013-04-28 2013-07-24 国电南瑞科技股份有限公司 Line concentration method for multi-channel isolation of CAN (Controller Area Network) bus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5809077A (en) * 1996-01-30 1998-09-15 Mercedes Benz Ag Circuit for signal-transmitting connection of data networks
EP1304837A1 (en) * 2001-10-22 2003-04-23 Renault Logical coupler in a telecommunication network
CN1417984A (en) * 2001-11-05 2003-05-14 清华同方股份有限公司 Concentrator based on two-line two-state communication bus system
WO2003073685A1 (en) * 2002-02-28 2003-09-04 Siemens Mobile Communications S.P.A. Interconnection between can buses with anti-locking circuit.
CN103220199A (en) * 2013-04-28 2013-07-24 国电南瑞科技股份有限公司 Line concentration method for multi-channel isolation of CAN (Controller Area Network) bus

Also Published As

Publication number Publication date
CN116783870A (en) 2023-09-19

Similar Documents

Publication Publication Date Title
CN109347713B (en) Bidirectional bus system and method for operating bidirectional bus
EP3295318B1 (en) Apparatus and methods for providing a reconfigurable bidirectional front-end interface
US8994443B2 (en) Bidirectional switch and switch circuit using the bidirectional switch
US8644791B2 (en) Communications module apparatus, integrated circuit and method of communicating data
CN105471687A (en) Controller area network bus driver and method for controlling driver
US20180366966A1 (en) Intelligent switch system and control method
US20130051435A1 (en) System, method and device for providing network communications
WO2018036291A1 (en) Charging circuit for charger, charging circuit for mobile terminal, charger, and mobile terminal
WO2023137593A1 (en) Bus processing apparatus and system
WO2022156269A1 (en) Power distribution system and server system
CN104901813A (en) Power supply device and power supply system
CN103049410A (en) Server and serial port switching circuit thereof
JP2015122656A (en) Data receiving device
CN204314873U (en) A kind of I2C buffer circuit and I2C bus system
CN106326174A (en) Two-wire communication circuit
CN110970671A (en) Battery management unit, battery system and motor vehicle
CN210351199U (en) POE self-adaptive power supply device
CN211826943U (en) Communication control circuit and device
US9804986B2 (en) Device for switching between communication modes
WO2019100280A1 (en) Power receiving circuit apparatus
CN213402972U (en) Level conversion circuit and electric equipment
CN116743532B (en) Ringing suppression circuit and electronic equipment
CN220064804U (en) Single-wire-controlled RS485-RS232 switching circuit
CN220108002U (en) PSE power supply equipment special for rail transit
CN116054810B (en) Level conversion circuit and electronic device

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 202280005473.3

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22921042

Country of ref document: EP

Kind code of ref document: A1