Front fog lamp function test method, device, equipment and medium based on load box

By configuring the front fog lamp's pre-position, trigger, and exit conditions on a load box test bench and simulating vehicle speed and steering angle signals, the problem of untimely and inaccurate front fog lamp function testing during vehicle system testing was resolved, enabling earlier and more accurate function testing and improving vehicle driving safety.

CN116299034BActive Publication Date: 2025-09-16CHONGQING CHANGAN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310323687.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-29
Publication Date
2025-09-16
Estimated Expiration
2043-03-29

AI Technical Summary

Technical Problem

In the prior art, the front fog lamp function test is performed on a real vehicle during the vehicle system test phase, resulting in untimely testing and inaccurate results, affecting vehicle driving safety.

Method used

A load box-based test method is used to configure the pre-, trigger, and exit conditions on the load box test bench to simulate vehicle speed and steering angle signals to conduct a simulation test of the front fog lamp indicator. This includes configuring modules and a modular test process to determine the functional test results of the front fog lamp.

Benefits of technology

It enables the discovery of front fog lamp function problems during the single-unit test phase, avoids cumbersome operations and inaccurate condition control, improves the accuracy of test results, and thus enhances vehicle driving safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116299034B_ABST
    Figure CN116299034B_ABST
Patent Text Reader

Abstract

The present application provides a front fog lamp function test method, device, equipment and medium based on a load box. The method includes: configuring the preconditions, trigger conditions and exit conditions required for the front fog lamp simulation test on a load box test bench, and obtaining the first states of the front fog lamp indicator and the low beam indicator; when the first state of the front fog lamp indicator is off and the first state of the low beam indicator is on, determining that the preconditions are met; after the preconditions are met, responding to the trigger conditions, performing a front fog lamp indicator lighting test to determine a first test result; after the exit conditions are met, performing a front fog lamp indicator off test to determine a second test result; and determining the front fog lamp function test result based on the first test result and the second test result. By discovering front fog lamp function problems through simulation testing, the problem of cumbersome operations and the inability to accurately control trigger conditions and exit conditions in the vehicle system testing phase is avoided, thereby ensuring the accuracy of the test results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automobile testing, and in particular to a front fog lamp function testing method, device, equipment and medium based on a load box. Background Art

[0002] With the rapid development of the automotive industry, the functions of body controllers are constantly expanding, with an increasing number of control signals and increasingly complex control logic. For example, the control of the steering-assisted front fog light function involves factors such as gear position, vehicle speed, steering angle, and low-beam status. The fog light's steering-assisted function means that when the driver turns the steering wheel, one side of the front fog lights will be illuminated, assisting the vehicle in illuminating blind spots around bends. Once the steering wheel is straightened, the fog lights on that side will be turned off. In other words, the fog light's assisted steering function illuminates the fog lights on the same side during a turn and automatically turns off when the turn is complete, effectively preventing accidents. Therefore, to ensure driving safety, front fog light function testing is necessary from a safety perspective to ensure that the front fog lights function as expected.

[0003] In related technologies, the front fog lamp function is tested on a real vehicle during the whole vehicle system test phase. The vehicle speed and steering wheel angle cannot be precisely controlled on the real vehicle, and the operation is cumbersome. Problems with the front fog lamp function cannot be discovered early, affecting the front fog lamp function test results and thus affecting the vehicle's driving safety. Summary of the Invention

[0004] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not intended to be an extensive review, nor to identify key / critical elements or to delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.

[0005] In view of the shortcomings of the prior art described above, the present invention discloses a front fog lamp function test method, device, equipment and medium based on a load box to solve the technical problem that the front fog lamp function is tested on a real vehicle during the vehicle system testing phase, resulting in untimely front fog lamp function testing and inaccurate test results, thereby affecting vehicle driving safety.

[0006] In a first aspect, the present application provides a front fog lamp function test method based on a load box, the method comprising:

[0007] Configure the preconditions, trigger conditions, and exit conditions required for the front fog lamp simulation test on the load box test bench, and obtain the first state of the front fog lamp indicator and the low beam indicator;

[0008] When the first state of the front fog lamp indicator light is off and the first state of the low beam indicator light is on, it is determined that the precondition is satisfied;

[0009] After the precondition is met, in response to the trigger condition, performing a lighting test on the front fog lamp indicator light to determine a first test result;

[0010] After the exit condition is met, performing an extinguishing test on the front fog lamp indicator light to determine a second test result;

[0011] A functional test result of the front fog lamp is determined according to the first test result and the second test result.

[0012] In one embodiment of the present invention, the load box test bench includes a left load box, a right load box, a rear load box, a left controller, a right controller, a rear controller, a radio frequency key receiver, a radio frequency key, a handheld gear, a bus development environment, and a test host:

[0013] The left load box, the right load box, and the rear load box are connected to the left controller, the right controller, and the rear controller respectively;

[0014] The radio frequency key receiver is connected to the left load box, and the radio frequency key is used to switch the power switches of the left load box, the right load box and the rear load box;

[0015] The hand gear is connected to the left load box and is used to generate a gear signal, wherein the gear signal includes a reverse gear signal and a non-reverse gear signal;

[0016] The test host is connected to the left load box through the bus development environment.

[0017] In one embodiment of the present invention, the fog light indicator on the left load box simulates the left front fog light, the low beam indicator on the left load box simulates the left low beam, the fog light indicator on the right load box simulates the right front fog light, and the low beam indicator on the right load box simulates the right low beam, and the bus development environment software of the test host simulates the vehicle speed signal and the steering angle signal in the trigger conditions.

[0018] In one embodiment of the present invention, the configuration of the preconditions required for the front fog lamp simulation test on the load box test bench further includes:

[0019] Controlling the radio frequency key to start the power switches of the left load box, the right load box, and the rear load box to power on the load box test bench;

[0020] The low beam indicator light on the load box test bench is turned on, and the front fog lamp indicator light is turned off.

[0021] In one embodiment of the present invention, before configuring the triggering conditions required for the front fog lamp simulation test on the load box test bench, the method further includes:

[0022] generating a vehicle speed message and a steering angle message in response to vehicle speed information and steering angle information, wherein the vehicle speed information carries a preset vehicle speed threshold and the steering angle signal carries a preset angle threshold;

[0023] According to the vehicle speed message and the steering angle message, the vehicle speed signal and the steering angle signal are configured to be valid, and the vehicle speed value is configured as the vehicle speed preset threshold value, and the steering angle value is configured as the angle preset threshold value to obtain the trigger condition.

[0024] In one embodiment of the present invention, the exit conditions include the load box test bench being powered off, the low beam indicator being off, the vehicle speed signal being invalid, the vehicle speed being greater than a preset vehicle speed threshold, the steering angle signal being invalid, and the steering angle being less than a preset angle threshold.

[0025] In one embodiment of the present invention, determining the functional test result of the front fog lamp according to the first test result and the second test result includes:

[0026] Comparing the first test result with the first expected result under the trigger condition to determine the lighting function of the front fog lamp;

[0027] The second test result is compared with the second expected result under the exit condition to determine whether the front fog lamp is turned off.

[0028] In a second aspect, the present application provides a front fog lamp function test device based on a load box, the device comprising:

[0029] A configuration module is used to configure the preconditions, trigger conditions, and exit conditions required for the front fog lamp simulation test on the load box test bench, and obtain the first state of the front fog lamp indicator and the low beam indicator;

[0030] a precondition determination module, configured to determine that the precondition is satisfied when the first state of the front fog lamp indicator light is off and the first state of the low beam lamp indicator light is on;

[0031] a lighting function test module, configured to, after the precondition is met and in response to the trigger condition, perform a lighting test on the front fog lamp indicator light to determine a first test result;

[0032] an extinguishing function test module, configured to perform an extinguishing test on the front fog lamp indicator lamp after the exit condition is met, and determine a second test result;

[0033] A test result determination module is used to determine a functional test result of the front fog lamp according to the first test result and the second test result.

[0034] In a third aspect, the present application provides an electronic device, comprising:

[0035] one or more processors;

[0036] The storage device is used to store one or more programs. When the one or more programs are executed by one or more processors, the electronic device implements the front fog lamp function test method based on the load box described in the first aspect.

[0037] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor of a computer, the computer is caused to execute the front fog lamp function test method based on the load box described in the first aspect.

[0038] As described above, the load box-based front fog lamp function test method, device, equipment, and medium provided by the embodiments of the present invention have the following beneficial effects:

[0039] By configuring the preconditions, trigger conditions, and exit conditions required for the front fog lamp simulation test on a load box test bench, and obtaining the first states of the front fog lamp indicator and the low beam indicator, and then when the first state of the front fog lamp indicator is off and the first state of the low beam indicator is on, it is determined that the preconditions are met. After the preconditions are met, in response to the trigger conditions, the front fog lamp indicator is tested for lighting up to determine the first test result. After the exit conditions are met, the front fog lamp indicator is tested for extinguishing to determine the second test result. Finally, the functional test result of the front fog lamp is determined based on the first and second test results. The simulation test of the front fog lamp based on the load box test bench can reveal functional problems of the front fog lamp, avoiding the cumbersome operation of the front fog lamp functional test in the vehicle system test phase and the problem of the inability to accurately control the trigger conditions and exit conditions. The test can be intervened as early as possible in the unit test phase to ensure the accuracy of the test results, thereby improving the safety of the vehicle during driving.

