Method and device for testing vehicle-mounted sensor system, computer equipment

By inputting power and functional test parameters in the test interface and accessing the power supply instrument interface via Visa driver, the power control and functional testing of the vehicle sensor system are integrated, solving the problem of low accuracy in traditional testing methods and improving the accuracy and efficiency of testing.

CN115885156BActive Publication Date: 2026-04-10SHENZHEN DEEPROUTE AI CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN DEEPROUTE AI CO LTD
Filing Date
2021-04-14
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

In existing testing methods for vehicle-mounted sensor systems, power-on/off tests and functional tests are conducted independently, resulting in low accuracy of test results and an inability to quickly and accurately determine the functional test results.

Method used

By inputting sample information and test configuration parameters, including power parameters and functional test parameters, in the test interface, the system responds to test commands to test the sample under test and displays test status information in real time. It also uses the Visa driver to access the communication interface of the power supply instrument for power control and functional testing.

Benefits of technology

It enables rapid and accurate determination of functional test results based on the power-on status of the device under test, improving the accuracy and efficiency of test results, simplifying the operation process, and reducing reliance on instrument programming.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115885156B_ABST
    Figure CN115885156B_ABST
Patent Text Reader

Abstract

A kind of test method of vehicle-mounted sensor system includes: obtaining the sample information and test configuration parameters input in test interface, test configuration parameters include power parameter and function test parameters (202);In response to test instruction, according to the sample information of power parameter and function test parameters to the sample to be tested corresponding to (204);The test state information of sample to be tested is displayed in real time in test interface (206).
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, in particular to a test method and device of vehicle-mounted sensor system, computer equipment and storage medium. BACKGROUND

[0002] With the development of computer technology and the development and maturity of unmanned technology, more and more manufacturers begin to develop their own automatic driving cars, so that automatic driving cars are widely concerned by the public. The vehicle-mounted sensor system of the automatic driving vehicle needs to be tested for hundreds of times before being installed on the vehicle, including power on and off test and function test, in order to evaluate its stability and reliability.

[0003] However, in the current test method of vehicle-mounted sensor system, the power on and off test usually uses a programmable power supply to provide power input to the device under test, and realizes periodic power on and off through the control panel or the corresponding host computer to edit the voltage curve. On the other hand, when the device under test is tested for function, the command line program of the operating system is usually used, that is, the device under test is tested for function by inputting specified commands in the window. Since the function test and power control are performed independently, the function test result cannot be quickly and accurately determined according to the power-on state of the device under test during testing, which may lead to low accuracy of the test result. SUMMARY

[0004] According to various embodiments disclosed in the present application, a test method and device of vehicle-mounted sensor system, computer equipment and storage medium are provided.

[0005] A test method of vehicle-mounted sensor system, comprising:

[0006] obtaining sample information and test configuration parameters input in a test interface, the test configuration parameters including power parameters and function test parameters; in response to a test instruction, testing a sample corresponding to the sample information according to the power parameters and function test parameters; and displaying test state information of the sample in the test interface in real time.

[0007] A test device of vehicle-mounted sensor system, comprising:

[0008] an obtaining module, configured to obtain sample information and test configuration parameters input in a test interface, the test configuration parameters including power parameters and function test parameters; a testing module, configured to test a sample corresponding to the sample information according to the power parameters and function test parameters in response to a test instruction; and a display module, configured to display test state information of the sample in the test interface in real time.

[0009] A computer device comprises a memory and one or more processors, the memory storing computer readable instructions which, when executed by the processors, cause the one or more processors to perform the following steps:

[0010] Obtaining sample information and test configuration parameters input in a test interface, the test configuration parameters comprising power supply parameters and function test parameters; in response to a test instruction, testing a sample corresponding to the sample information according to the power supply parameters and the function test parameters; and displaying test state information of the sample in real time in the test interface.

[0011] One or more computer storage media storing computer readable instructions which, when executed by one or more processors, cause the one or more processors to perform the following steps:

[0012] Obtaining sample information and test configuration parameters input in a test interface, the test configuration parameters comprising power supply parameters and function test parameters; in response to a test instruction, testing a sample corresponding to the sample information according to the power supply parameters and the function test parameters; and displaying test state information of the sample in real time in the test interface.

[0013] The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below. Other features and advantages of the application will be apparent from the description, the drawings, and the claims. BRIEF DESCRIPTION OF DRAWINGS

