Testing device for controlling automobile lamp circuit board based on CAN and LIN bus

By integrating CAN and LIN bus control into the test device, efficient testing of vehicle lighting circuit boards is achieved, solving the problem of insufficient compatibility of existing test devices and improving testing efficiency and portability.

CN223565823UActive Publication Date: 2025-11-18SUZHOU YAOXIN ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202422784419.2
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-11-15
Publication Date
2025-11-18
Estimated Expiration
2034-11-15

AI Technical Summary

Technical Problem

The lack of existing automotive lighting testing devices that can simultaneously support CAN and LIN buses results in low testing efficiency.

Method used

A test device integrating a CAN transceiver unit, a LIN transceiver unit, a main control unit, a power supply unit, and a communication interface unit was designed. The device enables flexible switching between CAN and LIN buses through a control button group and a rocker switch, supporting the testing of vehicle headlight ECUs with different communication methods.

Benefits of technology

It improves testing efficiency, enhances the compatibility and portability of the device, is easy to operate, and has good expandability and portability, making it suitable for testing vehicle headlight ECUs with different communication types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223565823U_ABST
    Figure CN223565823U_ABST
Patent Text Reader

Abstract

The utility model discloses a testing device for controlling a vehicle lamp circuit board based on CAN and LIN buses, comprising a CAN transmit-receive unit, an LIN transmit-receive unit, a main control unit, a communication interface unit, a power supply unit and a control button group, the control button group is used for switching the communication between the CAN transmit-receive unit and the main control unit and between the LIN transmit-receive unit and the main control unit, such design can provide more flexible control options, and the testing device is more convenient to use. And a user can conveniently switch according to different test requirements. And the external interruption of the microcontroller is triggered by using the key to select a CAN or LIN communication mode. The software polls the states of the keys, the master control responds to the pressing of different keys to select a control message to be sent, and the control message is sent to the vehicle lamp ECU through a CAN or LIN bus, so that the lighting of the vehicle lamp circuit board is realized. And when the ship-shaped switch is switched, the switch state is polled and read, and the main control unit switches the message groups, so that two groups of different messages are sent.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The utility model relates to detection equipment technical field, concretely relates to a test device of CAN and LIN bus control car light circuit board. BACKGROUND

[0002] In prior art, with the development of automobile electronic technology, the control of car light is more and more complex, and the traditional electrical control has been gradually replaced by intelligent bus control.CAN (controller area network) and LIN (local interconnect network) are commonly used communication buses in modern automobile electronic system, which are used to realize the intelligent control of car light and other equipment, and the two kinds of buses need different test devices when testing, and now a test device capable of supporting CAN and LIN bus is needed to improve test efficiency. SUMMARY

[0003] In order to overcome the above-mentioned shortcomings, the utility model discloses a test device of CAN and LIN bus control car light circuit board to solve the problems raised in the above background technology.

[0004] In order to achieve the above purpose, the utility model adopts the technical scheme of a test device of CAN and LIN bus control car light circuit board, which comprises:

[0005] The CAN transceiving unit comprises a CAN transceiver and is used for physical layer communication of the CAN bus.

[0006] The LIN transceiving unit comprises a LIN transceiver and is used for physical layer communication of the LIN bus.

[0007] The main control unit comprises a single-chip microcomputer chip, the single-chip microcomputer chip comprises CAN communication pins and LIN communication pins, and is used for corresponding communication connection with the CAN transceiver and the LIN transceiver.

[0008] The power supply unit is used for providing the working voltage required by the system.

[0009] The communication interface unit comprises a switching chip, the switching chip is in communication connection with the single-chip microcomputer chip and the ECU respectively, and is used for debugging and log recording of the single-chip microcomputer chip.

[0010] The control key group is connected with the single-chip microcomputer chip and the ECU respectively, and is used for switching the communication between the CAN transceiving unit, the LIN transceiving unit and the main control unit.

[0011] Further, the test device further comprises a boat-shaped switch, and the boat-shaped switch is arranged between the control key group and the single-chip microcomputer chip.

[0012] Further, the control button group includes 10 control buttons corresponding to the GPIO interface of the single-chip microcomputer chip, wherein the 10 control buttons include one control button for selecting a CAN communication mode, one control button for selecting a LIN communication mode, and eight control buttons for sending different pre-set control messages, so as to realize switching control of different message groups in two communication modes.

