Testing methods, devices and electronic equipment for automotive electrical components
By building a virtual test scenario consistent with the real road, using laser point cloud surface scanning equipment and CAN bus analysis software to comprehensively test the functions and performance of the entire vehicle's electrical components, solving the problem of insufficient coverage of existing test methods and improving vehicle safety.
Patent Information
- Application Number
- CN202410761855.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2044-06-13
AI Technical Summary
The existing automotive electrical parts testing methods cannot fully cover the different functions and performance of the vehicle controller, resulting in potential problems missing and affecting vehicle safety.
The real road condition data is obtained through laser point cloud scanning equipment, a virtual test scenario is constructed, and the vehicle controller and CAN bus analysis software are combined to determine the real-time change curve of the control signal and output signal of the vehicle's electrical components to achieve comprehensive testing.
It realizes real and comprehensive testing of the electrical components of the entire vehicle, covering their different functions and performances, and improves the accuracy and safety of loading tests.
Smart Images

Figure CN118549157B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electrical component testing, and in particular to a method, device and electronic equipment for testing automotive electrical components. Background Art
[0002] Existing solutions primarily rely on building simple test platforms that verify basic motion commands through the wiring harness inputs of individual electrical components and the vehicle controller. This approach can only test simple signal processing, but because it fails to truly simulate the entire vehicle's electrical environment, the test results are often inaccurate.
[0003] Furthermore, existing testing methods cannot fully cover the different functions and performance of the vehicle controller, will miss many potential problems, and cannot effectively predict and avoid the risks of actual installation operations. Installation testing will affect the safety of the vehicle and create safety hazards. Summary of the Invention
[0004] The purpose of the present invention is to provide a method, device and electronic equipment for testing automotive electrical components to alleviate the problems that existing testing methods cannot comprehensively cover the different functions and performances of the vehicle controller, miss many potential problems, cannot effectively predict and avoid the risks of actual installation operations, and the technical problems that installation testing may affect the safety of the vehicle, thereby improving the safety of the vehicle.
[0005] In the first aspect, an embodiment of the present invention provides a method for testing automotive electrical components, which is applied to a host computer; the host computer is respectively connected to a vehicle controller and a laser point cloud scanning device of a real road set at a preset position; the vehicle controller is connected to the vehicle electrical components via a CAN bus; the method includes: obtaining road condition data of the real road via the laser point cloud scanning device; constructing a virtual test scene based on the road condition data; determining the control signal of the vehicle electrical components based on the virtual test scene, a pre-established vehicle model and a preset automatic driving algorithm; controlling the target vehicle electrical components in the vehicle electrical components to execute the control signal via the vehicle controller; determining the real-time change curve of the output signal of the target electrical component in the vehicle electrical components corresponding to the control signal based on the preset analysis software of the CAN bus; and determining the test result of the vehicle electrical components based on the real-time change curve.
[0006] In a preferred embodiment of the present invention, the above-mentioned road condition data includes: real-time motion data of pedestrians, moving vehicles, animals and obstacles; the step of obtaining the road condition data of the above-mentioned real road through the above-mentioned laser point cloud scanning device includes: obtaining the laser scanning point cloud data of the above-mentioned pedestrians, the above-mentioned moving vehicles, the above-mentioned animals and the above-mentioned obstacles in the above-mentioned real road through the above-mentioned laser point cloud scanning device; saving the above-mentioned laser scanning point cloud data as the road condition data of the above-mentioned real road; the step of constructing a virtual test scene according to the above-mentioned road condition data includes: constructing a virtual test scene according to the above-mentioned laser scanning point cloud data based on a preset simulation software.
[0007] In a preferred embodiment of the present invention, the above-mentioned electrical components of the whole vehicle include: an accelerator pedal; two Hall sensors are provided on the above-mentioned accelerator pedal; the above-mentioned two Hall sensors are respectively used to collect a first output signal and a second output signal corresponding to the above-mentioned accelerator pedal; the step of determining the control signal of the above-mentioned electrical components of the whole vehicle according to the above-mentioned virtual test scenario, the pre-established vehicle model and the preset autonomous driving algorithm includes: determining the opening signal of the above-mentioned accelerator pedal based on the above-mentioned virtual test scenario, the pre-established vehicle model and the preset autonomous driving algorithm; determining the above-mentioned control signal based on the above-mentioned opening signal; the step of determining the real-time change curve of the output signal of the target electrical component in the above-mentioned electrical components of the whole vehicle corresponding to the above-mentioned control signal based on the preset analysis software of the above-mentioned CAN bus includes: determining the first electrical signal curve of the above-mentioned first output signal and the second electrical signal curve of the above-mentioned second output signal of the above-mentioned accelerator pedal corresponding to the above-mentioned control signal based on the preset analysis software of the above-mentioned CAN bus; the step of determining the test result of the above-mentioned electrical components of the whole vehicle according to the above-mentioned real-time change curve includes: determining the test result of the above-mentioned accelerator pedal based on the above-mentioned first electrical signal curve and the above-mentioned second electrical signal curve.
[0008] In a preferred embodiment of the present invention, the step of determining the test results of the above-mentioned electrical components of the whole vehicle based on the above-mentioned first electrical signal curve and the above-mentioned second electrical signal curve includes: determining the test results of the above-mentioned accelerator pedal based on the size relationship between the above-mentioned first electrical signal curve and the above-mentioned second electrical signal curve and the preset threshold range respectively.
[0009] In a preferred embodiment of the present invention, the step of determining the test results of the above-mentioned electrical components of the whole vehicle based on the above-mentioned first electrical signal curve and the above-mentioned second electrical signal curve includes: selecting sampling points on the above-mentioned first electrical signal curve and the above-mentioned second electrical signal curve based on preset parameters; subtracting the first target electrical signal of the first electrical signal curve corresponding to the above-mentioned sampling point from the second target electrical signal of the above-mentioned second electrical signal curve corresponding to the above-mentioned sampling point to obtain a difference; determining the synchronization status of the above-mentioned first electrical signal curve and the above-mentioned second electrical signal curve based on the above-mentioned difference and a preset difference threshold; and determining the test result of the above-mentioned accelerator pedal based on the above-mentioned synchronization status.
[0010] In a preferred embodiment of the present invention, the first electrical signal curve includes: a first voltage curve signal and a first current curve signal; the second electrical signal curve includes: a second voltage curve signal and a second current curve signal.
[0011] In a preferred embodiment of the present invention, the host computer is provided with a CAN bus data recorder and a CAN to USB interface.
[0012] In a preferred embodiment of the present invention, the CAN bus data recorder is a Kvaser product; and the CAN to USB interface is a dual-channel Tongxing TC1013 product.
[0013] In a preferred embodiment of the present invention, the above-mentioned vehicle controller is connected to the above-mentioned vehicle electrical components through the I / O port test module; the step of controlling the target vehicle electrical components among the above-mentioned vehicle electrical components to execute the above-mentioned control signal through the above-mentioned vehicle controller includes: controlling the target vehicle electrical components among the above-mentioned vehicle electrical components to execute the above-mentioned control signal through the above-mentioned vehicle controller through the above-mentioned I / O port test module.
[0014] In a preferred embodiment of the present invention, the above-mentioned host computer is preset with an electrical virtual environment based on Labview; the step of determining the test results of the above-mentioned electrical components of the whole vehicle according to the above-mentioned real-time change curve includes: based on the electrical virtual environment of Labview, determining the test results of the above-mentioned electrical components of the whole vehicle according to the above-mentioned real-time change curve.
[0015] In a preferred embodiment of the present invention, the above-mentioned vehicle electrical components are connected to an oscilloscope; after the step of determining the real-time change curve of the output signal of the target electrical component in the above-mentioned vehicle electrical components corresponding to the above-mentioned control signal based on the preset analysis software of the above-mentioned CAN bus, the above-mentioned method includes: calibrating the above-mentioned real-time change curve through the above-mentioned oscilloscope to obtain the calibrated real-time change curve; the step of determining the test results of the above-mentioned vehicle electrical components based on the above-mentioned real-time change curve includes: determining the test results of the above-mentioned vehicle electrical components based on the above-mentioned calibrated real-time change curve.
[0016] In a preferred embodiment of the present invention, the above-mentioned host computer is connected to a display; after the step of determining the test results of the above-mentioned vehicle electrical components according to the above-mentioned calibrated real-time change curve, the above-mentioned method includes: displaying the above-mentioned real-time change curve and the above-mentioned test results through a display.
[0017] In a preferred embodiment of the present invention, the above-mentioned vehicle model is constructed by the following steps: obtaining the vehicle's size parameters, air resistance coefficient and rolling resistance coefficient; and determining the above-mentioned vehicle model based on the above-mentioned size parameters, air resistance coefficient and rolling resistance coefficient.
[0018] In a second aspect, an embodiment of the present invention provides a testing device for automotive electrical components, which is applied to a host computer; the host computer is respectively connected to a vehicle controller and a laser point cloud scanning device of a real road set at a preset position; the vehicle controller is connected to the vehicle electrical components via a CAN bus; the device includes: a data acquisition module for acquiring road condition data of the real road via the laser point cloud scanning device; constructing a virtual test scene based on the road condition data; a control signal determination module for determining the control signal of the vehicle electrical components based on the virtual test scene, a pre-established vehicle model and a preset automatic driving algorithm; an execution module for controlling the target vehicle electrical components in the vehicle electrical components to execute the control signal through the vehicle controller; a voltage output module for determining the real-time change curve of the output signal of the target electrical component in the vehicle electrical components corresponding to the control signal based on the preset analysis software of the CAN bus; a test result output module for determining the test result of the vehicle electrical components based on the real-time change curve.
[0019] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the above-mentioned automotive electrical component testing method.
[0020] The embodiments of the present invention have the following beneficial technical effects:
[0021] The embodiment of the present invention provides a method, device, and electronic device for testing automotive electrical components, which are applied to a host computer; the host computer is respectively connected to a vehicle controller and a laser point cloud scanning device of a real road set at a preset position; the vehicle controller is connected to the vehicle electrical components via a CAN bus; the method includes: obtaining road condition data of the real road via the laser point cloud scanning device; constructing a virtual test scene based on the road condition data; determining control signals for the vehicle electrical components based on the virtual test scene, a pre-established vehicle model, and a preset autonomous driving algorithm; controlling a target vehicle electrical component in the vehicle electrical components to execute the control signal via the vehicle controller; determining a real-time change curve of the output signal of the target electrical component in the vehicle electrical components corresponding to the control signal based on preset analysis software for the CAN bus; and determining the test results of the vehicle electrical components based on the real-time change curve. The method can obtain the test results of each vehicle electrical component by setting a virtual scene consistent with the real road, and the method truly and comprehensively covers the different functions and performances of the vehicle controller.
[0022] Other features and advantages disclosed in this embodiment will be described in the subsequent description, or some features and advantages can be inferred or determined without doubt from the description, or can be learned by implementing the above-mentioned technology disclosed in this embodiment.
[0023] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0025] Figure 1 A schematic flow chart of a method for testing automotive electrical components provided by an embodiment of the present invention;
[0026] Figure 2 A schematic flow chart of another method for testing automotive electrical components provided by an embodiment of the present invention;
[0027] Figure 3 A schematic diagram of a first voltage curve signal of an accelerator pedal provided by an embodiment of the present invention;
[0028] Figure 4 A schematic diagram of a second voltage curve signal of an accelerator pedal provided by an embodiment of the present invention;
[0029] Figure 5 A schematic structural diagram of a testing device for automotive electrical components provided by an embodiment of the present invention;
[0030] Figure 6 A schematic structural diagram of an electronic device provided by an embodiment of the present invention.
[0031] Icons: 31 - data acquisition module; 32 - control signal determination module; 33 - execution module; 34 - voltage output module; 35 - test result output module; 41 - processor; 42 - memory; 43 - bus; 44 - communication interface. DETAILED DESCRIPTION
[0032] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations.
[0033] Existing testing methods cannot fully cover the different functions and performance of vehicle controllers, will miss many potential problems, and cannot effectively predict and avoid the risks of actual installation operations. Installation testing will affect vehicle safety and create safety hazards.
[0034] Based on this, embodiments of the present invention provide a method, apparatus, and electronic device for testing automotive electrical components. This method, by setting up a virtual scene consistent with a real road, can obtain test results for each electrical component in the vehicle. This method realistically and comprehensively covers the different functions and performance of the vehicle controller. To facilitate understanding of the embodiments of the present invention, the automotive electrical component testing method is first introduced.
[0035] Example 1
[0036] In this embodiment, Figure 1 This is a flow chart of a method for testing automotive electrical components according to an embodiment of the present invention. The method is applied to a host computer connected to a vehicle controller and a laser point cloud scanner of a real road at a preset location. The vehicle controller is connected to the vehicle's electrical components via a CAN bus.
[0037] Depend on Figure 1 As can be seen, the method includes:
[0038] Step S101: Acquire the road condition data of the real road through the laser point cloud scanning device; and construct a virtual test scene based on the road condition data.
[0039] In this embodiment, the host computer, vehicle controller and vehicle electrical components constitute a test bench system.
[0040] The test bench system further comprises a low-voltage adjustable power supply module, a vehicle controller, an I / O port test module, an accelerator pedal, a brake pedal, an instrument panel, a computer, host computer software, Kvaser hardware, a dual-channel Tongxing TC1013, and an oscilloscope. The host computer's configuration parameters include a 2.5GHz processor, 8GB of memory, and a 500GB hard drive. In conjunction with analysis software, the software simulating the vehicle's electrical environment must be capable of simulating the transmission and processing of various electrical signals, as well as various electrical faults.
[0041] Furthermore, the aforementioned vehicle electrical components are connected to the same CAN network via CAN lines, achieving effective communication. After calibrating the input signal with an oscilloscope, the vehicle controller output is calibrated and tested to verify output validity. The host computer builds the vehicle electrical system, accesses the CAN bus via Kavser and Tongxing TC1013, simulates the output of the battery system, motor system, and control system, and connects to the vehicle electrical components via a signal injection interface. This allows for powering on and off of the components, signal processing, information display, vehicle status monitoring, fault reporting, and troubleshooting.
[0042] Furthermore, a virtual test scenario is constructed based on the above-mentioned real road condition data through preset simulation software.
[0043] Step S102: Determine the control signals of the above-mentioned electrical components of the whole vehicle based on the above-mentioned virtual test scenario, the pre-established vehicle model and the preset autonomous driving algorithm.
[0044] The vehicle model is a three-dimensional model of the vehicle to be tested.
[0045] In this embodiment, step S102 includes: first, placing the vehicle model at a preset point in the virtual test scene, and then driving the vehicle model in the virtual test scene using an autonomous driving algorithm.
[0046] Furthermore, assuming that there are no obstacles on the driving route of the above-mentioned vehicle model in the above-mentioned virtual test scenario, it can be determined that the control signal of the accelerator pedal in the above-mentioned vehicle electrical components is acceleration; assuming that there are obstacles on the driving route of the above-mentioned vehicle model in the above-mentioned virtual test scenario, it can be determined that the control signal of the above-mentioned accelerator pedal is deceleration.
[0047] Step S103: controlling the target vehicle electrical components among the vehicle electrical components to execute the control signal through the vehicle controller.
[0048] Step S104: Based on the preset analysis software of the CAN bus, a real-time variation curve of the output signal of the target electrical component in the electrical components of the vehicle corresponding to the control signal is determined.
[0049] Step S105: Determine the test results of the above-mentioned electrical components of the whole vehicle according to the above-mentioned real-time change curve.
[0050] An embodiment of the present invention provides a method for testing automotive electrical components, which is applied to a host computer; the host computer is respectively connected to a vehicle controller and a laser point cloud scanning device of a real road set at a preset position; the vehicle controller is connected to the vehicle electrical components via a CAN bus; the method comprises: obtaining road condition data of the real road via the laser point cloud scanning device; constructing a virtual test scene based on the road condition data; determining control signals of the vehicle electrical components based on the virtual test scene, a pre-established vehicle model, and a preset autonomous driving algorithm; controlling a target vehicle electrical component in the vehicle electrical components to execute the control signal via the vehicle controller; determining a real-time change curve of the output signal of the target electrical component in the vehicle electrical components corresponding to the control signal based on preset analysis software of the CAN bus; and determining the test results of the vehicle electrical components based on the real-time change curve. The method can obtain the test results of each vehicle electrical component by setting a virtual scene consistent with the real road, and the method truly and comprehensively covers the different functions and performances of the vehicle controller.
[0051] Example 2
[0052] Based on the above embodiments, Figure 2 A schematic flow chart of another method for testing automotive electrical components provided by an embodiment of the present invention.
[0053] Among them, the method is applied to a host computer; the above-mentioned host computer is respectively connected to the vehicle controller and a laser point cloud scanning device of a real road set at a preset position; the above-mentioned vehicle controller is connected to the vehicle electrical components through a CAN bus.
[0054] Depend on Figure 2 As can be seen, the method includes:
[0055] Step S201: Obtain laser scanning point cloud data of pedestrians, moving vehicles, animals and obstacles on a real road through the above-mentioned laser point cloud scanning device; save the above-mentioned laser scanning point cloud data as the road condition data of the above-mentioned real road; and construct a virtual test scene based on the above-mentioned laser scanning point cloud data based on the preset simulation software.
[0056] Step S202: Determine the control signals of the above-mentioned electrical components of the whole vehicle based on the above-mentioned virtual test scenario, the pre-established vehicle model and the preset autonomous driving algorithm.
[0057] In this embodiment, the vehicle model is constructed by the following steps: obtaining the vehicle's size parameters, air resistance coefficient, and rolling resistance coefficient; and determining the vehicle model based on the size parameters, air resistance coefficient, and rolling resistance coefficient.
[0058] Step S203: controlling the target vehicle electrical components among the vehicle electrical components to execute the control signal through the vehicle controller.
[0059] Step S204: Based on the preset analysis software of the CAN bus, a real-time change curve of the output signal of the target electrical component in the electrical components of the vehicle corresponding to the control signal is determined.
[0060] Step S205: Determine the test results of the above-mentioned electrical components of the whole vehicle according to the above-mentioned real-time change curve.
[0061] In actual operation, the above-mentioned step S202 also includes: determining the fault control signal of the above-mentioned vehicle electrical components based on the above-mentioned virtual test scenario, the pre-established vehicle model and the preset automatic driving algorithm; the above-mentioned step S203 includes: controlling the target vehicle electrical components in the above-mentioned vehicle electrical components to execute the above-mentioned fault control signal through the above-mentioned vehicle controller; the above-mentioned step S204 also includes: determining the real-time change curve of the fault output signal of the target electrical component in the above-mentioned vehicle electrical components corresponding to the above-mentioned fault control signal based on the preset analysis software of the above-mentioned CAN bus; the above-mentioned step S205 also includes: determining the test results of the above-mentioned vehicle electrical components based on the real-time change curve of the above-mentioned fault output signal.
[0062] Here, the difference between the fault control signal and the control signal is a preset threshold. For example, if the distance to a pedestrian in front of the vehicle is 150 meters, the opening corresponding to the control signal is 20%, and the opening corresponding to the fault control signal is 30%, the real-time variation curve of the fault output signal can be determined, and the test results of the vehicle's electrical components can be determined, facilitating diagnosis and identification of the fault control signal.
[0063] In one embodiment, the above-mentioned electrical components of the whole vehicle include: an accelerator pedal; two Hall sensors are provided on the above-mentioned accelerator pedal; the above-mentioned two Hall sensors are respectively used to collect the first output signal and the second output signal corresponding to the above-mentioned accelerator pedal; the step of determining the control signal of the above-mentioned electrical components of the whole vehicle according to the above-mentioned virtual test scenario, the pre-established vehicle model and the preset automatic driving algorithm includes: determining the opening signal of the above-mentioned accelerator pedal based on the above-mentioned virtual test scenario, the pre-established vehicle model and the preset automatic driving algorithm; determining the above-mentioned control signal according to the above-mentioned opening signal; the above-mentioned step S204 includes: determining the first electrical signal curve of the above-mentioned first output signal and the second electrical signal curve of the above-mentioned second output signal of the above-mentioned accelerator pedal corresponding to the above-mentioned control signal based on the preset analysis software of the above-mentioned CAN bus; step S205 includes: determining the test result of the above-mentioned accelerator pedal according to the above-mentioned first electrical signal curve and the above-mentioned second electrical signal curve.
[0064] Furthermore, the step of determining the test results of the above-mentioned electrical components of the whole vehicle based on the above-mentioned first electrical signal curve and the above-mentioned second electrical signal curve includes: determining the test results of the above-mentioned accelerator pedal based on the size relationship between the above-mentioned first electrical signal curve and the above-mentioned second electrical signal curve and the preset threshold range respectively.
[0065] Furthermore, the step of determining the test results of the above-mentioned electrical components of the whole vehicle based on the above-mentioned first electrical signal curve and the above-mentioned second electrical signal curve includes: selecting sampling points on the above-mentioned first electrical signal curve and the above-mentioned second electrical signal curve based on preset parameters; subtracting the first target electrical signal of the first electrical signal curve corresponding to the above-mentioned sampling point from the second target electrical signal of the above-mentioned second electrical signal curve corresponding to the above-mentioned sampling point to obtain a difference; determining the synchronization status of the above-mentioned first electrical signal curve and the above-mentioned second electrical signal curve based on the above-mentioned difference and a preset difference threshold; and determining the test result of the above-mentioned accelerator pedal based on the above-mentioned synchronization status.
[0066] Here, when the above difference is less than 0.5V, the synchronization of the above first electrical signal curve and the above second electrical signal curve is determined to be synchronized; when the above difference is greater than or equal to 0.5V, the synchronization of the above first electrical signal curve and the above second electrical signal curve is determined to be asynchronous.
[0067] In one embodiment, the first electrical signal curve includes: a first voltage curve signal and a first current curve signal; the second electrical signal curve includes: a second voltage curve signal and a second current curve signal.
[0068] For ease of understanding, Figure 3 A schematic diagram of a first voltage curve signal of an accelerator pedal provided by an embodiment of the present invention; Figure 4 A schematic diagram of a second voltage curve signal of an accelerator pedal provided by an embodiment of the present invention.
[0069] Depend on Figure 3 and Figure 4 It can be seen that when the voltage of the control signal of the accelerator pedal is 5V, the first voltage curve signal is between the preset threshold range of 775~782mv, and the second voltage curve signal is between the preset threshold range of 382~398mv, so the test results of the above accelerator pedal meet the test requirements.
[0070] Furthermore, the host computer is provided with a CAN bus data recorder and a CAN to USB interface.
[0071] The CAN bus data recorder is Kvaser; the CAN to USB interface is the dual-channel Tongxing TC1013.
[0072] Furthermore, the above-mentioned vehicle controller is connected to the above-mentioned vehicle electrical components through the I / O port test module; the step of controlling the target vehicle electrical components among the above-mentioned vehicle electrical components to execute the above-mentioned control signal through the above-mentioned vehicle controller includes: controlling the target vehicle electrical components among the above-mentioned vehicle electrical components to execute the above-mentioned control signal through the above-mentioned vehicle controller through the above-mentioned I / O port test module.
[0073] Furthermore, the above-mentioned host computer is preset with an electrical virtual environment based on Labview; the step of determining the test results of the above-mentioned electrical components of the whole vehicle according to the above-mentioned real-time change curve includes: based on the electrical virtual environment of Labview, determining the test results of the above-mentioned electrical components of the whole vehicle according to the above-mentioned real-time change curve.
[0074] Furthermore, the above-mentioned electrical components of the whole vehicle are connected to an oscilloscope; after the step of determining the real-time change curve of the output signal of the target electrical components in the above-mentioned electrical components of the whole vehicle corresponding to the above-mentioned control signal based on the preset analysis software of the above-mentioned CAN bus, the above-mentioned method includes: calibrating the above-mentioned real-time change curve through the above-mentioned oscilloscope to obtain the calibrated real-time change curve; the step of determining the test results of the above-mentioned electrical components of the whole vehicle according to the above-mentioned real-time change curve includes: determining the test results of the above-mentioned electrical components of the whole vehicle according to the above-mentioned calibrated real-time change curve.
[0075] Furthermore, the host computer is connected to a display; after the step of determining the test results of the vehicle electrical components according to the calibrated real-time change curve, the method includes: displaying the real-time change curve and the test results through a display.
[0076] An embodiment of the present invention provides a testing method for automotive electrical components, which is applied to a host computer; the host computer is respectively connected to a vehicle controller and a laser point cloud scanning device of a real road set at a preset position; the vehicle controller is connected to the vehicle electrical components via a CAN bus; the method includes: obtaining laser scanning point cloud data of pedestrians, moving vehicles, animals and obstacles on a real road through the laser point cloud scanning device; saving the laser scanning point cloud data as road condition data of the real road; constructing a virtual test scene based on the laser scanning point cloud data based on preset simulation software; determining the control signal of the vehicle electrical components based on the virtual test scene, a pre-established vehicle model and a preset automatic driving algorithm; controlling the target vehicle electrical components in the vehicle electrical components to execute the control signal through the vehicle controller; determining the real-time change curve of the output signal of the target electrical component in the vehicle electrical components corresponding to the control signal based on the preset analysis software of the CAN bus; and determining the test result of the vehicle electrical components based on the real-time change curve. This method sets up a virtual scene that is consistent with real road conditions, thereby obtaining test results for each vehicle electrical component. This method truly and comprehensively covers the different functions and performance of the vehicle controller.
[0077] Example 3
[0078] Based on the above embodiments, Figure 5 A schematic structural diagram of a testing device for automotive electrical components provided by an embodiment of the present invention.
[0079] Depend on Figure 5 As can be seen, the device includes:
[0080] The data acquisition module 31 is used to acquire the road condition data of the above-mentioned real road through the above-mentioned laser point cloud scanning device; and construct a virtual test scene based on the above-mentioned road condition data.
[0081] The control signal determination module 32 is used to determine the control signals of the above-mentioned electrical components of the whole vehicle based on the above-mentioned virtual test scenario, the pre-established vehicle model and the preset automatic driving algorithm.
[0082] The execution module 33 is used to control the target vehicle electrical components among the above-mentioned vehicle electrical components to execute the above-mentioned control signal through the above-mentioned vehicle controller.
[0083] The voltage output module 34 is used to determine the real-time change curve of the output signal of the target electrical component in the above-mentioned vehicle electrical components corresponding to the above-mentioned control signal based on the preset above-mentioned CAN bus analysis software.
[0084] The test result output module 35 is used to determine the test results of the above-mentioned electrical components of the whole vehicle according to the above-mentioned real-time change curve.
[0085] The data acquisition module 31 , the control signal determination module 32 , the execution module 33 , the voltage output module 34 and the test result output module 35 are connected in sequence.
[0086] In one embodiment, the road condition data includes: real-time motion data of pedestrians, moving vehicles, animals and obstacles; the data acquisition module 31 is also used to obtain the laser scanning point cloud data of the pedestrians, moving vehicles, animals and obstacles in the real road through the laser point cloud scanning device; save the laser scanning point cloud data as the road condition data of the real road; based on the preset simulation software, construct a virtual test scene according to the laser scanning point cloud data.
[0087] In one embodiment, the above-mentioned electrical components of the whole vehicle include: an accelerator pedal; two Hall sensors are provided on the above-mentioned accelerator pedal; the above-mentioned two Hall sensors are respectively used to collect the first output signal and the second output signal corresponding to the above-mentioned accelerator pedal; the control signal determination module 32 is also used to determine the opening signal of the above-mentioned accelerator pedal based on the above-mentioned virtual test scene, the pre-established vehicle model and the preset automatic driving algorithm; according to the above-mentioned opening signal, the above-mentioned control signal is determined; the voltage output module 34 is also used to determine the first electrical signal curve of the above-mentioned first output signal and the second electrical signal curve of the above-mentioned second output signal of the above-mentioned accelerator pedal corresponding to the above-mentioned control signal based on the preset analysis software of the above-mentioned CAN bus; the above-mentioned test result output module 35 is also used to determine the test result of the above-mentioned accelerator pedal based on the above-mentioned first electrical signal curve and the above-mentioned second electrical signal curve.
[0088] In one embodiment, the test result output module 35 is further configured to determine the test result of the accelerator pedal according to the magnitude relationship between the first electrical signal curve and the second electrical signal curve and a preset threshold range.
[0089] In one embodiment, the test result output module 35 is further used to select sampling points on the first electrical signal curve and the second electrical signal curve based on preset parameters; subtract the first target electrical signal of the first electrical signal curve corresponding to the sampling point from the second target electrical signal of the second electrical signal curve corresponding to the sampling point to obtain a difference; determine the synchronization status of the first electrical signal curve and the second electrical signal curve based on the difference and a preset difference threshold; and determine the test result of the accelerator pedal based on the synchronization status.
[0090] In one embodiment, the vehicle controller is connected to the vehicle electrical components through an I / O port test module; the control signal determination module 32 is also used to control the target vehicle electrical components in the vehicle electrical components to execute the control signal through the vehicle controller through the I / O port test module.
[0091] In one embodiment, the host computer is preset with an electrical virtual environment based on Labview; the test result output module 35 is also used to determine the test results of the electrical components of the vehicle based on the electrical virtual environment of Labview and according to the real-time change curve.
[0092] In one embodiment, the test result output module 35 is further configured to calibrate the real-time change curve through the oscilloscope to obtain a calibrated real-time change curve; and determine the test results of the vehicle electrical components based on the calibrated real-time change curve.
[0093] In one embodiment, the host computer is connected to a display; the test result output module 35 is further configured to display the real-time change curve and the test result through the display.
[0094] The implementation principle and technical effects of the automotive electronic component testing device provided in the embodiment of the present invention are the same as those of the aforementioned automotive electronic component testing method embodiment. For the sake of brief description, any matters not mentioned in the embodiment of the automotive electronic component testing device can be referred to the corresponding content in the aforementioned method embodiment.
[0095] The embodiment of the present invention further provides an electronic device, such as Figure 6 As shown, it is a schematic diagram of the structure of the electronic device, wherein the electronic device includes a processor 41 and a memory 42, the memory 42 stores machine executable instructions that can be executed by the processor 41, and the processor 41 executes the machine executable instructions to implement the above-mentioned automotive electronic component testing method.
[0096] exist Figure 6 In the illustrated embodiment, the electronic device further includes a bus 43 and a communication interface 44 , wherein the processor 41 , the communication interface 44 and the memory 42 are connected via the bus.
[0097] The memory 42 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is achieved through at least one communication interface 44 (which may be wired or wireless), and may use the Internet, a wide area network, a local area network, a metropolitan area network, etc. The bus may be an ISA bus, a PCI bus, or an EISA bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0098] The processor 41 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in the processor 41 or by software instructions. The processor 41 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may 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, or discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. The storage medium is located in the memory, and processor 41 reads information from memory 42 and, in conjunction with its hardware, completes the steps of the automotive electronic component testing method of the aforementioned embodiment.
[0099] An embodiment of the present invention further provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned automotive electronic component testing method. The specific implementation can be found in the aforementioned method embodiment and will not be repeated here.
[0100] The automotive electronic component testing method, automotive electronic component testing device, and electronic device computer program product provided in the embodiments of the present invention include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the automotive electronic component testing method described in the previous method embodiments. The specific implementation can be found in the method embodiments and will not be repeated here.
[0101] Unless otherwise specified, the relative steps, numerical expressions, and values of the components and steps described in these embodiments do not limit the scope of the present invention. If the above-mentioned functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0102] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present invention, which are used to illustrate the technical solutions of the present invention rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the above-mentioned embodiments, ordinary technicians in this field should understand that any technician familiar with this technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed by the present invention, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered by the protection scope of the present invention.
Claims
1. A method for testing automotive electrical components, characterized in that: The invention is applied to a host computer; the host computer is respectively connected to a vehicle controller and a laser point cloud scanning device of a real road set at a preset position; the vehicle controller is connected to the electrical components of the vehicle via a CAN bus; the electrical components of the vehicle include: an accelerator pedal; two Hall sensors are provided on the accelerator pedal; the two Hall sensors are respectively used to collect a first output signal and a second output signal corresponding to the accelerator pedal; the host computer is provided with a CAN bus data recorder and a CAN-to-USB interface; the CAN bus data recorder is a Kvaser; the CAN-to-USB interface is a dual-channel Tongxing TC1013; the vehicle controller is connected to the electrical components of the vehicle via an I / O port test module; the host computer is preset with an electrical virtual environment based on Labview; the method includes: Acquire laser scanning point cloud data of pedestrians, moving vehicles, animals, and obstacles on the real road through the laser point cloud scanning device; save the laser scanning point cloud data as road condition data of the real road; Based on the preset simulation software, a virtual test scene is constructed according to the laser scanning point cloud data; Based on the virtual test scenario, a pre-established vehicle model, and a preset autonomous driving algorithm, the accelerator pedal opening signal is determined; the vehicle model is constructed by the following steps: Obtain the vehicle's size parameters, air resistance coefficient, and rolling resistance coefficient; Determining the vehicle model according to the size parameters, the air resistance coefficient, and the rolling resistance coefficient; determining a control signal according to the opening signal; Controlling a target vehicle electrical component among the vehicle electrical components to execute the control signal through the vehicle controller via the I / O port test module; Determine, based on the preset CAN bus analysis software, a real-time change curve of the output signal of the target electrical component in the electrical components of the vehicle corresponding to the control signal; The step of determining, based on the preset analysis software of the CAN bus, a real-time change curve of the output signal of the target electrical component in the electrical component of the vehicle corresponding to the control signal comprises: Determining, based on preset analysis software of the CAN bus, a first electrical signal curve of the first output signal and a second electrical signal curve of the second output signal of the accelerator pedal corresponding to the control signal; Determining test results of the electrical components of the vehicle according to the real-time change curve; The step of determining the test results of the electrical components of the vehicle according to the real-time change curve includes: Selecting sampling points on the first electrical signal curve and the second electrical signal curve based on preset parameters; subtracting a first target electrical signal of the first electrical signal curve corresponding to the sampling point from a second target electrical signal of the second electrical signal curve corresponding to the sampling point to obtain a difference; Determining the synchronization status of the first electrical signal curve and the second electrical signal curve based on the difference and a preset difference threshold; wherein, when the difference is less than 0.5V, determining that the synchronization status of the first electrical signal curve and the second electrical signal curve is synchronized; when the difference is greater than or equal to 0.5V, determining that the synchronization status of the first electrical signal curve and the second electrical signal curve is asynchronous; determining a test result of the accelerator pedal according to the synchronization condition; Wherein, the first electrical signal curve includes: a first voltage curve signal and a first current curve signal; the second electrical signal curve includes: a second voltage curve signal and a second current curve signal; The step of determining the test results of the electrical components of the vehicle according to the real-time change curve further includes: After the steps of determining the test results of the electrical components of the vehicle according to the real-time change curve based on the electrical virtual environment of Labview; connecting the electrical components of the vehicle to an oscilloscope; and determining the real-time change curve of the output signal of the target electrical component in the electrical components of the vehicle corresponding to the control signal based on the preset analysis software of the CAN bus, the method includes: Calibrate the real-time change curve using the oscilloscope to obtain a calibrated real-time change curve; The step of determining the test results of the electrical components of the vehicle according to the real-time change curve includes: After the steps of determining the test results of the electrical components of the vehicle according to the calibrated real-time change curve, wherein the host computer is connected to a display, and determining the test results of the electrical components of the vehicle according to the calibrated real-time change curve, the method includes: The real-time change curve and the test result are displayed on a display.
2. A testing device for automotive electrical components, characterized in that: Applied to a host computer; the host computer is respectively connected to a vehicle controller and a laser point cloud scanning device of a real road set at a preset position; the vehicle controller is connected to the vehicle electrical components via a CAN bus; the vehicle electrical components include: an accelerator pedal; the accelerator pedal is provided with two Hall sensors; the two Hall sensors are respectively used to collect a first output signal and a second output signal corresponding to the accelerator pedal; the host computer is provided with a CAN bus data recorder and a CAN-to-USB interface; the CAN bus data recorder is a Kvaser; the CAN-to-USB interface is a dual-channel Tongxing TC1013; the vehicle controller is connected to the vehicle electrical components via an I / O port test module; the host computer is preset with an electrical virtual environment based on Labview; the device includes: a data acquisition module for acquiring laser scanning point cloud data of pedestrians, moving vehicles, animals, and obstacles on the real road using the laser point cloud scanning device; saving the laser scanning point cloud data as road condition data of the real road; and constructing a virtual test scene based on the laser scanning point cloud data using preset simulation software; A control signal determination module is configured to determine an accelerator pedal opening signal based on the virtual test scenario, a pre-established vehicle model, and a preset autonomous driving algorithm; and determine a control signal based on the opening signal. The vehicle model is constructed by the following steps: Obtain the vehicle's size parameters, air resistance coefficient, and rolling resistance coefficient; Determining the vehicle model according to the size parameters, the air resistance coefficient, and the rolling resistance coefficient; an execution module, configured to control a target vehicle electrical component among the vehicle electrical components to execute the control signal through the vehicle controller and the I / O port test module; A voltage output module is configured to determine, based on the preset analysis software for the CAN bus, a real-time change curve of an output signal of a target electrical component among the electrical components of the vehicle corresponding to the control signal; the step of determining, based on the preset analysis software for the CAN bus, a real-time change curve of an output signal of a target electrical component among the electrical components of the vehicle corresponding to the control signal comprises: determining, based on the preset analysis software for the CAN bus, a first electrical signal curve of the first output signal and a second electrical signal curve of the second output signal of the accelerator pedal corresponding to the control signal; A test result output module is configured to determine the test results of the vehicle electrical components based on the real-time change curve; wherein the step of determining the test results of the vehicle electrical components based on the real-time change curve includes: selecting sampling points on the first electrical signal curve and the second electrical signal curve based on preset parameters; subtracting a first target electrical signal of the first electrical signal curve corresponding to the sampling point from a second target electrical signal of the second electrical signal curve corresponding to the sampling point to obtain a difference; determining the synchronization status of the first electrical signal curve and the second electrical signal curve based on the difference and a preset difference threshold; wherein when the difference is less than 0.5V, the synchronization status of the first electrical signal curve and the second electrical signal curve is determined to be synchronized; when the difference is greater than or equal to 0.5V, the synchronization status of the first electrical signal curve and the second electrical signal curve is determined to be asynchronous; and determining the test result of the accelerator pedal based on the synchronization status; wherein the first electrical signal curve includes: a first voltage curve signal and a first current curve signal; and the second electrical signal curve includes: a second voltage curve signal and a second current curve signal. The step of determining the test results of the vehicle electrical components based on the real-time change curve also includes: Based on the electrical virtual environment of Labview, the test results of the electrical components of the whole vehicle are determined according to the real-time change curve; the electrical components of the whole vehicle are connected to an oscilloscope; the real-time change curve is calibrated by the oscilloscope to obtain a calibrated real-time change curve; based on the calibrated real-time change curve, the test results of the electrical components of the whole vehicle are determined; the host computer is connected to a display; the real-time change curve and the test results are displayed on the display.
3. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the automotive electrical component testing method according to claim 1.
Citation Information
Patent Citations
Hall sensor and control system for electronic throttle valve
CN102661753A
Auto-driving vehicle testing method, device and system
CN108762226A
Automatic driving algorithm simulation test method and device and electronic equipment
CN114035545A