CN112702220B - Network testing method and network testing device - Google Patents

Network testing method and network testing device Download PDF

Info

Publication number
CN112702220B
CN112702220B CN201911007614.1A CN201911007614A CN112702220B CN 112702220 B CN112702220 B CN 112702220B CN 201911007614 A CN201911007614 A CN 201911007614A CN 112702220 B CN112702220 B CN 112702220B
Authority
CN
China
Prior art keywords
network
test
segment
network segment
test network
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.)
Active
Application number
CN201911007614.1A
Other languages
Chinese (zh)
Other versions
CN112702220A (en
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.)
Beijing CHJ Automotive Information Technology Co Ltd
Original Assignee
Beijing CHJ Automotive Information Technology Co Ltd
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 Beijing CHJ Automotive Information Technology Co Ltd filed Critical Beijing CHJ Automotive Information Technology Co Ltd
Priority to CN201911007614.1A priority Critical patent/CN112702220B/en
Publication of CN112702220A publication Critical patent/CN112702220A/en
Application granted granted Critical
Publication of CN112702220B publication Critical patent/CN112702220B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40234Local Interconnect Network LIN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

Abstract

The invention provides a network test method and a network test device, wherein the method is applied to a network architecture of a vehicle, the network architecture comprises N network segments, each network segment comprises at least two network nodes, N is an integer greater than or equal to 1, and the method comprises the following steps: setting parameters of non-test network nodes in the test network segment to meet sleep conditions; after the non-test network nodes in the test network segment are in the sleep state, setting parameters of the test network nodes in the test network segment to meet the sleep condition; and monitoring the network state of the test network nodes in the test network segment according to the network communication protocol of the test network segment. The invention provides a method and a device for network testing of a vehicle network architecture, which realize automatic network testing of the vehicle network architecture.

Description