[0040] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings are incorporated into and constitute a part of the specification, illustrating embodiments consistent with the present application and, together with the specification, serving to explain the principles of the present application. It is obvious that the drawings described below are merely some embodiments of the present application, and a person of ordinary skill in the art can derive other drawings based on these drawings without inventive effort. In the drawings:

[0042] Figure 1 1 is a schematic diagram of an implementation environment of a front fog lamp function test in a related art shown in an exemplary embodiment of the present application;

[0043] Figure 2 1 is a schematic diagram of an implementation environment of a front fog lamp function test device based on a load box, shown in an exemplary embodiment of the present application;

[0044] Figure 3 is a flow chart of a front fog lamp function test method based on a load box, shown in an exemplary embodiment of the present application;

[0045] Figure 4 This is a schematic diagram of an interface for configuring trigger conditions in a bus development environment software according to an exemplary embodiment of the present application;

[0046] Figure 5 is a block diagram of a front fog lamp function test device based on a load box, shown in an exemplary embodiment of the present application;

[0047] Figure 6 This is a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present application. DETAILED DESCRIPTION

[0048] The following describes the embodiments of the present invention through specific examples. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through different specific embodiments. The details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and sub-samples in the embodiments can be combined with each other unless there is a conflict.

[0049] It should be noted that the illustrations provided in the following embodiments are merely schematic illustrations of the basic concept of the present invention. Therefore, the illustrations only show components related to the present invention and are not drawn according to the number, shape, and size of components in actual implementation. In actual implementation, the type, quantity, and proportion of each component may be changed arbitrarily, and the component layout may also be more complex.

[0050] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it will be apparent to those skilled in the art that the embodiments of the present invention may be practiced without these specific details. In other embodiments, well-known structures and devices are shown in block diagram form rather than in detail to avoid obscuring the embodiments of the present invention.

[0051] In the description and claims of the embodiments of the present disclosure, as well as in the accompanying drawings, the terms "first," "second," and the like are used to distinguish similar items and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate to describe the embodiments of the present disclosure herein. In addition, the terms "including," "having," and any variations thereof are intended to cover non-exclusive inclusions.

[0052] Unless otherwise stated, the term "plurality" means two or more.

[0053] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B means: A or B.

[0054] The term "and / or" describes an association between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or A and B.

[0055] The fog light's steering assist function illuminates one side of the front fog light when the driver turns the steering wheel, helping the vehicle illuminate blind spots around bends. Once the steering wheel is straightened, the fog light on one side turns off, effectively preventing accidents. To ensure driving safety, front fog light function testing is performed from the perspective of front fog light safety to verify that the front fog light functions as expected. However, front fog light function testing is usually conducted on a real vehicle during the vehicle system testing phase. Figure 1 , Figure 1 FIG. 1 is a schematic diagram of an implementation environment of a front fog lamp function test in a related art shown in an exemplary embodiment of the present application. Figure 1 As shown, the functional test of the left front fog lamp 105 and the right front fog lamp 106 is carried out on the actual vehicle 101, the gear lever 102 is used to switch gears, the accelerator 103 is used to control the vehicle speed, and the steering wheel 104 is used to control the steering angle. The left front fog lamp 105 and the right front fog lamp 106 are functionally tested according to the vehicle speed and the steering angle. During the operation, since the vehicle speed and the steering angle cannot be accurately controlled, the test results of the fog lamp function will be affected, thereby affecting the safety of vehicle driving. In addition, this method is not only cumbersome to operate, but also cannot detect fog lamp function problems as early as possible.

[0056] See Figure 2 , Figure 2FIG. 1 is a schematic diagram of an implementation environment of a front fog lamp function test device based on a load box, as shown in an exemplary embodiment of the present application. Figure 2 As shown, the implementation environment includes a left load box 201, a right load box 203, a rear load box 205, a left controller 202, a right controller 204, a rear controller 206, a radio frequency key receiver 207, a hand lever 208, and a test host 209, wherein the left load box 201 is connected to the left controller 202 via a wiring harness, the right load box 203 is connected to the right controller 204 via a wiring harness, the rear load box 205 is connected to the rear controller 206 via a wiring harness, the left load box, the right load box and the rear load box are connected to each other to form a ring network, the radio frequency key receiver 207 is connected to the left load box 201 via a wiring harness, the hand lever 208 is connected to the left load box 201 via a wiring harness, and the test host 208 is connected to the left load box 201 via CANoe (CAN open environment, bus development environment).