[0013] Further, the adapter chip is CH340G or CH340N, and is compatible with the UART to USB Type-C interface connected to the ECU, and the adapter chip communicates with the single-chip microcomputer chip through the UART interface.

[0014] Further, the power supply unit includes a DC / DC converter, and the DC / DC converter is XLSEMIXL1509-5.0E1, so as to support two power supply modes of 12V and 5V.

[0015] Further, the single-chip microcomputer chip is STM32F103CBT6, the CAN transceiver is TJA1050, and the LIN transceiver is TJA1020.

[0016] Further, the single-chip microcomputer chip further includes a reserved interface, and the reserved interface is used for debugging and SPI external communication.

[0017] Further, the test device further includes a power indicator and a communication indicator, and the power indicator and the communication indicator are connected with the single-chip microcomputer chip, so as to display corresponding states.

[0018] Compared with the prior art, the test device for the CAN and LIN bus control vehicle lamp circuit board has the following advantages and beneficial effects:

[0019] (1) Strong compatibility: simultaneously supporting CAN and LIN buses, and being suitable for vehicle lamp ECU tests of different communication types.

[0020] (2) Simple operation: the vehicle lamp circuit board can be controlled through simple operations of the keys and the switching switch.

[0021] (3) Good portability: the 3D printed shell protects the equipment and improves portability.

[0022] (4) Good expansibility: the software design adopts modular programming, so as to facilitate subsequent function expansion and maintenance. DETAILED DESCRIPTION

[0023] Figure 1The utility model discloses a kind of circuit connection schematic diagram of test device for vehicle lamp circuit board based on CAN and LIN bus control one embodiment of the utility model;

[0024] Figure 2 The utility model discloses a kind of circuit structure schematic diagram of control button group part of test device for vehicle lamp circuit board based on CAN and LIN bus control one embodiment of the utility model;

[0025] Figure 3 The utility model discloses a kind of circuit structure schematic diagram of serial port conversion part of test device for vehicle lamp circuit board based on CAN and LIN bus control one embodiment of the utility model;

[0026] Figure 4 The utility model discloses a kind of circuit structure schematic diagram of power supply part of test device for vehicle lamp circuit board based on CAN and LIN bus control one embodiment of the utility model. DETAILED DESCRIPTION

[0027] The preferred embodiments of the utility model are described in detail below in conjunction with the drawings, so that the advantages and characteristics of the utility model can be more easily understood by those skilled in the art, so that the protection scope of the utility model can be more clearly and explicitly defined.

[0028] Reference Figure 1 And Figure 2 , Figure 1 It shows that the utility model embodiment provides a kind of circuit connection schematic diagram of test device for vehicle lamp circuit board based on CAN and LIN bus control; Figure 2 It shows that the utility model embodiment provides a kind of circuit structure schematic diagram of test device for vehicle lamp circuit board based on CAN and LIN bus control.

[0029] As Figure 1 And Figure 2As shown, the technical scheme provided by the application is a test device for controlling a vehicle lamp circuit board based on CAN and LIN buses, which comprises a CAN transceiving unit, a LIN transceiving unit, a main control unit, a power supply unit, a communication interface unit and a control button group. The CAN transceiving unit comprises a CAN transceiver for physical layer communication of the CAN bus. The LIN transceiving unit comprises a LIN transceiver for physical layer communication of the LIN bus. The main control unit comprises a single-chip microcomputer chip comprising CAN communication pins and LIN communication pins for corresponding communication connection with the CAN transceiver and the LIN transceiver. The power supply unit is used to provide the working voltage required by the system. The communication interface unit comprises a switching chip in communication connection with the single-chip microcomputer chip and an ECU for debugging and log recording of the single-chip microcomputer chip. The control button group is connected with the single-chip microcomputer chip and the ECU for switching the communication between the CAN transceiving unit and the LIN transceiving unit and the main control unit.

[0030] The test device for controlling a vehicle lamp circuit board based on CAN and LIN buses provided by the application integrates multiple functional modules such as the CAN transceiving unit, the LIN transceiving unit and the main control unit. This high-integration design can reduce the number of external connections and components, improve the reliability and stability of the system. The control button group is used to switch the communication between the CAN transceiving unit and the LIN transceiving unit and the main control unit. This design can provide more flexible control options and facilitate users to switch according to different test requirements. The key triggers the external interrupt of the microcontroller to select the CAN or LIN communication mode. The software polls the key state, and the main control responds to the pressing of different keys to select the control message to be sent, which is sent to the vehicle lamp ECU through the CAN or LIN bus to realize the lighting of the vehicle lamp circuit board. When the boat-shaped switch is switched, the switch state is polled, and the main control unit switches the message group to realize the sending of two different message groups. The UART interface is used to communicate with the computer to support firmware upgrade, debugging and log recording functions, which is convenient for development and maintenance.

