Vehicle-mounted visual controller test method and device, computer terminal and storage medium

By establishing a connection between the host computer and the on-board vision controller, using automated test scripts to obtain video data streams and generate test result documents, the high cost and error problems of RTSP stability verification of the on-board vision controller are solved, and the effects of automated testing and simplified testing tools are achieved.

CN114996161BActive Publication Date: 2025-10-17BEI DOU ZHI LIAN KE JI YOU XIAN GONG SI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210816936.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-12
Publication Date
2025-10-17
Estimated Expiration
2042-07-12

AI Technical Summary

Technical Problem

In the existing technology, the RTSP stability verification of the vehicle-mounted vision controller requires manual visual verification, which leads to high testing costs and is prone to errors, and there is a lack of matching counterparts.

Method used

By establishing a connection between the host computer and the on-board vision controller, an automated test script is used to start the video player to obtain the video data stream, record the test data, generate a test result document, and automatically determine the real-time streaming stability of the on-board vision controller.

Benefits of technology

It realizes the automated testing of vehicle-mounted vision controllers, reduces testing costs and human errors, simplifies testing tools, reduces dependence on hardware, automatically generates test logs, and improves testing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114996161B_ABST
    Figure CN114996161B_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a kind of vehicle-mounted visual controller test method, device, computer terminal and storage medium, the method comprises: the connection of host computer and vehicle-mounted visual controller is established;Video player in host computer is started by automatic test script, to make the video player access the vehicle-mounted visual controller to obtain video data stream, and record the test data returned;According to the test data, generate test result document, according to the test result document, the real-time streaming stability of the vehicle-mounted visual controller is obtained.Make that, when testing, it is not necessary to match the countermeasure article, by adapting to the environment to host computer, the effect of simplifying test tool can be achieved, so that the whole test is more automated and simple.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of testing, in particular to a vehicle-mounted visual controller testing method and device, a computer terminal and a storage medium. BACKGROUND

[0002] With the increasing development of intelligent networked vehicles, the number of vehicle-mounted ECUs (Electronic Control Units) is increasing, and domain controllers have emerged to manage and control the ECUs on the vehicle. Various types of ECUs directly communicate with the domain controller through Ethernet, USB, and CAN. When the vehicle-mounted visual controller (cvbox) and the vehicle machine (also known as the domain controller) communicate through USB, how to verify the stability of the RTSP (Real-Time Streaming Protocol) at the cvbox end is needed. The original method is to connect the cvbox and the vehicle machine through a USB cable, manually open / close the "camera" application repeatedly, and visually verify the stability of the picture transmission to confirm the RTSP stability. The vehicle machine and the vehicle machine screen in the project are the opponent pieces of the project test machine, which are relatively scarce, increasing the testing cost, and prone to errors by human visual inspection. SUMMARY

[0003] In a first aspect, the present application provides a vehicle-mounted visual controller testing method, comprising:

[0004] establishing a connection between a host computer and a vehicle-mounted visual controller;

[0005] starting a video player in the host computer through an automated test script, so that the video player accesses the vehicle-mounted visual controller to obtain a video data stream, and records the returned test data;

[0006] generating a test result document according to the test data, and deriving the real-time streaming stability of the vehicle-mounted visual controller according to the test result document.

[0007] Further, the video player accessing the vehicle-mounted visual controller to obtain a video data stream and recording the returned test data comprises:

[0008] accessing the address of the camera of the vehicle-mounted visual controller through the video player, and establishing a data connection to obtain the state parameters of the corresponding camera;

[0009] using the state parameters as the test data.

[0010] Further, the state parameters include connection success, connection failure, connection time, connection duration, camera address, and error parameters corresponding to the camera that failed to connect.

[0011] The generation of the test result document according to the test data comprises:

[0012] The state parameters are stored in a document, and the number of connection failures and the number of connection successes are recorded accordingly according to the camera address.

[0013] Furthermore, the stability of the vehicle-mounted vision controller is determined based on the test result document, including:

[0014] Obtain the number of connection failures in the test result document, and obtain the connection failure rate of this test based on the total number of connections and the number of failures;

[0015] If the connection failure rate exceeds a preset value, it is determined that the vehicle-mounted vision controller is unstable.

[0016] Furthermore, the video player includes a VLC player.

[0017] Furthermore, starting the video player in the host computer through the automated test script includes:

[0018] The number of startups and the cycle period in the automated test script are read, and the video player is periodically started according to the cycle period and the number of startups.

[0019] Furthermore, the cycle period ranges from 2 seconds to 5 seconds;

[0020] The number of startup times is set according to the hardware model of the vehicle-mounted vision controller.

[0021] In a second aspect, the embodiments of the present application further provide a vehicle-mounted vision controller testing device, comprising:

[0022] Connection module, used to establish a connection between the host computer and the vehicle vision controller;

[0023] A test module is used to start a video player in a host computer through an automated test script, so that the video player accesses the vehicle-mounted vision controller to obtain a video data stream and record the returned test data;

[0024] The analysis module is used to generate a test result document based on the test data, and to obtain the real-time streaming stability of the vehicle-mounted vision controller based on the test result document.

[0025] In a third aspect, the present application also provides a computer terminal comprising a processor and a memory, wherein the memory stores a computer program, and when the computer program runs on the processor, the vehicle-mounted vision controller testing method is executed.

[0026] In a fourth aspect, the present application also provides a readable storage medium, which stores a computer program, and the computer program executes the vehicle-mounted visual controller testing method when running on a processor.

[0027] The embodiment of the present application discloses a vehicle-mounted visual controller testing method, device, computer terminal and storage medium, and the method comprises the following steps: establishing the connection between the upper computer and the vehicle-mounted visual controller; starting the video player in the upper computer through the automatic test script, so that the video player accesses the vehicle-mounted visual controller to obtain the video data stream, and records the returned test data; generating a test result document according to the test data, and obtaining the real-time streaming stability of the vehicle-mounted visual controller according to the test result document. When testing, no matching opponent is needed, and the test tool can be simplified by adapting the environment of the upper computer, so that the whole test is more automatic and simple, the pressure and test cost of the test personnel are reduced, the connection lines needed during testing are also reduced, and logs are automatically generated, so that the test personnel can simply understand the key data in the test. BRIEF DESCRIPTION OF DRAWINGS

[0028] In order to more clearly illustrate the technical solutions of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and should not be regarded as limiting the scope of protection of the present application. In each drawing, similar components are marked with similar reference numerals.

[0029] Figure 1 An existing vehicle-mounted visual controller testing framework is shown;

[0030] Figure 2 A vehicle-mounted visual controller testing framework of the present application is shown;

[0031] Figure 3 A vehicle-mounted visual controller testing method flowchart of the embodiment of the present application is shown;

[0032] Figure 4 A vehicle-mounted visual controller testing device structure diagram of the embodiment of the present application is shown. DETAILED DESCRIPTION

[0033] The technical solutions in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all the embodiments.

[0034] The components of the embodiments of the present application described and illustrated herein can be arranged and designed in a wide variety of different configurations. Therefore, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, but is merely representative of selected embodiments of the application. All other embodiments not explicitly described or shown herein are intended to be within the scope of the present application.

[0035] Hereinafter, the terms "include", "have", and their conjugates, as used in various embodiments of the present application, merely indicate the presence of the features, numbers, steps, operations, elements, components, or combinations thereof, and do not preclude the presence or addition of one or more other features, numbers, steps, operations, elements, components, or combinations thereof.

[0036] In addition, the terms "first", "second", "third", and the like, are used herein merely to distinguish one element from another, and do not imply or suggest relative importance.

[0037] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present application belong. The terms, such as those defined in a generally used dictionary, are to be interpreted as having a meaning that is the same as or similar to the meaning in the context of relevant technology and will not be interpreted as having an ideal or excessively formal meaning unless clearly defined in various embodiments of the present application.

[0038] As Figure 1 shown, when testing the existing vehicle-mounted visual controller, it needs to be connected with the car screen of the car machine, communicate through the car machine, receive video signals from each camera on the car machine, and display on the car screen. At the same time, the vehicle-mounted visual controller will also be connected with the debugging tool through the serial port, and the tester will send instructions on the debugging tool to control the test process, and then visually judge the video results displayed on the car screen. The auxiliary tools required for the whole test are complicated, and the test results are determined by the human eye, and the results are not reliable.

[0039] The vehicle-mounted visual controller test interface framework of the present application is shown in Figure 2 by configuring the environment of the upper computer, and then using the multimedia player loaded in the upper computer to acquire the video stream data of each camera in the vehicle-mounted visual controller, which replaces Figure 1The vehicle machine and the vehicle machine screen in the vehicle machine and vehicle machine screen, and the whole test process is controlled by using a script, without connecting a serial port, and the test result document can be automatically generated, so that the whole test is automated, the hardware used for testing is saved, and the testing cost is saved.

[0040] Next, the technical solutions of the application will be described in specific embodiments.

[0041] Embodiment 1

[0042] As shown in the figure, the vehicle-mounted visual controller test method of the application includes the following steps: Figure 3

[0043] Step S100, establishing the connection between the host computer and the vehicle-mounted visual controller.

[0044] The vehicle-mounted visual controller is used for intelligent cabin full-scene, covering the driver monitoring system, rear blind area monitoring system, passenger monitoring system, visual interaction system and the like. Therefore, the vehicle-mounted visual controller needs to receive and process the video data of multiple cameras connected thereto, and needs to provide a real-time data stream with high enough quality to ensure the real-time and effectiveness of the data. For example, for the driver monitoring system, the state of the driver needs to be monitored in real time to determine whether the driver is driving in a normal state, so real-time video information needs to be obtained for background analysis and operation.

[0045] Therefore, the stability of the RTSP real-time data stream of the vehicle-mounted visual controller needs to be tested.

[0046] The application connects the host computer and the vehicle-mounted visual controller, establishes a network connection between the host computer and the vehicle-mounted visual controller, and realizes that the host computer can obtain the real-time data stream in the vehicle-mounted visual controller.

[0047] In the application, the host computer is taken as an example of a PC, and the PC and the vehicle-mounted visual controller are connected through a network port, that is, a simple local area network is established between the host computer and the vehicle-mounted visual controller, and the host computer can be considered as the master and the vehicle-mounted visual controller as the extension in the subnet.

[0048] In order to ensure the test environment, the host computer is equipped with a virtual machine of Ubuntu, so as to provide a pure test environment and simulate the actual running environment as much as possible.

[0049] ​The network segment of the gateway connected by the PC and the vehicle-mounted visual controller is set to the same network segment, so that the network connection of the PC and the vehicle-mounted visual controller is realized. The connection mode can be connected through the USB network card and the PC USB interface, and then connected through the matching data line, the network port and the vehicle-mounted visual controller, to form a local area network. The network interface of the vehicle-mounted visual controller can also be directly connected to the network card integrated with the PC through a network cable, to form a local area network.

[0050] After the connection is successful, the host computer can obtain the video data captured by the camera connected to the vehicle-mounted visual controller by accessing the address, so as to simulate the working environment of the vehicle-mounted visual controller in actual work.

[0051] In step S200, the video player in the host computer is started through an automatic test script, so that the video player accesses the vehicle-mounted visual controller to obtain a video data stream, and records the returned test data.

[0052] The automatic test script is written to realize the automatic test of the vehicle-mounted visual controller. The script runs in the Ubuntu virtual machine described above. The script can be a script written in shall language. Different scripts are selected for testing according to the test content and the test equipment. For example, stress test, compatibility test, delay test, coverage test, etc. The stability of the vehicle-mounted visual controller is determined through different test methods.

[0053] The script starts the video player in the host computer according to a certain logic, accesses the camera address of the vehicle-mounted visual controller through the video player, and establishes a communication connection with the camera. In this way, the image video data captured by each camera in the vehicle-mounted visual controller is transmitted to the video player and displayed in the video player. The state parameters of the corresponding camera can be obtained, which can reflect whether the real-time data stream transmission of the vehicle-mounted visual controller is stable. Therefore, these data are saved as test data for the generation of the test result document.

[0054] In an optional solution, the video player can be a VLC multimedia player, and the vehicle-mounted visual controller can be equipped with multiple cameras, such as six cameras, and then multiple VLC multimedia players can be opened to access the addresses of the six cameras respectively to obtain the real-time data streams of the cameras. Since the real-time data streams transmitted by the cameras to the host computer are transmitted through the vehicle-mounted visual controller and completely follow the program logic inserted in the visual controller, the connection success or failure, connection rate, delay, connection time, connection duration and other state parameters can be obtained by searching for keywords, and these parameters can be used as test data to determine whether the vehicle-mounted visual controller is stable after the test.

[0055] For example, in a stress test, the number of accesses to the cameras can be set to multiple times, and the cycle period of each access can be set. According to the cycle period and the number of starts, the video player is started periodically to frequently connect to the cameras.

[0056] In a feasible embodiment, the number of accesses can be set to 100, and the cycle period can be set to 5 seconds. Then, the video player accesses the cameras every 5 seconds for a total of 100 times. Taking a vehicle-mounted visual controller with six cameras as an example, the addresses of the six cameras are accessed in the above manner, 100 times for each camera and 5 seconds for each access interval. By adjusting the cycle period, the access frequency during the test can be adjusted to adjust the access pressure, and then the pressure limit can be measured.

[0057] The state parameters include connection success, connection failure, connection time, connection duration, camera address and error parameters corresponding to the camera that fails to connect.

[0058] The connection success means that the video player obtains the data of the camera, and the connection failure means that the data transmitted by the camera cannot be obtained, which can be due to a timeout or a completely inaccessible network.

[0059] The connection time represents the time from initiating the access request to obtaining the data, and the connection duration represents the duration of maintaining the connection, which usually does not exceed the cycle period. In addition, when the connection fails, the error parameters corresponding to the camera that fails to connect are also returned.

[0060] The error parameters are error parameters of the type that causes the connection failure, which can be obtained from the serial port print of the vehicle-mounted visual controller by extracting the error parameter keywords. The error parameters can be used by developers to find the causes of the errors.

[0061] Step S300, according to the test data, generate a test result document, according to the test result document, draw the real-time streaming stability of the vehicle-mounted visual controller.

[0062] After obtaining the test data, according to the test data, generate a test result document, specifically, the test data in this test result document is recorded according to the time sequence of the test and the different addresses of the cameras.

[0063] Still taking the case of 6 cameras as an example, the test data generated in the first access will have 6 groups, then the 6 groups of data are arranged in the order of the first camera to the sixth camera, and then the test data generated in the second access, and so on, until the test data generated in the last access. At the same time, for each access, there is a serial number indicating the number of accesses, and the number of successful connections and the number of failed connections in the entire test are counted.

[0064] Among them, the number of failed connections and the number of successful connections can be found by keyword query, and these keywords are related to the specific connection protocol, such as "access fail" or "access success" and the like.

[0065] It can be understood that when high-frequency connection and disconnection operations are performed on the cameras in a short period of time, great pressure will be caused to the entire communication line, and temporary connection failure may occur from the software and hardware levels. Therefore, according to the number of failed connections of the cameras, the connection failure rate in this test can be obtained. If the connection failure rate exceeds the preset value, it is determined that the vehicle-mounted visual controller is unstable.

[0066] It can be understood that the preset value is also related to the project being tested, for example, in the stress test, the failure rate can increase as the cycle time decreases, or it can increase as the number of starts increases.

[0067] Among them, for different cameras, the failure rate needs to be calculated separately, for example, if there are 6 cameras, there will be corresponding 6 failure rates, so as to reflect which cameras are unstable in connection and which cameras are stable in connection. To determine the stability of the vehicle-mounted visual controller.

[0068] It can be understood that the above test process does not require the tester to distinguish the video by visual means, and the playing time of each video can be shorter. The program can determine whether the data is received from the data stream itself, thereby serving the pressure test with a shorter cycle period and other tests, making the entire test process automatic, and reducing the need to use the screen and other hardware of the vehicle machine when testing the vehicle video controller, so that the test environment is simpler.

[0069] Embodiment 2

[0070] As Figure 4 shown, the application also provides a vehicle visual controller testing device, comprising:

[0071] The connection module 10 is configured to establish a connection between the host computer and the vehicle visual controller.

[0072] The test module 20 is configured to start a video player in the host computer through an automated test script, so that the video player accesses all cameras of the vehicle visual controller and records returned test data.

[0073] The analysis module 30 is configured to generate a test result document according to the test data, and derive the stability of the vehicle visual controller according to the test result document.

[0074] In a third aspect, the application further provides a computer terminal comprising a processor and a memory, wherein the memory stores a computer program, and the computer program performs the vehicle visual controller testing method when running on the processor.

[0075] In a fourth aspect, the application further provides a readable storage medium storing a computer program, and the computer program performs the vehicle visual controller testing method when running on the processor.

[0076] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can also be implemented by other manners. The apparatus embodiments described above are merely illustrative, for example, the flowcharts and structural diagrams in the drawings show the possible implementation architecture, function and operation of the apparatus, method and computer program product according to the embodiments of the present application. In this regard, each block in the flowchart or block diagram can represent a module, a program segment or a part of code, which contains one or more executable instructions for implementing the specified logic function. It should also be noted that in alternative implementation manners, the functions noted in the blocks can also occur in different order from that noted in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and they can also be executed in reverse order, depending on the functions involved. It should also be noted that each block in the structural diagram and / or flowchart, and the combination of blocks in the structural diagram and / or flowchart, can be implemented by a dedicated hardware-based system for executing the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0077] In addition, each functional module or unit in the embodiments of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0078] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the part of the prior art that contributes to the technical solutions or the part of the technical solutions can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0079] The above description is merely a specific implementation of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical range disclosed in the present application, which should be covered within the protection scope of the present application.

Claims

1. A vehicle-mounted vision controller testing method, characterized in that: include: Establish a connection between the host computer and the vehicle vision controller; Start the video player in the host computer through the automated test script, access the address of the camera of the vehicle-mounted vision controller through the video player, and establish a data connection to obtain the status parameters of the corresponding camera; Using the state parameters as test data; A test result document is generated based on the test data, and the real-time streaming stability of the vehicle-mounted vision controller is obtained based on the test result document.

2. The vehicle-mounted visual controller testing method according to claim 1, characterized in that: The status parameters include connection success, connection failure, connection time, connection duration, camera address and error parameters corresponding to the camera that failed to connect; Generating a test result document according to the test data includes: The state parameters are stored in a document, and the number of connection failures and the number of connection successes are recorded accordingly according to the camera address.

3. The vehicle-mounted visual controller testing method according to claim 2, characterized in that: The stability of the vehicle-mounted vision controller obtained according to the test result document includes: Obtain the number of connection failures in the test result document, and obtain the connection failure rate of this test based on the total number of connections and the number of failures; If the connection failure rate exceeds a preset value, it is determined that the vehicle-mounted vision controller is unstable.

4. The vehicle-mounted visual controller testing method according to claim 1, characterized in that: The video player includes a VLC player.

5. The vehicle-mounted vision controller testing method according to claim 1, characterized in that: The method of starting the video player in the host computer through the automated test script includes: The number of startups and the cycle period in the automated test script are read, and the video player is periodically started according to the cycle period and the number of startups.

6. The vehicle-mounted vision controller testing method according to claim 5, characterized in that: The cycle period ranges from 2 seconds to 5 seconds; The number of startup times is set according to the hardware model of the vehicle-mounted vision controller.

7. A vehicle-mounted vision controller testing device, characterized in that: include: Connection module, used to establish a connection between the host computer and the vehicle vision controller; A test module is used to start a video player in the host computer through an automated test script, access the address of the camera of the vehicle-mounted vision controller through the video player, and establish a data connection to obtain the status parameters of the corresponding camera; Using the state parameters as test data; The analysis module is used to generate a test result document based on the test data, and to obtain the real-time streaming stability of the vehicle-mounted vision controller based on the test result document.

8. A computer terminal, characterized in that: The vehicle vision controller comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is run on the processor, the vehicle vision controller test method according to any one of claims 1 to 6 is executed.

9. A readable storage medium, characterized in that: The device stores a computer program, which, when running on a processor, executes the vehicle-mounted vision controller testing method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Image analysis system applied to video monitoring tester and analysis method thereof

    CN113660427A

  • Automatic test method for in-vehicle infotainment system, test terminal and readable storage medium

    CN114090458A