[0057] It should be noted that the fog lamp indicator light on the left load box 201 simulates the left front fog lamp, the low beam indicator light on the left load box 201 simulates the left low beam lamp, the fog lamp indicator light on the right load box 203 simulates the right front fog lamp, and the low beam indicator light on the right load box 203 simulates the right low beam lamp; the load boxes are connected to form a ring network for restoring the entire vehicle environment; the radio frequency key receiver 207 receives the signal of the radio frequency key to switch the power switches of the left load box 201, the right load box 203 and the rear load box 205; the gear shift 208 is used to generate a gear signal to simulate the gear position; the bus development environment software in the test host 209 simulates the vehicle speed signal and the steering angle signal in the trigger condition to realize the simulation test of the front fog lamp function.

[0058] See Figure 3 , Figure 3 This is a flow chart of a front fog lamp function test method based on a load box, shown in an exemplary embodiment of the present application. This method can be applied to Figure 2 The implementation environment shown is specifically implemented by the client and / or server in the implementation environment. It should be understood that the method can also be applied to other exemplary implementation environments and specifically implemented by devices in other implementation environments. This embodiment does not limit the implementation environment to which the method is applicable. To address these issues, the embodiments of the present application respectively propose a front fog lamp function test method based on a load box, a front fog lamp function test device based on a load box, an electronic device, and a computer-readable storage medium. These embodiments are described in detail below.

[0059] like Figure 3 As shown, in an exemplary embodiment, the front fog lamp function test method based on the load box includes at least steps S301 to S305, which are described in detail as follows:

[0060] Step S301 : configuring the preconditions, trigger conditions, and exit conditions required for the front fog lamp simulation test on a load box test bench, and obtaining the first states of the front fog lamp indicator light and the low beam indicator light.

[0061] A simulation test of the front fog lamp function was conducted on a load box test bench. Based on the requirement analysis for steering-assisted front fog lamp illumination, the preconditions, trigger conditions, and exit conditions for the front fog lamp function test were clearly defined and configured on the load box test bench to obtain the first states of the front fog lamp indicator and the low-beam indicator. It should be understood that under the trigger condition, the state of the front fog lamp indicator corresponds to the expected state, and under the exit condition, the state of the front fog lamp indicator also corresponds to the expected state.

[0062] In one embodiment, the load box test bench includes a left load box, a right load box, a rear load box, a left controller, a right controller, a rear controller, a radio frequency key receiver, a radio frequency key, a handheld gear, a bus development environment, and a test host:

[0063] The left load box, the right load box and the rear load box are respectively connected to the left controller, the right controller and the rear controller;

[0064] The radio frequency key receiver is connected to the left load box, and the radio frequency key is used to switch the power switches of the left load box, the right load box and the rear load box;

[0065] The hand gear is connected to the left load box and is used to generate a gear signal, which includes a reverse gear signal and a non-reverse gear signal;

[0066] The test host is connected to the left load box through the bus development environment.

[0067] In one embodiment, the fog light indicator on the left load box simulates the left front fog light, the low beam indicator on the left load box simulates the left low beam, the fog light indicator on the right load box simulates the right front fog light, and the low beam indicator on the right load box simulates the right low beam, and the bus development environment software of the test host simulates the vehicle speed signal and steering angle signal in the trigger conditions.

[0068] Please continue to see Figure 2The load box test bench includes a left load box 201, a right load box 203, a rear load box 205, a left controller 202, a right controller 204, a rear controller 206, a radio frequency key receiver 207, a handheld shifter 208, a test host 209, and a bus development environment. The left load box 201 is connected to the left controller 202 via a wiring harness, the right load box 203 is connected to the right controller 204 via a wiring harness, and the rear load box 205 is connected to the rear controller 206 via a wiring harness. The fog light indicator on the left load box 201 simulates the left front fog light, the low beam indicator on the left load box 201 simulates the left low beam, the fog light indicator on the right load box 203 simulates the right front fog light, and the low beam indicator on the right load box 203 simulates the right low beam. The load boxes are connected to form a ring network to recreate the entire vehicle environment. The RF key receiver 207 is connected to the left load box 201 via a wiring harness. The RF key receiver 207 receives signals from the RF key to switch the power switches of the left load box 201, the right load box 203, and the rear load box 205. The hand-shift 208 is connected to the left load box 201 via a wiring harness. The hand-shift 208 is used to generate a gear position signal to simulate the gear position, including reverse gear and non-reverse gear. The test host 208 is connected to the left load box 201 via CANoe. Specifically, one controller area network channel of the bus development environment is connected to the high-speed controller area network interface of the left load box 201, and another controller area network channel is connected to the universal serial bus interface of the test host 209. The bus development environment software in the test host 209 simulates the vehicle speed signal and steering angle signal in the trigger conditions, and performs a simulation test of the front fog lamp based on the load box test bench. Through simulation, the cumbersome operation of the front fog lamp function test in the actual vehicle is avoided.

