Test method, device, electronic equipment and storage medium of vehicle light system

CN122835703APending Publication Date: 2026-09-29QIJING INTELLIGENT AUTOMOTIVE TECHNOLOGY (GUANGZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611120948.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-27
Publication Date
2026-09-29

AI Technical Summary

Technical Problem

[0003]本发明实施例提供一种车辆灯光系统的测试方法、装置、电子设备和存储介质,以解决相关技术中测试效率低下、测试场景可控性差的问题

Benefits of technology

[0015]综上,本发明的车辆灯光系统的测试方法、装置、电子设备和存储介质,应用于测试车辆,其特征在于,测试车辆包括光传感器和覆盖光传感器的遮光组件,包括:响应于切换测试指令,调节遮光组件的透光率,以模拟测试光环境;获取车辆灯光系统在测试光环境下的系统响应数据;基于系统响应数据,确定系统测试结果。本方法通过遮光组件调节透光率来模拟不同光环境,触发车辆灯光系统的模式切换并采集响应数据,最终生成测试结果,无需依赖外部光源或场地条件,提高了测试的便捷性和可控性,同时降低了测试成本,并提升了测试结果的准确性和可重复性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122835703A_ABST
    Figure CN122835703A_ABST
Patent Text Reader

Abstract

This invention discloses a testing method, apparatus, electronic device, and storage medium for a vehicle lighting system. The method is applied to a test vehicle, characterized by the test vehicle including a light sensor and a light-shielding component covering the light sensor. The method includes: adjusting the transmittance of the light-shielding component in response to a test switching command to simulate a test lighting environment; acquiring system response data of the vehicle lighting system under the test lighting environment; and determining the system test result based on the system response data. This method simulates different lighting environments by adjusting the transmittance of the light-shielding component, triggering mode switching of the vehicle lighting system and collecting response data to ultimately generate test results. It does not rely on external light sources or site conditions, improving the convenience and controllability of the test, reducing testing costs, and enhancing the accuracy and repeatability of the test results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent vehicle technology, and in particular to a testing method, apparatus, electronic device, and storage medium for a vehicle lighting system. Background Technology

[0002] With the development of intelligent connected vehicle technology, the mode switching function of vehicle lighting systems has gradually become a standard feature. It uses a rain and light sensor to sense the ambient light and realizes automatic control of systems such as the vehicle's infotainment system theme, instrument display, interior ambient lighting, and exterior headlights. For example, when the ambient light dims to a preset threshold, the vehicle automatically switches to night mode, the instrument panel and infotainment system switch to a dark theme, the ambient lighting turns on, and the headlights illuminate; when the ambient light brightens, it automatically switches back to day mode. Currently, testing of vehicle lighting system mode switching functionality is primarily achieved through real-vehicle road tests or frequent entry and exit from tunnels, parking lots, and other scenarios with changing lighting conditions. This method is inefficient, difficult to conduct repeated stress tests within a short period, and involves high site construction costs and poor controllability of the test scenarios. Therefore, there is an urgent need for a solution that can efficiently and controllably complete vehicle lighting system mode switching testing. Summary of the Invention

[0003] This invention provides a testing method, apparatus, electronic device, and storage medium for vehicle lighting systems to address the problems of low testing efficiency and poor controllability of testing scenarios in related technologies.

[0004] In a first aspect, the present invention provides a testing method for a vehicle lighting system, applied to a test vehicle, the test vehicle including a light sensor and a light-shielding component covering the light sensor, the method comprising: In response to a switch test command, the transmittance of the light-shielding component is adjusted to simulate the test light environment; Acquire system response data of the vehicle lighting system under test lighting conditions; The system test results are determined based on the system response data.

[0005] In some embodiments, adjusting the light transmittance of the light-shielding component in response to a switching test command includes: Based on the switching test command, determine the first test transmittance and the second test transmittance; Within a preset time window, the first test transmittance and the second test transmittance are switched alternately.

[0006] In some embodiments, the method further includes: The switching test frequency is determined based on the switching test command; Within a preset time window, alternating between the first test transmittance and the second test transmittance includes: Within a preset time window, the first test transmittance and the second test transmittance are alternately switched based on the switching test frequency.

[0007] In some embodiments, the method further includes: Based on the switching test command, the adjustment mode between the first test transmittance and the second test transmittance is determined. The adjustment mode includes abrupt change mode and smoothing mode. When the adjustment mode is in the sudden change mode, a step switch is performed between the first test transmittance and the second test transmittance; When the adjustment mode is smooth mode, it gradually switches between the first test transmittance and the second test transmittance based on the preset adjustment rate.

[0008] In some embodiments, the method further includes: Based on the switching test command, determine the target switching mode of the vehicle lighting system; Based on the system response data, the system test results are determined as follows: Based on system response data, determine the mode switching time and actual switching mode of the vehicle lighting system; The system mode matching result is determined based on the target switching mode and the actual switching mode; Determine the system switching delay time based on the mode switching time; The system test results are determined based on the system pattern matching results and the system switching delay time.

[0009] In some embodiments, the system test results are determined based on the system pattern matching results and the system switching delay time, including: When the system mode matching result and / or system switching delay time do not meet the preset conditions, abnormal test information is determined. Based on the abnormal test information, generate the corresponding abnormal diagnosis report; The system test results are determined based on the system pattern matching results, system switching delay time, and anomaly diagnosis reports.

[0010] In some embodiments, the light transmittance of the light-shielding component is adjusted in a smooth mode. Based on the system mode matching results and the system switching delay time, the system test results are determined, including: Get the actual light transmittance of the shading component during the mode switching time; The system transmittance matching result is determined based on the actual transmittance and the preset transmittance threshold. The system test results are determined based on the system transmittance matching results, system mode matching results, and system switching delay time.

[0011] In some embodiments, the vehicle lighting system includes multiple sub-lighting systems, and the system response data includes sub-system response data corresponding to each of the multiple sub-lighting systems. Based on the system response data, determine the system test results, including: Based on the subsystem response data, the subsystem pattern matching results of multiple sub-lighting systems and the response time difference between multiple sub-lighting systems are determined. The system test results are determined based on the subsystem pattern matching results and response time differences.

[0012] In a second aspect, the present invention provides a testing apparatus for a vehicle lighting system, applied to a test vehicle, the test vehicle including a light sensor and a light-shielding assembly covering the light sensor, the apparatus comprising: The command response module is used to respond to switching test commands and adjust the transmittance of the light-shielding components to simulate the test light environment; The data acquisition module is used to acquire system response data of the vehicle lighting system under test lighting conditions; The result determination module is used to determine the system test results based on the system response data.

[0013] Thirdly, the present invention provides an electronic device, including a processor and a memory, wherein the memory is used to store a computer program; and the processor is used to execute the program stored in the memory to implement the above-mentioned test method for the vehicle lighting system.

[0014] Fourthly, the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described test method for a vehicle lighting system.

[0015] In summary, the vehicle lighting system testing method, apparatus, electronic device, and storage medium of the present invention are applied to a test vehicle. The test vehicle includes a light sensor and a light-shielding component covering the light sensor. The method includes: adjusting the transmittance of the light-shielding component in response to a test switching command to simulate a test light environment; acquiring system response data of the vehicle lighting system under the test light environment; and determining the system test result based on the system response data. This method simulates different light environments by adjusting the transmittance of the light-shielding component, triggering mode switching of the vehicle lighting system and collecting response data, ultimately generating test results. It does not rely on external light sources or site conditions, improving the convenience and controllability of the test, reducing test costs, and enhancing the accuracy and repeatability of the test results. Attached Figure Description

[0016] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a flowchart illustrating a testing method for a vehicle lighting system according to an embodiment of the present invention; Figure 2 This is another flowchart illustrating a testing method for a vehicle lighting system according to one embodiment of the present invention; Figure 3 This is another flowchart illustrating a testing method for a vehicle lighting system according to one embodiment of the present invention; Figure 4 This is another flowchart illustrating a testing method for a vehicle lighting system according to one embodiment of the present invention; Figure 5 This is another flowchart illustrating a testing method for a vehicle lighting system according to one embodiment of the present invention; Figure 6 This is another flowchart illustrating a testing method for a vehicle lighting system according to one embodiment of the present invention; Figure 7 This is another flowchart illustrating a testing method for a vehicle lighting system according to one embodiment of the present invention; Figure 8 This is a schematic block diagram of a test device for a vehicle lighting system according to an embodiment of the present invention; Figure 9 This is a schematic block diagram of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0018] As an example, such as Figure 1 As shown, a test method for a vehicle lighting system is provided, applied to a test vehicle, the test vehicle including a light sensor and a light-shielding component covering the light sensor, the method including: S101, in response to the switching test command, adjusts the transmittance of the light-shielding component to simulate the test light environment; S102, acquire system response data of the vehicle lighting system under test lighting conditions; S103, Determine the system test results based on the system response data.

