WO2022040997A1 - Intra-board communication circuit and intra-board communication device - Google Patents

Intra-board communication circuit and intra-board communication device Download PDF

Info

Publication number
WO2022040997A1
WO2022040997A1 PCT/CN2020/111503 CN2020111503W WO2022040997A1 WO 2022040997 A1 WO2022040997 A1 WO 2022040997A1 CN 2020111503 W CN2020111503 W CN 2020111503W WO 2022040997 A1 WO2022040997 A1 WO 2022040997A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication node
communication
diode
board
resistor
Prior art date
Application number
PCT/CN2020/111503
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/CN2020/111503 priority Critical patent/WO2022040997A1/en
Priority to CN202080006665.7A priority patent/CN113168145B/en
Publication of WO2022040997A1 publication Critical patent/WO2022040997A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • 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
    • H04L12/40006Architecture of a communication node
    • H04L12/40013Details regarding a bus controller
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/21Pc I-O input output
    • G05B2219/21063Bus, I-O connected to a bus
    • 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
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the technical field of electronic circuits, and in particular, to an intra-board communication circuit and an intra-board communication device.
  • the controller area network (CAN) bus is a multi-master bus, that is, each node machine can become the master, and the node machines can also communicate.
  • CAN communication is widely used in automotive, medical, marine, aviation and other fields due to its excellent performance, unique design and high reliability.
  • In-board communication generally adopts serial communication interface (SCI), serial peripheral interface (SPI), I2C (inter-integrated circuit, built-in integrated circuit) and other buses, but CAN bus has its own There are some advantages, the use of CAN bus for intra-board communication can make full use of its advantages to realize the communication process in different scenarios.
  • SCI serial communication interface
  • SPI serial peripheral interface
  • I2C inter-integrated circuit, built-in integrated circuit
  • CAN bus has its own
  • SCI serial communication interface
  • SPI serial peripheral interface
  • I2C inter-integrated circuit, built-in integrated circuit
  • Embodiments of the present application provide an intra-board communication circuit and an intra-board communication device, which implement CAN communication in the board without using a CAN transceiver, thereby reducing hardware costs.
  • an intra-board communication circuit is provided.
  • the intra-board communication circuit is used to implement intra-board communication between a first communication node and a second communication node, and the intra-board communication circuit includes a first communication node. a diode, a second diode, a first resistor, a second resistor and an isolation chip, wherein:
  • the transmitting end of the first communication node is connected to the cathode of the first diode, and the anode of the first diode is connected to the receiving end of the first communication node and the first end of the first resistor, The second end of the first resistor is connected to the first power supply end;
  • the transmitting end of the second communication node is connected to the cathode of the second diode, and the anode of the second diode is connected to the second communication node the receiving end of the node and the first end of the second resistor, the second end of the second resistor is connected to the second power supply end;
  • the transmitting end of the first communication node is connected to the second input end of the isolation chip, the receiving end of the first communication node is connected to the first output end of the isolation chip, and the transmitting end of the second communication node
  • the first input end of the isolation chip is connected, and the receiving end of the second communication node is connected to the second output end of the isolation chip, if the transmitting end of the first communication node and/or the second
  • the sending end of the communication node is at low level, and the on-board communication circuit realizes that the receiving end of the first communication node and the receiving end of the second communication node are at low level.
  • the in-board communication circuit further includes a third diode and a fourth diode, the anode of the third diode is connected to the receiving end of the first communication node, and the fourth diode is connected to the receiving end of the first communication node.
  • the positive pole of the tube is connected to the receiving end of the second communication node;
  • the cathode of the third diode is connected to the first output terminal of the isolation chip, the receiving terminal of the first communication node is connected to the second input terminal of the isolation chip, and the cathode of the fourth diode is connected to the first output terminal of the isolation chip.
  • the second output end of the isolation chip When the second output end of the isolation chip is connected, and the receiving end of the second communication node is connected to the first input end of the isolation chip, if the transmitting end of the first communication node and/or the second communication node The sending end of the communication node is at low level, and the on-board communication circuit realizes that the receiving end of the first communication node and the receiving end of the second communication node are at low level; if the sending end of the first communication node Both the terminal and the transmitting terminal of the second communication node are at a high level, and the on-board communication circuit realizes that the receiving terminal of the first communication node and the receiving terminal of the second communication node are at a high level.
  • the on-board communication circuit further includes a first filter circuit; the first end of the first resistor is connected to the receiving end of the first communication node through the first filter circuit.
  • the first filter circuit includes a third resistor and a first capacitor; the first end of the first capacitor is connected to the first end of the third resistor and the receiving end of the first communication node, so The second end of the first capacitor is connected to the first ground end, and the second end of the third resistor is connected to the first end of the first resistor.
  • the on-board communication circuit further includes a second filter circuit; the first end of the second resistor is connected to the receiving end of the second communication node through the second filter circuit.
  • the second filter circuit includes a fourth resistor and a second capacitor; the first end of the second capacitor is connected to the second end of the fourth resistor and the receiving end of the second communication node, so The second end of the second capacitor is connected to the second ground end, and the first end of the fourth resistor is connected to the first end of the second resistor.
  • an intra-board communication device in a second aspect of the embodiments of the present application, includes a first communication node, a second communication node, and any one of the intra-board communication circuits in the first aspect of the embodiments of the present application .
  • the ground terminal of the first communication node is connected to a third ground terminal, and the ground terminal of the second communication node is connected to a fourth ground terminal, and the third ground terminal is different from the fourth ground terminal.
  • both the first communication node and the second communication node include a microcontroller unit and a CAN controller.
  • both the first communication node and the second communication node include a micro-control unit, and a CAN controller is integrated in the micro-control unit.
  • the power supply terminal of the first communication node is connected to the first auxiliary power supply, and the power supply terminal of the second communication node is connected to the second auxiliary power supply.
  • An embodiment of the present application provides an in-board communication circuit, including a first diode, a second diode, a first resistor, a second resistor and an isolation chip.
  • the in-board communication circuit has a simple structure and adopts electronic components. few.
  • the on-board communication circuit can implement the receiving end of the first communication node and the second communication node when the transmitting end of the first communication node or the transmitting end of the second communication node is at a low level.
  • the receiving ends of the communication nodes are all low-level, so that the CAN communication on the board is realized without the CAN transceiver, which not only makes full use of the advantages of CAN communication in the board, but also reduces the hardware cost.
  • 1a is a schematic diagram of CAN communication using a CAN transceiver in a traditional method
  • Fig. 1b is a kind of CAN signal schematic diagram that adopts CAN transceiver to realize CAN communication disclosed in the embodiment of the present application;
  • Fig. 1c is a kind of level schematic diagram of the CAN signal that adopts CAN transceiver to realize CAN communication disclosed in the embodiment of the present application;
  • FIG. 2a is a schematic structural diagram of an in-board communication circuit disclosed in an embodiment of the present application.
  • 2b is a schematic structural diagram of another on-board communication circuit disclosed in an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of another on-board communication circuit disclosed in an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an in-board communication device disclosed in an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of another in-board communication device disclosed in an embodiment of the present application.
  • each communication node sends and receives signals from other communication nodes on the bus through a CAN transceiver. Therefore, each communication node must add a CAN transceiver. In addition, a CAN controller is required to implement CAN communication.
  • FIG. 1a is a schematic diagram of CAN communication using a CAN transceiver in the conventional method.
  • the CAN controller is integrated inside the microcontroller unit MCU.
  • the CAN controller can receive the data sent by the microprocessor in the microcontroller unit MCU, and transmit the data to the CAN transceiver; the CAN transceiver is used to transmit data to the bus or receive data from the bus and transmit it to the CAN controller.
  • MCU microcontroller unit
  • adding a CAN transceiver to each communication node will increase the cost of the on-board communication.
  • FIG. 1 b is a schematic diagram of a CAN signal using a CAN transceiver to realize CAN communication disclosed in an embodiment of the present application.
  • Fig. 1b is a schematic diagram of CAN signals in CAN communication using a CAN transceiver based on Fig. 1a.
  • the CAN signal is a bit stream signal that alternates with dominant level and recessive level.
  • the CAN signal can include transmission control commands, and can also include data segments or data blocks.
  • "0" represents dominant, dominant corresponds to low level
  • "1" represents recessive
  • recessive corresponds to high level.
  • the CAN signal takes the control command as an example.
  • the CAN signal is the dominant level "0" in the first time period, the recessive level “1” in the second time period, and the third time period.
  • the dominant level is “0” in the time period
  • the dominant level is “0” in the fourth time period
  • the recessive level "1” is in the fifth time period.
  • the sum of the durations is used as a cycle, and the levels corresponding to the five time periods will appear repeatedly in the next cycle, which can be used to periodically transmit the same control command.
  • FIG. 1c is a schematic level diagram of a CAN signal that uses a CAN transceiver to implement CAN communication disclosed in an embodiment of the present application.
  • FIG. 1c is a schematic diagram of the level of CAN signals in CAN communication using a CAN transceiver based on FIG. 1a.
  • the dominant level and the recessive level in the CAN signal are not voltages corresponding to two specific values, but correspond to two voltage ranges.
  • the dominant level in the CAN signal is "0V ⁇ 1.5V”, the corresponding recessive level is "1.5V ⁇ 5V”; when the dominant level in the CAN signal is "0V ⁇ 2.5V”, the corresponding recessive level is "2.5V ⁇ 5V”; When the dominant level in the CAN signal is "0V ⁇ 3.5V”, the corresponding recessive level is "3.5V ⁇ 5V”.
  • the embodiments of the present application provide an intra-board communication circuit and an intra-board communication device, which can implement CAN communication in the board without using a CAN transceiver. A detailed description will be given below.
  • FIG. 2a is a schematic structural diagram of an on-board communication circuit disclosed in an embodiment of the present application.
  • the intra-board communication circuit 30 described in this embodiment is used to realize intra-board communication between the first communication node 10 and the second communication node 20, and the intra-board communication circuit includes a first diode D1 , the second diode D2, the first resistor R1, the second resistor R2 and the isolation chip 301, wherein:
  • the transmitting end TX1 of the first communication node 10 is connected to the cathode of the first diode D1, and the anode of the first diode D1 is connected to the receiving end RX1 of the first communication node 10 and the first diode D1.
  • the first end 11 of the resistor R1 and the second end 12 of the first resistor R1 are connected to the first power supply end;
  • the transmitting end TX2 of the second communication node 20 is connected to the negative electrode of the second diode D2, the The anode of the second diode D2 is connected to the receiving terminal RX2 of the second communication node 20 and the first terminal 21 of the second resistor R2, and the second terminal 22 of the second resistor R2 is connected to the second power terminal;
  • the transmitting end TX1 of the first communication node 10 is connected to the second input end IN2 of the isolation chip 301 , and the receiving end RX1 of the first communication node 10 is connected to the first output end OUT1 of the isolation chip 301 .
  • the transmitting end TX2 of the second communication node 20 is connected to the first input end IN1 of the isolation chip 301, and the receiving end RX2 of the second communication node 20 is connected to the second output end OUT2 of the isolation chip 301, If the transmitting end TX1 of the first communication node 10 and/or the transmitting end TX2 of the second communication node 20 is at a low level, the on-board communication circuit 30 implements the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 is at a low level.
  • the power supply level of the first power supply terminal and the second power supply terminal is the same.
  • the on-board communication circuit 30 in this embodiment of the present application is suitable for the case where the first communication node 10 , the second communication node 20 and the isolation chip 301 can only output a low level, for example, the first communication node 10 and the second communication node 20
  • Both the isolation chip 301 and the isolation chip 301 are open collector (Open Collector, OC) gates.
  • the on-board communication circuit 30 is used for realizing the receiving end RX1 of the first communication node 10 and the second communication node 20 when the transmitting end TX1 of the first communication node 10 and/or the transmitting end TX2 of the second communication node 20 are at low level.
  • the receiving end RX2 of the communication node 20 is all low level;
  • the transmitting terminal TX1 of the first communication node 10 When the transmitting terminal TX1 of the first communication node 10 is at a low level and the transmitting terminal TX2 of the second communication node 20 is at a low level, the first diode D1 and the second diode in the in-board communication circuit 30 Both the tubes D2 are turned on, and at this time, the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 are both at low level.
  • the first communication node 10 and the second communication node 20 can implement controller area network CAN bus communication through the on-board communication circuit 30 .
  • the first communication node 10 and the second communication node 20 can perform data transmission and control command transmission through the on-board communication circuit 30 .
  • first diode D1 and the second diode D2 may be implemented by using alternative circuits having diode functions (ie, unidirectional conduction and reverse cut-off functions), which are not limited in the embodiments of the present application.
  • the on-board communication circuit may implement the receiver of the first communication node and the receiver of the second communication node.
  • the receiving ends of the communication nodes are all low-level, so that the CAN communication on the board is realized without the CAN transceiver, which not only makes full use of the advantages of CAN communication in the board, but also reduces the hardware cost.
  • FIG. 2b is a schematic structural diagram of another on-board communication circuit disclosed in an embodiment of the present application.
  • the intra-board communication circuit 30 described in this embodiment is used to realize intra-board communication between the first communication node 10 and the second communication node 20, and the intra-board communication circuit includes a first diode D1 , the second diode D2, the third diode D3, the fourth diode D4, the first resistor R1, the second resistor R2 and the isolation chip 301, wherein:
  • the transmitting end TX1 of the first communication node 10 is connected to the cathode of the first diode D1, and the anode of the first diode D1 is connected to the receiving end RX1 of the first communication node 10 and the first diode D1.
  • the first end 11 of the resistor R1 and the second end 12 of the first resistor R1 are connected to the first power supply end;
  • the transmitting end TX2 of the second communication node 20 is connected to the negative electrode of the second diode D2, the The anode of the second diode D2 is connected to the receiving terminal RX2 of the second communication node 20 and the first terminal 21 of the second resistor R2, and the second terminal 22 of the second resistor R2 is connected to the second power terminal;
  • the anode of the third diode D3 is connected to the receiving end RX1 of the first communication node 10
  • the anode of the fourth diode D4 is connected to the receiving end RX2 of the second communication node 20 ;
  • the negative pole of the third diode D3 is connected to the first output terminal OUT1 of the isolation chip 301, the receiving terminal RX1 of the first communication node 10 is connected to the second input terminal IN2 of the isolation chip 301, and the The cathode of the fourth diode D4 is connected to the second output terminal OUT2 of the isolation chip 301 , and the receiving terminal RX2 of the second communication node 20 is connected to the first input terminal IN1 of the isolation chip 301 .
  • the transmitting end TX1 of the first communication node 10 and/or the transmitting end TX2 of the second communication node 20 are at low level, and the on-board communication circuit 30 realizes the receiving end RX1 of the first communication node 10 and all The receiving end RX2 of the second communication node 20 is low level; if the transmitting end TX1 of the first communication node 10 and the transmitting end TX2 of the second communication node 20 are both high level, the intra-board communication The circuit 30 realizes that the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 are at a high level.
  • the power supply level of the first power supply terminal and the second power supply terminal is the same.
  • the transmitting terminal TX1 of the first communication node 10 When the transmitting terminal TX1 of the first communication node 10 is at a low level and the transmitting terminal TX2 of the second communication node 20 is at a low level, the first diode D1 and the second diode in the in-board communication circuit 30 Both the tubes D2 are turned on, at this time, the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 are both low level;
  • the transmitting terminal TX1 of the first communication node 10 When the transmitting terminal TX1 of the first communication node 10 is at a low level and the transmitting terminal TX2 of the second communication node 20 is at a high level, the first diode D1 in the on-board communication circuit 30 is turned on, and the second The diode D2 is non-conducting, the third diode D3 is non-conducting, and the fourth diode D4 is conducting. At this time, the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 are both low level;
  • the transmitting terminal TX1 of the first communication node 10 When the transmitting terminal TX1 of the first communication node 10 is at a high level and the transmitting terminal TX2 of the second communication node 20 is at a low level, the first diode D1 in the on-board communication circuit 30 is not conducting, and the first diode D1 in the on-board communication circuit 30 is not conducting.
  • the second diode D2 is turned on, the third diode D3 is turned on, and the fourth diode D4 is turned off.
  • the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 are both low level;
  • the transmitting end TX1 of the first communication node 10 and the transmitting end TX2 of the second communication node 20 are both at a high level
  • the first diode D1 and the second diode D2 in the intra-board communication circuit 30 are both Not conducting, at this time, the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 are at a high level.
  • the on-board communication circuit may implement the receiver of the first communication node and the receiver of the second communication node.
  • the receiving end of the communication node is all low level, and in the case that the transmitting end of the first communication node and the transmitting end of the second communication node are both high level, the on-board communication circuit can realize the first communication node.
  • the receiving end of the second communication node and the receiving end of the second communication node are both high level, so that the CAN communication in the board is realized without the CAN transceiver, which not only makes full use of the advantages of CAN communication in the board, but also reduces the hardware cost.
  • the CAN bus can be used to transmit data, and can also be used to transmit control commands.
  • CAN is one of the most widely used fieldbuses in the world.
  • German Bosch company developed the CAN bus in order to solve the problem of data exchange between numerous control and test instruments in modern automobiles.
  • CAN bus can effectively support serial communication network of distributed control or real-time control, and has the advantages of strong anti-interference and reliable use.
  • distributed environmental monitoring system greenhouse environmental monitoring system, substation monitoring system, etc.
  • CAN bus is a serial data communication protocol, and its communication interface (for example, the first communication node 10 and the second communication node 20) integrates the physical layer and data link layer functions of the CAN protocol, which can complete the conversion of data. Frame processing, including bit stuffing, data block coding, cyclic redundancy check, priority determination, etc. Users can develop application layer communication protocols that meet the actual needs of the system on its basis.
  • One of the biggest features of the CAN protocol is that the traditional station address coding is abolished, and the communication data block coding is replaced. This method can make the number of nodes in the network theoretically unlimited, and also allow different nodes to simultaneously received the same data.
  • the CAN bus is a multi-master bus, that is, each node machine can become the master, and the node machines can also communicate;
  • the communication medium of CAN bus can be twisted pair, coaxial cable or optical fiber, and the communication rate can reach 1Mbps;
  • the length of the data segment transmitted in the CAN bus is up to 8 bytes, which can meet the general requirements of control commands, working states and test data in the usual industrial fields. At the same time, 8 bytes will not occupy the bus for too long, thus ensuring the real-time communication;
  • the CAN protocol adopts cyclic redundancy check (CRC) check and can provide corresponding error handling functions to ensure the reliability of data communication;
  • CAN can work in a multi-master mode, and any node on the network can actively send information to other nodes on the bus at any time, realizing point-to-point, point-to-multipoint and global broadcasting. Send and receive data in several ways;
  • (6) CAN adopts non-destructive bus arbitration technology.
  • the node with low priority actively stops data transmission, while the node with high priority can continue to transmit data without being affected, saving Bus collision arbitration time.
  • the master node receives field data sent by other nodes, such as field temperature, current, pressure and other parameters, the master node generates various control commands after processing, and sends the control commands to various other nodes through the CAN bus. node.
  • the first resistor R1 and the second resistor R2 are pull-up resistors, and the resistance values of the first resistor R1 and the second resistor R2 may be the same or different.
  • the first resistor R1 and the second resistor R2 can improve the noise tolerance of the signal at the receiving end of the communication node and enhance the anti-interference ability.
  • the first diode D1 and the second diode D2 may be common switching diodes, low power consumption switching diodes, etc.
  • the parameters of the first diode D1 and the second diode D2 may be the same or different.
  • the isolation chip 301 may be an optocoupler isolation chip, so that there is no direct electrical connection between the two isolated communication nodes, mainly to prevent interference caused by the electrical connection.
  • the first communication node 10 is a high-voltage node
  • the second communication node 20 is a low-voltage node, and the ground levels of the two are different.
  • the first communication node 10 works in the DC mode
  • the second communication node 20 works in the AC mode, and the ground levels of the two are also different. If the isolation chip 301 is not used between the two communication nodes, the two communication nodes will interfere with each other. After adopting this scheme, such problems will be avoided.
  • the on-board communication circuit can be used in a board that does not need a large cable to carry a large current, such as a printed circuit board (PCB), etc.
  • the communication node can be a micro-control unit MCU, or It is a unit that interconnects the micro-control unit MCU and other electronic components, and can also be an integrated electronic device including the micro-control unit MCU.
  • Table 1 is the level change between the communication nodes of the on-board communication circuit of Figures 2a and 2b.
  • the high level is “1” and the low level is "0". It can be seen from Table 1 that as long as either the transmitting end (TX1 or TX2) of the first communication node and the second communication node is at a low level, the receiving end (both RX1 and RX2) of the first communication node and the second communication node is at a low level.
  • the on-board communication circuit of Fig. 2a and Fig. 2b does not use the CAN transceiver of Fig. 1a and does not use the CAN signal, and can also realize the function of CAN communication.
  • the high level and the low level correspond to the "1" and "0" of the digital signal, respectively. There is no intersection between the voltage range of the analog signal corresponding to the high level and the voltage range of the analog signal corresponding to the low level.
  • the voltage range of the analog signal corresponding to the high level is greater than 2.5V
  • the voltage range of the analog signal corresponding to the low level is 0-1.2V.
  • the first diode D1 and the second diode in the in-board communication circuit 30 Both the tubes D2 are turned on, so that the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 are both at low level.
  • the level of the first power supply terminal and the second power supply terminal is preset to 3.3V
  • the voltage range of the analog signal corresponding to the high level is 2.5-10V
  • the voltage range of the analog signal corresponding to the low level is 0 ⁇ 1.2V.
  • the transmission terminal TX1 of the first communication node 10 is at a low level (eg, 0V), and the transmission terminal TX2 of the second communication node 20 is at a low level (eg, 0V). Since the negative electrode of the first diode D1 is at 0V, The anode of the first diode D1 is connected to the voltage 3.3V of the first power supply terminal through the first resistor R1, and the first diode D1 is turned on. Similarly, since the cathode of the second diode D2 is 0V, and the anode of the second diode D2 is connected to the voltage of 3.3V at the second power supply terminal through the second resistor R2, the second diode D1 is turned on.
  • the level of the receiving terminal of the communication node is the same as the level of the transmitting terminal, and the isolation chip 301 is turned on (ie, the first input terminal IN1 of the isolation chip 301 is turned on). connected with the first output terminal OUT1, and the second input terminal IN2 is connected with the second output terminal OUT2), so that the receiving terminal RX1 of the first communication node 10 and the receiving terminal RX2 of the second communication node 20 are both low power flat.
  • the first diode D1 in the on-board communication circuit 30 is turned on, and the second The diode D2 is non-conducting, the third diode D3 is non-conducting, and the fourth diode D4 is conducting, so that the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 are both low level.
  • the first diode D1 in the on-board communication circuit 30 is turned on, and the second The diode D2 is non-conducting, the third diode D3 is non-conducting, and the fourth diode D4 is conducting, so that the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 are both low level.
  • the transmission terminal TX1 of the first communication node 10 is at a low level (for example, 0V), that is, the voltage of the negative electrode 32 of the first diode D1 is “0”, and the transmission terminal TX2 of the second communication node 20 is at a high level ( For example, 5V), that is, the voltage of the cathode 42 of the second diode D2 is "5V".
  • the cathode of the first diode D1 is 0V, and the anode of the first diode D1 is connected to the voltage of 3.3V at the first power supply terminal through the first resistor R1, the first diode D1 is turned on.
  • the voltage drop is generally 0.2-0.7V, and the anode voltage of the first diode D1 is 0.2-0.7V.
  • the cathode of the second diode D2 is 5V, and the anode of the second diode D2 is connected to the voltage of 3.3V at the second power supply terminal through the second resistor R2, the second diode D2 is not conducting, and the second diode D2 is not conducting.
  • the positive voltage of D2 is 3.3V.
  • the negative electrode of the third diode D3 passes through the isolation chip 301 and the positive electrode of the second diode D2 ( 3.3V) connection, then the third diode D3 is not conducting.
  • the positive electrode of the fourth diode D4 and the positive electrode of the second diode D2 have the same voltage as 3.3V, and the negative electrode of the fourth diode D4 passes through the isolation chip 301 and the positive electrode of the first diode D1 (0.2 ⁇ 0.7V) connection, then the fourth diode D4 is turned on.
  • the level of the receiving end RX1 of the first communication node 10 is the same as the level of the sending end TX1, which is a low level; when the second diode D2 is not turned on, due to the fourth diode
  • the tube D4 is turned on, the first diode D1 is turned on, the receiving end RX1 of the first communication node 10 will pass the low level through the second input end IN2 of the isolation chip 301, the second output end OUT2 of the isolation chip 301, the fourth The diode D4 is transmitted to the receiving end RX2 of the second communication node 20, and the receiving end RX2 of the second communication node 20 is also low level.
  • the transmitting terminal TX1 of the first communication node 10 When the transmitting terminal TX1 of the first communication node 10 is at a high level and the transmitting terminal TX2 of the second communication node 20 is at a low level, the first diode D1 in the on-board communication circuit 30 is not conducting, and the first diode D1 in the on-board communication circuit 30 is not conducting.
  • the second diode D2 is turned on, the third diode D3 is turned on, and the fourth diode D4 is turned off, so that the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 are both low level. As shown in Fig.
  • the transmission terminal TX1 of the first communication node 10 is at a high level (for example, 5V), that is, the voltage of the negative electrode 32 of the first diode D1 is “5V”, and the transmission terminal TX2 of the second communication node 20 is at a low level ( For example, 0V), that is, the voltage of the cathode 42 of the second diode D2 is "0V".
  • the cathode of the first diode D1 is 5V, and the anode of the first diode D1 is connected to the voltage of 3.3V at the first power supply terminal through the first resistor R1, the first diode D1 is not conducting, and the first diode D1 is not conductive.
  • the positive voltage of D1 is 3.3V.
  • the cathode of the second diode D2 is 0V, and the anode of the second diode D2 is connected to the voltage of the second power supply terminal 3.3V through the second resistor R2, the second diode D2 is turned on.
  • the voltage drop is generally 0.2-0.7V, and the anode voltage of the second diode D2 is 0.2-0.7V.
  • the negative electrode of the third diode D3 is separated from the positive electrode of the second diode D2 through the isolation chip 301 (0.2 ⁇ 0.7V) connection, then the third diode D3 is turned on.
  • the anode voltage of the fourth diode D4 is the same as the anode voltage of the second diode D2, and both are 0.2-0.7V, and the cathode of the fourth diode D4 passes through the isolation chip 301 and the anode of the first diode D1 ( 3.3V) connection, the fourth diode D4 is not conducting.
  • the transmitting end TX2 and the receiving end RX2 of the second communication node 20 are both at low level. Since the third diode D3 is turned on, the receiving terminal RX2 of the second communication node 20 will pass the low level through the first input terminal IN1 of the isolation chip 301 , the first output terminal OUT1 of the isolation chip 301 , and the third diode D3 It is transmitted to the receiving end RX1 of the first communication node 10, and the receiving end RX1 of the first communication node 10 is also low level.
  • the first diode D1 and the second diode D2 in the intra-board communication circuit 30 are both It is not turned on, so that the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 are both at a high level.
  • the level of the first power supply terminal and the second power supply terminal is preset to 3.3V
  • the voltage range of the analog signal corresponding to the high level is 2.5-10V
  • the voltage range of the analog signal corresponding to the low level is 0 ⁇ 1.2V.
  • the transmitting end TX1 of the first communication node 10 and the transmitting end TX2 of the second communication node 20 are both at a high level (for example, 5V), that is, the voltage of the negative electrode 32 of the first diode D1 is “5V”. Similarly, The voltage of the cathode 42 of the second diode D2 is also "V”.
  • the anode of the first diode D1 is connected to the voltage 3.3V of the first power supply terminal through the first resistor R1, then the first diode D1 is not conducting, and the anode voltage of the first diode D1 is 3.3V.
  • the anode of the second diode D2 is connected to the voltage of 3.3V at the second power supply terminal through the second resistor R2, the second diode D2 is non-conductive, and the anode voltage of the second diode D2 is 3.3V.
  • the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 are both 3.3V, that is, a high level.
  • the on-board communication circuit can be used to implement on-board CAN communication between two communication nodes without adding an external CAN transceiver to the in-board communication node, thereby reducing hardware costs.
  • the embodiments of the present application mainly describe the structure and working principle of the in-board communication circuit, and then describe optional means for optimizing the in-board communication circuit.
  • FIG. 3 is obtained by further optimization on the basis of FIG. 2 a
  • FIG. 3 is a schematic structural diagram of another on-board communication circuit disclosed in an embodiment of the present application.
  • the on-board communication circuit described in this embodiment further includes: a first filter circuit and a second filter circuit; the first end 11 of the first resistor R1 is connected to the first communication node through the first filter circuit The receiving end RX1 of 10; the first end 21 of the second resistor R2 is connected to the receiving end RX2 of the second communication node 20 through the second filter circuit.
  • the first filter circuit includes a third resistor R3 and a first capacitor C1
  • the second filter circuit includes a fourth resistor R4 and a second capacitor C2
  • the first end 71 of the first capacitor C1 is connected to the first end 51 of the third resistor R3 and The receiving end RX1 of the first communication node 10
  • the second end 72 of the first capacitor C1 is connected to the first ground end
  • the second end 52 of the third resistor R3 is connected to the first end 11 of the first resistor R1
  • the first terminal 81 is connected to the second terminal 62 of the fourth resistor R4 and the receiving terminal RX2 of the second communication node 20
  • the second terminal 82 of the second capacitor C2 is connected to the second ground terminal
  • the first terminal 61 of the fourth resistor R4 is connected to The first end 21 of the second resistor R2.
  • the receiving end of the communication node When communicating between communication nodes, the receiving end of the communication node may be interfered by various factors and it is difficult to receive pure signals.
  • the first filter circuit and the second filter circuit have strong anti-interference, so that the on-board communication circuit can not only Realizing intra-board CAN communication between communication nodes can also reduce interference signals that may be received by the receiving end of the communication nodes, and realize more accurate intra-board CAN communication.
  • first filter circuit and second filter circuit may also be added on the basis of FIG. 2 b , and the specific principle is similar to that of FIG. 3 , which will not be repeated here.
  • FIG. 4 is a schematic structural diagram of an in-board communication device disclosed in an embodiment of the present application.
  • the intra-board communication device described in this embodiment includes a first communication node 10 , a second communication node 20 , and the intra-board communication shown in any one of FIGS. 2 a , 2 b or 3 .
  • the ground terminal 103 of the first communication node 10 is connected to the third ground terminal, the ground terminal 203 of the second communication node 20 is connected to the fourth ground terminal, and the third ground terminal is different from the fourth ground terminal;
  • the power supply terminal 104 of the first communication node 10 is connected to the first auxiliary power supply, and the power supply terminal 204 of the second communication node 20 is connected to the second auxiliary power supply;
  • Both the first communication node 10 and the second communication node 20 include a microcontroller unit MCU and a CAN controller.
  • the micro-control unit MCU in the first communication node 10 and the micro-control unit MCU in the second communication node 20 may be the same micro-control unit, or may be different micro-control units.
  • the micro-control unit MCU and the CAN controller are connected to each other and work together to form a communication node.
  • the two communication nodes in the on-board communication device realize intra-board CAN communication with no common ground (that is, the third ground terminal and the fourth ground terminal are not the same ground terminal) through the on-board communication circuit.
  • FIG. 5 is a schematic structural diagram of another in-board communication device disclosed in an embodiment of the present application.
  • the intra-board communication device described in this embodiment includes a first communication node 10 , a second communication node 20 and the intra-board communication shown in any one of FIG. 2 a , FIG. 2 b or FIG. 3 .
  • the ground terminal 103 of the first communication node 10 is connected to the third ground terminal, the ground terminal 203 of the second communication node 20 is connected to the fourth ground terminal, and the third ground terminal is different from the fourth ground terminal;
  • the power supply terminal 104 of the first communication node 10 is connected to the first auxiliary power supply, and the power supply terminal 204 of the second communication node 20 is connected to the second auxiliary power supply;
  • Both the first communication node 10 and the second communication node 20 include a micro-control unit MCU, and a CAN controller is integrated in the micro-control unit MCU.
  • a CAN controller is integrated in the micro-control unit MCU, and the micro-control unit MCU can directly constitute a communication node.
  • the two communication nodes in the on-board communication device realize intra-board CAN communication with no common ground (that is, the third ground terminal and the fourth ground terminal are not the same ground terminal) through the on-board communication circuit.

