CN116684302A - Method and device for testing vehicle-mounted Ethernet - Google Patents

Method and device for testing vehicle-mounted Ethernet Download PDF

Info

Publication number
CN116684302A
CN116684302A CN202310800007.0A CN202310800007A CN116684302A CN 116684302 A CN116684302 A CN 116684302A CN 202310800007 A CN202310800007 A CN 202310800007A CN 116684302 A CN116684302 A CN 116684302A
Authority
CN
China
Prior art keywords
controller
test
tested
function
ethernet
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
Application number
CN202310800007.0A
Other languages
Chinese (zh)
Inventor
马天龙
刘超
李长龙
孔祥明
祁明阳
王天骄
肖心刚
李娜
李玉发
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FAW Group Corp
Original Assignee
FAW Group Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by FAW Group Corp filed Critical FAW Group Corp
Priority to CN202310800007.0A priority Critical patent/CN116684302A/en
Publication of CN116684302A publication Critical patent/CN116684302A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Abstract

The invention discloses a testing method and a testing device of a vehicle-mounted Ethernet, which are applied to an upper computer, wherein the method comprises the following steps: configuring Ethernet parameters corresponding to a controller to be tested, wherein the Ethernet parameters comprise an Ethernet node protocol and a node physical address; calling an objective function based on the test item, simulating the test environment of the Ethernet and testing the controller to be tested; and generating a test report of the controller to be tested according to the test data and the preset standard test data generated by the controller to be tested for the test item. The problem of the test efficiency of on-vehicle ethernet low, the test result rate of accuracy is lower is solved, the beneficial effect that improves on-vehicle ethernet's test efficiency and rate of accuracy has been got.

Description

