Code conversion tool design method for parameter configuration table of platform-based vehicle lamp control system
By designing a platform-based vehicle lighting control system parameter configuration table and conversion tool, the problem of cumbersome conversion of vehicle lighting controller parameter configuration tables was solved, enabling rapid adaptation to lighting fixtures from different vehicle models and manufacturers, improving the system's versatility and compatibility, and reducing development and debugging costs.
Patent Information
- Application Number
- CN202511067124.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-31
- Publication Date
- 2025-11-14
AI Technical Summary
In existing technologies, converting the parameter configuration table of a vehicle lighting controller into code is a cumbersome and error-prone process, resulting in low efficiency and making it unsuitable for platform-based development.
The design of a platform-based vehicle lighting control system parameter configuration table involves partitioning the PFlash space of the vehicle lighting controller, designing functional modules, defining parameters, and constructing relationships. A conversion tool is then used to generate .c and hex format code, enabling rapid adaptation to lighting fixtures from different manufacturers and vehicle models.
It improves the system's versatility and compatibility, reduces customized development costs, enhances scalability, and saves development time and debugging costs.
Smart Images

Figure CN120950073A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a design method for a conversion code tool for a platform-based vehicle lighting control system parameter configuration table, belonging to the field of vehicle lighting control technology. Background Technology
[0002] Currently, with the intelligent and diversified development of the automotive industry, vehicle lighting systems are also gradually developing towards personalization, functionality, and intelligence. To meet the diverse needs of vehicle lighting and models, OEMs and lighting controller manufacturers have reached a consensus to develop platform-based controllers, meaning that the same lighting controller can be configured with different types of lights.
[0003] In existing technologies, automotive lighting controller manufacturers have designed parameter configuration tables. Through a unified parameter configuration table, universal configuration and dynamic adjustment of automotive lights from different manufacturers and models can be achieved. However, the traditional method requires manually converting the parameter configuration table into code, which is cumbersome, error-prone, and inefficient, making it unsuitable for platform-based development. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to overcome the shortcomings of the prior art and provide a design method for a conversion code tool for a platform-based vehicle lighting control system parameter configuration table, which reduces the cost of customized development, improves the versatility and compatibility of the system, enhances the scalability of the system, saves development time and effort, and reduces development and debugging costs.
[0005] To solve the above-mentioned technical problems, the technical solution of the present invention is as follows: This invention provides a method for designing a conversion code tool for a platform-based vehicle lighting control system parameter configuration table, which includes the following steps: Step S1: Divide the PFlash space in the vehicle light controller; Step S2: Based on the vehicle lighting function, design a platform parameter configuration table, in which information on the vehicle lighting system function configuration module is filled in; Step S3: Allocate PFlash addresses for the vehicle lighting system function configuration module; Step S4: Define the parameters for the functional data in the vehicle lighting system function configuration module; Step S5: Construct the relationship between the parameter definitions of the vehicle lighting system function configuration module, and create a vehicle lighting parameter conversion tool based on the relationship between the parameter definitions and the PFlash address of the vehicle lighting system function configuration module. Step S6: Verify the headlight parameter conversion tool. If the verification is successful, proceed to step S7. If the verification fails, proceed to step S4 to continue execution. Step S7: Perform a vehicle headlight function test.
[0006] Furthermore, in step S1, the PFlash space in the vehicle light controller is divided, specifically including the following steps: The PFlash space in the vehicle lighting controller is divided into a bootloader area, a vehicle lighting application area, and a platform parameter table data area.
[0007] Furthermore, the vehicle lighting functions in step S2 include basic lighting functions, auxiliary functions, advanced functions, and dynamic lighting functions.
[0008] Furthermore, the vehicle lighting system function configuration module in step S2 includes a power supply channel and lamp mapping management module, an LED control matrix chip configuration module, a channel current and voltage configuration module, a BIN resistor and channel current configuration module, an NTC configuration module, a temperature drop current curve management module, a fan control module, an adaptive lighting configuration module, a welcome and farewell lighting effect configuration module, and a proximity lighting and safe return lighting effect configuration module.
[0009] Furthermore, the adaptive lighting configuration module includes an AFS configuration module, an ADB configuration module, a DBL configuration module, and an ALS configuration module.
[0010] Furthermore, the parameter definition in step S4 includes parameter naming, parameter type configuration, and parameter permission configuration.
[0011] Furthermore, the grille data generated by the headlight parameter conversion tool in step S5 is in .c and hex formats.
[0012] Furthermore, in step S6, the vehicle headlight parameter conversion tool is verified, which specifically includes the following steps: Step S61: Use the vehicle lighting parameter conversion tool to convert the functional data of the vehicle lighting system function configuration module in the platform parameter configuration table into .c format code; Step S62: Integrate the .c format code of the platform parameter configuration table and the .c format code of the vehicle lighting application together; Step S63: Verify the integrated vehicle lighting application.
[0013] Furthermore, in step S63, the integrated vehicle lighting application is verified, specifically including the following steps: Based on the vehicle lighting functions in the vehicle lighting application, the function data of the vehicle lighting system function configuration module in the platform parameter configuration table is called.
[0014] Furthermore, in step S7, the vehicle headlight function test is performed, which specifically includes the following steps: Step S71: Use the vehicle lighting parameter conversion tool to convert the functional data of the vehicle lighting system function configuration module in the platform parameter configuration table into hex format code; Step S72: Burn the hex format code of the platform parameter configuration table and the hex format code of the vehicle light application into the vehicle light controller; Step S73: Control the vehicle lights through the vehicle light controller to perform a vehicle light function test.
[0015] By adopting the above technical solution, the present invention has the following beneficial effects: Based on vehicle lighting functions, a platform parameter configuration table is designed to support different vehicle models and different types of lights, reducing the cost of customized development and improving the system's versatility and compatibility. The platform parameter configuration table can also be expanded to support new light types or functions, avoiding the need to redesign the entire control system and enhancing system scalability. Using a vehicle lighting parameter conversion tool, the platform parameter configuration table can be quickly converted into the required DATA program, enabling rapid adaptation to lights from different manufacturers and automatically loading appropriate configuration files based on different vehicle models, saving development time and effort. Burning the hex format code of the platform parameter configuration table and the hex format code of the vehicle lighting application into the vehicle lighting controller avoids the tedious process of needing to debug each light individually, reducing development and debugging costs. Attached Figure Description
[0016] Figure 1 A detailed flowchart illustrating the design method for the conversion code tool of the parameter configuration table of the platform-based vehicle lighting control system of the present invention; Figure 2 A flowchart illustrating the design method for a conversion code tool for the parameter configuration table of the platform-based vehicle lighting control system of the present invention; Figure 3 This is the platform parameter configuration table for the present invention; Figure 4 This is a parameter naming diagram of the platform parameter configuration table of the present invention; Figure 5 This is a parameter type configuration diagram of the platform parameter configuration table of the present invention; Figure 6 This is a diagram showing the parameter permission configuration of the platform parameter configuration table of the present invention; Figure 7 This is the interface of the vehicle headlight parameter conversion tool of the present invention; Figure 8 This is the .c format code generated by the vehicle headlight parameter conversion tool of the present invention; Figure 9 This is the hex format code generated by the vehicle headlight parameter conversion tool of the present invention. Detailed Implementation
[0017] To make the content of this invention easier to understand, the invention will be further described in detail below with reference to specific embodiments and accompanying drawings.
[0018] like Figure 1 As shown, this embodiment provides a method for designing a conversion code tool for a platform-based vehicle lighting control system parameter configuration table. This method can design a platform parameter configuration table based on different vehicle lighting types and customer needs. Then, the corresponding code is automatically generated using a vehicle lighting parameter conversion tool. Integrating the code generated by the conversion tool with the code from the vehicle lighting application program achieves a platform-based controller. Through a unified platform parameter configuration table, it enables universal configuration and dynamic adjustment for vehicle lighting and vehicles from different manufacturers and models, including vehicles requiring highly personalized lighting effects and flexible lighting control.
[0019] like Figure 1 As shown, the design method for the conversion code tool of the platform-based vehicle lighting control system parameter configuration table in this embodiment specifically includes the following steps: Step S1, as follows Figure 2 As shown, the PFlash space in the vehicle lighting controller is divided into a bootloader area (FBL), a lighting application area (APP), and a platform parameter table data area (DATA). The lighting application area stores the lighting application code, including basic lighting applications, advanced function applications, dynamic lighting applications, and auxiliary function applications. The platform parameter table data area stores the platform parameter table data, which includes a parameter table header information area, an index area, and a main data area. The header information area has addresses from 0x1E4000 to 0x1E40FF, the index area has addresses from 0x1E4100 to 0x1E4107, and the main data area has addresses from 0x1E4108 to 0x1F1FFF.
[0020] Step S2: Based on the vehicle lighting functions, design a platform parameter configuration table. This table contains information about the vehicle lighting system's functional configuration modules. The platform parameter configuration table supports different vehicle models and different types of lights, reducing the cost of customized development and improving the system's versatility and compatibility. Furthermore, the platform parameter configuration table can be expanded to support new vehicle lighting types or functions, avoiding the need to redesign the entire control system and enhancing its scalability.
[0021] Based on system requirements, vehicle lighting functions are divided into basic lighting functions, auxiliary functions, advanced functions, and dynamic lighting functions. Basic lighting functions include low beam headlights, high beam headlights, position lights, daytime running lights, and turn signals; auxiliary functions include NTC, BIN splitting, derating (reducing power), and fan control; advanced functions include AFS, ADB, DBL, and ALS; and dynamic lighting functions include welcome / farewell lighting effects, approach lighting effects, and safe return lighting effects.
[0022] The vehicle lighting system configuration module includes a power supply channel and lamp mapping management module, an LED control matrix chip configuration module, a channel current and voltage configuration module, a BIN resistor and channel current configuration module, an NTC configuration module, a temperature drop current curve management module, a fan control module, an adaptive lighting configuration module, a welcome and farewell lighting effect configuration module, and an approach lighting and safe return lighting effect configuration module.
[0023] The power supply channel and lamp mapping management module establishes the correspondence between lamps and power supply channels, ensuring that each lamp can be accurately controlled; the LED control matrix chip configuration module controls the on / off state of LEDs in the LED dot matrix module to achieve specific display effects; the channel current and voltage configuration module provides the required current and voltage; the sub-bin resistor and channel current configuration module establishes the correspondence between sub-bin resistors and channel currents; the NTC configuration module detects lamp temperature; the temperature drop current curve management module manages current based on lamp temperature; the fan control module increases lamp heat dissipation; the adaptive lighting configuration module includes AFS, ADB, DBL, and ALS configuration modules, which intelligently adjust the lighting direction and range of the headlights based on vehicle status information to improve driving safety and comfort; the welcome and farewell lighting effect configuration module provides welcome and farewell lighting effects; and the approach lighting and safe return lighting effect configuration module displays corresponding lighting effects when the user approaches the vehicle or returns home safely.
[0024] like Figure 3 The image shows an example of a platform parameter configuration table. The first column of the table represents different headlight functions, the Value column represents the configuration value, and each Channel column represents a different output channel. These are the specific physical interfaces on the headlight controller hardware responsible for executing the output of that function, mapping the headlight functions. For example, Channel 1 represents the driver circuit channel connecting the low beam headlights, Channel 2 represents the driver circuit channel connecting the daytime running lights, and Channel 3 represents the driver circuit channel connecting the position lights.
[0025] Step S3: Allocate PFlash addresses for the vehicle lighting system function configuration module.
[0026] Assign PFlash addresses 0x1E4180-0x1F1FFF to the vehicle lighting system function configuration module. Specifically, the power supply channel and lamp mapping management module are located at addresses 0x1E4180-0x1E4580, with a storage capacity of 1KB; the LED control matrix chip configuration module is located at addresses 0x1E4581-0x1E5980, with a storage capacity of 5KB; the channel current and voltage configuration module is located at addresses 0x1E5981-0x1E5D80, with a storage capacity of 1KB; the BIN resistor and channel current configuration module is located at addresses 0x1E5D81-0x1E6580, with a storage capacity of 2KB; and the NTC configuration module is located at addresses 0x1E6581-0x1EA580, with a storage capacity of 10KB. The storage capacity is 1KB; the address of the temperature cooling curve management module is 0x1EA581-0x1EA980, and the storage capacity is 1KB; the address of the fan control module is 0x1EA981-0x1EAD80, and the storage capacity is 1KB; the address of the adaptive lighting configuration module is 0x1EAD81-0x1EC180, and the storage capacity is 5KB; the address of the welcome and farewell lighting effect configuration module is 0x1EC181-0x1F0180, and the storage capacity is 10KB; the address of the proximity lighting and safe home lighting effect configuration module is 0x1F0181-0x1F1FFF, and the storage capacity is 7KB.
[0027] Step S4: Define the parameters for the functional data in the vehicle lighting system function configuration module. The parameter definition includes parameter naming, parameter type configuration, and parameter permission configuration.
[0028] like Figure 4 As shown, the parameters of each headlight function data are named in the Value column. For example, the low beam headlight function is named "ParaMgr_Low_Beam_Flat_W".
[0029] like Figure 5 As shown, the parameter type configuration for each headlight function data is set in the Value column. For example, the parameter type for the low beam headlight function is set to "Factor=1;Offset=0;Size=2", which means the precision is 1, the deviation is 0, and the size is 2 bytes.
[0030] like Figure 6 As shown, the parameter permissions for each headlight function are configured in the Value column. For example, the parameter permissions for the low beam headlight function are set to "". You can read it by typing "".
[0031] Step S5: Construct the relationships between the parameter definitions of the vehicle lighting system function configuration module, and create a vehicle lighting parameter conversion tool based on the relationships between the parameter definitions and the PFlash address of the vehicle lighting system function configuration module. This vehicle lighting parameter conversion tool can quickly convert the platform parameter configuration table into the required DATA program, enabling rapid adaptation to lighting fixtures from different manufacturers and automatically loading appropriate configuration files according to different vehicle models, saving development time and effort.
[0032] When building the relationships and creating the headlight parameter conversion tool, configuration is performed in both C++ and Vbf formats. The C++ configuration code includes the following parts: parameter permissions for headlight function data, parameter types, parameter names, and configuration values under the current parameter definition. For example, the C++ configuration code is "const uint16ParaMgr_Low_Beam_Flat_W = 1", where const represents read-only, uint16 represents 2 bytes, ParaMgr_Low_Beam_Flat_W represents low beam headlights, and 1 indicates low beam headlights are on. The Vbf configuration code includes the following parts: the PFlash address of the headlight system function configuration module and the configuration values under the current address.
[0033] like Figure 7 The image shows the interface of the headlight parameter conversion tool. Click "Select File" to choose the platform parameter configuration table file that has been designed and filled out. Use the designed and filled-out platform parameter configuration table as the input data for parameter conversion. Click "Output Location" to select the file location where the output data will be stored, and then click "Start Processing" to generate two types of grille data with one click: .c format and hex format. The generated .c format code is shown below. Figure 8 As shown, the generated hex format code is as follows: Figure 9 As shown.
[0034] Step S6: Verify the headlight parameter conversion tool. If the verification is successful, proceed to step S7. If the verification fails, proceed to step S4 to continue execution.
[0035] Specifically, verifying the vehicle headlight parameter conversion tool includes the following steps: Step S61: Use the vehicle lighting parameter conversion tool to convert the functional data of the vehicle lighting system function configuration module in the platform parameter configuration table into .c format code. The .c format code is used for direct debugging by software engineers. Step S62: Integrate the .c format code of the platform parameter configuration table and the .c format code of the vehicle lighting application together; Step S63: Verify the integrated vehicle lighting application. That is, based on the vehicle lighting functions in the vehicle lighting application, call the function data of the vehicle lighting system function configuration module in the platform parameter configuration table, and determine whether the parameter call is correct. If yes, the vehicle lighting parameter conversion tool is verified as qualified; otherwise, the vehicle lighting parameter conversion tool is verified as unqualified.
[0036] The relationship between vehicle lighting functions and vehicle lighting system function configuration modules is as follows: Based on basic lighting functions, the power supply channel and lamp mapping management module, LED control matrix chip configuration module, and channel current and voltage configuration module are called; based on auxiliary functions, the BIN resistor and channel current configuration module, NTC configuration module, temperature current reduction curve management module, and fan control module are called; based on advanced functions, the adaptive lighting configuration module is called; based on dynamic lighting functions, the welcome and farewell lighting effect configuration module, proximity lighting, and safe home lighting effect configuration module are called.
[0037] Step S7: Perform a vehicle headlight function test, which includes the following steps: Step S71: Use the vehicle lighting parameter conversion tool to convert the functional data of the vehicle lighting system function configuration module in the platform parameter configuration table into hex format code. The hex format code is used for direct burning of the vehicle lighting controller. Step S72: Burn the hex format code of the platform parameter configuration table and the hex format code of the vehicle light application into the vehicle light controller, avoiding the tedious process of needing to debug each light individually, and reducing development and debugging costs. Step S73: Control the headlights through the headlight controller to perform headlight function test, and determine whether the actual headlight effect and channel current are consistent with the data in the platform parameter configuration table. If they are consistent, the headlight function test is qualified; if they are inconsistent, the headlight function test is unqualified.
[0038] The working principle of this invention is as follows: Based on the vehicle lighting function, a platform parameter configuration table is designed, which contains information about the vehicle lighting system function configuration modules. PFlash addresses are allocated for these modules. Parameters are defined for the functional data within these modules. The relationships between the various parameter definitions are established, and a vehicle lighting parameter conversion tool is created based on these relationships and the PFlash addresses of the modules. The tool is then validated. After successful validation, the vehicle lighting function is tested.
[0039] By designing a platform parameter configuration table, different vehicle models and types of lights can be supported, reducing the cost of customized development and improving the system's versatility and compatibility. The platform parameter configuration table can also be expanded to support new light types or functions, avoiding the need to redesign the entire control system and enhancing its scalability. Using a light parameter conversion tool, the platform parameter configuration table can be quickly converted into the required DATA program, enabling rapid adaptation to lights from different manufacturers and automatically loading appropriate configuration files based on different vehicle models, saving development time and effort. Burning the hex format code of the platform parameter configuration table and the hex format code of the light application into the light controller avoids the tedious process of needing to debug each light individually, reducing development and debugging costs.
[0040] The specific embodiments described above further illustrate the technical problems, technical solutions, and beneficial effects of the present invention. It should be understood that the above descriptions are merely 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 within the protection scope of the present invention.
Claims
1. A method for designing a conversion code tool for a platform-based vehicle lighting control system parameter configuration table, characterized in that, It includes the following steps: Step S1: Divide the PFlash space in the vehicle light controller; Step S2: Based on the vehicle lighting function, design a platform parameter configuration table, in which information on the vehicle lighting system function configuration module is filled in; Step S3: Allocate PFlash addresses for the vehicle lighting system function configuration module; Step S4: Define the parameters for the functional data in the vehicle lighting system function configuration module; Step S5: Construct the relationship between the parameter definitions of the vehicle lighting system function configuration module, and create a vehicle lighting parameter conversion tool based on the relationship between the parameter definitions and the PFlash address of the vehicle lighting system function configuration module. Step S6: Verify the headlight parameter conversion tool. If the verification is successful, proceed to step S7. If the verification fails, proceed to step S4 to continue execution. Step S7: Perform a vehicle headlight function test.
2. The design method for the conversion code tool of the platform-based vehicle lighting control system parameter configuration table according to claim 1, characterized in that, In step S1, the PFlash space in the vehicle light controller is divided, specifically including the following steps: The PFlash space in the vehicle lighting controller is divided into a bootloader area, a vehicle lighting application area, and a platform parameter table data area.
3. The method for designing a conversion code tool for the parameter configuration table of a platform-based vehicle lighting control system according to claim 1, characterized in that, The vehicle lighting functions in step S2 include basic lighting functions, auxiliary functions, advanced functions, and dynamic lighting functions.
4. The method for designing a conversion code tool for the parameter configuration table of a platform-based vehicle lighting control system according to claim 1, characterized in that, The vehicle lighting system function configuration module in step S2 includes a power supply channel and lamp mapping management module, an LED control matrix chip configuration module, a channel current and voltage configuration module, a BIN resistor and channel current configuration module, an NTC configuration module, a temperature drop current curve management module, a fan control module, an adaptive lighting configuration module, a welcome and farewell lighting effect configuration module, and an approach lighting and safe return lighting effect configuration module.
5. The method for designing a conversion code tool for the parameter configuration table of a platform-based vehicle lighting control system according to claim 4, characterized in that, The adaptive lighting configuration module includes an AFS configuration module, an ADB configuration module, a DBL configuration module, and an ALS configuration module.
6. The method for designing a conversion code tool for a platform-based vehicle lighting control system parameter configuration table according to claim 1, characterized in that, The parameter definition in step S4 includes parameter naming, parameter type configuration, and parameter permission configuration.
7. The method for designing a conversion code tool for a platform-based vehicle lighting control system parameter configuration table according to claim 1, characterized in that, The grille data generated by the headlight parameter conversion tool in step S5 is in .c and hex formats.
8. The method for designing a conversion code tool for a platform-based vehicle lighting control system parameter configuration table according to claim 2, characterized in that, In step S6, the headlight parameter conversion tool is verified, which specifically includes the following steps: Step S61: Use the vehicle lighting parameter conversion tool to convert the functional data of the vehicle lighting system function configuration module in the platform parameter configuration table into .c format code; Step S62: Integrate the .c format code of the platform parameter configuration table and the .c format code of the vehicle lighting application together; Step S63: Verify the integrated vehicle lighting application.
9. The method for designing a conversion code tool for a platform-based vehicle lighting control system parameter configuration table according to claim 8, characterized in that, In step S63, the integrated vehicle lighting application is verified, which specifically includes the following steps: Based on the vehicle lighting functions in the vehicle lighting application, the function data of the vehicle lighting system function configuration module in the platform parameter configuration table is called.
10. The method for designing a conversion code tool for a platform-based vehicle lighting control system parameter configuration table according to claim 2, characterized in that, In step S7, the vehicle headlight function test is performed, which specifically includes the following steps: Step S71: Use the vehicle lighting parameter conversion tool to convert the functional data of the vehicle lighting system function configuration module in the platform parameter configuration table into hex format code; Step S72: Burn the hex format code of the platform parameter configuration table and the hex format code of the vehicle light application into the vehicle light controller; Step S73: Control the vehicle lights through the vehicle light controller to perform a vehicle light function test.