Converter for CAN (Controller Area Network) and LIN (Local Interconnect Network) and Flexray bus interface
By designing a modular converter, the interconnection of LIN, CAN and FlexRay buses is achieved, which solves the problems of high bus interconnection costs and communication delays in the prior art, and realizes efficient and low-cost bus interconnection and data transmission.
Patent Information
- Application Number
- CN202421598489.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2025-06-10
- Estimated Expiration
- 2034-07-08
AI Technical Summary
The prior art is difficult to interconnect LIN, CAN and FlexRay buses, resulting in the inability to guarantee communication delay and message real-time performance, and the high cost of the FlexRay bus limits its wide application.
A modular converter is designed, including a main control module, a CAN bus transceiver module, a LIN bus transceiver module, a FlexRay bus transceiver module and a USB communication interface module. It supports multiple bus protocols through the TC264 chip, and transmits bus network data to the upper computer through the USB interface.
The interconnection of LIN, CAN and FlexRay buses is realized, which reduces the cost of bus interconnection, improves the real-time and communication efficiency of messages, and facilitates data transmission and debugging through the USB interface.
Smart Images

Figure CN222965671U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of steering systems, and more specifically to a converter for CAN, LIN, and FlexRay bus interfaces. Background Art
[0002] With the rapid development of in-vehicle bus technology, LIN bus and CAN bus technologies have emerged one after another and have gradually been applied, basically meeting the communication and control requirements of modern vehicles. However, the communication rate of the LIN bus is not high enough, and the CAN bus communication is based on message priority, and its communication delay cannot be guaranteed, affecting the real-time performance of messages. In addition to its high bandwidth, the FlexRay bus can also ensure the minimum message transmission delay and message jitter, and has a built-in strong fault tolerance function. Therefore, it is gradually being used for in-vehicle communication and control.
[0003] Although the FlexRay bus has been applied in some electronic control systems, its cost is higher compared to other buses. Therefore, currently, LIN, CAN, and FlexRay buses will coexist together. Therefore, how to realize the interconnection of the above three bus networks has become an urgent problem to be solved. Summary of the Invention
[0004] In order to overcome the deficiencies of the prior art, the utility model provides a converter for CAN, LIN, and FlexRay bus interfaces. The terminal adopts a modular design, which is convenient for debugging, modifying, and transplanting programs on the one hand, and is also beneficial for future terminal performance maintenance and function expansion and upgrade.
[0005] To achieve the above object, a converter for CAN, LIN, and FlexRay bus interfaces is designed, including a main control module, a CAN bus transceiver module, a LIN bus transceiver module, a FlexRay bus transceiver module, and a USB communication interface module. It is characterized in that the main control module is interconnected with the LIN bus transceiver module, the FlexRay bus transceiver module, the CAN bus transceiver module, and the USB communication interface module respectively.
[0006] The described main control module includes a main control chip, a voltage conversion chip, and a terminal block. The model of the main control chip is SAK-TC264D-40F200N BC, and the model of the voltage conversion chip is BSL215CH6327XTSA1. The 42nd port of the main control chip is connected to one end of the first resistor, and the other end of the first resistor is connected to a 3.3V voltage. The 22nd port, 58th port, 79th port, and 99th port of the main control chip are respectively connected to one end of the first capacitor, the second capacitor, the third capacitor, and the fourth capacitor, and the other ends of the first capacitor, the second capacitor, the third capacitor, and the fourth capacitor are combined and grounded. The 126th port and 83rd port of the main control chip are respectively connected to one end of the fifth capacitor and the sixth capacitor, and the other ends of the fifth capacitor and the sixth capacitor are combined and grounded. The 10th port of the main control chip is connected to one end of the seventh capacitor, and the other end of the seventh capacitor is grounded. The 44th port of the main control chip is connected to one end of the second resistor, and the other end of the second resistor is connected to a 3.3V voltage. The 127th port and 136th port of the main control chip are respectively connected to one end of the eighth capacitor and the ninth capacitor, and the other ends of the eighth capacitor and the ninth capacitor are combined and grounded. The 23rd port, 59th port, 78th port, and 125th port of the main control chip are respectively connected to one end of the tenth capacitor, the eleventh capacitor, the twelfth capacitor, and the thirteenth capacitor, and the other ends of the tenth capacitor, the eleventh capacitor, the twelfth capacitor, and the thirteenth capacitor are combined and grounded. Among them, the 22nd port, 58th port, 79th port, and 99th port of the main control chip are combined and connected to a 1.3V voltage. The 126th port and 83rd port of the main control chip are combined and connected to a 3.3V voltage. The 10th port of the main control chip is connected to a 1.3V voltage. The 127th port, 136th port, 23rd port, 59th port, 78th port, and 125th port of the main control chip are combined and connected to a 3.3V voltage. The 81st port and 82nd port of the main control chip are respectively connected to the 1st port and 3rd port of the crystal oscillator, and one end of the fourteenth capacitor and the fifteenth capacitor. The other ends of the fourteenth capacitor and the fifteenth capacitor are connected to the crystal oscillator and then grounded. The 97th port of the main control chip is connected to one end of the third resistor, and the other end of the third resistor is respectively connected to one end of the sixteenth capacitor, the key switch, and the fourth resistor. The other ends of the sixteenth capacitor and the key switch are combined and grounded, and the other end of the fourth resistor is connected to a 3.3V voltage. The 80th port and 145th port of the main control chip are respectively grounded. The 43rd port of the main control chip is connected to one end of the fifth resistor, and the other end of the fifth resistor is grounded. The 41st port of the main control chip is connected to one end of the sixth resistor, and the other end of the sixth resistor is connected to the 43rd port of the main control chip. The 1st port of the terminal block is respectively connected to 3.The cathode of the first diode, the anode of the first diode, the 3rd port and the 5th port of the terminal are connected to ground; the 7th port of the terminal is connected to one end of the seventh resistor, and the other end of the seventh resistor is connected to the 118th port of the main control chip; the 9th port of the terminal is connected to one end of the eighth resistor, and the other end of the eighth resistor is connected to the 119th port of the main control chip; the 2nd port, the 4th port, the 6th port, the 8th port and the 10th port of the terminal are respectively connected to the 89th port, the 92nd port, the 91st port, the 97th port of the main control chip; one ends of the ninth resistor, the tenth resistor, the eleventh resistor, the twelfth resistor and the thirteenth resistor are connected together to the 3.3V voltage. The other end of the ninth resistor is connected to the light-emitting diode and then grounded. The other ends of the tenth resistor, the eleventh resistor, the twelfth resistor and the thirteenth resistor are respectively connected to the light-emitting diode and then connected to the 86th port, the 87th port, the 102nd port and the 103rd port of the main control chip; the 124th port of the main control chip is connected to one end of the fourteenth resistor, and the other end of the fourteenth resistor is grounded; the 123rd port of the main control chip is connected to one end of the fifteenth resistor, and the other end of the fifteenth resistor is grounded; the 120th port of the main control chip is connected to one end of the sixteenth resistor, and the other end of the sixteenth resistor is connected to the 3.3V voltage; the 121st port of the main control chip is connected to one end of the seventeenth resistor, and the other end of the seventeenth resistor is connected to the 3.3V voltage; the 143rd port of the main control chip is connected to one end of the eighteenth resistor, and the other end of the eighteenth resistor is connected to the 3.3V voltage; the 144th port of the main control chip is connected to one end of the nineteenth resistor, and the other end of the nineteenth resistor is connected to the 3.3V voltage; the 122nd port of the main control chip is connected to one end of the twentieth resistor, and the other end of the twentieth resistor is connected to the 3.3V voltage; the 94th port of the main control chip is connected to one end of the twenty-first resistor, and the other end of the twenty-first resistor is connected to the 3.3V voltage; the 91st port of the main control chip is connected to one end of the twenty-second resistor, and the other end of the twenty-second resistor is connected to the 3.3V voltage; the 1st port of the voltage conversion chip is connected to the 70th port of the main control chip. The 2nd port of the voltage conversion chip is respectively connected to the 3.3V voltage and one end of the seventeenth capacitor, and the other end of the seventeenth capacitor is grounded; the 3rd port of the voltage conversion chip is connected to the 71st port of the main control chip. The 4th port and the 6th port of the voltage conversion chip are connected together to one end of the inductor. The other end of the inductor is respectively connected to the 1.3V voltage and one end of the eighteenth capacitor, and the other end of the eighteenth capacitor and the 5th port of the voltage conversion chip are connected together to ground.
[0007] The described CAN bus transceiver module includes a CAN communication module chip, the model of the CAN communication module chip is TJA1051T / 3. The 1st port of the CAN communication module chip is connected to the 11th port of the main control chip, and the 4th port of the CAN communication module chip is connected to the 11th port of the main control chip. The 2nd port of the CAN communication module chip is respectively connected to the ground after being merged with one end of the nineteenth capacitor and the twentieth capacitor; the other ends of the nineteenth capacitor and the twentieth capacitor are merged with the 5th port of the CAN communication module chip and connected to the 3.3V voltage; the 8th port of the CAN communication module chip is respectively connected to the ground after being merged with one end of the twenty-first capacitor and the twenty-second capacitor; the other ends of the twenty-first capacitor and the twenty-second capacitor are merged with the 3rd port of the CAN communication module chip and connected to the 5V voltage; the 6th port and the 7th port of the CAN communication module chip are respectively connected to peripherals for communication.
[0008] The described LIN bus transceiver module includes a LIN transceiver chip, the model of the LIN transceiver chip is TJA1020T_CM,118. The 1st port of the LIN transceiver chip is respectively connected to one end of the twenty-third resistor and the 4th port of the main control chip, and the other end of the twenty-third resistor is connected to the 3V3 voltage; the 2nd port of the LIN transceiver chip is connected to the 6th port of the main control chip; the 3rd port of the LIN transceiver chip is connected to one end of the twenty-fourth resistor, and the other end of the twenty-fourth resistor is respectively connected to one end of the twenty-fifth resistor and the drain of the NMOS. The other end of the twenty-fifth resistor is connected to the 5V voltage, the source of the NMOS is grounded, and the gate of the NMOS is connected to the 5th port of the main control chip; the 4th port of the LIN transceiver chip is connected to the 3rd port of the main control chip; the 5th port of the LIN transceiver chip is grounded; the 7th port of the LIN transceiver chip is connected to the 5V voltage; the 8th port of the LIN transceiver chip is connected to the 3.3V voltage; the 6th port of the LIN transceiver chip is connected to peripherals for communication.
[0009] The described FlexRay bus transceiver module includes a FlexRay communication chip, and the model of the FlexRay communication chip is TJA1081BTS,118. The No. 2 port of the FlexRay communication chip is connected to the No. 138 port of the main control chip. The No. 3 port of the FlexRay communication chip is connected to the 3.3V voltage. The No. 4 port of the FlexRay communication chip is connected to the No. 134 port of the main control chip. The No. 5 port of the FlexRay communication chip is connected to the No. 132 port of the main control chip. The No. 6 port of the FlexRay communication chip is connected to the No. 135 port of the main control chip. The No. 7 port of the FlexRay communication chip is connected to the No. 128 port of the main control chip. The No. 8 port of the FlexRay communication chip is connected to the No. 130 port and the No. 139 port of the main control chip. The No. 9 port of the FlexRay communication chip is connected to the No. 133 port of the main control chip. The No. 10 port of the FlexRay communication chip is connected to the No. 137 port of the main control chip. The No. 11 port of the FlexRay communication chip is connected to the 5V voltage. The No. 12 port of the FlexRay communication chip is connected to the No. 129 port of the main control chip. The No. 13 port of the FlexRay communication chip is grounded. The No. 14 port and the No. 15 port of the FlexRay communication chip are connected to external devices for communication. The No. 16 port of the FlexRay communication chip is connected to the 5V voltage.
[0010] The described USB communication interface module includes a USB communication chip and a TYPE-C module. The model of the USB communication chip is CH340E, and the model of the TYPE-C module is TYPE-CF-12. The No. 1 port of the USB communication chip is connected to the A6 and B6 ports of the TYPE-C module. The No. 2 port of the USB communication chip is connected to the A7 and B7 ports of the TYPE-C module. The No. 3 port of the USB communication chip is grounded. The No. 7 port of the USB communication chip is respectively connected to the 5V voltage and one end of the twenty-third capacitor. The other end of the twenty-third capacitor is combined with one end of the twenty-fourth capacitor and grounded. The other end of the twenty-third capacitor is connected to the No. 10 port of the USB communication chip. The No. 8 port of the USB communication chip is connected to the No. 1 port of the main control chip. The No. 9 port of the USB communication chip is connected to the No. 2 port of the main control chip. The No. 0 port and the A1 port of the TYPE-C module are combined and grounded. The A4 port of the TYPE-C module is connected to the 5V voltage. The A9 port of the TYPE-C module is connected to the 5V voltage. The A12 port of the TYPE-C module is grounded.
[0011] Compared with the prior art, the present utility model provides a converter for CAN, LIN, and FlexRay bus interfaces. The terminal adopts a modular design, which is convenient for debugging, modifying, and transplanting programs on the one hand, and is also beneficial for future maintenance of terminal performance and function expansion and upgrade. The main control module uses a TC264 chip, which has rich on-chip resources. On this basis, a CAN bus interface, a LIN bus interface, a FlexRay bus interface, and a USB communication interface are expanded. The cost is low, and it can realize the interconnection of the CAN bus, LIN bus, and FlexRay bus, and can transmit the bus network data to the host computer through the USB. The connection between modules is simple and convenient. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 It is a schematic diagram of the module connection of the present utility model.
[0013] Figures 2 to 9 It is a schematic diagram of the circuit connection of the main control module in the present utility model.
[0014] Figure 10 It is a schematic diagram of the circuit connection of the CAN bus transceiver module in the present utility model.
[0015] Figure 11 It is a schematic diagram of the circuit connection of the LIN bus transceiver module in the present utility model.
[0016] Figure 12 It is a schematic diagram of the circuit connection of the FlexRay bus transceiver module in the present utility model.
[0017] Figure 13 , Figure 14 It is a schematic diagram of the circuit connection of the UART serial port module and the USB communication interface module in the present utility model.
[0018] Figure 15 It is a flowchart of the operation of the present utility model. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0019] The following further describes the present utility model with reference to the drawings.
[0020] The present utility model provides CAN, LIN, and FlexRay bus interfaces to realize the interconnection of CAN, LIN, and FlexRay bus networks. That is, it converts the received CAN bus network data frame into a FlexRay data format frame, converts the received FlexRay bus network data frame into a CAN data frame format, converts the received CAN bus network data frame into a LIN data format frame, converts the received LIN bus network data frame into a CAN data frame format, and sends it to its corresponding bus network and sends it to the host computer through the USB. As Figure 1As shown, the main control module is interconnected with the LIN bus transceiver module, the FlexRay bus transceiver module, the CAN bus transceiver module, and the USB communication interface module, and the USB communication interface module is connected to the UART serial port module.
[0021] As Figures 2 to 9As shown in the figure, the main control module includes a main control chip U5, a voltage conversion chip Q1, and a terminal block DM1. The model of the main control chip U5 is SAK-TC264D-40F200N BC, and the model of the voltage conversion chip Q1 is BSL215CH6327XTSA1. The 42nd port of the main control chip U5 is connected to one end of the first resistor R7, and the other end of the first resistor R7 is connected to the 3.3V voltage; the 22nd port, 58th port, 79th port, and 99th port of the main control chip U5 are respectively connected to one end of the first capacitor C16, the second capacitor C17, the third capacitor C18, and the fourth capacitor C19, and the other ends of the first capacitor C16, the second capacitor C17, the third capacitor C18, and the fourth capacitor C19 are connected together and grounded; the 126th port and 83rd port of the main control chip U5 are respectively connected to one end of the fifth capacitor C20 and the sixth capacitor C21, and the other ends of the fifth capacitor C20 and the sixth capacitor C21 are connected together and grounded; the 10th port of the main control chip U5 is connected to one end of the seventh capacitor C22, and the other end of the seventh capacitor C22 is grounded; the 44th port of the main control chip U5 is connected to one end of the second resistor FB2, and the other end of the second resistor FB2 is connected to the 3.3V voltage; the 127th port and 136th port of the main control chip U5 are respectively connected to one end of the eighth capacitor C23 and the ninth capacitor C24, and the other ends of the eighth capacitor C23 and the ninth capacitor C24 are connected together and grounded; the 23rd port, 59th port, 78th port, and 125th port of the main control chip U5 are respectively connected to one end of the tenth capacitor C25, the eleventh capacitor C26, the twelfth capacitor C27, and the thirteenth capacitor C28, and the other ends of the tenth capacitor C25, the eleventh capacitor C26, the twelfth capacitor C27, and the thirteenth capacitor C28 are connected together and grounded; among them, the 22nd port, 58th port, 79th port, and 99th port of the main control chip U5 are connected together to the 1.3V voltage; the 126th port and 83rd port of the main control chip U5 are connected together to the 3.3V voltage; the 10th port of the main control chip U5 is connected to the 1.3V voltage; the 127th port, 136th port, 23rd port, 59th port, 78th port, and 125th port of the main control chip U5 are connected together to the 3.3V voltage; the 81st port and 82nd port of the main control chip U5 are respectively connected to the 1st port and 3rd port of the crystal oscillator X1, and one end of the fourteenth capacitor C29 and the fifteenth capacitor C30, and the other ends of the fourteenth capacitor C29 and the fifteenth capacitor C30 are connected to the crystal oscillator X1 and then grounded; the 97th port of the main control chip U5 is connected to one end of the third resistor R9, and the other end of the third resistor R9 is respectively connected to one end of the sixteenth capacitor C31, the key switch RST1, and the fourth resistor R10. The other ends of the sixteenth capacitor C31 and the key switch RST1 are connected together and grounded, and the other end of the fourth resistor R10 is connected to 3.3V voltage; the 80th port and the 145th port of the main control chip U5 are grounded respectively; the 43rd port of the main control chip U5 is connected to one end of the fifth resistor FB1, and the other end of the fifth resistor FB1 is grounded; the 41st port of the main control chip U5 is connected to one end of the sixth resistor R8, and the other end of the sixth resistor R8 is connected to the 43rd port of the main control chip U5; the 1st port of the terminal block DM1 is connected to 3.3V voltage and the cathode of the first diode D2 respectively, and the anode of the first diode D2 and the 3rd port and the 5th port of the terminal block DM1 are grounded together; the 7th port of the terminal block DM1 is connected to one end of the seventh resistor R25, and the other end of the seventh resistor R25 is connected to the 118th port of the main control chip U5; the 9th port of the terminal block DM1 is connected to one end of the eighth resistor R26, and the other end of the eighth resistor R26 is connected to the 119th port of the main control chip U5; the 2nd port, the 4th port, the 6th port, the 8th port, and the 10th port of the terminal block DM1 are connected to the 89th port, the 92nd port, the 91st port, and the 97th port of the main control chip U5 respectively; one ends of the ninth resistor R12, the tenth resistor R14, the eleventh resistor R17, the twelfth resistor R19, and the thirteenth resistor R22 are connected to 3.3V voltage together, the other end of the ninth resistor R12 is connected to an LED and then grounded, and the other ends of the tenth resistor R14, the eleventh resistor R17, the twelfth resistor R19, and the thirteenth resistor R22 are connected to LEDs and then connected to the 86th port, the 87th port, the 102nd port, and the 103rd port of the main control chip U5 respectively; the 124th port of the main control chip U5 is connected to one end of the fourteenth resistor R11, and the other end of the fourteenth resistor R11 is grounded; the 123rd port of the main control chip U5 is connected to one end of the fifteenth resistor R13, and the other end of the fifteenth resistor R13 is grounded; the 120th port of the main control chip U5 is connected to one end of the sixteenth resistor R15, and the other end of the sixteenth resistor R15 is connected to 3.3V voltage; the 121st port of the main control chip U5 is connected to one end of the seventeenth resistor R16, and the other end of the seventeenth resistor R16 is connected to 3.3V voltage; the 143rd port of the main control chip U5 is connected to one end of the eighteenth resistor R18, and the other end of the eighteenth resistor R18 is connected to 3.3V voltage; the 144th port of the main control chip U5 is connected to one end of the nineteenth resistor R20, and the other end of the nineteenth resistor R20 is connected to 3.3V voltage; the 122nd port of the main control chip U5 is connected to one end of the twentieth resistor R21, and the other end of the twentieth resistor R21 is connected to 3.3V voltage; the 94th port of the main control chip U5 is connected to one end of the twenty-first resistor R23, and the other end of the twenty-first resistor R23 is connected to 3.3V voltage; the 91st port of the main control chip U5 is connected to one end of the twenty-second resistor R24, and the other end of the twenty-second resistor R24 is connected to 3.3V voltage; the 1st port of the voltage conversion chip Q1 is connected to the 70th port of the main control chip U5, and the 2nd port of the voltage conversion chip Q1 is connected to 3.One end of the seventeenth capacitor C6 is connected to the 3V voltage, and the other end of the seventeenth capacitor C6 is grounded; the 3rd port of the voltage conversion chip Q1 is connected to the 71st port of the main control chip U5, the 4th port and the 6th port of the voltage conversion chip Q1 are combined and connected to one end of the inductor L1, and the other end of the inductor L1 is respectively connected to the 1.3V voltage and one end of the eighteenth capacitor C5, and the other end of the eighteenth capacitor C5 and the 5th port of the voltage conversion chip Q1 are combined and grounded.
[0022] The main control module uses the Infineon TC264 chip, which has rich on-chip resources, supports CAN, Lin, FlexRay protocols, provides 5V or 3.3V voltage regulators and a powerful general timer module. The TC264 main control communicates directly with the CAN bus transceiver module, CANFD bus transceiver module, FlexRay bus transceiver module, LIN bus transceiver module, USB communication module, and UART module through pins to obtain, transmit, and process relevant data.
[0023] As Figure 10 shown, the CAN bus transceiver module includes the CAN communication module chip U2. The model of the CAN communication module chip U2 is TJA1051T / 3. The 1st port of the CAN communication module chip U2 is connected to the 11th port of the main control chip U5, and the 4th port of the CAN communication module chip U2 is connected to the 11th port of the main control chip U5. The 2nd port of the CAN communication module chip U2 is respectively combined with one end of the nineteenth capacitor C7 and the twentieth capacitor C8 and then connected to ground; the other ends of the nineteenth capacitor C7 and the twentieth capacitor C8 are combined with the 5th port of the CAN communication module chip U2 and connected to the 3.3V voltage; the 8th port of the CAN communication module chip U2 is respectively combined with one end of the twenty-first capacitor C9 and the twenty-second capacitor C10 and then connected to ground; the other ends of the twenty-first capacitor C9 and the twenty-second capacitor C10 are combined with the 3rd port of the CAN communication module chip U2 and connected to the 5V voltage; the 6th port and the 7th port of the CAN communication module chip U2 are respectively connected to peripherals for communication.
[0024] The CAN bus transceiver module is composed of TJA1051 from NXP, and its communication rate can reach up to 1Mbaud, realizing the connection with the CAN bus network.
[0025] As Figure 11As shown, the LIN bus transceiver module includes a LIN transceiver chip IC1, and the model of the LIN transceiver chip IC1 is TJA1020T_CM,118. The 1st port of the LIN transceiver chip IC1 is respectively connected to one end of the twenty-third resistor R2 and the 4th port of the main control chip U5, and the other end of the twenty-third resistor R2 is connected to the 3V3 voltage; the 2nd port of the LIN transceiver chip IC1 is connected to the 6th port of the main control chip U5; the 3rd port of the LIN transceiver chip IC1 is connected to one end of the twenty-fourth resistor R4, and the other end of the twenty-fourth resistor R4 is respectively connected to one end of the twenty-fifth resistor R3 and the drain of the NMOS Q2. The other end of the twenty-fifth resistor R3 is connected to the 5V voltage, the source of the NMOS Q2 is grounded, and the gate of the NMOS Q2 is connected to the 5th port of the main control chip U5; the 4th port of the LIN transceiver chip IC1 is connected to the 3rd port of the main control chip U5; the 5th port of the LIN transceiver chip IC1 is grounded; the 7th port of the LIN transceiver chip IC1 is connected to the 5V voltage; the 8th port of the LIN transceiver chip IC1 is connected to the 3.3V voltage; the 6th port of the LIN transceiver chip IC1 is connected to the peripheral device for communication.
[0026] The LIN bus transceiver module consists of TJA1020T from NXP Company, meets the LIN specification, and the communication rate can reach 20 kBd to achieve connection with the LIN bus network.
[0027] As Figure 12As shown, the FlexRay bus transceiver module includes the FlexRay communication chip U3, and the model of the FlexRay communication chip U3 is TJA1081BTS,118. The port 2 of the FlexRay communication chip U3 is connected to the port 138 of the main control chip U5. The port 3 of the FlexRay communication chip U3 is connected to the 3.3V voltage. The port 4 of the FlexRay communication chip U3 is connected to the port 134 of the main control chip U5. The port 5 of the FlexRay communication chip U3 is connected to the port 132 of the main control chip U5. The port 6 of the FlexRay communication chip U3 is connected to the port 135 of the main control chip U5. The port 7 of the FlexRay communication chip U3 is connected to the port 128 of the main control chip U5. The port 8 of the FlexRay communication chip U3 is connected to the ports 130 and 139 of the main control chip U5. The port 9 of the FlexRay communication chip U3 is connected to the port 133 of the main control chip U5. The port 10 of the FlexRay communication chip U3 is connected to the port 137 of the main control chip U5. The port 11 of the FlexRay communication chip U3 is connected to the 5V voltage. The port 12 of the FlexRay communication chip U3 is connected to the port 129 of the main control chip U5. The port 13 of the FlexRay communication chip U3 is grounded. The ports 14 and 15 of the FlexRay communication chip U3 are connected to peripherals for communication. The port 16 of the FlexRay communication chip U3 is connected to the 5V voltage.
[0028] The F1exRay bus transceiver module is composed of TJA1081B from NXP Company, meets the F1exRay 3.0 specification, and the communication rate can reach 10Mbit / s to achieve connection with the FlexRay bus network.
[0029] As Figure 13 , Figure 14As shown in the figure, the USB communication interface module includes a USB communication chip U4 and a TYPE-C module J3. The model of the USB communication chip U4 is CH340E, and the model of the TYPE-C module J3 is TYPE-CF-12. The No. 1 port of the USB communication chip U4 is connected to the A6 and B6 ports of the TYPE-C module J3. The No. 2 port of the USB communication chip U4 is connected to the A7 and B7 ports of the TYPE-C module J3. The No. 3 port of the USB communication chip U4 is grounded. The No. 7 port of the USB communication chip U4 is respectively connected to the 5V voltage and one end of the twenty-third capacitor C15. The other end of the twenty-third capacitor C15 is combined with one end of the twenty-fourth capacitor C14 and grounded. The other end of the twenty-third capacitor C15 is connected to the No. 10 port of the USB communication chip U4. The No. 8 port of the USB communication chip U4 is connected to the No. 1 port of the main control chip U5, and the No. 9 port of the USB communication chip U4 is connected to the No. 2 port of the main control chip U5. The No. 0 port and A1 port of the TYPE-C module J3 are combined and grounded. The A4 port of the TYPE-C module J3 is connected to the 5V voltage. The A9 port of the TYPE-C module J3 is connected to the 5V voltage. The A12 port of the TYPE-C module J3 is grounded.
[0030] The USB communication interface module is composed of a CH340N chip and a TYPE-CF-12 module, which meets the bandwidth requirements of the bus network and the power supply requirements of the overall circuit, and realizes communication with the host computer. The UART serial port module realizes USB to serial port through the CH340 chip to meet the debugging requirements.
[0031] As Figure 15 shown, the working process of the present invention: after power-on, receive the setting command and make a judgment. If it is the interconnection of the CAN bus network with the LIN and FlexRay bus networks, the received CAN data frame is converted into LIN and FlexRay data frames and sent to the LIN and FlexRay bus networks. At the same time, the received LIN and FlexRay data frames are converted into CAN data frames and sent to the CAN bus network. If it is to receive CAN data, the CAN frame data is sent to the host computer through the USB. If it is to receive LIN and FlexRay data, the LIN and FlexRay frame data is sent to the host computer through the USB.
[0032] Compared with the prior art, the present invention has the following advantages:
[0033] (1) The terminal adopts a modular design. On the one hand, it is convenient to debug, modify and transplant the program. At the same time, it is also beneficial to maintain the terminal performance and expand and upgrade the functions in the future;
[0034] (2) The main control module uses a TC264 chip, which has rich on-chip resources. Based on it, a CAN bus interface, a LIN bus interface, a FlexRay bus interface, and a USB communication interface are extended. It has low cost and can realize the interconnection of the CAN bus, LIN bus, and FlexRay bus. Moreover, it can transmit the bus network data to the host computer through the USB. The connection between modules is simple and convenient.
Claims
1. A converter for CAN, LIN and FlexRay bus interfaces, comprising a main control module, a CAN bus transceiver module, a LIN bus transceiver module, a FlexRay bus transceiver module, and a USB communication interface module, characterized in that: The main control module is interconnected with the LIN bus transceiver module, the FlexRay bus transceiver module, the CAN bus transceiver module, and the USB communication interface module respectively.
2. A converter for CAN, LIN and Flexray bus interfaces according to claim 1, characterized in that: The main control module comprises a main control chip (U5), a voltage conversion chip (Q1), and a wiring terminal (DM1). The model of the main control chip (U5) is SAK-TC264D-40F200N BC, the model of the voltage conversion chip (Q1) is BSL215CH6327XTSA1, port 42 of the main control chip (U5) is connected to one end of a first resistor (R7), and the other end of the first resistor (R7) is connected to a 3.3V voltage; port 22, port 58, port 79, and port 99 of the main control chip (U5) are respectively connected to one end of a first capacitor (C16), a second capacitor (C17), a third capacitor (C18), and a fourth capacitor (C19). The first capacitor (C16), the second capacitor (C17), and the third capacitor (C19) are connected to one end of a first capacitor (C16), a second capacitor (C17), and a third capacitor (C18). The other ends of the fourth capacitor (C18) and the fourth capacitor (C19) are grounded; the No. 126 port and the No. 83 port of the main control chip (U5) are connected to one end of the fifth capacitor (C20) and the sixth capacitor (C21) respectively, and the other ends of the fifth capacitor (C20) and the sixth capacitor (C21) are grounded; the No. 10 port of the main control chip (U5) is connected to one end of the seventh capacitor (C22), and the other end of the seventh capacitor (C22) is grounded; the No. 44 port of the main control chip (U5) is connected to one end of the second resistor (FB2), and the other end of the second resistor (FB2) is grounded. The main control chip (U5) is connected to a 3.3V voltage; the ports 127 and 136 of the main control chip (U5) are respectively connected to one end of the eighth capacitor (C23) and the ninth capacitor (C24), and the other ends of the eighth capacitor (C23) and the ninth capacitor (C24) are combined and grounded; the ports 23, 59, 78 and 125 of the main control chip (U5) are respectively connected to one end of the tenth capacitor (C25), the eleventh capacitor (C26), the twelfth capacitor (C27) and the thirteenth capacitor (C28), and the tenth capacitor (C25) and the eleventh capacitor (C 26), the other ends of the twelfth capacitor (C27) and the thirteenth capacitor (C28) are connected to ground; wherein, the No. 22 port, No. 58 port, No. 79 port and No. 99 port of the main control chip (U5) are connected to 1.3V voltage; the No. 126 port and No. 83 port of the main control chip (U5) are connected to 3.3V voltage; the No. 10 port of the main control chip (U5) is connected to 1.3V voltage; the No. 127 port, No. 136 port, No. 23 port, No. 59 port, No. 78 port and No. 125 port of the main control chip (U5) are connected to 3.3V voltage.3V voltage; port 81 and port 82 of the main control chip (U5) are respectively connected to port 1 and port 3 of the crystal oscillator (X1), one end of the fourteenth capacitor (C29) and the fifteenth capacitor (C30), the other ends of the fourteenth capacitor (C29) and the fifteenth capacitor (C30) are connected to the crystal oscillator (X1) and then grounded; port 97 of the main control chip (U5) is connected to one end of the third resistor (R9), the other end of the third resistor (R9) is respectively connected to the sixteenth capacitor (C31), the key switch (RST1), and one end of the fourth resistor (R10), the other ends of the sixteenth capacitor (C31) and the key switch (RST1) are combined and grounded, and the other end of the fourth resistor (R10) is connected to the 3.3V voltage; Ports 80 and 145 of the main control chip (U5) are grounded respectively; port 43 of the main control chip (U5) is connected to one end of a fifth resistor (FB1), and the other end of the fifth resistor (FB1) is grounded; port 41 of the main control chip (U5) is connected to one end of a sixth resistor (R8), and the other end of the sixth resistor (R8) is connected to port 43 of the main control chip (U5); port 1 of the wiring terminal (DM1) is connected to a 3.3V voltage and a cathode of a first diode (D2), and an anode of the first diode (D2) and ports 3 and 5 of the wiring terminal (DM1) are combined and grounded; port 7 of the wiring terminal (DM1) is connected to one end of a seventh resistor (R25), and the anode of the seventh resistor (R25) is connected to the ground. The other end is connected to port 118 of the main control chip (U5); port 9 of the wiring terminal (DM1) is connected to one end of the eighth resistor (R26), and the other end of the eighth resistor (R26) is connected to port 119 of the main control chip (U5); ports 2, 4, 6, 8, and 10 of the wiring terminal (DM1) are respectively connected to ports 89, 92, 91, and 97 of the main control chip (U5); one end of the ninth resistor (R12), the tenth resistor (R14), the eleventh resistor (R17), the twelfth resistor (R19), and the thirteenth resistor (R22) are combined and connected to a 3.3V voltage, and the other end of the ninth resistor (R12) is connected to a light emitting diode and then connected to The other ends of the tenth resistor (R14), the eleventh resistor (R17), the twelfth resistor (R19) and the thirteenth resistor (R22) are respectively connected to the light emitting diodes and then respectively connected to the ports 86, 87, 102 and 103 of the main control chip (U5); the port 124 of the main control chip (U5) is connected to one end of the fourteenth resistor (R11), and the other end of the fourteenth resistor (R11) is grounded; the port 123 of the main control chip (U5) is connected to one end of the fifteenth resistor (R13), and the other end of the fifteenth resistor (R13) is grounded; the port 120 of the main control chip (U5) is connected to one end of the sixteenth resistor (R15), and the other end of the sixteenth resistor (R15) is connected to 3.3V voltage; port 121 of the main control chip (U5) is connected to one end of the seventeenth resistor (R16), and the other end of the seventeenth resistor (R16) is connected to the 3.3V voltage; port 143 of the main control chip (U5) is connected to one end of the eighteenth resistor (R18), and the other end of the eighteenth resistor (R18) is connected to the 3.3V voltage; port 144 of the main control chip (U5) is connected to one end of the nineteenth resistor (R20), and the other end of the nineteenth resistor (R20) is connected to the 3.3V voltage; port 122 of the main control chip (U5) is connected to one end of the twentieth resistor (R21), and the other end of the twentieth resistor (R21) is connected to the 3.3V voltage; port 94 of the main control chip (U5) is connected to one end of the twenty-first resistor (R23), and the other end of the twenty-first resistor (R23) is connected to the 3.3V voltage; the main Port 91 of the control chip (U5) is connected to one end of the 22nd resistor (R24), and the other end of the 22nd resistor (R24) is connected to a 3.3V voltage; Port 1 of the voltage conversion chip (Q1) is connected to port 70 of the main control chip (U5), port 2 of the voltage conversion chip (Q1) is respectively connected to a 3.3V voltage and one end of a 17th capacitor (C6), and the other end of the 17th capacitor (C6) is grounded; Port 3 of the voltage conversion chip (Q1) is connected to port 71 of the main control chip (U5), ports 4 and 6 of the voltage conversion chip (Q1) are combined to connect one end of the inductor (L1), and the other end of the inductor (L1) is respectively connected to a 1.3V voltage and one end of an 18th capacitor (C5), and the other end of the 18th capacitor (C5) and port 5 of the voltage conversion chip (Q1) are combined to connect to ground.
3. A converter for CAN, LIN and Flexray bus interfaces according to claim 1, characterized in that: The CAN bus transceiver module comprises a CAN communication module chip (U2), the model of the CAN communication module chip (U2) is TJA1051T / 3, port 1 of the CAN communication module chip (U2) is connected to port 11 of the main control chip (U5), port 4 of the CAN communication module chip (U2) is connected to port 11 of the main control chip (U5), port 2 of the CAN communication module chip (U2) is respectively combined with one end of a nineteenth capacitor (C7) and a twentieth capacitor (C8) and then connected to ground; the nineteenth capacitor (C7) ), the other end of the twentieth capacitor (C8) is combined with port No. 5 of the CAN communication module chip (U2) to connect to a 3.3V voltage; port No. 8 of the CAN communication module chip (U2) is respectively combined with one end of the twenty-first capacitor (C9) and the twenty-second capacitor (C10) and then connected to ground; the other ends of the twenty-first capacitor (C9) and the twenty-second capacitor (C10) are combined with port No. 3 of the CAN communication module chip (U2) to connect to a 5V voltage; port No. 6 and port No. 7 of the CAN communication module chip (U2) are respectively connected to peripherals for communication.
4. A converter for CAN, LIN and Flexray bus interfaces according to claim 1, characterized in that: The LIN bus transceiver module comprises a LIN transceiver chip (IC1), the model of the LIN transceiver chip (IC1) is TJA1020T_CM,118, port 1 of the LIN transceiver chip (IC1) is respectively connected to one end of a twenty-third resistor (R2) and port 4 of a main control chip (U5), and the other end of the twenty-third resistor (R2) is connected to a 3V3 voltage; port 2 of the LIN transceiver chip (IC1) is connected to port 6 of the main control chip (U5); port 3 of the LIN transceiver chip (IC1) is connected to one end of a twenty-fourth resistor (R4), and the other end of the twenty-fourth resistor (R4) is respectively connected to a 3V3 voltage. One end of the twenty-fifth resistor (R3) and the drain of the NMOS (Q2), the other end of the twenty-fifth resistor (R3) are connected to a 5V voltage, the source of the NMOS (Q2) is grounded, and the gate of the NMOS (Q2) is connected to port No. 5 of the main control chip (U5); port No. 4 of the LIN transceiver chip (IC1) is connected to port No. 3 of the main control chip (U5); port No. 5 of the LIN transceiver chip (IC1) is grounded; port No. 7 of the LIN transceiver chip (IC1) is connected to a 5V voltage; port No. 8 of the LIN transceiver chip (IC1) is connected to a 3.3V voltage; port No. 6 of the LIN transceiver chip (IC1) is connected to peripherals for communication.
5. A converter for CAN, LIN and Flexray bus interfaces according to claim 1, characterized in that: The FlexRay bus transceiver module comprises a FlexRay communication chip (U3), the model of the FlexRay communication chip (U3) is TJA1081BTS,118, port 2 of the FlexRay communication chip (U3) is connected to port 138 of the main control chip (U5), port 3 of the FlexRay communication chip (U3) is connected to a 3.3V voltage, port 4 of the FlexRay communication chip (U3) is connected to port 134 of the main control chip (U5), port 5 of the FlexRay communication chip (U3) is connected to port 132 of the main control chip (U5), port 6 of the FlexRay communication chip (U3) is connected to port 135 of the main control chip (U5), port 7 of the FlexRay communication chip (U3) is connected to port 128 of the main control chip (U5), and port 8 of the FlexRay communication chip (U3) is connected to port 129 of the main control chip (U5). No. 130 of the FlexRay communication chip (U3) and No. 139 of the main control chip (U5), No. 9 of the FlexRay communication chip (U3) and No. 133 of the main control chip (U5), No. 10 of the FlexRay communication chip (U3) and No. 137 of the main control chip (U5), No. 11 of the FlexRay communication chip (U3) and No. 5V voltage, No. 12 of the FlexRay communication chip (U3) and No. 129 of the main control chip (U5), No. 13 of the FlexRay communication chip (U3) and grounded, No. 14 and No. 15 of the FlexRay communication chip (U3) and connected to peripherals for communication, and No. 16 of the FlexRay communication chip (U3) and connected to 5V voltage.
6. A converter for CAN, LIN and Flexray bus interfaces according to claim 1, characterized in that: The USB communication interface module comprises a USB communication chip (U4) and a TYPE-C module (J3), the model of the USB communication chip (U4) is CH340E, and the model of the TYPE-C module (J3) is TYPE-CF-12; port 1 of the USB communication chip (U4) is connected to ports A6 and B6 of the TYPE-C module (J3); port 2 of the USB communication chip (U4) is connected to ports A7 and B7 of the TYPE-C module (J3); port 3 of the USB communication chip (U4) is grounded; The No. 7 port of the USB communication chip (U4) is connected to a 5V voltage and one end of the 23rd capacitor (C15), respectively; the other end of the 23rd capacitor (C15) and one end of the 24th capacitor (C14) are combined and grounded; the other end of the 23rd capacitor (C15) is connected to the No. 10 port of the USB communication chip (U4); the No. 8 port of the USB communication chip (U4) is connected to the No. 1 port of the main control chip (U5), and the No. 9 port of the USB communication chip (U4) is connected to the No. 2 port of the main control chip (U5); the No. 0 port and the No. A1 port of the TYPE-C module (J3) are combined and grounded; The A4 port of the TYPE-C module (J3) is connected to a 5V voltage; the A9 port of the TYPE-C module (J3) is connected to a 5V voltage; and the A12 port of the TYPE-C module (J3) is grounded.