Vehicle-mounted ethernet test equipment, system and test methodTechnical field
The present invention relates to the communications fields based on vehicle-mounted Ethernet, and in particular to vehicle-mounted ethernet test equipment, system withAnd the equipment transmitted based on vehicle-mounted Ethernet data can be tested test equipment, system and method.
Background technique
With the high speed development of processor operational capability and hardware, so that many innovations are pushed away rapidly under automotive environmentInto, be most significantly embodied in become increasingly complex and multiplicity in-vehicle electronic system, a large amount of sensor and processor are used in vehicleNot homologous ray realize corresponding function.In continuous evolution process, every increase by one new sensor or application programIt needs to realize by increasing new independent electronic control unit (ECU) equipment and associated sensor circuit, thisKind way is very inefficient, because needing to increase the ECU quantity of the quantity and installation of connection in the car with point-to-point linkExponentially rise.In order to overcome this problem, the communication link between relevant ECU is established, allows ECU to use each other more advancedFunction and shared data, this growth has been developing progressively present complicated, isomery In-vehicle networking.Such as it is general at presentVehicle bus type network: local interconnection network (LIN), controller local area network (CAN) or FlexRay etc..In addition, CAN interfaceThe overwhelming majority is DB9 interface, be exactly it is more convenient and firm, by DB9 interface, can be surveyed based on the CAN MCU transmittedExamination.
Relative to point-to-point chain-circuit system, propose that using the network based on bus be a kind of progress, but as the time increasesAdd new subsystem that can be added in vehicle, the increase bring of ECU quantity is dramatically increasing for bandwidth consumption.Traditional vehicleControl application required bandwidth it is generally lower, bandwidth problem does not attract wide public concern.When introducing information entertainment and baseAfter the advanced driving assistance system (ADAS) of video, these application programs are needed compared to the data transfer bandwidth of traditional control systemSignificant growth is asked, the problem of existing In-vehicle networking transmission bandwidth deficiency highlights, therefore the follow-on In-vehicle networking of urgent needTechnology and framework.
In order to solve the quick transmission problem of data, automobile industry alliance OPEN Alliance defines vehicle-mounted EthernetStandard BroadR-Reach, which can realize the data of a pair of of Double-strand transmission 100Mb/s, also known as 100BASE-T1.It is communicated between vehicle-mounted electronic control unit (ElectronicControl Unit, ECU) with BroadR-Reach, with correspondenceBandwidth for transmission control information and audio, video data.In order to test the ECU based on BroadR-Reach technology, relevant survey is neededTry software and hardware.Under normal circumstances, test software is installed on computer, however the output of the data of computer usually passes through quick etherNet mode transmission, and the data of Fast Ethernet transmission 100Mb/s need 2 pairs of twisted pairs, also known as 100BASE-Tx.Thus, outThe mismatch of data transfer mode between existing computer and ECU to be measured, so as to cause that can not be based on by computer testingThe ECU of BroadR-Reach.And this test is carried out in the prior art and is turned by requiring in the enterprising line interface of test development boardChange connection, redefine interface pin parameter etc, whether the communication that in addition device under test is only capable of in this test is normalCarry out data analysis.Actual conditions be often that while the communication between Devices to test and testing tool be normally show, but toWhether the communication between measurement equipment normally can not also be tested, such as: ECU and vehicle-mounted camera are by individually test, functionCan be normal, but when concrete application, whether ECU is needed and is communicated between vehicle-mounted camera, normal, need to obtain ECU withCommunication data between vehicle-mounted camera, which carries out analysis, to be assessed, but does not provide such vehicle-mounted ether in the prior artNet test equipment.Communication means between a kind of two Devices to test of feasible test is set using two vehicle-mounted ethernet testsIt is standby, wherein a vehicle-mounted ethernet test equipment connects ECU, and sensor is attached with another vehicle-mounted ethernet device, soTwo vehicle-mounted ethernet test equipment are attached with computer afterwards.By storing routine call in a computer, ECU willSignal based on IEEE802.3bp100base-T1 or IEEE802.3bw100base-T1 is transferred to vehicle-mounted Ethernet survey and setsStandby to carry out parsing and be converted into after the signal for meeting IEEE802.3 100base-Tx be transmitted to computer, computer is by the signalBy sending another vehicle-mounted ethernet test equipment to, convert the signal to meet again in the vehicle-mounted ethernet deviceSensor is being sent to after the signal of IEEE802.3bp100base-T1 or IEEE802.3bw100base-T1.Then pass through prisonSignal depending on transmitting judges whether the communication between ECU and sensor is normal.This haves the shortcomings that larger, on the one hand, needsIt is not two transmission letters of direct communication between ECU and sensor on the other hand using two vehicle-mounted ethernet test equipmentNumber, but by the conversion between agreement, when interference is present, on the one hand signal can be made based on the conversion between different agreementIt is lost at information, mistake on the other hand can occur.
In conclusion the communication between Devices to test and testing tool in order to effectively overcome the above-mentioned prior art is normalIt has been shown that, but the phenomenon that whether the communication between Devices to test normally can not also accurately be tested, it is a kind of it is new will based on it is vehicle-mounted withThe invention of test method and test equipment that the equipment of too network data transmission is tested is imperative.
Summary of the invention
The purpose of the present invention is to provide a kind of vehicles that the equipment for carrying out communications using vehicle-mounted Ethernet is testedIt carries ethernet test tool and system, technical solution of the invention is as follows:
A kind of vehicle-mounted ethernet test equipment, includes at least: microprocessor controller, the PHY module of 100Base-Tx, 100Base-The PHY module of T1, the first kind MAC chip that matches with the PHY module of 100Base-T1, the PHY module phase with 100Base-TxMatched second class MAC chip, first kind interface, the second class interface, power module,
The PHY module of 100Base-T1 is electrically connected with first kind MAC chip and first kind interface respectively, first kind MAC chip withMicroprocessor controller electrical connection;
The PHY module of 100Base-Tx is electrically connected with the second class MAC chip and the second class interface respectively, the second class MAC chip withMicroprocessor controller electrical connection;
PHY module, first kind MAC chip and the first kind interface of 100Base-T1 include at least first first kind MAC chip,Second first kind MAC chip, the PHY module of first 100Base-T1, the PHY module of second 100Base-T1, firstA first kind interface, second first kind interface, the PHY module of first 100Base-T1 respectively with first first kindMAC chip, the electrical connection of first first kind interface, the PHY module of the 2nd 100Base-T1 respectively with second first kind MAC corePiece, the electrical connection of second first kind interface, wherein the PHY module of first 100Base-T1 is with second 100Base-T1'sPHY module is directly electrically connected and carries out data transmission or the MAC core of first first kind MAC chip and second first kindPiece is directly electrically connected and carries out data transmission.
A kind of vehicle-mounted ethernet test equipment, further, first kind MAC chip can be integrated into 100Base-T1'sIn PHY module or in microprocessor controller or the PHY module of first kind MAC chip, 100Base-T1 can be integrated into micro- placeIt manages in controller;
Or second class MAC chip can be integrated into the PHY module of 100Base-Tx or in microprocessor controller or the second classMAC chip, 100Base-Tx PHY module can be integrated into microprocessor controller;
Or first kind MAC chip can be integrated in the PHY module of 100Base-T1 or in CPU or first kind MAC chip,The PHY module of 100Base-T1 can be integrated in CPU;
Or second class MAC chip can all be integrated in the PHY module of 100Base-Tx or in CPU or the second class MAC corePiece, 100Base-Tx PHY module can be integrated in CPU.
A kind of vehicle-mounted ethernet test equipment includes further FPGA Programmable logical controller in microprocessor controllerDevice and controller based on ARM framework, FPGA programmable logic controller (PLC) are electrically connected with the controller of ARM framework.
A kind of vehicle-mounted ethernet test equipment, further, FPGA programmable logic controller (PLC) are written by program and are realizedThe PHY module of first kind MAC chip, 100Base-T1, and be electrically connected with the controller of ARM framework.
A kind of vehicle-mounted ethernet test equipment, further, when using FPGA programmable logic controller (PLC) and based on ARM frameThe controller of structure, it is preferred that in first kind MAC integrated chip to FPGA programmable logic controller (PLC), the second class MAC integrated chipInto the controller of ARM framework.
A kind of vehicle-mounted ethernet test equipment, further, the quantity of first kind interface and the number of 100Base-T1 moduleAmount, first kind MAC number of chips are identical;The quantity of second class interface and PHY module, the second class MAC chip of 100Base-TxQuantity is identical.
A kind of vehicle-mounted ethernet test equipment, further, first kind interface are 100Base-T1 interface, the second class interfaceFor RJ-45 interface.
A kind of vehicle-mounted ethernet test equipment, further, the PHY module of 100Base-T1 and the quantity of first kind interfaceIt further include other 2, respectively the PHY module of third 100Base-T1, PHY module, the third of the 4th 100Base-T1A first kind interface, the 4th first kind interface, PHY module and the third first kind interface of third 100Base-T1 are electrically connectedIt connects, the PHY module of the 4th 100Base-T1 is electrically connected with the 4th first kind interface, wherein the PHY mould of third 100Base-T1Block cannot be directly electrically connected with the PHY module of the 4th 100Base-T1.
Specifically, the PHY module of first kind interface, 100Base-T1, the PHY module of the second class interface, 100Base-TxQuantity, can be for 1,2,4 or more, can be adjusted according to the quantity of test equipment.
A kind of vehicle-mounted ethernet test equipment, further, first first kind interface and second first kind interface are usedIn probe patterns, probe patterns are applied to obtain the data transmit between two distinct devices, and the third first kind connectsMouthful be used for analog functuion, analog functuion be applied to receive external equipment generate analogue data and send it to Devices to test intoRow analysis, first kind interface are used for test function, carry out test analysis applied to the functions of the equipments of access, first kind interface is100Base-T1 interface.
A kind of vehicle-mounted ethernet test equipment, further, including probe patterns, the analysis of group packet, analog functuion and surveyTrying function includes TCP, UDP, ARP, DHCP, DoIP, UDS, SOMEIP, GPTP, 1722, the analysis and field of UDPNM protocol packageAnalysis.
A kind of vehicle-mounted ethernet test equipment further includes further the toggle switch and DB9 with control first kind interfaceInterface, wherein toggle switch is used to control the aggressive mode and subordinate mode of first kind interface;
DB9 interface is electrically connected with microprocessor controller, for testing the equipment containing DB9.
A kind of vehicle-mounted ethernet test equipment, further, vehicle-mounted ethernet test equipment further include power indicator,A kind of interface indicators, the second class interface indicators are respectively used to the work to power supply and first kind interface, the second class interfaceState is indicated.
A kind of vehicle-mounted ethernet test equipment further includes further power supply module, external power supply module and printed circuitPlate, printed circuit board are electrically connected with power supply module and external power supply module respectively, and power supply module is used to carry out to printed circuit boardPower supply, external power supply module are powered external equipment.
A kind of vehicle-mounted ethernet test system, further include: computer, test function module, vehicle-mounted ethernet test are setIt is standby, wherein test function module can be integrated into computer in a manner of software or hardware.
The present invention also provides a kind of method tested using vehicle-mounted ethernet test system device under test, testsSystem includes the computer containing test function module, vehicle-mounted ethernet test equipment as characterized above, including probe mouldFormula, probe patterns the following steps are included:
Step 1: two Devices to test for being used for probe patterns being passed through into vehicle-mounted Ethernet data line respectively and are connected to vehicle-mounted etherPHY module with any two 100base-T1 or any two first kind MAC chip in net test equipment carry out directIt connects and the two 100base-T1 interfaces that match;
Specifically, further explain, such as: MAC chip respectively with the PHY module of 100base-T1 and the interface of 100base-T1It is attached, there are two identical modules, wherein the MAC chip in two modules is directly connected to or the PHY mould of 100base-T1Block is directly connected to, and Devices to test is respectively connected to 100base-T1 interface.
Step 2: the test function module in computer calls application program to enable probe patterns, makes its ECU and sensorBetween start enabling signal interaction;
Step 3: microprocessor controller in vehicle-mounted ethernet test equipment can to the transmission signal between two Devices to test intoRow packet capturing, and send the signal that packet capturing obtains to computer, computer is real-time to the data of acquisition by test function moduleIt is analyzed, is monitored in real time between ECU and sensor, whether the communication detected between Devices to test is normal.
A method of it is tested using vehicle-mounted ethernet test system device under test, further includes test pattern or groupPacket analysis or simulation model;
Test pattern include: after the completion of the communication connection between computer, vehicle-mounted ethernet test equipment, Devices to test, toThe vehicle-mounted ethernet test equipment that measurement equipment receives transmit from Computer signal, Devices to test based on the received signal to vehicleIt carries ethernet test equipment to be transmitted, vehicle-mounted ethernet test equipment sends received signal to computer, and computer is logicalThe various functions of crossing test function module device under test are tested, and check whether Devices to test works normally;Or it is to be measuredEquipment can also actively transmit a signal to vehicle-mounted ethernet test equipment, and vehicle-mounted ethernet test equipment transmits a signal to meterCalculation machine is tested by the test function module in computer.
Group packet analysis includes: when the communication connection between computer, vehicle-mounted ethernet test equipment, Devices to test is completedAfterwards, pass through the application program launching Devices to test in test function module and the data communication between computer, test function mouldBlock packages analysis to received data.
Simulation model includes: when the communication connection between computer, vehicle-mounted ethernet test equipment, Devices to test is completedAfterwards comprising virtual signal is generated by the test function module of computer and is communicated with Devices to test or Devices to testIt generates signal and computer is sent to by vehicle-mounted ethernet test equipment and communicated, vehicle-mounted ethernet test equipment being capable of mouldBe intended to be vehicle-mounted ethernet node equipment, can receive data and send data, support IEEE1722 agreement talker andSimulation EAVB, DoIP, SomeIP, UdpNM, GPTP agreement is supported in listener simulation.
The present invention is that the standard based on BroadR-Reach is designed using the PHY module of 100Base-T1, the first kindMAC chip is matched with the PHY module of 100Base-T1, and MAC chip can also become MAC hardware, and only title is not hereTogether, substantial function is identical.The present invention is that the agreement based on ethernet standard is set using the PHY module of 100Base-TxMeter, the second class MAC chip are matched with the PHY module of 100Base-Tx.
As described above, a kind of equipment for carrying out communications using vehicle-mounted Ethernet of the invention tested it is vehicle-mounted withToo net test equipment, system and method, have the advantages that
1. can be applied to the detection of the direct communication between Devices to test, and only need to can with a vehicle-mounted ethernet deviceComplete test, be on the one hand it is high-efficient, can guarantee test accuracy, on the other hand, it is at low cost.
2. microprocessor controller is divided into a processor using FPGA and ARM, can flexible Application variousScene.
3., can be to the Devices to test based on vehicle-mounted Ethernet by using the test equipment of vehicle-mounted Ethernet of the inventionCarry out systematic simulation test, the analysis of group packet, test analysis.
Detailed description of the invention
Fig. 1 is shown as the structural schematic diagram of the vehicle-mounted ethernet test equipment of the present invention.
Fig. 2, which is shown as the present invention, has PHY module osi model schematic diagram: (2a) 100Base-T1 PHY module, (2b)100Base-Tx module.
Fig. 3 is shown as the integrated relationship schematic diagram between PHY, MAC, CPU three of the invention: (3a) CPU integrate MAC withPHY;(3b) CPU integrates MAC, and PHY uses individual chips;(3c) CPU is independent, MAC and PHY integrated chip;(3d) CPU,MAC, PHY use individual chips.
Fig. 4 is shown as the embodiment of the vehicle-mounted ethernet test device structure of the present invention.
Fig. 5 is shown as the embodiment of the vehicle-mounted ethernet test device structure of the present invention.
Fig. 6 is shown as the embodiment of the vehicle-mounted ethernet test device structure of the present invention.
Fig. 7 is shown as the embodiment of the vehicle-mounted ethernet test device structure of the present invention.
Fig. 8 is shown as the embodiment of the vehicle-mounted ethernet test device structure of the present invention.
Fig. 9 is shown as the embodiment tested in the vehicle-mounted ethernet test system of the present invention for device under test.
Figure 10 is shown as being used for the embodiment of probe patterns in the vehicle-mounted ethernet test system of the present invention.
Figure 11 is shown as the embodiment in the vehicle-mounted ethernet test system of the present invention for group packet analytical model.
Figure 12 is shown as being used for the embodiment of simulation model in the vehicle-mounted ethernet test system of the present invention.
Figure 13 is shown as being used for the embodiment of simulation model in the vehicle-mounted ethernet test system of the present invention.
Specific embodiment
The present invention is described in detail combined with specific embodiments below;Following embodiment will be helpful to the technology of this fieldPersonnel further understand the present invention, but the invention is not limited in any way;It should be pointed out that the ordinary skill of this fieldFor personnel, under the premise of not departing from the present invention, various modifications and improvements can be made;These belong to guarantor of the inventionProtect range.
Now in conjunction with Figure of description, the specific workflow of each unit of the invention is explained in detail:
The embodiment of the present invention proposes that a kind of vehicle-mounted ethernet test equipment includes at least as shown in Fig. 1: containing the micro- of CPUProcessing controller, the PHY module of 100Base-Tx, the PHY module of 100Base-T1, the PHY module phase with 100Base-T1The second class MAC chip, the first kind interface, the second class to match with first kind MAC chip, with the PHY module of 100Base-TxInterface, power module;The PHY module of 100Base-T1 is electrically connected with first kind MAC chip and first kind interface respectively, the first kindMAC chip is electrically connected with CPU;The PHY module of 100Base-Tx is electrically connected with the second class MAC chip and the second class interface respectively,Second class MAC chip is electrically connected with the microprocessor controller of CPU;The PHY module of 100Base-T1 and the quantity of first kind interfaceTwo are all included at least, the PHY module of respectively first 100Base-T1, the PHY module of second 100Base-T1, firstA first kind interface, second first kind interface, the PHY module of first 100Base-T1 are electrically connected with first first kind interfaceIt connects, the PHY module of the 2nd 100Base-T1 is electrically connected with second first kind interface, wherein the PHY of first 100Base-T1Module and the PHY module of second 100Base-T1 are directly electrically connected and are able to carry out the transmission of data;
The above module is all integrated into printed circuit board (PCB), and the entire pcb board of electric power source pair of module is powered, Jin ErtongPcb board is crossed to be powered the above module;
In particular it is required that explanation, the microprocessor containing CPU only illustrate CPU in Fig. 1, do not show that other parts,Such as memory RAM, memory (solid state hard disk or nor-flash etc.).
Defined in PHY International Standards Organization define a standard module, STA(Station Management Entity,Management entity, generally MAC or CPU) pass through SMI(Serial Manage Interface) behavior of PHY, state are carried outIt manages and controls, and specifically managing and controlling movement is realized by the register inside read-write PHY.PHY is physical interfaceTransceiver, it realizes the physical layer of osi model.IEEE-802.3 standard defines ethernet PHY, including MII/GMII(mediumStand-alone interface) sublayer, PCS(Physical Coding Sublayer), PMA(physical medium it is additional) sublayer, PMD(physical medium be related) sublayer,MDI sublayer, it meets in IEEE-802.3k for the 14th article of 10BaseT() and the 24th article and the 25th article of 100BaseT X() ruleModel.As attached drawing 2 has PHY module osi model.Scheming (2a) is based on IEEE 802.3bp 100base-T1 or in IEEEThe PHY layer and matched MAC layer that 802.3bw 100base-T1 is defined, up from data link layer, be followed successively by network layer,Transport layer, session layer, expression layer, application layer.Figure (2b) PHY(Physical Layer) it is IEEE802.3 100base-Tx fixedThe PHY layer and matched MAC layer, data link layer of justice up from data link layer are followed successively by network layer, transport layer, sessionLayer, expression layer, application layer.From figure (2a) and figure (2b), based in osi model or other models, difference be physical layer,MAC layer is from bottom to top from data link layer no essential distinction.
MAC(Media Access Control) i.e. medium access control sublayer agreement.There are two concepts for the part: MACA hardware control and MAC communication be can be with agreement.The agreement is located at the lower half of data link layer in seven layer protocol of OSIPart, be mainly responsible for control with connect the physical medium of PHY layer.When sending data, MAC protocol can judge in advance beIt is no to send data, if can send will to data plus some control information, finally by data and control information withDefined format is sent to PHY layer;When receiving data, whether MAC protocol first determines whether the information of input and passesMistake is inputed by mistake, if removing control information without mistake and being sent to LLC(logic link control) layer.The layer protocol is EthernetMAC is defined by 3 ethernet standard of IEEE-802..Newest MAC supports two kinds of rates of 10Mbps and 100Mbps simultaneously.
The embodiment of the present invention is that the standard based on BroadR-Reach is designed using the PHY module of 100Base-T1,First kind MAC chip is matched with the PHY module of 100Base-T1, and MAC chip can also become MAC hardware, and the two isTitle is different, and substantial function is identical.The PHY module of 100Base-Tx used in the embodiment of the present invention is based on ether network markQuasi- agreement is designed, and the second class MAC chip is matched with the PHY module of 100Base-Tx.First kind interface is100Base-T1 interface, the second class interface are 100base-Tx interface.
First kind MAC chip can be integrated in the PHY module of 100Base-T1 or in CPU or first kind MAC corePiece, 100Base-T1 PHY module can be integrated in CPU;Second class MAC chip can all be integrated in 100Base-Tx'sIn PHY module or in CPU or the PHY module of the second class MAC chip, 100Base-Tx can be integrated in CPU;SpecificallyGround might not all be independent chip that is, for MAC chip, PHY module and CPU three parts, can there are four types of combine shapeFormula, referring to figure (3a) to figure (3d):
1) CPU integrates MAC and PHY, and is encapsulated as microprocessor controller, schemes (3a);
2) CPU integrates MAC and is encapsulated as microprocessor controller, and PHY uses individual chips, schemes (3b);
3) CPU uses individual chips, and MAC and PHY integrate and are encapsulated as chip, schemes (3c);
4) CPU, MAC, PHY complementation are integrated, respectively use independent chip, scheme (3d).
Specifically, the microprocessor controller for the integrated CPU that the present invention uses, when independent core is respectively adopted in CPU, MAC, PHYWhen piece, also there are three types of independent modes, and mode 1: microprocessor controller is integrated with CPU, MAC, PHY chip, mode 2: micro processController is integrated with CPU, but the individual chips that not integrated MAC and PHY, MAC and PHY become one.Mode 3: micro processController is integrated with CPU, but not integrated MAC and PHY chip, MAC and PHY are respectively as independent chip.
Attached drawing 4 lists MAC integrated chip in microprocessor controller, and PHY uses an embodiment of individual chips;
Attached drawing 5 lists MAC, PHY, the microprocessor controller containing CPU is all made of an embodiment of individual chips;
It include FPGA programmable logic controller (PLC) and the controller based on ARM framework in microprocessor controller, FPGA is programmable to patrolController is collected to be electrically connected with the controller of ARM framework.FPGA programmable logic controller (PLC) by Verilog program write-in realize withThe controller of the PHY module of first kind MAC chip, 100Base-T1, FGPA and ARM framework is electrically connected, referring to Fig. 6.WhenUsing FPGA programmable logic controller (PLC) and the controller based on ARM framework, it is preferred that first kind MAC integrated chip is in FPGAIn programmable logic controller (PLC), the second class MAC integrated chip is in the controller of ARM framework, as attached drawing 7 lists the first kindMAC integrated chip is in FPGA programmable logic controller (PLC), and the second class MAC integrated chip is in one in the controller of ARM frameworkEmbodiment.And attached drawing 8 lists microprocessor controller using FPGA programmable logic controller (PLC) and the controller based on ARM frameworkStructure, but first kind MAC chip is not integrated in FPGA programmable logic controller (PLC), and the second class MAC chip is not also integrated inIn the controller of ARM framework.
In the embodiment of the present invention, the PHY module of 100Base-T1 and the quantity of first kind interface respectively include 4, except theThe PHY module of one 100Base-T1, first first kind interface, the PHY module of second 100Base-T1, second firstOutside class interface, the another PHY module including third 100Base-T1, PHY module, the third a first of the 4th 100Base-T1Class interface, the 4th first kind interface;Wherein, the PHY module of third 100Base-T1 is electrically connected with third first kind interfaceIt connects, the PHY module of the 4th 100Base-T1 is electrically connected with the 4th first kind interface, wherein third 100Base-T1'sPHY module is not electrically connected directly with the PHY module of the 4th 100Base-T1.
Specifically, the PHY module of first kind interface, 100Base-T1, the PHY module of the second class interface, 100Base-TxQuantity, can be for 1,2,4 or more, can be adjusted according to the quantity of test equipment.First kind interfaceQuantity is identical as the quantity of 100Base-T1 module, first kind MAC number of chips;The quantity and 100Base-Tx of second class interfacePHY module, the second class MAC number of chips it is identical.First kind interface is 100Base-T1 interface, and the second class interface is RJ-45 interfaces.
In the embodiment of the present invention, 4 first kind interfaces are for group packet analysis, the communication number generated to the external equipment of accessAccording to being analyzed, 4 first kind interfaces are 100Base-T1 interface.First first kind interface and second first kind interface are usedIn probe patterns, probe patterns are applied to obtain the data transmit between two distinct devices;The third first kind connectsMouth is used for analog functuion, receives the analogue data that external equipment generates and is simultaneously transmitted, analyzes;4th first kind interface is used forTest pattern carries out test analysis to the functions of the equipments of access.
The embodiment of the invention also includes: the computer containing test function module, vehicle-mounted ethernet test equipment, whereinTest function module can be integrated into computer in a manner of software or hardware, can be used in probe patterns, group packet analysis,Simulation model, test pattern.Specifically, when Devices to test (can be laser radar sensor etc, ECU) is testedWhen, test macro includes the computer containing test function module and RJ45 interface, vehicle-mounted ethernet test equipment, this is waited forMeasurement equipment is separately connected the 100base-T1 interface and vehicle-mounted ethernet test of Devices to test by vehicle-mounted Ethernet data lineThe 100base-T1 interface of equipment is separately connected by the Ethernet data line of standard positioned at computer and vehicle-mounted ethernet testRJ45 interface in equipment.Until the communication connection between completion computer, vehicle-mounted ethernet test equipment, Devices to test, is visitedNeedle mould formula, the analysis of group packet, analog functuion and test pattern include TCP, UDP, ARP, DHCP, DoIP, UDS, SOMEIP,GPTP, the analysis and field analysis of 1722, UDPNM protocol packages.
Specifically, vehicle-mounted ethernet test equipment of the invention can be used for testing the progress of the equipment based on vehicle-mounted EthernetFunctional test, after the completion of the communication connection between computer, vehicle-mounted ethernet test equipment, Devices to test, referring to Fig. 9, toThe vehicle-mounted ethernet test equipment that measurement equipment receives transmit from Computer signal, Devices to test based on the received signal to vehicleEthernet test equipment transmission information is carried, vehicle-mounted ethernet test equipment sends received information to computer, and computer is logicalThe various functions of crossing test function module device under test are tested, and check whether Devices to test works normally.Or it is to be measuredEquipment can also actively communicate information to vehicle-mounted ethernet test equipment, and vehicle-mounted ethernet test equipment communicates information to meterCalculation machine is tested by the test function module in computer.
In addition, the present invention is also used as analyzing data packet, and referring to Figure 11, when using group packet analytical model,4 100base-T1 interfaces in vehicle-mounted ethernet test equipment, which can be connected, connects Sensor by vehicle-mounted Ethernet dataOr the 100base-T1 interface in ECU, the test of computer and vehicle-mounted Ethernet is then separately connected by standard ethernet lineRJ45 interface in equipment.After connecting, vehicle-mounted ethernet test equipment will receive the data transmission from Sensor or ECUTo computer, computer packages analysis to received data by test function module, and Ethernet protocol group packet analyzes functionIt can need to support common Ethernet protocol, such as support TCP, UDP, ARP, DHCP, DoIP, UDS, SOMEIP, GPTP, 1722,The analysis and field analysis of UDPNM protocol package are able to carry out UDP real-time traffic and count and draw, be able to carry out TCP real-time trafficIt counts and draws, be able to carry out total load real-time traffic and count and draw.
Communication test between Devices to test, such as the communication between ECU and Sensor or the communication between ECU and ECU,At present there is no very good solution method, a kind of communication means between Devices to test, this implementation are provided in the present embodimentIn be defined as probe patterns, between two Devices to test communication carry out packet capturing analysis.Specific reference to Figure 10, such as sensorIt is connected by vehicle-mounted Ethernet data line with the 100base-T1 second interface of vehicle-mounted ethernet test equipment, ECU passes through vehicleIt carries Ethernet data line to be connected with the first interface of the 100base-T1 of vehicle-mounted ethernet test equipment, vehicle-mounted ethernet testEquipment is connected to a computer by standard ethernet data line by RJ-45 interface, due to vehicle-mounted ether in the present embodimentThe PHY module of first 100Base-T1 in net test equipment and the PHY module of second 100Base-T1 directly carry out electricityIt connects and carries out data transmission.Therefore when the test function module in computer calls application program to enable probe patterns, ECUStart enabling signal between sensor interact, the signal between ECU and sensor need not progress signal resolution, but original letterNumber transmitting, i.e. sensor generates and signal and signal passed to second 100base-T1 in vehicle-mounted ethernet test equipmentPHY module, then signal is directly passed to the PHY of first 100base-T1 by the PHY module of second 100base-T1Module, signal are being transmitted to ECU by 100base-T1 module.Microprocessor controller in vehicle-mounted ethernet test equipment can be rightTransmission signal between ECU and sensor carries out packet capturing, and the signal that packet capturing obtains is sent to the PHY module of 100base-TxComputer is sent to by RJ45 interface after being converted, computer is by test function module to the data real-time perfoming of acquisitionAnalysis, monitors in real time between ECU and sensor, checks whether the communication between them is normal.Probe in this implementationMode, the communication between ECU and sensor are direct communications, signal not through conversion but direct communication, thus be avoided thatMistake caused by conversion between signal, while can be improved efficiency.And only with a vehicle-mounted ethernet test equipment, in this waySignificantly save the cost.The signal of crawl, which need to only carry out a protocol translation, can be transferred to progress data point in computerAnalysis and monitoring, it is ensured that the authenticity of data reduces the communication mistake between Devices to test.
In addition, the present invention is also used as simulation test comprising generated by the test function module of computer virtualSignal communicated with sensor or sensor generate signal and by vehicle-mounted ethernet test equipment send to computer intoRow communication.When simulation model, vehicle-mounted ethernet test equipment can be modeled as ethernet node equipment, can receive data,Can send data, support talker and the listener simulation of IEEE1722 agreement, can support simulation EAVB, DoIP,SomeIP, UdpNM, GPTP agreement.
Vehicle-mounted ethernet test equipment includes external power supply module, for being powered to external equipment.External power supplyModule can provide the voltage of 1.5V ~ 36V, can be by the way of USB power supply interface, but be not limited to USB power supply interface.
The embodiment of the invention also includes the toggle switch with control first kind interface, for controlling the active of first kind interfaceMode (Master) and subordinate mode (Slave), switch are installed on first kind interface.
The embodiment of the invention also includes DB9 interface, DB9 interface is electrically connected with micro process control.
The embodiment of the invention also includes power indicator, first kind interface indicators, the second class interface indicators, use respectivelyIt is indicated in the working condition to power supply and first kind interface, the second class interface.
The embodiment of the present invention can test the communication between Devices to test and testing tool, can also test between Devices to testCommunication it is whether normal, be the vast improvement to the prior art.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hairEquivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skillsArt field, is included within the scope of the present invention.