[0031] In some embodiments, with reference to Figure 1 and Figure 2 , the control button group comprises 10 control buttons connected to the GPIO interface of the single-chip microcomputer chip. Among the 10 control buttons, there are 1 control button for selecting the CAN communication mode, 1 control button for selecting the LIN communication mode and 8 control buttons for sending different pre-set control messages, which are used to realize the switching control of different message groups in two communication modes.

[0032] Exemplarily, 10 control buttons correspond to the GPIO interface connected to the MCU: 2 control buttons are connected to the PA0 and PA1 pins of the MCU for selecting the CAN or LIN communication mode, and 8 control buttons are connected to the PA2, PA3, PA4, PA5, PA6, PA7, PB0 and PB1 pins of the MCU respectively, and the key triggering function is realized by software polling mode. The MCU monitors the level change of each GPIO, and the software of the MCU responds when the level of the GPIO is changed by the key pressing. Among them, 2 control buttons select the CAN or LIN communication mode, and 8 control buttons correspond to different pre-set control messages for sending, which are used to realize the control of the vehicle lamp circuit board with different functions. For example, connect the device to the vehicle lamp control ECU, press i0 to select the CAN communication mode after the device is powered on, and then press the control button i1, the PA2 pin of the MCU becomes low level, and the MCU detects it and sends a group of CAN messages to turn on the high beam of the vehicle, and the corresponding lamp of the high beam function of the vehicle lamp circuit board is turned on.

[0033] In some embodiments, with reference to Figure 1 and Figure 2 , the test device further comprises a boat-shaped switch, which is arranged between the control button group and the single-chip microcomputer chip.

[0034] Exemplarily, the boat-shaped switch SW12 is connected to the main control unit, and the switch state is read through the PB2 pin to realize the switching control of different message groups.

[0035] With reference to Figure 3 , Figure 3 a circuit structure schematic diagram of a serial port conversion part in a test device for controlling a vehicle lamp circuit board based on CAN and LIN bus is shown.

[0036] In some embodiments, with reference to Figures 1 to 3 , the model of the adapter chip is one of CH340G or CH340N, and the UART to USB Type-C interface compatible with the ECU is connected to the adapter chip, and the adapter chip communicates with the single-chip microcomputer chip through the UART interface.

[0037] Exemplarily, the CH340G and CH340N chips support full-speed USB device interface, are compatible with USB V2.0, can communicate with existing USB devices and systems, do not need additional adapters or converters to connect with the ECU, and communicate with the single-chip microcomputer chip through the UART interface, which simplifies the circuit design and integration process, and reduces the development difficulty and cost.

[0038] With reference to Figure 4 , Figure 4The utility model provides a kind of circuit structure schematic diagram of power supply part in the test device of CAN and LIN bus control car light circuit board shown in the utility model.

[0039] In some embodiments, referring to Figure 1 And Figure 4 The power supply unit includes a DC / DC converter, which is a XLSEMIXL1509-5.0E1 model, used to support both 12V and 5V power supply modes.

[0040] Exemplarily, XL1509-5.0E1 has a wide input voltage range of 4.5V to 40V, improving the applicability and flexibility of the power supply unit. The power module supports both 12V and 5V power supply modes, providing stable voltage required by the master control unit and each peripheral device through the DC-DC converter, where only the CAN communication interface can be used under 5V power supply. The 12V input is first stepped down to 5V, and then to 3.3V and 1.8V respectively. The 5V input of the TYPEC interface is also stepped down to 3.3V.

[0041] In some embodiments, referring to Figure 1 The single-chip microcomputer chip is a STM32F103CBT6 model, the CAN transceiver is a TJA1050 model, and the LIN transceiver is a TJA1020 model.

