Real-time light show control system and method based on CANFD bus
By using the CANFD bus and CAN FD protocol in the vehicle light show system, efficient data transmission and dynamic lighting effect control are achieved, solving the problems of low bandwidth, poor control and cumbersome updates in the existing system, and improving the customization and real-timeness of the light show.
Patent Information
- Application Number
- CN202510405033.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-02
- Publication Date
- 2025-05-16
AI Technical Summary
Due to the low CAN communication bandwidth, the existing vehicle light show system cannot achieve large-scale data transmission, resulting in poor lighting effects control and cumbersome updates, which cannot meet the real-time needs of users.
The real-time light show control system based on the CANFD bus is adopted to efficiently transmit data through the CAN FD protocol to realize dynamic effect control of large-scale LED lights. The system includes the central control end of the vehicle body, a central control unit and multiple LED light modules, communicate through the CAN FD bus, generate and send light show control signals, and adjust the lighting effect.
It improves the customization, real-time and data transmission efficiency of vehicle light show effects, and can flexibly support different types of car lights and lighting effects to meet different number of LED light control needs.
Smart Images

Figure CN120018358A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a real-time light show control system and method based on a CANFD bus, belonging to the field of vehicle-mounted lighting systems. Background Art
[0002] At present, the existing car light controller and the car body are mainly connected through CAN communication. Due to the low bandwidth of CAN communication, it is unable to transmit large-scale data bytes, so it can only receive simple switch light signal instructions. The existing car light show is mainly a local light show, which mainly transmits the animation stored in the controller to the light board through the UART protocol after receiving the switch command of the car body. This solution has the following three shortcomings: 1. Pre-stored animations can be realized through image data or algorithms. The former sacrifices memory space, while the latter sacrifices running time, which may cause jamming and asynchronism. However, existing headlight controllers all use MCU for logic control, which has fewer resources.
[0003] 2. It is rather cumbersome to update the local light show pre-existing in the headlight controller. Due to the low CAN communication bandwidth, it takes a long time to implement an update. The update method is not flexible enough to quickly meet the user's timely needs.
[0004] 3. Once the local light show plan is confirmed, the grayscale and control plan for the pixels are determined, but the control of the lighting effects is not precise enough. Summary of the invention
[0005] The technical problem to be solved by the present invention is to overcome the shortcomings of the prior art and provide a real-time light show control system and method based on the CANFD bus, which performs efficient data transmission through the CAN FD protocol to realize dynamic effect control of large-scale LED lights, and can effectively improve the customizability, real-time performance and data transmission efficiency of vehicle light show effects.
[0006] In order to solve the above technical problems, the technical solution of the present invention is: On one hand, the present invention provides a real-time light show control system based on a CANFD bus, which includes a vehicle body central control terminal, a central control unit and a plurality of LED light modules, wherein the vehicle body central control terminal communicates with the central control unit via CAN FD, and the central control unit communicates with the plurality of LED light modules via the CAN FD bus; The vehicle body central control terminal is used to provide a vehicle light UI interface for users to customize the light show effects; The central control unit is used to generate and send a light show control signal, and transmit the light show control signal via the CAN FD communication protocol; Each of the LED light modules receives and parses the light show control signal through the CAN FD protocol, and then adjusts the light effect.
[0007] Furthermore, each frame of the light show control signal includes the following fields: Pixel start index, used to identify the order of data frames; Pixel start index, used to identify the index of the first pixel light controlled by the current data frame; Data length, used to indicate the length of data transmitted in the current frame; The total number of data fragments, used to indicate the total number of frames of the current lighting control effect data; Data fragments are used to store specific lighting control data. Each byte represents the grayscale value of a pixel.
[0008] Furthermore, the lighting effects include gradient effect, flickering effect and breathing light effect.
[0009] Furthermore, the LED lamp module includes an LED control unit, an LED driving circuit and an LED lamp board, the LED control unit is connected to the input end of the LED driving circuit, and the output end of the LED driving circuit is connected to the LED lamp board.
[0010] Another aspect of the present invention provides a control method for a real-time light show control system based on a CANFD bus, which comprises the following steps: Step S1, the vehicle body central control terminal performs initialization control; Step S2: The central control unit generates and sends a light show control signal, splits the light show control signal into multiple data frames, and then transmits the multiple data frames through the CAN FD bus; Step S3, the LED lamp module receives the data frame, and parses the data frame according to the pixel start index and the data length, extracts the corresponding grayscale value from each data frame, and controls the brightness of the corresponding LED lamp; Step S4, the LED lamp module checks the sequence and integrity of the data frames according to the pixel start index and the total number of data segments, and if a missing frame or a misplaced frame is found, requests to retransmit the missing frame; Step S5: After the LED light module verifies a complete frame of data, it adjusts the light brightness according to the analyzed grayscale value and controls the light effect according to the set light effect to complete a dynamic light show.
[0011] Furthermore, it is characterized in that in step S1, initialization control specifically includes the following steps: The specific parameters of the light show, including the type of light effect, light color, and light brightness, are set through the car light UI interface of the vehicle body central control terminal, and the central control unit generates a corresponding gray value table according to the specific parameters.
[0012] Further, in step S2, the central control unit generates and sends a light show control signal, splits the light show control signal into multiple data frames, and then transmits the multiple data frames through the CAN FD bus, specifically including the following steps: The central control unit generates and sends a light show control signal. Since each data frame of the CAN FD protocol can only transmit a maximum of 64 bytes, when the amount of data controlled by the light show control signal exceeds 64 bytes, the light show control signal is split into multiple data frames for transmission through the CAN FD bus until all data frames are transmitted.
[0013] Furthermore, in step S5, the light brightness is adjusted according to the analyzed grayscale value, which specifically includes the following steps: The central control unit generates a corresponding grayscale value according to the preset lighting effect and transmits it to the LED lamp module through a data frame; the brightness of each LED lamp is represented by a 1-byte grayscale value, and the grayscale value range is 0 to 255, where 0 represents the lowest brightness and 255 represents the highest brightness; The LED lamp module adjusts the brightness of the LED lamp according to the analyzed grayscale value.
[0014] Further, in step S5, control is performed according to the set lighting effect, which specifically includes the following steps: When a gradient effect is required, the central control unit dynamically adjusts the grayscale value between multiple data frames to achieve continuous brightness changes; the order in which the data frames are sent is controlled by the pixel start index field, and the LED light module adjusts the brightness one by one according to the order to form a gradient effect; When a flickering effect is required, the central control unit periodically switches the grayscale value between 0 and 255 and controls the flickering of multiple LED lights through multi-frame data transmission; When a breathing light effect is required, the central control unit increases or decreases the grayscale value to change the brightness from darkest to brightest and then to darkest, so that the light changes in a breathing rhythm.
[0015] By adopting the above technical solution, the present invention has the following beneficial effects: 1. The present invention realizes efficient data transmission of real-time lighting effects through large-load transmission of the CAN FD protocol.
[0016] 2. The present invention can adapt to the control requirements of different numbers of LED lights, flexibly support different types of lights and lighting effects, and can be widely used in vehicle appearance design, intelligent lighting interaction, and personalized display scenarios for car owners.
[0017] 3. The present invention ensures the integrity and correctness of data transmission through the serial number and data verification mechanism. Especially in the current automotive field, the data communication solution for precise control of vehicle light shows can effectively improve the customizability, real-time performance and data transmission efficiency of vehicle lighting effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a principle block diagram of the real-time light show control system based on CANFD bus of the present invention; Figure 2 It is a flow chart of a control method of a real-time light show control system based on a CANFD bus of the present invention; Figure 3 This is a diagram showing the gradual brightening effect of the LED lamp module of the present invention. DETAILED DESCRIPTION
[0019] In order to make the contents of the present invention more clearly understood, the present invention is further described in detail below based on specific embodiments in conjunction with the accompanying drawings.
[0020] Embodiment 1 like Figure 1 As shown, this embodiment provides a real-time light show control system based on a CANFD bus, which includes a vehicle body central control terminal, a central control unit and multiple LED light modules. The vehicle body central control terminal communicates with the central control unit via CAN FD, and the central control unit communicates with the multiple LED light modules via the CAN FD bus.
[0021] The vehicle body central control terminal is used to provide a car light UI interface for users to customize light show effects, including gradient effects, flashing effects, and breathing light effects. The vehicle body central control terminal provides users with a car light UI interface, including all the lights and signal lights on the vehicle. Users can customize the required animation effects based on the UI interface and send it to the central control unit via CANFD.
[0022] The central control unit is used to generate and send light show control signals, and transmit the light show control signals through the CAN FD communication protocol.
[0023] Each LED light module contains an LED control unit, an LED drive circuit and an LED light board. Each LED light module receives and parses the light show control signal through the CAN FD protocol, and then adjusts the lighting effect.
[0024] Each frame of the light show control signal in this embodiment includes the following fields: Pixel start index Sequence Number (1 byte) is used to identify the order of data frames. Through this field, the receiving end can accurately reorganize the order of data frames to ensure the correctness of the lighting effect display.
[0025] PixelStart (2 bytes) is used to identify the index of the first pixel light controlled by the current data frame. Since light shows usually need to control multiple LED lights, each data frame may only control a part of the lights, so PixelStart is used as a starting position indication field to help the receiving end determine the light area controlled by the frame.
[0026] Data length DataLength (1 byte) is used to indicate the length of data transmitted in the current frame, usually the number of pixels controlled by the current frame. Each pixel controls one byte, indicating the brightness of the pixel (grayscale value 0-255).
[0027] The total number of data fragments FragmentSum (1 byte) is used to indicate the total number of frames of the current lighting control effect data. In the calculation of the sender, the total number of data fragments FragmentSum enables the receiver to determine whether all data frames have been successfully received to avoid frame loss.
[0028] Data_Fragment (59 bytes) is used to store specific lighting control data. Each byte represents the grayscale value of a pixel (0-255). In each data frame, the grayscale values of 59 pixels are controlled. Multiple data frames together complete the control of the entire light show.
[0029] Embodiment 2 like Figure 2 As shown, this embodiment provides a control method for a real-time light show control system based on a CANFD bus, which includes the following steps: Step S1, the vehicle body central control terminal performs initialization control. Specifically, the specific parameters of the light show are set through the vehicle light UI interface of the vehicle body central control terminal, including the type of light effect (such as flashing, gradient, breathing light, etc.), light color, and light brightness. The central control unit generates a corresponding gray value table according to the specific parameters.
[0030] Step S2, the central control unit generates and sends a light show control signal, splits the light show control signal into multiple data frames, and then transmits the multiple data frames through the CAN FD bus; since the CAN FD protocol can only transmit a maximum of 64 bytes per data frame, when the amount of data controlled by the light show control signal exceeds 64 bytes, it is necessary to split the light show control signal into multiple data frames for transmission. For example, if 500 LED lights need to be controlled, it is split into 10 data frames, then each data frame can control 59 LED lights until all data frames are transmitted.
[0031] Step S3: The LED lamp module receives the data frame, and parses the data frame according to the pixel start index PixelStart and the data length DataLength, extracts the corresponding grayscale value from each data frame, and controls the brightness of the corresponding LED lamp.
[0032] Step S4: The LED lamp module checks the sequence and integrity of the data frames according to the pixel start index Sequence Number and the total number of data fragments FragmentSum. If a missing frame or a misplaced frame is found, the LED lamp module requests to retransmit the lost frame.
[0033] Step S5, after the LED light module verifies a complete frame of data, it adjusts the light brightness according to the analyzed grayscale value, displays according to the designed light effect, and completes the dynamic light show through high-frequency updates and precise grayscale value control.
[0034] Among them, in step S5, the light brightness is adjusted according to the analyzed grayscale value, which specifically includes the following steps: The central control unit generates corresponding grayscale values according to the preset lighting effects and transmits them to the LED light module through data frames; the brightness of each LED light is represented by a 1-byte grayscale value, and the grayscale value range is 0 to 255, where 0 represents the lowest brightness and 255 represents the highest brightness.
[0035] The LED lamp module adjusts the brightness of the LED lamp according to the analyzed grayscale value.
[0036] Among them, in step S5, control is performed according to the set lighting effect, which specifically includes the following steps: When a gradient effect is required, the central control unit dynamically adjusts the grayscale value between multiple data frames to achieve continuous brightness changes; the order in which the data frames are sent is controlled by the pixel start index Sequence Number field, and the LED light module adjusts the brightness one by one according to the order to form a gradient effect, such as Figure 3 The picture shows the gradual brightening effect.
[0037] When a flashing effect is required, the central control unit quickly switches the grayscale value between 0 and 255 periodically and controls the flashing of multiple LED lights through multi-frame data transmission.
[0038] When a breathing light effect needs to be achieved, the central control unit slowly increases or decreases the grayscale value, changing the brightness from darkest to brightest and then back to darkest, so that the light changes in a rhythm similar to human breathing.
[0039] Each lighting effect is adjusted through different control strategies, and the specific details can be customized according to the vehicle type and lighting requirements.
[0040] The specific embodiments described above further illustrate the technical problems, technical solutions and beneficial effects solved by the present invention. It should be understood that the above are only specific embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A real-time light show control system based on CANFD bus, characterized by: It includes a vehicle body central control terminal, a central control unit and a plurality of LED light modules, wherein the vehicle body central control terminal communicates with the central control unit via CAN FD, and the central control unit communicates with the plurality of LED light modules via a CAN FD bus; The vehicle body central control terminal is used to provide a vehicle light UI interface for users to customize the light show effects; The central control unit is used to generate and send a light show control signal, and transmit the light show control signal via the CAN FD communication protocol; Each of the LED light modules receives and parses the light show control signal through the CAN FD protocol, and then adjusts the light effect.
2. The real-time light show control system based on CANFD bus according to claim 1 is characterized in that: Each frame of the light show control signal contains the following fields: Pixel start index, used to identify the order of data frames; Pixel start index, used to identify the index of the first pixel light controlled by the current data frame; Data length, used to indicate the length of data transmitted in the current frame; The total number of data fragments, used to indicate the total number of frames of the current lighting control effect data; Data fragments are used to store specific lighting control data. Each byte represents the grayscale value of a pixel.
3. The real-time light show control system based on CANFD bus according to claim 1 is characterized in that: The lighting effects include gradient effect, flashing effect and breathing light effect.
4. The real-time light show control system based on CANFD bus according to claim 1 is characterized in that: The LED lamp module comprises an LED control unit, an LED driving circuit and an LED lamp board. The LED control unit is connected to the input end of the LED driving circuit, and the output end of the LED driving circuit is connected to the LED lamp board.
5. A control method for a real-time light show control system based on a CANFD bus as claimed in any one of claims 1 to 4, characterized in that: It includes the following steps: Step S1, the vehicle body central control terminal performs initialization control; Step S2: The central control unit generates and sends a light show control signal, splits the light show control signal into multiple data frames, and then transmits the multiple data frames through the CAN FD bus; Step S3, the LED lamp module receives the data frame, and parses the data frame according to the pixel start index and the data length, extracts the corresponding grayscale value from each data frame, and controls the brightness of the corresponding LED lamp; Step S4, the LED lamp module checks the sequence and integrity of the data frames according to the pixel start index and the total number of data segments, and if a missing frame or a misplaced frame is found, requests to retransmit the missing frame; Step S5: After the LED light module verifies a complete frame of data, it adjusts the light brightness according to the analyzed grayscale value and controls the light effect according to the set light effect to complete a dynamic light show.
6. The control method of the real-time light show control system based on CANFD bus according to claim 5 is characterized in that: In step S1, initialization control specifically includes the following steps: The specific parameters of the light show, including the type of light effect, light color, and light brightness, are set through the car light UI interface of the vehicle body central control terminal, and the central control unit generates a corresponding gray value table according to the specific parameters.
7. The control method of the real-time light show control system based on CANFD bus according to claim 5 is characterized in that: In step S2, the central control unit generates and sends a light show control signal, splits the light show control signal into multiple data frames, and then transmits the multiple data frames through the CAN FD bus, specifically including the following steps: The central control unit generates and sends a light show control signal. Since each data frame of the CAN FD protocol can only transmit a maximum of 64 bytes, when the amount of data controlled by the light show control signal exceeds 64 bytes, the light show control signal is split into multiple data frames for transmission through the CAN FD bus until all data frames are transmitted.
8. The control method of the real-time light show control system based on CANFD bus according to claim 5 is characterized in that: In step S5, the light brightness is adjusted according to the analyzed grayscale value, which specifically includes the following steps: The central control unit generates a corresponding grayscale value according to the preset lighting effect and transmits it to the LED lamp module through a data frame; the brightness of each LED lamp is represented by a 1-byte grayscale value, and the grayscale value range is 0 to 255, where 0 represents the lowest brightness and 255 represents the highest brightness; The LED lamp module adjusts the brightness of the LED lamp according to the analyzed grayscale value.
9. The control method of the real-time light show control system based on CANFD bus according to claim 5, characterized in that: In step S5, control is performed according to the set lighting effect, which specifically includes the following steps: When a gradient effect is required, the central control unit dynamically adjusts the grayscale value between multiple data frames to achieve continuous brightness changes; the order in which the data frames are sent is controlled by the pixel start index field, and the LED light module adjusts the brightness one by one according to the order to form a gradient effect; When a flickering effect is required, the central control unit periodically switches the grayscale value between 0 and 255 and controls the flickering of multiple LED lights through multi-frame data transmission; When a breathing light effect is required, the central control unit increases or decreases the grayscale value to change the brightness from darkest to brightest and then to darkest, so that the light changes in a breathing rhythm.