[0069] It should be noted that the RF key receiver 207 is connected to the left load box 201 through a wiring harness, the arm shift 208 is connected to the left load box 201 through a wiring harness, and the test host 208 is connected to the left load box 201 through CANoe. This is just a connection method of the load box test bench. The RF key receiver 207, arm shift 208, and test host 208 can be connected to any load box among the left load box 201, the right load box 203, and the rear load box 205. Because the controllers in the load box test bench are connected to each load box to form a ring network, a communication ring network is formed. The power switch signal received by the RF key receiver 207, the gear position signal generated by the arm shift 208, and the vehicle speed signal and steering angle signal simulated in the test host 208 can be transmitted between the load boxes.

[0070] In another embodiment, a test bench for implementing a functional test of the front fog lamp of a load box may be a load box test bench formed by a left load box, a right load box, a rear load box, a left controller, a right controller, and a rear controller. The load box test bench is then connected to a radio frequency key receiver and a hand lever through a wiring harness, and is connected to a test host through CANoe. The radio frequency key receiver, hand lever, test host, and load box test bench may interact with each other through signals to implement a simulation test of the front fog lamp function.

[0071] In one embodiment, configuring the preconditions required for the front fog lamp simulation test on the load box test bench further includes:

[0072] Control the radio frequency key to start the power switches of the left load box, right load box, and rear load box to power on the load box test bench;

[0073] Turn on the low beam indicator light on the load bank test bench and turn off the front fog lamp indicator light.

[0074] The precondition for the front fog lamp function test is that the load box test bench power switch is turned on (i.e., in the "on" position), the front fog lamps are off, and the low beams are on. Only under these preconditions can the front fog lamp function test be further performed. Therefore, this precondition must be configured on the load box test bench. This involves controlling the radio frequency key to activate the power switches of the left, right, and rear load boxes, powering up the load box test bench. Successful power-up can be determined by monitoring the power output indicators on each load box. The low beam indicator on the load box test bench is then configured to illuminate, while the front fog lamp indicator is configured to off.

[0075] In one embodiment, before configuring the triggering conditions required for the front fog lamp simulation test on the load box test bench, the method further includes:

[0076] In response to the vehicle speed information and the steering angle information, a vehicle speed message and a steering angle message are generated, wherein the vehicle speed information carries a preset vehicle speed threshold, and the steering angle signal carries a preset angle threshold;

[0077] According to the vehicle speed message and the steering angle message, the vehicle speed signal and the steering angle signal are configured to be valid, and the vehicle speed value is configured as a preset vehicle speed threshold, and the steering angle value is configured as a preset angle threshold to obtain the trigger condition.

[0078] The trigger condition is first configured in the bus development environment software of the test host. This involves first responding to vehicle speed and steering angle information and generating a speed message and a steering angle message. The speed message carries a preset speed threshold, while the steering angle signal carries a preset angle threshold. The preset speed threshold is the critical speed point for turning the front fog lights on or off, and the preset angle threshold is the critical steering angle point for turning the front fog lights on or off. Then, based on the speed message and steering angle message, the speed signal and steering angle signal are configured as valid, and the speed value is configured as the preset speed threshold, while the steering angle value is configured as the preset angle threshold. This generates the trigger condition. The preset speed threshold and angle threshold are only valid when both the speed signal and steering angle signal are valid. Only then is the trigger condition configured on the load box test bench. It should be noted that since the steering angle involves left and right turns, the preset angle thresholds can be positive or negative, representing left and right turns, respectively.

[0079] The following further explains how to configure the trigger conditions in the bus development environment software on the test host. For example, in the Simulation Setup window of the CANoe software, double-click the CANIG module to enter the generator configuration interface, then click the add Frame from Datebase icon, enter the vehicle speed-related signal ID: 17A, double-click to select the message under CHSCAN to successfully add it, then select periodic transmission, find the vehicle speed valid signal EspVehSpdVld in the signal list, configure it to be valid, find the vehicle speed signal EspVehSpd and modify the physical value to use as the vehicle speed preset threshold, such as 40kph. Then add the message with ID 180, double-click to select the message under CHSCAN to successfully add it, and send it periodically, find the steering angle signal EpsSasSteerAgVld and configure it to be valid, then find the steering angle signal EpsSasSteerAg and modify the physical value to use as the angle preset threshold, such as 35, which represents a 35-degree left turn; modify the physical value to -35, which represents a 35-degree right turn, to complete the configuration of the trigger condition. See [Note: The following text appears to be corrupted and should be omitted.] Figure 4 , Figure 4 FIG. 1 is a schematic diagram of an interface for configuring trigger conditions of a bus development environment software according to an exemplary embodiment of the present application. Figure 4 It is just one of the interfaces in the configuration process.

[0080] In one embodiment, the exit conditions include the load box test bench being powered off, the low beam indicator being off, the vehicle speed signal being invalid, the vehicle speed being greater than a preset vehicle speed threshold, the steering angle signal being invalid, and the steering angle being less than a preset angle threshold.