[0042] Exemplarily, STM32F103CBT6 is a 32-bit microcontroller based on ARM Cortex-M3 core, containing ADC, USART, SPI, I2C, CAN and other commonly used peripheral interfaces, meeting various application requirements. INA219 current sensor has a shunt and power monitor with I²C compatible interface, monitors shunt voltage drop and bus power voltage, and has programmable conversion time and filtering function. VD6283TX light sensor has advanced light flicker extraction capability, with a separate ADC and readout circuit for each color channel, so light measurement is both fast and accurate.

[0043] In some embodiments, the single-chip microcomputer chip further includes a reserved interface for debugging and SPI external communication.

[0044] Exemplarily, STM32F103CBT6 is equipped with various debugging and testing interfaces, such as SWD and JTAG interface, facilitating developers to debug and test, and the required debugging tools are relatively inexpensive, reducing development cost.

[0045] In some embodiments, the test device further includes a power indicator and a communication indicator, which are connected to the single-chip microcomputer chip respectively for corresponding state display.

[0046] Exemplarily, the power indicator light and the communication indicator light provide intuitive state feedback, so that the user can quickly identify the power state and communication state of the device, improving the user experience. When the power indicator light is not on, it can be quickly judged whether the system power supply is abnormal or the power indicator light itself has a fault, facilitating fault diagnosis. The communication indicator light can display the communication state, such as communication success, data transmission completion, etc., which helps the user to understand the working state of the device, especially in the process of debugging and maintenance.

[0047] The test device for controlling the vehicle lamp circuit board based on CAN and LIN bus provided by the present application has the following test process:

[0048] After the device is powered on, the CAN and LIN communication modes are switched by selecting the keys as needed.

[0049] The message group to be tested is selected by the ship-shaped switch, group 1 (CAN) or group 2 (LIN).

[0050] By pressing different control keys, the device will send corresponding control messages, communicate with the vehicle lamp ECU through CAN or LIN bus, and control the lighting of the vehicle lamp circuit board.

[0051] By connecting a computer through the USB interface, the running state of the device can be monitored in real time, and logs can be recorded for analysis.

[0052] The above embodiments are only for illustrating the technical concept and characteristics of the present application, and the purpose is to enable those skilled in the art to understand the content of the present application and implement it, and cannot limit the protection scope of the present application. Any equivalent changes or modifications made in accordance with the spirit and essence of the present application shall be covered within the protection scope of the present application.

Claims

1. A testing device for a vehicle lighting circuit board controlled by CAN and LIN buses, characterized in that, include: A CAN transceiver unit, including a CAN transceiver, is used for physical layer communication on the CAN bus. The LIN transceiver unit, including a LIN transceiver, is used for physical layer communication on the LIN bus. The main control unit includes a microcontroller chip, which includes CAN communication pins and LIN communication pins for corresponding communication connections with the CAN transceiver and the LIN transceiver. The power supply unit is used to provide the operating voltage required by the system; The communication interface unit includes a converter chip, which is connected to the microcontroller chip and the ECU respectively, and is used to debug and log the microcontroller chip. The control button group is connected to the microcontroller chip and the ECU respectively, and is used to switch the communication between the CAN transceiver unit and the LIN transceiver unit and the main control unit.

2. The testing apparatus according to claim 1, characterized in that, The control button group includes 10 control buttons, which are connected to the GPIO interface of the microcontroller chip. Among the 10 control buttons, there is one button to select the CAN communication mode, one button to select the LIN communication mode, and eight buttons to send different preset control messages, which are used to switch between different message groups of the two communication modes.

3. The testing apparatus according to claim 1, characterized in that, It also includes a rocker switch, which is located between the control button group and the microcontroller chip.

4. The testing apparatus according to claim 1, characterized in that, The adapter chip is either CH340G or CH340N and is compatible with a UART to USB Type-C interface connected to the ECU. The adapter chip communicates with the microcontroller chip via the UART interface.

5. The testing apparatus according to claim 1, characterized in that, The power supply unit includes a DC / DC converter, model XLSEMIXL1509-5.0E1, which supports both 12V and 5V power supply modes.

6. The testing apparatus according to claim 1, characterized in that, The microcontroller chip is model STM32F103CBT6, the CAN transceiver is model TJA1050, and the LIN transceiver is model TJA1020.

7. The testing apparatus according to claim 1, characterized in that, The microcontroller chip also includes a reserved interface, which is used for debugging and external SPI communication.

8. The testing apparatus according to claim 1, characterized in that, It also includes a power indicator and a communication indicator, which are respectively connected to the microcontroller chip for corresponding status display.