Network testing method and network testing device
Technical Field
The embodiment of the invention relates to the technical field of vehicles, in particular to a network testing method and a network testing device.
Background
The network architecture of the vehicle generally includes a plurality of network nodes, and whether the network sleep, network wake-up, and other functions of each network node are normal or not is very important for the stability of the vehicle network architecture. However, no effective solution has been proposed at present for network testing of vehicle network architectures.
Disclosure of Invention
The embodiment of the invention provides a network testing method and a network testing device, which are used for realizing network testing of a vehicle network architecture.
In a first aspect, an embodiment of the present invention provides a network testing method, where a network architecture includes N network segments, each network segment includes at least two network nodes, and N is an integer greater than or equal to 1, where the method includes:
setting parameters of non-test network nodes in the test network segment to meet sleep conditions;
setting parameters of a test network node in the test network segment to meet a sleep condition after a non-test network node in the test network segment is in a sleep state;
and monitoring the network state of the test network node in the test network segment according to the network communication protocol of the test network segment.
In a second aspect, an embodiment of the present invention provides a network testing apparatus for testing a network architecture of a vehicle, where the network architecture includes N network segments, each network segment includes at least two network nodes, and N is an integer greater than or equal to 1, and the apparatus includes:
a first setting module, configured to set a parameter of a non-test network node in a test network segment to satisfy a sleep condition;
a second setting module, configured to set a parameter of a test network node in the test network segment to satisfy a sleep condition after a non-test network node in the test network segment is in a sleep state;
and the first monitoring module is used for monitoring the network state of the test network node in the test network segment according to the network communication protocol of the test network segment.
In a third aspect, an embodiment of the present invention provides a network test apparatus, configured to implement the network test method in the first aspect, where the apparatus includes a computer, a network test device, an I/O module, and a programmable power supply, where the network test device includes N communication modules, N is an integer greater than or equal to 1, each communication module supports a corresponding network communication standard, the computer is connected to the network test device and the programmable power supply, the network test device is connected to the I/O module, and the I/O module and the programmable power supply are connected to each network node of the network architecture respectively;
the computer is used for controlling a testing process, the network testing equipment is used for acquiring network messages, the I/O module is used for providing input and output for each network node of the network architecture, and the programmable power supply is used for supplying power to each network node of the network architecture and controlling the on-off of the power supply and the voltage value of the power supply.
In a fourth aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps in the network testing method of any one of the first aspect.
In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the network testing method according to any one of the first aspect.
The embodiment of the invention provides a method and a device for network testing of a network architecture of a vehicle, which realize automatic network testing of the network architecture of the vehicle.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic hardware structure diagram of a network test apparatus according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a software structure of a network test apparatus according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a network architecture of a vehicle according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a network testing method according to an embodiment of the present invention;
FIG. 5 is a second flowchart of a network testing method according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a network test apparatus according to an embodiment of the present invention;
FIG. 7 is a second schematic structural diagram of a network test apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a network testing method applied to a network architecture of a vehicle, wherein the network architecture of the vehicle comprises N network segments, each network segment comprises at least two network nodes, and N is an integer greater than or equal to 1. In order to realize network test of a network architecture of a vehicle, a network test device needs to be built based on the network architecture of the vehicle, and the network test device needs to support various vehicle-mounted network communication protocols.
The hardware structure of the network test apparatus can be as shown in fig. 1, and specifically, the network test apparatus 10 includes a computer 11, a network test device 12, an Input/Output (I/O) module 13, and a programmable power supply 14. The network test device 12 comprises N communication modules, wherein N is an integer greater than or equal to 1, each communication module supports a corresponding network communication standard, the computer 11 is respectively connected with the network test device 12 and the programmable power supply 14, the network test device 12 is connected with the I/O module 13, and the I/O module 13 and the programmable power supply 14 are respectively connected with each network node of a network architecture of the vehicle.
The computer 11 may be configured to control a test process, the network test device 12 may be configured to obtain a network packet, the I/O module 13 may be configured to provide input and output of an analog quantity, a data quantity, a pulse quantity, and the like for each network node of a network architecture of the vehicle, and the programmable power supply 14 may be configured to provide multiple paths of independent power supplies for each network node of the network architecture of the vehicle, and control a voltage value of the power supplies, which is connected and disconnected, by writing a program. During testing, a tester controls a testing process through the control computer 11, the computer 11 acquires network messages through the control network testing equipment 12, the computer 11 controls the programmable power supply 14 to realize power supply on and off of network nodes, and the network testing equipment 12 controls the I/O module 13 to realize input and output of analog quantity, data quantity, pulse quantity and the like.
The network test device 12 may include a plurality of communication modules, each of which supports a corresponding network communication standard, for example, the network test device 12 may include three communication modules, one of which has multiple ethernet (ethernet) channels and supports related standards, for example, IEEE standards 100BASE-T1, 10BASE-T, 100BASE-TX, 1000BASE-T communication protocols; a communication module is provided with a plurality of CAN (Controller Area Network) channels and supports relevant standards, such as ISO 11898 and ISO LIN2.X communication protocols; the other communication module is provided with multiple Local Interconnect Network (LIN) channels and supports relevant standards, for example, ISO 11898, ISO link 2.x communication protocols. The model numbers of the network test device 12 may be VN5640A and VN1640A from Vector corporation.
The I/O module 13 has a plurality of signal input and output interfaces of different types, and can be configured according to the requirements of different network nodes during actual testing, so as to meet the requirements of different network nodes on network management. Specifically, the I/O module 13 has multiple input and output interfaces of analog quantity, digital quantity and pulse quantity, so as to satisfy the conditions required by different network nodes for network management sleep and wake-up.
The software structure of the network testing device can be as shown in fig. 2, the computer operating system is installed with CANoe software of Vector company, the CANoe software is provided with a Panel Test input window, an I/O Module, a program-controlled power supply control Module and a CAPL Test script, and the CAPL Test script is loaded to execute a Test case and generate a Test report under a Test Module environment. The Panel test input window refers to a program test input window, the Panel test input window is an interactive interface between a tester and a test case, and the tester can select the test case and input test parameters through the Panel test input window. The I/O module interacts with a CANoe software bottom layer interface through a CAN bus communication protocol, and the opening or closing of the I/O interface is represented through the mapping of different numerical values of a message data field. The programmable power control module is packaged with a bottom Function, and the CANoe software realizes the on-off and output voltage regulation of the power supply by calling the Function. The CAPL test script is a test case, and a related test case is set up aiming at a bench test environment, so that network tests of various networks at a system level are realized. And the CANoe software generates a test report through the CAPL test script, the Panel test input and the Panel test result, and stores the test data.
After the network testing device is built, the network testing method in the embodiment of the invention can be executed by the network testing device, and the method is applied to a network architecture of a vehicle. In an embodiment of the present invention, a network architecture of a vehicle includes N network segments, each network segment includes at least two network nodes, and N is an integer greater than or equal to 1. Currently, the network architecture of the vehicle may support one network protocol, and generally the network architecture of the vehicle supports two or more network protocols, e.g., an ethernet communication protocol, a CAN communication protocol, a LIN communication protocol, etc., and thus, the network architecture of the vehicle may include at least one of an ethernet network segment, a CAN network segment, and a LIN network segment. Furthermore, with respect to the same network communication protocol, the network architecture may also include multiple, parallel network segments, for example, the network architecture may include an ethernet segment, a CAN1 network segment, a CAN2 network segment, a LIN network segment. Each network segment includes at least two network nodes, and a network node of the network architecture may include a plurality of ECUs (Electronic Control units) and GWs (GateWay), where the GW may simultaneously connect different network segments, for example, the GW simultaneously connects an ethernet segment and a CAN network segment. The ECU may also be connected to different network segments simultaneously.
Fig. 3 shows a schematic structural diagram of a network architecture of a vehicle. As shown in fig. 3, the network architecture includes 13 ECUs, ECU1 to ECU13, wherein ECU1 belongs to the ethernet network segment, ECU2 to ECU6 belong to the CAN1 network segment, ECU7 to ECU9 belong to the CAN2 network segment, and ECU10 to ECU13 belong to the LIN network segment. In addition, the network architecture also includes a GW that connects the ethernet segment, the CAN1 network segment, and the CAN2 network segment.
The embodiment of the invention mainly comprises two aspects of network sleep test and network awakening test for the network architecture of the vehicle. For the convenience of understanding, the following specifically describes the technical solutions of the above two tests based on the network architecture of the vehicle shown in fig. 3 (hereinafter referred to as "network architecture").
The first embodiment is as follows: and (5) network sleep test.
As shown in fig. 4, the network testing method includes:
step 401: the parameters of the non-test network nodes in the test network segment are set to satisfy the sleep condition.
The test network segment is a network segment in a network architecture, that is, the test network segment is a network segment of N network segments, and the test network segment can be understood as a network segment which needs to be tested currently. If the network architecture includes a plurality of network segments, that is, if N is greater than 1, then the network segment that does not need to be tested currently among the N network segments may be understood as a non-test network segment.
Correspondingly, the non-test network node is one or more network nodes in the test network segment, the non-test network node may be understood as a network node which does not need to be tested currently in the test network segment, and the network node which needs to be tested currently in the test network segment may be understood as a test network node.
Step 402: setting parameters of a test network node in the test network segment to satisfy a sleep condition after a non-test network node in the test network segment is in a sleep state.
Step 403: and monitoring the network state of the test network node in the test network segment according to the network communication protocol of the test network segment.
In the embodiment of the invention, the network sleep test can be carried out on any network segment of the network architecture, namely, any network segment of the network architecture can be used as a test network segment to carry out the network sleep test. Since each network segment comprises at least two network nodes, the test network segment also comprises at least two network nodes. Therefore, when performing a network sleep test on a test network segment, the embodiment of the present invention provides the following test strategies: the network state detection method comprises the steps of meeting the sleep condition of non-test network nodes in a test network segment, meeting the sleep condition of the test network nodes in the test network segment after the non-test network nodes are in the sleep state, and then detecting the network state of the test network nodes in the test network segment according to a network communication protocol of the test network segment. And the test network node in the test network segment is any network node in the test network segment.
In the embodiment of the present invention, when the network architecture only includes 1 network segment, the test policy may be directly adopted. When the network architecture includes a plurality of network segments, that is, when N is greater than 1, a network sleep test is performed on a test network segment of the network architecture, the embodiment of the present invention further provides the following test strategy: the method comprises the steps of meeting the sleep condition of a non-test network section of a network architecture, meeting the sleep condition of a non-test network node in a test network section after the non-test network section is in a sleep state, and meeting the sleep condition of a test network node in the test network section after the non-test network node is in the sleep state. And then, detecting the network state of the test network node in the test network segment according to the network communication protocol of the test network segment.
That is, if N is greater than 1, before step 401, the method further includes:
setting parameters of non-test network segments of the N network segments to meet a sleep condition;
step 401 comprises:
setting parameters of non-test network nodes in the test network segment to satisfy a sleep condition after the non-test network segment is in a sleep state.
In this embodiment, if the test network node in the test network segment enters the sleep state, that is, the network state of the test network node in the test network segment is the sleep state, it indicates that the sleep test of the test network segment of the network architecture meets the requirement, and if the test network node in the test network segment does not enter the sleep state, it indicates that the sleep test of the test network segment of the network architecture does not meet the requirement.
For example, when a network sleep test needs to be performed on an ethernet segment of a network architecture, a network test device is connected to the ethernet segment, input and output types of channels of an I/O module are configured through a Panel test input window, a program-controlled power supply output is controlled through a CAPL test script, sleep conditions of a CAN1 network segment, a CAN2 network segment and a LIN network segment are met first, the sleep conditions of the ethernet segment are met finally, and then the sleep state of the ethernet segment is monitored through an ethernet channel of a CANoe according to an ethernet communication protocol. Because the network node of the Ethernet network section is the ECU1, and the test network node in the test network section can be the ECU1, the network test device is accessed to the ECU1, the input and output types of each channel of the I/O module are configured through a Panel test input window, the output of the program-controlled power supply is controlled through a CAPL test script, the sleep conditions of the ECUs 2 to 13 are met firstly, the sleep condition of the ECU1 is met finally, and then the sleep state of the ECU1 is monitored. Further, considering that the ethernet segment is also connected to the GW, in the embodiment of the present invention, in addition to monitoring the sleep state of the ECU1, the sleep state of the GW may be monitored.
For another example, when a network sleep test needs to be performed on a CAN1 network segment of a network architecture, the network test device is accessed to a CAN1 network segment, the input and output types of each channel of the I/O module are configured through a Panel test input window, the output of the program-controlled power supply is controlled through a CAPL test script, the sleep conditions of the ethernet network segment, the CAN2 network segment and the LIN network segment are met firstly, and finally the sleep conditions of the CAN1 network segment are met. Here, since the CAN1 network segment includes 5 ECUs in total from ECU2 to ECU6, when the parameters of the CAN1 network segment are set to satisfy the sleep condition, the parameters of each ECU in the CAN1 network segment may be set to satisfy the sleep condition in steps. In other words, when the test network segment includes a plurality of network nodes, the test network node in one test network segment may be determined first, when the parameter of the test network segment is set to satisfy the sleep condition, the parameter of the non-test network node in the test network segment is set to satisfy the sleep condition first, and finally the parameter of the test network node in the test network segment is set to satisfy the sleep condition.
Assuming that the ECU2 of the CAN1 network segment is determined as a test network node in the test network segment, the parameters of the ECUs 3 to 6 are first set to satisfy the sleep condition, and finally the parameters of the ECU2 are set to satisfy the sleep condition, and then the sleep states of the ECUs 2 and the ECUs 3 to the ECUs 6 are monitored through the CAN channels of the CANoe according to the CAN1 network communication protocol.
In the embodiment of the invention, under the condition that the test network section comprises a plurality of network nodes, each network node in the test network section is set to be under the sleep condition step by step, which is favorable for ensuring the stability of the test and further improving the accuracy of the test.
In the embodiment of the invention, the network sleep test is carried out on the network architecture, so that the automatic test of the network sleep of the network architecture is realized, the test efficiency is improved, the network test has the advantages of repeatability and higher consistency, and the test accuracy can be improved.
Example two: and (5) network wake-up testing.
As shown in fig. 5, the network testing method further includes:
step 501: and under the condition that all network nodes of the test network segment are in a sleep state, awakening the test network nodes in the test network segment.
And the test network node in the test network segment is any network node in the test network segment.
Step 502: and monitoring the network state of each network node in the test network segment according to the network communication protocol of the test network segment.
For example, when a network wakeup test needs to be performed on a CAN1 network segment of a network architecture, since the CAN1 network segment includes 5 ECUs from ECU2 to ECU6, a test network node in a test network segment CAN be selected from network nodes of CAN1, after all network nodes of the network segment to be tested sleep, the I/O module is controlled to wake up the test network node in the test network segment, and then, network states of ECU3 to ECU6 are respectively monitored according to a CAN1 network communication protocol.
In this embodiment, when the test network segment includes a plurality of network nodes, the test network node in the test network segment is first awakened in steps, and whether the non-test network nodes in the test network segment are awakened by the target network node is monitored, and if the non-test network nodes in the test network segment are all awakened, the entire test network segment is in an awakened state, so that on this basis, whether the non-test network segment of the network architecture is awakened is further monitored. Therefore, the step-by-step awakening mode is beneficial to ensuring the stability of the test, so that the test accuracy is further improved. When the network architecture has the condition of wakeup failure, each network node can be conveniently checked.
Optionally, the method further includes:
and if all the network nodes in the test network segment are awakened, determining that all the network nodes in the test network segment can be automatically awakened.
Correspondingly, if the network node which is not wakened exists in the test network segment, it is determined that the network node which is not wakened in the test network segment cannot be automatically waken, and it is indicated that the network wakening function of the network architecture has a problem.
Optionally, if N is greater than 1, after step 501, the method further includes:
and respectively monitoring the network states of the N network segments according to the network communication protocols of the N network segments.
For example, when the ethernet segments of the network architecture need to be subjected to the wake-on-lan test, after the whole vehicle is asleep, that is, under the condition that N network segments of the network architecture are in the sleep state, the control I/O module wakes up the ethernet segments, specifically, wakes up the ECU 1. Then, the network states of the CAN1 network segment, the CAN2 network segment, and the LIN network segment are monitored, respectively, according to the network communication protocol of each network segment. In addition, considering that the network architecture also includes a GW, in the embodiment of the present invention, in addition to monitoring the network states of the CAN1 network segment, the CAN2 network segment, and the LIN network segment, the network state of the GW may be monitored. Here, the monitoring of the network state of each network segment means monitoring whether each network segment is awakened normally. Thus, with the embodiment, it can be monitored whether the ethernet segment can wake up the non-test network segment when the ethernet segment is woken up, so as to test the network wakeup function of each network segment of the network architecture.
Optionally, the method further includes:
and if the N network segments are awakened, determining that each network segment of the network architecture can be automatically awakened.
Correspondingly, if the network architecture has the network segment which is not wakened, the fact that the network segment which is not wakened of the network architecture cannot be automatically wakened is determined, and the fact that the network wakening function of the network architecture has a problem is indicated.
It should be noted that, since the test network node in the test network segment is already woken up, and the network state of the test network node is in a woken-up state, the monitoring of the network state of each network node in the test network segment in step 502 may be to monitor the network state of a non-test network node in the test network segment, that is, the network state of the test network node in the test network segment may not be monitored any more in step 502.
Accordingly, the monitoring of the network states of the N network segments of the network architecture respectively may be monitoring of the network states of non-test network segments of the N network segments of the network architecture respectively, that is, the network states of the test network segments may not be monitored any more.
In the embodiment of the invention, the network sleep test is carried out on the network architecture, so that the network awakening automatic test of the network architecture is realized, the test efficiency is improved, the network test has the advantage of repeatability and higher consistency, and the test accuracy can be improved.
In addition, in the embodiment of the present invention, the network architecture may be subjected to the network sleep test first, and then the network architecture may be subjected to the wake-up test, that is, the step of waking up the test network node in the test network segment is performed after the step of setting the parameter of the test network node in the test network segment to satisfy the sleep condition.
Specifically, when N is equal to 1, the method comprises the following steps:
setting parameters of non-test network nodes in the test network segment to meet sleep conditions;
setting parameters of a test network node in the test network segment to meet a sleep condition after a non-test network node in the test network segment is in a sleep state;
monitoring the network state of a test network node in the test network segment according to the network communication protocol of the test network segment;
awakening the test network nodes in the test network segment under the condition that all network nodes of the test network segment are in a sleep state;
and monitoring the network state of each network node in the test network segment according to the network communication protocol of the test network segment.
Specifically, when N is greater than 1, the method comprises the following steps:
setting parameters of non-test network segments of the N network segments to meet a sleep condition;
setting parameters of non-test network nodes in the test network segment to satisfy a sleep condition after the non-test network segment is in a sleep state.
Setting parameters of a test network node in the test network segment to meet a sleep condition after a non-test network node in the test network segment is in a sleep state;
monitoring the network state of a test network node in the test network segment according to the network communication protocol of the test network segment;
awakening the test network nodes in the test network segment under the condition that all network nodes of the test network segment are in a sleep state;
monitoring the network state of each network node in the test network segment according to the network communication protocol of the test network segment;
and respectively monitoring the network states of the N network segments according to the network communication protocols of the N network segments.
For the network sleep test and the network wake-up test, reference may be made to the foregoing related descriptions, and details are not described herein to avoid repetition.
By integrating the embodiments, the network architecture is subjected to network test, so that the automatic test of network sleep and network awakening of the network architecture is realized, the test efficiency is improved, the network test has the advantage of repeatability, the consistency is higher, and the test accuracy can be improved.
For the above-described automated testing of network sleep and wake-on-network, three complete examples are provided below.
Example one: the network testing device is accessed to the ECU1, the input and output types of each channel of the I/O module are configured through a Panel test input window, the output of the program-controlled power supply is controlled through a CAPL script so as to meet the sleep conditions of other ECUs, finally the sleep conditions of the ECU1 are met, and the network sleep states of the ECU1 and the GW are monitored through CANoe Ethernet channels according to different network management protocols. After the whole vehicle sleeps, the I/O module is controlled to wake up the ECU1, the network states of nodes in the GW, the CAN1 network segment, the CAN2 network segment and the LIN network segment are simultaneously monitored according to different network management protocols respectively, test results are judged, and a test report is generated.
Example two: the network testing device is connected to a CAN1 network segment, input and output types of channels of an I/O module are configured through a Panel test input window, the output of a program-controlled power supply is controlled through a CAPL script, so that sleep conditions of nodes except an ECU2 are met, finally the sleep conditions of the ECU2 are met, and network sleep states of the ECU2 and the ECU3-ECU6 are monitored through CANoe CAN channels according to different network management protocols. After the whole vehicle sleeps, the I/O module is controlled to wake up the ECU2, the network states of nodes in the GW, the CAN1 network segment, the CAN2 network segment and the LIN network segment are simultaneously monitored according to different network management protocols respectively, test results are judged, and a test report is generated.
Example three: the network testing device is connected to the LIN network section, the input and output types of each channel of the I/O module are configured through the Panel test input window, the output of the program-controlled power supply is controlled through the CAPL script so as to meet the condition except the sleep condition of the LIN network section, and the network sleep state of the LIN1 is monitored through the CANoe LIN channel according to the ISO LIN2.1 network management protocol. After the whole vehicle sleeps, the I/O module is controlled to wake up the LIN1 network segment, the network states of the GW, the CAN1 network segment and the CAN2 network segment are respectively and simultaneously monitored according to an ISO LIN2.1 network management protocol, the test result is judged, and a test report is generated.
As shown in fig. 6, an embodiment of the present invention provides a network test apparatus 600, where a network architecture includes N network segments, each network segment includes at least two network nodes, N is an integer greater than or equal to 1, and the network test apparatus 600 includes:
a first setting module 601, configured to set a parameter of a non-test network node in a test network segment to satisfy a sleep condition;
a second setting module 602, configured to set a parameter of a test network node in the test network segment to satisfy a sleep condition after a non-test network node in the test network segment is in a sleep state;
a first monitoring module 603, configured to monitor a network state of a test network node in the test network segment according to a network communication protocol of the test network segment.
Optionally, if N is greater than 1, the apparatus further includes:
a third setting module, configured to set a parameter of a non-test network segment of the N network segments to satisfy a sleep condition;
the first setting module 601 is specifically configured to:
setting parameters of non-test network nodes in the test network segment to satisfy a sleep condition after the non-test network segment is in a sleep state.
Optionally, as shown in fig. 7, the network test apparatus 600 further includes:
a first wake-up module 604, configured to wake up a test network node in the test network segment when all network nodes of the test network segment are in a sleep state;
a second monitoring module 605, configured to monitor a network state of each network node in the test network segment according to the network communication protocol of the test network segment.
Optionally, the network test apparatus 600 further includes:
and the first determining module is used for determining that each network node of the test network segment can realize automatic awakening if each network node of the test network segment is awakened.
Optionally, after the first setting module 601 performs the step of setting the parameters of the test network node in the test network segment to satisfy the sleep condition, the first waking module 604 performs the step of waking up the test network node in the test network segment.
Optionally, if N is greater than 1, the second monitoring module 605 is further configured to:
and respectively monitoring the network states of the N network segments according to the network communication protocols of the N network segments.
Optionally, the network test apparatus 600 further includes:
a second determining module, configured to determine that the N network segments can be automatically woken up if the N network segments are all woken up.
Optionally, the network architecture includes an ethernet network segment, a CAN network segment, and a LIN network segment, and the network nodes of the network architecture include a plurality of electronic control units and gateways.
It should be noted that, in the embodiment of the present invention, the network test apparatus 600 may be a network test apparatus in any implementation manner in the method embodiment, and any implementation manner of the network test apparatus in the method embodiment may be implemented by the network test apparatus 600 in the embodiment of the present invention, and the same beneficial effects are achieved, and in order to avoid repetition, details are not described here again.
Fig. 8 is a block diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 8, the electronic device 800 comprises a memory 801, a processor 802 and a computer program stored on the memory 801 and executable on the processor 802; when the processor 802 executes the computer program, the following steps are implemented:
setting parameters of non-test network nodes in a test network segment in a network architecture of a vehicle to meet a sleep condition;
setting parameters of a test network node in the test network segment to meet a sleep condition after a non-test network node in the test network segment is in a sleep state;
monitoring the network state of a test network node in the test network segment according to the network communication protocol of the test network segment;
wherein the network architecture comprises N network segments, each network segment comprising at least two network nodes, N being an integer greater than or equal to 1.
In FIG. 8, the bus architecture may include any number of interconnected buses and bridges, with one or more processors represented by processor 802 and various circuits of memory represented by memory 801 being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The processor 802 is responsible for managing the bus architecture and general processing, and the memory 801 may store data used by the processor 802 in executing instructions. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted mobile terminal, a wearable device, and the like.
Optionally, if N is greater than 1, when the processor 802 executes the computer program, the following steps are further implemented:
setting parameters of non-test network segments of the N network segments to meet a sleep condition;
setting parameters of non-test network nodes in the test network segment to satisfy a sleep condition after the non-test network segment is in a sleep state.
Optionally, when the processor 802 executes the computer program, the following steps are further implemented:
awakening the test network nodes in the test network segment under the condition that all network nodes of the test network segment are in a sleep state;
and monitoring the network state of each network node in the test network segment according to the network communication protocol of the test network segment.
Optionally, when the processor 802 executes the computer program, the following steps are further implemented:
and if all the network nodes in the test network segment are awakened, determining that all the network nodes in the test network segment can be automatically awakened.
Optionally, the processor 802 implements the step of waking up the test network node in the test network segment after implementing the step of setting the parameter of the test network node in the test network segment to satisfy the sleep condition.
Optionally, if N is greater than 1, when the processor 802 executes the computer program, the following steps are further implemented:
and respectively monitoring the network states of the N network segments according to the network communication protocols of the N network segments.
Optionally, when the processor 802 executes the computer program, the following steps are further implemented:
and if the N network segments are awakened, determining that the N network segments can be automatically awakened.
Optionally, the network architecture includes an ethernet network segment, a CAN network segment, and a LIN network segment, and the network nodes of the network architecture include a plurality of electronic control units and gateways.
It should be noted that any implementation manner in the network testing method embodiment may be implemented by the electronic device 800 in this embodiment, and the same beneficial effects are achieved, and details are not described here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the network testing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the units is only one type of logical function division, and other division manners may be available in actual implementation, for example, a plurality of units or components may be combined or integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be physically included alone, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the transceiving method according to various embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (15)