[0019] As an example, in step S101, the test vehicle is equipped with a light sensor and a light-shielding component covering the outside of the light sensor. The light-shielding component can be made of dimming glass with adjustable light transmittance, including but not limited to Suspended Particle Device (SPD) glass, Electrochromic (EC) glass, and other glass materials that can achieve stepless continuous dimming.

[0020] Upon receiving a switching test command from the tester, the corresponding test control system can send an adjustment signal to the controller of the light-shielding component. By changing the voltage applied to the dimming glass, the transmittance is adjusted, thereby changing the intensity of the light illuminating the light sensor and simulating test light environments with different levels of brightness.

[0021] The light sensor can be a rain light sensor installed on the inside of the vehicle's windshield, used to sense changes in the brightness of the ambient light and trigger mode switching control of the vehicle's lighting system. This invention does not limit the specific material of the light-shielding component, the specific type of the light sensor, or its installation location.

[0022] In one optional embodiment, the switching test command can be manually triggered and sent by the tester through the host computer software, or it can be automatically generated and sent by a preset test script according to the test cases.

[0023] For example, when executing an automated testing process, multiple sets of switching test instructions can be generated sequentially according to a preset test sequence. Each set of instructions corresponds to a different target transmittance and holding time, thereby automatically completing the continuous execution of multiple sets of test conditions.