[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without any creative effort on the basis of these drawings.

[0015] Figure 1 An application environment diagram of a test method for a vehicle-mounted sensor system in an embodiment;

[0016] Figure 2 A flowchart of a test method for a vehicle-mounted sensor system in an embodiment;

[0017] Figure 3 A display diagram of a test interface in an embodiment;

[0018] Figure 4 A flowchart of a test step of a sample corresponding to a sample information according to power supply parameters and function test parameters in an embodiment;

[0019] Figure 5A flowchart of a step of displaying, in real time, test state information of a sample to be tested in a test interface in one embodiment;

[0020] Figure 6 A structural block diagram of a test device of a vehicle-mounted sensor system in one embodiment;

[0021] Figure 7 An internal structural diagram of a computer device in one embodiment. DETAILED DESCRIPTION

[0022] In order to make the technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.

[0023] The test method of the vehicle-mounted sensor system provided in the embodiments of the present application can be applied to an application environment as shown in Figure 1 The terminal 102 communicates with the sample to be tested 104 through the network, and the terminal 102 communicates with the power supply instrument 106 through the network through the communication interface. The terminal 102 can control the power supply instrument 106 to supply power to the sample to be tested 104 through the communication interface. The terminal 102 obtains the sample information input in the test interface and the test configuration parameters, and the test configuration parameters include the power supply parameters and the functional test parameters. The terminal 102 responds to the test instruction to test the sample to be tested 104 corresponding to the sample information according to the power supply parameters and the functional test parameters, and the terminal 102 displays the test state information of the sample to be tested 104 in real time in the test interface. The terminal 102 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices. The sample to be tested 104 can be, but is not limited to, various sensors and communication devices with a network port.

[0024] The following implementation takes a terminal of a test method of a vehicle-mounted sensor system as an example for description, but it should be noted that the method is not limited to the terminal in the actual application. Figure 1

[0025] As shown in Figure 2 A flowchart of a test method of a vehicle-mounted sensor system in one embodiment, the method specifically includes the following steps:

[0026] Step 202, obtaining the sample information input in the test interface and the test configuration parameters, and the test configuration parameters include the power supply parameters and the functional test parameters.

[0027] ​With the development and maturity of unmanned technology, more and more manufacturers begin to develop their own automatic driving cars, so that automatic driving cars are widely concerned by the public. The vehicle sensor system of the automatic driving vehicle needs to be tested hundreds of times before being installed on the vehicle, in order to evaluate its stability and reliability. In this application, the test of the vehicle sensor system is taken as an example for illustration. It can be understood that the test method in this application includes but is not limited to testing the sensor device, and can also be for other communication devices, Internet of Things devices or products to be tested.

[0028] Specifically, the terminal can obtain the sample information and test configuration parameters input in the test interface. The test configuration parameters include power supply parameters and function test parameters. The sample information refers to the related information of the device to be tested (vehicle sensor), and the sample information includes the name, number and IP (Internet Protocol Address) address (website) of the device to be tested. For example, the sample information input by the user in the test interface is: the sample 1 name is ADS, the number is 15PL2, and the IP / website is 192.168.99.66. The test configuration parameters refer to the related parameters set when performing power-on and power-off test (power supply control) and function test. The test configuration parameters can include power supply parameters and function test parameters. The power supply parameters refer to the parameters related to power supply, which can include test voltage, test current, power-on time and power-off time, etc. The function test parameters refer to the related rule parameters set for function test, for example, the function test parameters can include the number of power-on and power-off times, the test time, the number of start failure limits and the custom parameters, etc. The test interface refers to the pre-set UI (User Interface) interface, i.e. the test interface for interaction with the user. The user can set the sample information and test configuration parameters in the test interface.

[0029] Step 204, in response to the test instruction, the sample information corresponding to the sample to be tested is tested according to the power supply parameters and the function test parameters.

[0030] After the terminal obtains the sample information and test configuration parameters input in the test interface, in response to the test instruction, the terminal can test the sample information corresponding to the sample to be tested according to the power supply parameters and the function test parameters in the test configuration parameters. The test instruction refers to the test instruction triggered by the user. For example, the user can trigger the corresponding test instruction by triggering operation (clicking the start test button). When the user triggers the test instruction, the terminal responds to the test instruction triggered by the user, and tests the sample information corresponding to the sample to be tested according to the power supply parameters and the function test parameters in the test configuration parameters. The sample to be tested refers to the device to be tested corresponding to the sample information, for example, the sample to be tested can be different models of vehicle sensor devices.

[0031] Specifically, in response to the test instruction triggered by the user, the terminal tests the to-be-tested sample corresponding to the sample information according to the power supply parameter and the function test parameter set in the test configuration parameter, that is, the terminal can periodically send a corresponding command to the power supply instrument through the communication interface according to the set power supply parameter, to control the power supply instrument to output a periodic power-on and power-off test voltage, and return the current power-on and power-off test cycle information in real time. At the same time, the terminal can test the to-be-tested sample corresponding to the sample information according to the set function test parameter, for example, the terminal performs Ping test on the to-be-tested sample corresponding to the sample information according to the set function test parameter. PING (Packet Internet Groper) is a program for testing the amount of network connection. Ping is a service command in the application layer of the TCP / IP network architecture, which mainly sends an ICMP (Internet Control Message Protocol) Echo request message to a specific destination host to test whether the destination station is reachable and to understand its relevant state. Ping test is used to determine whether the local host can successfully exchange (send and receive) data packets with another host, and according to the returned information, it can be inferred whether the TCP / IP parameters are set correctly, whether the operation is normal, and whether the network is smooth, etc.

[0032] Step 206, displaying the test state information of the to-be-tested sample in the test interface in real time.

[0033] When the terminal tests the to-be-tested sample corresponding to the sample information according to the power supply parameter and the function test parameter in response to the test instruction triggered by the user, the terminal can display the test state information of the to-be-tested sample in the test interface in real time. The test state information refers to the real-time test state information of the to-be-tested sample, and the test state information can include various states under different conditions, for example, when the terminal performs Ping test on the to-be-tested sample corresponding to the sample information according to the power supply parameter and the function test parameter in response to the test instruction triggered by the user, the test state information of the to-be-tested sample can include a power-on and initialization waiting state, a power-on and initialization completion state, an initialization time too long state, an initialization failure state, and a power-off state, etc.

[0034] In a conventional test mode of a vehicle-mounted sensor system, power supply instruments are usually used to control power on and off (power control), and computer terminals are used to test whether the device under test can be pinged (function test). The two are independent of each other and unaware of each other's progress. Since the function test and the power control are performed independently, the test result cannot be quickly and accurately determined according to the power-on state of the device under test, which may result in low accuracy of the test result.

[0035] In the embodiment, sample information and test configuration parameters input in the test interface are acquired, the test configuration parameters include power supply parameters and function test parameters, and in response to a test instruction, the device under test corresponding to the sample information is tested according to the power supply parameters and the function test parameters, and the test state information of the device under test is displayed in real time in the test interface. Thus, the power supply state can be acquired in real time when the terminal performs the function test on the device under test, so as to analyze and determine whether the device under test is normally started, and the function test result can be quickly and accurately determined according to the power-on state of the device under test, which greatly improves the accuracy of the test result. Meanwhile, the power control and the function test are processed by the same program, and the test result of each device under test is updated in real time, so that it can be determined whether to end the test and turn off the power supply according to the test result, which effectively improves the test efficiency.

[0036] In one of the embodiments, before the sample information and the test configuration parameters input in the test interface are acquired, the method further includes the step of refreshing the interface information of the power supply instrument, specifically including:

[0037] In response to a trigger operation of the user, the interface information of the power supply instrument is refreshed to obtain corresponding power supply information, and the power supply instrument is used to supply power to the device under test.

[0038] Before the terminal acquires the sample information and the test configuration parameters input in the test interface, the terminal can also refresh the interface information of the power supply instrument. Specifically, the terminal refreshes the interface information of the power supply instrument in response to a trigger operation of the user to obtain corresponding power supply information. For example, as shown in FIG. 6, the terminal displays a refresh button 601 on the test interface, and the user can click the refresh button 601 to refresh the interface information of the power supply instrument. Figure 3The image shows the test interface. Users can initiate the test program and initialize parameters via a first trigger operation (e.g., double-clicking the icon), displaying the corresponding test interface (UI). Users can then trigger the terminal to update the power supply instrument's interface information via a second trigger operation, such as clicking the refresh button. The updated interface information will be displayed in the test log column of the test interface, showing, for example, "Interface refreshed" or "Refreshing interface information." In other words, upon first launching the test program and entering the test interface, users can trigger the terminal to refresh the power supply instrument's interface information to obtain the corresponding power information. The power supply instrument and the test terminal device can communicate via a communication interface. For example, the terminal can call the Visa driver to find and access the power supply instrument's communication interface to control the power supply instrument to output periodic power-on and power-off test voltages. Visa (Virtual Instrument Software Architecture) is the collective name for the I / O interface software standards and specifications developed by the VXI plug & play alliance. VISA provides a standard I / O function library for instrument programming, called the VISA library. The VISA function library resides within the computer system and serves as the standard software communication interface between the computer and instruments, through which the computer controls the instruments. The programmable instrument used in this application supports this communication protocol and can locate and access the communication interface of the power supply instrument using the VISA driver. For example, the terminal can control the power supply instrument using the following programming language; that is, the terminal can periodically send corresponding commands according to preset rules to control the power supply instrument to change voltage, current, power on, power off, etc. The programmable power supply conforms to the VISA interface. For example:

[0039] self.rm=visa.ResourceManager()

[0040] ports=self.rm.list_resources()

[0041] For port in ports:

[0042] if'USB'in port or'usb'in port:

[0043] self.inst = self.rm.open_resource(port_id) #(Connect the power supply device via the Visa interface)

[0044] self.inst.write('SYSTem:RWLock') #(Enables remote control while locking local buttons)

[0045] self.inst.write('SOURce:APPLy'+str(self.func.param_test_volt)+'V,'+str(self.func.param_test_curr)+'A') #(Sets voltage and current)

[0046] self.inst.write('SOURce:OUTPut:STATe 1')#(power on)

[0047] self.inst.write('SOURce:OUTPut:STATe 0')#(Power off)

[0048] Compared to traditional testing methods for vehicle-mounted sensor systems, which involve setting power-on / off cycles using the power supplier's host computer or instrument interface and require familiarity with the power supply's programming functions, enabling users to skillfully and accurately edit voltage curves, test lists, and activation list operation modes via the control panel or host computer—meaning traditional testing methods rely solely on the power supply panel, are complex, and require extensive instrument knowledge—this embodiment allows users to conduct tests through a simple UI interface. By using the Visa driver to locate and access the power supply instrument's communication interface, users can control the power supply instrument to output periodic power-on / off test voltages and receive real-time feedback on the corresponding power-on / off test cycles. This allows for automatic acquisition of the "power control" output status during "functional testing," resulting in more accurate and real-time automatic determination of the test results for the sample under test.

[0049] In one embodiment, before obtaining the sample information and test configuration parameters entered in the test interface, the method further includes a step of verifying the legality of the sample information, power parameters, and functional test parameters entered by the user in the test interface, specifically including:

[0050] Determine whether the sample information, power parameters, and functional test parameters entered by the user in the test interface meet the corresponding input box constraints.

[0051] If so, the sample information, power parameters, and functional test parameters will be displayed on the test interface after the legality verification is completed.

[0052] Before the terminal acquires the sample information and the test configuration parameters input in the test interface, the terminal can also perform legality verification on the sample information, the power supply parameters and the functional test parameters input by the user in the test interface. Specifically, the user can start the test program initialization parameters through a first trigger operation (such as double-clicking the icon), and display the corresponding test interface (UI interface). The user can input the sample information in the sample information entry bar of the test interface, and input the test configuration parameters in the test parameter entry bar. For example, as shown in Figure 3 the user can input the sample information in the sample information entry bar of the test interface: the sample 1 name is ADS, the number is QC#10, and the IP / web address is 192.168.99.66. The user can also input the corresponding power supply setting parameters and functional test configuration parameters in the test parameter entry bar, for example, the power supply setting: the test voltage is 12V, the test current is 1A, the power-on time is 20S, and the power-off time is 10S; the functional test configuration: the number of power-on and power-off times is 200 times, the test time is 48 hours, the number of start failures is limited to 2 times, and whether the value exceeds the value is measured by one time, etc. In addition, the logical language of each input box can be set in advance, and the legality verification can be realized by the program language, that is, according to the attributes set in the input box, only the specified characters can be input in the box, such as: the test voltage input box can only input Arabic numerals, cannot input Chinese characters, letters, etc., and the power-on and power-off times input box can only input integer numbers. In addition, after the terminal performs legality verification on the sample information, the power supply parameters and the functional test parameters input by the user in the test interface, the user can click the confirmation setting button in the test interface, and the terminal saves the sample information and the test configuration parameters input by the user in the test interface when receiving the confirmation setting instruction triggered by the user. Thus, without the user's need to master the instrument programming function and the programming language, and without the user's need to manually input the specified command in the window to perform the functional test on the device under test, the user can perform the test through the simple operation of the UI test interface, so that the test terminal can acquire the power supply state in real time when performing the functional test on the sample under test, to analyze and determine the state of the sample under test, and obtain more accurate test results of the sample under test.

[0053] In an optional embodiment, as shown in Figure 4 the step of testing the sample under test according to the sample information, the power supply parameters and the functional test parameters includes:

[0054] Step 402, performing functional test on the sample under test according to the preset time interval, obtaining the corresponding functional test result, and acquiring the corresponding power supply output state in real time according to the power supply parameters.

[0055] Step 404, determining the state of the sample under test according to the power supply output state and the functional test result.

[0056] After the terminal acquires the sample information and the test configuration parameters input in the test interface, the terminal can test the to-be-tested sample corresponding to the sample information according to the power supply parameters and the function test parameters in the test configuration parameters in response to the test instruction. Specifically, the terminal can perform a function test on the to-be-tested sample at a preset time interval, obtain a corresponding function test result, and acquire a corresponding power supply output state in real time according to the power supply parameters. Further, the terminal determines the state of the to-be-tested sample according to the power supply output state and the function test result. The terminal can periodically send power-on and power-off commands to the power supply instrument at a preset time interval and count the refresh test times. At the same time, the terminal performs a function test on the to-be-tested sample according to the function test parameters set by the user, so that the terminal can acquire the power supply state in real time when performing the function test on the to-be-tested sample, to analyze and determine whether the to-be-tested sample is normally started, so that the function test result can be quickly and accurately determined according to the power-on state of the to-be-tested device. In addition, the power supply control and the function test are processed through the same program, and the test results of the to-be-tested samples are updated in real time, so that it can be determined whether to end the test and turn off the power supply at any time according to the test results, effectively improving the test efficiency.

[0057] In an optional embodiment, the function test is a ping test, and the state of the to-be-tested sample at least includes: a power-on and initialization waiting state, a power-on and initialization completion state, an initialization time too long state, an initialization failure state, and a power-off state.

[0058] After the terminal acquires the sample information and the test configuration parameters input in the test interface, the terminal can perform a ping test on the sample corresponding to the sample information according to the power supply parameters and the function test parameters in the test configuration parameters in response to the test instruction. When the function test is a ping test, the terminal can perform a ping test on the sample every 500 ms according to the function test parameters in the set test configuration parameters, and acquire the power supply output state in real time to determine the state of the sample. Specifically, the terminal performs a ping test on different samples (to-be-tested devices) selected by the user according to the set test configuration parameters, for example, the terminal performs a ping test on different samples (to-be-tested devices) selected by the user according to a time interval of 500 ms, while the terminal sends a corresponding command to detect the voltage of the power supply instrument to determine whether the current power supply output state is in a power-on state or a power-off state. If the terminal detects that the current power supply output state is in a power-off state, it is determined that the ping test is normal. If the terminal detects that the current power supply output state is in a power-on state, and the detection result of the current ping test is that the sample is powered on and has not appeared for the first time, it is determined that the state of the sample is a power-on and initialization waiting state. If the terminal detects that the current power supply output state is in a power-on state, but the detection result of the current ping test is that the first ping has appeared until the end of the specified 30 seconds of power-on, the terminal determines that the state of the sample is an initialization failure state. If the terminal detects that the first ping appears more than the specified time after power-on, the terminal determines that the state of the sample is an initialization time too long state. If the terminal detects that the ping does not appear after the initialization is completed, the terminal determines that the state of the sample is an initialization ping failure state. The terminal can periodically send a power-on and power-off command to the power supply instrument according to the set time interval, and count the refresh test times. Thus, the power supply state can be acquired in real time when the function test is performed on the sample, the sample can be quickly and accurately determined to be started normally, the test determination is accurate and easy. At the same time, the power supply control and the function test are processed through the same program, and the test results of each sample are updated in real time, so that it can be determined whether to end the test and turn off the power supply at any time, and the test is efficient and safe. In addition, without installing the power supply instrument host computer and mastering the instrument programming function, the test can be carried out through simple operation of the UI test interface designed in the present application, and the test is simple and easy to operate, which brings convenience to the user.

[0059] In an optional embodiment, the power supply parameters include power-on time, power-off time, test voltage, and test current, and the step of acquiring the corresponding power supply output state in real time according to the power supply parameters includes:

[0060] According to a preset time interval, the terminal periodically sends a command to the power supply instrument through a communication interface to obtain a corresponding power output state. The power output state includes a power-on state and a power-off state. The command includes a power-on time, a power-off time, a test voltage, and a test current. The power supply instrument is used to supply power to the sample to be tested according to the power-on time, the power-off time, the test voltage, and the test current.

[0061] After the terminal obtains the sample information and the test configuration parameters input in the test interface, the terminal can perform a ping test on the sample to be tested corresponding to the sample information according to the power supply parameters and the functional test parameters in the test configuration parameters in response to a test instruction. The power supply parameters include a power-on time, a power-off time, a test voltage, and a test current. Specifically, the terminal can periodically send a command to the power supply instrument through a communication interface according to a preset time interval to obtain a corresponding power output state. The power output state includes a power-on state and a power-off state. The command includes a power-on time, a power-off time, a test voltage, and a test current. The power supply instrument is used to supply power to the sample to be tested according to the power-on time, the power-off time, the test voltage, and the test current. For example, the terminal accesses the communication interface of the power supply instrument through a visa driver to control the power supply instrument to output a periodic power-on and power-off test voltage and to return the current power-on and power-off test period in real time. That is, through a programming language, the programmable power supply conforms to the visa interface, and the terminal can control the instrument to change the voltage, the current, the power-on, and the power-off by sending a corresponding command. Thus, compared with the traditional test method, one side uses the instrument to control the power-on and power-off (power supply control), and the other side uses the computer to test whether the device can be pinged (functional test). The two are independent of each other and do not know the progress of the other. It is difficult to determine the test result and is prone to errors. Since the ping test and the power supply control are performed independently, it is difficult to accurately and quickly determine the functional test result according to the power-on state of the sample to be tested. That is, it is difficult to intuitively distinguish between “the device is pinged when the power is off” and “the device is pinged when the device is powered on but fails to start”. Hundreds of power-on and power-off tests will generate tens of thousands of ping reports. It is difficult to analyze the test results after the test and is prone to errors. In the embodiment, the two are integrated into one test program through programming technology. The test program can automatically obtain the progress of “power supply control” and “functional test” at the same time and automatically determine the test result of the sample to be tested. The efficiency of the test is improved, and the accuracy of the test result is also improved.

[0062] In one embodiment, as shown in FIG. 1, Figure 5 The test interface includes a test log column and a test status column. The step of displaying the test status information of the sample to be tested in the test interface in real time includes:

[0063] Step 502, real-time display of the current power-on and power-off test period and the functional test details of the sample to be tested in the test log column.

[0064] Step 504, real-time display of the latest test status of the sample to be tested in the test status column.

[0065] When the terminal tests the sample to be tested corresponding to the sample information according to the power supply parameters and the functional test parameters in response to the test instruction triggered by the user, the terminal can display the test status information of the sample to be tested in the test interface in real time. Among them, the test interface includes a test log column and a test status column. Specifically, when the terminal performs a ping test on the sample to be tested corresponding to the sample information according to the power supply parameters and the functional test parameters in response to the test instruction triggered by the user, the terminal displays the current power-on and power-off test period and the functional test details (ping test details) of the sample to be tested in the test log column in real time, and the terminal displays the latest test status of the sample to be tested in the test status column in real time. In addition, the terminal can write the power-on and power-off information and the functional test details during the test into a log file (TXT) in real time. Writing into TXT is the log file of the test process, and TXT (text format). In this application, the terminal can record the first power-on, power-off, ping test details during the period, the number of power-on and power-off test periods completed at the Nth power-on, and the number of startup failures (test summary) in a time line manner. In addition to directly displaying the test results in the UI test interface, when the user needs to find the detailed records of the test, the user can also analyze the test results according to the log file. For example, the TXT part of the content is as follows:

[0066] 2020-07-01 11:14:43 from power supply control module: 109th power-on and power-off

[0067] 2020-07-01 11:14:43 from power supply control module: power-on command has been sent

[0068] 2020-07-01 11:14:44 from ping test module: 109th test

[0069] from ping test module:

[0070] Currently 108 power-on and power-off tests have been completed

[0071] ADS initialization failure times: 0

[0072] warning times: 0

[0073] PING 192.168.99.66 (192.168.99.66) 56 (84) bytes of data.

[0074] 2020-07-01 11:14:45 from ping test module: Query to power on

[0075] 2020-07-01 11:14:45 from ping test module: Wait for ADS power on initialization…

[0076] PING 192.168.99.66 (192.168.99.66): 56 data bytes

[0077] 2020-07-01 11:14:47 from ping test module: Wait for ADS power on initialization…

[0078] PING 192.168.99.66 (192.168.99.66): 56 data bytes

[0079] 64 bytes from 192.168.99.66: icmp_seq = 1 ttl = 255 time = 0.264 ms

[0080] 2020-07-01 11:14:48 from ping test module: ADS power on initialization is complete

[0081] 2020-07-01 11:14:48 from ping test module: ADS has been pinged

[0082] Therefore, compared with the traditional test method, the power supply supplier's host computer or instrument interface needs to be used to set the power-on and power-off cycle, and the current number of power-on and power-off tests cannot be known after the test starts. The ping test window continuously prints the ping test results, and all ping test results need to be analyzed after all tests are completed. The test result is determined by manual determination, that is, when the start fails. This method has low accuracy and low efficiency. In the embodiment, the current test progress and test result can be displayed in the test interface in real time, so that the test can be terminated in time when the number of start failures of the device under test exceeds the receiving requirement, the test efficiency is effectively improved, and the accuracy of the test result is also improved.

[0083] In an optional embodiment, as Figure 3As shown, it is a display diagram of the test interface. When the user first starts the test program to enter the test interface, the user can trigger an operation to make the terminal refresh the interface information of the power supply instrument to obtain the corresponding power supply information. For example, the user can start the test program initialization parameters by the first trigger operation (such as double-clicking the icon), and display the corresponding test interface (UI interface). The user can trigger the second trigger operation, such as clicking the refresh button, to make the terminal refresh the interface information of the power supply instrument in response to the second trigger operation of the user, and display the log information corresponding to the refreshed interface information in the test log column of the test interface. Wherein, the power supply instrument and the test terminal device can communicate through the communication interface. For example, the terminal can call the visa driver to find and access the communication interface of the power supply instrument to control the power supply instrument to output the periodic power-on and power-off test voltage. That is, the terminal can periodically send the corresponding command according to the preset rule to control the power supply instrument to change the voltage, current, power-on, power-off, etc.

[0084] After the user triggers the operation to make the terminal refresh the interface information of the power supply instrument to obtain the corresponding power supply information, the user can input the sample information in the sample information entry column of the test interface, and input the test configuration parameters in the test parameter entry column. For example, as shown in FIG. 2, the user can input the sample information in the sample information entry column of the test interface, and input the test configuration parameters in the test parameter entry column. Figure 3As shown, the user can input sample information in the sample information entry column of the test interface: sample 1 is named ADS, numbered QC#10, and IP / web address is 192.168.99.66. The user can also input corresponding power setting parameters and functional test configuration parameters in the test parameter entry column, for example, power setting: test voltage is 12V, test current is 1A, power-on time is 20S, and power-off time is 10S; functional test configuration: press power-on and power-off times 200 times, test time 48 hours, start failure limit 2 times, and whether to exceed the value plus a double time, etc. After the terminal obtains the above sample information and test configuration parameters input by the user in the test interface, in response to the test instruction triggered by the user, such as the user clicking the start test button in the test interface, the terminal performs ping test on the sample information corresponding to the to-be-tested sample according to the power parameters and functional test parameters in the obtained test configuration parameters. That is, the terminal can perform ping test on different to-be-tested samples (to-be-tested devices) selected by the user according to the test configuration parameters set by the user, for example, the terminal performs ping test on different to-be-tested samples (to-be-tested devices) selected by the user at a time interval of 500ms, and at the same time, the terminal sends a corresponding command to detect the voltage of the power supply instrument to determine whether the current power output state is in a power-on state or a power-off state. If the terminal detects that the current power output state is in a power-off state, it is determined that the ping test is normal; if the terminal detects that the current power output state is in a power-on state, the terminal determines that the state of the to-be-tested sample is a power-on and initialization waiting state according to the detection result of the current ping test that is just powered on and has not appeared for the first time; if the terminal detects that the current power output state is in a power-on state, but the detection result of the current ping test is that the first ping is successful, the terminal determines that the state of the to-be-tested sample is a power-on and initialization completed state; if the terminal detects that the current power output state is in a power-on state, but the detection result of the ping test is that until the end of the specified 30 seconds of power-on, the ping is still not successful, it is determined that the state of the to-be-tested sample is an initialization failure state; if the terminal detects that the first ping appears after power-on exceeds the specified time, the terminal determines that the state of the to-be-tested sample is an initialization time too long state; if the terminal detects that the ping is not successful after the initialization is completed, the terminal determines that the state of the to-be-tested sample is an initialization and occasional ping failure state. The terminal can display the test state information of the above different to-be-tested samples in the test interface in real time, that is, when the terminal performs ping test on the to-be-tested sample corresponding to the sample information according to the power parameters and functional test parameters, the terminal can display the current power-on and power-off test period and the functional test details (ping test details) of the to-be-tested sample in the test log column in real time, and display the latest test state of the to-be-tested sample in the test state column in real time.Therefore, the power state can be acquired in real time when the test terminal performs the function test on the sample to be tested, so as to analyze and determine whether the sample to be tested is normally started, and the function test result can be quickly and accurately determined according to the power-on state of the device to be tested. In addition, the power control and the function test are processed by the same program, and the test result of each sample to be tested is updated in real time, so that it can be determined whether to end the test and turn off the power according to the test result at any time, thereby effectively improving the test efficiency.

[0085] The following describes the ping test as an example of the function test. The traditional ping test is performed by using a command line program, and the ping test on the device to be tested is continuously performed, and the device to be tested is repeatedly powered on and powered off at a certain period (for example, powered on for 30 seconds and powered off for 30 seconds). That is, when the ping test result is "request timeout", the device to be tested may be in a power-off state, and obviously this result cannot be used to determine that the device to be tested fails to start. The device to be tested starts and determines whether the start is successful: ① the device is powered on → ② the device initialization process → ③ the start is successful / fails → ④ the device is powered off → waits for 30 seconds to enter the next "power-on and power-off cycle". Obviously, the ping test may appear "request timeout" in the above ①, ② and ④ processes, and only the "request timeout" in ③ can be determined as a start failure. The ping test generates a result every second, and according to 60 seconds per test period, at least 200 test periods are calculated, and there are 12000 ping test results. After the traditional ping test is completed, it becomes very difficult and unreliable to manually determine which "request timeout" ping test result belongs to the above ③ according to the power-on and power-off period.

[0086] In the embodiment of the present application, as Figure 3As shown, it is a test interface display diagram. The UI test interface is divided into 7 function areas: instrument interface, sample information, test parameter, test log, test status, power status and test control. Instrument interface: the test terminal calls the visa driver to find and access the communication interface of the instrument. Sample information: the user selects the number of samples to be tested at the same time, and inputs the corresponding sample information, and the input box is verified for legality. Test parameter: the user sets the power parameter and the function test parameter, and the input box is verified for legality. Confirm the settings: the user confirms the set sample information and test parameters, and prepares for testing. Power control module: the test terminal controls the instrument to output periodic power-on and power-off test voltage through the visa driver and the communication interface of the instrument, and returns the current power-on and power-off test period in real time. Function test module: the test terminal performs ping test on the sample to be tested once every 500ms, and obtains the power output state in real time to determine the state of the sample to be tested: power-on and initialization, power-on and initialization completed, initialization after ping failure, initialization time too long, initialization failure and power-off. Test log column: real-time printing of current power-on and power-off test period and function test details of each sample to be tested. Test status bar: real-time display of the latest test status of each sample to be tested. Therefore, through the simple operation of the UI test interface designed in this embodiment, the test can be carried out, and the test is simple and easy to operate, which brings convenience to the user.

[0087] It should be understood that, although Figures 1-5 Each step in the flowchart is displayed in sequence according to the arrow, but these steps are not necessarily executed in sequence according to the arrow. Unless otherwise specified herein, the execution of these steps has no strict order restriction, and these steps can be executed in other order. Moreover, Figures 1-5 At least part of the steps in the flowchart can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily sequential, but can be executed in rotation or alternation with at least part of other steps or steps or stages in other steps.

[0088] In one embodiment, as Figure 6 As shown, a test device of a vehicle-mounted sensor system is provided, comprising: an acquisition module 602, a test module 604 and a display module 606, wherein:

[0089] The acquisition module 602 is configured to acquire sample information and test configuration parameters input in the test interface, and the test configuration parameters include power parameters and function test parameters.

[0090] The test module 604 is configured to test the sample to be tested corresponding to the sample information according to the power parameters and the function test parameters in response to a test instruction.

[0091] The display module 606 is configured to display, in real time, test state information of the sample to be tested in the test interface.

[0092] In one of the embodiments, the device further comprises a refreshing module.

[0093] The refreshing module is configured to refresh, in response to a triggering operation of the user, interface information of the power supply instrument to obtain corresponding power supply information, and the power supply instrument is configured to supply power to the sample to be tested.

[0094] In one of the embodiments, the device further comprises a judging module.

[0095] The judging module is configured to judge whether the sample information, the power supply parameter and the functional test parameter input by the user in the test interface satisfy corresponding input box constraint conditions, and the display module is further configured to, if yes, display the sample information, the power supply parameter and the functional test parameter in the test interface through legality verification.

[0096] In one of the embodiments, the test module is further configured to perform functional test on the sample to be tested according to a preset time interval to obtain corresponding functional test results, and to obtain corresponding power supply output states in real time according to the power supply parameter, and the determining module is configured to determine the state of the sample to be tested according to the power supply output states and the functional test results.

[0097] In one of the embodiments, the device further comprises a sending module.

[0098] The sending module is configured to periodically send a command to the power supply instrument through a communication interface according to a preset time interval to obtain corresponding power supply output states, and the power supply output states include power-on states and power-off states; the command includes power-on time, power-off time, test voltage and test current; the power supply instrument is configured to supply power to the sample to be tested according to the power-on time, the power-off time, the test voltage and the test current.

[0099] In one of the embodiments, the display module is further configured to display, in real time, a current power-on and power-off test period and functional test details of the sample to be tested in a test log column, and to display, in real time, the latest test state of the sample to be tested in a test state column.

[0100] The specific limitations of the test device for the vehicle-mounted sensor system can refer to the limitations of the test method for the vehicle-mounted sensor system in the foregoing, which will not be repeated here. Each module in the test device for the vehicle-mounted sensor system described above can be realized by software, hardware and combinations thereof, in whole or in part. Each module described above can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory in the computer device in software form, so as to be called and executed by the processor to perform the operations corresponding to each module.

[0101] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 7 As shown, the computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, carrier networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a testing method for an onboard sensor system. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad on the computer device's casing, or an external keyboard, touchpad, or mouse.

[0102] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0103] A computer device includes a memory and one or more processors. The memory stores computer-readable instructions, and one or more non-volatile storage media storing the computer-readable instructions are provided. When the computer-readable instructions are executed by one or more processors, the one or more processors cause the one or more processors to implement the steps of the test method for the vehicle sensor system provided in any embodiment of this application.