[0081] Exit conditions for the front fog lamp function test include power failure of the load box test bench, extinguishment of the low-beam indicator, invalid vehicle speed signal, vehicle speed exceeding a preset speed threshold, invalid steering angle signal, and steering angle less than a preset angle threshold. The load box test bench is powered off by switching the power switch of any load box to off via the radio frequency key control. The low-beam indicator is extinguished by switching the left and right low-beam indicator switches on the load box test bench to off. An invalid vehicle speed signal is achieved by setting the invalid vehicle speed signal in the bus development environment software within the test host. A vehicle speed exceeding the preset speed threshold is achieved by changing the vehicle speed value within the bus development environment software within the test host to exceed the preset speed threshold. An invalid steering angle signal is achieved by setting the steering angle signal to invalid within the bus development environment software within the test host. A steering angle less than the preset angle threshold is achieved by changing the steering angle value within the bus development environment software within the test host to be between the positive and negative preset angle thresholds. For example, if the preset angle threshold is 35, setting the steering angle value between the positive and negative preset angle thresholds is (-35 to 35).

[0082] Step S302 : When the first state of the front fog lamp indicator light is off and the first state of the low beam indicator light is on, it is determined that the precondition is met.

[0083] The precondition is that the load box test bench is powered on, the front fog lamp indicator is off, and the low beam indicator is on. Therefore, when the first state of the front fog lamp indicator is off and the first state of the low beam indicator is on, it can be determined that the precondition is met. It should be noted that the front fog lamp indicator includes the left front fog lamp indicator and the right front fog lamp indicator, and the low beam indicator includes the left low beam indicator and the right low beam indicator. Here, the front fog lamp indicator off means that both the left front fog lamp indicator and the right front fog lamp indicator are off, and the low beam indicator on means that both the left low beam indicator and the right low beam indicator are on.

[0084] Step S303: After the precondition is met, in response to the triggering condition, a lighting test is performed on the front fog lamp indicator light to determine a first test result.

[0085] After determining that the load box test bench meets the preconditions, the lighting function test of the left and right front fog lamp indicators is performed in response to the trigger conditions, that is, in response to the preset vehicle speed threshold and the preset angle threshold, and the first test result, that is, the lighting test result of the left and right front fog lamps, is determined by monitoring the display status of the left and right front fog lamp indicators.

[0086] Step S304: After the exit condition is met, the front fog lamp indicator light is subjected to an extinguishing test to determine a second test result.

[0087] When the left front fog lamp or the right front fog lamp is on and the exit condition of the front fog lamp is reached on the load box test bench, the test unit responds to the exit condition and performs a function test on turning off the left and right front fog lamp indicator lights. The second test result, i.e., the test result on turning off the left and right front fog lamps, is determined by monitoring the display status of the left and right front fog lamp indicator lights.

[0088] Step S305 , determining a functional test result of the front fog lamp according to the first test result and the second test result.

[0089] In one embodiment, determining a functional test result of the front fog lamp according to the first test result and the second test result includes:

[0090] Comparing the first test result with the first expected result under the trigger condition to determine the lighting function of the front fog lamp;

[0091] The second test result is compared with the second expected result under the exit condition to determine the extinguishing function of the front fog lamp.

[0092] It should be noted that under the trigger conditions, if the gear is in reverse and the steering angle is to the left, the first expected state is for the left front fog light to illuminate; if the gear is in reverse and the steering angle is to the right, the first expected state is for the right front fog light to illuminate; if the gear is not in reverse and the steering angle is to the left, the first expected state is for the right front fog light to illuminate; if the gear is not in reverse and the steering angle is to the right, the first expected state is for the left front fog light to illuminate. With respect to the exit conditions, if the left or right front fog light is illuminated, upon meeting any of the exit conditions, the second expected result is for the left or right front fog light to be extinguished.

[0093] By comparing the first test result with the first expected result under the trigger condition, the lighting function of the front fog lamp is judged. If it is inconsistent with the first expected result, it indicates that the lighting function of the front fog lamp is abnormal; by comparing the second test result with the second expected result under the exit condition, the extinguishing function of the front fog lamp is judged. If it is inconsistent with the second expected result, it indicates that the extinguishing function of the front fog lamp is abnormal. That is, the functional test result of the front fog lamp can be determined based on the first prediction result and the second prediction result. When the lighting function and the extinguishing function of the front fog lamp are normal, the functional test result of the front fog lamp is determined to be passed.