[0024] In one optional embodiment, the light-shielding component is covered by a cover structure on the outside of the light sensor to form a relatively closed light sensing space, reducing the interference of external ambient light on the testing process, ensuring that the light intensity sensed by the light sensor is determined only by the light transmittance of the light-shielding component, and improving the controllability of the test light environment and the accuracy of the test results.

[0025] As an example, in step S102, system response data generated by the vehicle lighting system under test lighting conditions can be collected via the vehicle bus. This system response data includes information on the time of mode switching in the vehicle lighting system, the mode type before and after the switch, and the status changes of various related systems. The vehicle bus includes, but is not limited to, CAN bus, LIN bus, Ethernet bus, and other vehicle communication buses. This invention does not limit the specific content or collection method of the system response data.

[0026] In one optional embodiment, a preset bus diagnostic tool can be used to monitor relevant messages on the vehicle bus in real time. When a signal change related to the switching of lighting modes is detected, the message data and timestamp at that moment are recorded as part of the system response data. For example, when the rain sensor detects that the light is dimming and triggers the night mode switch, the vehicle control module will send a switching command to the instrument panel, vehicle infotainment system, headlights, ambient lighting and other systems. The above command messages and the corresponding sending times can be collected through the bus.

[0027] In one optional embodiment, the acquisition of system response data can be synchronously triggered with the light transmittance adjustment of the light-shielding component. That is, the test control system starts timing and bus monitoring at the same time as sending the light transmittance adjustment command. When a mode switching related message is detected, the switching time is recorded immediately to ensure the consistency of the time base and lay the foundation for determining the system test results. As an example, in step S103, the collected system response data is analyzed and evaluated, and a comprehensive judgment is made from dimensions such as whether the mode switching is correct and whether the response speed meets the standard, and finally, the corresponding system test results are generated. The system test results may include a judgment of whether the test passed / failed, specific values ​​of various evaluation indicators, and anomaly markers, etc. This invention does not limit the specific form of the system test results.

[0028] In one optional embodiment, test pass / fail rules can be pre-configured. When the system response data meets all the rules, a test pass conclusion is output; otherwise, a test fail conclusion is output and the corresponding exception is marked. For example, the judgment rules may include correct mode switching, switching response time less than a preset threshold, and no black screen or screen flickering during the switching process, which can be configured according to actual testing needs. In summary, this invention discloses a testing method for a vehicle lighting system, applied to a test vehicle. The method is characterized by the test vehicle including a light sensor and a light-shielding component covering the light sensor. The method includes: adjusting the transmittance of the light-shielding component in response to a test switching command to simulate a test lighting environment; acquiring system response data of the vehicle lighting system under the test lighting environment; and determining the system test result based on the system response data. This method simulates different lighting environments by adjusting the transmittance of the light-shielding component, triggering mode switching of the vehicle lighting system and collecting response data to ultimately generate test results. It does not rely on external light sources or site conditions, improving the convenience and controllability of the test, while reducing testing costs and enhancing the accuracy and repeatability of the test results.

[0029] In one embodiment, such as Figure 2 As shown, the method also includes: S201, based on the switching test command, first test transmittance and second test transmittance; S202, within a preset time window, alternately switch between the first test transmittance and the second test transmittance.

[0030] As an example, in step S201, the switching test command carries pressure test-related parameters. After parsing the command, the frequency of the cyclic switching and two alternating target transmittance values ​​are determined, which are denoted as the first test transmittance and the second test transmittance, respectively. The first test transmittance and the second test transmittance can correspond to the high transmittance value simulating a daytime environment and the low transmittance value simulating a nighttime environment, respectively, but are not limited thereto. The present invention does not limit the specific values ​​of each parameter.

