Method and device for testing automobile electrical parts and electronic equipment

Through virtual test scenarios and CAN bus analysis combined with laser point cloud scanning equipment, the problem that existing technology cannot fully test the vehicle controller is solved, real and comprehensive testing of automotive electrical components is realized, and vehicle safety is improved. sex.

CN118549157AActive Publication Date: 2024-08-27NANJING GOLDEN DRAGON BUS CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410761855.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-08-27
Estimated Expiration
2044-06-13

AI Technical Summary

Technical Problem

Existing testing methods for automotive electrical components cannot fully cover the different functions and performances of the vehicle controller, resulting in potential problems being missed, making it impossible to effectively predict and avoid risks in loading operations, and affecting vehicle safety.

Method used

By connecting to the laser point cloud scanning equipment of the real road, road condition data is obtained, a virtual test scenario is constructed, combined with the pre-established vehicle model and automatic driving algorithm, the control signals of the vehicle's electrical components are determined, and the control signals of the vehicle's electrical components are determined in real time through the CAN bus analysis software. Monitor output signal changes and obtain test results.

Benefits of technology

Realistic and comprehensive testing of the vehicle's electrical components is achieved, covering its different functions and performances, improving the accuracy and safety of the test and effectively avoiding the risks of loading operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118549157A
    Figure CN118549157A
Patent Text Reader

Abstract

The invention provides a method and a device for testing automobile electrical parts, and electronic equipment. The method comprises the following steps: acquiring road condition data of a real road through laser point cloud scanning equipment; constructing a virtual test scene according to the road condition data; according to the virtual test scene, the vehicle model and a preset automatic driving algorithm, a control signal of the electrical parts of the whole vehicle is determined; controlling a target whole vehicle electrical part in the whole vehicle electrical parts to execute the control signal through the whole vehicle controller; based on analysis software of a CAN bus, determining a real-time change curve of an output signal of a target electric appliance part in the whole vehicle electric parts corresponding to the control signal; and according to the real-time change curve, determining a test result of the electrical parts of the whole vehicle. According to the method, the virtual scene consistent with the real road is set, so that the test result of each whole vehicle electrical component can be obtained, and the method truly and comprehensively covers different functions and performances of the whole vehicle controller.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electrical component testing, and in particular to a method, a device and an electronic device for testing automotive electrical components. Background Art

[0002] The existing solution is mainly to build a simple test platform, which can only verify basic action instructions through the input of individual electrical components of the car and the I / O terminal wiring harness of the vehicle controller. This method can only test simple signal processing, but because it cannot truly simulate the electrical environment of the whole vehicle, the accuracy of the test results is often not high.

[0003] Furthermore, existing testing methods cannot fully cover the different functions and performances of the vehicle controller, will miss many potential problems, and cannot effectively predict and avoid the risks of actual loading operations. Loading tests will affect the safety of the vehicle and cause 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, will miss many potential problems, cannot effectively predict and avoid the risks of actual loading operations, and the technical problems that loading tests will 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 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 automatic 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 an output signal of a 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 test results 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; according to the above-mentioned road condition data, the step of constructing a virtual test scene includes: based on a preset simulation software, constructing a virtual test scene according to the above-mentioned laser scanning point cloud data.