[0104] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by computer readable instructions instructing relevant hardware, and the computer readable instructions can be stored in a non-volatile computer readable storage medium. When the computer readable instructions are executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, storage, database or other medium used in each embodiment provided by the present application can include at least one of non-volatile and volatile memory. The non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory. The volatile memory can include random access memory (RAM) or external cache memory. As an illustration but not limitation, the RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0105] Any combination of the technical features of the above embodiments can be made. In order to make the description simple, all possible combinations of each technical feature in the above embodiments are not described, however, as long as the combination of the technical features does not exist, it should be considered as the scope of the present application.

[0106] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, some modifications and improvements can be made, which are all within the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.

Claims

1. A method for testing a vehicle-mounted sensor system, comprising: obtaining sample information and test configuration parameters input in a test interface, the test configuration parameters including power supply parameters and function test parameters; in response to a test instruction, performing function test on a sample to be tested corresponding to the sample information according to a preset time interval to obtain a corresponding function test result; according to the preset time interval, periodically sending a command to a power supply instrument through a communication interface to obtain a corresponding power supply output state; the power supply output state includes a power-on state and a power-off state; the command includes power-on time, power-off time, test voltage and test current in the power supply parameters; the power supply instrument is configured to supply power to the sample to be tested according to the power-on time, the power-off time, the test voltage and the test current; and the state of the sample to be tested is determined according to the power supply output state and the function test result; and displaying test state information of the sample to be tested in the test interface in real time; the function test is a ping test; and the test state information of the sample to be tested includes a power-on and initialization waiting state, a power-on and initialization completed state, an initialization time too long state, an initialization failure state and a power-off state.