[0031] In one optional embodiment, the first test transmittance can be set to a value within the range of 80% to 100% to simulate a sufficient sunlight environment; the second test transmittance can be set to a value within the range of 0% to 20% to simulate a dark environment at night or in a tunnel. Testers can flexibly adjust the specific values ​​of the two transmittances according to the light-sensing trigger threshold of different vehicle models to adapt to different test requirements.

[0032] In an optional embodiment, the switching test frequency can also be determined based on the switching test command, wherein the switching test frequency represents the number of times the transmittance is switched per unit time.

[0033] The switching test frequency can be configured according to the intensity requirements of the stress test, such as 5 times per minute or 10 times per minute. The higher the frequency, the more switching times per unit time, and the greater the stress test intensity. The preset time window represents the duration of the entire cycle stress test, such as 30 minutes or 1 hour. After the test, the switching success rate and response stability within the entire window can be statistically analyzed.

[0034] As an example, in step S202, within a preset test time window, the light-shielding component is repeatedly controlled to switch back and forth between the first test transmittance and the second test transmittance, thereby simulating a cyclical scenario of alternating light brightness and darkness, and conducting a durability and stability stress test on the mode switching function of the vehicle lighting system.

[0035] In one optional embodiment, the transmittance state is maintained for a certain period of time after each transmittance switch to ensure that the vehicle lighting system has enough time to complete the mode switching action, and to avoid triggering the reverse switch again before the vehicle system has responded due to the switch being too fast, so as to ensure that complete response data can be collected in each round of testing.

[0036] In an optional embodiment, after obtaining the switching test frequency, the first test transmittance and the second test transmittance can be alternately switched within a preset time window based on the switching test frequency.

[0037] Specifically, the start time of a preset time window can be used as the zero point of timing; the duration of a single switching cycle is calculated based on the switching test frequency, which is the time interval between two adjacent light transmittance state reversals; according to the single switching cycle, alternating increase and decrease commands are sent to the light-shielding component controller in sequence, and a light transmittance switching action is performed once each cycle node is reached. After each round of switching is completed, the current switching count and cumulative running time are updated synchronously; when the cumulative running time reaches the total duration of the preset time window, the switching is stopped and the light-shielding component is reset to the initial light transmittance state.

[0038] In one embodiment, such as Figure 3 As shown, the method also includes: S301, based on the switching test command, determine the adjustment mode between the first test transmittance and the second test transmittance; S302, when the adjustment mode is abrupt mode, a step switch is performed between the first test transmittance and the second test transmittance; S303, when the adjustment mode is smooth mode, it gradually switches between the first test transmittance and the second test transmittance based on the preset adjustment rate.

[0039] As an example, in step S301, the test switching command also carries a selection parameter for the transmittance adjustment mode. After parsing this parameter, the adjustment mode used in this cycle test is determined. The adjustment mode can include two types: abrupt change mode and smoothing mode, which correspond to simulating different types of light change scenarios, respectively. This invention does not limit the type or selection method of the adjustment mode.

[0040] As an example, in step S302, when the adjustment mode is the sudden change mode, a step adjustment command is sent to the light-shielding component controller to make the light transmittance of the light-shielding component jump directly from the current value to the target value without any transition process. This is used to simulate scenarios where the light changes suddenly, such as when a vehicle enters or exits a tunnel or an underground parking lot, and to verify the response performance of the vehicle lighting system under sudden light change conditions.

[0041] As an example, in step S303, when the adjustment mode is smooth mode, a progressive adjustment command is sent to the shading component controller to control the light transmittance of the shading component to gradually change from the current value to the target value at a preset adjustment rate. This is used to simulate natural scenes with slow light changes, such as cloudy days, and to verify the accuracy of the trigger threshold and the smoothness of the switching of the vehicle lighting system under the condition of gradual light change.

[0042] In one optional embodiment, the preset adjustment rate can be configured according to the test requirements. The slower the rate, the smoother the change in light, and the closer it is to the gradual process in the natural environment.

[0043] In one optional embodiment, the transmittance adjustment in smoothing mode can adopt a linear change curve or a non-linear change curve such as an S-curve to simulate the light change pattern under different scenarios. The present invention does not limit this.

[0044] In one embodiment, such as Figure 4 As shown, the method also includes: S401, based on the switching test command, determines the target switching mode of the vehicle lighting system; S402, based on system response data, determine the mode switching time and actual switching mode of the vehicle lighting system; S403, determine the system mode matching result based on the target switching mode and the actual switching mode; S404, determine the system switching delay time based on the mode switching time; S405. Based on the system pattern matching results and the system switching delay time, determine the system test results.