[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 arranged 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 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 according to 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 vehicle electrical components according to 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 according to the above-mentioned difference and a preset difference threshold; and determining the test result of the above-mentioned accelerator pedal according to 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 Kvaser; the CAN to USB interface is dual-channel Tongxing TC1013.

[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 components 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 according to the above-mentioned real-time change curve includes: determining the test results of the above-mentioned vehicle electrical components according to the above-mentioned calibrated real-time change curve.

[0016] In a preferred embodiment of the present invention, 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 comprises: displaying the real-time change curve and the 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 size parameters, air resistance coefficient and rolling resistance coefficient of the vehicle; and determining the above-mentioned vehicle model based on the above-mentioned size parameters, air resistance coefficient and rolling resistance coefficient.

[0018] In the 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 through a CAN bus; the device includes: a data acquisition module, which is used to acquire the road condition data of the real road through the laser point cloud scanning device; a virtual test scene is constructed based on the road condition data; a control signal determination module, which is used to determine the control signal of the vehicle electrical components according to the virtual test scene, a pre-established vehicle model and a preset automatic driving algorithm; an execution module, which is used to control the target vehicle electrical components in the vehicle electrical components to execute the control signal through the vehicle controller; a voltage output module, which is used to determine the real-time change curve of the output signal of the target electrical components 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, which is used to determine the test result of the vehicle electrical components according to 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 automotive electrical component testing method.

[0020] The embodiments of the present invention have the following beneficial technical effects: The embodiment of the present invention provides a method, device and electronic equipment 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 through a CAN bus; the method includes: obtaining the road condition data of the real road through the laser point cloud scanning device; constructing a virtual test scene according to the road condition data; determining the control signal of the vehicle electrical components according to the virtual test scene, the pre-established vehicle model and the 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; determining the test results of the vehicle electrical components according to 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.

[0021] 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 of the present disclosure.

[0022] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0024] Figure 1 A schematic flow chart of a method for testing automotive electrical components provided by an embodiment of the present invention; Figure 2 A schematic flow chart of another method for testing automotive electrical components provided by an embodiment of the present invention; Figure 3 A schematic diagram of a first voltage curve signal of an accelerator pedal provided by an embodiment of the present invention; Figure 4A schematic diagram of a second voltage curve signal of an accelerator pedal provided by an embodiment of the present invention; Figure 5 A schematic diagram of the structure of a testing device for automotive electrical components provided by an embodiment of the present invention; Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.

[0025] 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 In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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 here can be arranged and designed in various different configurations.

[0026] The existing testing methods cannot fully cover the different functions and performances of the vehicle controller, will miss many potential problems, and cannot effectively predict and avoid the risks of actual loading operations. Loading tests will affect the safety of the vehicle and cause safety hazards.

[0027] Based on this, the embodiment of the present invention provides a method, device and electronic equipment for testing automotive electrical components. The method can obtain the test results of each vehicle electrical component by setting a virtual scene consistent with the real road. The method truly and comprehensively covers the different functions and performances of the vehicle controller. In order to facilitate the understanding of the embodiment of the present invention, the test method of automotive electrical components is first introduced.

[0028] Example 1 In this embodiment, Figure 1 A flow chart of a method for testing automotive electrical components provided by an embodiment of the present invention. The method 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.

[0029] Depend on Figure 1 As can be seen, the method includes: Step S101: 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 according to the above-mentioned road condition data.

[0030] In this embodiment, the above-mentioned host computer, vehicle controller and vehicle electrical components constitute a test bench system.

[0031] Furthermore, the test bench system includes: low-voltage adjustable power supply module, vehicle controller, I / O port test module, accelerator pedal, brake pedal, dashboard, computer, host computer software, hardware Kvaser, dual-channel Tongxing TC1013, and oscilloscope. The configuration parameters of the host computer are: processor frequency 2.5GHz, memory 8GB, hard disk 500GB. Combined with the analysis software, the software simulating the electrical environment of the whole vehicle needs to be able to simulate the transmission and processing of various electrical signals, as well as the simulation of various electrical faults.

[0032] Furthermore, the above-mentioned vehicle electrical components are connected to the same CAN network through CAN lines to achieve good communication; after the oscilloscope calibrates the input signal, the vehicle controller output is calibrated and tested to verify the output validity. The host computer builds the vehicle electrical system, connects to the CAN bus through Kavser and Tongxing TC1013, simulates the output of the battery system, motor system and control system, connects the vehicle electrical components through the signal injection interface, and performs power on and off, signal processing, information display, vehicle status monitoring, fault reporting and fault handling of the vehicle electrical components.

[0033] Furthermore, a virtual test scenario is constructed based on the traffic data of the above-mentioned real roads through preset simulation software.

[0034] Step S102: Determine the control signals 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.

[0035] The vehicle model is a three-dimensional model of the vehicle to be tested.

[0036] In this embodiment, step S102 includes: first, placing the vehicle model at a preset point of the virtual test scene, and then, driving the vehicle model in the virtual test scene through an automatic driving algorithm.

[0037] 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.

[0038] Step S103: controlling the target vehicle electrical components among the vehicle electrical components to execute the control signal through the vehicle controller.

[0039] Step S104: Based on the preset analysis software of the CAN bus, determine the real-time change curve of the output signal of the target electrical component in the electrical component of the whole vehicle corresponding to the control signal.

[0040] 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.

[0041] The 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 through a CAN bus; the method includes: obtaining the road condition data of the real road through the laser point cloud scanning device; constructing a virtual test scene according to the road condition data; determining the control signal of the vehicle electrical components according to the virtual test scene, the pre-established vehicle model and the 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; determining the test results of the vehicle electrical components according to 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.

[0042] Example 2 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.

[0043] Among them, the method is applied to a host computer; the above-mentioned 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 above-mentioned vehicle controller is connected to the electrical components of the vehicle through a CAN bus.

[0044] Depend on Figure 2 As can be seen, the method includes: Step S201: Obtain laser scanning point cloud data of pedestrians, moving vehicles, animals and obstacles on a 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; and construct a virtual test scene based on the laser scanning point cloud data based on the preset simulation software.

[0045] Step S202: Determine the control signals 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.

[0046] In this embodiment, the vehicle model is constructed by the following steps: obtaining the size parameters, air resistance coefficient and rolling resistance coefficient of the vehicle; and determining the vehicle model according to the size parameters, air resistance coefficient and rolling resistance coefficient.

[0047] Step S203: controlling the target vehicle electrical components among the vehicle electrical components to execute the control signal through the vehicle controller.

[0048] Step S204: Based on the preset analysis software of the CAN bus, determine the real-time change curve of the output signal of the target electrical component in the electrical component of the whole vehicle corresponding to the control signal.

[0049] Step S205: Determine the test results of the above-mentioned vehicle electrical components according to the above-mentioned real-time change curve.

[0050] In actual operation, the above step S202 also includes: determining the fault control signal of the above-mentioned vehicle electrical components according to 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: based on the preset analysis software of the above-mentioned CAN bus, determining the real-time change curve of the fault output signal of the target electrical components in the above-mentioned vehicle electrical components corresponding to the above-mentioned fault control signal; the above-mentioned step S205 also includes: determining the test results of the above-mentioned vehicle electrical components according to the real-time change curve of the above-mentioned fault output signal.

[0051] Here, the difference between the fault control signal and the control signal is a preset threshold. Assume that the distance in front of the vehicle to the pedestrian is 150 meters, the opening corresponding to the control signal is 20%, and the opening corresponding to the fault control signal is 30%. Thus, the real-time change curve of the fault output signal can be determined, and the test results of the electrical components of the vehicle can be determined, so as to facilitate the diagnosis and identification of the fault control signal.

[0052] In one embodiment, the above-mentioned electrical components of the whole vehicle include: an accelerator pedal; two Hall sensors are arranged 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, a pre-established vehicle model and a preset automatic driving algorithm includes: determining the opening signal of the above-mentioned accelerator pedal based on the above-mentioned virtual test scenario, a pre-established vehicle model and a 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 of the above-mentioned accelerator pedal and the second electrical signal curve of the above-mentioned second output signal 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.

[0053] 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.

[0054] Furthermore, the step of determining the test results of the above-mentioned electrical components of the whole vehicle according to 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 according to the above-mentioned difference and a preset difference threshold; and determining the test result of the above-mentioned accelerator pedal according to the above-mentioned synchronization status.

[0055] Here, when the difference is less than 0.5V, the synchronization between the first electrical signal curve and the second electrical signal curve is determined to be synchronous; when the difference is greater than or equal to 0.5V, the synchronization between the first electrical signal curve and the second electrical signal curve is determined to be asynchronous.

[0056] 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.

[0057] 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.

[0058] 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 result of the above accelerator pedal meets the test requirements.

[0059] Furthermore, the host computer is provided with a CAN bus data recorder and a CAN to USB interface.

[0060] The CAN bus data recorder is Kvaser; the CAN to USB interface is dual-channel Tongxing TC1013.

[0061] Furthermore, the vehicle controller is connected to the vehicle electrical components through an I / O port test module; the step of controlling a target vehicle electrical component among the vehicle electrical components to execute the control signal through the vehicle controller includes: controlling a target vehicle electrical component among the vehicle electrical components to execute the control signal through the vehicle controller through the I / O port test module.

[0062] Furthermore, the host computer is preset with an electrical virtual environment based on Labview; the step of determining the test results of the electrical components of the whole vehicle according to the real-time change curve includes: determining the test results of the electrical components of the whole vehicle according to the real-time change curve based on the electrical virtual environment of Labview.

[0063] Furthermore, 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 components 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 according to the above-mentioned real-time change curve includes: determining the test results of the above-mentioned vehicle electrical components according to the above-mentioned calibrated real-time change curve.

[0064] 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.

[0065] 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 through 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; based on preset simulation software, constructing a virtual test scene according to the laser scanning point cloud data; determining the control signal of the vehicle electrical components according to 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 according to the real-time change curve. This method can obtain the test results of each vehicle electrical component by setting up a virtual scene consistent with the actual road conditions. This method truly and comprehensively covers the different functions and performances of the vehicle controller.

[0066] Example 3 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.

[0067] Depend on Figure 5 As can be seen, the device includes: 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 according to the above-mentioned road condition data.

[0068] The control signal determination module 32 is used to determine the control signals 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.

[0069] The execution module 33 is used to control the target vehicle electrical components among the vehicle electrical components to execute the control signal through the vehicle controller.

[0070] 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 component corresponding to the above-mentioned control signal based on the preset analysis software of the above-mentioned CAN bus.

[0071] 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.

[0072] 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.

[0073] 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.

[0074] In one embodiment, the above-mentioned electrical components of the whole vehicle include: an accelerator pedal; two Hall sensors are arranged 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 according to the above-mentioned first electrical signal curve and the above-mentioned second electrical signal curve.

[0075] In one embodiment, the test result output module 35 is further used 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.

[0076] In one embodiment, the test result output module 35 is also 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.

[0077] 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 among the vehicle electrical components to execute the control signal through the vehicle controller through the I / O port test module.

[0078] 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 whole vehicle based on the electrical virtual environment of Labview and according to the real-time change curve.

[0079] In one embodiment, the test result output module 35 is further used 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 according to the calibrated real-time change curve.

[0080] In one embodiment, the host computer is connected to a display; the test result output module 35 is also used to display the real-time change curve and the test result through the display.

[0081] 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, for parts not mentioned in the embodiment of the automotive electronic component testing device, reference may be made to the corresponding contents in the aforementioned method embodiment.

[0082] 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.

[0083] 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.

[0084] The memory 42 may include a high-speed random access memory (RAM), and may also include a 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 realized through at least one communication interface 44 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus may be an ISA bus, a PCI bus, or an EISA bus, etc. 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 only one type of bus.

[0085] Among them, the processor 41 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 41 or the instruction in the form of software. The above processor 41 can be a general-purpose processor, including a central processing unit (CPU), 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 gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor 41 reads the information in the memory 42 and completes the steps of the automotive electronic component testing method of the aforementioned embodiment in combination with its hardware.

[0086] An embodiment of the present invention also 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, which will not be repeated here.

[0087] 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 embodiment. The specific implementation can be found in the method embodiment, which will not be repeated here.

[0088] Unless otherwise specified, the relative steps, numerical expressions and numerical values ​​of the components and steps described in these embodiments do not limit the scope of the present invention. If the above 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 can be executed by a processor. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a 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: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0089] 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 aforementioned embodiments, those of ordinary skill in the art should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the aforementioned embodiments within the technical scope disclosed by the present invention, or can easily conceive of changes, or make equivalent replacements for some of the technical features therein. Such 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 within the protection scope of the present invention.