2. The method of claim 1, wherein, Before the obtaining sample information and test configuration parameters input in a test interface, the method further comprises: in response to a user's trigger operation, refreshing interface information of a power supply instrument to obtain corresponding power supply information; the power supply instrument is configured to supply power to a sample to be tested.

3. The method of claim 1, wherein, Before the obtaining sample information and test configuration parameters input in a test interface, the method further comprises: determining whether the sample information, power supply parameters and function test parameters input by a user in a test interface meet corresponding input box constraint conditions; and if yes, displaying the sample information, power supply parameters and function test parameters in the test interface through validity verification.

4. The method of claim 1, wherein, the communication interface of the power supply instrument is started and accessed by calling a virtual instrument software structure to control the power supply instrument to output a periodic power-on and power-off test voltage.

5. The method of claim 1, wherein, the test state information refers to real-time test state information of the sample to be tested.

6. The method of claim 1, wherein, the function test is a ping test; and determining the state of the sample to be tested according to the power supply output state and the function test result includes: if the power supply output state is in a power-off state, it is determined that the ping test is normal; if the power supply output state is in a power-on state and the detection result of the current ping test is that the sample to be tested is just powered on and has not appeared for the first time, it is determined that the state of the sample to be tested is a power-on and initialization waiting state; if the power supply output state is in a power-on state, but the detection result of the current ping test is that the sample to be tested has appeared for the first time, it is determined that the state of the sample to be tested is a power-on and initialization completed state; if the power supply output state is in a power-on state, but the detection result of the ping test is that until the end of the specified 30 seconds of power-on, the sample to be tested has not been pinged, it is determined that the state of the sample to be tested is an initialization failure state; If it is detected that the first ping is not successful after power-on for more than a specified time, it is determined that the state of the sample under test is an initialization time too long state; If it is detected that the ping is not successful after the initialization is completed, it is determined that the state of the sample under test is an initialization after occasional ping failure state.

