Background
The application of the novel automobile technology has higher requirements on the bandwidth of an automobile network, the explosive growth of the broadband requirement of the automobile network is promoted, and the traditional automobile network has poor expansibility due to low bandwidth or high cost, so that various requirements of automobile manufacturers are difficult to meet. The Ethernet is early in birth, has the advantages of mature technology, high bandwidth, low cost, strong expansibility and the like, and is widely applied before entering the field of automobiles. Because of the high transmission bandwidth of ethernet, higher energy emission is caused, and the requirements of automobile on EMC (electromagnetic compatibility) are very strict, so that the ethernet has not made a technical breakthrough until recently, and thus can be applied in automobile networks, namely automobile single twisted pair wires. The electrical environment in the automobile is complex, and for safety reasons, the key nodes need to be galvanically isolated to prevent short circuits, but the EMC performance of the existing automobile twisted pair Ethernet communication system is poor, and the requirement on galvanic isolation is difficult to meet.
With the continuous forward development of new technologies of automobiles, the demands of users for the intellectualization, automation and networking of automobiles are also continuously improved. Undoubtedly, automobiles with good user experience will gain the challenge of purchasing users, causing automobile manufacturers to continuously increase new services to meet the demands of users, and the continuously increasing service implementation requires a large number of ECUs (electronic control units) installed in the automobile to complete preset functions, which will increase the number of network ports and the amount of data transmitted in the automobile, and the massive data transmission makes the conventional on-board communication bus unable to meet the demands. At present, although the on-board Ethernet bus has been applied to in-car data transmission, the transmission bandwidth of the on-board Ethernet bus is still 100Mbps, the maximum transmission is not more than 1Gbps, and the transmission medium still adopts copper. However, with the comprehensive development of ADAS (centralized electronic control unit for advanced driving assistance), autopilot, and on-vehicle entertainment, the more sensors are required to receive more and more low-delay and deterministic data transmission, high-resolution video traffic transmission, and faster wireless connection technologies such as 5G and the like, the intelligent automobiles are enabled to exchange sensor and control information and the like with each other, so that the communication bandwidth requirement of the on-vehicle network is increased explosively, and the on-vehicle ethernet transmission bandwidth of 1Gbps at present is difficult to meet the increasing transmission requirement of on-vehicle network data.
In order to support higher transmission bandwidth, the defect that the existing vehicle-mounted Ethernet adopts an unshielded copper twisted pair to transmit data is overcome, the pain point in the user demand is grasped, the traditional transmission medium which takes the unshielded copper twisted pair as the vehicle-mounted Ethernet is replaced by the optical fiber which is used as the vehicle-mounted Ethernet bus for transmission in the automobile industry, the application of optical fiber communication in the whole vehicle network is created, and the communication framework of the optical fiber network is adopted, so that the development period with higher bandwidth, lower delay, lower cost, longer service life and shorter development period can be supported. However, the current mainstream of the automobile network architecture is a spatially distributed regional control architecture, and the future development trend is a control architecture under a central computing platform.
Disclosure of Invention
The application mainly solves the technical problems that: in order to cope with the development trend of the optical fiber communication carried by the automobile, a test system and a test method for carrying out bench simulation verification on the whole automobile network bus communication in the whole automobile research stage are provided.
According to a first aspect, in one embodiment, a test system for on-board ethernet signal transmission of an automobile is provided, including:
the central computer comprises an optical fiber data acquisition unit; the optical fiber data acquisition unit is used for acquiring vehicle-mounted information, wherein the vehicle-mounted information comprises first vehicle-mounted information or second vehicle-mounted information, the first vehicle-mounted information is real vehicle-mounted data, and the second vehicle-mounted information is message simulation vehicle-mounted data;
when the optical fiber data acquisition unit acquires first vehicle-mounted information, the first vehicle-mounted information is displayed in a grouping mode according to the hardware equipment type corresponding to the first vehicle-mounted information;
when the optical fiber data acquisition unit acquires the second vehicle-mounted information, performing functional verification on the second vehicle-mounted information according to a preset response strategy so as to complete the test of the second vehicle-mounted information.
In one embodiment, the test system further includes a plurality of domain controllers, the plurality of domain controllers are connected to an optical fiber data interface through optical fibers, and the optical fiber data interface is disposed on the central computer; the first vehicle-mounted information is first vehicle-mounted optical fiber information.
In one embodiment, the test system further includes a message tool and a fiber optic signal transmission tool, and the second on-board information is second on-board ethernet information;
the message tool is used for acquiring and transmitting the second on-board Ethernet information;
the optical fiber signal transmission tool is used for converting the second on-board Ethernet information into second on-board optical fiber information;
the optical fiber data acquisition unit acquires the second on-vehicle optical fiber information through the optical fiber data interface, and performs functional verification on the second on-vehicle optical fiber information according to a preset response strategy.
In one embodiment, the optical fiber data acquisition unit acquires vehicle-mounted information by using a DMA controller;
at the interrupt mark of the DMA controller, the vehicle-mounted information is transmitted to a DMA buffer area;
the DMA controller acquires a data transmission address and a data transmission length so as to read the data of the vehicle-mounted information according to the data transmission address and the data transmission length;
and after the vehicle-mounted information data is read, the DMA controller executes interruption to complete the acquisition of the vehicle-mounted information.
In one embodiment, the optical fiber data acquisition unit includes a user interaction interface, where the user interaction interface includes a data acquisition module and a data waveform display module, where the data acquisition module is configured to perform data acquisition on the first vehicle information and store the first vehicle information correspondingly according to a set channel; and the data waveform display module extracts and displays the first vehicle-mounted information of the corresponding channel according to the pre-selected signal.
In one embodiment, the optical fiber data acquisition unit includes a hardware layer, a system layer and an application layer, wherein the hardware layer is used for acquiring vehicle-mounted information and transmitting the vehicle-mounted information to the system layer, and the system layer is used for processing the vehicle-mounted information and transmitting the vehicle-mounted information to the application layer for display.
In one embodiment, the fiber optic data interface is a PCIe fiber optic data interface.
According to a second aspect, in one embodiment, a method for testing on-board ethernet signal transmission of an automobile is provided, including:
acquiring vehicle-mounted information by using an optical fiber data acquisition unit in a central computer, wherein the vehicle-mounted information comprises first vehicle-mounted information or second vehicle-mounted information, the first vehicle-mounted information is real vehicle-mounted data, and the second vehicle-mounted information is message simulation vehicle-mounted data;
when the vehicle-mounted information is first vehicle-mounted information, the first vehicle-mounted information is displayed in a grouping mode according to the type of hardware equipment corresponding to the first vehicle-mounted information;
and when the vehicle-mounted information is the second vehicle-mounted information, performing functional verification on the second vehicle-mounted information according to a preset response strategy so as to finish the test of the second vehicle-mounted information.
In one embodiment, the first on-board information is first on-board fiber optic information, and the second on-board information is second on-board ethernet information; and the second on-board Ethernet information is converted into second on-board optical fiber information for functional verification so as to finish the test of the second on-board information.
According to a third aspect, an embodiment provides a computer readable storage medium having stored thereon a program executable by a processor to implement a method of testing on-board ethernet signaling of an automobile as set forth in any one of the embodiments above.
According to the test system and the method for the vehicle-mounted Ethernet signal transmission of the automobile and the computer readable storage medium, the test system comprises a central computer, an optical fiber data acquisition unit is mounted in the central computer, and when the vehicle-mounted information is real vehicle-mounted data, the optical fiber data processing unit carries out grouping display on the real vehicle-mounted data; when the vehicle-mounted information is the message simulation vehicle-mounted data, the optical fiber data processing unit performs function verification on the message simulation vehicle-mounted data according to a preset response strategy. On the basis of the vehicle-mounted information acquired by the original domain controller, the application also utilizes the message to simulate the real vehicle-mounted data, thereby a plurality of data acquisition channels are provided. In addition, the application concentrates the data processing process in the domain controller in the central processing unit, can cope with the development trend of the optical fiber communication carried by the automobile and the evolution trend of the topology architecture of the vehicle-mounted network, and has faster and simpler decision.
Detailed Description
The application will be described in further detail below with reference to the drawings by means of specific embodiments. Wherein like elements in different embodiments are numbered alike in association. In the following embodiments, numerous specific details are set forth in order to provide a better understanding of the present application. However, one skilled in the art will readily recognize that some of the features may be omitted, or replaced by other elements, materials, or methods in different situations. In some instances, related operations of the present application have not been shown or described in the specification in order to avoid obscuring the core portions of the present application, and may be unnecessary to persons skilled in the art from a detailed description of the related operations, which may be presented in the description and general knowledge of one skilled in the art.
Furthermore, the described features, operations, or characteristics of the description may be combined in any suitable manner in various embodiments. Also, various steps or acts in the method descriptions may be interchanged or modified in a manner apparent to those of ordinary skill in the art. Thus, the various orders in the description and drawings are for clarity of description of only certain embodiments, and are not meant to be required orders unless otherwise indicated.
The numbering of the components itself, e.g. "first", "second", etc., is used herein merely to distinguish between the described objects and does not have any sequential or technical meaning. The term "coupled" as used herein includes both direct and indirect coupling (coupling), unless otherwise indicated.
The current mainstream of the automobile network architecture is a spatial distributed area control architecture, and the future development trend is a control architecture under a central computing platform. The main communication mode adopted in the current automobile network is that a high-speed CAN network is used as a backbone network, and a vehicle-mounted Ethernet is adopted between the matched part of ADAS controllers to meet the requirements of high bandwidth, high transmission rate and the like required by auxiliary driving. But in the future, the automobile will be matched with higher-level automatic driving, sensors, cameras and radar, the burden of network communication can be greatly increased, the unshielded copper twisted pair vehicle-mounted Ethernet cannot meet the requirement, and the optical fiber is adopted as a transmission medium of vehicle-mounted Ethernet bus communication, so that the automobile has the advantages of higher bandwidth, lower time delay, more excellent EMC performance, lower cost and the like. Therefore, the application aims to provide a test system and a test method for carrying out bench simulation verification on whole vehicle network bus communication in a whole vehicle research stage in order to cope with the development trend of optical fiber communication carried by a vehicle.
Referring to fig. 1, a physical structure connection block diagram of a test system for transmitting ethernet signals on board an automobile according to the present application is provided, wherein the test system includes a central computer 100 and a plurality of domain controllers 200, which are described in detail below.
In one embodiment, the central computer 100 is equipped with an optical fiber data acquisition unit 110, where the optical fiber data acquisition unit 110 is self-developed PCIe-based high-speed optical fiber data acquisition software, and PCIe is a high-speed serial expansion bus standard, and is used for connecting various devices inside the computer, such as a display card, a network card, a storage device, and the like. The optical fiber data acquisition unit 110 is utilized to acquire vehicle-mounted information, and the vehicle-mounted information is divided into first vehicle-mounted information or second vehicle-mounted information, wherein the first vehicle-mounted information is real vehicle-mounted data, and the second vehicle-mounted information is message simulation vehicle-mounted data. When the optical fiber data acquisition unit 110 acquires the first vehicle-mounted information, the optical fiber data acquisition unit 110 displays the first vehicle-mounted information in a grouping manner according to the type of the hardware device corresponding to the first vehicle-mounted information. When the optical fiber data acquisition unit 110 acquires the second vehicle-mounted information, the optical fiber data acquisition unit 110 performs functional verification on the second vehicle-mounted information according to a preset response strategy, so that the second vehicle-mounted information is tested.
In one embodiment, in the test system, both domain controller 200 and central computer 100 may be pre-replaced by a computer and associated simulation software. For example, the laser radar or the high-definition camera is responsible for acquiring real vehicle-mounted data by the domain controller 200, and can also generate and send application messages according to a defined communication matrix by using computer bus simulation software to generate message simulation vehicle-mounted data. The message simulation vehicle-mounted data is sent to the central computer by using an optical fiber through a TCP protocol or other vehicle-mounted Ethernet transmission protocols, the central computer 100 receives vehicle-mounted information by using a PCIe optical fiber data interface, and the data processing, image processing and data display functions are completed through self-developed PCIe-based high-speed optical fiber data acquisition software.
Referring to fig. 2, which is a flowchart illustrating a first vehicle information test, in one embodiment, the domain controller 200 is connected to the optical fiber data interface 120 through an optical fiber, and the optical fiber data interface 120 is disposed in the central computer 100. The first on-board information obtained in the domain controller 200 is fiber data, that is, the first on-board fiber information. Wherein the fiber optic data interface 120 is a PCIe fiber optic data interface.
Taking radar or camera video data as an example, the first vehicle-mounted optical fiber information is sent to PCIe-based high-speed optical fiber data acquisition software through an optical fiber and PCIe optical fiber data interface, the PCIe-based high-speed optical fiber data acquisition software groups according to hardware equipment of different paths, and then the data are output to an image display window to display the currently acquired radar or camera picture in real time.
Referring to fig. 3, in an embodiment, the second on-board information is ethernet data, that is, the second on-board ethernet information, and in order to detect the second on-board ethernet information, the test system further includes a message tool and an optical fiber signal transmission tool, where the message tool acquires and transmits the second on-board ethernet information, and the optical fiber signal transmission tool converts the second on-board ethernet information into the second on-board optical fiber information. The optical fiber data acquisition unit 100 acquires the second on-vehicle optical fiber information through the PCIe optical fiber data interface, and performs functional verification on the second on-vehicle optical fiber information according to a preset response policy.
Also taking radar or camera video data as an example, the second vehicle-mounted information is generated through message simulation, so that besides the real vehicle-mounted data, the source paths of one path of vehicle-mounted information are also increased, and the domain controller can be omitted. After the second on-board information is generated by the message simulation, the defined communication matrix message is output to the optical fiber signal transmission tool through the message tool (for example, vectorVN5640, which outputs the Ethernet information), and the second on-board Ethernet information is converted into the second on-board optical fiber information by the optical fiber signal transmission tool. Outputting the second vehicle-mounted optical fiber information generated according to the specified protocol stack to the PCIe optical fiber data interface, reading the data of the PCIe optical fiber data interface by the optical fiber data acquisition unit 100 to perform data processing and automatically testing the consistency of message data transmission, namely judging the vehicle-mounted function corresponding to the second vehicle-mounted optical fiber information according to the set response strategy, and if the vehicle-mounted function corresponding to the second vehicle-mounted optical fiber information can respond correspondingly, indicating that the function is complete and normal, thereby achieving the test purpose of vehicle-mounted high-speed optical fiber signal transmission.
Referring to fig. 4, which is a flow chart of DMA data reading, the optical fiber data acquisition unit 100 of the present application includes a DMA controller, and the DMA controller is utilized to acquire vehicle-mounted information. In the whole process, hardware initialization is carried out firstly, after the hardware completes initialization work, an interrupt flag is set, and at the interrupt flag of the DMA controller, vehicle-mounted information is transmitted to a DMA buffer zone (a zone for interacting data with a peripheral device in a memory is called a DMA buffer zone). The data transfer address (including the source address and destination address) and the data transfer length are then written into the base address register, with the read register set high indicating that the DMA read operation is to be initiated. And starting to wait after starting the DMA read operation, and simultaneously starting to control the vehicle-mounted information to be transmitted from the kernel DMA buffer zone to the memory of the central computer 100 by the bottom FPGA. And after the vehicle-mounted information is read, the DMA controller executes an interrupt service awakening waiting event, clears an interrupt mark after the DMA transmission is completed, judges whether the vehicle-mounted information is transmitted completely, if so, the DMA operation is finished, and if not, the next DMA operation is started.
In one embodiment, please refer to fig. 5, which is a frame diagram of a user interface of the optical fiber data acquisition unit, and the user interface is utilized to display data after the data processing performed by the optical fiber data acquisition unit 110. The user interaction interface comprises a data acquisition module 111 and a data waveform display module 112, wherein after channel selection, sampling frequency and file storage setting are carried out in the data acquisition module 111, acquired vehicle-mounted information is stored in a computer hard disk according to a fixed format. The data waveform display module 112 may choose to change the coordinate system such that multiple signals are displayed simultaneously on a split axis, or may compare stored data playback. And in addition, the vehicle-mounted information collected in each channel can be freely selected and displayed in the user interaction interface.
In one embodiment, please refer to fig. 6, which is a general design diagram of an optical fiber data acquisition unit, wherein the general design diagram is divided into 3 levels, a hardware layer acquires vehicle-mounted information and transmits the vehicle-mounted information to a system layer, the system layer processes the vehicle-mounted information and transmits the vehicle-mounted information to an application layer for displaying, the hardware layer mainly comprises a microprocessor, a PCIe data acquisition card and a peripheral terminal interface, the system layer mainly comprises a PCIe data acquisition driver, a built-in file system support package and a Linux kernel, and the application layer mainly develops a man-machine interaction interface application program.
Referring to fig. 7, as another embodiment, the present application further provides a method for testing on-board ethernet signal transmission of an automobile, where the method is applied to a system for testing on-board ethernet signal transmission of an automobile in the above embodiment, and includes the following steps:
step S1: and acquiring vehicle-mounted information by using an optical fiber data acquisition unit in the central computer.
In one embodiment, the vehicle information includes first vehicle information or second vehicle information, where the first vehicle information is real vehicle data and the second vehicle information is message-simulated vehicle data. In the test system, both the domain controller 200 and the central computer 100 may be pre-replaced by a computer and associated simulation software. For example, the laser radar or the high-definition camera is responsible for acquiring real vehicle-mounted data by the domain controller 200, and can also generate and send application messages according to a defined communication matrix by using computer bus simulation software to generate message simulation vehicle-mounted data. The message simulation vehicle-mounted data is sent to the central computer by using an optical fiber through a TCP protocol or other vehicle-mounted Ethernet transmission protocols, the central computer 100 receives vehicle-mounted information by using a PCIe optical fiber data interface, and the data processing, image processing and data display functions are completed through self-developed PCIe-based high-speed optical fiber data acquisition software.
Step S2: and when the vehicle-mounted information is the first vehicle-mounted information, the first vehicle-mounted information is displayed in groups according to the type of the hardware equipment corresponding to the first vehicle-mounted information.
In one embodiment, the first on-board information is also first on-board fiber optic information. Taking radar or camera video data as an example, the first vehicle-mounted optical fiber information is sent to PCIe-based high-speed optical fiber data acquisition software through an optical fiber and PCIe optical fiber data interface, the PCIe-based high-speed optical fiber data acquisition software groups according to hardware equipment of different paths, and then the data are output to an image display window to display the currently acquired radar or camera picture in real time.
Step S3: and when the vehicle-mounted information is the second vehicle-mounted information, performing functional verification on the second vehicle-mounted information according to a preset response strategy so as to finish the test of the second vehicle-mounted information.
In one embodiment, the second on-board information is second on-board ethernet information. In order to detect the second on-board Ethernet information, the test system comprises a message tool and an optical fiber signal transmission tool, wherein the message tool acquires and transmits the second on-board Ethernet information, and the optical fiber signal transmission tool converts the second on-board Ethernet information into second on-board optical fiber information. The optical fiber data acquisition unit acquires second on-vehicle optical fiber information through the PCIe optical fiber data interface, and performs function verification on the second on-vehicle optical fiber information according to a preset response strategy.
According to the test system and the test method for the vehicle-mounted Ethernet signal transmission of the automobile, data processing which is needed to be executed in the domain controller originally is concentrated in the central computer, and the corresponding optical fiber data receiving unit is developed by using the PCIe optical fiber data receiving interface to finish debugging, testing and verifying of vehicle-mounted optical fiber communication, so that the whole research and development period can be shortened.
Those skilled in the art will appreciate that all or part of the functions of the various methods in the above embodiments may be implemented by hardware, or may be implemented by a computer program. When all or part of the functions in the above embodiments are implemented by means of a computer program, the program may be stored in a computer readable storage medium, and the storage medium may include: read-only memory, random access memory, magnetic disk, optical disk, hard disk, etc., and the program is executed by a computer to realize the above-mentioned functions. For example, the program is stored in the memory of the device, and when the program in the memory is executed by the processor, all or part of the functions described above can be realized. In addition, when all or part of the functions in the above embodiments are implemented by means of a computer program, the program may be stored in a storage medium such as a server, another computer, a magnetic disk, an optical disk, a flash disk, or a removable hard disk, and the program in the above embodiments may be implemented by downloading or copying the program into a memory of a local device or updating a version of a system of the local device, and when the program in the memory is executed by a processor.
The foregoing description of the application has been presented for purposes of illustration and description, and is not intended to be limiting. Several simple deductions, modifications or substitutions may also be made by a person skilled in the art to which the application pertains, based on the idea of the application.