Method and device for testing vehicle-mounted Ethernet
Technical Field
The present invention relates to the field of ethernet testing technologies, and in particular, to a method and an apparatus for testing a vehicle-mounted ethernet.
Background
Along with the increasing maturity of the vehicle-mounted Ethernet technology, various vehicle-mounted electronic products gradually develop from the traditional network to support vehicle-mounted Ethernet communication, and meanwhile, the traditional network management is gradually replaced by the Ethernet network management with larger bandwidth and faster response speed.
Along with the maturity of on-vehicle ethernet technique, corresponding on-vehicle ethernet network management test also becomes just needed, and on-vehicle ethernet is because the agreement is many, and the realization is complicated, compares with traditional network, and corresponding development and test are all more difficult. At present, the management test schemes of the vehicle-mounted Ethernet are fewer, manual and item-by-item tests are adopted for testing the vehicle-mounted Ethernet, the time and labor cost is high, the test efficiency is low, and the accuracy of test results is low.
Disclosure of Invention
The invention provides a method and a device for testing a vehicle-mounted Ethernet, which are used for solving the problems of high time and labor cost, low testing efficiency and low accuracy of testing results required by testing the vehicle-mounted Ethernet.
According to one aspect of the present invention, there is provided a method for testing a vehicle-mounted ethernet, which is applied to an upper computer, the method for testing a vehicle-mounted ethernet comprising:
configuring Ethernet parameters corresponding to a controller to be tested, wherein the Ethernet parameters comprise an Ethernet node protocol and a node physical address;
calling an objective function based on the test item, simulating the test environment of the Ethernet and testing the controller to be tested;
and generating a test report of the controller to be tested according to the test data and the preset standard test data generated by the controller to be tested for the test item.
According to another aspect of the present invention, there is provided a test apparatus of an in-vehicle ethernet, the test apparatus of the in-vehicle ethernet including:
the parameter configuration module is used for configuring Ethernet parameters corresponding to the controller to be tested, wherein the Ethernet parameters comprise an Ethernet node protocol and a node physical address;
the test module is used for calling an objective function based on the test item, simulating the test environment of the Ethernet and testing the controller to be tested;
and the report generation module is used for generating a test report of the controller to be tested according to the test data and the preset standard test data generated by the controller to be tested for the test item.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method for testing the in-vehicle ethernet according to any of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement the method for testing a vehicle-mounted ethernet according to any of the embodiments of the present invention when executed.
According to the technical scheme, the Ethernet parameters corresponding to the controller to be tested are configured, wherein the Ethernet parameters comprise an Ethernet node protocol and a node physical address; configuring parameters matched with a controller to be tested, calling an objective function based on the test item, simulating the test environment of the Ethernet, and testing the controller to be tested; and finally, according to test data generated by the to-be-tested controller for the test item and preset standard test data, generating a test report of the to-be-tested controller, solving the problems of high time and labor cost, low test efficiency and lower test result accuracy required by the test of the vehicle-mounted Ethernet and obtaining the beneficial effects of improving the test efficiency and accuracy of the vehicle-mounted Ethernet.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for testing a vehicle-mounted ethernet according to a first embodiment of the present invention;
fig. 2a is a flowchart of a test method of a vehicle-mounted ethernet according to a second embodiment of the present invention;
fig. 2b is a flowchart of an alternative example of a testing method for a vehicle-mounted ethernet according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a test device for a vehicle-mounted ethernet according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device implementing a test method of an in-vehicle ethernet according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
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 apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a method for testing a vehicle-mounted ethernet according to an embodiment of the present invention, where the method may be performed by a vehicle-mounted ethernet testing device, and the vehicle-mounted ethernet testing device may be implemented in hardware and/or software, and the vehicle-mounted ethernet testing device may be configured in an electronic device. As shown in fig. 1, the method includes:
s110, configuring Ethernet parameters corresponding to the controller to be tested, wherein the Ethernet parameters comprise an Ethernet node protocol and a node physical address.
Specifically, the upper computer establishes connection with the controller to be tested through an Ethernet interface of the Ethernet equipment. And controlling the program-controlled power supply to supply power for the controller to be tested. And configuring parameters such as hardware channels of Ethernet equipment and addresses of Ethernet nodes IP (Internet Protocol) and MAC (Media Access Control). The ethernet parameters may be preconfigured according to the overall ethernet related specification, which is not limited in this embodiment.
S120, calling an objective function based on the test item, simulating the test environment of the Ethernet and testing the controller to be tested.
The objective function can be understood as a function to be called by the test item. The test environment may be understood as a real-vehicle ethernet environment.
Specifically, a test item is determined, and functional parameters required by the test item are determined based on the test item. And simulating the test environment of the Ethernet for whole vehicle dormancy, awakening and network abnormality by calling the functional parameters. And testing the controller to be tested in a simulated test environment.
S130, generating a test report of the controller to be tested according to the test data and the preset standard test data generated by the controller to be tested for the test item.
The test item may be understood as an item for testing the controller to be tested, and the test item may include at least one test function. Test data may be understood as data generated during a test. The preset standard test data may be understood as test data of a desired standard, and may be preset empirically, which is not limited in this embodiment.
Specifically, data generated in the test process of the to-be-tested controller aiming at the test item is obtained, and if the test item comprises a test function, the data generated in the test process is directly used as test data. Generating a test report of the controller to be tested according to the test data and the preset standard test data; if the test item contains multiple test functions, integrating data generated in the test process of each test function to serve as test data. Generating a test report of the controller to be tested according to the integrated test data and the preset standard test data
Optionally, generating a test report of the to-be-tested controller according to test data generated by the to-be-tested controller in the test process includes:
comparing the test data generated by the controller to be tested with preset standard test data, and judging whether the test data meets the preset standard test data or not;
and generating a test report of the controller to be tested based on the test data meeting the preset standard test data and the test data not meeting the preset standard test data.
Specifically, the test data generated by the controller to be tested and the preset standard test data are based. And comparing the test data generated by the controller to be tested with the preset standard test data. And judging whether the test data meets the preset standard test data or not according to the comparison result. And respectively classifying and summarizing the test data meeting the preset standard test data and the test data not meeting the preset standard test data. And generating a test report of the controller to be tested based on the test items, the test data, the preset standard data, the test data meeting the preset standard test data and the test data not meeting the preset standard test data. Wherein the test report includes, but is not limited to, text form, graphic form, chart form, etc.
According to the technical scheme, the Ethernet parameters corresponding to the controller to be tested are configured, wherein the Ethernet parameters comprise an Ethernet node protocol and a node physical address; accurately configuring parameters matched with a controller to be tested, calling an objective function based on the test item, simulating the test environment of the Ethernet, and testing the controller to be tested; and finally, according to test data generated by the to-be-tested controller for the test item and preset standard test data, generating a test report of the to-be-tested controller, solving the problems of high time and labor cost, low test efficiency and lower test result accuracy required by the test of the vehicle-mounted Ethernet and obtaining the beneficial effects of improving the test efficiency and accuracy of the vehicle-mounted Ethernet.
Example two
Fig. 2a is a flowchart of a test method for a vehicle-mounted ethernet according to a second embodiment of the present invention, which is further elaborated on how to call an objective function based on the test item, simulate the test environment of the ethernet, and test the to-be-tested controller in the present embodiment and the above embodiment. Optionally, the calling the objective function based on the test item simulates a test environment of the ethernet and tests the to-be-tested controller, including: determining a test case corresponding to the test item based on a preset corresponding relation between the test item and the test case; aiming at each test case, calling an objective function corresponding to the test case, simulating the test environment of the Ethernet and testing the controller to be tested to obtain test data generated by the controller to be tested aiming at the test case; and taking the test data corresponding to all the test cases corresponding to the test items as the test data generated by the controller to be tested for the test items.
As shown in fig. 2a, the method comprises:
s210, configuring Ethernet parameters corresponding to the controller to be tested, wherein the Ethernet parameters comprise an Ethernet node protocol and a node physical address.
S220, determining the test cases corresponding to the test items based on the preset corresponding relation between the test items and the test cases.
A test case may be understood as a set of test inputs, execution conditions, and documents of expected results designed for a particular purpose, and may include, but is not limited to, case identification, case priority, test inputs, test steps, and expected results.
Specifically, based on the current test item, searching for one or more corresponding test cases in the preset corresponding relation between the test item and the test cases. If the corresponding test cases are found, taking the found one or more test cases as target test cases. If the corresponding test cases are not found, writing one or more test cases based on the test items, and taking the written one or more test cases as target test cases. It can be understood that the corresponding relation between one or more written test cases and test items is established and stored in a database, so that the method is convenient for use in the subsequent test.
Optionally, the test cases are divided according to the number of test functions of the test item, for example: one test function corresponds to one test case; or dividing test cases according to the test complexity of the test items, for example: if the test item is more complex, a plurality of test cases can be divided; if the complexity of the test item is low, the test can be performed through one test case; or by manually selecting the number of test cases to be divided.
S230, for each test case, calling an objective function corresponding to the test case, simulating the test environment of the Ethernet, and testing the controller to be tested to obtain test data generated by the controller to be tested for the test case.
The test environment may include at least one of vehicle sleep, vehicle wake-up, and network anomalies.
Specifically, a correspondence between the test case and the objective function may be previously constructed and stored. And determining an objective function required to be called by each test case and calling the objective function based on the corresponding relation between the pre-constructed test case and the objective function according to each test case. And simulating the Ethernet test environment based on the called objective function, and testing the controller to be tested in the Ethernet test environment. Optionally, at least one test environment of the ethernet is simulated based on the invoked objective function, for example: the test environment of the whole vehicle dormancy of the Ethernet can be simulated, and the test environment of the whole vehicle awakening after the whole vehicle dormancy of the Ethernet can be simulated.
Optionally, if the test cases include a plurality of test cases, testing is performed based on the identifiers of the test cases, after each test case is finished, whether all the test cases have finished testing is judged according to the identifiers of the test cases, if yes, test data are output, and if not, testing is continued until all the test cases have finished testing.
In the embodiment of the invention, the environment of the real-vehicle Ethernet is simulated by calling the objective function corresponding to the test case, and the test is performed in the simulated real-vehicle Ethernet environment, so that the test authenticity and the accuracy of the test result are improved.
Optionally, the objective function includes at least one of the following functions: a power-off function, a power-on function, a voltage setting function, a time recording function, a physical address data transmission function, an Ethernet network monitoring function, a time calculation function, an Ethernet message transmission function, an Ethernet message receiving function and an Ethernet message parsing function.
Optionally, the test item includes a wake-up time test; the function is called based on the preset execution standard data, the test environment of the Ethernet is simulated and the to-be-tested controller is tested, and the method comprises the following steps: controlling the program-controlled power supply to be turned on through a power supply turning-on function so as to electrify the controller to be tested, and reading and recording the electrifying time of the controller to be tested through a time recording function; transmitting a first frame legal Ethernet message to a physical address of a controller to be tested through a physical address data transmitting function, and monitoring and recording message transmitting time of the controller to be tested for transmitting the first frame legal Ethernet message through an Ethernet monitoring function; and calculating the wake-up time of the controller to be tested based on the power-on time and the message sending time through a time calculation function.
Specifically, a first difference value between the message sending time and the power-on time is calculated through a time calculation function, and the wake-up time of the controller to be tested is determined based on the first difference value. After the wake-up time of the controller to be detected is calculated, judging whether the wake-up time of the controller to be detected meets the preset standard wake-up time or not based on the first difference value. The preset standard wake-up time may be preset empirically (for example, 90 seconds), which is not limited in this embodiment.
Optionally, the test item includes a sleep time test; the function is called based on the preset execution standard data, the test environment of the Ethernet is simulated and the to-be-tested controller is tested, and the method comprises the following steps: controlling the program-controlled power supply to be turned off through a power supply turning-off function so as to enable the controller to be tested to be powered off, and setting the voltage to be low through a voltage setting function so as to enable the controller to be tested to enter a dormant state from a normal working state; recording the time of the controller to be tested entering the dormant state through a time recording function, monitoring the working state of the controller to be tested through an Ethernet network monitoring function, and recording the network disconnection time of the controller to be tested through the time recording function when the network disconnection of the controller to be tested is monitored; and calculating the sleep time of the controller to be tested based on the sleep time and the network disconnection time through a time calculation function.
Specifically, a second difference value between the network disconnection time and the dormancy time is calculated through a time calculation function, and the wake-up time of the controller to be tested is determined based on the second difference value. After the wake-up time of the controller to be detected is calculated, whether the wake-up time of the controller to be detected meets the preset standard sleep time or not is judged based on the second difference value. The preset standard sleep time may be preset empirically (e.g. 10 seconds), which is not limited in this embodiment.
Optionally, the test item includes a sleep current test; the function is called based on the preset execution standard data, the test environment of the Ethernet is simulated and the to-be-tested controller is tested, and the method comprises the following steps: controlling the program-controlled power supply to be turned off through a power supply turning-off function to enable the controller to be tested to be powered off, and setting the voltage to be low through a voltage setting function to enable the controller to be tested to enter a dormant state from a normal working state; recording the time of the controller to be tested entering the dormant state through a time recording function, monitoring the working current of the controller to be tested through an Ethernet network monitoring function, and recording the time of the working current of the controller to be tested reaching the dormant current threshold through the time recording function when the working current of the controller to be tested reaches the dormant current threshold; and calculating the time length of the controller to be detected reaching the dormant current based on the time of the controller to be detected entering the dormant state and the time of the working current of the controller to be detected reaching the dormant current threshold value through a time calculation function.
The sleep current threshold may be preset empirically, and this embodiment is not limited thereto.
Specifically, when the controller to be tested is detected to enter the dormant state from the normal working state, the time of the controller to be tested entering the dormant state is recorded. The working current of the controller to be tested is continuously monitored through an Ethernet network monitoring function. And recording the time when the working current of the controller to be tested reaches the sleep threshold value. And calculating a third difference value between the time when the working current of the controller to be tested reaches the dormant current threshold and the time when the controller to be tested enters the dormant state through a time calculation function. And judging whether the time for the working current of the controller to be tested to reach the dormant current meets preset standard dormant current data or not based on the third difference value. The preset standard sleep time may be preset empirically (e.g. 10 seconds), which is not limited in this embodiment.
Optionally, the test item includes that the sleep process receives an address resolution protocol test; the function is called based on the preset execution standard data, the test environment of the Ethernet is simulated and the to-be-tested controller is tested, and the method comprises the following steps: controlling the program-controlled power supply to be turned off through a power supply turning-off function to enable the controller to be tested to be powered off, and setting the voltage to be low through a voltage setting function to enable the controller to be tested to enter a dormant state from a normal working state; sending an address resolution protocol request message to the controller to be tested in a simulation way through an Ethernet message sending function; and detecting whether the controller to be detected feeds back an address resolution protocol request message through an Ethernet message receiving function.
The method includes the steps that when a controller to be tested normally works, program-controlled voltage is closed to control the controller to be tested to power down, the voltage is set to be low, the controller to be tested is enabled to enter a dormant state, ARP (Address Resolution Protocol) Request messages are simulated to be sent, whether the controller to be tested feeds back ARP Reply messages or not is detected through an ethernet message receiving function, whether the behavior of the controller to be tested feeds back ARP Reply messages or not is judged, and whether the behavior of the controller to be tested feeds back ARP Reply messages or not is judged, wherein the preset standard feedback time can be preset according to experience, and the method is limited.
Optionally, the method further comprises: after the controller to be tested enters the dormant state, the programmable power supply is controlled to be turned on through the power supply turning-on function so that the controller to be tested is electrified, and the voltage is set to be high through the voltage setting function so that the controller to be tested enters the wake-up state from the dormant state. Further, the function is called based on the preset execution standard data, the test environment of the Ethernet is simulated, and the to-be-tested controller is tested, including at least one of the following operations: under the condition that the test items comprise node source address tests, detecting a network protocol message sent by a controller to be tested through an Ethernet message receiving function, and analyzing data in a payload of the network protocol message sent by the controller through an Ethernet message analyzing function; under the condition that the test items comprise a sending port number and a receiving port number, detecting a network protocol message sent by a controller to be tested through an Ethernet message receiving function, and analyzing the sending port number and the receiving port number of the network protocol message sent by the controller to be tested through an Ethernet message analyzing function; under the condition that the test item comprises a target network protocol address test, analyzing a target network protocol address of the network protocol message sent by the controller to be tested through an Ethernet message analysis function; and under the condition that the test item comprises 8. The first frame message test, analyzing the message type and the message data of the first frame message sent by the to-be-tested controller through an Ethernet message analysis function.
After the controller to be tested enters the sleep state, the programmable power supply is restored to supply power, and the voltage is set to be high, so that the vehicle enters the wake-up state. And when the vehicle enters an awake state, judging whether the data meets preset standard test data or not by checking the data in the Payload of the NM message sent by the controller. And when the vehicle enters an awake state, checking the transmitting port number and the receiving port number of the NM message transmitted by the controller, and judging whether the port number meets the preset standard port number. And when the vehicle enters the wake-up state, judging whether the target IP address meets a preset standard IP address or not by checking the target IP address of the NM message sent by the controller. And when the vehicle enters an awakening state, checking the first frame message sent by the controller, and judging whether the type of the first frame message and the data content meet the preset standard message type.
S240, taking the test data corresponding to all the test cases corresponding to the test items as the test data generated by the controller to be tested for the test items.
Specifically, when a test item corresponds to a plurality of test cases, test data corresponding to all the test cases are used as test data generated by the to-be-tested controller for the test item. When the test item corresponds to one test case, the test data corresponding to the test case is used as the test data generated by the controller to be tested aiming at the test item. The test cases include test cases, test data of a first frame message type, a port number and an IP address of test data corresponding to the test case corresponding to the test item when the test case, the test of a transmitting port number and a receiving port number and the test of a destination network protocol address are used as test data generated by the controller to be tested for the test item.
S250, generating a test report of the controller to be tested according to the test data and the preset standard test data generated by the controller to be tested for the test item.
According to the technical scheme, the test cases corresponding to the test items are determined based on the preset corresponding relation between the test items and the test cases; and accurately determining the test cases corresponding to the test items. Then, for each test case, calling an objective function corresponding to the test case, simulating the test environment of the Ethernet and testing the controller to be tested to obtain test data generated by the controller to be tested for the test case; and testing the to-be-tested controller in the simulated real-vehicle Ethernet environment, so as to improve the authenticity of the test and the accuracy of the test result. And finally, taking the test data corresponding to all the test cases corresponding to the test items as the test data generated by the controller to be tested for the test items. The method improves the accuracy and reliability of the test data, solves the problem of lower accuracy of the test result of the vehicle-mounted Ethernet, and achieves the beneficial effect of improving the accuracy of the test result of the vehicle-mounted Ethernet.
Fig. 2b provides a flow chart of an alternative example of a test method for an on-board ethernet network. As shown in fig. 2b, the testing method of the vehicle-mounted ethernet specifically includes the following steps:
step 1, configuring Ethernet parameters corresponding to a controller to be tested, wherein the Ethernet parameters comprise an Ethernet node protocol and a node physical address;
and 2, determining the test cases corresponding to the test items based on the test items.
And 3, calling an objective function corresponding to each test case, simulating the test environment of the Ethernet and testing the controller to be tested to obtain test data generated by the controller to be tested for the test cases.
Optionally, the objective function includes at least one of the following functions: a power-off function, a power-on function, a voltage setting function, a time recording function, a physical address data transmission function, an Ethernet network monitoring function, a time calculation function, an Ethernet message transmission function, an Ethernet message receiving function and an Ethernet message parsing function.
For each test case, an objective function corresponding to the test case is called, the test environment of the Ethernet is simulated, and the to-be-tested controller is tested, wherein the method comprises at least one of the following steps:
1) And (5) wake-up time test. Controlling the program-controlled power supply to be turned on through a power supply turning-on function so as to electrify the controller to be tested, and reading and recording the electrifying time of the controller to be tested through a time recording function; transmitting a first frame legal Ethernet message to a physical address of a controller to be tested through a physical address data transmitting function, and monitoring and recording message transmitting time of the controller to be tested for transmitting the first frame legal Ethernet message through an Ethernet monitoring function; and calculating the wake-up time of the controller to be tested based on the power-on time and the message sending time through a time calculation function. And calculating a first difference value between the message sending time and the power-on time through a time calculation function, and determining the wake-up time of the controller to be tested based on the first difference value. After the wake-up time of the controller to be detected is calculated, judging whether the wake-up time of the controller to be detected meets the preset standard wake-up time or not based on the first difference value.
2) And (5) testing dormancy time. And when the controller to be tested works normally, manufacturing a dormancy condition, recording the time t1, continuously monitoring the working state of the controller, recording the time t2, calculating the dormancy time t2-t1 of the controller when the LINK of the controller network is DOWN, and judging whether the dormancy time meets the requirement of a test specification. Controlling the program-controlled power supply to be turned off through a power supply turning-off function so as to enable the controller to be tested to be powered off, and setting the voltage to be low through a voltage setting function so as to enable the controller to be tested to enter a dormant state from a normal working state; recording the time of the controller to be tested entering the dormant state through a time recording function, monitoring the working state of the controller through an Ethernet network monitoring function, and recording the network disconnection time of the controller to be tested through the time recording function when the network disconnection of the controller is monitored; controller sleep time is calculated based on the sleep time and network disconnect time by a time calculation function. And calculating a second difference value between the network disconnection time and the dormancy time through a time calculation function, and determining the wake-up time of the controller to be tested based on the second difference value. After the wake-up time of the controller to be detected is calculated, whether the wake-up time of the controller to be detected meets the preset standard sleep time or not is judged based on the second difference value.
3) And (5) testing dormancy current. Controlling the program-controlled power supply to be turned off through a power supply turning-off function to enable the controller to be tested to be powered off, and setting the voltage to be low through a voltage setting function to enable the controller to be tested to enter a dormant state from a normal working state; recording the time of the controller to be tested entering the dormant state through a time recording function, monitoring the working current of the controller through an Ethernet network monitoring function, and recording the time of the working current of the controller to be tested reaching the dormant current threshold through the time recording function when the working current of the controller to be tested reaches the dormant current threshold; and calculating the time length of the controller to be detected reaching the dormant current based on the time of the controller to be detected entering the dormant state and the time of the working current of the controller to be detected reaching the dormant current threshold value through a time calculation function. And calculating a third difference value between the time when the working current of the controller to be tested reaches the dormant current threshold and the time when the controller to be tested enters the dormant state through a time calculation function. And judging whether the time for the working current of the controller to be tested to reach the dormant current meets preset standard dormant current data or not based on the third difference value.
4) And the dormancy process receives the ARP message test. Controlling the program-controlled power supply to be turned off through a power supply turning-off function to enable the controller to be tested to be powered off, and setting the voltage to be low through a voltage setting function to enable the controller to be tested to enter a dormant state from a normal working state; and when the controller to be tested normally works, manufacturing a dormancy condition, sending an ARP Request message to the controller to be tested in a simulation way, detecting whether the controller to be tested feeds back an ARP Reply message through an Ethernet message receiving function, and judging whether the behavior of the controller to be tested feeds back the ARP Reply message within a preset standard feedback time.
5) And testing the source address of the node. After the controller to be tested enters a dormant state, controlling a programmable power supply to be started through a power supply starting function to electrify the controller to be tested, and setting the voltage to be high through a voltage setting function to enable the controller to be tested to enter an awakening state from the dormant state; and detecting data in the Payload of the NM message sent by the controller through an Ethernet message receiving function, and judging whether the data meets the test specification requirement. Judging whether the data meets the preset standard test data or not.
6) And testing the number of the transmitting and receiving ports. After the controller to be tested enters a dormant state, controlling a programmable power supply to be started through a power supply starting function to electrify the controller to be tested, and setting the voltage to be high through a voltage setting function to enable the controller to be tested to enter an awakening state from the dormant state; analyzing a transmitting port number and a receiving port number of the NM message sent by the controller to be tested through an Ethernet message analysis function, and judging whether the port number meets a preset standard port number or not.
7) And testing the destination IP address. After the controller to be tested enters a dormant state, a program-controlled power supply is controlled to be turned on through a power supply turning-on function to enable the controller to be tested to be electrified, the voltage is set to be high through a voltage setting function, so that the controller to be tested enters a wake-up state from the dormant state, an Ethernet message parsing function is used for parsing a target IP address of an NM message sent by the controller, and whether the target IP address meets a preset standard IP address is judged.
8) And testing the first frame message. After the controller to be tested enters a dormant state, controlling a programmable power supply to be started through a power supply starting function to electrify the controller to be tested, and setting the voltage to be high through a voltage setting function to enable the controller to be tested to enter an awakening state from the dormant state; and analyzing the first frame message sent by the controller through the Ethernet message analysis function, and judging whether the type and the data content of the first frame message meet the test specification requirements.
And 4, taking the test data corresponding to all the test cases corresponding to the test items as the test data generated by the controller to be tested aiming at the test items.
And step 5, generating a test report of the controller to be tested according to the test data and the preset standard test data generated by the controller to be tested aiming at the test item.
According to the technical scheme, the Ethernet parameters corresponding to the controller to be tested are configured, wherein the Ethernet parameters comprise an Ethernet node protocol and a node physical address; determining a test case corresponding to the test item based on the test item; aiming at each test case, calling an objective function corresponding to the test case, simulating the test environment of the Ethernet and testing the controller to be tested to obtain test data generated by the controller to be tested aiming at the test case; taking the test data corresponding to all the test cases corresponding to the test items as the test data generated by the controller to be tested aiming at the test items; and generating a test report of the controller to be tested according to the test data and the preset standard test data generated by the controller to be tested for the test item. The problems of high time and labor cost, low testing efficiency and lower accuracy of the testing result of the vehicle-mounted Ethernet are solved, and the beneficial effects of improving the testing efficiency and accuracy of the vehicle-mounted Ethernet are achieved.
Example III
Fig. 3 is a schematic structural diagram of a test device for a vehicle-mounted ethernet according to a third embodiment of the present invention. As shown in fig. 3, the apparatus includes: a parameter configuration module 310, a test module 320, and a report generation module 330.
Wherein, the parameter configuration module 310 is configured to configure the Ethernet parameter corresponding to the controller to be tested,
the Ethernet parameters comprise an Ethernet node protocol and a node physical address; the test module 320 is configured to invoke an objective function based on the test item, simulate a test environment of the ethernet, and test the controller to be tested; and the report generating module 330 is configured to generate a test report of the controller to be tested according to the test data and the preset standard test data generated by the controller to be tested for the test item.
According to the technical scheme, the Ethernet parameters corresponding to the controller to be tested are configured through the parameter configuration module, wherein the Ethernet parameters comprise an Ethernet node protocol and a node physical address; accurately configuring parameters matched with a controller to be tested, then calling an objective function based on the test items through a test module, simulating the test environment of the Ethernet and testing the controller to be tested; and finally, generating a test report of the controller to be tested according to test data generated by the controller to be tested for the test item and preset standard test data by a report generating module, thereby solving the problems of high time and labor cost, low test efficiency and lower test result accuracy required by the test of the vehicle-mounted Ethernet and obtaining the beneficial effects of improving the test efficiency and accuracy of the vehicle-mounted Ethernet.
Optionally, the test module includes:
the test case determining unit is used for determining the test case corresponding to the test item based on the preset corresponding relation between the test item and the test case;
the test case test unit is used for calling an objective function corresponding to each test case, simulating the test environment of the Ethernet and testing the to-be-tested controller to obtain test data generated by the to-be-tested controller for the test cases;
and the test data determining unit is used for taking the test data corresponding to all the test cases corresponding to the test items as the test data generated by the to-be-tested controller for the test items.
Optionally, the objective function includes at least one of the following functions: a power-off function, a power-on function, a voltage setting function, a time recording function, a physical address data transmission function, an Ethernet network monitoring function, a time calculation function, an Ethernet message transmission function, an Ethernet message receiving function and an Ethernet message parsing function.
Optionally, the test item includes a wake-up time test; accordingly, the test module comprises:
The power-on time recording unit is used for controlling the program-controlled power supply to be turned on through a power supply turning-on function so as to enable the controller to be tested to be powered on, and reading and recording the power-on time of the controller to be tested through a time recording function;
the message sending time monitoring unit is used for sending a first frame of legal Ethernet message to the physical address of the controller to be detected through the physical address data sending function, and monitoring and recording the message sending time of the controller to be detected for sending the first frame of legal Ethernet message through the Ethernet state monitoring function;
and the wake-up time calculation unit is used for calculating the wake-up time of the controller to be tested based on the power-on time and the message sending time through a time calculation function.
Optionally, the test item includes a sleep time test; accordingly, the test module comprises:
the first dormant state control unit is used for controlling the program-controlled power supply to be turned off through a power supply turning-off function so as to enable the controller to be tested to be powered down, and setting the voltage to be low through a voltage setting function so as to enable the controller to be tested to enter a dormant state from a normal working state;
the network disconnection time recording unit is used for recording the time of the controller to be tested entering the dormant state through a time recording function, monitoring the working state of the controller through an Ethernet network monitoring function, and recording the network disconnection time of the controller to be tested through the time recording function when the controller network is monitored to be disconnected;
And the sleep time calculation unit is used for calculating the sleep time of the controller based on the sleep time and the network disconnection time through a time calculation function.
Optionally, the test item includes a sleep current test; accordingly, the test module comprises:
the second sleep state control unit is used for controlling the program-controlled power supply to be turned off through a power supply turning-off function so as to enable the controller to be tested to be powered down, and setting the voltage to be low through a voltage setting function so as to enable the controller to be tested to enter a sleep state from a normal working state;
the time recording unit is used for recording the time of the controller to be tested entering the sleep state through the time recording function, monitoring the working current of the controller through the Ethernet network monitoring function, and recording the time of the working current of the controller to be tested reaching the sleep current threshold through the time recording function when the working current of the controller to be tested reaches the sleep current threshold;
and the time length calculation unit for reaching the dormant current calculates the time length of the controller to be detected reaching the dormant current based on the time of the controller to be detected entering the dormant state and the time of the working current of the controller to be detected reaching the dormant current threshold value through a time calculation function.
Optionally, the test item includes that the sleep process receives an address resolution protocol test; accordingly, the test module comprises:
the third dormant state control unit is used for controlling the program-controlled power supply to be turned off through a power supply turning-off function so as to enable the controller to be tested to be powered down, and setting the voltage to be low through a voltage setting function so as to enable the controller to be tested to enter a dormant state from a normal working state;
the first message sending unit is used for sending an address resolution protocol request message to the to-be-tested controller in a simulation manner through an Ethernet message sending function;
and the message receiving unit is used for detecting whether the controller to be detected feeds back an address resolution protocol request message through an Ethernet message receiving function.
The apparatus further comprises:
the wake-up module is used for controlling the program-controlled power supply to be started through the power supply start function to electrify the controller to be tested after the controller to be tested enters the dormant state, and setting the voltage to be high through the voltage setting function to enable the controller to be tested to enter the wake-up state from the dormant state;
the base test module comprises at least one of a first message analysis unit, a second message analysis unit, a third message analysis unit and a fourth message analysis unit.
The first message analyzing unit is used for detecting the network protocol message sent by the controller to be tested through the Ethernet message receiving function under the condition that the test item comprises the node source address test, and analyzing the data in the payload of the network protocol message sent by the controller through the Ethernet message analyzing function; the second message analysis unit is used for detecting the network protocol message sent by the controller to be tested through the Ethernet message receiving function and analyzing the sending port number and the receiving port number of the network protocol message sent by the controller to be tested through the Ethernet message analysis function under the condition that the test item comprises the sending port number and the receiving port number; the third message analysis unit is used for analyzing the destination network protocol address of the network protocol message sent by the controller to be tested through an Ethernet message analysis function under the condition that the test item comprises the destination network protocol address test; and the fourth message analysis unit is used for analyzing the message type and the message data of the first frame message sent by the to-be-tested controller through an Ethernet message analysis function under the condition that the test item comprises the first frame message test.
Optionally, the report generating module includes:
the data comparison unit is used for comparing the test data generated by the controller to be tested with preset standard test data and judging whether the test data meets the preset standard test data or not;
and the report generating unit is used for generating a test report of the controller to be tested based on the test data meeting the preset standard test data and the test data not meeting the preset standard test data.
The test device of the vehicle-mounted Ethernet provided by the embodiment of the invention can execute the test method of the vehicle-mounted Ethernet provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 4 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as testing of the method's on-board ethernet.
In some embodiments, the testing of the method on-board ethernet may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the method of testing on-board ethernet described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the test of the method on-board ethernet in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. The test method of the vehicle-mounted Ethernet is applied to an upper computer and is characterized by comprising the following steps of:
configuring Ethernet parameters corresponding to a controller to be tested, wherein the Ethernet parameters comprise an Ethernet node protocol and a node physical address;
calling an objective function based on the test item, simulating the test environment of the Ethernet and testing the controller to be tested;
and generating a test report of the controller to be tested according to the test data and the preset standard test data generated by the controller to be tested for the test item.
2. The method of claim 1, wherein the calling an objective function based on the preset execution standard data, simulating a test environment of the ethernet and testing the to-be-tested controller comprises:
determining a test case corresponding to the test item based on a preset corresponding relation between the test item and the test case;
aiming at each test case, calling an objective function corresponding to the test case, simulating the test environment of the Ethernet and testing the controller to be tested to obtain test data generated by the controller to be tested aiming at the test case;
and taking the test data corresponding to all the test cases corresponding to the test items as the test data generated by the controller to be tested for the test items.
3. The method of claim 1, wherein the objective function comprises at least one of the following functions: a power-off function, a power-on function, a voltage setting function, a time recording function, a physical address data transmission function, an Ethernet network monitoring function, a time calculation function, an Ethernet message transmission function, an Ethernet message receiving function and an Ethernet message parsing function.
4. A method according to claim 3, wherein the test items comprise wake time tests; the function is called based on the preset execution standard data, the test environment of the Ethernet is simulated and the to-be-tested controller is tested, and the method comprises the following steps:
controlling the program-controlled power supply to be turned on through a power supply turning-on function so as to electrify the controller to be tested, and reading and recording the electrifying time of the controller to be tested through a time recording function;
transmitting a first frame legal Ethernet message to a physical address of a controller to be tested through a physical address data transmitting function, and monitoring and recording message transmitting time of the controller to be tested for transmitting the first frame legal Ethernet message through an Ethernet monitoring function;
and calculating the wake-up time of the controller to be tested based on the power-on time and the message sending time through a time calculation function.
5. A method according to claim 3, wherein the test items comprise a sleep time test; the function is called based on the preset execution standard data, the test environment of the Ethernet is simulated and the to-be-tested controller is tested, and the method comprises the following steps:
controlling the program-controlled power supply to be turned off through a power supply turning-off function so as to enable the controller to be tested to be powered off, and setting the voltage to be low through a voltage setting function so as to enable the controller to be tested to enter a dormant state from a normal working state;
Recording the time of the controller to be tested entering the dormant state through a time recording function, monitoring the working state of the controller to be tested through an Ethernet network monitoring function, and recording the network disconnection time of the controller to be tested through the time recording function when the network disconnection of the controller to be tested is monitored;
and calculating the sleep time of the controller to be tested based on the sleep time and the network disconnection time through a time calculation function.
6. The method of claim 3, wherein the test items comprise a sleep current test; the function is called based on the preset execution standard data, the test environment of the Ethernet is simulated and the to-be-tested controller is tested, and the method comprises the following steps:
controlling the program-controlled power supply to be turned off through a power supply turning-off function to enable the controller to be tested to be powered off, and setting the voltage to be low through a voltage setting function to enable the controller to be tested to enter a dormant state from a normal working state;
recording the time of the controller to be tested entering the dormant state through a time recording function, monitoring the working current of the controller to be tested through an Ethernet network monitoring function, and recording the time of the working current of the controller to be tested reaching the dormant current threshold through the time recording function when the working current of the controller to be tested reaches the dormant current threshold;
And calculating the time length of the controller to be detected reaching the dormant current based on the time of the controller to be detected entering the dormant state and the time of the working current of the controller to be detected reaching the dormant current threshold value through a time calculation function.
7. The method of claim 3, wherein the test item comprises a sleep process received an address resolution protocol test; the function is called based on the preset execution standard data, the test environment of the Ethernet is simulated and the to-be-tested controller is tested, and the method comprises the following steps:
controlling the program-controlled power supply to be turned off through a power supply turning-off function to enable the controller to be tested to be powered off, and setting the voltage to be low through a voltage setting function to enable the controller to be tested to enter a dormant state from a normal working state;
sending an address resolution protocol request message to the controller to be tested in a simulation way through an Ethernet message sending function;
and detecting whether the controller to be detected feeds back an address resolution protocol request message through an Ethernet message receiving function.
8. A method according to claim 3, further comprising:
after the controller to be tested enters a dormant state, controlling a programmable power supply to be started through a power supply starting function to electrify the controller to be tested, and setting the voltage to be high through a voltage setting function to enable the controller to be tested to enter an awakening state from the dormant state;
The function is called based on the preset execution standard data, the test environment of the Ethernet is simulated, and the to-be-tested controller is tested, including at least one of the following operations:
under the condition that the test items comprise node source address tests, detecting a network protocol message sent by a controller to be tested through an Ethernet message receiving function, and analyzing data in a payload of the network protocol message sent by the controller through an Ethernet message analyzing function;
under the condition that the test items comprise a sending port number and a receiving port number, detecting a network protocol message sent by a controller to be tested through an Ethernet message receiving function, and analyzing the sending port number and the receiving port number of the network protocol message sent by the controller to be tested through an Ethernet message analyzing function;
under the condition that the test item comprises a target network protocol address test, analyzing a target network protocol address of the network protocol message sent by the controller to be tested through an Ethernet message analysis function;
and under the condition that the test item comprises a first frame message test, analyzing the message type and the message data of the first frame message sent by the to-be-tested controller through an Ethernet message analysis function.
9. The method of claim 1, wherein generating a test report for the controller under test based on test data generated by the controller under test during the test comprises:
comparing the test data generated by the controller to be tested with preset standard test data, and judging whether the test data meets the preset standard test data or not;
and generating a test report of the controller to be tested based on the test data meeting the preset standard test data and the test data not meeting the preset standard test data.
10. A test device for a vehicle-mounted ethernet network, comprising:
the parameter configuration module is used for configuring Ethernet parameters corresponding to the controller to be tested, wherein the Ethernet parameters comprise an Ethernet node protocol and a node physical address;
the test module is used for calling an objective function based on the test item, simulating the test environment of the Ethernet and testing the controller to be tested;
and the report generation module is used for generating a test report of the controller to be tested according to the test data and the preset standard test data generated by the controller to be tested for the test item.
CN202310800007.0A 2023-06-30 2023-06-30 Method and device for testing vehicle-mounted Ethernet Pending CN116684302A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310800007.0A CN116684302A (en) 2023-06-30 2023-06-30 Method and device for testing vehicle-mounted Ethernet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310800007.0A CN116684302A (en) 2023-06-30 2023-06-30 Method and device for testing vehicle-mounted Ethernet

