CN115086201A - Vehicle-mounted Ethernet test method, device and system - Google Patents

Vehicle-mounted Ethernet test method, device and system Download PDF

Info

Publication number
CN115086201A
CN115086201A CN202210505372.4A CN202210505372A CN115086201A CN 115086201 A CN115086201 A CN 115086201A CN 202210505372 A CN202210505372 A CN 202210505372A CN 115086201 A CN115086201 A CN 115086201A
Authority
CN
China
Prior art keywords
packet
vehicle
communication
communication module
test
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
CN202210505372.4A
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.)
China Automotive Innovation Co Ltd
Original Assignee
China Automotive Innovation 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 China Automotive Innovation Co Ltd filed Critical China Automotive Innovation Co Ltd
Priority to CN202210505372.4A priority Critical patent/CN115086201A/en
Publication of CN115086201A publication Critical patent/CN115086201A/en
Pending legal-status Critical Current

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
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
    • 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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • 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

Abstract

The application discloses a vehicle-mounted Ethernet test method, a device and a system, wherein the method comprises the following steps: responding to a vehicle-mounted Ethernet test request, and respectively controlling a first communication module to send a data test packet to a second communication module in a standard communication environment and a simulated vehicle-mounted communication environment so as to enable the second communication module to feed back a data return packet to the first communication module based on the data test packet; acquiring a first packet sending amount of a data test packet sent by a first communication module and a first packet receiving amount of a received data return packet under a standard communication environment; acquiring a second packet sending quantity for sending the data test packet and a second packet receiving quantity for receiving the data return packet by the first communication module under the simulated vehicle-mounted communication environment; and generating a test result of the vehicle-mounted Ethernet based on the first packet sending amount, the first packet receiving amount, the second packet sending amount and the second packet receiving amount. By the technical scheme, the communication quality of the vehicle-mounted Ethernet under the action of different interference signals can be tested, and the safety test of the vehicle-mounted Ethernet is realized.

Description

