CN117896297A - Test system and test method for vehicle-mounted communication protocol - Google Patents
Test system and test method for vehicle-mounted communication protocol Download PDFInfo
- Publication number
- CN117896297A CN117896297A CN202410130311.3A CN202410130311A CN117896297A CN 117896297 A CN117896297 A CN 117896297A CN 202410130311 A CN202410130311 A CN 202410130311A CN 117896297 A CN117896297 A CN 117896297A
- Authority
- CN
- China
- Prior art keywords
- interface
- test
- communication
- vehicle
- vehicle controller
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 371
- 238000004891 communication Methods 0.000 title claims abstract description 242
- 238000010998 test method Methods 0.000 title abstract description 10
- 238000000034 method Methods 0.000 claims description 51
- 230000008569 process Effects 0.000 claims description 36
- 230000004044 response Effects 0.000 claims description 9
- 238000012544 monitoring process Methods 0.000 claims description 4
- 230000008859 change Effects 0.000 description 18
- 230000001360 synchronised effect Effects 0.000 description 9
- 230000008054 signal transmission Effects 0.000 description 8
- 230000002159 abnormal effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000000630 rising effect Effects 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/16—Threshold monitoring
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/12—Network monitoring probes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Testing Electric Properties And Detecting Electric Faults (AREA)
Abstract
The invention discloses a test system and a test method of a vehicle-mounted communication protocol, wherein the test system of the vehicle-mounted communication protocol comprises a voltage synchronization device, a test tool and a vehicle controller; the voltage synchronization device is used for providing the same voltage for the test tool and the vehicle controller; the test tool is used for receiving the test trigger signal, generating a communication test signal carrying the first communication parameter, and sending the communication test signal carrying the first communication parameter to the vehicle controller; the vehicle controller is used for receiving a communication test signal, and the received communication test signal carries a second communication parameter; the testing tool is used for acquiring second communication parameters, carrying out parameter analysis based on the first communication parameters and the second communication parameters, and determining a communication testing result. According to the invention, the voltage synchronization device is added in the test system, so that the voltage consistency of the vehicle controller and the test tool is realized, and the waveform of the communication signal is ensured not to be distorted, thereby improving the accuracy and the authenticity of the test result.
Description
Technical Field
The invention relates to the technical field of vehicle communication testing, in particular to a testing system and a testing method of a vehicle-mounted communication protocol.
Background
The local interconnect network (Local Interconnect Network), abbreviated as LIN bus, is one of the mainstream vehicle networks at present; LIN communication protocol test Prior Art As shown in FIG. 1, a test tool is connected with a controller, the power supply voltage of the test tool is fixed, and the power supply voltage of the controller is provided by an external power supply; however, in the actual testing process, the power supply voltage of undervoltage or overvoltage may occur, and the power supply voltage of the controller is inconsistent with the power supply voltage of the testing tool, so that signal waveform distortion on the LIN bus is caused, and the signal waveform distortion is seriously inconsistent with the actual vehicle working condition, and the LIN communication signal quality under the undervoltage or overvoltage working condition cannot be truly reflected.
Disclosure of Invention
In view of the above-mentioned drawbacks of the prior art, the technical problem to be solved by the present invention is how to ensure that the communication signal is not distorted, thereby improving the accuracy and the authenticity of the test process.
In order to solve at least one technical problem, the invention discloses a test system and a test method of a vehicle-mounted communication protocol.
According to an aspect of the present disclosure, there is provided a test system of an in-vehicle communication protocol, including:
a voltage synchronization device, a test tool, and a vehicle controller;
The voltage synchronization device is used for providing the same voltage for the test tool and the vehicle controller;
the test tool is used for receiving a test trigger signal, generating a communication test signal carrying a first communication parameter, and sending the communication test signal carrying the first communication parameter to the vehicle controller;
the vehicle controller is used for receiving the communication test signal, and the received communication test signal carries a second communication parameter;
the testing tool is further used for acquiring the second communication parameters, performing parameter analysis based on the first communication parameters and the second communication parameters, and determining a communication testing result.
In some possible embodiments, the output of the test tool is connected to the voltage synchronization device, and the input of the vehicle controller is connected to the voltage synchronization device.
In some possible embodiments, the voltage synchronization device includes a first interface terminal and a second interface terminal; the first interface end is a female end, and the second interface end is a male end;
the first interface end is used for being connected with the output end of the testing tool, and the second interface end is used for being connected with the input end of the vehicle controller; the output end of the testing tool is a male end, and the input end of the vehicle controller is a female end.
In some possible embodiments, the first interface end includes a plurality of interfaces; the second interface end comprises a plurality of interfaces;
a first interface of the first interface end is in short circuit with a second interface of the first interface end; the first interface of the first interface end is used for grounding; the second interface of the first interface end is used for determining a power supply mode;
the third interface of the first interface end is used for connecting with the positive electrode of the power supply device;
the first interface of the first interface end is connected with the first interface of the second interface end; the first interface of the second interface end is used for grounding; the fourth interface of the first interface end is connected with the second interface of the second interface end; the fourth interface of the first interface end and the second interface of the second interface end are both used for connecting with the LIN bus.
In some possible embodiments, the output of the test tool includes a plurality of interfaces; the input end of the vehicle controller comprises a plurality of interfaces;
a first interface of the output end of the test tool is connected with a first interface of the first interface end; the first interface of the input end of the vehicle controller is connected with the first interface of the second interface end; the first interface of the output end of the test tool is used for grounding; the first interface of the input end of the vehicle controller is used for grounding;
The second interface of the output end of the test tool is connected with the second interface of the first interface end; the second interface of the output end of the test tool is used for determining a power supply mode;
the third interface of the output end of the test tool is connected with the third interface of the first interface end; the third interface of the output end of the test tool is used for connecting with the positive electrode of the power supply;
the fourth interface of the output end of the test tool is connected with the fourth interface of the first interface end; the fourth interface of the first interface end is connected with the second interface of the second interface end; the second interface of the second interface end is connected with the second interface of the input end of the vehicle controller; the fourth interface of the output end of the test tool is used for connecting with the LIN bus; the second interface of the input end of the vehicle controller is used for connecting with the LIN bus.
In some possible embodiments, the test system of the vehicle-mounted communication protocol further comprises upper computer software;
the upper computer software is connected with the input end of the testing tool; the upper computer software is used for sending a test trigger instruction to the test tool, monitoring a test process and recording test data.
In some possible embodiments, the test system of the vehicle-mounted communication protocol further comprises an oscilloscope;
the input end of the oscilloscope is connected with the output end of the test tool through the voltage synchronization device; the oscilloscope is connected with the power supply device;
the oscilloscope is used for receiving and displaying the test result of the test system of the vehicle-mounted communication protocol in the test process.
In some possible embodiments, the test system of the vehicle-mounted communication protocol further comprises a power supply device;
the testing tool is connected with the power supply device through the voltage synchronization device; the vehicle controller is connected with the power supply device.
According to a second aspect of the present disclosure, there is provided a method for testing a vehicle-mounted communication protocol, implemented based on a test system of any one of the above-mentioned vehicle-mounted communication protocols, wherein the method includes:
receiving the test trigger signal;
generating the communication test signal carrying the first communication parameter in response to the test trigger signal;
transmitting the communication test signal carrying the first communication parameter to the vehicle controller;
acquiring the second communication parameters;
And determining the communication test result based on the first communication parameter and the second communication parameter.
In some possible embodiments, the determining the communication test result based on the first communication parameter and the second communication parameter includes:
and carrying out parameter analysis based on the first communication parameters and the second communication parameters, and determining the communication test result.
The implementation of the invention has the following beneficial effects:
according to the invention, the voltage synchronization device is arranged in the test system of the vehicle-mounted communication protocol, so that the power supply voltage of the test tool and the vehicle controller always keeps synchronous change in the test process, signal waveform distortion caused by voltage change of the vehicle controller in the test process can be avoided, and the transmission quality of communication signals is improved; further, on the basis of guaranteeing the quality of communication signals, the vehicle-mounted network communication protocol test is carried out on the vehicle controller through the test tool, so that the interference on the test result caused by signal waveform distortion can be avoided, and the authenticity and reliability of the test result are improved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a test system for a vehicle communication protocol in the prior art;
fig. 2 is a schematic structural diagram of a test system for an on-board communication protocol according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a high-low voltage test connection provided by an embodiment of the present invention;
FIG. 4 is a test waveform under abnormal power conditions in the prior art;
FIG. 5 is a test waveform under an abnormal power condition according to an embodiment of the present invention;
fig. 6 is a flow chart of a testing method of an on-vehicle communication protocol according to an embodiment of the present invention.
Detailed Description
The technical solutions of the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is apparent that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are intended to be within the scope of the present invention based on the embodiments herein.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Various exemplary embodiments, features and aspects of the disclosure will be described in detail below with reference to the drawings. In the drawings, like reference numbers indicate identical or functionally similar elements. Although various aspects of the embodiments are illustrated in the accompanying drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
Furthermore, numerous specific details are set forth in the following detailed description in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements, and circuits well known to those skilled in the art have not been described in detail in order not to obscure the present disclosure.
Fig. 2 is a schematic structural diagram of a test system for an on-board communication protocol according to an embodiment of the present invention, referring to fig. 2, the test system for an on-board communication protocol includes:
a voltage synchronization device, a test tool, and a vehicle controller;
specifically, the voltage synchronization device may be a LIN bus interface card; the test tools may include LIN bus interface cards and CANoe (CAN open environment, bus development environment); the vehicle controller is a device to be tested and can be any controller on the vehicle such as a vehicle body controller, a whole vehicle controller, a power steering controller and the like; the voltage synchronization device is arranged between the test tool and the vehicle controller, and the voltage of the test tool and the voltage of the vehicle controller can be kept to be changed synchronously through the arrangement of the voltage synchronization device, namely the voltage of the test tool and the voltage of the vehicle controller are always equal; in the test system of the vehicle-mounted communication protocol, a test tool is used as a opponent for communication interaction with the vehicle controller, and the test tool is used for testing the communication signal quality of the vehicle controller by simulating other controllers which interact with the vehicle controller under the running condition of a real vehicle.
The voltage synchronization device is used for providing the same voltage for the test tool and the vehicle controller;
the test tool is used for receiving a test trigger signal, generating a communication test signal carrying a first communication parameter, and sending the communication test signal carrying the first communication parameter to the vehicle controller;
the vehicle controller is used for receiving the communication test signal, and the received communication test signal carries a second communication parameter;
the testing tool is further used for acquiring the second communication parameters, performing parameter analysis based on the first communication parameters and the second communication parameters, and determining a communication testing result.
In a specific embodiment, because the parameter analysis is performed based on the first communication parameter and the second communication parameter to determine whether the signal transmission process has distortion, the parameter analysis can be realized only by receiving the second communication parameter returned from the vehicle controller in the test process; compared with the method that the vehicle controller returns a communication test signal to the test tool, the communication parameter error caused by signal distortion in the signal transmission process can be avoided, and the accuracy of the test process can be improved.
The acquisition of the second communication parameter may be achieved by the following procedure: after receiving the communication test signal carrying the second communication parameter, the vehicle controller extracts the second communication parameter from the communication test signal and returns the second communication parameter in the form of a digital signal through a reliable bus, so that the test tool obtains the second communication parameter information.
Specifically, after receiving the test trigger signal, the test tool confirms that the vehicle controller needs to be tested, and further generates a communication test signal, wherein the communication test signal carries a first communication parameter at the moment, and the communication test signal carrying the first communication parameter is sent to the vehicle controller; because the signal may have distortion in the transmission process, the communication test signal received by the vehicle controller is a communication test signal carrying the second communication parameter, the first communication parameter may be consistent or inconsistent with the second communication parameter, and under the condition of reducing the signal distortion, the first communication parameter and the second communication parameter tend to be consistent, that is, the vehicle-mounted communication protocol test system provided by the embodiment of the invention can reduce the distortion in the signal transmission process, so that the first communication parameter and the second communication parameter can be considered to be consistent within a normal error range.
The working principle of the voltage synchronization device is as follows: the LIN bus interface card provides two power supply modes, including internal power supply and external power supply; in the prior art, as shown in fig. 1, the LIN communication protocol related test defaults to use an internal power supply mode, the power supply voltage of the interface card is constant at 12V and is not adjustable, under the working condition of low voltage or high voltage, the power supply voltage of the test tool is still fixed at 12V, the power supply voltage of the vehicle controller is changed to be higher than 12V or lower than 12V, and the recessive level on the LIN bus depends on the power supply voltage of the LIN bus node, so that cross current is generated among all nodes on the LIN bus, thereby causing distortion of LIN signal waveform; therefore, when the internal power supply voltage (12V) of the hardware interface card is inconsistent with the power supply voltage of other nodes on the bus, the internal power supply is required to be cut off, and external power supply is used instead (namely, the test system adopting the vehicle-mounted communication protocol is realized by adding the voltage synchronization device between the test tool and the vehicle controller), namely, the wiring mode between the test tool and the vehicle controller is changed by adding the voltage synchronization device, and an external power supply mode is adopted, so that the interface card of the test tool and the vehicle controller adopt the same power supply through the voltage synchronization device, and therefore, the fact that cross current is not generated between all nodes on the LIN bus is ensured, the LIN signal waveform is normal, the LIN signal waveform distortion caused by voltage change is avoided, and further, the test result is influenced.
In the embodiment of the invention, the voltage synchronization device is arranged in the test system of the vehicle-mounted communication protocol, so that the power supply voltage of the test tool and the vehicle controller always keeps synchronous change in the test process, signal waveform distortion caused by voltage change of the vehicle controller in the test process can be avoided, and the transmission quality of communication signals is improved; further, on the basis of guaranteeing the quality of communication signals, the vehicle-mounted network communication protocol test is carried out on the vehicle controller through the test tool, so that the interference on the test result caused by signal waveform distortion can be avoided, and the authenticity and reliability of the test result are improved.
The output end of the testing tool is connected with the voltage synchronization device, and the input end of the vehicle controller is connected with the voltage synchronization device.
Specifically, in order to realize the test system of the vehicle-mounted communication protocol, a voltage synchronization device is added into a test tool and a vehicle controller based on logic of a test process, the output end of the test tool is connected with the voltage synchronization device, and the input end of the vehicle controller is connected with the voltage synchronization device, so that voltage synchronization change between the test tool and the vehicle controller is realized on the basis of not interfering with the original test structure.
In the normal voltage state, the power supply voltage of the test tool is the same as that of the vehicle controller; when the power supply voltage of the vehicle controller changes, namely under-voltage working condition or over-voltage working condition occurs, the power supply voltage of the test tool can be ensured to synchronously change along with the power supply voltage of the vehicle controller due to the arrangement of the voltage synchronization device.
In the embodiment of the invention, the voltage synchronization device is added between the output end of the test tool and the input end of the vehicle controller, so that the synchronous change of the power supply voltage of the test tool along with the power supply of the vehicle controller can be ensured, the influence of the under-voltage working condition or the over-voltage working condition on the signal quality is reduced, and the convenience of voltage adjustment control is improved.
Fig. 3 is a schematic diagram of a high-low voltage test connection according to an embodiment of the present invention, as shown in fig. 3, the voltage synchronization device includes a first interface terminal and a second interface terminal; the first interface end is a female end, and the second interface end is a male end;
the first interface end is used for being connected with the output end of the testing tool, and the second interface end is used for being connected with the input end of the vehicle controller; the output end of the testing tool is a male end, and the input end of the vehicle controller is a female end.
In a specific embodiment, the voltage synchronization device includes two interface terminals, namely a first interface terminal and a second interface terminal; the first interface end, the second interface end, the output end of the testing tool and the input end of the vehicle controller are LIN bus interface cards. Each LIN bus interface card includes pin 1, pin 2, pin 3 … pin 9, 9 total pins, the pin functions defined in table 1 below:
TABLE 1 description of stitch functionality
Stitch(s) | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
Function of | / | / | Grounded (earth) | Power supply mode | Shielding | / | LIN | / | Power supply positive electrode |
Because the output end of the test tool is fixed to be a male end, the first interface end is a female end, the second interface end is a male end and the input end of the vehicle controller is a female end corresponding to the output end of the test tool, so that the test tool, the voltage synchronization device and the vehicle controller are sequentially connected.
In the embodiment of the invention, the first interface end, the second interface end, the output end of the testing tool and the input end of the vehicle controller are respectively correspondingly connected with the characteristics of the interface ends, so that the synchronous change of the power supply voltage of the testing tool and the power supply voltage of the vehicle controller is ensured under the condition of not interfering the original testing process, the use convenience of the voltage synchronous device can be improved, and the time cost for the environment establishment of the testing system of the vehicle-mounted communication protocol is saved.
The first interface end comprises a plurality of interfaces; the second interface end comprises a plurality of interfaces;
specifically, the first interface end comprises a plurality of interfaces, namely a plurality of pins are arranged on the first interface end; the second interface end comprises a plurality of interfaces, namely a plurality of pins are arranged on the second interface end.
A first interface of the first interface end is in short circuit with a second interface of the first interface end; the first interface of the first interface end is used for grounding; the second interface of the first interface end is used for determining a power supply mode;
the third interface of the first interface end is used for connecting with the positive electrode of the power supply device;
the first interface of the first interface end is connected with the first interface of the second interface end; the first interface of the second interface end is used for grounding; the fourth interface of the first interface end is connected with the second interface of the second interface end; the fourth interface of the first interface end and the second interface of the second interface end are both used for connecting with the LIN bus.
In a specific embodiment, the first interface of the first interface end and the first interface of the second interface end are pins 3 for grounding; the second interface of the first interface end is a pin 4 and is used for determining a power supply mode; the third interface of the first interface end is a pin 9 and is used for connecting with the positive electrode of the power supply device; the fourth interface of the first interface end and the second interface of the second interface end are pins 7 for connecting with the LIN bus.
As shown in fig. 3, the connection manner of the first interface terminal and the second interface terminal in the voltage synchronization device is: the first interface of the first interface end and the second interface of the first interface end are in short circuit, the third interface of the first interface end leads out an external power line, and the first interface of the first interface end is directly connected with the first interface of the second interface end; the fourth interface of the first interface end is connected with the second interface of the second interface end; through the connection mode, the voltage synchronization device can cut off internal power supply in the test system of the vehicle-mounted communication protocol, external power supply is used instead, and in the external power supply mode, the test tool and the vehicle controller adopt the same power supply, so that no cross current is generated between nodes on the LIN bus, and the LIN signal waveform is normal.
In the embodiment of the invention, the voltage synchronization device can be conveniently and rapidly connected into the test system of the vehicle-mounted communication protocol through the connection mode, has lower manufacturing and using costs, and can realize the synchronous change of the power supply voltage of the test tool and the power supply voltage of the vehicle controller, thereby improving the effectiveness and reliability of LIN signals in the test system.
The output end of the test tool comprises a plurality of interfaces; the input end of the vehicle controller comprises a plurality of interfaces;
specifically, the output end of the test tool comprises a plurality of interfaces, namely, the output end of the test tool is provided with a plurality of pins; the input of the vehicle controller includes a plurality of interfaces, i.e., a plurality of pins are provided on the input of the vehicle controller.
A first interface of the output end of the test tool is connected with a first interface of the first interface end; the first interface of the input end of the vehicle controller is connected with the first interface of the second interface end; the first interface of the output end of the test tool is used for grounding; the first interface of the input end of the vehicle controller is used for grounding;
the second interface of the output end of the test tool is connected with the second interface of the first interface end; the second interface of the output end of the test tool is used for determining a power supply mode;
the third interface of the output end of the test tool is connected with the third interface of the first interface end; the third interface of the output end of the test tool is used for connecting with the positive electrode of the power supply;
the fourth interface of the output end of the test tool is connected with the fourth interface of the first interface end; the fourth interface of the first interface end is connected with the second interface of the second interface end; the second interface of the second interface end is connected with the second interface of the input end of the vehicle controller; the fourth interface of the output end of the test tool is used for connecting with the LIN bus; the second interface of the input end of the vehicle controller is used for connecting with the LIN bus.
In a specific embodiment, the first interface of the input end of the vehicle controller and the first interface of the output end of the test tool are both pins 3 for grounding; the second interface of the input end of the vehicle controller is pin 7 and is used for connecting with the LIN bus; the second interface of the output end of the test tool is a pin 4 which is used for determining a power supply mode; the third interface of the output end of the testing tool is a pin 9 which is used for connecting with the anode of the power supply device; the fourth interface of the output of the test tool is pin 7 for connecting to the LIN bus.
As shown in fig. 3, the connection among the test tool, the voltage synchronization device and the vehicle controller is as follows: the first interface of the output end of the test tool is connected with the first interface of the first interface end, the second interface of the output end of the test tool is connected with the second interface of the first interface end, the third interface of the output end of the test tool is connected with the third interface of the first interface end, and the fourth interface of the output end of the test tool is connected with the fourth interface of the first interface end; the first interface of the input end of the vehicle controller is connected with the first interface of the second interface end, and the second interface of the input end of the vehicle controller is connected with the second interface of the second interface; the testing system of the vehicle-mounted communication protocol adopts an external power supply mode by connecting the testing tool output end, the voltage synchronization device and the vehicle controller input end in the mode, and under the external power supply mode, the testing tool and the vehicle controller adopt the same power supply, so that the cross current can not be generated between all nodes on the LIN bus, and the LIN signal waveform is normal.
In the embodiment of the invention, the voltage synchronization device is connected into the test tool and the vehicle controller in the limit mode under the condition of not changing to destroy the conventional test link, so that the time cost for constructing the test environment can be saved.
The test system of the vehicle-mounted communication protocol also comprises upper computer software;
the upper computer software is connected with the input end of the testing tool; the upper computer software is used for sending a test trigger instruction to the test tool, monitoring a test process and recording test data.
As shown in fig. 2, the test system of the vehicle-mounted communication protocol further comprises upper computer software, wherein the upper computer software is used for controlling and monitoring the LIN bus state; the user can monitor the whole communication test process and record test data generated in the test process based on the upper computer software, and the user can also control the whole test process in real time by applying the upper computer software.
In the embodiment of the invention, the setting of the upper computer software can improve the convenience of the user for controlling and managing the testing process.
The test system of the vehicle-mounted communication protocol further comprises an oscilloscope;
the input end of the oscilloscope is connected with the output end of the test tool through the voltage synchronization device; the oscilloscope is connected with the power supply device;
The oscilloscope is used for receiving and displaying the test result of the test system of the vehicle-mounted communication protocol in the test process.
In a specific embodiment, as shown in fig. 2, the test system of the vehicle-mounted communication protocol further includes an oscilloscope; the input end of the oscilloscope is connected with the output end of the testing tool, so that the oscilloscope can receive a testing result (namely a communication testing result which is described below) and display the testing result in a waveform form.
In the embodiment of the invention, the oscillograph is used for displaying the test result, so that a user can intuitively acquire the test result according to the waveform change, thereby improving the intuitiveness of acquiring the test result and improving the analysis efficiency of the user on the test result.
The test system of the vehicle-mounted communication protocol further comprises a power supply device;
the testing tool is connected with the power supply device through the voltage synchronization device; the vehicle controller is connected with the power supply device.
In a specific embodiment, as shown in fig. 2, the test system of the vehicle-mounted communication protocol further includes a power supply device; through the connection mode shown in fig. 3, the test tool and the vehicle controller can be connected to the same power supply device, so that the power supply voltage of the test tool and the power supply voltage of the vehicle controller always keep synchronous change in the test process, and cross current is prevented from being generated between nodes on the LIN bus due to different voltages of the test tool and the vehicle controller, and the LIN signal waveform is prevented from being distorted.
In the embodiment of the invention, the test tool and the vehicle controller are connected to the same power supply device, so that the voltage of the test tool and the voltage of the vehicle controller can be ensured to synchronously change, the convenience of voltage management can be improved, waveform distortion caused by unilateral change of the voltage is avoided, and the effectiveness and reliability of signal waveforms are improved.
FIG. 4 is a test waveform under abnormal power conditions in the prior art; FIG. 5 is a test waveform under an abnormal power condition according to an embodiment of the present invention; in a specific embodiment, if the voltage synchronization device is not used in the testing process of the vehicle-mounted communication protocol, the power supply voltage of the testing tool is fixed, the power supply voltage of the vehicle controller is provided by an external power supply, and under the overvoltage working condition, the power supply voltage of the testing tool is different from the power supply voltage of the vehicle controller, and because the recessive level on the LIN bus depends on the power supply voltage of the LIN bus node, cross current is generated between all nodes on the LIN bus, so that the LIN signal waveform is distorted, namely, a testing waveform diagram shown in fig. 4 is obtained, and further an error testing result is obtained; the test system of the vehicle-mounted communication protocol is provided with the voltage synchronization device, so that the test tool and the vehicle controller can adopt the same power supply, further the synchronous change of the power supply voltage of the test tool and the power supply voltage of the vehicle controller is ensured, and the cross current generated between nodes on the LIN bus due to the voltage change is avoided, so that the LIN signal waveform is normal.
Fig. 6 is a flow chart of a test method of an on-board communication protocol according to an embodiment of the present invention, where an execution body of the test method may be a test tool in a test system of the on-board communication protocol; as shown in fig. 6, a method for testing a vehicle-mounted communication protocol includes:
step S601: receiving the test trigger signal;
in a specific embodiment, the test trigger signal may include test case information, where the test case information may include information such as a test purpose, a test policy, a test step, and the like; the test trigger signal may be a signal sent by the upper computer software when the user needs to perform a test, and after receiving the test trigger signal, the test tool confirms that the vehicle controller of the test system accessing the vehicle-mounted communication protocol needs to be tested.
Step S602: generating the communication test signal carrying the first communication parameter in response to the test trigger signal;
in a specific embodiment, in response to the test trigger signal, generating a communication test signal corresponding to the test case information; the communication test signal may be a signal corresponding to a test requirement or a test case of a vehicle controller in the current test system, and the communication test signal may include a current test voltage and a test process parameter, where the test process parameter is determined according to the test requirement or the test case.
Step S603: transmitting the communication test signal carrying the first communication parameter to the vehicle controller;
in a specific embodiment, after the communication test signal carrying the first communication parameter is generated, in order to verify the communication quality, the communication test signal carrying the first communication parameter needs to be sent to the vehicle controller.
Step S604: acquiring the second communication parameters;
in a specific embodiment, because there may be a signal loss, signal distortion, and other problems during the signal transmission process, the vehicle controller receives the communication test signal carrying the second communication parameter, and determines the signal transmission quality by comparing the first communication parameter with the second communication parameter, where the first communication parameter and the second communication parameter can be considered to be the same under the condition that the signal transmission is normal, that is, the communication test signal received by the vehicle is the communication test signal carrying the first communication parameter, that is, the communication test signal carrying the second communication parameter is the communication test signal carrying the first communication parameter.
Step S605: and determining the communication test result based on the first communication parameter and the second communication parameter.
In a specific embodiment, a communication test result may be obtained according to the first communication parameter and the second communication parameter, where the communication test result is used to characterize communication quality.
Further, before the communication test is performed, communication detection is required to be performed on the vehicle controller for the first time so as to determine whether the communication of the vehicle controller is normal; if the communication of the vehicle controller is normal, the test is performed in step S601 to step S605, and if the communication of the vehicle controller is abnormal, the abnormal vehicle controller is not tested.
In the embodiment of the invention, the test is performed based on the vehicle-mounted communication protocol test system comprising the voltage synchronization device, so that the rapid and scientific LIN communication protocol test can be realized under the low-voltage or high-voltage working condition, the consistency of the power supply voltage of the vehicle controller and the test tool can be ensured, the LIN signal waveform on the bus is not distorted, thereby obtaining a strict and correct test conclusion and improving the effectiveness and reliability of the test process.
Further, the determining the communication test result based on the first communication parameter and the second communication parameter includes:
and carrying out parameter analysis based on the first communication parameters and the second communication parameters, and determining the communication test result.
In a specific embodiment, the communication test results are displayed in waveforms through an oscilloscope, and the parameter analysis may be different processes according to different test cases, for example, in a test case "LIN from node waveform rising edge slope test", the parameter analysis may be to calculate the rising edge slope.
Specifically, in the test case "LIN slave node waveform rising edge slope test", the test purpose is to verify whether the rising edge slope of the LIN waveform of the sample to be tested (i.e., the vehicle controller) is within a prescribed range under undervoltage, overvoltage and normal operating voltage; the testing strategy is to use an oscilloscope to collect and measure the output waveform of a tested sample; the test environment is a connection test environment as shown in fig. 2-3; the evaluation standard of the test result is that the rising edge slope is 1 < S Rise <3。
The test precondition is that the communication of the tested sample is normal; the testing steps comprise S1-S6, and specifically comprise the following steps:
step S1: setting a test tool CANoe as a main node;
step S2: setting voltage V=12V, and triggering a sample to be tested to wake up a source;
step S3: the CANoe sends a TestFrame_Header_Rx Header to the tested sample;
the expected response is the response of the tested sample to send out Header testframe_header_rx;
Step S4: at the data field, the rising edge [10%,90% was measured using an oscilloscope]And calculates the slope S Rise ;
Expected response is 1 < S Rise <3;
Step S5: setting the voltage vbat=8v, repeating steps S3 to S4;
expected response is 1 < S Rise <3;
Step S6: setting the voltage vbat=18v, repeating steps S3 to S4;
expected response is 1 < S Rise <3。
In the embodiment of the invention, the communication test result is displayed in the waveform through the oscilloscope pair, so that the intuitiveness of displaying and acquiring the communication test result can be improved; by carrying out parameter analysis on the communication parameters to determine the communication result, whether the signal distortion exists in the signal transmission process can be confirmed, and the effectiveness and reliability of signal transmission are further improved.
The embodiment of the invention also provides a device for testing the vehicle-mounted communication protocol, which comprises:
the signal receiving module is used for receiving the test trigger signal;
the signal generation module is used for responding to the test trigger signal and generating the communication test signal carrying the first communication parameter;
the signal sending module is used for sending the communication test signal carrying the first communication parameter to the vehicle controller;
the parameter receiving module is used for acquiring the second communication parameters;
And the first test module is used for determining the communication test result based on the first communication parameter and the second communication parameter.
In other embodiments, the first test module further comprises:
and the second test module is used for carrying out parameter analysis based on the first communication parameters and the second communication parameters and determining the communication test result.
The device and method embodiments in the device embodiments are based on the same inventive concept, and are used for implementing the test method of the vehicle-mounted communication protocol.
The embodiment of the invention also provides electronic equipment, which comprises: the system comprises a processor and a memory, wherein at least one instruction, at least one section of program, a code set or an instruction set is stored in the memory, and the at least one instruction, the at least one section of program, the code set or the instruction set is loaded and executed by the processor to realize a test method of an on-board communication protocol as in a method embodiment.
The embodiment of the invention also provides a storage medium, which can be arranged in a server to store at least one instruction, at least one section of program, a code set or an instruction set for implementing the test method of the vehicle-mounted communication protocol in the method embodiment, wherein the at least one instruction, the at least one section of program, the code set or the instruction set is loaded and executed by the processor to implement the test method of any vehicle-mounted communication protocol.
Alternatively, in an embodiment of the present invention, the storage medium may be located on at least one network server of a plurality of network servers of a computer network. Alternatively, in an embodiment of the present invention, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
As can be seen from the embodiments provided by the present invention, in the present invention, by setting the voltage synchronization device in the test system of the vehicle-mounted communication protocol, the power supply voltages of the test tool and the vehicle controller always keep synchronous change in the test process, so that signal waveform distortion caused by voltage change of the vehicle controller in the test process can be avoided, thereby improving transmission quality of communication signals; further, on the basis of guaranteeing the quality of communication signals, the vehicle-mounted network communication protocol test is carried out on the vehicle controller through the test tool, so that the interference on the test result caused by signal waveform distortion can be avoided, and the authenticity and reliability of the test result are improved.
It should be noted that: the foregoing description of the embodiments of the present disclosure has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the technical improvement in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.
Claims (10)
1. A test system for an in-vehicle communication protocol, the test system for an in-vehicle communication protocol comprising:
a voltage synchronization device, a test tool, and a vehicle controller;
the voltage synchronization device is used for providing the same voltage for the test tool and the vehicle controller;
the test tool is used for receiving a test trigger signal, generating a communication test signal carrying a first communication parameter, and sending the communication test signal carrying the first communication parameter to the vehicle controller;
the vehicle controller is used for receiving the communication test signal, and the received communication test signal carries a second communication parameter;
The testing tool is further used for acquiring the second communication parameters, performing parameter analysis based on the first communication parameters and the second communication parameters, and determining a communication testing result.
2. The system of claim 1, wherein the output of the test tool is connected to the voltage synchronization device and the input of the vehicle controller is connected to the voltage synchronization device.
3. The system for testing an in-vehicle communication protocol according to claim 1, wherein the voltage synchronization device comprises a first interface terminal and a second interface terminal; the first interface end is a female end, and the second interface end is a male end;
the first interface end is used for being connected with the output end of the testing tool, and the second interface end is used for being connected with the input end of the vehicle controller; the output end of the testing tool is a male end, and the input end of the vehicle controller is a female end.
4. A test system for an in-vehicle communication protocol according to claim 3, wherein the first interface end comprises a plurality of interfaces; the second interface end comprises a plurality of interfaces;
a first interface of the first interface end is in short circuit with a second interface of the first interface end; the first interface of the first interface end is used for grounding; the second interface of the first interface end is used for determining a power supply mode;
The third interface of the first interface end is used for connecting with the positive electrode of the power supply device;
the first interface of the first interface end is connected with the first interface of the second interface end; the first interface of the second interface end is used for grounding; the fourth interface of the first interface end is connected with the second interface of the second interface end; the fourth interface of the first interface end and the second interface of the second interface end are both used for connecting with the LIN bus.
5. The system of claim 4, wherein the output of the test tool comprises a plurality of interfaces; the input end of the vehicle controller comprises a plurality of interfaces;
a first interface of the output end of the test tool is connected with a first interface of the first interface end; the first interface of the input end of the vehicle controller is connected with the first interface of the second interface end; the first interface of the output end of the test tool is used for grounding; the first interface of the input end of the vehicle controller is used for grounding;
the second interface of the output end of the test tool is connected with the second interface of the first interface end; the second interface of the output end of the test tool is used for determining a power supply mode;
The third interface of the output end of the test tool is connected with the third interface of the first interface end; the third interface of the output end of the test tool is used for connecting with the positive electrode of the power supply;
the fourth interface of the output end of the test tool is connected with the fourth interface of the first interface end; the fourth interface of the first interface end is connected with the second interface of the second interface end; the second interface of the second interface end is connected with the second interface of the input end of the vehicle controller; the fourth interface of the output end of the test tool is used for connecting with the LIN bus; the second interface of the input end of the vehicle controller is used for connecting with the LIN bus.
6. The system for testing a vehicle-mounted communication protocol according to claim 1, wherein the system for testing a vehicle-mounted communication protocol further comprises upper computer software;
the upper computer software is connected with the input end of the testing tool; the upper computer software is used for sending a test trigger instruction to the test tool, monitoring a test process and recording test data.
7. The system for testing an in-vehicle communication protocol according to claim 1, wherein the system for testing an in-vehicle communication protocol further comprises an oscilloscope;
The input end of the oscilloscope is connected with the output end of the test tool through the voltage synchronization device; the oscilloscope is connected with the power supply device;
the oscilloscope is used for receiving and displaying the test result of the test system of the vehicle-mounted communication protocol in the test process.
8. The system for testing an in-vehicle communication protocol according to claim 1, wherein the system for testing an in-vehicle communication protocol further comprises a power supply device;
the testing tool is connected with the power supply device through the voltage synchronization device; the vehicle controller is connected with the power supply device.
9. A method for testing a vehicle-mounted communication protocol, implemented based on the testing system of the vehicle-mounted communication protocol according to any one of claims 1 to 8, characterized in that the method comprises:
receiving the test trigger signal;
generating the communication test signal carrying the first communication parameter in response to the test trigger signal;
transmitting the communication test signal carrying the first communication parameter to the vehicle controller;
acquiring the carrying second communication parameters;
and determining the communication test result based on the first communication parameter and the second communication parameter.
10. The method for testing an in-vehicle communication protocol according to claim 9, wherein the determining the communication test result based on the first communication parameter and the second communication parameter includes:
and carrying out parameter analysis based on the first communication parameters and the second communication parameters, and determining the communication test result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410130311.3A CN117896297A (en) | 2024-01-30 | 2024-01-30 | Test system and test method for vehicle-mounted communication protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410130311.3A CN117896297A (en) | 2024-01-30 | 2024-01-30 | Test system and test method for vehicle-mounted communication protocol |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117896297A true CN117896297A (en) | 2024-04-16 |
Family
ID=90639373
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410130311.3A Pending CN117896297A (en) | 2024-01-30 | 2024-01-30 | Test system and test method for vehicle-mounted communication protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117896297A (en) |
-
2024
- 2024-01-30 CN CN202410130311.3A patent/CN117896297A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7786737B2 (en) | Modeling and calibrating a three-port time-domain reflectometry system | |
EP1387176B1 (en) | Time-domain reflectometer for testing terminated network cable | |
DE60100754T2 (en) | SYSTEM AND METHOD FOR TESTING SIGNAL CONNECTIONS USING A BUILT-IN SELF-TEST FUNCTION | |
US8416699B1 (en) | Cable tester | |
EP0370929A3 (en) | Kernel testing interface and method for automating diagnostics of microprocessor-based systems | |
JP2005140785A (en) | System and method for obtaining s parameter by utilizing load | |
CN107491055A (en) | The test system and method for bus | |
CN112506760A (en) | Vehicle controller software flash test method, system, device and storage medium | |
US20020180457A1 (en) | Apparatus, a method for testing an electrical wiring system, a computer program for testing an electrical wiring system and a computer-readable storage medium having stored thereon a computer program for testing an electrical wiring system | |
DE112021007577T5 (en) | INDIVIDUAL DETERMINATION DEVICE AND INDIVIDUAL DETERMINATION PROCESS FOR TARGET EQUIPMENT | |
DE112004001746T5 (en) | Apparatus, method, program and recording medium for detecting error factors | |
CN117896297A (en) | Test system and test method for vehicle-mounted communication protocol | |
US20070197169A1 (en) | Systems and methods for transmitter and channel characterization | |
CN116755024A (en) | Method and device for testing electric energy meter communication interface and readable storage medium | |
JP2024507487A (en) | Communication link operating characteristics test system and test method | |
CN212965857U (en) | CAN bus turn-off fault detection device | |
CN114690741A (en) | Controller test system and method for vehicle, electronic device and readable storage medium | |
TW200839506A (en) | Quantized data-dependent jitter injection using discrete samples | |
CN116074216B (en) | Test method and test device for vehicle-mounted Ethernet physical layer and cloud server | |
JP2005140784A (en) | System for measuring s parameter | |
CN212541098U (en) | CAN physical layer consistency test circuit and test system | |
CN115242609B (en) | Whole vehicle CAN bus fault frame analysis method and device and vehicle | |
CN118612114A (en) | Port interconnection configuration method, device, equipment and medium | |
Merkisz et al. | Methods of testing logical and electrical conformity of OBDII and EOBD communication bus parameters employed to validate and certify diagnostic scanner tools | |
CN117706234A (en) | Fault detection method and device for vehicle CAN bus and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |