Picture recharge test method and device, equipment, storage medium and computer program
By using the software simulated encoding component and the two -layer parallel reposting technology of the preset interface adapter in the picture back irrigation test system, the high cost and inefficient problem of the existing system dependence on hardware rely on hardware, and realized the efficient parallel of the domain controller test.
Patent Information
- Application Number
- CN202411300472.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-18
- Publication Date
- 2025-01-24
AI Technical Summary
Current image recharge testing systems mostly rely on dedicated hardware data transmission modules, which are costly and cannot implement parallel verification tests of domain controllers, and are inefficient in testing, which cannot meet the needs of domain controller production testing.
The software-simulated encoding component is used to encode the picture, and the picture data is forwarded in parallel through the second layer of the preset interface adapter, thus realizing the parallel verification test of the domain controller.
It improves the testing efficiency of domain controllers, reduces testing costs, realizes parallel testing of multiple domain controllers, and meets the needs of production testing.
Smart Images

Figure CN119356276A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, device, equipment, storage medium and computer program for image re-injection testing. Background Art
[0002] In the actual application of autonomous driving technology, ADAS and autonomous driving systems need to be able to accurately identify and respond to various situations during vehicle driving, simulating complex environments in the real world, including changing road conditions, different traffic participants, and unpredictable events. With the rapid development of autonomous driving technology, the market demand for high-performance and high-reliability autonomous driving vehicles is growing. Therefore, the production test process must be efficient enough to ensure that a large number of domain controllers can be verified quickly while maintaining the quality and coverage of the test. The current image re-injection test system mostly relies on dedicated hardware data transmission modules, which are costly and cannot realize parallel verification testing of domain controllers. The test efficiency is low and cannot meet the needs of domain controller production testing. Summary of the invention
[0003] The main purpose of this application is to provide a method, device, equipment, storage medium and computer program for image re-injection testing, aiming to solve the technical problem of how to improve the testing efficiency of a domain controller.
[0004] To achieve the above purpose, the present application proposes a method for image replay testing, the method comprising:
[0005] Obtaining an initial image, and performing format conversion on the initial image to obtain a target format image;
[0006] Encoding the target format picture to obtain a picture data packet;
[0007] The image data packet is sent to the domain controller through a preset interface adapter to complete the image re-injection test, and the preset interface adapter has a preset hardware address.
[0008] In one embodiment, the step of encoding the target format picture to obtain a picture data packet includes:
[0009] Get the timestamp of the target format image;
[0010] encoding the target format picture into a target picture according to the timestamp;
[0011] The target image is packaged into an image data packet.
[0012] In one embodiment, the step of encoding the target format picture into a target picture according to the timestamp includes:
[0013] Arrange the target format pictures in sequence according to the timestamps to obtain a coding sequence;
[0014] Encoding the target format picture according to the encoding order to obtain an encoded picture;
[0015] Verify whether the encoded image satisfies a preset protocol and obtain a verification result;
[0016] When the verification result is that the coded picture does not satisfy the preset protocol, returning to the step of encoding the target format picture according to the encoding order to obtain the coded picture;
[0017] When the verification result is that the encoded picture satisfies the preset protocol, the encoded picture is used as the target picture.
[0018] In one embodiment, the step of sending the image data packet to the domain controller through a preset interface adapter to complete the image re-injection test includes:
[0019] Sending an Ethernet line signal containing the image data packet to a preset interface adapter via an Ethernet line, so that the preset interface adapter converts the Ethernet line signal into a coaxial cable signal;
[0020] The coaxial cable signal is sent to a domain controller corresponding to the preset interface adapter via a coaxial cable to complete the image re-injection test, and different preset interface adapters correspond to different domain controllers.
[0021] In one embodiment, the step of sending the Ethernet line signal containing the image data packet to the preset interface adapter via the Ethernet line so that the preset interface adapter converts the Ethernet line signal into a coaxial cable signal includes:
[0022] Get the preset address of the preset interface adapter;
[0023] Generate an Ethernet line signal containing the picture data packet;
[0024] Based on the preset address, encapsulating the Ethernet line signal in an Ethernet frame;
[0025] The Ethernet frame is sent to the preset interface adapter via an Ethernet line, so that the preset interface adapter converts the Ethernet frame into a coaxial cable signal.
[0026] In one embodiment, the step of obtaining an initial image, converting the format of the initial image, and obtaining a target format image includes:
[0027] Get the initial image in the mobile hard disk;
[0028] The initial image is read into the image format conversion component through a preset controller, so that the image format conversion component converts the image format of the initial image into a preset image format to obtain a target format image.
[0029] In addition, to achieve the above purpose, the present application also proposes a picture replay test device, the device comprising:
[0030] A format conversion module, used to obtain an initial image, and perform format conversion on the initial image to obtain a target format image;
[0031] A picture encoding module, used to encode the target format picture to obtain a picture data packet;
[0032] The data transmission module is used to send the image data packet to the domain controller through a preset interface adapter to complete the image re-injection test, and the preset interface adapter has a preset hardware address.
[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes an image replay test device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the image replay test method described above.
[0034] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the image re-injection test method described above are implemented.
[0035] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the image re-injection test method described above are implemented.
[0036] One or more technical solutions proposed in this application have at least the following technical effects:
[0037] Since a software-simulated encoding component is used to encode the image and the image data is forwarded in parallel on the second layer through a preset interface adapter, the problem that the current image re-injection test system relies mostly on dedicated hardware data transmission modules, is costly and cannot realize parallel verification testing of domain controllers is solved. Compared with the existing technology, the test efficiency of the domain controller is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0040] Figure 1 A schematic diagram of a process flow provided for the first embodiment of the image recharge test method of the present application;
[0041] Figure 2 A schematic diagram of a data flow module of the image re-injection test method provided in the first embodiment of the present application;
[0042] Figure 3 A schematic diagram of the process flow provided for the second embodiment of the image recharge test method of the present application;
[0043] Figure 4 A flow chart of the third embodiment of the image recharge test method of the present application;
[0044] Figure 5 A schematic diagram of a data layer 2 forwarding module of the image re-injection test method provided in Embodiment 3 of the present application;
[0045] Figure 6 A schematic diagram of a flow chart provided for the fourth embodiment of the image recharge test method of the present application;
[0046] Figure 7 This is a schematic diagram of the module structure of the image recharge test device according to an embodiment of the present application;
[0047] Figure 8 Schematic diagram of the device structure of the hardware operating environment involved in the image re-injection test method in the embodiment of the present application.
[0048] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0049] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0050] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0051] The main solution of the embodiment of the present application is: obtain an initial image, convert the format of the initial image to obtain a target format image; encode the target format image to obtain a picture data packet; send the picture data packet to the domain controller through a preset interface adapter to complete the picture re-injection test, and the preset interface adapter has a preset hardware address.
[0052] In this embodiment, for the convenience of description, the following description is made by taking the internal actuator of the image recharge test system as the execution subject.
[0053] Since the existing image re-injection test system mostly relies on a dedicated hardware data transmission module, the cost is high and the parallel verification test of the domain controller cannot be implemented.
[0054] The present application provides a solution, which uses a software-simulated encoding component to encode images, and forwards image data in parallel through a preset interface adapter at Layer 2, thereby improving the testing efficiency of the domain controller.
[0055] It can be seen from the above embodiments that the present application adopts a software-simulated encoding component to encode images and forwards image data in parallel through a preset interface adapter at the second layer, thereby solving the problem that the current image re-injection test system mostly relies on dedicated hardware data transmission modules, is costly and cannot realize parallel verification testing of domain controllers, thereby improving the testing efficiency of domain controllers.
[0056] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, etc. The following takes the internal actuator of the image recharge test system as an example to illustrate this embodiment and the following embodiments.
[0057] Based on this, the present application embodiment provides a method for testing image re-entry. Figure 1 , Figure 1 This is a flow chart of the first embodiment of the image re-injection testing method of the present application.
[0058] In this embodiment, the image replay test method includes steps S10 to S30:
[0059] Step S10, obtaining an initial picture, and performing format conversion on the initial picture to obtain a target format picture.
[0060] It should be noted that the initial image is a single-frame image in JPEG format captured by the camera during the actual vehicle verification of the autonomous driving or assisted driving software domain controller, and the target format image is a RAW format image.
[0061] In addition, it should be noted that JPEG (Joint Photographic Experts Group) is a widely used image file format, mainly used to store static color or black and white pictures. The RAW format is an image file format that saves the unprocessed image data captured by the camera sensor, providing more complete information, allowing greater flexibility and higher image quality in post-processing. A single-frame picture refers to a static image and does not contain multiple frames in any animation or video sequence.
[0062] Step S20, encoding the target format picture to obtain a picture data packet.
[0063] The GMSL2 encoding component is constructed through software simulation, and the RAW format images obtained after format conversion are encoded into images that meet the GMSL2 protocol and packaged into image data packets.
[0064] It should be noted that GMSL2 (Gigabit Multimedia Serial Link 2) is a high-speed serial interface protocol, mainly used in video applications in the automotive industry, such as entertainment systems and advanced driver assistance systems (ADAS). GMSL2 is an upgraded version of GMSL1, providing higher data transmission rates and improved performance.
[0065] Step S30, sending the picture data packet to the domain controller through a preset interface adapter to complete the picture re-injection test, wherein the preset interface adapter has a preset hardware address.
[0066] It should be noted that the preset interface adapter is the FAKRA interface adapter. The domain controller (DC) is a server in a computer network system. It is responsible for managing and maintaining user accounts, passwords, security policies, computer accounts and other security-related information in the network. The domain controller in the field of autonomous driving testing is the core component for realizing autonomous driving functions. It is responsible for processing data from various vehicle sensors, executing autonomous driving algorithms, and controlling the driving of the vehicle. The preset hardware address is the MAC address.
[0067] In addition, it should be noted that the FAKRA interface adapter is a radio frequency (RF) connector used in automotive electronic systems. It is mainly used to transmit high-speed data and video signals. It can operate stably in the harsh environment inside the vehicle, can withstand a wide temperature range and resist electromagnetic interference. The MAC address is called the Media Access Control address (Media Access Control address). It is a unique identifier for each device in the network. It is usually burned into the hardware of network devices, such as network cards, routers, switches, smartphones, tablets, etc., and is used to communicate at the data link layer. The FAKRA interface adapter with a MAC address can connect a 10 Gigabit Ethernet switch between a server and multiple FAKRA interface adapters.
[0068] Reference Figure 2 , Figure 2 A data flow module schematic diagram of an image re-injection test method is provided, including: a mobile hard disk, a server, a FAKRA interface adapter, and an autonomous driving domain controller. The server includes a DMA controller and a GMSL2 encoding component.
[0069] This embodiment provides an image re-injection test method, which uses a software-simulated encoding component to encode images, and forwards image data in parallel through a preset interface adapter at Layer 2. This solves the problem that the current image re-injection test system mostly relies on dedicated hardware data transmission modules, is costly and cannot implement parallel verification testing of domain controllers, thereby improving the testing efficiency of domain controllers.
[0070] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 3 , step S20 includes steps S21 to S23:
[0071] Step S21, obtaining the timestamp of the target format picture.
[0072] It should be noted that a timestamp is an integer value used to represent a specific point in time. It usually takes a specific point in time as the starting point and calculates the number of seconds or milliseconds from the starting point to the specific point in time. The timestamp in an image file refers to the date and time information related to the creation, modification or processing of the image.
[0073] Step S22: Encode the target format picture into a target picture according to the timestamp.
[0074] According to the timestamp of the acquired image, the target format image is encoded in sequence into a target image that meets the GMSL2 protocol through the GMSL2 encoding component.
[0075] It should be noted that meeting the GMSL2 protocol refers to whether the image can be transmitted through a system that meets the GMSL2 protocol.
[0076] In a feasible implementation, step S22 may include steps S201 to S205:
[0077] Step S201, arranging the target format pictures in sequence according to the timestamps to obtain a coding sequence.
[0078] Arrange the target format pictures in order according to the timestamps, and the pictures with earlier creation times have earlier encoding orders, and so on, to obtain the encoding order of the pictures.
[0079] Step S202: Encode the target format picture according to the encoding order to obtain an encoded picture.
[0080] According to the encoding order of the pictures, the pictures are encoded in sequence through the GMSL2 encoding component, so that the pictures can be transmitted through a system that meets the GMSL2 protocol. The encoded pictures are called encoded pictures.
[0081] Step S203, verifying whether the encoded image meets the preset protocol and obtaining a verification result.
[0082] Verify whether the encoded image meets the preset protocol, that is, verify whether the image can be transmitted through the GMSL2 system. It is necessary to ensure that the image data format, data rate, and system configuration meet the requirements of the GMSL2 protocol. The image data format needs to be compatible with the GMSL2 system, that is, the image needs to be in an uncompressed image file format, the image transmission data volume is within the bandwidth range of the GMSL2 link, and the system configuration needs to be a GMSL2 link.
[0083] When any of the image data format, data rate, and system configuration does not meet the requirements of the GMSL2 protocol, the verification result is that the encoded image does not meet the preset protocol. When the image data format, data rate, and system configuration all meet the requirements of the GMSL2 protocol, the verification result is that the encoded image meets the preset protocol.
[0084] Step S204, when the verification result is that the encoded picture does not satisfy the preset protocol, return to the step of encoding the target format picture according to the encoding order to obtain the encoded picture.
[0085] When the verification result is that the encoded image does not meet the preset protocol, the process of encoding the image is returned, and the image is re-encoded and verified.
[0086] Step S205: When the verification result is that the encoded picture satisfies the preset protocol, the encoded picture is used as a target picture.
[0087] When the verification result is that the encoded image meets the preset protocol, the image verification process is completed and the encoded image is used as the target image.
[0088] The image is encoded and verified through the GMSL2 encoding component simulated by software to obtain an image that meets the GMSL2 protocol, reducing the complexity of image data re-injection.
[0089] Step S23, packing the target image into an image data packet.
[0090] It should be noted that packaging the images into data packets means dividing the binary data of the image files into small blocks and encapsulating them.
[0091] This embodiment provides a method for testing image re-injection, which obtains the timestamp of the target format image; encodes the target format image into a target image according to the timestamp; and packages the target image into an image data packet, thereby reducing the complexity and cost of image data re-injection.
[0092] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 4 , step S30 includes steps S31-S32:
[0093] Step S31, sending an Ethernet line signal containing the image data packet to a preset interface adapter via an Ethernet line, so that the preset interface adapter converts the Ethernet line signal into a coaxial cable signal.
[0094] It should be noted that Ethernet cable, also known as Ethernet cable, is a physical transmission medium used to connect Ethernet devices (such as computers, printers, switches, routers, etc.). It follows the IEEE 802.3 standard and is used to transmit data. Ethernet cable signal refers to the electrical signal transmitted through the Ethernet cable, which is usually a digital signal and follows specific encoding rules. Coaxial cable signal refers to the electrical signal transmitted through the coaxial cable.
[0095] The FAKRA interface adapter can convert electrical signals transmitted through Ethernet cables into electrical signals transmitted through coaxial cables. During the signal conversion process, the FAKRA adapter first receives electrical signals from the Ethernet cable through its input port. The circuit inside the adapter processes these signals to ensure that they can adapt to the transmission characteristics of the coaxial cable. The processing process includes decoding, re-encoding or re-timing of the signal, and then converting the processed signal into a format suitable for transmission on the coaxial cable. The converted signal is output through the FAKRA interface of the adapter for transmission on the coaxial cable. The output port of the FAKRA interface adapter is a standard FAKRA interface, which means it can be seamlessly connected with other devices that comply with the FAKRA standard.
[0096] In a feasible implementation, step S31 may include steps S301 to S304:
[0097] Step S301, obtaining a preset address of a preset interface adapter.
[0098] Get the MAC address of the FAKRA interface adapter, which is used by the server to send image data packets to the FAKRA interface adapter through the Ethernet cable.
[0099] Step S302, generating an Ethernet line signal including the image data packet.
[0100] Generate an electrical signal that can be transmitted through the Ethernet line, convert the picture data packet into binary form, and use a specific encoding scheme (such as Manchester encoding, non-return-to-zero encoding, differential encoding, etc.) to map the binary data to the electrical signal.
[0101] Step S303: encapsulate the Ethernet line signal in an Ethernet frame based on the preset address.
[0102] It should be noted that the Ethernet frame is the encapsulation unit of the data link layer, which is used to transmit data on the Ethernet. It includes a series of fields, each of which has a specific function. The structure of the Ethernet frame includes the frame start flag (Preamble), the start frame delimiter (SFD), the destination MAC address, the source MAC address, the type / length field, the data load (Payload) and the frame check sequence (FCS).
[0103] The data link layer of the server encapsulates the Ethernet line signal in an Ethernet frame, wherein based on the MAC address of the FAKRA interface adapter, the server can fill in the MAC address of the FAKRA interface adapter in the destination MAC address field of the frame to ensure the uniqueness of the signal transmission address.
[0104] Step S304: sending the Ethernet frame to the preset interface adapter via the Ethernet cable, so that the preset interface adapter converts the Ethernet frame into a coaxial cable signal.
[0105] The FAKRA interface adapter with a MAC address can be connected to a 10G switch to forward the data packets output by the GMSL2 encoding component at Layer 2. The 10G switch receives the Ethernet frame containing the image data packet sent by the server, and sends the Ethernet frame to the corresponding FAKRA interface adapter through the Ethernet cable, so that the FAKRA interface adapter converts the electrical signal transmitted through the Ethernet cable into an electrical signal transmitted through the coaxial cable.
[0106] It should be noted that Layer 2 forwarding refers to the packet forwarding process performed at the data link layer of the network (i.e., the second layer of the OSI model). This layer mainly handles the transmission of frames, rather than the packets processed by the network layer (the third layer of the OSI model). Layer 2 forwarding is usually performed by a switch, which uses the destination MAC address in the received frame to decide how to forward the frame to the corresponding destination. The 10 Gigabit switch has multiple ports, each of which can be connected to a FAKRA interface adapter, allowing data to be efficiently converted and transmitted between Ethernet and FAKRA interfaces, while providing network management and optimization functions.
[0107] Reference Figure 5 , Figure 5 A schematic diagram of a layer 2 data forwarding module of an image re-injection test method is provided, including: a mobile hard disk, a server, a 10 Gigabit switch, a FAKRA interface adapter, and an autonomous driving domain controller. The server includes a DMA controller and a GMSL2 encoding component.
[0108] Data is transmitted through a FAKRA interface adapter with a MAC address to implement Layer 2 forwarding and re-injection of image data packets.
[0109] Step S32, sending the coaxial cable signal to the domain controller corresponding to the preset interface adapter via a coaxial cable to complete the image replay test, and different preset interface adapters correspond to different domain controllers.
[0110] It should be noted that coaxial cable is an electrical transmission line, which is mainly used for the transmission of radio frequency signals. The FAKRA interface is usually used to connect a single transmitter (such as a camera) and a single receiver (such as a domain controller). Different FAKRA interface adapters correspond to different connected domain controllers.
[0111] The Ethernet line signal is converted into a coaxial cable signal through the FAKRA interface adapter, and then sent to the corresponding domain controller via the coaxial cable, so that the domain controller can complete the image re-injection test. Different FAKRA interface adapters correspond to different domain controllers, so multiple domain controllers can obtain re-injection data in parallel.
[0112] The present embodiment provides a method for testing image re-injection, which includes sending an Ethernet line signal containing the image data packet to a preset interface adapter via an Ethernet cable, so that the preset interface adapter converts the Ethernet line signal into a coaxial cable signal; sending the coaxial cable signal to a domain controller corresponding to the preset interface adapter via a coaxial cable to complete the image re-injection test, where different preset interface adapters correspond to different domain controllers, thereby realizing Layer 2 forwarding of re-injected image data packets and multiple domain controllers obtaining re-injected data in parallel, thereby improving the testing efficiency of the domain controller.
[0113] Based on the first embodiment of the present application, in the fourth embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. Figure 6 , step S10 includes steps S11 to S12:
[0114] Step S11, obtaining the initial image in the mobile hard disk.
[0115] It should be noted that a mobile hard disk is a portable external storage device that uses hard disk drive (HDD) or solid-state drive (SSD) technology to store data and is connected to a computer or other devices via USB or other interfaces (such as Thunderbolt, eSATA, etc.).
[0116] The vehicle collects single-frame images in JPEG format through the camera and stores them in a mobile hard disk. The mobile hard disk is mounted on the server so that the server can read the data in the mobile hard disk.
[0117] Step S12, reading the initial image into the image format conversion component through a preset controller, so that the image format conversion component converts the image format of the initial image into a preset image format to obtain a target format image.
[0118] It should be noted that the preset controller is a DMA controller. The DMA (Direct Memory Access) controller is a hardware device that allows certain hardware subsystems to directly access the system memory without going through the central processing unit (CPU). Its main function is to accelerate data transmission, reduce the burden on the CPU, and improve the overall performance of the system. The image format conversion component refers to a software or hardware tool that can convert an image from one file format to another. The conversion process usually reads the data of the original image file, decodes it and re-encodes it into a new format. The preset image format is the RAW format.
[0119] This embodiment provides a method for image replay testing, which obtains an initial image in a mobile hard disk; reads the initial image to an image format conversion component through a preset controller, so that the image format conversion component converts the image format of the initial image into a preset image format, and obtains a target format image, thereby providing a format basis for subsequent encoding of the image.
[0120] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the image re-injection test method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0121] This application also provides a picture re-injection test device, please refer to Figure 7 , the device comprises:
[0122] The format conversion module 10 is used to obtain an initial image, and perform format conversion on the initial image to obtain a target format image.
[0123] The picture encoding module 20 is used to encode the target format picture to obtain a picture data packet.
[0124] The data transmission module 30 is used to send the image data packet to the domain controller through a preset interface adapter to complete the image re-injection test, and the preset interface adapter has a preset hardware address.
[0125] In one embodiment, the picture encoding module 20 is further used to obtain the timestamp of the target format picture; encode the target format picture into a target picture according to the timestamp; and pack the target picture into a picture data packet.
[0126] In one embodiment, the picture encoding module 20 is also used to arrange the target format pictures in sequence according to the timestamps to obtain a coding order; encode the target format pictures according to the coding order to obtain a coded picture; verify whether the coded picture satisfies a preset protocol to obtain a verification result; when the verification result is that the coded picture does not satisfy the preset protocol, return to the step of encoding the target format picture according to the coding order to obtain a coded picture; when the verification result is that the coded picture satisfies the preset protocol, use the coded picture as the target picture.
[0127] In one embodiment, the data transmission module 30 is also used to send an Ethernet line signal containing the image data packet to a preset interface adapter via an Ethernet cable, so that the preset interface adapter converts the Ethernet line signal into a coaxial cable signal; and send the coaxial cable signal to a domain controller corresponding to the preset interface adapter via a coaxial cable to complete the image re-injection test, and different preset interface adapters correspond to different domain controllers.
[0128] In one embodiment, the data transmission module 30 is also used to obtain a preset address of a preset interface adapter; generate an Ethernet line signal containing the image data packet; based on the preset address, encapsulate the Ethernet line signal in an Ethernet frame; and send the Ethernet frame to the preset interface adapter via an Ethernet line, so that the preset interface adapter converts the Ethernet frame into a coaxial cable signal.
[0129] In one embodiment, the format conversion module 10 is also used to obtain an initial picture in a mobile hard disk; read the initial picture to a picture format conversion component through a preset controller, so that the picture format conversion component converts the picture format of the initial picture into a preset picture format to obtain a target format picture.
[0130] The image re-injection test device provided by the present application adopts the image re-injection test method in the above embodiment, which can solve the technical problem of how to improve the test efficiency of the domain controller. Compared with the prior art, the beneficial effects of the image re-injection test device provided by the present application are the same as the beneficial effects of the image re-injection test method provided by the above embodiment, and other technical features in the image re-injection test device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0131] The present application provides an image replay test device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the image replay test method in the above-mentioned embodiment 1.
[0132] Reference below Figure 8 , which shows a schematic diagram of the structure of a picture replay test device suitable for implementing the embodiment of the present application. The picture replay test device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The image recharge test device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0133] like Figure 8 As shown, the image recharge test device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the xxx device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the image re-injection test device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an image re-injection test device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0134] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0135] The image re-injection test device provided by the present application adopts the image re-injection test method in the above embodiment, which can solve the technical problem of how to improve the test efficiency of the domain controller. Compared with the prior art, the beneficial effects of the image re-injection test device provided by the present application are the same as the beneficial effects of the image re-injection test method provided by the above embodiment, and the other technical features in the image re-injection test device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0136] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0137] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0138] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the image replay test method in the above-mentioned embodiment.
[0139] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0140] The computer-readable storage medium may be included in the image replay test device; or may exist independently without being assembled into the image replay test device.
[0141] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the image re-injection test device, the image re-injection test device: obtains an initial image, performs format conversion on the initial image to obtain a target format image; encodes the target format image to obtain an image data packet; and sends the image data packet to a domain controller through a preset interface adapter to complete the image re-injection test, wherein the preset interface adapter has a preset hardware address.
[0142] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0143] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0144] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0145] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned image re-injection test method, and can solve the technical problem of how to improve the test efficiency of the domain controller. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the image re-injection test method provided by the above-mentioned embodiment, and will not be repeated here.
[0146] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned image replay test method when executed by a processor.
[0147] The computer program product provided by this application can solve the technical problem of how to improve the testing efficiency of the domain controller. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the image re-injection testing method provided by the above embodiment, which will not be repeated here.
[0148] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for testing image re-entry, characterized in that: The method comprises: Obtaining an initial image, and performing format conversion on the initial image to obtain a target format image; Encoding the target format picture to obtain a picture data packet; The image data packet is sent to the domain controller through a preset interface adapter to complete the image re-injection test, and the preset interface adapter has a preset hardware address.
2. The method according to claim 1, characterized in that The step of encoding the target format picture to obtain a picture data packet comprises: Get the timestamp of the target format image; encoding the target format picture into a target picture according to the timestamp; The target image is packaged into an image data packet.
3. The method according to claim 2, characterized in that The step of encoding the target format picture into a target picture according to the timestamp comprises: Arrange the target format pictures in sequence according to the timestamps to obtain a coding sequence; Encoding the target format picture according to the encoding order to obtain an encoded picture; Verify whether the encoded image satisfies a preset protocol and obtain a verification result; When the verification result is that the coded picture does not satisfy the preset protocol, returning to the step of encoding the target format picture according to the encoding order to obtain the coded picture; When the verification result is that the encoded picture satisfies the preset protocol, the encoded picture is used as the target picture.
4. The method according to claim 1, characterized in that The step of sending the image data packet to the domain controller through the preset interface adapter to complete the image re-injection test includes: Sending an Ethernet line signal containing the image data packet to a preset interface adapter via an Ethernet line, so that the preset interface adapter converts the Ethernet line signal into a coaxial cable signal; The coaxial cable signal is sent to a domain controller corresponding to the preset interface adapter via a coaxial cable to complete the image re-injection test, and different preset interface adapters correspond to different domain controllers.
5. The method according to claim 4, characterized in that The step of sending the Ethernet line signal containing the image data packet to the preset interface adapter via the Ethernet line so that the preset interface adapter converts the Ethernet line signal into a coaxial cable signal comprises: Get the preset address of the preset interface adapter; Generate an Ethernet line signal containing the picture data packet; Based on the preset address, encapsulating the Ethernet line signal in an Ethernet frame; The Ethernet frame is sent to the preset interface adapter via an Ethernet line, so that the preset interface adapter converts the Ethernet frame into a coaxial cable signal.
6. The method according to claim 1, characterized in that The steps of obtaining an initial image, converting the format of the initial image, and obtaining a target format image include: Get the initial image in the mobile hard disk; The initial image is read into the image format conversion component through a preset controller, so that the image format conversion component converts the image format of the initial image into a preset image format to obtain a target format image.
7. A picture re-entry test device, characterized in that: The device comprises: A format conversion module, used to obtain an initial image, and perform format conversion on the initial image to obtain a target format image; A picture encoding module, used to encode the target format picture to obtain a picture data packet; The data transmission module is used to send the image data packet to the domain controller through a preset interface adapter to complete the image re-injection test, and the preset interface adapter has a preset hardware address.
8. An image re-entry test device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the image replay test method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the image replay test method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the image replay test method according to any one of claims 1 to 6 are implemented.