Vehicle-mounted Ethernet test method, device and system
Technical Field
The present disclosure relates to the field of network communication technologies of a vehicle-mounted ethernet, and in particular, to a method, an apparatus, and a system for testing a vehicle-mounted ethernet.
Background
Along with the continuous promotion of user's demands such as vehicle performance, function, the kind of the electronic control unit on the vehicle, quantity promote greatly, and traditional CAN bus has been unable to satisfy the transmission of a large amount of data under many control units, in order to satisfy the accurate transmission of a large amount of data, on-vehicle ethernet has received the extensive attention of automotive industry technical staff.
In the test of the vehicle-mounted Ethernet, mainly for an Ethernet physical layer, a consistency test, a gateway test and the like, in the test of the traditional vehicle-mounted Ethernet, the test mode is single, and the communication quality of the vehicle-mounted Ethernet cannot be comprehensively tested only through simple test, so that the accurate evaluation of the communication quality of the vehicle-mounted Ethernet is difficult to ensure in a complex and changeable vehicle-mounted environment.
Therefore, a technical solution for testing the vehicle ethernet is needed to solve the above problems in the prior art.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present application provide a technical solution of a method, an apparatus, and a system for testing a vehicle-mounted ethernet, where the technical solution is as follows:
in one aspect, a method for testing a vehicle-mounted ethernet is provided, where the method includes:
responding to a vehicle-mounted Ethernet test request, and respectively controlling a first communication module to send a data test packet to a second communication module in a standard communication environment and a simulated vehicle-mounted communication environment so as to enable the second communication module to feed back a data return packet to the first communication module based on the data test packet; the simulated vehicle-mounted communication environment is formed by applying interference circuit signals with different signal values on a communication line between the first communication module and the second communication module;
acquiring a first packet sending amount of the data test packet sent by the first communication module and a first packet receiving amount of the data return packet received by the first communication module within a preset time length under the standard communication environment;
acquiring a second packet sending quantity of the data test packet sent by the first communication module and a second packet receiving quantity of the data return packet received by the first communication module within a preset time under the simulated vehicle-mounted communication environment;
and generating a test result of the vehicle-mounted Ethernet based on the first packet sending amount, the first packet receiving amount, the second packet sending amount and the second packet receiving amount.
In another aspect, an in-vehicle ethernet testing apparatus is provided, the apparatus including:
a communication control module: the device comprises a first communication module, a second communication module, a data feedback module and a data feedback module, wherein the first communication module is used for controlling the first communication module to send a data test packet to the second communication module in response to a vehicle-mounted Ethernet test request under a standard communication environment and a simulated vehicle-mounted communication environment respectively so as to enable the second communication module to feed back a data feedback packet to the first communication module based on the data test packet; the simulated vehicle-mounted communication environment is formed by applying interference circuit signals with different signal values on a communication line between the first communication module and the second communication module;
a first obtaining module: the first communication module is used for sending a first packet sending quantity of the data test packet and receiving a first packet receiving quantity of the data return packet within a preset time length under the standard communication environment;
a second obtaining module: the second packet sending quantity and the second packet receiving quantity are used for obtaining a second packet sending quantity of the data test packet sent by the first communication module and a second packet receiving quantity of the data return packet received by the first communication module within a preset time length under the simulated vehicle-mounted communication environment;
a test result generation module: and the test result of the vehicle-mounted Ethernet is generated based on the first packet sending amount, the first packet receiving amount, the second packet sending amount and the second packet receiving amount.
In another aspect, an in-vehicle ethernet test system is provided, the system comprising: the system comprises an interference signal generating device, an interference signal transmission device, a first communication module, a second communication module, a target display interface and the vehicle-mounted Ethernet testing device;
the first communication module is connected with the second communication module through a communication line;
the interference signal generating device applies a plurality of interference circuit signals on the communication line through the interference signal transmitting device to form a plurality of simulated vehicle-mounted communication environments;
the target display interface is in communication connection with the vehicle-mounted Ethernet testing device, and the target display interface is used for displaying a visual result generated by the vehicle-mounted Ethernet testing device.
Another aspect provides an in-vehicle ethernet testing device, which includes a processor and a memory, where the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the in-vehicle ethernet testing method as described above.
Another aspect provides a computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the in-vehicle ethernet testing method as described above.
The test method, device, system, equipment and storage medium for the vehicle-mounted Ethernet have the following technical effects:
according to the embodiment of the application, the first communication module is controlled to send the data test packet to the second communication module in the standard communication environment and the simulated vehicle-mounted communication environment respectively by responding to the vehicle-mounted Ethernet test request, so that the second communication module feeds back the data return packet to the first communication module based on the data test packet; acquiring a first packet sending amount of a data test packet sent by a first communication module and a first packet receiving amount of a received data return packet within a preset time length under a standard communication environment; acquiring a second packet sending quantity of a data test packet sent by a first communication module and a second packet receiving quantity of a received data return packet within a preset time length in a simulated vehicle-mounted communication environment so as to determine packet loss rates in a standard communication environment and the simulated vehicle-mounted communication environment and further determine an anti-interference range of a vehicle-mounted Ethernet under communication safety; and generating a test result of the vehicle-mounted Ethernet based on the first packet sending amount, the first packet receiving amount, the second packet sending amount and the second packet receiving amount. By the technical scheme, the communication quality of the vehicle-mounted Ethernet under the action of different interference signals can be tested, and the safety test of the vehicle-mounted Ethernet is realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a vehicle-mounted ethernet test system according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a vehicle-mounted ethernet testing method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another vehicle-mounted ethernet testing method according to an embodiment of the present application;
fig. 4 is a flowchart illustrating a target communication environment determination method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a vehicle-mounted ethernet testing apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a server according to an embodiment of the present application;
wherein the reference numerals correspond to: 01-interference signal generating means; 02-interference signal transmission means; 03-a first communication module; 04-a second communication module; 05-a target display interface; 06-vehicle Ethernet testing device.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
It is noted that the present specification provides the method steps as described in the examples or flowcharts, but may include more or less steps based on routine or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution.
Referring to fig. 1, which is a schematic structural diagram of a vehicle-mounted ethernet testing system according to an embodiment of the present disclosure, as shown in fig. 1, the system includes an interference signal generating device 01, an interference signal transmitting device 02, a first communication module 03, a second communication module 04, a target display interface 05, and a vehicle-mounted ethernet testing device 06, in an actual application, the interference signal generating device 01, the interference signal transmitting device 02, the first communication module 03, the second communication module 04, the target display interface 05, and the vehicle-mounted ethernet testing device 06 may be connected in a wired or wireless communication manner, so as to realize interaction among the interference signal generating device 01, the interference signal transmitting device 02, the first communication module 03, the second communication module 04, the target display interface 05, and the vehicle-mounted ethernet testing device 06.
The vehicle-mounted ethernet testing device 06 may be a vehicle-mounted controller, which may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server that provides basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, Network service, cloud communication, middleware service, domain name service, security service, CDN (Content Delivery Network), and a big data and artificial intelligence platform. Further, the vehicle-mounted controller may include a physical device, may specifically include a network communication unit, a processor, a memory, and the like, may also include software running in the physical device, may specifically include an application program, and the like.
Specifically, the vehicle-mounted ethernet testing device 06 is configured to, in response to a vehicle-mounted ethernet testing request, control the first communication module 03 to send a data testing packet to the second communication module 04 in the standard communication environment and the simulated vehicle-mounted communication environment, respectively, so that the second communication module 04 feeds back a data return packet to the first communication module 03 based on the data testing packet, and respectively obtain a packet sending amount and a packet receiving amount of the first communication module 03 in the standard communication environment and the simulated vehicle-mounted communication environment, generate a testing result of the vehicle-mounted ethernet based on the packet sending amount and the packet receiving amount of the first communication module 03 in the standard communication environment and the simulated vehicle-mounted communication environment, and transmit the testing result to the target display interface 05, so as to display the testing result.
Further, the interference signal generating device 01 may include, but is not limited to, a function generator, a power amplifier, a power angle regulating transformer, a directional coupler, and the like, and the interference signal generating device 01 generates interference pulses in a simulation manner so as to test the communication quality of the vehicle-mounted ethernet under different interference environments, and specifically, the interference signal generating device 01 is configured to apply a plurality of interference circuit signals on the communication line so as to form a plurality of simulated vehicle-mounted communication environments, where the signal values of the interference circuit signals in the different simulated vehicle-mounted communication environments are different so as to determine the interference rejection range of the vehicle-mounted ethernet.
In practical applications, the interference signal generating device 01 applies a plurality of interference circuit signals to the communication line between the first communication module 03 and the second communication module 04 through the interference signal transmitting device 02, and in a specific embodiment, the interference signal transmitting device 02 may be a current probe, and interference pulses generated by the interference signal generating device 01 in an analog manner are applied to the communication line between the first communication module 03 and the second communication module 04 through mutual inductance between the current probe and the communication line. In one embodiment, a resistor is connected in parallel to the communication line to prevent short circuit of the communication line when an interference signal is applied to the communication line.
Further, the connection relationship between the interference signal transmission device 02 and the communication line is: a protective layer of a preset length is removed on the communication line as an application point to which the interfering circuit signals of different signal values are applied, so that the interfering signal transmitting means 02 applies the interfering circuit signals of different signal values to the communication line through the application point.
Further, the vehicle-mounted Ethernet test system also comprises an oscilloscope, wherein the oscilloscope is arranged on an application point of a plurality of interference circuit signals applied on the communication line so as to display the forms of the interference circuit signals with different signal values.
In addition, it should be noted that fig. 1 only shows an on-board ethernet test system, which may include more or less nodes, and the application is not limited herein.
Please refer to fig. 2, which is a schematic flowchart illustrating a method for testing a vehicle ethernet according to an embodiment of the present application, and the method specifically includes the following steps in conjunction with fig. 2:
s201: and responding to a vehicle-mounted Ethernet test request, and controlling the first communication module to send a data test packet to the second communication module respectively under a standard communication environment and a simulated vehicle-mounted communication environment so as to enable the second communication module to feed back a data return packet to the first communication module based on the data test packet, wherein the simulated vehicle-mounted communication environment is formed by applying interference circuit signals with different signal values on a communication line between the first communication module and the second communication module.
In this embodiment of the present application, the data test packet may be a ping packet, where the ping packet is a communication network test tool, and is used to test whether the ping packet can reach a specific communication object through a preset protocol, and further determine a packet loss rate in communication transmission by determining the number of the ping packets sent and the data return packets received according to the data return packets fed back by the specific communication object based on the ping packet, and evaluate the communication quality between two communication parties by using the packet loss rate.
The standard communication environment is formed by applying interference circuit signals with different signal values on a communication line between the first communication module and the second communication module, and the simulated vehicle-mounted communication environment is formed by determining corresponding packet loss rates under the standard communication environment and the simulated vehicle-mounted communication environment, so that the communication quality of the vehicle-mounted Ethernet under the simulated vehicle-mounted communication environment is determined, and the safety test of the vehicle-mounted Ethernet is realized.
It should be noted that the simulated vehicle-mounted communication environment may be formed by an interference circuit signal or an electromagnetic interference signal, and the interference signal may be applied to the communication line between the first communication module and the second communication module, which is not limited specifically herein.
In an optional embodiment, before step S201, the method further comprises:
s2011: and controlling the interference signal generating device to apply a plurality of interference circuit signals on the communication line so as to form a plurality of simulated vehicle-mounted communication environments, wherein the signal values of the interference circuit signals in different simulated vehicle-mounted communication environments are different.
In the embodiment of the application, the interference signal generating device is used for generating a plurality of interference circuit signals and applying the generated interference circuit signals to the communication line so as to simulate the interference signals in the real vehicle environment.
The plurality of simulated vehicle-mounted communication environments can comprise interference circuit signals with different signal values, the interference strength to the vehicle-mounted Ethernet is increased by changing the signal value of the interference circuit signals, specifically, the interference circuit signals are interference current pulses, the signal values can be current values, and the interference current pulses with different current values are applied to the communication line by controlling the interference signal generating device so as to form the plurality of simulated vehicle-mounted communication environments.
In one embodiment, the interference signal generating device may include, but is not limited to, a function generator, a power amplifier, a power angle regulating transformer, a directional coupler, and the like, and simulates an interference circuit signal generating different signal values by the interference signal generating device so as to test the communication quality of the vehicle-mounted ethernet under various simulated vehicle-mounted communication environments, wherein the signal values of the interference circuit signal in the different simulated vehicle-mounted communication environments are different so as to determine the interference rejection range of the vehicle-mounted ethernet.
S202: the method comprises the steps of obtaining a first packet sending quantity of a data test packet sent by a first communication module and a first packet receiving quantity of a received data return packet within a preset time length under a standard communication environment.
In the embodiment of the application, the packet loss rate in the standard communication environment is determined through the first packet sending amount and the first packet receiving amount in the preset time duration, and the packet loss rate in the standard communication environment is taken as a reference, so that the packet loss rate in the simulated vehicle-mounted communication environment is conveniently compared, and the complete vehicle-mounted Ethernet test is realized.
S203: and acquiring a second packet sending quantity for sending the data test packet and a second packet receiving quantity for receiving the data return packet by the first communication module within a preset time length under the simulated vehicle-mounted communication environment.
In an optional embodiment, step S203 may further include;
s2031: and acquiring a second packet sending quantity and a second packet receiving quantity within a preset time period aiming at each simulated vehicle-mounted communication environment in the various simulated vehicle-mounted communication environments.
In the embodiment of the application, a second packet sending amount and a second packet receiving amount in each simulated vehicle-mounted communication environment are obtained so as to determine the packet loss rate in each simulated vehicle-mounted communication environment, and the anti-interference range of the vehicle-mounted Ethernet is obtained by comparing the packet loss rate in each simulated vehicle-mounted communication environment with a preset packet loss rate threshold.
S204: and generating a test result of the vehicle-mounted Ethernet based on the first packet sending amount, the first packet receiving amount, the second packet sending amount and the second packet receiving amount.
In this embodiment of the application, a test result of the vehicle-mounted ethernet is a test result in each simulated vehicle-mounted communication environment, the test result includes a packet loss rate in each simulated vehicle-mounted communication environment, the second packet sending amount and the second packet receiving amount both include a plurality of second packet sending amounts and a plurality of packet receiving amounts, each of the second packet sending amounts and the second packet receiving amounts includes a packet sending amount and a packet receiving amount in each simulated vehicle-mounted communication environment in the plurality of simulated vehicle-mounted communication environments, and based on the obtained packet sending amounts and the obtained packet receiving amounts in different simulated vehicle-mounted communication environments, the security test of the vehicle-mounted ethernet in different simulated vehicle-mounted communication environments is determined.
In an optional embodiment, after step S204, the method may further include:
s2041: and carrying out visual processing on the test result of the vehicle-mounted Ethernet to generate a visual chart.
S2042: and sending the visual chart to a target display interface.
Specifically, the test results of the vehicle-mounted ethernet network include packet loss rates corresponding to the standard communication environment and the simulated vehicle-mounted communication environment, and the visual processing is performed based on the packet loss rates corresponding to different interference values to generate a visual chart, where the visual chart is generated by using a signal value corresponding to an interference circuit signal in each simulated vehicle-mounted communication environment as an abscissa and using the packet loss rate in each simulated vehicle-mounted communication environment as an ordinate, so as to visually display the test results, and further accurately judge the communication states of the vehicle-mounted ethernet network in various simulated vehicle-mounted communication environments according to the visual results.
In an optional implementation manner, as shown in fig. 3, which is a schematic flow chart of another vehicle-mounted ethernet testing method provided in the embodiment of the present application, the method further includes:
s301: and determining a target communication environment meeting preset communication conditions from the multiple simulated vehicle-mounted communication environments based on the test result of the vehicle-mounted Ethernet.
In a specific embodiment, as shown in fig. 4, which is a flowchart illustrating a target communication environment determining method provided in the embodiment of the present application, step S301 may include:
s3011: and calculating the packet loss rate based on the second packet sending quantity and the second packet receiving quantity to obtain a second packet loss rate.
S3012: and judging whether the second packet loss rate is within a preset packet loss rate threshold range.
S3013: and if the packet loss rate is within the preset packet loss rate threshold range, determining the simulated vehicle-mounted communication environment corresponding to the second packet loss rate as a target communication environment meeting the preset communication condition.
In this embodiment of the application, the target communication environment is a first target communication environment, and the simulated vehicle-mounted communication environment corresponding to the second packet loss rate is a communication environment meeting preset communication conditions, where the meeting preset communication conditions are second packet loss rates determined based on the second packet sending quantity and the second packet receiving quantity, and the communication conditions within a preset packet loss rate range, specifically, a preset packet loss rate threshold range may be 0 to 0.01, and the vehicle-mounted ethernet network can perform secure communication in the target communication environment meeting the preset communication conditions, so as to complete a security test on the vehicle-mounted ethernet network.
Further, the preset packet loss rate threshold range may also be 0-0.03, 0-0.09, and 0-0.12, and optimally, the preset packet loss rate threshold range is 0-0.03.
S402: and determining the anti-interference range of the vehicle-mounted Ethernet based on the highest signal value and the lowest signal value of the interference circuit signal corresponding to the target communication environment.
Specifically, the highest signal value is the maximum interference current value of the interference current signal meeting the preset communication condition, the lowest signal value is the minimum interference current value of the interference current signal meeting the preset communication condition, and the first anti-interference range of the vehicle-mounted Ethernet is determined according to the maximum interference current value and the minimum interference current value, so that the test of the communication safety of the vehicle-mounted Ethernet under various simulated vehicle-mounted communication environments is realized.
In a specific embodiment, before step S3012, the method further includes:
s30121: and calculating the packet loss rate based on the first packet sending amount and the first packet receiving amount to obtain the first packet loss rate.
S30122: and determining a preset packet loss rate threshold according to the first packet loss rate.
Specifically, the preset packet loss rate threshold may be a value greater than the first packet loss rate and smaller than a sum of the first packet loss rate and the preset value, and then it is determined whether the simulated vehicle-mounted communication environment corresponding to the second packet loss rate meets the target communication environment of the preset communication condition based on the preset packet loss rate threshold.
In another embodiment, the data test packet includes a plurality of data frames, and the method further includes:
s501: the method comprises the steps of obtaining a first data frame amount in a data test packet sent by a first communication module and a first data frame amount in a data return packet received by the first communication module under a standard communication environment.
S502: and calculating the frame loss rate based on the first data frame amount and the first data frame return amount to obtain a first frame loss rate.
S503: and determining a preset frame loss rate threshold value based on the first frame loss rate.
S504: and acquiring a second data frame quantity in the data test packet sent by the first communication module and a second data frame quantity in the data return packet received by the first communication module under the simulated vehicle-mounted communication environment.
S505: and calculating the frame loss rate based on the second data frame quantity and the second data frame return quantity to obtain a second frame loss rate.
S506: and judging whether the second frame loss rate is within the range of the preset frame loss rate threshold value.
And if the simulated vehicle-mounted communication environment corresponding to the second frame loss rate is within the range of the preset frame loss rate threshold, determining that the simulated vehicle-mounted communication environment corresponding to the second frame loss rate is a second target communication environment meeting the preset communication condition.
In the embodiment of the application, the second target communication environment is a communication environment which is based on that the simulated vehicle-mounted communication environment corresponding to the second frame loss rate is a communication environment meeting the preset communication condition, so that the highest signal value and the lowest signal value of an interference circuit signal corresponding to the second target communication environment are determined, the second anti-interference range of the vehicle-mounted ethernet is obtained, the intersection of the first anti-interference range and the second anti-interference range is taken as the optimal anti-interference range of the vehicle-mounted ethernet, the accurate evaluation on the communication quality of the vehicle-mounted ethernet is further improved, and the safety test on the vehicle-mounted ethernet is realized.
Based on the above description of the testing method for the vehicle-mounted ethernet, the following embodiment describes a specific testing process in detail.
In the general implementation of the present application, a data test packet is sent to a second communication module by controlling a first communication module, so that the second communication module feeds back a data return packet to the first communication module based on the data test packet, to simulate vehicle-mounted ethernet communication between different electronic control units on a vehicle, and an interference circuit signal with different signal values is applied to a communication line between the first communication module and the second communication module by an interference signal generation device, so as to form a plurality of simulated vehicle-mounted communication environments, and based on obtaining a packet sending amount and a packet receiving amount under a standard communication environment and a simulated vehicle-mounted communication environment, a test result of the vehicle-mounted ethernet is generated, so that communication quality of the vehicle-mounted ethernet under the action of different interference signals can be tested, and a security test of the vehicle-mounted ethernet is realized.
Specifically, the interference signal transmission device is a current probe, the first communication module may be an FPGA (Field-Programmable Gate Array) chip, the second communication module may be an SJA1105 chip, and the FPGA chip is controlled to transmit a data test packet to the SJA1105 chip, where the data test packet is a ping packet, and the C8051 single chip microcomputer is used to record packet sending and receiving amounts in various communication environments, and generate a vehicle-mounted ethernet test result based on the recorded data.
In one embodiment, under a standard communication environment, the FPGA chip is controlled to send ping packets to the SJA1105 chip, wherein the FPGA chip is used as a sending port, the SJA1105 chip is used as a receiving port, the number of the ping packets sent by the FPGA chip can be 100, a time interval for sending the ping packets can be 50ms, and meanwhile, the number of data loopback packets fed back to the FPGA chip by the SJA1105 chip based on the ping packets is recorded, a vehicle-mounted ethernet test result is generated based on recorded data, and then the vehicle-mounted ethernet test result is subjected to visualization processing to generate a visualization chart, and the visualization chart is sent to a target display interface, wherein a device for recording the number can be a C8051 single chip microcomputer.
In another embodiment, the interference signal generation device is controlled to apply interference circuit signals with different signal values on a communication line between the FPGA chip and the SJA1105 chip through the current probe, wherein the different signal values can be any current value from 10 milliamperes to 100 milliamperes, so as to form various simulated vehicle-mounted communication environments.
Specifically, the interference signal generation control device applies an interference current signal with a current value of 10 milliamperes to a communication line between the FPGA chip and the SJA1105 chip through a current probe, and controls the FPGA chip to transmit ping packets to the SJA1105 chip under the interference of the interference current signal with the current value of 10 milliamperes, wherein the FPGA chip is used as a transmitting port, the SJA1105 chip is used as a receiving port, the number of the ping packets transmitted by the FPGA chip can be 100, the time interval for transmitting the ping packets can be 50ms, and simultaneously, the number of data packets fed back to the FPGA chip by the SJA1105 chip based on the ping packets is recorded, and a vehicle-mounted ethernet test result is generated based on the recorded data, so that the vehicle-mounted ethernet test result is subjected to visualization processing, a visualization chart is generated, and the visualization chart is transmitted to a target display interface.
Further, a simulated vehicle-mounted communication environment corresponding to the interference current signal with the current value of 11-100 milliamperes is formed by changing the current value of the interference current signal applied to the communication line, wherein the current value of the interference current signal can be increased by 1 milliampere one by one, so that a plurality of stepped simulated vehicle-mounted communication environments are formed, the number of data packets in each simulated vehicle-mounted communication environment is obtained, a vehicle-mounted Ethernet test result is generated through recorded data, a vehicle-mounted Ethernet test result is generated based on the recorded data, the vehicle-mounted Ethernet test result is subjected to visual processing to generate a visual chart, and the visual chart is sent to a target display interface, so that the test result can be analyzed more visually from the target display interface, and a target communication environment meeting preset communication conditions is determined from the plurality of simulated vehicle-mounted communication environments, and determining the anti-interference range of the vehicle-mounted Ethernet based on the highest current value and the lowest current value of the interference current signal corresponding to the target communication environment. In each simulated vehicle-mounted communication environment, the number of ping packets sent by the FPGA chip and the time interval for sending the ping packets are equal.
According to the technical scheme of the embodiment of the application, the application has the following technical effects:
according to the embodiment of the application, the first communication module is controlled to send the data test packet to the second communication module in the standard communication environment and the simulated vehicle-mounted communication environment respectively by responding to the vehicle-mounted Ethernet test request, so that the second communication module feeds back the data return packet to the first communication module based on the data test packet; acquiring a first packet sending amount of a data test packet sent by a first communication module and a first packet receiving amount of a received data return packet within a preset time length under a standard communication environment; acquiring a second packet sending quantity of a data test packet sent by a first communication module and a second packet receiving quantity of a received data return packet within a preset time length in a simulated vehicle-mounted communication environment so as to determine packet loss rates in a standard communication environment and the simulated vehicle-mounted communication environment and further determine an anti-interference range of a vehicle-mounted Ethernet under communication safety; and generating a test result of the vehicle-mounted Ethernet based on the first packet sending amount, the first packet receiving amount, the second packet sending amount and the second packet receiving amount. By the technical scheme, the communication quality of the vehicle-mounted Ethernet under the action of different interference signals can be tested, and the safety test of the vehicle-mounted Ethernet is realized.
In an embodiment of the present application, a vehicle-mounted ethernet testing apparatus is further provided, as shown in fig. 5, which is a schematic structural diagram of the vehicle-mounted ethernet testing apparatus provided in the embodiment of the present application, and the apparatus includes:
the communication control module 10: the device comprises a first communication module, a second communication module, a data feedback module and a data feedback module, wherein the first communication module is used for controlling the first communication module to send a data test packet to the second communication module in response to a vehicle-mounted Ethernet test request under a standard communication environment and a simulated vehicle-mounted communication environment respectively so as to enable the second communication module to feed back a data feedback packet to the first communication module based on the data test packet; the simulated in-vehicle communication environment is formed by imposing interfering circuit signals of different signal values on the communication line between the first communication module and the second communication module.
The first acquisition module 20: the method is used for acquiring a first packet sending amount of a data test packet sent by a first communication module and a first packet receiving amount of a received data return packet within a preset time length under a standard communication environment.
The second obtaining module 30: the method is used for obtaining a second packet sending quantity for sending the data test packet and a second packet receiving quantity for receiving the data return packet by the first communication module within a preset time length under the simulated vehicle-mounted communication environment.
The test result generation module 40: and the test result is used for generating the test result of the vehicle-mounted Ethernet based on the first packet sending amount, the first packet receiving amount, the second packet sending amount and the second packet receiving amount.
Further, the apparatus further comprises:
application of jammer circuit signal module 50: the interference signal generating device is used for controlling the interference signal generating device to apply a plurality of interference circuit signals on the communication line so as to form a plurality of simulated vehicle-mounted communication environments, and the signal values of the interference circuit signals in different simulated vehicle-mounted communication environments are different.
Further, the second obtaining module 30 includes:
first acquisition unit 301: and acquiring a second packet sending quantity and a second packet receiving quantity within a preset time period aiming at each simulated vehicle-mounted communication environment in the various simulated vehicle-mounted communication environments.
Further, the apparatus further comprises:
target communication environment determination module 60: the method is used for determining a target communication environment meeting preset communication conditions from a plurality of simulated vehicle-mounted communication environments based on the test results of the vehicle-mounted Ethernet.
Interference rejection range determination module 70: the method and the device are used for determining the anti-interference range of the vehicle-mounted Ethernet based on the highest signal value and the lowest signal value of the interference circuit signal corresponding to the target communication environment.
Further, the target communication environment determination module 60 includes:
the packet loss rate determining module 601: the packet loss rate is determined based on the second packet sending quantity and the second packet receiving quantity;
the judging module 602: the method is used for judging whether the packet loss rate is within a preset packet loss rate threshold range;
and if the packet loss rate is within the preset packet loss rate threshold range, determining the simulated vehicle-mounted communication environment corresponding to the packet loss rate as a target communication environment meeting the preset communication condition.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The embodiment of the application provides a vehicle-mounted Ethernet test device, which comprises a processor and a memory, wherein at least one instruction, at least one section of program, a code set or an instruction set is stored in the memory, and the at least one instruction, the at least one section of program, the code set or the instruction set is loaded and executed by the processor to realize the vehicle-mounted Ethernet test method provided by the above method embodiment.
The memory may be used to store software programs and modules, and the processor may execute various functional applications and data processing by operating the software programs and modules stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs needed by functions and the like; the storage data area may store data created according to use of the apparatus, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory may also include a memory controller to provide the processor access to the memory.
The vehicle-mounted ethernet testing device may be a server, and an embodiment of the present application further provides a schematic structural diagram of the server, please refer to fig. 6, where the server 600 is configured to implement the data processing method provided in the foregoing embodiment. The server 600, which may vary widely in configuration or performance, may include one or more processors 610 (e.g., one or more processors) and storage 630, one or more storage media 620 (e.g., one or more mass storage devices) storing applications 623 or data 622. Memory 630 and storage medium 620 may be, among other things, transient or persistent storage. The program stored on the storage medium 620 may include one or more modules, each of which may include a series of instruction operations for the server. Further, the processor 610 may be configured to communicate with the storage medium 620 to execute a series of instruction operations in the storage medium 620 on the server 600. The server 600 may also include one or more power supplies 660, one or more wired or wireless network interfaces 650, one or more input-output interfaces 640, and/or one or more operating systems 621, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and so forth.
Embodiments of the present application further provide a computer-readable storage medium, where the storage medium may be disposed in a server to store at least one instruction, at least one program, a code set, or a set of instructions related to implementing a data processing method in the method embodiments, where the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the vehicle ethernet testing method provided in the method embodiments.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system and server embodiments, since they are substantially similar to the method embodiments, the description is simple, and reference may be made to some descriptions of the method embodiments for relevant points.
The above description is only for the specific embodiments of the present application, but the scope of the present application 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 application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A vehicle-mounted Ethernet test method is characterized by comprising the following steps:
responding to a vehicle-mounted Ethernet test request, and respectively controlling a first communication module to send a data test packet to a second communication module in a standard communication environment and a simulated vehicle-mounted communication environment so as to enable the second communication module to feed back a data return packet to the first communication module based on the data test packet; the simulated vehicle-mounted communication environment is formed by applying interference circuit signals with different signal values on a communication line between the first communication module and the second communication module;
acquiring a first packet sending amount of the data test packet sent by the first communication module and a first packet receiving amount of the data return packet received by the first communication module within a preset time length under the standard communication environment;
acquiring a second packet sending quantity of the data test packet sent by the first communication module and a second packet receiving quantity of the data return packet received by the first communication module within a preset time under the simulated vehicle-mounted communication environment;
and generating a test result of the vehicle-mounted Ethernet based on the first packet sending amount, the first packet receiving amount, the second packet sending amount and the second packet receiving amount.
2. The vehicle-mounted Ethernet test method according to claim 1, wherein before the controlling the first communication module to send a data test packet to the second communication module so that the second communication module feeds back a data return packet to the first communication module based on the data test packet, the method further comprises:
and controlling the interference signal generating device to apply a plurality of interference circuit signals on the communication line so as to form a plurality of simulated vehicle-mounted communication environments, wherein the signal values of the interference circuit signals in different simulated vehicle-mounted communication environments are different.
3. The vehicle-mounted Ethernet test method according to claim 1, wherein the obtaining of the second packet sending amount of the data test packet and the second packet receiving amount of the data return packet sent by the first communication module within a preset time period in the simulated vehicle-mounted communication environment comprises:
and acquiring the second packet sending quantity and the second packet receiving quantity within the preset time aiming at each simulated vehicle-mounted communication environment in the plurality of simulated vehicle-mounted communication environments.
4. The vehicular ethernet testing method according to claim 2, further comprising:
determining a target communication environment meeting preset communication conditions from the multiple simulated vehicle-mounted communication environments based on the test result of the vehicle-mounted Ethernet;
and determining the anti-interference range of the vehicle-mounted Ethernet based on the highest signal value and the lowest signal value of the interference circuit signal corresponding to the target communication environment.
5. The vehicle-mounted Ethernet test method according to claim 4, wherein the determining a target communication environment satisfying a preset communication condition from the plurality of simulated vehicle-mounted communication environments based on the test result of the vehicle-mounted Ethernet comprises:
calculating packet loss rate based on the second packet sending amount and the second packet receiving amount to obtain a second packet loss rate;
judging whether the second packet loss rate is within a preset packet loss rate threshold range or not;
and if the second packet loss rate is within the preset packet loss rate threshold range, determining that the simulated vehicle-mounted communication environment corresponding to the second packet loss rate is a target communication environment meeting preset communication conditions.
6. The vehicle-mounted ethernet test method according to claim 5, wherein before the determining whether the second packet loss rate is within a preset packet loss rate threshold range, the method further comprises:
calculating packet loss rate based on the first packet sending amount and the first packet receiving amount to obtain a first packet loss rate;
and determining the preset packet loss rate threshold according to the first packet loss rate.
7. The vehicle-mounted Ethernet test method according to claim 6, wherein the preset packet loss rate threshold range is 0-0.01.
8. The vehicle ethernet test method according to claim 1, wherein after said generating the test result of the vehicle ethernet, the method further comprises:
carrying out visualization processing on the test result of the vehicle-mounted Ethernet to generate a visualization chart;
and sending the visual chart to a target display interface.
9. An on-board ethernet testing apparatus, the apparatus comprising:
a communication control module: the device comprises a first communication module, a second communication module, a data feedback module and a data feedback module, wherein the first communication module is used for controlling the first communication module to send a data test packet to the second communication module in response to a vehicle-mounted Ethernet test request under a standard communication environment and a simulated vehicle-mounted communication environment respectively so as to enable the second communication module to feed back a data feedback packet to the first communication module based on the data test packet; the simulated vehicle-mounted communication environment is formed by applying interference circuit signals with different signal values on a communication line between the first communication module and the second communication module;
a first obtaining module: the first communication module is used for sending a first packet sending quantity of the data test packet and receiving a first packet receiving quantity of the data return packet within a preset time length under the standard communication environment;
a second obtaining module: the second packet sending quantity and the second packet receiving quantity are used for obtaining a second packet sending quantity of the data test packet sent by the first communication module and a second packet receiving quantity of the data return packet received by the first communication module within a preset time length under the simulated vehicle-mounted communication environment;
a test result generation module: and the test result of the vehicle-mounted Ethernet is generated based on the first packet sending amount, the first packet receiving amount, the second packet sending amount and the second packet receiving amount.
10. An in-vehicle ethernet test system, the system comprising: the vehicle-mounted Ethernet testing device comprises an interference signal generating device, an interference signal transmitting device, a first communication module, a second communication module, a target display interface and the vehicle-mounted Ethernet testing device according to claim 9;
the first communication module is connected with the second communication module through a communication line;
the interference signal generating device applies a plurality of interference circuit signals on the communication line through the interference signal transmitting device to form a plurality of simulated vehicle-mounted communication environments;
the target display interface is in communication connection with the vehicle-mounted Ethernet testing device, and the target display interface is used for displaying a visual result generated by the vehicle-mounted Ethernet testing device.
CN202210505372.4A 2022-05-10 2022-05-10 Vehicle-mounted Ethernet test method, device and system Pending CN115086201A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210505372.4A CN115086201A (en) 2022-05-10 2022-05-10 Vehicle-mounted Ethernet test method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210505372.4A CN115086201A (en) 2022-05-10 2022-05-10 Vehicle-mounted Ethernet test method, device and system