[0045] As an example, in step S401, based on the test condition information carried in the switching test instruction, the target mode that the vehicle lighting system is expected to switch to in this test is determined, i.e., the target switching mode. The target switching mode includes, for example, two types: daytime mode and nighttime mode, corresponding to two adjustment directions: increasing and decreasing light transmittance.

[0046] For example, when the switching test command instructs to reduce the light transmittance of the shading component from high to low, the corresponding simulated environment becomes darker, and the target switching mode should be night mode; otherwise, the target switching mode is day mode.

[0047] As an example, in step S402, the collected system response data is parsed to extract the actual time when the vehicle lighting system completes the mode switch, i.e., the mode switch time, and the actual mode type after the switch, i.e., the actual switching mode. The mode switch time can be determined by the timestamp of the bus message, and the actual switching mode can be determined by the mode identifier field in the message.

[0048] In one optional embodiment, the mode switching time can be determined by detecting the transition edge of the mode status signal in the bus message. When the signal transitions from daytime mode to nighttime mode, the transition time is the mode switching time. Similarly, the switching time from nighttime to daytime can be identified.

[0049] As an example, in step S403, the actual switching mode is compared with the target switching mode. If they match, the mode matching is considered successful; otherwise, the mode matching is considered unsuccessful, and a system mode matching result is generated. The system mode matching result is used to indicate whether the mode switching direction of the vehicle lighting system is correct and whether there are any abnormal situations such as reversed switching direction or no switching.

[0050] In one optional embodiment, the system pattern matching result can be represented by a Boolean value, with a successful match recorded as true and a failure recorded as false; it can also be represented by a matching degree score, for example, deducting the corresponding score when the pattern is correct but there is an abnormal intermediate state. The present invention does not limit the form of the matching result.

[0051] As an example, in step S404, the time difference between the transmission rate adjustment command sending time and the mode switching time is calculated to obtain the system switching delay time, using the time of sending the transmission rate adjustment command as the starting point and the mode switching time as the ending point. The system switching delay time is used to indicate the lag time between the change in the lighting environment and the completion of the vehicle lighting system mode switching, reflecting the response speed of the vehicle mode switching function.

[0052] In an optional embodiment, the starting point of time can also be selected as the moment when the light-shielding component actually reaches the target transmittance, rather than the moment when the command is sent, so as to more accurately calculate the pure response delay from the stabilization of the light environment to the completion of the mode switching. The present invention does not limit this and can flexibly choose according to the focus of the test evaluation.

[0053] As an example, in step S405, the system pattern matching result and the system switching delay time are combined for a comprehensive evaluation to generate the final system test result. When the pattern matching is successful and the switching delay time is less than the preset qualified threshold, the test is deemed to have passed; when the pattern matching fails or the delay time exceeds the standard, the test is deemed to have failed and the corresponding abnormal item is marked.

[0054] In one optional embodiment, different weights can be set for pattern matching and delay time, and a comprehensive test score can be obtained through weighted calculation. Then, the test level can be divided according to the score range, such as excellent, good, qualified, unqualified, etc., to achieve a more granular test evaluation.

[0055] In one embodiment, such as Figure 5 As shown, step S405, which determines the system test results based on the system mode matching results and the system switching delay time, includes: S501, when the system mode matching result and / or system switching delay time do not meet the preset conditions, determine the abnormal test information; S502 generates a corresponding abnormality diagnosis report based on abnormal test information; S503 determines the system test results based on the system pattern matching results, system switching delay time, and anomaly diagnosis reports.

[0056] As an example, in step S501, the system mode matching result and the system switching delay time are compared with preset qualification conditions. If any one or both conditions are not met, it is determined to be a test anomaly, and the corresponding anomaly parameters are extracted to form anomaly test information. The anomaly test information includes anomaly type, anomaly value, and occurrence time. Anomaly type may include mode mismatch, delay timeout, or both being anomaly simultaneously.

[0057] In one optional embodiment, the preset conditions can be configured according to the performance indicators of different vehicle models. For example, the qualified threshold for switching delay time is set to 2 seconds, and if it exceeds 2 seconds, it is determined to be a delay timeout. The preset condition for mode matching is that the actual mode is consistent with the target mode.

[0058] As an example, in step S502, a structured anomaly diagnosis report is automatically generated based on the identified abnormal test information. The anomaly diagnosis report may include detailed information such as the specific time of the anomaly, the anomaly type classification, the transmittance condition corresponding to the anomaly, and a snapshot of the bus message at the time of the anomaly, which helps testers locate the cause of the problem.

[0059] In one optional embodiment, the anomaly diagnosis report can be automatically generated according to a preset template and can be exported as a text or table format. Testers can directly include it in the test report without having to manually organize the anomaly information, thus improving the efficiency of test report writing.