1. A network testing method applied to a network architecture of a vehicle, the network architecture comprising N network segments, each network segment comprising at least two network nodes, N being an integer greater than or equal to 1, the method comprising:
setting parameters of non-test network nodes in the test network segment to meet sleep conditions;
setting parameters of a test network node in the test network segment to meet a sleep condition after a non-test network node in the test network segment is in a sleep state;
and monitoring the network state of the test network node in the test network segment according to the network communication protocol of the test network segment.
2. The method of claim 1, wherein if N is greater than 1, before setting parameters of non-test network nodes in a test network segment to satisfy a sleep condition, the method further comprises:
setting parameters of non-test network segments of the N network segments to meet a sleep condition;
the setting of the parameters of the non-test network nodes in the test network segment to satisfy the sleep condition includes:
setting parameters of non-test network nodes in the test network segment to satisfy a sleep condition after the non-test network segment is in a sleep state.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
awakening the test network nodes in the test network segment under the condition that all network nodes of the test network segment are in a sleep state;
and monitoring the network state of each network node in the test network segment according to the network communication protocol of the test network segment.
4. The method of claim 3, further comprising:
and if all the network nodes in the test network segment are awakened, determining that all the network nodes in the test network segment can be automatically awakened.
5. The method according to claim 3, characterized in that the step of waking up the test network node in the test network segment is performed after the step of setting the parameters of the test network node in the test network segment to satisfy the sleep condition is performed.
6. The method of claim 3, wherein if N is greater than 1, after waking up a test network node in the test network segment, the method further comprises:
and respectively monitoring the network states of the N network segments according to the network communication protocols of the N network segments.
7. The method of claim 6, further comprising:
and if the N network segments are awakened, determining that the N network segments can be automatically awakened.
8. A method according to claim 1 or 2, wherein the network architecture comprises an ethernet network segment, a CAN network segment and a LIN network segment, and wherein the network nodes of the network architecture comprise a plurality of electronic control units and gateways.
9. A network testing device for testing a network architecture of a vehicle, the network architecture comprising N network segments, each network segment comprising at least two network nodes, N being an integer greater than or equal to 1, the device comprising:
a first setting module, configured to set a parameter of a non-test network node in a test network segment to satisfy a sleep condition;
a second setting module, configured to set a parameter of a test network node in the test network segment to satisfy a sleep condition after a non-test network node in the test network segment is in a sleep state;
and the first monitoring module is used for monitoring the network state of the test network node in the test network segment according to the network communication protocol of the test network segment.
10. The apparatus of claim 9, wherein if N is greater than 1, the apparatus further comprises:
a third setting module, configured to set a parameter of a non-test network segment of the N network segments to satisfy a sleep condition;
the first setting module is specifically configured to:
setting parameters of non-test network nodes in the test network segment to satisfy a sleep condition after the non-test network segment is in a sleep state.
11. The apparatus of claim 9 or 10, further comprising:
the first awakening module is used for awakening the test network nodes in the test network segment under the condition that all network nodes of the test network segment are in a sleep state;
and the second monitoring module is used for monitoring the network state of each network node in the test network segment according to the network communication protocol of the test network segment.
12. A network testing apparatus, configured to implement the network testing method according to any one of claims 1 to 8, the apparatus including a computer, a network testing device, an I/O module, and a programmable power supply, the network testing device including N communication modules, N being an integer greater than or equal to 1, each communication module supporting a corresponding network communication standard, the computer being connected to the network testing device and the programmable power supply, respectively, the network testing device being connected to the I/O module, and the I/O module and the programmable power supply being connected to each network node of the network architecture, respectively;
the computer is used for controlling a testing process, the network testing equipment is used for acquiring network messages, the I/O module is used for providing input and output for each network node of the network architecture, and the programmable power supply is used for supplying power to each network node of the network architecture and controlling the on-off of the power supply and the voltage value of the power supply.
13. The apparatus of claim 12, wherein the network test device comprises a first communication module, a second communication module and a third communication module, the first communication module is provided with multiple ethernet channels and supports an ethernet-related communication standard, the second communication module is provided with multiple CAN channels and supports a CAN-network-related communication standard, and the third communication module is provided with multiple LIN channels and supports a LIN-network-related communication standard.
14. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps in the network testing method according to any one of claims 1 to 8.
15. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program, when executed by a processor, implements a network testing method as claimed in any one of claims 1 to 8.
CN201911007614.1A 2019-10-22 2019-10-22 Network testing method and network testing device Active CN112702220B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911007614.1A CN112702220B (en) 2019-10-22 2019-10-22 Network testing method and network testing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911007614.1A CN112702220B (en) 2019-10-22 2019-10-22 Network testing method and network testing device