Publications (1)

Publication Number Publication Date
CN115086201A true CN115086201A (en) 2022-09-20

Family

ID=83247059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210505372.4A Pending CN115086201A (en) 2022-05-10 2022-05-10 Vehicle-mounted Ethernet test method, device and system

Country Status (1)

Country Link
CN (1) CN115086201A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117278458A (en) * 2023-11-21 2023-12-22 科谱半导体(天津)有限公司 Ethernet detection method, communication device, apparatus, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106507385A (en) * 2015-09-06 2017-03-15 深圳市道通智能航空技术有限公司 A kind of air interference method of testing and system
CN107425881A (en) * 2017-06-06 2017-12-01 中国电力科学研究院 A kind of method and system tested for low-voltage power line bandwidth carrier communication performance
CN110177023A (en) * 2019-04-08 2019-08-27 视联动力信息技术股份有限公司 A kind of communication connection detection method and device based on view networking
CN113206768A (en) * 2021-03-31 2021-08-03 新华三信息安全技术有限公司 Network performance testing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106507385A (en) * 2015-09-06 2017-03-15 深圳市道通智能航空技术有限公司 A kind of air interference method of testing and system
CN107425881A (en) * 2017-06-06 2017-12-01 中国电力科学研究院 A kind of method and system tested for low-voltage power line bandwidth carrier communication performance
CN110177023A (en) * 2019-04-08 2019-08-27 视联动力信息技术股份有限公司 A kind of communication connection detection method and device based on view networking
CN113206768A (en) * 2021-03-31 2021-08-03 新华三信息安全技术有限公司 Network performance testing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
涂岩恺: "《车载以太网抗干扰性能测试》", 《计量科学与技术》, no. 1, pages 20 - 22 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117278458A (en) * 2023-11-21 2023-12-22 科谱半导体(天津)有限公司 Ethernet detection method, communication device, apparatus, device and storage medium