[0060] As an example, in step S503, the system pattern matching results, the raw data of system switching delay time, and the anomaly diagnosis report are integrated to form a complete system test result. The test result includes both normal performance indicator data and detailed diagnostic information of anomalies, making the test result traceable and capable of problem localization.

[0061] In an optional embodiment, when multiple anomalies exist, they can be sorted and displayed according to their severity. For example, pattern mismatch has a higher priority than delay timeout, so that testers can focus on key issues first.

[0062] In one embodiment, such as Figure 6 As shown, the light transmittance adjustment of the shading component adopts a smooth mode. Step S405, that is, based on the system mode matching result and the system switching delay time, determines the system test result, including: S601, Obtain the actual light transmittance of the shading component during the mode switching time; S602, Based on the actual transmittance and the preset transmittance threshold, determine the system transmittance matching result; S603. Based on the system transmittance matching results, system mode matching results, and system switching delay time, the system test results are determined.

[0063] As an example, in step S601, when the light-shielding component uses the smooth mode to adjust the light transmittance, since the light transmittance changes continuously and gradually, the actual light transmittance value of the light-shielding component at the moment when the mode switch occurs can be accurately obtained.

[0064] Specifically, the actual light transmittance of the shading component at that moment can be calculated based on the mode switching time, combined with the start time of smooth adjustment, the target light transmittance, and the adjustment rate; or the light transmittance value at that moment can be directly read through the real-time feedback data of the shading component controller.

[0065] In one optional embodiment, the current transmittance value can be collected in real time and recorded synchronously with the timestamp through the transmittance sensor or voltage feedback signal built into the light-shielding component. When a mode switch is detected, the transmittance data at the corresponding moment can be read directly to ensure the accuracy of the value.

[0066] As an example, in step S602, the actual transmittance at the mode switching moment is compared with a preset standard transmittance threshold, the degree of deviation between the two is calculated, and a system transmittance matching result is generated. The transmittance matching result is used to verify whether the actual threshold for triggering mode switching by the vehicle's light sensor is consistent with the design nominal threshold, reflecting the accuracy of the mode switching trigger point.

[0067] In one optional embodiment, the preset transmittance threshold is the mode switching trigger threshold specified in the vehicle design document, for example, the night mode trigger threshold is specified as 30% transmittance. If the actual switching occurs at 28% transmittance, the deviation is small and the threshold accuracy is qualified; if the actual switching occurs at 50% transmittance, the deviation is large and the threshold accuracy is unqualified.

[0068] In an optional embodiment, the switching thresholds in the two directions, from bright to dark and from dark to bright, can be tested separately to obtain two sets of transmittance matching results, thereby verifying whether the hysteresis characteristics meet the design requirements.

[0069] As an example, in step S603, in addition to the original two indicators of mode matching result and switching delay time, a third evaluation indicator of transmittance matching result is added. The three indicators are combined to generate a more comprehensive system test result, realizing a comprehensive evaluation of the correctness, response speed and triggering accuracy of the mode switching function.

[0070] In one embodiment, such as Figure 7 As shown, the vehicle lighting system includes multiple sub-lighting systems, and the system response data includes the sub-system response data corresponding to each of the multiple sub-lighting systems; step S103, that is, determining the system test results based on the system response data, includes: S701, based on the subsystem response data, determines the subsystem mode matching results of multiple sub-lighting systems, as well as the response time difference between multiple sub-lighting systems; S702 determines the system test results based on the subsystem pattern matching results and response time differences.

[0071] As an example, in step S701, the vehicle lighting system includes multiple sub-lighting systems, including but not limited to the headlight system, vehicle infotainment system, instrument display system, and interior ambient lighting system. Each sub-lighting system switches modes in response to the light perception results from the light sensor, and the system response data includes the response data of each sub-system. The response data of each sub-system is parsed, the mode matching result of each sub-system is calculated, and the switching times between different sub-systems are compared to calculate the response time difference between each sub-system.

[0072] In one optional embodiment, multiple sub-lighting systems can be flexibly configured according to testing requirements. For example, only the theme synchronization between the instrument panel and the vehicle infotainment system can be tested, or the linkage consistency of the entire system including headlights, instrument panel, vehicle infotainment system, and ambient lighting can be tested. The scope of subsystems participating in the test can be specified through test instructions.

[0073] In one optional embodiment, the response time difference can be calculated as the switching time difference between any two subsystems, or as the maximum time difference between the earliest and latest switching in all subsystems, to measure overall synchronization.