Claims

1. A testing method for automotive electrical components. It is 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 electrical components of the vehicle via a CAN bus; the method comprises: Acquire the road condition data of the real road through the laser point cloud scanning device; construct a virtual test scene according to the road condition data; Determining control signals of the electrical components of the vehicle according to the virtual test scenario, the pre-established vehicle model, and the preset autonomous driving algorithm; Controlling a target vehicle electrical component among the vehicle electrical components to execute the control signal through the vehicle controller; Based on the preset analysis software of the CAN bus, determine the real-time change curve of the output signal of the target electrical component in the electrical component of the whole vehicle corresponding to the control signal; According to the real-time change curve, the test results of the electrical components of the whole vehicle are determined.

2. The method for testing automotive electrical components according to claim 1, It is characterized in that The 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 real road through the laser point cloud scanning device includes: Acquire laser scanning point cloud data of the pedestrians, the moving vehicles, the animals and the obstacles on the real road by the laser point cloud scanning device; Saving the laser scanning point cloud data as traffic data of the real road; The step of constructing a virtual test scene according to the road condition data includes: Based on the preset simulation software, a virtual test scene is constructed according to the laser scanning point cloud data.

3. The method for testing automotive electrical components according to claim 2, It is characterized in that The vehicle electrical components include: an accelerator pedal; two Hall sensors are arranged 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 step of determining the control signal of the electrical components of the vehicle according to the virtual test scenario, the pre-established vehicle model and the preset autonomous driving algorithm comprises: Determining the accelerator pedal opening signal based on the virtual test scenario, the pre-established vehicle model, and the preset autonomous driving algorithm; Determining the control signal according to the opening signal; The step of determining the 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 based on the preset analysis software of the CAN bus comprises: Based on the preset analysis software of the CAN bus, determining a first electrical signal curve of the first output signal of the accelerator pedal and a second electrical signal curve of the second output signal corresponding to the control signal; The step of determining the test results of the electrical components of the vehicle according to the real-time change curve comprises: A test result of the accelerator pedal is determined according to the first electrical signal curve and the second electrical signal curve.