Similar Documents

Publication Publication Date Title
CN109460348B (en) Pressure measurement method and device of game server
US20020161553A1 (en) Adaptive load generation
CN106874187A (en) code coverage collection method and device
CN108173938A (en) Server load shunt method and device
CN105281978A (en) Performance test method, device and system
CN104579816A (en) Vehicle network health assessment
CN113762525B (en) Federal learning model training method with differential privacy protection
CN108319550A (en) A kind of test system and test method
CN115086201A (en) Vehicle-mounted Ethernet test method, device and system
CN108802511A (en) Method and system for testing battery management unit
CN104683182A (en) Method and device for detecting network service quality of IDC machine room
CN110688732B (en) Simulation test platform and method for speed and distance measuring system
CN110336713B (en) Method for detecting end-to-end time delay and rate of cellular Internet of things and terminal equipment
CN109617763B (en) Pressure testing method and device for FC-AE bus
CN114490387A (en) Vehicle testing method and device
CN113758689A (en) Method and device for testing chassis characteristics of drivable equipment
CN113127356A (en) Pressure measurement method and device, electronic equipment and storage medium
KR20200054927A (en) Traffic generating apparatus, traffic agent and traffic generating system comprising same
CN111741487B (en) Wireless mesh network route selection test method, device and terminal equipment
CN114328229A (en) Over-the-air technology test system
CN113656313A (en) Automatic test processing method and device
CN113030883B (en) Method and system for efficiently transmitting radar map data in computer simulation
CN114430567B (en) Network detection model evaluation method, device and system and electronic equipment
CN113076238B (en) Pressure testing method and device, storage medium and electronic equipment
CN117119460B (en) Industrial Internet network security detection system and method based on cloud computing

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