Hard wire test method, system and device, vehicle and storage medium
By generating and transmitting test signals on the physical machine and collecting output signals, it solves the problem that existing technology cannot simulate the environment of the whole machine for hard-wired testing, and achieves accurate reflection of hard-wired performance and safe and efficient test results.
Patent Information
- Application Number
- CN202410820866.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-08
AI Technical Summary
Existing hardwire testing methods cannot test the performance of hardwires in a simulated whole machine environment, resulting in test results that cannot truly reflect the performance of hardwires on the whole machine.
Generate and transmit test signals on the physical machine, collect output signals, judge the performance of hard wires through the difference between test signals and output signals, use data lines or wireless communication methods to transmit signals to ensure accuracy and stability, and generate test signals Match the actual control signals to improve test accuracy, and perform tests when the entire machine is powered off to improve safety.
It achieves test results that reflect the anti-interference ability of hard wires in the overall machine environment, improves the accuracy and safety of test results, expands the test range, and avoids loss and attenuation in signal transmission.
Smart Images

Figure CN118746777A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle hard-line testing, and in particular to a hard-line testing method, system, device, vehicle and storage medium. Background Art
[0002] A complete machine is a fully assembled mechanical device, which includes vehicles, robots, machine tools, etc. The complete machine is equipped with many hard wires, which are used to transmit signals between various hardware on the complete machine. The performance of the hard wires will affect the signal quality, so it is necessary to test the hard wires on the complete machine. The prior art is to simulate the local hardware on the complete machine on a test bench, and simulate the hard wires connected between the local hardware on the test bench, control the hardware at one end of the hard wire to transmit signals to the hardware at the other end through the hard wire, and test the performance of the hard wire by detecting the change information of the signal during the transmission process. In fact, the electromagnetic environment on the complete machine and the spatial layout of all electronic components or hardware on the complete machine will have certain interference to the hard wire, and the prior art cannot simulate the complete machine on the test bench, which leads to the prior art ignoring the above interference, resulting in the hard wire test results obtained by the prior art not being able to truly reflect the performance of the hard wire when working on the complete machine.
[0003] In summary, the hard line test results obtained in the prior art cannot reflect the performance of the hard line on the whole machine.
[0004] Therefore, the prior art still needs to be improved and enhanced. Summary of the invention
[0005] The present application provides a hardline testing method, system, device, vehicle and storage medium to solve the technical problem that the hardline testing results obtained in the related art cannot reflect the performance of the hardline on the whole machine.
[0006] To achieve the above objectives, this application adopts the following technical solutions:
[0007] The first aspect of the present application provides a hard line testing method, comprising the following steps:
[0008] generating a test signal;
[0009] Transmitting the test signal to an input end of a hard line, and collecting an output signal from an output end of the hard line, wherein the hard line is located on a physical device;
[0010] A test result of the hard line is obtained according to the test signal and the output signal.
[0011] According to the above-mentioned technical means, the embodiment of the present application implements a test on the hard wire on a physical whole machine, so that the hard wire being tested is located in the interference environment provided by the whole machine, and the test results obtained through the test signal and the output signal can reflect the anti-interference ability of the hard wire to the interference environment on the whole machine, that is, the test results of the present application can reflect the performance of the hard wire located on the whole machine.
[0012] Moreover, the present application directly generates a test signal, and inputs the test signal to the hard line, and finally obtains the test result of the hard line through the test signal and the output signal. Since the test result is obtained directly through the two quantitative information of the test signal and the output signal, the test result is a deterministic result, thereby improving the accuracy of the test result.
[0013] Optionally, in one embodiment of the present application, generating a test signal includes:
[0014] Obtaining a controller on the physical machine to which the input end of the hard line is connected, so as to query a development protocol corresponding to the controller;
[0015] According to the development protocol, obtaining a control signal input from the controller to the hard line;
[0016] A test signal is generated according to the control signal.
[0017] According to the above technical means, the test signal generated by the embodiment of the present application can match the control signal that the hard line actually transmits on the whole machine, that is, the accuracy of the test signal is improved, thereby improving the accuracy of the test result obtained based on the test signal. Moreover, the present application uses the generated test signal to test the hard line to replace the actual control signal, so that even if the whole machine is in a power-off state, that is, the controller is in a non-working state, the test of the present application can be completed. Since the test of the present application allows the whole machine to be in a power-off state, the safety of the test is improved.
[0018] Optionally, in one embodiment of the present application, generating a test signal includes:
[0019] Acquiring a theoretical electrical signal range, wherein the theoretical electrical signal range is composed of all theoretical electrical signals that the hard wires need to carry;
[0020] A test signal is generated according to the theoretical electrical signal range.
[0021] According to the above technical means, the test signal generated by the embodiment of the present application can test all hard wires on the entire machine, thereby expanding the test scope of the present application.
[0022] Optionally, in one embodiment of the present application, transmitting the test signal to an input end of a hard line, and collecting an output signal from an output end of the hard line, comprises:
[0023] At a set position, transmitting the test signal to an input end of a hard line through a first data line, the length of the first data line being less than a threshold value;
[0024] Acquire the distance between the set position and the output terminals distributed on the physical machine;
[0025] When the distance is less than the threshold, collecting an output signal of the output end of the hard line through a second data line;
[0026] When the distance is greater than or equal to the threshold, an output signal of the output end of the hard line is collected by wireless communication.
[0027] According to the above technical means, the embodiment of the present application first transmits the test signal to the input end of the hard wire through the first data line which is less than the threshold value, that is, the signal is input to the input end of the hard wire at a position close to the input end, so as to reduce the loss or attenuation of the signal in the data line. Once the set position is fixed, the distance between the output end of the hard wire and the set position is also fixed. If the distance between the two is short, the output signal of the hard wire is collected at the set position by using the data line to improve the stability and accuracy of the collected output signal. If the distance between the two is far, the output signal is collected by wireless communication. This is because if the distance between the two is far, if the data line is still used for transmission, the data line with a longer signal will affect the transmission of the signal, thereby reducing the accuracy of the collected output signal. When the distance between the two is far, the present application adopts wireless communication to avoid the above problems.
[0028] Optionally, in an embodiment of the present application, obtaining the test result of the hard line according to the test signal and the output signal includes:
[0029] generating a test waveform corresponding to the test signal, and generating an output waveform corresponding to the output signal;
[0030] determining a difference between the test waveform and the output waveform;
[0031] According to the difference, the test result of the hard line is obtained.
[0032] According to the above technical means, the embodiment of the present application converts the signal into an intuitive waveform, and by intuitively comparing the difference between the two waveforms, the hard line test result can be intuitively and quickly obtained.
[0033] Optionally, in one embodiment of the present application, determining the difference between the test waveform and the output waveform includes:
[0034] Analyze the test waveform to obtain the level value, frequency, waveform rising edge duration, waveform falling edge duration and waveform monotonicity of the test waveform;
[0035] Analyze the output waveform to obtain the level value, frequency, waveform rising edge duration, waveform falling edge duration and waveform monotonicity of the output waveform;
[0036] Calculating a level difference between a level value of the test waveform and a level value of the output waveform;
[0037] Calculating a frequency difference between the frequency of the test waveform and the frequency of the output waveform;
[0038] Calculating a rising time difference between a rising edge time of the test waveform and a rising edge time of the output waveform;
[0039] Calculating a falling time difference between a falling edge time of the test waveform and a falling edge time of the output waveform;
[0040] comparing the degree of monotonic consistency between the waveform monotonicity of the test waveform and the waveform monotonicity of the output waveform;
[0041] The difference between the test waveform and the output waveform is obtained according to the level difference, the frequency difference, the rise time difference, the fall time difference, and the degree of monotonic consistency.
[0042] According to the above-mentioned technical means, the embodiment of the present application judges the difference between the two waveforms through five indicators, namely, the level difference, frequency difference, rise time difference, fall time difference, and monotonic consistency between the two waveforms, thereby improving the accuracy of the obtained difference.
[0043] A third aspect of the present application provides a hard line test system, including:
[0044] A test module, used to generate the test signal mentioned above;
[0045] An input switching unit, used for transmitting the test signal generated by the test module to the input end of the hard line;
[0046] The output switching unit is used to transmit the output signal mentioned above to the input end of the test module, so that the test module generates the test result mentioned above based on the output signal and the test signal.
[0047] According to the above technical means, the embodiment of the present application is provided with a switching unit, which can make the test system suitable for more hard-line testing requirements.
[0048] Optionally, in one embodiment of the present application, the input adapter unit and the output adapter unit both include a standard interface and a non-standard interface connected to each other, wherein the standard interface of the input adapter unit is connected to the output end of the test module, and the non-standard interface of the input adapter unit is connected to the input end of the hard wire; the standard interface of the output adapter unit is connected to the input end of the test module, and the non-standard interface of the output adapter unit is connected to the output end of the hard wire.
[0049] According to the above technical means, the non-standard interface of the embodiment of the present application is used to connect the hard line, and the standard interface is used to connect the test system, so that a communication connection is established between the hard line and the test system.
[0050] Optionally, in one embodiment of the present application, the input adapter unit and the output adapter unit both include a standard interface and a wire-free connector that are connected to each other, wherein the standard interface of the input adapter unit is connected to the output end of the test module, and the wire-free connector of the input adapter unit is connected to the input end of the hard wire; the standard interface of the output adapter unit is connected to the input end of the test module, and the wire-free connector of the output adapter unit is connected to the output end of the hard wire.
[0051] According to the above technical means, the wire-free connector of the embodiment of the present application can transmit signals between the hard wire and the test system without disassembling the hard wire.
[0052] A third aspect of the present application provides a hard-line testing device, comprising:
[0053] A signal generating module, used for generating a test signal;
[0054] A signal transmission module, used for transmitting the test signal to the input end of the hard line and collecting the output signal of the output end of the hard line, wherein the hard line is located on the physical machine;
[0055] The test result generating module is used to obtain the test result of the hard line according to the test signal and the output signal.
[0056] A fourth aspect of the present application provides a vehicle, comprising a memory, a processor, and a hard-wire test program stored in the memory and executable on the processor, wherein the processor implements the steps of the hard-wire test method described above when executing the hard-wire test program.
[0057] A fifth aspect of the present application provides a computer-readable storage medium, on which a hard-line test program is stored. When the hard-line test program is executed by a processor, the steps of the hard-line test method described above are implemented.
[0058] Beneficial effects of this application:
[0059] (1) The embodiment of the present application implements a test on the hard wire on a physical whole machine, so that the hard wire being tested is located in the interference environment provided by the whole machine, and the test result obtained through the test signal and the output signal can reflect the anti-interference ability of the hard wire to the interference environment on the whole machine, that is, the test result of the present application can reflect the performance of the hard wire located on the whole machine. Moreover, the present application directly generates a test signal, and inputs the test signal to the hard wire, and finally obtains the test result of the hard wire through the test signal and the output signal. Since the test result is obtained directly through the two quantitative information of the test signal and the output signal, the test result is a deterministic result, thereby improving the accuracy of the test result.
[0060] (2) The test signal generated by the embodiment of the present application can match the control signal that the hard line actually transmits on the whole machine, that is, the accuracy of the test signal is improved, thereby improving the accuracy of the test result obtained based on the test signal. Moreover, the present application uses the generated test signal to test the hard line to replace the actual control signal, so that even if the whole machine is in a power-off state, that is, the controller is in a non-working state, the test of the present application can be completed. Since the test of the present application allows the whole machine to be in a power-off state, the safety of the test is improved.
[0061] (3) The embodiment of the present application first transmits the test signal to the input end of the hard wire through the first data line which is smaller than the threshold value, that is, the signal is input to the input end of the hard wire at a position close to the input end, so as to reduce the loss or attenuation of the signal in the data line. Once the set position is fixed, the distance between the output end of the hard wire and the set position is also fixed. If the distance between the two is short, the output signal of the hard wire is collected at the set position by using the data line, so as to improve the stability and accuracy of the collected output signal. If the distance between the two is far, the output signal is collected by wireless communication. This is because if the distance between the two is far, if the data line is still used for transmission, the data line with a longer signal will affect the transmission of the signal, thereby reducing the accuracy of the collected output signal. When the distance between the two is far, the present application adopts wireless communication to avoid the above problems.
[0062] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0064] Figure 1 This is the overall flow chart of this application;
[0065] Figure 2 is a structural diagram of a hard-line test system in an embodiment of the present application;
[0066] Figure 3 This is a flow chart of the vehicle hard line test in the embodiment of the present application;
[0067] Figure 4 This is a schematic diagram of the structure of a hard-wire testing device according to an embodiment of the present application;
[0068] Figure 5 A block diagram of the internal structure of a vehicle according to an embodiment of the present application. DETAILED DESCRIPTION
[0069] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0070] The following describes the hardwire testing method, system, device, vehicle and storage medium of the embodiment of the present application with reference to the accompanying drawings. In view of the fact that the hardwire testing results obtained by the prior art mentioned in the above background technology cannot reflect the performance of the hardwire on the whole machine, the present application provides a hardwire testing method, in which a test signal is generated; the test signal is transmitted to the input end of the hardwire, and the output signal of the output end of the hardwire is collected, and the hardwire is located on the physical whole machine; based on the test signal and the output signal, the test result of the hardwire is obtained.
[0071] For example, the hardwire being tested is the hardwire involved in lifting the window. The whole vehicle (whole machine) is the vehicle with assembled hardware structure, including the vehicle with installed software. At this time, the hardwire on the whole vehicle is still exposed to the outside. At this time, the system generates a test signal to one end (input end) of the hardwire. The test signal is equivalent to the signal input by the controller that controls the lifting of the window to the drive mechanism (the drive mechanism is used to drive the lifting of the window). At the other end (output end) of the hardwire, the signal (output signal) formed by the test signal transmitted by the hardwire is collected. If the output signal and the test signal are almost the same, it means that the hardwire can still maintain good performance even in the electromagnetic environment of the whole vehicle. If the difference between the output signal and the test signal is large, it means that the performance of the hardwire is not good.
[0072] Specifically, Figure 1 A flowchart of a hard-line testing method provided in an embodiment of the present application.
[0073] like Figure 1 As shown, the hard line test method includes the following steps:
[0074] S100, generating a test signal.
[0075] S200, transmitting the test signal to the input end of the hard wire, and collecting the output signal of the output end of the hard wire, wherein the hard wire is located on the physical machine.
[0076] S300, obtaining a test result of the hard line according to the test signal and the output signal.
[0077] Based on steps S100, S200, and S300, an application scenario of the present application is as follows: input a test signal into one end of a hard wire on the vehicle, and then collect a signal (output signal) at the other end of the hard wire, and compare the difference between the two signals to determine whether the hard wire can resist electromagnetic interference on the vehicle, that is, to test the performance of the hard wire.
[0078] Based on steps S100, S200, and S300, another application scenario of the present application is as follows: input a test signal to one end of a hard wire on the robot, then collect a signal at the other end of the hard wire, and compare the difference between the two signals to test the performance of the hard wire.
[0079] In the two application scenarios of the present application, there is no need to start the software control system of the entire vehicle or robot to drive the controller to input a test signal to the hard wire. Instead, a known test signal is directly input to the hard wire. When the difference between the output signal and the test signal is relatively large, it can be directly determined that the performance of the hard wire is poor, thereby eliminating the uncertainty of the test results brought by the software control system.
[0080] Embodiment 1 provides a Figure 2 The hard-line test system shown in FIG. 1 is used to implement the test method of steps S100, S200, and S300. The system includes a test module, an input switching unit, and an output switching unit. Figure 2 As shown, the test module further includes a signal processing unit 110 , an input unit 170 and an output unit 180 , and the test system further includes a switching unit 190 , a control unit 130 , a storage unit 120 , a power supply unit 160 , a communication unit 150 , and a display unit 140 .
[0081] The control unit 130 is used to control the storage unit 120, the power supply unit 160, the communication unit 150, the display unit 140 and the signal processing unit 110. The power supply unit 160 is used to supply power to the test system. There are two ways of power supply, such as Figure 3 As shown, one is powered by USB, which can be connected to the USB port of the car for power supply through a standard USB port, so that the power supply on the car can be used as the power supply source of the power supply unit 160, which is convenient for testing in the car without an external power supply. The other is powered by battery. The power supply unit 160 includes a battery module, and the test system can be powered by the battery module to avoid the inability to carry out testing when the USB port cannot supply power when the car is in sleep mode. The battery module automatically charges when powered by USB, and automatically discharges the test system when there is no USB power supply.
[0082] The switching unit 190 further includes an input switching unit and an output switching unit, both of which include a standard interface and a non-standard interface, wherein the standard interface of the input switching unit is installed on the output unit 180, and the non-standard interface of the input switching unit is installed on the input end of the hard line, so as to transmit the test signal output by the signal processing unit to the hard line through the standard interface and the non-standard interface, wherein the output unit 180 is composed of a driving circuit and a signal generating circuit, and the driving circuit is used to drive the signal generating circuit to adjust the level value, frequency, rise time and fall time of the test signal waveform. Since the driving capability of the signal processing unit 110 is relatively weak, the driving capability of the test signal can be enhanced by the output unit 180.
[0083] The process of testing the hard line based on the hard line testing system in this embodiment is as follows:
[0084] The tester inputs the test instruction and the hard line number to be tested on the display unit 140, and transmits the test instruction and the hard line number to the control unit 130. The control unit 130 controls the start of the signal processing unit 110. The signal processing unit 110 queries the test signal corresponding to the hard line based on the hard line number, and then transmits the test signal to the input end of the hard line through the output unit 180 and the switching unit 190 (the switching unit 190 is the above-mentioned input switching unit). The test signal reaches the output end of the hard line to form an output signal. The output signal enters the input unit 170 through the non-standard interface installed on the output end of the hard line and the standard interface on the input unit 170, and finally enters the signal processing unit 110 through the input unit 170. The signal processing unit 110 obtains the final test result according to the test signal and the output signal, and saves the test result in the storage unit 120.
[0085] If the distance between the two ends of the same hard line, that is, the input end and the output end, along the vehicle is relatively large, then two hard line test systems (the two hard line test systems are test systems A and B) are required to complete the test of the hard line, wherein the test system A is set at a position close to the input end, and a first data line is set between the standard interface on the output unit 180 and the non-standard interface on the hard line. The test signal generated by the signal processing unit 110 of the test system A is transmitted to the hard line through the first data line. After the test signal reaches the output end of the hard line to form an output signal, the output signal is transmitted to the input unit 170 of the test system B set near the output end of the hard line through the data line, and the input unit 170 of the test system B transmits the output signal to the signal processing unit 110 of the test system A through the communication unit 150. At this point, the output signal and the test signal are stored in the signal processing unit 110 on the test system A, and the signal processing unit 110 on the test system A can directly obtain the test result of the hard line according to the difference between the output signal and the test signal.
[0086] Embodiment 2, based on embodiment 1, step S100 includes the following specific steps S101, S102, S103:
[0087] S101, obtaining a controller on the physical machine to which the input end of the hard line is connected, so as to query a development protocol corresponding to the controller.
[0088] S102, obtaining a control signal input from the controller to the hard line according to the development protocol.
[0089] S103: Generate a test signal according to the control signal.
[0090] The signal processing unit 110 stores all the hard wires and the controllers connected to them and their development protocols. When the tester inputs the hard wires to be tested into the signal processing unit 110, the signal processing unit 110 can query the control signal corresponding to the hard wire. The signal processing unit 110 will then generate a test signal similar to the control signal based on the control signal, that is, the waveform of the test signal matches the waveform of the control signal.
[0091] In the third embodiment, the specific process of step S100 is as follows: obtaining a theoretical electrical signal range, wherein the theoretical electrical signal range is composed of all theoretical electrical signals that the hard wire needs to carry; and generating a test signal according to the theoretical electrical signal range.
[0092] The test signals of this embodiment include a first test signal, a second test signal and a third test signal, wherein the level of the first test signal is 12V, the frequency is 10KHz, the waveform rise time is 10us, and the waveform fall time is 10us; the level of the second test signal is 5V, the frequency is 100KHz, the waveform rise time is 1us, and the waveform fall time is 1us; the level of the third test signal is 5V, the frequency is 1MHz, the waveform rise time is 100ns, and the waveform fall time is 100ns.
[0093] The three test signals in this embodiment are all within the range of theoretical electrical signals. Each hard line is tested with these three test signals, and each hard line can obtain three test results. By combining these three test results, a final test result can be obtained.
[0094] Embodiment 4, based on embodiment 1, step S200 includes the following specific steps: at a set position, transmitting the test signal to the input end of the hard wire through a first data line, the length of the first data line being less than a threshold value; obtaining the distance between the set position and the output end distributed on the physical machine; when the distance is less than the threshold value, collecting the output signal of the output end of the hard wire through a second data line; when the distance is greater than or equal to the threshold value, collecting the output signal of the output end of the hard wire through wireless communication.
[0095] In this embodiment, the test signal is input to the hard line and the output signal formed on the hard line is collected in the same manner as in the first embodiment, which will not be described in detail here.
[0096] Embodiment 5, based on embodiment 1, step S300 of this embodiment includes the following specific steps S301 to S310:
[0097] S301, generating a test waveform corresponding to the test signal, and generating an output waveform corresponding to the output signal.
[0098] The signal processing unit 110 converts the test signal generated by the signal processing unit 110 and the output signal collected by the signal processing unit 110 into waveforms, which is conducive to analyzing the differences between the two through waveforms. The output signal is the signal formed after the test signal is transmitted on the hard line.
[0099] S302, analyzing the test waveform to obtain the level value, frequency, waveform rising edge duration, waveform falling edge duration and waveform monotonicity of the test waveform.
[0100] S303, analyzing the output waveform to obtain the level value, frequency, waveform rising edge duration, waveform falling edge duration and waveform monotonicity of the output waveform.
[0101] The level values of the test waveform and the output waveform are obtained in the following way:
[0102] Each waveform is set to sample 20 points. The time interval between each sampling point is equal to the waveform period divided by 20. The level value includes the level values of these 20 sampling points.
[0103] The number of sampling points can also be obtained by setting the sampling frequency according to the signal bandwidth, wherein the sampling frequency is not less than 5 times of the signal bandwidth, and the signal bandwidth is equal to 0.35 divided by the rise time of the signal waveform.
[0104] S304, calculating a level difference between the level value of the test waveform and the level value of the output waveform.
[0105] The level difference is the basis for analyzing the physical layer signal waveform of the entire vehicle. The level value of each sampling point fits the actual test signal waveform collected by the simulation to form a sampling waveform. In addition, the level value of the sampling point can be used to locate hard-line physical layer signal quality problems such as overshoot, undershoot, and ringing of the test signal waveform.
[0106] The level difference is the difference between the level values at two sampling points, one of which is a sampling point on the test waveform and the other is a sampling point on the output waveform. That is, the level difference includes 20 differences corresponding to 20 pairs of sampling points.
[0107] S305, calculating a frequency difference between the frequency of the test waveform and the frequency of the output waveform.
[0108] S306, calculating a rising time difference between a rising edge time of the test waveform and a rising edge time of the output waveform.
[0109] By analyzing the rise time, it is possible to locate hard-wire physical layer signal quality problems such as insufficient test signal driving capability, signal transmission path impedance mismatch, and excessive parasitic capacitance.
[0110] S307, calculating the falling time difference between the falling edge time of the test waveform and the falling edge time of the output waveform.
[0111] By analyzing the fall time, it is possible to locate hard-wire physical layer signal quality problems such as insufficient test signal driving capability, signal transmission path impedance mismatch, and excessive parasitic capacitance.
[0112] The rising edge duration of the waveform is the time required for the waveform amplitude to rise from 10% to 90%, and the falling edge duration of the waveform is the time required for the waveform amplitude to fall from 90% to 10%.
[0113] S308, comparing the monotonicity consistency between the waveform monotonicity of the test waveform and the waveform monotonicity of the output waveform.
[0114] The waveform monotonicity includes the monotonicity of the rising edge of the waveform and the monotonicity of the falling edge of the waveform. The monotonicity of the rising edge is used to characterize the smoothness of the rising edge, and the monotonicity of the falling edge is used to characterize the smoothness of the falling edge.
[0115] By analyzing the waveform monotonicity, hard-line physical layer signal quality problems such as test signal transmission path mismatch, signal reflection, and electromagnetic interference can be located.
[0116] S309, obtaining the difference between the test waveform and the output waveform according to the level difference, the frequency difference, the rise time difference, the fall time difference, and the monotonicity consistency degree.
[0117] S3010, obtaining a test result of the hard line according to the difference.
[0118] Through the level difference, frequency difference, rise time difference, fall time difference, and monotonicity consistency, it is possible to determine whether the vehicle environment, such as the electromagnetic environment, wiring harness quality, hardware design, etc., has interfered with and affected the signal waveform quality.
[0119] If the above 20 level differences are all less than 10%, and the frequency difference is less than 5%, and the rise time difference and the fall time difference are both less than 5%, and the monotonicity is consistent, it means that there is no difference between the test waveform and the output waveform, which means that the tested hard line performance is good. If any of the above four conditions is not met, it means that the tested hard line performance is not good, that is, the hard line cannot resist the interference and influence of the vehicle environment such as electromagnetic environment, wiring harness quality, hardware design, etc.
[0120] In summary, the present application adopts a vehicle hard-wired physical layer signal waveform testing method, which unifies the testing standards for non-bus interfaces compared to previous testing methods. Previous testing methods only performed standardized testing on various bus interfaces, such as USB consistency testing, Ethernet consistency testing, CAN consistency testing, etc., which are all bus tests. However, there is no standard testing method for the much larger number of hard-wired signals on the vehicle. The present application unifies the testing standards for non-bus, i.e., hard-wired signals, and the test results are more worthy of reference and more in line with actual conditions.
[0121] Next, the hard-line testing device proposed according to the embodiment of the present application is described with reference to the accompanying drawings.
[0122] like Figure 4As shown, the hard-line testing device 10 includes: a signal generating module 100 , a signal transmitting module 200 and a test result generating module 300 .
[0123] Specifically, the signal generating module 100 is used to generate a test signal.
[0124] The signal transmission module 200 is used to transmit the test signal to the input end of the hard line and collect the output signal of the output end of the hard line, and the hard line is located on the physical machine.
[0125] The test result generating module 300 is used to obtain the test result of the hard line according to the test signal and the output signal.
[0126] It should be noted that the above explanation of the embodiment of the hard-line testing method is also applicable to a certain device of this embodiment, and will not be repeated here.
[0127] Figure 5 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. The vehicle may include:
[0128] A memory 501 , a processor 502 , and a computer program stored in the memory 501 and executable on the processor 502 .
[0129] When the processor 502 executes the program, the hard-line testing method provided in the above embodiment is implemented.
[0130] Furthermore, the vehicle also includes:
[0131] The communication interface 503 is used for communication between the memory 501 and the processor 502 .
[0132] The memory 501 is used to store computer programs that can be executed on the processor 502 .
[0133] The memory 501 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0134] If the memory 501, the processor 502 and the communication interface 503 are implemented independently, the communication interface 503, the memory 501 and the processor 502 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0135] Optionally, in a specific implementation, if the memory 501, the processor 502 and the communication interface 503 are integrated on a chip, the memory 501, the processor 502 and the communication interface 503 can communicate with each other through an internal interface.
[0136] The processor 502 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0137] This embodiment also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the hard-line testing method described above is implemented.
[0138] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0139] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0140] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes additional implementations, in which the order shown or discussed may not be followed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0141] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can read instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner as necessary and then storing it in a computer memory.
[0142] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0143] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0144] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0145] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A hard line testing method, characterized in that: The following steps are involved: generating a test signal; Transmitting the test signal to an input end of a hard line, and collecting an output signal from an output end of the hard line, wherein the hard line is located on a physical device; A test result of the hard line is obtained according to the test signal and the output signal.
2. The hard line testing method according to claim 1, characterized in that: The generating of the test signal comprises: Obtaining a controller on the physical machine to which the input end of the hard line is connected, so as to query a development protocol corresponding to the controller; According to the development protocol, obtaining a control signal input from the controller to the hard line; A test signal is generated according to the control signal.
3. The hard line testing method according to claim 1, characterized in that: The generating of the test signal comprises: Acquiring a theoretical electrical signal range, wherein the theoretical electrical signal range is composed of all theoretical electrical signals that the hard wires need to carry; A test signal is generated according to the theoretical electrical signal range.
4. The hard line testing method according to claim 1, characterized in that: The step of transmitting the test signal to the input end of the hard line and collecting the output signal of the output end of the hard line comprises: At a set position, transmitting the test signal to an input end of a hard line through a first data line, the length of the first data line being less than a threshold value; Acquire the distance between the set position and the output terminals distributed on the physical machine; When the distance is less than the threshold, collecting an output signal of the output end of the hard line through a second data line; When the distance is greater than or equal to the threshold, an output signal of the output end of the hard line is collected by wireless communication.
5. The hard line testing method according to claim 1, characterized in that: The step of obtaining a test result of the hard line according to the test signal and the output signal comprises: generating a test waveform corresponding to the test signal, and generating an output waveform corresponding to the output signal; determining a difference between the test waveform and the output waveform; According to the difference, the test result of the hard line is obtained.
6. The hard line testing method according to claim 5, characterized in that: The determining the difference between the test waveform and the output waveform comprises: Analyze the test waveform to obtain the level value, frequency, waveform rising edge duration, waveform falling edge duration and waveform monotonicity of the test waveform; Analyze the output waveform to obtain the level value, frequency, waveform rising edge duration, waveform falling edge duration and waveform monotonicity of the output waveform; Calculating a level difference between a level value of the test waveform and a level value of the output waveform; Calculating a frequency difference between the frequency of the test waveform and the frequency of the output waveform; Calculating the rising time difference between the rising edge time of the test waveform and the rising edge time of the output waveform; calculating the falling time difference between the falling edge time of the test waveform and the falling edge time of the output waveform; comparing the degree of monotonic consistency between the waveform monotonicity of the test waveform and the waveform monotonicity of the output waveform; The difference between the test waveform and the output waveform is obtained according to the level difference, the frequency difference, the rise time difference, the fall time difference, and the degree of monotonic consistency.
7. A hard-line test system, characterized in that: include: A test module, configured to generate a test signal as claimed in claim 1; An input switching unit, used for transmitting the test signal generated by the test module to the input end of the hard line; An output switching unit is used to transmit the output signal as claimed in claim 1 to the input end of the test module, so that the test module generates the test result as claimed in claim 1 based on the output signal and the test signal.
8. The hard-line test system according to claim 7, characterized in that The input adapter unit and the output adapter unit both include a standard interface and a non-standard interface that are connected to each other, wherein the standard interface of the input adapter unit is connected to the output end of the test module, and the non-standard interface of the input adapter unit is connected to the input end of the hard wire; the standard interface of the output adapter unit is connected to the input end of the test module, and the non-standard interface of the output adapter unit is connected to the output end of the hard wire.
9. The hard-line test system according to claim 7, characterized in that: The input adapter unit and the output adapter unit both include a standard interface and a wire-free connector that are connected to each other, wherein the standard interface of the input adapter unit is connected to the output end of the test module, and the wire-free connector of the input adapter unit is connected to the input end of the hard wire; the standard interface of the output adapter unit is connected to the input end of the test module, and the wire-free connector of the output adapter unit is connected to the output end of the hard wire.
10. A hard-wire testing device, characterized in that: include: A signal generating module, used for generating a test signal; A signal transmission module, used for transmitting the test signal to the input end of the hard line and collecting the output signal of the output end of the hard line, wherein the hard line is located on the physical machine; The test result generating module is used to obtain the test result of the hard line according to the test signal and the output signal.
11. A vehicle, characterized in that: The vehicle includes a memory, a processor, and a hard-wire test program stored in the memory and executable on the processor. When the processor executes the hard-wire test program, the steps of the hard-wire test method according to any one of claims 1 to 6 are implemented.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a hard-line test program, and when the hard-line test program is executed by the processor, the steps of the hard-line test method according to any one of claims 1 to 6 are implemented.