[0074] As an example, in step S702, the system test results of the multi-system linkage test are generated by combining the pattern matching results of each subsystem and the response time difference between subsystems. When all subsystems switch to the correct mode and the response time difference between each subsystem is less than the preset synchronization threshold, the multi-system linkage test is deemed to have passed; if there is a subsystem mode error or the synchronization between systems exceeds the standard, the test is deemed to have failed and the corresponding abnormal subsystem is marked.

[0075] In one optional embodiment, differentiated delay thresholds and synchronization thresholds can be set for different subsystems. For example, due to the slower mechanical response of the headlight system, the allowed delay time can be longer than the electronic switching delay between the instrument panel and the vehicle infotainment system, which is more in line with the actual characteristics of each subsystem.

[0076] It should be understood that the above embodiments are merely examples, and different embodiments can be combined to implement the same solution without conflict. For example, Figure 4 The illustrated embodiments can be respectively compared with Figure 1 , Figure 2 , Figure 3 The illustrated embodiments are implemented in combination; Figure 7 The illustrated embodiments can be compared with... Figure 1 , Figure 2 , Figure 3 The embodiments shown are implemented in combination. Figure 3 The illustrated embodiments can be used with Figure 2 The embodiments shown are combined and implemented in various ways, but this disclosure does not limit the scope of the embodiments.

[0077] In one embodiment, a testing apparatus for a vehicle lighting system is provided, applied to a test vehicle. The test vehicle includes a light sensor and a light-shielding component covering the light sensor. This testing apparatus for the vehicle lighting system corresponds one-to-one with the testing method for the vehicle lighting system described in the above embodiments. Figure 8 As shown, the testing device for the vehicle lighting system includes a command response module 801, a data acquisition module 802, and a result determination module 803. Detailed descriptions of each functional module are as follows: The instruction response module 801 is used to adjust the transmittance of the light-shielding component in response to the switching test instruction, so as to simulate the test light environment; Data acquisition module 802 is used to acquire system response data of the vehicle lighting system under test lighting conditions; The result determination module 803 is used to determine the system test results based on the system response data.

[0078] In one embodiment, the instruction response module 801 is further configured to determine a first test transmittance and a second test transmittance based on a switching test instruction; and to alternately switch the first test transmittance and the second test transmittance within a preset time window.

[0079] In one embodiment, the instruction response module 801 is further configured to determine the switching test frequency based on the switching test instruction; and within a preset time window, alternately switch the first test transmittance and the second test transmittance based on the switching test frequency.

[0080] In one embodiment, the instruction response module 801 is further configured to, based on the switching test instruction, determine an adjustment mode between the first test transmittance and the second test transmittance, the adjustment mode including a sudden change mode and a smooth mode; when the adjustment mode is a sudden change mode, a step-wise switch is performed between the first test transmittance and the second test transmittance; when the adjustment mode is a smooth mode, a gradual switch is performed between the first test transmittance and the second test transmittance based on a preset adjustment rate.

[0081] In one embodiment, the result determination module 803 is further configured to: determine the target switching mode of the vehicle lighting system based on the switching test command; determine the mode switching time and actual switching mode of the vehicle lighting system based on system response data; determine the system mode matching result based on the target switching mode and the actual switching mode; determine the system switching delay time based on the mode switching time; and determine the system test result based on the system mode matching result and the system switching delay time.

[0082] In one embodiment, the result determination module 803 is further configured to: determine abnormal test information when the system mode matching result and / or system switching delay time do not meet preset conditions; generate a corresponding abnormal diagnosis report based on the abnormal test information; and determine the system test result based on the system mode matching result, system switching delay time, and abnormal diagnosis report.

[0083] In one embodiment, the light transmittance of the light-shielding component is adjusted in a smooth mode. The result determination module 803 is further configured to: obtain the actual light transmittance of the light-shielding component during the mode switching time; determine the system light transmittance matching result based on the actual light transmittance and the preset light transmittance threshold; and determine the system test result based on the system light transmittance matching result, the system mode matching result, and the system switching delay time.

[0084] In one embodiment, the vehicle lighting system includes multiple sub-lighting systems, and the system response data includes sub-system response data corresponding to each of the multiple sub-lighting systems. The result determination module 803 is further configured to: determine the sub-system pattern matching result of the multiple sub-lighting systems and the response time difference between the multiple sub-lighting systems based on the sub-system response data; and determine the system test result based on the sub-system pattern matching result and the response time difference.