Publications (2)

Publication Number Publication Date
CN112702220A CN112702220A (en) 2021-04-23
CN112702220B true CN112702220B (en) 2022-02-08

Family

ID=75504699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911007614.1A Active CN112702220B (en) 2019-10-22 2019-10-22 Network testing method and network testing device

Country Status (1)

Country Link
CN (1) CN112702220B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114448851B (en) * 2021-12-30 2023-06-27 武汉光庭信息技术股份有限公司 Automatic data testing method and system
CN116148644B (en) * 2023-04-21 2023-08-01 上海励驰半导体有限公司 Test circuit, chip, test system and test method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5229942A (en) * 1990-11-13 1993-07-20 Bear Automotive Service Equipment Company Control system for remote power up
JP4946646B2 (en) * 2006-07-10 2012-06-06 日産自動車株式会社 Communication network system and wakeup method for unwakened node
CN107911260A (en) * 2017-10-30 2018-04-13 华晨汽车集团控股有限公司 A kind of vehicle test system based on OSEC network managements
CN108933719B (en) * 2018-06-21 2021-06-04 北京车和家信息技术有限公司 Vehicle-mounted CAN network management method, vehicle-mounted CAN network and vehicle

Also Published As

Publication number Publication date
CN112702220A (en) 2021-04-23