4. The method for testing automotive electrical components according to claim 3, It is characterized in that The step of determining the test result of the vehicle electrical component according to the first electrical signal curve and the second electrical signal curve comprises: The test result of the accelerator pedal is determined according to the magnitude relationship between the first electrical signal curve and the second electrical signal curve and a preset threshold range.

5. The method for testing automotive electrical components according to claim 4, It is characterized in that The step of determining the test result of the vehicle electrical component according to the first electrical signal curve and the second electrical signal curve comprises: Based on preset parameters, selecting sampling points on the first electrical signal curve and the second electrical signal curve; 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 according to the difference and a preset difference threshold; According to the synchronization condition, a test result of the accelerator pedal is determined.

6. The method for testing automotive electrical components according to claim 5, It is characterized in that 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.

7. The method for testing automotive electrical components according to claim 1, It is characterized in that The host computer is provided with a CAN bus data recorder and a CAN to USB interface.

8. The method for testing automotive electrical components according to claim 7, It is characterized in that The CAN bus data recorder is Kvaser; the CAN to USB interface is dual-channel Tongxing TC1013.

9. The method for testing automotive electrical components according to claim 7, It is characterized in that The vehicle controller is connected to the vehicle electrical components via an I / O port test module; The step of controlling a target vehicle electrical component in the vehicle electrical component to execute the control signal by the vehicle controller includes: The vehicle controller controls the target vehicle electrical components in the vehicle electrical components to execute the control signal through the I / O port test module.