Publications (1)

Publication Number Publication Date
CN116684302A true CN116684302A (en) 2023-09-01

Family

ID=87789136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310800007.0A Pending CN116684302A (en) 2023-06-30 2023-06-30 Method and device for testing vehicle-mounted Ethernet

Country Status (1)

Country Link
CN (1) CN116684302A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117240738A (en) * 2023-11-15 2023-12-15 国汽(北京)智能网联汽车研究院有限公司 Method, device, equipment and storage medium for testing vehicle-mounted Ethernet

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117240738A (en) * 2023-11-15 2023-12-15 国汽(北京)智能网联汽车研究院有限公司 Method, device, equipment and storage medium for testing vehicle-mounted Ethernet
CN117240738B (en) * 2023-11-15 2024-03-29 国汽(北京)智能网联汽车研究院有限公司 Method, device, equipment and storage medium for testing vehicle-mounted Ethernet

Similar Documents

Publication Publication Date Title
CN111639002B (en) Sleep power consumption testing method, system, computer equipment and storage medium
WO2023222109A1 (en) Network wakeup management method and apparatus, electronic device, and storage medium
CN116684302A (en) Method and device for testing vehicle-mounted Ethernet
CN112087354A (en) Communication protocol testing method and device, electronic equipment and storage medium
CN114328132A (en) Method, device, equipment and medium for monitoring state of external data source
CN116700776A (en) Information management method, device, equipment and storage medium of battery management system
CN115086384B (en) Remote control test method, device, equipment and storage medium
CN116027226A (en) Component testing method and device, electronic equipment and storage medium
CN115933591A (en) Controller diagnosis method, device, equipment and storage medium
CN115130112A (en) Quick start-stop method, device, equipment and storage medium
CN114389969A (en) Client test method and device, electronic equipment and storage medium
CN117709255B (en) Test method, device, equipment and medium for indirect access register
CN117492822B (en) Change contrast method, device, electronic equipment and storage medium
CN115102850B (en) Configuration comparison method, device, electronic equipment and storage medium
CN115225556A (en) Detection method, device, equipment and storage medium
CN116225941A (en) Page detection method and device, electronic equipment and storage medium
CN117631636A (en) Vehicle-mounted controller testing method and device and electronic equipment
CN116192686A (en) BMC stability test method, device, equipment and medium
CN115904956A (en) Application program refresh test method and device, electronic equipment and storage medium
CN116449810A (en) Fault detection method and device, electronic equipment and storage medium
CN117784763A (en) Message sending method and device, electronic equipment and storage medium
CN117331762A (en) Test method, device, equipment and medium for link training of PCIe equipment
CN117061564A (en) Verification method, device, equipment and medium for vehicle signal transmission state
CN115270672A (en) Verification method, device, equipment and storage medium of TCAM (ternary content addressable memory) encapsulation module
CN116303071A (en) Interface testing method and device, electronic equipment 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