[0094] The front fog lamp function test method based on the load box provided in the above embodiment configures the preconditions, trigger conditions, and exit conditions required for the front fog lamp simulation test on the load box test bench, and obtains the first state of the front fog lamp indicator and the low beam indicator. Then, when the first state of the front fog lamp indicator is off and the first state of the low beam indicator is on, it is determined that the preconditions are met. After the preconditions are met, the front fog lamp indicator is tested for lighting in response to the trigger conditions to determine the first test result. After the exit conditions are met, the front fog lamp indicator is tested for extinguishing to determine the second test result. Finally, the front fog lamp function test result is determined based on the first test result and the second test result. The simulation test of the front fog lamp based on the load box test bench can detect front fog lamp function problems, avoids the cumbersome operation of the front fog lamp function test in the whole vehicle system test phase and the problem that the trigger conditions and exit conditions cannot be accurately controlled. The test can be intervened as early as possible in the single unit test phase to ensure the accuracy of the test results, thereby improving the safety of the vehicle during driving.

[0095] See Figure 5 , Figure 5 FIG. 1 is a block diagram of a front fog lamp function test device based on a load box, as shown in an exemplary embodiment of the present application. Figure 5 As shown, this embodiment provides a front fog lamp function test device 500 based on a load box, which includes:

[0096] Configuration module 501, configured to configure the preconditions, trigger conditions, and exit conditions required for the front fog lamp simulation test on the load box test bench, and obtain the first states of the front fog lamp indicator and the low beam indicator;

[0097] a precondition determination module 502 for determining that a precondition is satisfied when the first state of the fog lamp indicator light is off and the first state of the low beam indicator light is on;

[0098] A lighting function test module 503 is configured to perform a lighting test on the front fog lamp indicator light in response to a trigger condition after a precondition is satisfied, and determine a first test result;

[0099] The extinguishing function test module 504 is used to perform an extinguishing test on the front fog lamp indicator light after the exit condition is met, and determine a second test result;

[0100] The test result determination module 505 is configured to determine a function test result of the front fog lamp according to the first test result and the second test result.

[0101] It should be noted that the load-box-based front fog lamp function test device provided in the above-mentioned embodiment and the load-box-based front fog lamp function test method provided in the above-mentioned embodiment share the same concept. The specific manner in which the various modules and units perform their operations has been described in detail in the method embodiments and will not be repeated here. In actual applications, the load-box-based front fog lamp function test device provided in the above-mentioned embodiment can, as needed, allocate the aforementioned functions to different functional modules. That is, the internal structure of the device can be divided into different functional modules to perform all or part of the aforementioned functions, and this is not a limitation herein.

[0102] See Figure 6 , Figure 6 The following is a schematic diagram showing the structure of a computer system suitable for implementing an electronic device according to an embodiment of the present application. Figure 6 The computer system 600 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0103] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 602 or the program loaded from the storage part 608 into the random access memory (RAM) 603, such as executing the method in the above embodiment. Various programs and data required for system operation are also stored in the RAM 603. The CPU 601, ROM 602 and RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0104] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, and the like; an output section 607 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 608 including a hard disk; and a communication section 609 including a network interface card such as a LAN (Local Area Network) card or a modem. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. Removable media 611, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 610 as needed, so that computer programs read therefrom can be installed into the storage section 608 as needed.

[0105] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 609, and / or installed from a removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the various functions defined in the system of the present application are executed.

[0106] It should be noted that the computer-readable medium shown in the embodiments of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable computer program. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. A computer program embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, or any suitable combination thereof.

[0107] The embodiments of the present disclosure further provide a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, any one of the methods in the embodiments is implemented.

[0108] Regarding the computer-readable storage media in the embodiments of the present disclosure, those skilled in the art will understand that all or part of the steps in implementing the aforementioned method embodiments can be accomplished by hardware associated with the computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the aforementioned method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0109] The electronic device disclosed in this embodiment includes a processor, a memory, a transceiver, and a communication interface. The memory and the communication interface are connected to the processor and the transceiver and complete communication with each other. The memory is used to store computer programs, the communication interface is used to communicate, and the processor and the transceiver are used to run the computer program, so that the electronic device executes each step of the above method.

[0110] In this embodiment, the memory may include a random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage.

[0111] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0112] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure to enable those skilled in the art to practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible variations. Unless expressly required, individual components and functions are optional, and the order of operations may vary. Parts and subsamples of some embodiments may be included in or replace parts and subsamples of other embodiments. Moreover, the terms used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to also include the plural forms. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variations "comprises" and / or comprising refer to the presence of a stated subsample, whole, step, operation, element, and / or component, but do not exclude the presence or addition of one or more other subsamples, wholes, steps, operations, elements, components and / or groups of these. In the absence of further restrictions, an element defined by the statement "comprises a..." does not exclude the presence of other identical elements in the process, method or device that includes the element. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments can be referenced to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can be found in the description of the method part.