Abstract

Disclosed in embodiments of the present application are an intra-board communication circuit and an intra-board communication device. The intra-board communication circuit comprises a first diode, a second diode, a first resistor, a second resistor, and an isolation chip. The intra-board communication device comprises a first communication node, a second communication node, and the intra-board communication circuit. By implementing the embodiments of the present application, CAN communication between communication nodes can be achieved in a board, without using a CAN transceiver, thereby reducing the hardware cost.

Description

板内通信电路及板内通信装置In-board communication circuit and in-board communication device 技术领域technical field
本申请涉及电子电路技术领域,具体涉及一种板内通信电路及板内通信装置。The present application relates to the technical field of electronic circuits, and in particular, to an intra-board communication circuit and an intra-board communication device.
背景技术Background technique
控制器局域网络(controller area network,CAN)总线是一种多主总线,即每个节点机均可成为主机,且节点机之间也可进行通信。CAN通信因性能卓越、设计独特、可靠性高等优点被广泛应用在汽车、医疗、船舶、航空等领域。The controller area network (CAN) bus is a multi-master bus, that is, each node machine can become the master, and the node machines can also communicate. CAN communication is widely used in automotive, medical, marine, aviation and other fields due to its excellent performance, unique design and high reliability.
板内通信一般采用串行通信接口(serial communication interface,SCI)、串行外设接口(serial peripheral interface,SPI)、I2C(inter-integrated circuit,内置集成电路)等总线,但CAN总线有其独有的优势,板内通信采用CAN总线可充分利用其优势实现不同场景下的通信过程。在CAN通信中,每个通信节点通过CAN收发器在总线上发送和接收其他通信节点的信号。然而,在板内或片内进行CAN通信时,为板内或片内的每个通信节点外加一个CAN收发器,会导致硬件成本增加。In-board communication generally adopts serial communication interface (SCI), serial peripheral interface (SPI), I2C (inter-integrated circuit, built-in integrated circuit) and other buses, but CAN bus has its own There are some advantages, the use of CAN bus for intra-board communication can make full use of its advantages to realize the communication process in different scenarios. In CAN communication, each communication node sends and receives signals from other communication nodes on the bus through a CAN transceiver. However, when CAN communication is performed on the board or on-chip, adding a CAN transceiver to each communication node on the board or on-chip will increase the hardware cost.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种板内通信电路及板内通信装置,在不使用CAN收发器的情况下,在板内实现CAN通信,降低了硬件成本。Embodiments of the present application provide an intra-board communication circuit and an intra-board communication device, which implement CAN communication in the board without using a CAN transceiver, thereby reducing hardware costs.
本申请实施例第一方面,提供了一种板内通信电路,所述板内通信电路用于实现第一通信节点和第二通信节点之间的板内通信,所述板内通信电路包括第一二极管、第二二极管、第一电阻、第二电阻和隔离芯片,其中:In a first aspect of the embodiments of the present application, an intra-board communication circuit is provided. The intra-board communication circuit is used to implement intra-board communication between a first communication node and a second communication node, and the intra-board communication circuit includes a first communication node. a diode, a second diode, a first resistor, a second resistor and an isolation chip, wherein:
所述第一通信节点的发送端连接所述第一二极管的负极,所述第一二极管的正极连接所述第一通信节点的接收端和所述第一电阻的第一端,所述第一电阻的第二端连接第一电源端;所述第二通信节点的发送端连接所述第二二极管的负极,所述第二二极管的正极连接所述第二通信节点的接收端和所述第二电阻的第一端,所述第二电阻的第二端连接第二电源端;The transmitting end of the first communication node is connected to the cathode of the first diode, and the anode of the first diode is connected to the receiving end of the first communication node and the first end of the first resistor, The second end of the first resistor is connected to the first power supply end; the transmitting end of the second communication node is connected to the cathode of the second diode, and the anode of the second diode is connected to the second communication node the receiving end of the node and the first end of the second resistor, the second end of the second resistor is connected to the second power supply end;
在所述第一通信节点的发送端连接所述隔离芯片的第二输入端,所述第一通信节点的接收端连接所述隔离芯片的第一输出端,所述第二通信节点的发送端连接所述隔离芯片的第一输入端,所述第二通信节点的接收端连接所述隔离芯片的第二输出端的情况下,若所述第一通信节点的发送端和/或所述第二通信节点的发送端为低电平,所述板内通信电路实现所述第一通信节点的接收端和所述第二通信节点的接收端为低电平。The transmitting end of the first communication node is connected to the second input end of the isolation chip, the receiving end of the first communication node is connected to the first output end of the isolation chip, and the transmitting end of the second communication node When the first input end of the isolation chip is connected, and the receiving end of the second communication node is connected to the second output end of the isolation chip, if the transmitting end of the first communication node and/or the second The sending end of the communication node is at low level, and the on-board communication circuit realizes that the receiving end of the first communication node and the receiving end of the second communication node are at low level.
可选的,所述板内通信电路还包括第三二极管和第四二极管,所述第三二极管的正极连接所述第一通信节点的接收端,所述第四二极管的正极连接所述第二通信节点的接收端;Optionally, the in-board communication circuit further includes a third diode and a fourth diode, the anode of the third diode is connected to the receiving end of the first communication node, and the fourth diode is connected to the receiving end of the first communication node. The positive pole of the tube is connected to the receiving end of the second communication node;
在所述第三二极管的负极连接所述隔离芯片的第一输出端,所述第一通信节点的接收端连接所述隔离芯片的第二输入端,所述第四二极管的负极连接所述隔离芯片的第二输出端,所述第二通信节点的接收端连接所述隔离芯片的第一输入端的情况下,若所述第一通信节点的发送端和/或所述第二通信节点的发送端为低电平,所述板内通信电路实现所述第一通信节点的接收端和所述第二通信节点的接收端为低电平;若所述第一通信节点的发送端和所述第二通信节点的发送端均为高电平,所述板内通信电路实现所述第一通信节点的接收端和所述第二通信节点的接收端为高电平。The cathode of the third diode is connected to the first output terminal of the isolation chip, the receiving terminal of the first communication node is connected to the second input terminal of the isolation chip, and the cathode of the fourth diode is connected to the first output terminal of the isolation chip. When the second output end of the isolation chip is connected, and the receiving end of the second communication node is connected to the first input end of the isolation chip, if the transmitting end of the first communication node and/or the second communication node The sending end of the communication node is at low level, and the on-board communication circuit realizes that the receiving end of the first communication node and the receiving end of the second communication node are at low level; if the sending end of the first communication node Both the terminal and the transmitting terminal of the second communication node are at a high level, and the on-board communication circuit realizes that the receiving terminal of the first communication node and the receiving terminal of the second communication node are at a high level.
可选的,所述板内通信电路还包括第一滤波电路;所述第一电阻的第一端通过所述第一滤波电路连接所述第一通信节点的接收端。Optionally, the on-board communication circuit further includes a first filter circuit; the first end of the first resistor is connected to the receiving end of the first communication node through the first filter circuit.
可选的,所述第一滤波电路包括第三电阻和第一电容;所述第一电容的第一端连接所述第三电阻的第一端、所述第一通信节点的接收端,所述第一电容的第二端连接第一地端,所述第三电阻的第二端连接所述第一电阻的第一端。Optionally, the first filter circuit includes a third resistor and a first capacitor; the first end of the first capacitor is connected to the first end of the third resistor and the receiving end of the first communication node, so The second end of the first capacitor is connected to the first ground end, and the second end of the third resistor is connected to the first end of the first resistor.
可选的,所述板内通信电路还包括第二滤波电路;所述第二电阻的第一端通过所述第二滤波电路连接所述第二通信节点的接收端。Optionally, the on-board communication circuit further includes a second filter circuit; the first end of the second resistor is connected to the receiving end of the second communication node through the second filter circuit.
可选的,所述第二滤波电路包括第四电阻和第二电容;所述第二电容的第一端连接所述第四电阻的第二端、所述第二通信节点的接收端,所述第二电容的第二端连接第二地端,所述第四电阻的第一端连接所述第二电阻的第一端。Optionally, the second filter circuit includes a fourth resistor and a second capacitor; the first end of the second capacitor is connected to the second end of the fourth resistor and the receiving end of the second communication node, so The second end of the second capacitor is connected to the second ground end, and the first end of the fourth resistor is connected to the first end of the second resistor.
本申请实施例第二方面,提供了一种板内通信装置,所述板内通信装置包 括第一通信节点、第二通信节点和本申请实施例第一方面中的任一种板内通信电路。In a second aspect of the embodiments of the present application, an intra-board communication device is provided, and the intra-board communication device includes a first communication node, a second communication node, and any one of the intra-board communication circuits in the first aspect of the embodiments of the present application .
其中,所述第一通信节点的接地端连接第三地端、所述第二通信节点的接地端连接第四地端,所述第三地端与所述第四地端不相同。The ground terminal of the first communication node is connected to a third ground terminal, and the ground terminal of the second communication node is connected to a fourth ground terminal, and the third ground terminal is different from the fourth ground terminal.
其中,所述第一通信节点和所述第二通信节点均包括微控制单元和CAN控制器。Wherein, both the first communication node and the second communication node include a microcontroller unit and a CAN controller.
其中,可选地,所述第一通信节点和所述第二通信节点均包括微控制单元,所述微控制单元内集成有CAN控制器。Wherein, optionally, both the first communication node and the second communication node include a micro-control unit, and a CAN controller is integrated in the micro-control unit.
其中,所述第一通信节点的电源端连接第一辅助电源,所述第二通信节点的电源端连接第二辅助电源。The power supply terminal of the first communication node is connected to the first auxiliary power supply, and the power supply terminal of the second communication node is connected to the second auxiliary power supply.
本申请实施例提供了一种板内通信电路,包括第一二极管、第二二极管、第一电阻、第二电阻和隔离芯片,该板内通信电路结构简单、采用的电子元器件少。实施本申请实施例,可以在第一通信节点的发送端或第二通信节点的发送端为低电平的情况下,板内通信电路实现所述第一通信节点的接收端和所述第二通信节点的接收端均为低电平,从而在无需CAN收发器的情况下实现板内CAN通信,不仅在板内充分利用了CAN通信的优势,还降低了硬件成本。An embodiment of the present application provides an in-board communication circuit, including a first diode, a second diode, a first resistor, a second resistor and an isolation chip. The in-board communication circuit has a simple structure and adopts electronic components. few. By implementing the embodiments of the present application, the on-board communication circuit can implement the receiving end of the first communication node and the second communication node when the transmitting end of the first communication node or the transmitting end of the second communication node is at a low level. The receiving ends of the communication nodes are all low-level, so that the CAN communication on the board is realized without the CAN transceiver, which not only makes full use of the advantages of CAN communication in the board, but also reduces the hardware cost.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1a为传统方法中使用CAN收发器的CAN通信示意图;1a is a schematic diagram of CAN communication using a CAN transceiver in a traditional method;
图1b是本申请实施例公开的一种采用CAN收发器实现CAN通信的CAN信号示意图;Fig. 1b is a kind of CAN signal schematic diagram that adopts CAN transceiver to realize CAN communication disclosed in the embodiment of the present application;
图1c是本申请实施例公开的一种采用CAN收发器实现CAN通信的CAN信号的电平示意图;Fig. 1c is a kind of level schematic diagram of the CAN signal that adopts CAN transceiver to realize CAN communication disclosed in the embodiment of the present application;
图2a是本申请实施例公开的一种板内通信电路的结构示意图;2a is a schematic structural diagram of an in-board communication circuit disclosed in an embodiment of the present application;
图2b是本申请实施例公开的另一种板内通信电路的结构示意图;2b is a schematic structural diagram of another on-board communication circuit disclosed in an embodiment of the present application;
图3是本申请实施例公开的另一种板内通信电路的结构示意图;3 is a schematic structural diagram of another on-board communication circuit disclosed in an embodiment of the present application;
图4是本申请实施例公开的一种板内通信装置的结构示意图;FIG. 4 is a schematic structural diagram of an in-board communication device disclosed in an embodiment of the present application;
图5是本申请实施例公开的另一种板内通信装置的结构示意图。FIG. 5 is a schematic structural diagram of another in-board communication device disclosed in an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施方式中的附图,对本申请实施方式中的技术方案进行清楚、完整地描述。显然,所描述的实施方式是本申请的一部分实施方式,而不是全部实施方式。基于本申请中的实施方式,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施方式,都应属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the scope of the protection of the present application.
在CAN通信中,每个通信节点是通过CAN收发器在总线上发送和接收其他通信节点的信号,因此,每个通信节点必须外加一个CAN收发器。另外,要实现CAN通信还需要CAN控制器。In CAN communication, each communication node sends and receives signals from other communication nodes on the bus through a CAN transceiver. Therefore, each communication node must add a CAN transceiver. In addition, a CAN controller is required to implement CAN communication.
图1a为传统方法中使用CAN收发器的CAN通信示意图。如图1a所示,以通信节点为微控制单元MCU(micro controller unit,MCU)为例,CAN控制器集成在微控制单元MCU内部。CAN控制器可以接收微控制单元MCU中的微处理器发出的数据,并将数据传给CAN收发器;CAN收发器用于将数据传到总线或从总线接收数据传给CAN控制器。但是,在板内实现CAN通信时,为每个通信节点外加一个CAN收发器会增加板内通信的成本。FIG. 1a is a schematic diagram of CAN communication using a CAN transceiver in the conventional method. As shown in Figure 1a, taking the communication node as a microcontroller unit (MCU) as an example, the CAN controller is integrated inside the microcontroller unit MCU. The CAN controller can receive the data sent by the microprocessor in the microcontroller unit MCU, and transmit the data to the CAN transceiver; the CAN transceiver is used to transmit data to the bus or receive data from the bus and transmit it to the CAN controller. However, when CAN communication is implemented on the board, adding a CAN transceiver to each communication node will increase the cost of the on-board communication.
请参阅图1b,图1b是本申请实施例公开的一种采用CAN收发器实现CAN通信的CAN信号示意图。图1b是基于图1a使用CAN收发器的CAN通信中的CAN信号示意图。CAN信号是一种以显性电平和隐性电平交替出现的比特流信号,CAN信号可以包括传输控制命令,也可以包括数据段或数据块。CAN信号中,以“0”代表显性,显性对应为低电平,以“1”代表隐性,隐性对应为高电平。如图1b所示,CAN信号以控制命令为例,CAN信号在第一个时间段内为显性电平“0”、第二个时间段内为隐性电平“1”、第三个时间段内 为显性电平“0”、第四个时间段内为显性电平“0”、第五个时间段内为隐性电平“1”,可以将这五个时间段的时长之和作为一个周期,在下一周期又会重复出现这五个时间段对应的电平,可以用于周期性的传输同一控制命令。Please refer to FIG. 1 b , FIG. 1 b is a schematic diagram of a CAN signal using a CAN transceiver to realize CAN communication disclosed in an embodiment of the present application. Fig. 1b is a schematic diagram of CAN signals in CAN communication using a CAN transceiver based on Fig. 1a. The CAN signal is a bit stream signal that alternates with dominant level and recessive level. The CAN signal can include transmission control commands, and can also include data segments or data blocks. In the CAN signal, "0" represents dominant, dominant corresponds to low level, "1" represents recessive, and recessive corresponds to high level. As shown in Figure 1b, the CAN signal takes the control command as an example. The CAN signal is the dominant level "0" in the first time period, the recessive level "1" in the second time period, and the third time period. The dominant level is "0" in the time period, the dominant level is "0" in the fourth time period, and the recessive level "1" is in the fifth time period. The sum of the durations is used as a cycle, and the levels corresponding to the five time periods will appear repeatedly in the next cycle, which can be used to periodically transmit the same control command.
请参阅图1c,图1c是本申请实施例公开的一种采用CAN收发器实现CAN通信的CAN信号的电平示意图。图1c是基于图1a的使用CAN收发器的CAN通信中的CAN信号的电平示意图。如图1c所示,CAN信号中的显性电平和隐性电平不是对应两个具体数值的电压,而是对应为两个电压范围,例如,CAN信号中的显性电平为“0V~1.5V”时,相应的隐性电平为“1.5V~5V”;CAN信号中的显性电平为“0V~2.5V”时,相应的隐性电平为“2.5V~5V”;CAN信号中的显性电平为“0V~3.5V”时,相应的隐性电平为“3.5V~5V”。Please refer to FIG. 1c. FIG. 1c is a schematic level diagram of a CAN signal that uses a CAN transceiver to implement CAN communication disclosed in an embodiment of the present application. FIG. 1c is a schematic diagram of the level of CAN signals in CAN communication using a CAN transceiver based on FIG. 1a. As shown in Figure 1c, the dominant level and the recessive level in the CAN signal are not voltages corresponding to two specific values, but correspond to two voltage ranges. For example, the dominant level in the CAN signal is "0V~ 1.5V", the corresponding recessive level is "1.5V~5V"; when the dominant level in the CAN signal is "0V~2.5V", the corresponding recessive level is "2.5V~5V"; When the dominant level in the CAN signal is "0V~3.5V", the corresponding recessive level is "3.5V~5V".
本申请实施例提供一种板内通信电路及板内通信装置,可以在不使用CAN收发器的情况下,在板内实现CAN通信。以下进行详细说明。The embodiments of the present application provide an intra-board communication circuit and an intra-board communication device, which can implement CAN communication in the board without using a CAN transceiver. A detailed description will be given below.
请参阅图2a,图2a是本申请实施例公开的一种板内通信电路的结构示意图。如图2a所示,本实施例中所描述的板内通信电路30用于实现第一通信节点10和第二通信节点20之间的板内通信,板内通信电路包括第一二极管D1、第二二极管D2、第一电阻R1、第二电阻R2和隔离芯片301,其中:Please refer to FIG. 2a. FIG. 2a is a schematic structural diagram of an on-board communication circuit disclosed in an embodiment of the present application. As shown in FIG. 2a, the intra-board communication circuit 30 described in this embodiment is used to realize intra-board communication between the first communication node 10 and the second communication node 20, and the intra-board communication circuit includes a first diode D1 , the second diode D2, the first resistor R1, the second resistor R2 and the isolation chip 301, wherein:
所述第一通信节点10的发送端TX1连接所述第一二极管D1的负极,所述第一二极管D1的正极连接所述第一通信节点10的接收端RX1和所述第一电阻R1的第一端11,所述第一电阻R1的第二端12连接第一电源端;所述第二通信节点20的发送端TX2连接所述第二二极管D2的负极,所述第二二极管D2的正极连接所述第二通信节点20的接收端RX2和所述第二电阻R2的第一端21,所述第二电阻R2的第二端22连接第二电源端;The transmitting end TX1 of the first communication node 10 is connected to the cathode of the first diode D1, and the anode of the first diode D1 is connected to the receiving end RX1 of the first communication node 10 and the first diode D1. The first end 11 of the resistor R1 and the second end 12 of the first resistor R1 are connected to the first power supply end; the transmitting end TX2 of the second communication node 20 is connected to the negative electrode of the second diode D2, the The anode of the second diode D2 is connected to the receiving terminal RX2 of the second communication node 20 and the first terminal 21 of the second resistor R2, and the second terminal 22 of the second resistor R2 is connected to the second power terminal;
在所述第一通信节点10的发送端TX1连接所述隔离芯片301的第二输入端IN2,所述第一通信节点10的接收端RX1连接所述隔离芯片301的第一输出端OUT1,所述第二通信节点20的发送端TX2连接所述隔离芯片301的第一输入端IN1,所述第二通信节点20的接收端RX2连接所述隔离芯片301的第二输出端OUT2的情况下,若所述第一通信节点10的发送端TX1和/或所述第二通信节点20的发送端TX2为低电平,所述板内通信电路30实现所述第一通信节点10的接收端RX1和所述第二通信节点20的接收端RX2为低电平。The transmitting end TX1 of the first communication node 10 is connected to the second input end IN2 of the isolation chip 301 , and the receiving end RX1 of the first communication node 10 is connected to the first output end OUT1 of the isolation chip 301 . When the transmitting end TX2 of the second communication node 20 is connected to the first input end IN1 of the isolation chip 301, and the receiving end RX2 of the second communication node 20 is connected to the second output end OUT2 of the isolation chip 301, If the transmitting end TX1 of the first communication node 10 and/or the transmitting end TX2 of the second communication node 20 is at a low level, the on-board communication circuit 30 implements the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 is at a low level.
其中,第一电源端与第二电源端的供电电平相同。Wherein, the power supply level of the first power supply terminal and the second power supply terminal is the same.
本申请实施例的板内通信电路30适用于第一通信节点10、第二通信节点20和隔离芯片301只能输出低电平的情况下,比如,第一通信节点10、第二通信节点20和隔离芯片301均为集电极开路(Open Collector,OC)门的情况。The on-board communication circuit 30 in this embodiment of the present application is suitable for the case where the first communication node 10 , the second communication node 20 and the isolation chip 301 can only output a low level, for example, the first communication node 10 and the second communication node 20 Both the isolation chip 301 and the isolation chip 301 are open collector (Open Collector, OC) gates.
板内通信电路30用于在第一通信节点10的发送端TX1和/或第二通信节点20的发送端TX2为低电平的情况下,实现第一通信节点10的接收端RX1和第二通信节点20的接收端RX2均为低电平;The on-board communication circuit 30 is used for realizing the receiving end RX1 of the first communication node 10 and the second communication node 20 when the transmitting end TX1 of the first communication node 10 and/or the transmitting end TX2 of the second communication node 20 are at low level. The receiving end RX2 of the communication node 20 is all low level;
在第一通信节点10的发送端TX1为低电平、第二通信节点20的发送端TX2为低电平的情况下,板内通信电路30中的第一二极管D1和第二二极管D2均导通,此时第一通信节点10的接收端RX1和第二通信节点20的接收端RX2均为低电平。When the transmitting terminal TX1 of the first communication node 10 is at a low level and the transmitting terminal TX2 of the second communication node 20 is at a low level, the first diode D1 and the second diode in the in-board communication circuit 30 Both the tubes D2 are turned on, and at this time, the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 are both at low level.
第一通信节点10和第二通信节点20可以通过板内通信电路30实现控制器局域网络CAN总线通信。第一通信节点10和第二通信节点20可以通过板内通信电路30进行数据传输和控制命令传输。The first communication node 10 and the second communication node 20 can implement controller area network CAN bus communication through the on-board communication circuit 30 . The first communication node 10 and the second communication node 20 can perform data transmission and control command transmission through the on-board communication circuit 30 .
其中,第一二极管D1、第二二极管D2可以采用具有二极管功能(即,单向导通,反向截止的功能)的替代电路来实现,本申请实施例不做限定。Wherein, the first diode D1 and the second diode D2 may be implemented by using alternative circuits having diode functions (ie, unidirectional conduction and reverse cut-off functions), which are not limited in the embodiments of the present application.
本申请实施例中,可以在第一通信节点的发送端或第二通信节点的发送端为低电平的情况下,板内通信电路实现所述第一通信节点的接收端和所述第二通信节点的接收端均为低电平,从而在无需CAN收发器的情况下实现板内CAN通信,不仅在板内充分利用了CAN通信的优势,还降低了硬件成本。In this embodiment of the present application, when the transmitter of the first communication node or the transmitter of the second communication node is at a low level, the on-board communication circuit may implement the receiver of the first communication node and the receiver of the second communication node. The receiving ends of the communication nodes are all low-level, so that the CAN communication on the board is realized without the CAN transceiver, which not only makes full use of the advantages of CAN communication in the board, but also reduces the hardware cost.
请参阅图2b,图2b是本申请实施例公开的另一种板内通信电路的结构示意图。如图2b所示,本实施例中所描述的板内通信电路30用于实现第一通信节点10和第二通信节点20之间的板内通信,板内通信电路包括第一二极管D1、第二二极管D2、第三二极管D3、第四二极管D4、第一电阻R1、第二电阻R2和隔离芯片301,其中:Please refer to FIG. 2b. FIG. 2b is a schematic structural diagram of another on-board communication circuit disclosed in an embodiment of the present application. As shown in FIG. 2b, the intra-board communication circuit 30 described in this embodiment is used to realize intra-board communication between the first communication node 10 and the second communication node 20, and the intra-board communication circuit includes a first diode D1 , the second diode D2, the third diode D3, the fourth diode D4, the first resistor R1, the second resistor R2 and the isolation chip 301, wherein:
所述第一通信节点10的发送端TX1连接所述第一二极管D1的负极,所述第一二极管D1的正极连接所述第一通信节点10的接收端RX1和所述第一电阻R1的第一端11,所述第一电阻R1的第二端12连接第一电源端;所述第二通信节 点20的发送端TX2连接所述第二二极管D2的负极,所述第二二极管D2的正极连接所述第二通信节点20的接收端RX2和所述第二电阻R2的第一端21,所述第二电阻R2的第二端22连接第二电源端;The transmitting end TX1 of the first communication node 10 is connected to the cathode of the first diode D1, and the anode of the first diode D1 is connected to the receiving end RX1 of the first communication node 10 and the first diode D1. The first end 11 of the resistor R1 and the second end 12 of the first resistor R1 are connected to the first power supply end; the transmitting end TX2 of the second communication node 20 is connected to the negative electrode of the second diode D2, the The anode of the second diode D2 is connected to the receiving terminal RX2 of the second communication node 20 and the first terminal 21 of the second resistor R2, and the second terminal 22 of the second resistor R2 is connected to the second power terminal;
所述第三二极管D3的正极连接所述第一通信节点10的接收端RX1,所述第四二极管D4的正极连接所述第二通信节点20的接收端RX2;The anode of the third diode D3 is connected to the receiving end RX1 of the first communication node 10 , and the anode of the fourth diode D4 is connected to the receiving end RX2 of the second communication node 20 ;
在所述第三二极管D3的负极连接所述隔离芯片301的第一输出端OUT1,所述第一通信节点10的接收端RX1连接所述隔离芯片301的第二输入端IN2,所述第四二极管D4的负极连接所述隔离芯片301的第二输出端OUT2,所述第二通信节点20的接收端RX2连接所述隔离芯片301的第一输入端IN1的情况下,若所述第一通信节点10的发送端TX1和/或所述第二通信节点20的发送端TX2为低电平,所述板内通信电路30实现所述第一通信节点10的接收端RX1和所述第二通信节点20的接收端RX2为低电平;若所述第一通信节点10的发送端TX1和所述第二通信节点20的发送端TX2均为高电平,所述板内通信电路30实现所述第一通信节点10的接收端RX1和所述第二通信节点20的接收端RX2为高电平。The negative pole of the third diode D3 is connected to the first output terminal OUT1 of the isolation chip 301, the receiving terminal RX1 of the first communication node 10 is connected to the second input terminal IN2 of the isolation chip 301, and the The cathode of the fourth diode D4 is connected to the second output terminal OUT2 of the isolation chip 301 , and the receiving terminal RX2 of the second communication node 20 is connected to the first input terminal IN1 of the isolation chip 301 . The transmitting end TX1 of the first communication node 10 and/or the transmitting end TX2 of the second communication node 20 are at low level, and the on-board communication circuit 30 realizes the receiving end RX1 of the first communication node 10 and all The receiving end RX2 of the second communication node 20 is low level; if the transmitting end TX1 of the first communication node 10 and the transmitting end TX2 of the second communication node 20 are both high level, the intra-board communication The circuit 30 realizes that the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 are at a high level.
其中,第一电源端与第二电源端的供电电平相同。Wherein, the power supply level of the first power supply terminal and the second power supply terminal is the same.
在第一通信节点10的发送端TX1为低电平、第二通信节点20的发送端TX2为低电平的情况下,板内通信电路30中的第一二极管D1和第二二极管D2均导通,此时第一通信节点10的接收端RX1和第二通信节点20的接收端RX2均为低电平;When the transmitting terminal TX1 of the first communication node 10 is at a low level and the transmitting terminal TX2 of the second communication node 20 is at a low level, the first diode D1 and the second diode in the in-board communication circuit 30 Both the tubes D2 are turned on, at this time, the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 are both low level;
在第一通信节点10的发送端TX1为低电平、第二通信节点20的发送端TX2为高电平的情况下,板内通信电路30中的第一二极管D1导通,第二二极管D2不导通,第三二极管D3不导通,第四二极管D4导通,此时第一通信节点10的接收端RX1和第二通信节点20的接收端RX2均为低电平;When the transmitting terminal TX1 of the first communication node 10 is at a low level and the transmitting terminal TX2 of the second communication node 20 is at a high level, the first diode D1 in the on-board communication circuit 30 is turned on, and the second The diode D2 is non-conducting, the third diode D3 is non-conducting, and the fourth diode D4 is conducting. At this time, the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 are both low level;
在第一通信节点10的发送端TX1为高电平、第二通信节点20的发送端TX2为低电平的情况下,板内通信电路30中的第一二极管D1不导通,第二二极管D2导通,第三二极管D3导通,第四二极管D4不导通,此时第一通信节点10的接收端RX1和第二通信节点20的接收端RX2均为低电平;When the transmitting terminal TX1 of the first communication node 10 is at a high level and the transmitting terminal TX2 of the second communication node 20 is at a low level, the first diode D1 in the on-board communication circuit 30 is not conducting, and the first diode D1 in the on-board communication circuit 30 is not conducting. The second diode D2 is turned on, the third diode D3 is turned on, and the fourth diode D4 is turned off. At this time, the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 are both low level;
在第一通信节点10的发送端TX1和第二通信节点20的发送端TX2均为高 电平的情况下,板内通信电路30中的第一二极管D1和第二二极管D2均不导通,此时第一通信节点10的接收端RX1和第二通信节点20的接收端RX2为高电平。In the case that the transmitting end TX1 of the first communication node 10 and the transmitting end TX2 of the second communication node 20 are both at a high level, the first diode D1 and the second diode D2 in the intra-board communication circuit 30 are both Not conducting, at this time, the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 are at a high level.
本申请实施例中,可以在第一通信节点的发送端或第二通信节点的发送端为低电平的情况下,板内通信电路实现所述第一通信节点的接收端和所述第二通信节点的接收端均为低电平,还可以在第一通信节点的发送端和第二通信节点的发送端均为高电平的情况下,板内通信电路可以实现所述第一通信节点的接收端和所述第二通信节点的接收端均为高电平,从而在无需CAN收发器的情况下实现板内CAN通信,不仅在板内充分利用了CAN通信的优势,还降低了硬件成本。In this embodiment of the present application, when the transmitter of the first communication node or the transmitter of the second communication node is at a low level, the on-board communication circuit may implement the receiver of the first communication node and the receiver of the second communication node. The receiving end of the communication node is all low level, and in the case that the transmitting end of the first communication node and the transmitting end of the second communication node are both high level, the on-board communication circuit can realize the first communication node. The receiving end of the second communication node and the receiving end of the second communication node are both high level, so that the CAN communication in the board is realized without the CAN transceiver, which not only makes full use of the advantages of CAN communication in the board, but also reduces the hardware cost.
其中,CAN总线可以用于传输数据,也可以用于传输控制命令。传输数据时,可以以数据块为单位,对数据块进行编码,得到以比特(二进制数的一位包含的信息=1比特)为最小单位的数据块。Among them, the CAN bus can be used to transmit data, and can also be used to transmit control commands. When transmitting data, the data block may be encoded in a data block unit to obtain a data block with a minimum unit of bits (information contained in one bit of a binary number=1 bit).
CAN,是国际上应用最广泛的现场总线之一。20世纪80年代初,德国Bosch公司为了解决现代汽车中众多的控制与测试仪表之间的数据交换问题,开发出CAN总线。CAN总线能有效支持分布式控制或实时控制的串行通信网络,具有抗干扰性强和使用可靠等优点,最初主要应用汽车工业,现在广泛应用于汽车工业、航空工业和工业控制等自动化领域,如分布式环境监测系统、温室环境监控系统、变电站变监测系统等。CAN is one of the most widely used fieldbuses in the world. In the early 1980s, the German Bosch company developed the CAN bus in order to solve the problem of data exchange between numerous control and test instruments in modern automobiles. CAN bus can effectively support serial communication network of distributed control or real-time control, and has the advantages of strong anti-interference and reliable use. Such as distributed environmental monitoring system, greenhouse environmental monitoring system, substation monitoring system, etc.
CAN总线是一种串行数据通信协议,其通信接口(比如,第一通信节点10和第二通信节点20)中集成了CAN协议的物理层和数据链路层功能,可完成对数据的成帧处理,包括位填充、数据块编码、循环冗余校验、优先级判别等项工作。用户可在其基础上开发适应系统实际需要的应用层通信协议。CAN协议的一个最大特点是废除了传统的站地址编码,而代之以对通信数据块编码,采用这种方法可使网络内节点个数在理论上不受限制,还可使不同的节点同时收到相同的数据。CAN bus is a serial data communication protocol, and its communication interface (for example, the first communication node 10 and the second communication node 20) integrates the physical layer and data link layer functions of the CAN protocol, which can complete the conversion of data. Frame processing, including bit stuffing, data block coding, cyclic redundancy check, priority determination, etc. Users can develop application layer communication protocols that meet the actual needs of the system on its basis. One of the biggest features of the CAN protocol is that the traditional station address coding is abolished, and the communication data block coding is replaced. This method can make the number of nodes in the network theoretically unlimited, and also allow different nodes to simultaneously received the same data.
CAN总线具有如下优点:CAN bus has the following advantages:
(1)CAN总线是一种多主总线,即每个节点机均可成为主机,且节点机之间也可进行通信;(1) The CAN bus is a multi-master bus, that is, each node machine can become the master, and the node machines can also communicate;
(2)CAN总线的通信介质可以是双绞线、同轴电缆或光导纤维,通信速 率可达1Mbps;(2) The communication medium of CAN bus can be twisted pair, coaxial cable or optical fiber, and the communication rate can reach 1Mbps;
(3)CAN总线中传输的数据段长度最多为8个字节,可满足通常工业领域中控制命令,工作状态及测试数据的一般要求。同时,8个字节不会占用总线时间过长,从而保证了通信的实时性;(3) The length of the data segment transmitted in the CAN bus is up to 8 bytes, which can meet the general requirements of control commands, working states and test data in the usual industrial fields. At the same time, 8 bytes will not occupy the bus for too long, thus ensuring the real-time communication;
(4)CAN协议采用循环冗余校验码(cyclic redundancy check,CRC)校验并可提供相应的错误处理功能,保证了数据通信的可靠性;(4) The CAN protocol adopts cyclic redundancy check (CRC) check and can provide corresponding error handling functions to ensure the reliability of data communication;
(5)CAN可以以多主方式工作,网络上任意节点均可以在任意时刻主动地向总线上其它节点发送信息,实现点对点、一点对多点及全局广播几种方式发送接收数据;(5) CAN can work in a multi-master mode, and any node on the network can actively send information to other nodes on the bus at any time, realizing point-to-point, point-to-multipoint and global broadcasting. Send and receive data in several ways;
(6)CAN采用非破坏性总线仲裁技术,当两个节点同时向总线上发送信息时,优先级低的节点主动停止数据发送,而优先级高的节点可不受影响地继续传输数据,节省了总线冲突仲裁时间。(6) CAN adopts non-destructive bus arbitration technology. When two nodes send information to the bus at the same time, the node with low priority actively stops data transmission, while the node with high priority can continue to transmit data without being affected, saving Bus collision arbitration time.
CAN总线的典型的应用场景:主节点接收其他节点发送的现场数据,如现场温度、电流、压力等参数,主节点经过处理后生成各种控制命令,并通过CAN总线将控制命令发送至各个其他节点。Typical application scenarios of CAN bus: The master node receives field data sent by other nodes, such as field temperature, current, pressure and other parameters, the master node generates various control commands after processing, and sends the control commands to various other nodes through the CAN bus. node.
本申请实施例中,第一电阻R1和第二电阻R2为上拉电阻,第一电阻R1和第二电阻R2的阻值可以相同,也可以不同。第一电阻R1和第二电阻R2可以提高通信节点接收端的信号的噪声容限,增强抗干扰能力。第一二极管D1、第二二极管D2可以为普通开关二极管、低功耗开关二极管等,第一二极管D1与第二二极管D2的参数可以相同,也可以不同。In the embodiment of the present application, the first resistor R1 and the second resistor R2 are pull-up resistors, and the resistance values of the first resistor R1 and the second resistor R2 may be the same or different. The first resistor R1 and the second resistor R2 can improve the noise tolerance of the signal at the receiving end of the communication node and enhance the anti-interference ability. The first diode D1 and the second diode D2 may be common switching diodes, low power consumption switching diodes, etc. The parameters of the first diode D1 and the second diode D2 may be the same or different.
隔离芯片301可以为光耦隔离芯片,使被隔离的两个通信节点之间没有电的直接连接,主要是防止因有电的连接而引起的干扰。比如,第一通信节点10为高压节点,第二通信节点20为低压节点,二者接地电平不同。又比如,第一通信节点10工作在直流模式,第二通信节点20工作在交流模式,二者接地电平也不相同。如果这两个通信节点之间不采用隔离芯片301,则两个通信节点之间会相互干扰。采用本方案后,则会避免出现这样的问题。The isolation chip 301 may be an optocoupler isolation chip, so that there is no direct electrical connection between the two isolated communication nodes, mainly to prevent interference caused by the electrical connection. For example, the first communication node 10 is a high-voltage node, and the second communication node 20 is a low-voltage node, and the ground levels of the two are different. For another example, the first communication node 10 works in the DC mode, and the second communication node 20 works in the AC mode, and the ground levels of the two are also different. If the isolation chip 301 is not used between the two communication nodes, the two communication nodes will interfere with each other. After adopting this scheme, such problems will be avoided.
本申请实施例中,板内通信电路可以用于无需大电缆线来承载大电流的板中,如印制电路板(printed circuit board,PCB)等,通信节点可以为微控制单元MCU,也可以为微控制单元MCU与其他电子元件相互连接的单元,还可以为 包含微控制单元MCU的集成电子器件。In the embodiment of the present application, the on-board communication circuit can be used in a board that does not need a large cable to carry a large current, such as a printed circuit board (PCB), etc. The communication node can be a micro-control unit MCU, or It is a unit that interconnects the micro-control unit MCU and other electronic components, and can also be an integrated electronic device including the micro-control unit MCU.
请参阅表1,表1是图2a和图2b的板内通信电路的通信节点之间的电平变化。表1中,高电平为“1”,低电平为“0”。从表1可以看出,只要第一通信节点和第二通信节点的其中任意一个发送端(TX1或TX2)为低电平,第一通信节点和第二通信节点的接收端(RX1和RX2均为低电平,当第一通信节点和第二通信节点的发送端(TX1和TX2)均为高电平时,第一通信节点和第二通信节点的接收端(RX1和RX2均为高电平。图2a和图2b的板内通信电路不采用图1a的CAN收发器,不采用CAN信号,也能实现CAN通信的功能。Please refer to Table 1, which is the level change between the communication nodes of the on-board communication circuit of Figures 2a and 2b. In Table 1, the high level is "1" and the low level is "0". It can be seen from Table 1 that as long as either the transmitting end (TX1 or TX2) of the first communication node and the second communication node is at a low level, the receiving end (both RX1 and RX2) of the first communication node and the second communication node is at a low level. It is low level, when the transmitting end (TX1 and TX2) of the first communication node and the second communication node are both high level, the receiving end (RX1 and RX2) of the first communication node and the second communication node are both high level The on-board communication circuit of Fig. 2a and Fig. 2b does not use the CAN transceiver of Fig. 1a and does not use the CAN signal, and can also realize the function of CAN communication.
高电平和低电平分别对应的是数字信号的“1”和“0”。高电平对应的模拟信号的电压范围和低电平对应的模拟信号的电压范围没有交集。举例来说,高电平对应的模拟信号的电压范围为大于2.5V,低电平对应的模拟信号的电压范围为0~1.2V。The high level and the low level correspond to the "1" and "0" of the digital signal, respectively. There is no intersection between the voltage range of the analog signal corresponding to the high level and the voltage range of the analog signal corresponding to the low level. For example, the voltage range of the analog signal corresponding to the high level is greater than 2.5V, and the voltage range of the analog signal corresponding to the low level is 0-1.2V.
表1Table 1
Figure PCTCN2020111503-appb-000001
Figure PCTCN2020111503-appb-000001
在第一通信节点10的发送端TX1为低电平、第二通信节点20的发送端TX2为低电平的情况下,板内通信电路30中的第一二极管D1和第二二极管D2均导通,实现第一通信节点10的接收端RX1和第二通信节点20的接收端RX2均为低电平。如图2b所示,假定第一电源端和第二电源端的电平预设为3.3V,高电平对应的模拟信号的电压范围为2.5~10V,低电平对应的模拟信号的电压范围为0~1.2V。第一通信节点10的发送端TX1为低电平(比如,0V)、第二通信节点20的发送端TX2为低电平(比如,0V),由于第一二极管D1的负极为0V,第一二极管D1的正极通过第一电阻R1连接第一电源端的电压3.3V,则第一二极管D1导通。类似的,由于第二二极管D2的负极为0V,第 二二极管D2的正极通过第二电阻R2连接第二电源端的电压3.3V,则第二二极管D1导通。第一二极管D1和第二二极管D2均导通之后,通信节点的接收端电平与发送端电平相同,在隔离芯片301导通(即,隔离芯片301的第一输入端IN1与第一输出端OUT1连通,第二输入端IN2与第二输出端OUT2连通)的情况下,从而实现第一通信节点10的接收端RX1和第二通信节点20的接收端RX2均为低电平。When the transmitting terminal TX1 of the first communication node 10 is at a low level and the transmitting terminal TX2 of the second communication node 20 is at a low level, the first diode D1 and the second diode in the in-board communication circuit 30 Both the tubes D2 are turned on, so that the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 are both at low level. As shown in Fig. 2b, it is assumed that the level of the first power supply terminal and the second power supply terminal is preset to 3.3V, the voltage range of the analog signal corresponding to the high level is 2.5-10V, and the voltage range of the analog signal corresponding to the low level is 0~1.2V. The transmission terminal TX1 of the first communication node 10 is at a low level (eg, 0V), and the transmission terminal TX2 of the second communication node 20 is at a low level (eg, 0V). Since the negative electrode of the first diode D1 is at 0V, The anode of the first diode D1 is connected to the voltage 3.3V of the first power supply terminal through the first resistor R1, and the first diode D1 is turned on. Similarly, since the cathode of the second diode D2 is 0V, and the anode of the second diode D2 is connected to the voltage of 3.3V at the second power supply terminal through the second resistor R2, the second diode D1 is turned on. After the first diode D1 and the second diode D2 are both turned on, the level of the receiving terminal of the communication node is the same as the level of the transmitting terminal, and the isolation chip 301 is turned on (ie, the first input terminal IN1 of the isolation chip 301 is turned on). connected with the first output terminal OUT1, and the second input terminal IN2 is connected with the second output terminal OUT2), so that the receiving terminal RX1 of the first communication node 10 and the receiving terminal RX2 of the second communication node 20 are both low power flat.
在第一通信节点10的发送端TX1为低电平、第二通信节点20的发送端TX2为高电平的情况下,板内通信电路30中的第一二极管D1导通,第二二极管D2不导通,第三二极管D3不导通,第四二极管D4导通,实现第一通信节点10的接收端RX1和第二通信节点20的接收端RX2均为低电平。如图2b所示,假定第一电源端和第二电源端的电平预设为3.3V,高电平对应的模拟信号的电压范围为2.5~10V,低电平对应的模拟信号的电压范围为0~1.2V。第一通信节点10的发送端TX1为低电平(比如,0V),即第一二极管D1的负极32的电压为“0”,第二通信节点20的发送端TX2为高电平(比如,5V),即第二二极管D2的负极42的电压为“5V”。由于第一二极管D1的负极为0V,第一二极管D1的正极通过第一电阻R1连接第一电源端的电压3.3V,则第一二极管D1导通,由于二极管的导通压降一般为0.2~0.7V,第一二极管D1的正极电压为0.2~0.7V。由于第二二极管D2的负极为5V,第二二极管D2的正极通过第二电阻R2连接第二电源端的电压3.3V,则第二二极管D2不导通,第二二极管D2的正极电压为3.3V。由于第三二极管D3的正极与第一二极管D1的正极电压相同,均为0.2~0.7V,第三二极管D3的负极通过隔离芯片301与第二二极管D2的正极(3.3V)连接,则第三二极管D3不导通。第四二极管D4的正极与第二二极管D2的正极电压相同,均为3.3V,则第四二极管D4的负极通过隔离芯片301与第一二极管D1的正极(0.2~0.7V)连接,则第四二极管D4导通。第一二极管D1导通时,第一通信节点10的接收端RX1电平与发送端TX1电平相同,为低电平;第二二极管D2不导通时,由于第四二极管D4导通,第一二极管D1导通,第一通信节点10的接收端RX1将低电平通过隔离芯片301的第二输入端IN2、隔离芯片301的第二输出端OUT2、第四二极管D4传递到第二通信节点20的接收端RX2,第二通信 节点20的接收端RX2也为低电平。When the transmitting terminal TX1 of the first communication node 10 is at a low level and the transmitting terminal TX2 of the second communication node 20 is at a high level, the first diode D1 in the on-board communication circuit 30 is turned on, and the second The diode D2 is non-conducting, the third diode D3 is non-conducting, and the fourth diode D4 is conducting, so that the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 are both low level. As shown in Fig. 2b, it is assumed that the level of the first power supply terminal and the second power supply terminal is preset to 3.3V, the voltage range of the analog signal corresponding to the high level is 2.5-10V, and the voltage range of the analog signal corresponding to the low level is 0~1.2V. The transmission terminal TX1 of the first communication node 10 is at a low level (for example, 0V), that is, the voltage of the negative electrode 32 of the first diode D1 is “0”, and the transmission terminal TX2 of the second communication node 20 is at a high level ( For example, 5V), that is, the voltage of the cathode 42 of the second diode D2 is "5V". Since the cathode of the first diode D1 is 0V, and the anode of the first diode D1 is connected to the voltage of 3.3V at the first power supply terminal through the first resistor R1, the first diode D1 is turned on. The voltage drop is generally 0.2-0.7V, and the anode voltage of the first diode D1 is 0.2-0.7V. Since the cathode of the second diode D2 is 5V, and the anode of the second diode D2 is connected to the voltage of 3.3V at the second power supply terminal through the second resistor R2, the second diode D2 is not conducting, and the second diode D2 is not conducting. The positive voltage of D2 is 3.3V. Since the positive electrode of the third diode D3 and the positive electrode of the first diode D1 have the same voltage of 0.2-0.7V, the negative electrode of the third diode D3 passes through the isolation chip 301 and the positive electrode of the second diode D2 ( 3.3V) connection, then the third diode D3 is not conducting. The positive electrode of the fourth diode D4 and the positive electrode of the second diode D2 have the same voltage as 3.3V, and the negative electrode of the fourth diode D4 passes through the isolation chip 301 and the positive electrode of the first diode D1 (0.2~ 0.7V) connection, then the fourth diode D4 is turned on. When the first diode D1 is turned on, the level of the receiving end RX1 of the first communication node 10 is the same as the level of the sending end TX1, which is a low level; when the second diode D2 is not turned on, due to the fourth diode The tube D4 is turned on, the first diode D1 is turned on, the receiving end RX1 of the first communication node 10 will pass the low level through the second input end IN2 of the isolation chip 301, the second output end OUT2 of the isolation chip 301, the fourth The diode D4 is transmitted to the receiving end RX2 of the second communication node 20, and the receiving end RX2 of the second communication node 20 is also low level.
在第一通信节点10的发送端TX1为高电平、第二通信节点20的发送端TX2为低电平的情况下,板内通信电路30中的第一二极管D1不导通,第二二极管D2导通,第三二极管D3导通,第四二极管D4不导通,实现第一通信节点10的接收端RX1和第二通信节点20的接收端RX2均为低电平。如图2b所示,假定第一电源端和第二电源端的电平预设为3.3V,高电平对应的模拟信号的电压范围为2.5~10V,低电平对应的模拟信号的电压范围为0~1.2V。第一通信节点10的发送端TX1为高电平(比如,5V),即第一二极管D1的负极32的电压为“5V”,第二通信节点20的发送端TX2为低电平(比如,0V),即第二二极管D2的负极42的电压为“0V”。由于第一二极管D1的负极为5V,第一二极管D1的正极通过第一电阻R1连接第一电源端的电压3.3V,则第一二极管D1不导通,第一二极管D1的正极电压为3.3V。由于第二二极管D2的负极为0V,第二二极管D2的正极通过第二电阻R2连接第二电源端的电压3.3V,则第二二极管D2导通,由于二极管的导通压降一般为0.2~0.7V,第二二极管D2的正极电压为0.2~0.7V。由于第三二极管D3的正极与第一二极管D1的正极电压相同,均为3.3V,第三二极管D3的负极通过隔离芯片301与第二二极管D2的正极(0.2~0.7V)连接,则第三二极管D3导通。第四二极管D4的正极与第二二极管D2的正极电压相同,均为0.2~0.7V,则第四二极管D4的负极通过隔离芯片301与第一二极管D1的正极(3.3V)连接,则第四二极管D4不导通。第二二极管D2导通时,第二通信节点20的发送端TX2与接收端RX2均为低电平。由于第三二极管D3导通,第二通信节点20的接收端RX2将低电平通过隔离芯片301的第一输入端IN1、隔离芯片301的第一输出端OUT1、第三二极管D3传递到第一通信节点10的接收端RX1,第一通信节点10的接收端RX1也为低电平。When the transmitting terminal TX1 of the first communication node 10 is at a high level and the transmitting terminal TX2 of the second communication node 20 is at a low level, the first diode D1 in the on-board communication circuit 30 is not conducting, and the first diode D1 in the on-board communication circuit 30 is not conducting. The second diode D2 is turned on, the third diode D3 is turned on, and the fourth diode D4 is turned off, so that the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 are both low level. As shown in Fig. 2b, it is assumed that the level of the first power supply terminal and the second power supply terminal is preset to 3.3V, the voltage range of the analog signal corresponding to the high level is 2.5-10V, and the voltage range of the analog signal corresponding to the low level is 0~1.2V. The transmission terminal TX1 of the first communication node 10 is at a high level (for example, 5V), that is, the voltage of the negative electrode 32 of the first diode D1 is “5V”, and the transmission terminal TX2 of the second communication node 20 is at a low level ( For example, 0V), that is, the voltage of the cathode 42 of the second diode D2 is "0V". Since the cathode of the first diode D1 is 5V, and the anode of the first diode D1 is connected to the voltage of 3.3V at the first power supply terminal through the first resistor R1, the first diode D1 is not conducting, and the first diode D1 is not conductive. The positive voltage of D1 is 3.3V. Since the cathode of the second diode D2 is 0V, and the anode of the second diode D2 is connected to the voltage of the second power supply terminal 3.3V through the second resistor R2, the second diode D2 is turned on. The voltage drop is generally 0.2-0.7V, and the anode voltage of the second diode D2 is 0.2-0.7V. Since the positive electrode of the third diode D3 and the positive electrode of the first diode D1 have the same voltage as 3.3V, the negative electrode of the third diode D3 is separated from the positive electrode of the second diode D2 through the isolation chip 301 (0.2~ 0.7V) connection, then the third diode D3 is turned on. The anode voltage of the fourth diode D4 is the same as the anode voltage of the second diode D2, and both are 0.2-0.7V, and the cathode of the fourth diode D4 passes through the isolation chip 301 and the anode of the first diode D1 ( 3.3V) connection, the fourth diode D4 is not conducting. When the second diode D2 is turned on, the transmitting end TX2 and the receiving end RX2 of the second communication node 20 are both at low level. Since the third diode D3 is turned on, the receiving terminal RX2 of the second communication node 20 will pass the low level through the first input terminal IN1 of the isolation chip 301 , the first output terminal OUT1 of the isolation chip 301 , and the third diode D3 It is transmitted to the receiving end RX1 of the first communication node 10, and the receiving end RX1 of the first communication node 10 is also low level.
在第一通信节点10的发送端TX1和第二通信节点20的发送端TX2均为高电平的情况下,板内通信电路30中的第一二极管D1和第二二极管D2均不导通,实现第一通信节点10的接收端RX1和第二通信节点20的接收端RX2均为高电平。如图2b所示,假定第一电源端和第二电源端的电平预设为3.3V,高电平对应的模拟信号的电压范围为2.5~10V,低电平对应的模拟信号的电压 范围为0~1.2V。第一通信节点10的发送端TX1和第二通信节点20的发送端TX2均为高电平(比如,5V),即第一二极管D1的负极32的电压为“5V”,同样地,第二二极管D2的负极42的电压也为“V”。第一二极管D1的正极通过第一电阻R1连接第一电源端的电压3.3V,则第一二极管D1不导通,第一二极管D1的正极电压为3.3V。类似的,第二二极管D2的正极通过第二电阻R2连接第二电源端的电压3.3V,则第二二极管D2不导通,第二二极管D2的正极电压为3.3V。此时,第一通信节点10的接收端RX1和第二通信节点20的接收端RX2均为3.3V,即为高电平。In the case that the transmitting end TX1 of the first communication node 10 and the transmitting end TX2 of the second communication node 20 are both at a high level, the first diode D1 and the second diode D2 in the intra-board communication circuit 30 are both It is not turned on, so that the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 are both at a high level. As shown in Fig. 2b, it is assumed that the level of the first power supply terminal and the second power supply terminal is preset to 3.3V, the voltage range of the analog signal corresponding to the high level is 2.5-10V, and the voltage range of the analog signal corresponding to the low level is 0~1.2V. The transmitting end TX1 of the first communication node 10 and the transmitting end TX2 of the second communication node 20 are both at a high level (for example, 5V), that is, the voltage of the negative electrode 32 of the first diode D1 is “5V”. Similarly, The voltage of the cathode 42 of the second diode D2 is also "V". The anode of the first diode D1 is connected to the voltage 3.3V of the first power supply terminal through the first resistor R1, then the first diode D1 is not conducting, and the anode voltage of the first diode D1 is 3.3V. Similarly, the anode of the second diode D2 is connected to the voltage of 3.3V at the second power supply terminal through the second resistor R2, the second diode D2 is non-conductive, and the anode voltage of the second diode D2 is 3.3V. At this time, the receiving end RX1 of the first communication node 10 and the receiving end RX2 of the second communication node 20 are both 3.3V, that is, a high level.
本申请实施例中,板内通信电路可以用于在板内的通信节点没有外加CAN收发器的情况下,实现两个通信节点之间的板内CAN通信,降低了硬件成本。本申请实施例主要说明了板内通信电路的结构及工作原理,接下来阐述对板内通信电路进行优化的可选手段。In the embodiments of the present application, the on-board communication circuit can be used to implement on-board CAN communication between two communication nodes without adding an external CAN transceiver to the in-board communication node, thereby reducing hardware costs. The embodiments of the present application mainly describe the structure and working principle of the in-board communication circuit, and then describe optional means for optimizing the in-board communication circuit.
可选的,请参阅图3,图3是在图2a的基础上进一步优化得到的,图3是本申请实施例公开的另一种板内通信电路的结构示意图。如图3所示,本实施例中所描述的板内通信电路,还包括:第一滤波电路和第二滤波电路;第一电阻R1的第一端11通过第一滤波电路连接第一通信节点10的接收端RX1;第二电阻R2的第一端21通过第二滤波电路连接第二通信节点20的接收端RX2。其中:Optionally, please refer to FIG. 3 , FIG. 3 is obtained by further optimization on the basis of FIG. 2 a , and FIG. 3 is a schematic structural diagram of another on-board communication circuit disclosed in an embodiment of the present application. As shown in FIG. 3 , the on-board communication circuit described in this embodiment further includes: a first filter circuit and a second filter circuit; the first end 11 of the first resistor R1 is connected to the first communication node through the first filter circuit The receiving end RX1 of 10; the first end 21 of the second resistor R2 is connected to the receiving end RX2 of the second communication node 20 through the second filter circuit. in:
第一滤波电路包括第三电阻R3和第一电容C1,第二滤波电路包括第四电阻R4和第二电容C2;第一电容C1的第一端71连接第三电阻R3的第一端51以及第一通信节点10的接收端RX1,第一电容C1的第二端72连接第一地端,第三电阻R3的第二端52连接第一电阻R1的第一端11;第二电容C2的第一端81连接第四电阻R4的第二端62以及第二通信节点20的接收端RX2,第二电容C2的第二端82连接第二地端,第四电阻R4的第一端61连接第二电阻R2的第一端21。The first filter circuit includes a third resistor R3 and a first capacitor C1, and the second filter circuit includes a fourth resistor R4 and a second capacitor C2; the first end 71 of the first capacitor C1 is connected to the first end 51 of the third resistor R3 and The receiving end RX1 of the first communication node 10, the second end 72 of the first capacitor C1 is connected to the first ground end, the second end 52 of the third resistor R3 is connected to the first end 11 of the first resistor R1; The first terminal 81 is connected to the second terminal 62 of the fourth resistor R4 and the receiving terminal RX2 of the second communication node 20 , the second terminal 82 of the second capacitor C2 is connected to the second ground terminal, and the first terminal 61 of the fourth resistor R4 is connected to The first end 21 of the second resistor R2.
通信节点之间进行通信时,通信节点的接收端可能受到各种因素的干扰而很难接收到纯净的信号,第一滤波电路和第二滤波电路抗干扰性强,使得板内通信电路不仅可以实现通信节点之间的板内CAN通信,还可以减少通信节点的接收端可能收到的干扰信号,实现更精确的板内CAN通信。When communicating between communication nodes, the receiving end of the communication node may be interfered by various factors and it is difficult to receive pure signals. The first filter circuit and the second filter circuit have strong anti-interference, so that the on-board communication circuit can not only Realizing intra-board CAN communication between communication nodes can also reduce interference signals that may be received by the receiving end of the communication nodes, and realize more accurate intra-board CAN communication.
可选的,还可以在图2b的基础上增加上述第一滤波电路和第二滤波电路,具体原理与图3类似,此处不再赘述。Optionally, the above-mentioned first filter circuit and second filter circuit may also be added on the basis of FIG. 2 b , and the specific principle is similar to that of FIG. 3 , which will not be repeated here.
请参阅图4,图4是本申请实施例公开的一种板内通信装置的结构示意图。如图4所示,本实施例中所描述的板内通信装置,包括第一通信节点10、第二通信节点20和如图2a、图2b或图3中任意一项所示的板内通信电路30。其中:Please refer to FIG. 4 , which is a schematic structural diagram of an in-board communication device disclosed in an embodiment of the present application. As shown in FIG. 4 , the intra-board communication device described in this embodiment includes a first communication node 10 , a second communication node 20 , and the intra-board communication shown in any one of FIGS. 2 a , 2 b or 3 . circuit 30. in:
第一通信节点10的接地端103连接第三地端、第二通信节点20的接地端203连接第四地端,第三地端与第四地端不相同;The ground terminal 103 of the first communication node 10 is connected to the third ground terminal, the ground terminal 203 of the second communication node 20 is connected to the fourth ground terminal, and the third ground terminal is different from the fourth ground terminal;
第一通信节点10的电源端104连接第一辅助电源,第二通信节点20的电源端204连接第二辅助电源;The power supply terminal 104 of the first communication node 10 is connected to the first auxiliary power supply, and the power supply terminal 204 of the second communication node 20 is connected to the second auxiliary power supply;
第一通信节点10和第二通信节点20均包括微控制单元MCU和CAN控制器。Both the first communication node 10 and the second communication node 20 include a microcontroller unit MCU and a CAN controller.
本申请实施例中,第一通信节点10中的微控制单元MCU与第二通信节点20中的微控制单元MCU可以是相同的微控制单元,也可以是不同的微控制单元。In this embodiment of the present application, the micro-control unit MCU in the first communication node 10 and the micro-control unit MCU in the second communication node 20 may be the same micro-control unit, or may be different micro-control units.
本申请实施例中,微控制单元MCU和CAN控制器互相连接、协同工作,共同构成一个通信节点。板内通信装置中的两个通信节点通过板内通信电路实现不共地(即第三地端与第四地端不是同一个地端)的板内CAN通信。In the embodiment of the present application, the micro-control unit MCU and the CAN controller are connected to each other and work together to form a communication node. The two communication nodes in the on-board communication device realize intra-board CAN communication with no common ground (that is, the third ground terminal and the fourth ground terminal are not the same ground terminal) through the on-board communication circuit.
请参阅图5,图5是本申请实施例公开的另一种板内通信装置的结构示意图。如图5所示,本实施例中所描述的板内通信装置,包括第一通信节点10、第二通信节点20和如图2a、图2b或图3中任意一项所示的板内通信电路30。其中:Please refer to FIG. 5 , which is a schematic structural diagram of another in-board communication device disclosed in an embodiment of the present application. As shown in FIG. 5 , the intra-board communication device described in this embodiment includes a first communication node 10 , a second communication node 20 and the intra-board communication shown in any one of FIG. 2 a , FIG. 2 b or FIG. 3 . circuit 30. in:
第一通信节点10的接地端103连接第三地端、第二通信节点20的接地端203连接第四地端,第三地端与第四地端不相同;The ground terminal 103 of the first communication node 10 is connected to the third ground terminal, the ground terminal 203 of the second communication node 20 is connected to the fourth ground terminal, and the third ground terminal is different from the fourth ground terminal;
第一通信节点10的电源端104连接第一辅助电源,第二通信节点20的电源端204连接第二辅助电源;The power supply terminal 104 of the first communication node 10 is connected to the first auxiliary power supply, and the power supply terminal 204 of the second communication node 20 is connected to the second auxiliary power supply;
第一通信节点10和第二通信节点20均包括微控制单元MCU,微控制单元MCU内集成有CAN控制器。Both the first communication node 10 and the second communication node 20 include a micro-control unit MCU, and a CAN controller is integrated in the micro-control unit MCU.
本申请实施例中,微控制单元MCU中集成有CAN控制器,微控制单元 MCU可以直接构成一个通信节点。板内通信装置中的两个通信节点通过板内通信电路实现不共地(即第三地端与第四地端不是同一个地端)的板内CAN通信。In the embodiment of the present application, a CAN controller is integrated in the micro-control unit MCU, and the micro-control unit MCU can directly constitute a communication node. The two communication nodes in the on-board communication device realize intra-board CAN communication with no common ground (that is, the third ground terminal and the fourth ground terminal are not the same ground terminal) through the on-board communication circuit.
以上对本申请实施例所提供的一种板内通信电路及板内通信装置进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The in-board communication circuit and the in-board communication device provided by the embodiments of the present application have been described in detail above. The principles and implementations of the present application are described with specific examples in this paper. The descriptions of the above embodiments are only used for Help to understand the method of the present application and its core idea; meanwhile, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation and application scope. In summary, the content of this specification It should not be construed as a limitation of this application.

Claims (10)

  1. 一种板内通信电路,所述板内通信电路用于实现第一通信节点和第二通信节点之间的板内通信,其特征在于,所述板内通信电路包括第一二极管、第二二极管、第一电阻、第二电阻和隔离芯片;An intra-board communication circuit used for realizing intra-board communication between a first communication node and a second communication node, characterized in that the intra-board communication circuit comprises a first diode, a second Two diodes, a first resistor, a second resistor and an isolation chip;
    所述第一通信节点的发送端连接所述第一二极管的负极,所述第一二极管的正极连接所述第一通信节点的接收端和所述第一电阻的第一端,所述第一电阻的第二端连接第一电源端;所述第二通信节点的发送端连接所述第二二极管的负极,所述第二二极管的正极连接所述第二通信节点的接收端和所述第二电阻的第一端,所述第二电阻的第二端连接第二电源端;The transmitting end of the first communication node is connected to the cathode of the first diode, and the anode of the first diode is connected to the receiving end of the first communication node and the first end of the first resistor, The second end of the first resistor is connected to the first power supply end; the transmitting end of the second communication node is connected to the cathode of the second diode, and the anode of the second diode is connected to the second communication node the receiving end of the node and the first end of the second resistor, the second end of the second resistor is connected to the second power supply end;
    在所述第一通信节点的发送端连接所述隔离芯片的第二输入端,所述第一通信节点的接收端连接所述隔离芯片的第一输出端,所述第二通信节点的发送端连接所述隔离芯片的第一输入端,所述第二通信节点的接收端连接所述隔离芯片的第二输出端的情况下,若所述第一通信节点的发送端和/或所述第二通信节点的发送端为低电平,所述板内通信电路实现所述第一通信节点的接收端和所述第二通信节点的接收端为低电平。The transmitting end of the first communication node is connected to the second input end of the isolation chip, the receiving end of the first communication node is connected to the first output end of the isolation chip, and the transmitting end of the second communication node When the first input end of the isolation chip is connected, and the receiving end of the second communication node is connected to the second output end of the isolation chip, if the transmitting end of the first communication node and/or the second The sending end of the communication node is at low level, and the on-board communication circuit realizes that the receiving end of the first communication node and the receiving end of the second communication node are at low level.
  2. 根据权利要求1所述的板内通信电路,其特征在于,所述板内通信电路还包括第三二极管和第四二极管,所述第三二极管的正极连接所述第一通信节点的接收端,所述第四二极管的正极连接所述第二通信节点的接收端;The intra-board communication circuit according to claim 1, wherein the intra-board communication circuit further comprises a third diode and a fourth diode, and an anode of the third diode is connected to the first diode the receiving end of the communication node, the anode of the fourth diode is connected to the receiving end of the second communication node;
    在所述第三二极管的负极连接所述隔离芯片的第一输出端,所述第一通信节点的接收端连接所述隔离芯片的第二输入端,所述第四二极管的负极连接所述隔离芯片的第二输出端,所述第二通信节点的接收端连接所述隔离芯片的第一输入端的情况下,若所述第一通信节点的发送端和/或所述第二通信节点的发送端为低电平,所述板内通信电路实现所述第一通信节点的接收端和所述第二通信节点的接收端为低电平;若所述第一通信节点的发送端和所述第二通信节点的发送端均为高电平,所述板内通信电路实现所述第一通信节点的接收端和所述第二通信节点的接收端为高电平。The cathode of the third diode is connected to the first output terminal of the isolation chip, the receiving terminal of the first communication node is connected to the second input terminal of the isolation chip, and the cathode of the fourth diode is connected to the first output terminal of the isolation chip. When the second output end of the isolation chip is connected, and the receiving end of the second communication node is connected to the first input end of the isolation chip, if the transmitting end of the first communication node and/or the second communication node The sending end of the communication node is at low level, and the on-board communication circuit realizes that the receiving end of the first communication node and the receiving end of the second communication node are at low level; if the sending end of the first communication node Both the terminal and the transmitting terminal of the second communication node are at a high level, and the on-board communication circuit realizes that the receiving terminal of the first communication node and the receiving terminal of the second communication node are at a high level.
  3. 根据权利要求1或2所述的板内通信电路,其特征在于,所述板内通信电路还包括第一滤波电路;所述第一电阻的第一端通过所述第一滤波电路连接所述第一通信节点的接收端。The on-board communication circuit according to claim 1 or 2, wherein the on-board communication circuit further comprises a first filter circuit; the first end of the first resistor is connected to the The receiving end of the first communication node.
  4. 根据权利要求3所述的板内通信电路,其特征在于,所述第一滤波电路包括第三电阻和第一电容;所述第一电容的第一端连接所述第三电阻的第一端、所述第一通信节点的接收端,所述第一电容的第二端连接第一地端,所述第三电阻的第二端连接所述第一电阻的第一端。The on-board communication circuit according to claim 3, wherein the first filter circuit comprises a third resistor and a first capacitor; the first end of the first capacitor is connected to the first end of the third resistor . The receiving end of the first communication node, the second end of the first capacitor is connected to the first ground end, and the second end of the third resistor is connected to the first end of the first resistor.
  5. 根据权利要求4所述的板内通信电路,其特征在于,所述板内通信电路还包括第二滤波电路;所述第二电阻的第一端通过所述第二滤波电路连接所述第二通信节点的接收端。The intra-board communication circuit according to claim 4, wherein the intra-board communication circuit further comprises a second filter circuit; the first end of the second resistor is connected to the second filter circuit through the second filter circuit The receiver of the communication node.
  6. 根据权利要求5所述的板内通信电路,其特征在于,所述第二滤波电路包括第四电阻和第二电容;所述第二电容的第一端连接所述第四电阻的第二端、所述第二通信节点的接收端,所述第二电容的第二端连接第二地端,所述第四电阻的第一端连接所述第二电阻的第一端。The intra-board communication circuit according to claim 5, wherein the second filter circuit comprises a fourth resistor and a second capacitor; the first end of the second capacitor is connected to the second end of the fourth resistor . The receiving end of the second communication node, the second end of the second capacitor is connected to the second ground end, and the first end of the fourth resistor is connected to the first end of the second resistor.
  7. 一种板内通信装置,其特征在于,所述板内通信装置包括第一通信节点、第二通信节点和权利要求1~6任一项所述的板内通信电路。An intra-board communication device, characterized in that the intra-board communication device comprises a first communication node, a second communication node and the intra-board communication circuit according to any one of claims 1 to 6.
  8. 根据权利要求7所述的板内通信装置,其特征在于,所述第一通信节点的接地端连接第三地端、所述第二通信节点的接地端连接第四地端,所述第三地端与所述第四地端不相同。The on-board communication device according to claim 7, wherein the ground terminal of the first communication node is connected to a third ground terminal, the ground terminal of the second communication node is connected to a fourth ground terminal, and the third ground terminal is connected to the ground terminal. The ground end is different from the fourth ground end.
  9. 根据权利要求7所述的板内通信装置,其特征在于,所述第一通信节点和所述第二通信节点均包括微控制单元和CAN控制器。The on-board communication device according to claim 7, wherein the first communication node and the second communication node both comprise a microcontroller unit and a CAN controller.
  10. 根据权利要求7所述的板内通信装置,其特征在于,所述第一通信节 点和所述第二通信节点均包括微控制单元,所述微控制单元内集成有CAN控制器。The on-board communication device according to claim 7, wherein the first communication node and the second communication node both comprise a micro-control unit, and a CAN controller is integrated in the micro-control unit.
PCT/CN2020/111503 2020-08-26 2020-08-26 Intra-board communication circuit and intra-board communication device WO2022040997A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2020/111503 WO2022040997A1 (en) 2020-08-26 2020-08-26 Intra-board communication circuit and intra-board communication device
CN202080006665.7A CN113168145B (en) 2020-08-26 2020-08-26 In-board communication circuit and in-board communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/111503 WO2022040997A1 (en) 2020-08-26 2020-08-26 Intra-board communication circuit and intra-board communication device

Publications (1)

Publication Number Publication Date
WO2022040997A1 true WO2022040997A1 (en) 2022-03-03

Family

ID=76881224

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/111503 WO2022040997A1 (en) 2020-08-26 2020-08-26 Intra-board communication circuit and intra-board communication device

Country Status (2)

Country Link
CN (1) CN113168145B (en)
WO (1) WO2022040997A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203747846U (en) * 2014-01-17 2014-07-30 上海科东实业有限公司 Wireless communication mainboard structure
CN105141492A (en) * 2015-09-29 2015-12-09 广州致远电子股份有限公司 CAN transmitting-receiving module and manufacturing method thereof
CN206332687U (en) * 2016-12-30 2017-07-14 锦州艾德自动控制系统有限公司 A kind of multichannel CAN isolation circuit and monitoring system
CN108382324A (en) * 2018-01-18 2018-08-10 沈阳中科唯电子技术有限公司 A kind of low-power consumption entire car controller of integrated gateway function
US20190272248A1 (en) * 2018-03-01 2019-09-05 Infineon Technologies Ag Bus driver circuit

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205195728U (en) * 2015-11-10 2016-04-27 北京波士顿动力电池有限公司 Controller area network inboard communication circuit
US10615996B2 (en) * 2018-03-14 2020-04-07 Nxp B.V. Apparatuses and methods for switching communication modes of a transceiver circuit
CN109117407B (en) * 2018-09-27 2021-07-06 郑州云海信息技术有限公司 Management board card and server
CN210181514U (en) * 2019-10-09 2020-03-24 四川赛狄信息技术股份公司 High-speed acquisition board
CN210444288U (en) * 2019-11-05 2020-05-01 浙江创力电子股份有限公司 Communication interface circuit of data transmission unit
CN110928823A (en) * 2019-11-20 2020-03-27 四川虹美智能科技有限公司 Level conversion circuit
CN111427824B (en) * 2020-03-30 2022-03-04 深圳市汇川技术股份有限公司 Serial port communication circuit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203747846U (en) * 2014-01-17 2014-07-30 上海科东实业有限公司 Wireless communication mainboard structure
CN105141492A (en) * 2015-09-29 2015-12-09 广州致远电子股份有限公司 CAN transmitting-receiving module and manufacturing method thereof
CN206332687U (en) * 2016-12-30 2017-07-14 锦州艾德自动控制系统有限公司 A kind of multichannel CAN isolation circuit and monitoring system
CN108382324A (en) * 2018-01-18 2018-08-10 沈阳中科唯电子技术有限公司 A kind of low-power consumption entire car controller of integrated gateway function
US20190272248A1 (en) * 2018-03-01 2019-09-05 Infineon Technologies Ag Bus driver circuit

Also Published As

Publication number Publication date
CN113168145B (en) 2023-05-02
CN113168145A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
US10797893B2 (en) Single pair ethernet management interface
CN105141491B (en) RS485 communication circuit and method for realizing spontaneous self-receiving
CN204965418U (en) Novel RS -485 interface drive circuit
CN106533873A (en) CAN bus node chip including transceiver and controller
CN201557127U (en) RS485 half-duplex transmit-receive automatic switch circuit
WO2020063865A1 (en) Can circuit structure and vehicle diagnostic device thereof
CN213365288U (en) On-board communication circuit and on-board communication device
WO2022040997A1 (en) Intra-board communication circuit and intra-board communication device
WO2022040996A1 (en) In-board communication circuit and in-board communication apparatus
CN210867765U (en) Remote control network switch
CN212811729U (en) On-board communication circuit and device based on CAN communication
CN213367785U (en) On-board communication circuit and device based on CAN communication
CN212811730U (en) On-board communication circuit and on-board communication device
WO2020135261A1 (en) Can bus communication circuit for use in electric bicycle
WO2022041000A1 (en) Can communication-based intra-board communication circuit and apparatus
WO2022222332A1 (en) Bus voltage sampling circuit of motor controller and motor controller
WO2022041001A1 (en) Intra-board communication circuit and device employing can communication
CN103179012A (en) FlexRay network node adopting iCoupler magnetic isolation protecting measures
CN108089481A (en) A kind of automobile detection system circuit based on CAN/LIN
AU2008200997A1 (en) A conversion circuit
CN111813728B (en) Multi-bus and multi-channel interface realized by single serial port multiplexing mode
CN211124035U (en) PAM4 optical module I2C communication system
CN210041857U (en) Multiplex communication circuit and communication system
CN209447019U (en) RS485 equipment connects circuit and system
CN209046639U (en) A kind of data transmit-receive circuit and communication instrument

Legal Events

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

Ref document number: 20950669

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20950669

Country of ref document: EP

Kind code of ref document: A1