Similar Documents

Publication Publication Date Title
CN112491671B (en) Method and system for monitoring whole vehicle feed problem and vehicle CAN network gateway
US20190361711A1 (en) Method and apparatus for selective wake-up of communication node in vehicle network
CN112702220B (en) Network testing method and network testing device
CN112241164A (en) Automobile network dormancy testing method, device, equipment and storage medium
JP5715257B2 (en) Method for monitoring at least two microcontrollers
CN106302060A (en) A kind of car load dormancy awakening method, system and automotive CAN network gateway
CN103676939B (en) A kind of Auto-Test System based on OSEK straight-forward network administrative mechanisms
US10861258B2 (en) Method for preventing diagnostic errors in vehicle network and apparatus therefor
US10050864B2 (en) Operation mode transition method in network
CN107612774B (en) Multi-channel synchronous sleeping method and system
US11314319B2 (en) Operation methods of communication node in network
CN107534592B (en) Method for protecting configuration data of a data bus transceiver, data bus transceiver and data bus system
US20130326255A1 (en) Communication system
CN113950807A (en) Physical layer device with sleep mode and partial network support and related systems, methods, and devices
CN104683126B (en) Network management based on CAN
CN111624902A (en) Control method and device for dormancy and awakening
CN114124767A (en) Automatic testing method and device for gateway network management strategy
CN114291015A (en) Vehicle control method and device, vehicle and storage medium
KR20100020253A (en) Monitoring apparatus for message transmission in network for a vehicle
CN104834584A (en) Method and system for monitoring host computer hardware loads
CN112118075B (en) CAN bus baud rate self-adaption method and device
CN116684302A (en) Method and device for testing vehicle-mounted Ethernet
CN111625282A (en) Multi-subnet cooperative sleep method and system based on CAN bus
CN114756008A (en) Fault injection system, automatic test system and method for automobile hybrid bus integrated rack
CN113923695A (en) Awakening fault detection method and device and message sending method and device

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
GR01 Patent grant
GR01 Patent grant