[0113] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. Technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. Technicians can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0114] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of units can be merely a logical functional division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some sub-samples can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to implement this embodiment. In addition, the functional units in the embodiments of the present disclosure can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0115] The flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions and operations of the systems, methods and computer program products according to the embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment or part of the code, and the module, program segment or part of the code contains one or more executable instructions for implementing the specified logical functions. In some alternative implementations, the functions marked in the boxes can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, which can depend on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in an order different from that disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, or they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified function or action, or may be implemented by a combination of dedicated hardware and computer instructions.

Claims

1. A front fog lamp function test method based on a load box, characterized in that: The method comprises: Configure the preconditions, trigger conditions, and exit conditions required for the front fog lamp simulation test on the load box test bench, and obtain the first state of the front fog lamp indicator and the low beam indicator; When the first state of the front fog lamp indicator light is off and the first state of the low beam indicator light is on, it is determined that the precondition is satisfied; After the precondition is met, in response to the trigger condition, performing a lighting test on the front fog lamp indicator light to determine a first test result; After the exit condition is met, performing an extinguishing test on the front fog lamp indicator light to determine a second test result; A functional test result of the front fog lamp is determined according to the first test result and the second test result.

2. The front fog lamp function test method based on the load box according to claim 1 is characterized in that: The load box test bench includes a left load box, a right load box, a rear load box, a left controller, a right controller, a rear controller, a radio frequency key receiver, a radio frequency key, a handheld gear, a bus development environment and a test host: The left load box, the right load box, and the rear load box are connected to the left controller, the right controller, and the rear controller respectively; The radio frequency key receiver is connected to the left load box, and the radio frequency key is used to switch the power switches of the left load box, the right load box and the rear load box; The hand gear is connected to the left load box and is used to generate a gear signal, wherein the gear signal includes a reverse gear signal and a non-reverse gear signal; The test host is connected to the left load box through the bus development environment.

3. The front fog lamp function test method based on the load box according to claim 2 is characterized in that: The fog light indicator light on the left load box simulates the left front fog light, the low beam indicator light on the left load box simulates the left low beam light, the fog light indicator light on the right load box simulates the right front fog light, and the low beam indicator light on the right load box simulates the right low beam light. The bus development environment software of the test host simulates the vehicle speed signal and the steering angle signal in the trigger conditions.

4. The front fog lamp function test method based on the load box according to claim 1 is characterized in that: The configuration of the preconditions required for the front fog lamp simulation test on the load box test bench also includes: Controlling the radio frequency key to start the power switches of the left load box, the right load box, and the rear load box to power on the load box test bench; The low beam indicator light on the load box test bench is turned on, and the front fog lamp indicator light is turned off.

5. The front fog lamp function test method based on the load box according to claim 1 is characterized in that: Before configuring the triggering conditions required for the front fog lamp simulation test on the load box test bench, the method further includes: generating a vehicle speed message and a steering angle message in response to vehicle speed information and steering angle information, wherein the vehicle speed information carries a preset vehicle speed threshold and the steering angle signal carries a preset angle threshold; According to the vehicle speed message and the steering angle message, the vehicle speed signal and the steering angle signal are configured to be valid, and the vehicle speed value is configured as the vehicle speed preset threshold value, and the steering angle value is configured as the angle preset threshold value to obtain the trigger condition.

6. The front fog lamp function test method based on the load box according to claim 1 is characterized in that: The exit conditions include the load box test bench being powered off, the low beam indicator light being off, the vehicle speed signal being invalid, the vehicle speed being greater than a preset vehicle speed threshold, the steering angle signal being invalid, and the steering angle being less than a preset angle threshold.

7. The front fog lamp function test method based on a load box according to any one of claims 1 to 6, characterized in that: Determining the functional test result of the front fog lamp according to the first test result and the second test result includes: Comparing the first test result with the first expected result under the trigger condition to determine the lighting function of the front fog lamp; The second test result is compared with the second expected result under the exit condition to determine whether the front fog lamp is turned off.

8. A front fog lamp function test device based on a load box, characterized in that: The device comprises: A configuration module is used to configure the preconditions, trigger conditions, and exit conditions required for the front fog lamp simulation test on the load box test bench, and obtain the first state of the front fog lamp indicator and the low beam indicator; a precondition determination module, configured to determine that the precondition is satisfied when the first state of the front fog lamp indicator light is off and the first state of the low beam lamp indicator light is on; a lighting function test module, configured to, after the precondition is met and in response to the trigger condition, perform a lighting test on the front fog lamp indicator light to determine a first test result; an extinguishing function test module, configured to perform an extinguishing test on the front fog lamp indicator lamp after the exit condition is met, and determine a second test result; A test result determination module is used to determine a functional test result of the front fog lamp according to the first test result and the second test result.

9. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Test method and device of automobile electronic components

    CN105717392A

  • Automobile fog lamp testing method

    CN107727372A