10. The method for testing automotive electrical components according to claim 9, It is characterized in that The host computer is preset with an electrical virtual environment based on Labview; the step of determining the test results of the electrical components of the whole vehicle according to the real-time change curve 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.

11. The method for testing automotive electrical components according to claim 1, It is characterized in that The 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 vehicle electrical components corresponding to the control signal based on the preset CAN bus analysis software, the method comprises: Calibrate the real-time change curve by 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 comprises: The test results of the electrical components of the whole vehicle are determined according to the calibrated real-time change curve.

12. The method for testing automotive electrical components according to claim 11, It is characterized in that 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 comprises: The real-time change curve and the test result are displayed on a display.

13. The method for testing automotive electrical components according to claim 1, It is characterized in that The vehicle model is constructed by the following steps: Obtain the vehicle's size parameters, air resistance coefficient and rolling resistance coefficient; The vehicle model is determined according to the size parameters, the air resistance coefficient and the rolling resistance coefficient.

14. A testing device for automotive electrical components, It is 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 electrical components of the vehicle via a CAN bus; the device comprises: A data acquisition module, used to acquire the road condition data of the real road through the laser point cloud scanning device; and construct a virtual test scene according to the road condition data; A control signal determination module, used to determine the control signals of the electrical components of the vehicle according to the virtual test scenario, the pre-established vehicle model and the preset autonomous driving algorithm; An execution module, used for controlling a target vehicle electrical component among the vehicle electrical components to execute the control signal through the vehicle controller; A voltage output module, used to determine a real-time change curve of an output signal of a target electrical component in the electrical component of the vehicle corresponding to the control signal based on a preset analysis software of the CAN bus; The test result output module is used to determine the test results of the electrical components of the whole vehicle according to the real-time change curve.

15. An electronic device, It is 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 any one of claims 1 to 13.

Citation Information

Patent Citations

  • Hall sensor and control system for electronic throttle valve

    CN102661753A

  • Test method and device applied to driverless vehicle

    CN107063713A

  • Auto-driving vehicle testing method, device and system

    CN108762226A

  • Automatic driving algorithm simulation test method and device and electronic equipment

    CN114035545A

  • Automatic driving test system and method based on digital twin cloud control platform

    CN114879631A