[0085] This invention provides a testing device for a vehicle lighting system, applied to a test vehicle. The test vehicle includes a light sensor and a light-shielding component covering the light sensor. The device includes: a command response module for adjusting the transmittance of the light-shielding component in response to a test switching command to simulate a test light environment; a data acquisition module for acquiring system response data of the vehicle lighting system under the test light environment; and a result determination module for determining the system test result based on the system response data. This device adjusts the transmittance of the light-shielding component in response to a test switching command to simulate a test light environment; acquires system response data of the vehicle lighting system under the test light environment; and determines the system test result based on the system response data. This method simulates different light environments by adjusting the transmittance of the light-shielding component, triggering mode switching of the vehicle lighting system and collecting response data, ultimately generating test results. It does not rely on external light sources or site conditions, improving the convenience and controllability of testing, reducing testing costs, and enhancing the accuracy and repeatability of test results.

[0086] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 9As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores data used in the testing methods for the vehicle lighting system. The network interface allows communication with external terminals via a network connection. When the computer program is executed by the processor, it implements the aforementioned testing methods for the vehicle lighting system.

[0087] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described method for testing a vehicle lighting system.

[0088] In one embodiment, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described test method for a vehicle lighting system.

[0089] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), IAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0090] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0091] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.

Claims

1. A test method for a vehicle lighting system, applied to a test vehicle, characterized in that, The test vehicle includes a light sensor and a light-shielding assembly covering the light sensor, and the method includes: In response to a switch test command, the transmittance of the light-shielding component is adjusted to simulate the test light environment; Acquire the system response data of the vehicle lighting system under the test lighting environment; Based on the system response data, the system test results are determined.

2. The method according to claim 1, characterized in that, The adjustment of the light transmittance of the light-shielding component in response to the switching test command includes: Based on the switching test command, the first test transmittance and the second test transmittance are determined; Within a preset time window, the first test transmittance and the second test transmittance are switched alternately.

3. The method according to claim 2, characterized in that, The method further includes: Based on the switching test command, determine the switching test frequency; The step of alternately switching the first test transmittance and the second test transmittance within a preset time window includes: Within the preset time window, the first test transmittance and the second test transmittance are alternately switched based on the switching test frequency.

4. The method according to claim 2 or 3, characterized in that, The method further includes: Based on the switching test command, an adjustment mode between the first test transmittance and the second test transmittance is determined, the adjustment mode including abrupt change mode and a smoothing mode; When the adjustment mode is the mutation mode, a step switch is performed between the first test transmittance and the second test transmittance; When the adjustment mode is the smooth mode, a gradual switching is performed between the first test transmittance and the second test transmittance based on a preset adjustment rate.

5. The method according to any one of claims 1-3, characterized in that, The method further includes: Based on the switching test command, the target switching mode of the vehicle lighting system is determined; The determination of system test results based on the system response data includes: Based on the system response data, the mode switching time and actual switching mode of the vehicle lighting system are determined; Based on the target switching mode and the actual switching mode, the system mode matching result is determined; Based on the mode switching time, determine the system switching delay time; The system test results are determined based on the system pattern matching results and the system switching delay time.

6. The method according to claim 5, characterized in that, The determination of the system test result based on the system pattern matching result and the system switching delay time includes: When the system mode matching result and / or the system switching delay time do not meet the preset conditions, abnormal test information is determined; Based on the abnormal test information, a corresponding abnormal diagnosis report is generated; The system test results are determined based on the system pattern matching results, the system switching delay time, and the anomaly diagnosis report.

7. The method according to claim 5, characterized in that, The adjustment of the light transmittance of the light-shielding component adopts a smooth mode. The determination of the system test results based on the system mode matching result and the system switching delay time includes: Obtain the actual light transmittance of the light-shielding component during the mode switching time; Based on the actual transmittance and the preset transmittance threshold, the system transmittance matching result is determined; The system test results are determined based on the system transmittance matching results, the system mode matching results, and the system switching delay time.

8. The method according to any one of claims 1-3, characterized in that, The vehicle lighting system includes multiple sub-lighting systems, and the system response data includes the sub-system response data corresponding to each of the multiple sub-lighting systems. Determining the system test results based on the system response data includes: Based on the subsystem response data, the subsystem pattern matching result of the multiple sub-lighting systems and the response time difference between the multiple sub-lighting systems are determined; The system test result is determined based on the subsystem pattern matching result and the response time difference.

9. A testing device for a vehicle lighting system, used for testing vehicles, characterized in that, The test vehicle includes a light sensor and a light-shielding assembly covering the light sensor. The device includes: The command response module is used to adjust the transmittance of the light-shielding component in response to the switching test command, so as to simulate the test light environment; The data acquisition module is used to acquire the system response data of the vehicle lighting system under the test light environment; The result determination module is used to determine the system test results based on the system response data.

10. An electronic device, characterized in that, Including processor and memory, among which Memory, used to store computer programs; A processor for executing a program stored in memory to implement the test method for the vehicle lighting system as described in any one of claims 1-8.

11. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the test method for the vehicle lighting system as described in any one of claims 1-8.