CAN communication intelligent control box for vehicle lamp
By designing a CAN communication intelligent control box for car lights, the existing car light control simulation tools are solved, and the cost savings, easy operation and mobile control are achieved.
Patent Information
- Application Number
- CN202411985141.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-05-02
AI Technical Summary
The existing headlight control simulation tools are expensive, complex in operation and do not support mobile control, which limits the penetration rate and ease of use of the R&D department.
A CAN communication intelligent control box for car lights is designed, including power supply module, CAN module, wireless control module, storage module and MCU. It supports mobile control through mobile APP, simplifies operations, and automatically stores and uploads CAN messages.
It reduces the equipment procurement and maintenance costs of the R&D department, improves the convenience and flexibility of headlight control, supports mobile control and data analysis, and is suitable for car company technology exhibitions and other occasions.
Smart Images

Figure CN119922799A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of automobile electronic equipment control, in particular to a CAN communication intelligent control box for vehicle lights. Background Art
[0002] In the current automotive R&D and testing field, the simulation and testing of headlight controllers is a crucial link. However, the widely used headlight control simulation tools in the industry, such as Vector's CANCase / VN16 series hardware with PC-side CANoe Simulation software, are powerful but have many shortcomings.
[0003] A vehicle information system based on Beidou communication is disclosed in the patent document with publication number CN103336487A, which uses Android software system, including: core processing unit, power management unit, CAN bus interface circuit unit, K bus interface circuit unit, Beidou / GPS navigation unit, 3G wireless network module, driving assistance function module, LCD screen control module. The core processing unit is connected with CAN bus interface circuit unit, K bus interface circuit unit, Beidou / GPS navigation communication module, 3G wireless network module, driving assistance function module, LCD screen control module, and touch screen; the LCD display control module is connected with the LCD display; the power management unit is connected with the core processing unit for power supply, and is also connected with the power supply of the above-mentioned other units; the touch screen control module is connected with the touch screen.
[0004] First, from a cost perspective, the combination of Vector CANCase / VN16 hardware and CANoe Simulation software is expensive, which is undoubtedly a considerable expense for many R&D departments. Therefore, the popularity of this tool set in R&D departments is limited to a certain extent, and equipment shortages often occur.
[0005] Secondly, from the perspective of ease of operation, the installation, configuration and use of CANoe software is relatively complex, which is particularly unfriendly to non-technical personnel. This has increased the difficulty and time cost of R&D personnel to a certain extent, especially in occasions such as automotive technology exhibitions or auto shows where a demonstration environment needs to be quickly built. The complexity of CANoe software has undoubtedly become a considerable obstacle.
[0006] Furthermore, CANoe software mainly relies on PC for operation and does not support mobile control. This limitation requires R&D personnel to carry bulky PC equipment when mobile demonstrations or explanations are required, which undoubtedly increases the complexity and inconvenience of demonstrations.
[0007] In view of the above problems, the industry urgently needs a car light controller simulation test tool that is lower in cost, more convenient to operate, and supports mobile control. Summary of the invention
[0008] In view of the defects in the prior art, an object of the present invention is to provide a CAN communication intelligent control box for vehicle lights.
[0009] A CAN communication intelligent control box for a vehicle lamp provided by the present invention comprises: a power supply module, a CAN module, a wireless control module, a storage module and an MCU;
[0010] The MCU is connected to the power supply module, CAN module, wireless control module and storage module respectively. The power supply module provides rated working voltage to the electronic components in the control box; the CAN module receives CAN messages on the CAN bus and forwards them to the MCU, and receives outgoing CAN messages from the MCU and forwards them to the CAN bus; the wireless control module automatically matches and connects through the APP on the mobile phone, receives control commands from the mobile phone and forwards them to the MCU, and receives data information from the MCU and forwards them to the mobile phone; the storage module automatically stores the sent and received messages on the CAN bus in the non-volatile memory; the MCU performs information interaction, information transmission and central logic processing with the power supply module, CAN module, wireless control module and storage module;
[0011] The control box can predefine CAN transceiver messages, read DBC configuration files, and automatically send and receive CAN messages on the CAN bus according to the required CAN baud rate, message cycle, and data format.
[0012] Preferably, the power supply module supports two power supply modes: one mode is to charge directly through a USB interface; the other mode is to power with a built-in rechargeable battery, and the two power supply modes are automatically switched.
[0013] Preferably, the wireless control module includes WIFI, GPS and Bluetooth.
[0014] Preferably, the control box also includes a UART module, which is connected to the MCU. The UART module interacts with the PC host software via USBtoUART to automatically parse the CAN DBC file, load or customize the CAN message, and send and receive the CAN message.
[0015] Preferably, the PC-side host computer software receives and parses the CAN message of the control box and displays it on the page of the host computer, and supports the UDS diagnostic function and the trace display and saving function.
[0016] Preferably, the control box uploads the CAN message Log on the bus to a mobile phone or the cloud through a wireless control module for problem analysis.
[0017] Preferably, the mobile phone APP includes a car light control module, a status indication module and a Trace module; the car light control module performs light switch control and car light animation switch control; the status indication module checks the current switch status of the car lights, the animation status of the car lights, and the current power status information of the control box; the Trace module checks the sending and receiving records of messages on the CAN bus and performs upload and download operations.
[0018] Preferably, in the wireless control module: the mobile phone App packages the lighting operation command into a data stream according to a predefined data protocol format, and forwards it from the mobile phone to the CAN communication intelligent control box through the wireless control module. The corresponding receiving interrupt function in the CAN communication intelligent control box software will be triggered, and the receiving interrupt data buffer area receives the data stream; the MCU parses the data stream according to the predefined data protocol format, obtains the corresponding lighting operation command, updates the corresponding CAN message, and sends it to the CAN module, and the CAN module sends it to the CAN bus, thereby controlling the vehicle light ECU.
[0019] Preferably, in the UART module: the interactive information sent by the host computer software to the CAN intelligent communication control box is packaged into a data stream according to a predefined data protocol format, and is sent to the CAN intelligent communication control box by driving the USBtoUART sending function, and the corresponding UART receive interrupt function in the CAN intelligent communication control box software will be triggered, and the UART receive interrupt data buffer area receives the data stream; the MCU parses the data stream according to the predefined data protocol format, obtains the corresponding operation command, and performs subsequent operations.
[0020] Preferably, the MCU packages the interactive information sent by the CAN intelligent communication control box to the host computer software into a data stream according to a predefined data protocol format, fills it into the UART send interrupt data buffer, and triggers the UART send interrupt; sends the data stream to the host computer PC-side data receiving buffer by driving USBtoUART; the host computer software reads the data stream through the read function of USBtoUART, and then parses it according to the predefined data protocol format and calls the corresponding module for subsequent processing.
[0021] Compared with the prior art, the present invention has the following beneficial effects:
[0022] 1. The CAN communication intelligent control box for vehicle lights of the present invention can replace expensive Vector CAN equipment and its supporting software, such as Vector CANCase / VN16 and PC CANoe Simulation, greatly saving the equipment procurement and maintenance costs of the R&D department; this has significant economic value, especially for vehicle companies with limited budgets or those who want to optimize cost expenditures;
[0023] 2. The intelligent control box of the present invention provides an economical and powerful alternative solution, which effectively alleviates this problem and enables more R&D teams to have tools for car light control and simulation testing; it realizes mobile control operation of car lights; users can easily control the light on and off of the car lights through the mobile phone APP, and the operation interface is friendly and simple, which greatly improves the convenience and flexibility of control; this is particularly suitable for occasions such as automobile enterprise technology exhibitions or auto shows, and can achieve fast and accurate lighting operation without complex equipment environment construction;
[0024] 3. The present invention has the function of automatically storing the received and sent messages on the CAN bus in a non-volatile memory, and can upload them to a mobile phone or the cloud through a wireless control module; this feature enables R&D personnel to easily obtain and analyze CAN message data, providing powerful data support for subsequent troubleshooting and performance optimization;
[0025] 4. The present invention has its own charging module, which only leads to the CAN bus (CANH, CANL), and has a simple structure and is compact and light; this not only reduces the size and weight of the device, but also improves its portability, allowing R&D personnel to control and test the headlights anytime and anywhere. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0027] Figure 1 This is a schematic diagram of the control box and the mobile phone APP of the present invention;
[0028] Figure 2 It is a schematic diagram of the control box and the PC host computer of the present invention;
[0029] Figure 3 Schematic diagram of Vector VN1630 and PC-side Canoe Simulation of the present invention. DETAILED DESCRIPTION
[0030] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
[0031] Embodiment 1:
[0032] Reference Figure 1 and Figure 2 According to the present invention, a CAN communication intelligent control box for a vehicle lamp comprises: a power supply module, a CAN module, a wireless control module, a storage module and an MCU; the MCU is respectively connected to the power supply module, the CAN module, the wireless control module and the storage module, and the power supply module provides a rated working voltage to the electronic components in the control box; the CAN module receives CAN messages on the CAN bus and forwards them to the MCU, and receives outgoing CAN messages from the MCU and forwards them to the CAN bus; the wireless control module automatically matches and connects through an APP on a mobile phone, receives control commands from the mobile phone and forwards them to the MCU, and receives data information from the MCU and forwards them to the mobile phone; the storage module automatically stores the transceived messages on the CAN bus in a non-volatile memory; the MCU performs information interaction, information transmission and central logic processing with the power supply module, the CAN module, the wireless control module and the storage module; the control box can pre-define CAN transceiver messages, read DBC configuration files, and automatically send and receive CAN messages on the CAN bus according to the required CAN baud rate, message cycle and data format.
[0033] The power supply module supports two power supply modes: one is to charge directly through the USB interface; the other is to use the built-in rechargeable battery, and the two power supply modes are automatically switched. The control module includes WIFI, GPS and Bluetooth.
[0034] The control box also includes a UART module, which is connected to the MCU. The UART module interacts with the PC host software through USBtoUART to automatically parse the CAN DBC file, load or customize the CAN message, and send and receive the CAN message.
[0035] The PC host software receives and analyzes the CAN messages of the control box and displays them on the host page, while supporting the UDS diagnostic function and trace display and save function. The control box uploads the CAN message log on the bus to the mobile phone or cloud through the wireless control module for problem analysis.
[0036] The mobile phone APP includes a car light control module, a status indication module and a Trace module; the car light control module performs light switch control and car light animation switch control; the status indication module checks the current switch status of the car lights, the animation status of the car lights, and the current power status information of the control box; the Trace module checks the sending and receiving records of messages on the CAN bus and performs upload and download operations.
[0037] In the wireless control module: the mobile phone App packages the lighting operation command into a data stream according to the pre-defined data protocol format, and forwards it from the mobile phone to the CAN communication intelligent control box through the wireless control module. The corresponding receiving interrupt function in the CAN communication intelligent control box software will be triggered, and the receiving interrupt data buffer will receive the data stream; the MCU parses the data stream according to the pre-defined data protocol format, obtains the corresponding lighting operation command, updates the corresponding CAN message, and sends it to the CAN module. The CAN module sends it to the CAN bus to control the vehicle light ECU.
[0038] In the UART module: the interactive information sent by the host computer software to the CAN intelligent communication control box is packaged into a data stream according to the pre-defined data protocol format, and sent to the CAN intelligent communication control box by driving the USBtoUART sending function. The corresponding UART receiving interrupt function in the CAN intelligent communication control box software will be triggered, and the UART receiving interrupt data buffer will receive the data stream; the MCU parses the data stream according to the pre-defined data protocol format, obtains the corresponding operation command, and performs subsequent operations. The MCU packages the interactive information sent by the CAN intelligent communication control box to the host computer software into a data stream according to the pre-defined data protocol format, fills it into the UART sending interrupt data buffer, and triggers the UART sending interrupt; the data stream is sent to the host computer PC data receiving buffer by driving USBtoUART; the host computer software reads the data stream through the USBtoUART reading function, and then parses it according to the pre-defined data protocol format and calls the corresponding module for subsequent processing.
[0039] Embodiment 2:
[0040] The CAN communication control box of the present invention can replace the expensive Vector CAN equipment (existing technology), greatly saving the equipment cost of the R&D department, and also solving the problem of equipment shortage in the R&D department. The CAN communication intelligent control box can pre-define CAN transceiver messages, read configuration files such as DBC, and automatically send and receive CAN messages on the CAN bus according to the required CAN baud rate, message cycle, data format, etc. The CAN communication intelligent control box has a wireless control module (Bluetooth / WIFI / GPS, etc.), which can be automatically matched and connected through the APP on the mobile phone. The light button on the mobile phone APP interface can control the light on and off of various lights. The interface operation is friendly and simple, which is convenient for mobile control and explanation and display. The CAN communication intelligent control box can automatically store the CAN message Log on the bus in a non-volatile memory, and can be uploaded to the mobile phone or the cloud through the wireless control module for subsequent problem analysis. The communication control box only leads to the power supply line (it can also be used for charging, eliminating the power supply line), CANH, CANL, the equipment is simple to operate, low cost, and easy to carry.
[0041] A CAN communication intelligent control box for vehicle lights, comprising:
[0042] Power supply module: This CAN communication intelligent control box is equipped with a power supply module, which is used to provide rated working voltage to various electronic components in the control box to ensure the normal and stable operation of the electronic components. The power supply module supports two modes, one is to charge directly through the USB interface; the other is to use the built-in rechargeable battery for power supply. The two modes are automatically switched without manual control.
[0043] CAN module: This CAN communication intelligent control box is equipped with a CAN module, which is responsible for receiving CAN messages on the CAN bus and forwarding them to the MCU for subsequent processing. On the other hand, it receives outgoing CAN messages from the MCU and forwards them to the CAN bus.
[0044] Wireless control module (WIFI / GPS / Bluetooth): This CAN communication intelligent control box is equipped with a wireless control module, which can be automatically matched and connected through the mobile phone APP. On the one hand, the wireless control module receives control commands (such as lighting operations) from the mobile phone, automatically parses them, and forwards them to the MCU through UART (or IIC or SPI, etc.) for subsequent processing by the MCU. On the other hand, it receives data information from the MCU (such as the feedback status of the lighting operation), automatically parses them and forwards them to the mobile phone for use by the mobile phone App. The mobile phone App packages the lighting operation command into a data stream according to the pre-defined data protocol format, and forwards it from the mobile phone to the CAN communication intelligent control box through the wireless control module. The corresponding receiving interrupt function in the control box software will be triggered, and the receiving interrupt data buffer will receive the data stream. The MCU parses the data stream according to the pre-defined data protocol format, obtains the corresponding lighting operation command, updates the corresponding CAN message, and sends it to the CAN module, which sends it to the CAN bus to control the car light ECU.
[0045] Storage module: This CAN communication intelligent control box is equipped with a storage module, which can automatically store the sent and received messages on the CAN bus in non-volatile memory for subsequent reading and problem analysis.
[0046] UART module (SPI / IIC): This CAN communication intelligent control box is equipped with a UART module, which can interact with the PC-side host software through USBtoUART. On the one hand, the host software can automatically parse the CAN DBC file, load the corresponding CAN message or custom CAN message, and send it to the UART module through USBtoUART. The MCU forwards the host information received by the UART module to the CAN bus through the CAN module, thereby achieving the purpose of controlling the vehicle-mounted ECU. On the other hand, the MCU forwards the CAN bus message information received by the CAN module to the PC-side host software through the UART module for reading and analysis, such as parsing the CAN message into the status information of the car light and displaying it, Trace chart analysis and storage, etc. The interactive information sent by the host software to the CAN intelligent communication control box is packaged into a data stream according to the pre-defined data protocol format, and is sent to the CAN intelligent communication control box by driving the sending function of USBtoUART. The corresponding UART receive interrupt function in the control box software will be triggered, and the UART receive interrupt data buffer will receive the data stream. The MCU parses the data stream according to the predefined data protocol format, obtains the corresponding operation command, and performs subsequent operations.
[0047] In the opposite direction, the MCU packages the interactive information sent by the CAN intelligent communication control box to the host computer software into a data stream according to the pre-defined data protocol format, fills it into the UART send interrupt data buffer, and triggers the UART send interrupt. The data stream is sent to the host PC data receiving buffer by driving USBtoUART. The host computer software reads the data stream through the read function of USBtoUART, and then parses it according to the pre-defined data protocol format and calls the corresponding module for subsequent processing.
[0048] MCU: The central control unit of this CAN communication intelligent control box is responsible for information interaction with other modules, information transmission and central logic processing, etc.
[0049] Mobile APP: This CAN communication intelligent control box can realize mobile control of car lights with the corresponding mobile APP. The car light control module includes functions such as light switch control and car light animation switch control. The status indication module can view the current switch status of the car lights, the animation status of the car lights, the current power of the control box and other status information. The Trace module can be used to view the sending and receiving records of messages on the CAN bus, upload and download operations. Other modules include historical switch times of car lights, DTC records and other information.
[0050] PC APP: This CAN communication intelligent control box is equipped with the corresponding PC host software. On the one hand, the host software can automatically parse the CAN DBC file, load the corresponding CAN message or modify the CAN message by custom, and send it to the CAN control box through USBtoUART (USBtoSPI / USBtoIIC). On the other hand, it can receive and parse the CAN message of the control box and display it on the corresponding page of the host computer. At the same time, the host computer supports UDS diagnostic function and trace display and saving functions.
[0051] The CAN communication intelligent control box of the present invention integrates a wireless control module, and can intelligently control the headlights through a mobile phone App, realizes the mobile control operation of the headlights, broadens the control mode of the headlights, and facilitates the explanation, control and display at various exhibitions. The CAN communication intelligent control box integrates a UART (SPI / IIC, etc.) interface, which can be connected to the PC-side host software. The host software can automatically parse the CAN DBC file, load the corresponding CAN message or custom CAN message, and send it to the CAN control box via USBtoUART (USBtoSPI / USBtoIIC). The CAN control box forwards the received CAN message to the CAN bus as required, thereby achieving the purpose of controlling the vehicle-mounted ECU. The outgoing message of the ECU can also be received and parsed in the opposite direction, and the CANLog is stored. The R&D department can use it instead of the expensive Vector CAN equipment, which solves the problem of equipment shortage in the R&D department to a certain extent. The CAN communication intelligent control box can automatically store the CAN message Log on the bus in a non-volatile memory, and can be uploaded to the mobile phone or the cloud through the wireless control module for subsequent problem analysis. The CAN communication intelligent control box comes with a charging module and only leads to the CAN bus (CANH, CANL). It has a simple structure, is small and light, and is easy to carry.
[0052] Those skilled in the art may understand this embodiment as a more specific description of Embodiment 1.
[0053] Those skilled in the art know that, in addition to realizing the system and its various devices, modules, and units provided by the present invention in a purely computer-readable program code, it is entirely possible to realize the same functions in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system and its various devices, modules, and units provided by the present invention can be considered as a hardware component, and the devices, modules, and units included therein for realizing various functions can also be regarded as structures within the hardware component; the devices, modules, and units for realizing various functions can also be regarded as both software modules for realizing the method and structures within the hardware component.
[0054] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.
Claims
1. A CAN communication intelligent control box for vehicle lights, characterized in that: include: Power supply module, CAN module, wireless control module, storage module and MCU; The MCU is connected to the power supply module, CAN module, wireless control module and storage module respectively. The power supply module provides rated working voltage to the electronic components in the control box; the CAN module receives CAN messages on the CAN bus and forwards them to the MCU, and receives outgoing CAN messages from the MCU and forwards them to the CAN bus; the wireless control module automatically matches and connects through the APP on the mobile phone, receives control commands from the mobile phone and forwards them to the MCU, and receives data information from the MCU and forwards them to the mobile phone; the storage module automatically stores the sent and received messages on the CAN bus in the non-volatile memory; the MCU performs information interaction, information transmission and central logic processing with the power supply module, CAN module, wireless control module and storage module; The control box can predefine CAN transceiver messages, read DBC configuration files, and automatically send and receive CAN messages on the CAN bus according to the required CAN baud rate, message cycle, and data format.
2. The CAN communication intelligent control box for vehicle lights according to claim 1, characterized in that: The power supply module supports two power supply modes: one mode is to charge directly through the USB interface; the other mode is to supply power through the built-in rechargeable battery, and the two power supply modes are automatically switched.
3. The CAN communication intelligent control box for vehicle lights according to claim 1, characterized in that: The wireless control module includes WIFI, GPS and Bluetooth.
4. The CAN communication intelligent control box for vehicle lights according to claim 1, characterized in that: The control box also includes a UART module, which is connected to the MCU. The UART module interacts with the PC host software via USBtoUART to automatically parse the CAN DBC file, load or customize the CAN message, and send and receive the CAN message.
5. The CAN communication intelligent control box for vehicle lights according to claim 4, characterized in that: The PC-side host computer software receives and parses the CAN message of the control box and displays it on the page of the host computer, and supports the UDS diagnosis function and the trace display and saving function.
6. The CAN communication intelligent control box for vehicle lights according to claim 1, characterized in that: The control box uploads the CAN message Log on the bus to the mobile phone or the cloud through the wireless control module for problem analysis.
7. The CAN communication intelligent control box for vehicle lights according to claim 1, characterized in that: The mobile phone APP includes a car light control module, a status indication module and a Trace module; the car light control module performs light switch control and car light animation switch control; the status indication module checks the current switch status of the car lights, the animation status of the car lights, and the current power status information of the control box; the Trace module checks the sending and receiving records of messages on the CAN bus and performs upload and download operations.
8. The CAN communication intelligent control box for vehicle lights according to claim 1, characterized in that: In the wireless control module: the mobile phone App packages the lighting operation command into a data stream according to a predefined data protocol format, and forwards it from the mobile phone to the CAN communication intelligent control box through the wireless control module. The corresponding receiving interrupt function in the CAN communication intelligent control box software will be triggered, and the receiving interrupt data buffer area receives the data stream; the MCU parses the data stream according to the predefined data protocol format, obtains the corresponding lighting operation command, updates the corresponding CAN message, and sends it to the CAN module. The CAN module sends it to the CAN bus, thereby controlling the vehicle light ECU.
9. The CAN communication intelligent control box for vehicle lights according to claim 4, characterized in that: In the UART module: the interactive information sent by the host computer software to the CAN intelligent communication control box is packaged into a data stream according to a predefined data protocol format, and is sent to the CAN intelligent communication control box by driving the USBtoUART sending function. The corresponding UART receive interrupt function in the CAN intelligent communication control box software will be triggered, and the UART receive interrupt data buffer area receives the data stream; the MCU parses the data stream according to the predefined data protocol format, obtains the corresponding operation command, and performs subsequent operations.
10. The CAN communication intelligent control box for vehicle lights according to claim 9, characterized in that: The MCU packages the interactive information sent by the CAN intelligent communication control box to the host computer software into a data stream according to a predefined data protocol format, fills it into the UART send interrupt data buffer, and triggers the UART send interrupt; sends the data stream to the host PC data receiving buffer by driving USBtoUART; the host computer software reads the data stream through the read function of USBtoUART, and then parses it according to the predefined data protocol format and calls the corresponding module for subsequent processing.
Citation Information
Patent Citations
Vehicle-mounted information system based on Beidou communication
CN103336487A