7. The method of claim 1, wherein, The test interface includes a test log column and a test state column; The test state information of the sample under test is displayed in real time in the test interface, including: The current power-on and power-off test period and the functional test details of the sample under test are displayed in real time in the test log column; And the latest test state of the sample under test is displayed in real time in the test state column.

8. A test device for a vehicle-mounted sensor system, comprising: an acquisition module configured to acquire sample information and test configuration parameters input in a test interface, the test configuration parameters including power supply parameters and functional test parameters; a test module configured to perform functional test on a sample under test corresponding to the sample information according to a preset time interval in response to a test instruction, and obtain a corresponding functional test result; the functional test is a ping test; a sending module configured to periodically send a command to a power supply instrument through a communication interface according to the preset time interval to obtain a corresponding power supply output state; the power supply output state includes a power-on state and a power-off state; the command includes a power-on time, a power-off time, a test voltage and a test current in the power supply parameters; the power supply instrument is configured to supply power to the sample under test according to the power-on time, the power-off time, the test voltage and the test current; a determination module configured to determine the state of the sample under test according to the power supply output state and the functional test result; and a display module configured to display test state information of the sample under test in real time in the test interface; the test state information of the sample under test includes a power-on and initialization waiting state, a power-on and initialization completion state, an initialization after occasional ping failure state, an initialization time too long state, an initialization failure state, and a power-off state.

9. The test arrangement for a vehicle sensor system according to claim 8, wherein The device further comprises: a refreshing module configured to refresh interface information of the power supply instrument in response to a trigger operation of a user to obtain corresponding power supply information; the power supply instrument is configured to supply power to the sample under test.

10. The test device for a vehicle sensor system according to claim 8, wherein, The device further comprises: a judgment module configured to judge whether the sample information, the power supply parameters and the functional test parameters input by the user in the test interface meet corresponding input box constraint conditions; and the display module is further configured to, if yes, display the sample information, the power supply parameters and the functional test parameters in the test interface through legality verification.

11. The test device for a vehicle sensor system according to claim 8, wherein, The test interface includes a test log column and a test state column; the display module is further configured to display the current power-on and power-off test period and the functional test details of the sample under test in real time in the test log column; and display the latest test state of the sample under test in real time in the test state column. 12.A computer device, comprising a memory and one or more processors, wherein the memory stores computer readable instructions, and the computer readable instructions, when executed by the one or more processors, cause the one or more processors to perform the steps of the method of any one of claims 1 to 7. 13.One or more computer storage media storing computer readable instructions, and the computer readable instructions, when executed by one or more processors, cause the one or more processors to perform the steps of the method of any one of claims 1 to 7.

Citation Information

Patent Citations

  • Real-time testing system and testing method for inertial platform

    CN107621271A