Testing method and testing system for alcohol interlocking device

By introducing the upper machine and alcohol gas generator in the test system of the alcohol lock device to automatically simulate the driver's blowing behavior, solve the problem of low test efficiency of alcoholic lock devices in existing technologies, and achieve efficient automation. test.

CN119335200APending Publication Date: 2025-01-21AVATR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411454867.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-17
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

In the prior art, the testing efficiency of alcohol interlocking devices is low and rely on manual testing.

Method used

Provide a test method and test system for the alcoholic link lock device. Through the connection of the upper machine, the alcohol gas generator and the betened lock device to be tested, it automatically simulates the driver's blowing behavior, and obtains the test of the alcoholic lock device to be tested. The actual test results are determined according to the results.

Benefits of technology

The automated testing of the alcoholic lock device for wine testing has improved the efficiency of testing and reduced the necessity of manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119335200A_ABST
    Figure CN119335200A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of vehicles, and discloses a testing method and a testing system for an alcohol interlocking device, the method is applied to an upper computer in the testing system, and the testing system comprises the upper computer, an alcohol gas generator and the alcohol interlocking device to be tested. The upper computer is respectively connected with the alcohol gas generator and the to-be-tested alcohol interlocking device; the method comprises the following steps: sending a first control signal to the alcohol gas generator; wherein the first control signal is used for triggering the alcohol gas generator to generate alcohol gas; acquiring an actual detection result of the alcohol interlocking device to be detected; wherein the actual detection result represents a detection result of the alcohol gas generated by the alcohol gas generator by the to-be-detected alcohol interlocking device; and determining a test result of the to-be-tested alcohol interlocking device according to the actual detection result. According to the technical scheme, the testing efficiency of the alcohol interlocking device can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of testing technology, and in particular to a testing method and a testing system for an alcohol interlock device. Background Art

[0002] With the development of advanced driver assistance systems, alcohol interlock devices can be installed on vehicles to determine whether the vehicle can be started by detecting the alcohol concentration in the driver's breath, thereby improving driving safety.

[0003] Currently, the functional testing of alcohol interlock devices relies on manual work, resulting in low testing efficiency. Summary of the invention

[0004] In view of the above problems, an embodiment of the present invention provides a testing method and a testing system for an alcohol interlock device, which are used to solve the problem of low testing efficiency of the alcohol interlock device in the prior art.

[0005] According to one aspect of an embodiment of the present invention, a method for testing an alcohol interlock device is provided, the method being applied to a host computer in a test system, the test system comprising the host computer, an alcohol gas generator, and an alcohol interlock device to be tested, the host computer being connected to the alcohol gas generator and the alcohol interlock device to be tested, respectively; the method comprising:

[0006] Sending a first control signal to the alcohol gas generator; wherein the first control signal is used to trigger the alcohol gas generator to produce alcohol gas;

[0007] Acquire an actual detection result of the alcohol interlock device to be tested; wherein the actual detection result represents a detection result of the alcohol interlock device to be tested on the alcohol gas generated by the alcohol gas generator;

[0008] According to the actual detection result, the test result of the alcohol interlock device to be tested is determined.

[0009] According to another aspect of an embodiment of the present invention, a test device for an alcohol interlock device is provided, the test device is applied to a host computer in a test system, the test system comprises the host computer, an alcohol gas generator, and an alcohol interlock device to be tested, the host computer is respectively connected to the alcohol gas generator and the alcohol interlock device to be tested; and comprises:

[0010] A sending module, used for sending a first control signal to the alcohol gas generator; wherein the first control signal is used for triggering the alcohol gas generator to produce alcohol gas;

[0011] An acquisition module, used for acquiring an actual detection result of the alcohol interlock device to be tested; wherein the actual detection result represents a detection result of the alcohol interlock device to be tested on the alcohol gas generated by the alcohol gas generator;

[0012] A determination module is used to determine the test result of the alcohol interlock device to be tested according to the actual detection result.

[0013] According to another aspect of an embodiment of the present invention, a host computer is provided, including:

[0014] A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;

[0015] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the operation of the above-mentioned alcohol interlock device testing method.

[0016] According to another aspect of an embodiment of the present invention, a test system is provided, comprising: a host computer, an alcohol gas generator, and an alcohol interlock device to be tested, wherein the host computer is respectively connected to the alcohol gas generator and the alcohol interlock device to be tested; and the host computer executes the operation of the test method of the above-mentioned alcohol interlock device.

[0017] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein at least one executable instruction is stored in the storage medium. When the executable instruction is run on a test device of a host computer / alcohol interlock device, the test device of the host computer / alcohol interlock device executes the operation of the test method of the above-mentioned alcohol interlock device.

[0018] The embodiment of the present invention uses a test method and a test system for an alcohol interlock device to automatically test the alcohol interlock device to be tested, obtain a test result, and improve test efficiency.

[0019] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:

[0021] Figure 1 The schematic diagram of the structure of the alcohol interlock device provided by the present invention is shown;

[0022] Figure 2 A schematic structural diagram of a first embodiment of a test system provided by the present invention is shown;

[0023] Figure 3 A schematic structural diagram of a second embodiment of a test system provided by the present invention is shown;

[0024] Figure 4 A schematic structural diagram of a third embodiment of a test system provided by the present invention is shown;

[0025] Figure 5 A flow chart showing a first embodiment of a method for testing an alcohol interlock device provided by the present invention;

[0026] Figure 6 A flow chart showing a second embodiment of a method for testing an alcohol interlock device provided by the present invention;

[0027] Figure 7 A flow chart showing a third embodiment of a method for testing an alcohol interlock device provided by the present invention;

[0028] Figure 8 A schematic structural diagram of an embodiment of a testing device for an alcohol interlock device provided by the present invention is shown;

[0029] Fig. 9 A structural schematic diagram of an embodiment of a host computer provided by the present invention is shown. DETAILED DESCRIPTION

[0030] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.

[0031] Figure 1 FIG. 2 shows a schematic diagram of the structure of the alcohol interlock device provided by the present invention. Figure 1 As shown, the alcohol interlock device 100 includes an alcohol lock 101 and a vehicle computer 102. Before starting the vehicle, the alcohol lock can detect the alcohol content in the driver's breath and display the detection result on the vehicle computer. The vehicle computer can determine whether to start the vehicle based on the detection result, thereby using the alcohol interlock device to ensure driving safety.

[0032] Currently, testing of alcohol interlock devices is mostly done manually, resulting in low testing efficiency.

[0033] In view of this, the present application proposes a testing method for an alcohol interlock device, which can automatically test the alcohol interlock device, obtain test results, and improve test efficiency.

[0034] Figure 2 FIG. 2 shows a schematic diagram of the structure of a first embodiment of a test system provided by the present invention. Figure 2 As shown, the test system 200 includes a host computer 201, an alcohol gas generator 202, and an alcohol interlock device 203 to be tested.

[0035] The host computer 201 is connected to the alcohol gas generator 202 and the alcohol interlock device 203 to be tested respectively.

[0036] The host computer 201 is used to monitor, manage and process test data. The host computer can be an electronic device with processing capabilities, such as a computer or a laptop computer.

[0037] The alcohol gas generator 202 is used to generate alcohol gas. It should be noted that the embodiment of the present invention does not limit how the alcohol gas generator generates alcohol gas. For example, the alcohol gas may be generated by heating liquid alcohol.

[0038] The alcohol interlock device to be tested 203 is an alcohol interlock device to be tested. The embodiment of the present invention does not limit the type of alcohol lock and the type of vehicle computer included in the alcohol interlock device to be tested.

[0039] It should be noted that the embodiment of the present invention does not limit the connection method between the host computer and the alcohol gas generator and the alcohol interlock device to be tested. For example, it can be a wired communication connection or a wireless communication connection.

[0040] In this way, the alcohol gas generator in the test system can simulate the driver's blowing behavior, and then the alcohol interlock device to be tested can detect the alcohol gas generated by the alcohol gas generator. The host computer can determine the test result of the alcohol interlock device to be tested based on the test result received from the alcohol interlock device to be tested.

[0041] In some embodiments, reference Figure 3 As shown, Figure 3 FIG. 2 shows a schematic diagram of the structure of a second embodiment of the test system provided by the present invention. Figure 3 As shown, the alcohol interlock device 203 to be tested includes an alcohol lock 2031 to be tested; the test system 200 also includes a drive structure 204 , the drive structure 204 is connected to the host computer 201 , and the alcohol lock 2031 to be tested is arranged on the drive structure 204 .

[0042] The alcohol lock to be tested 2031 represents the alcohol lock to be tested.

[0043] The driving structure 204 is used to drive the alcohol lock to be tested to move, that is, the driving structure can control the distance between the alcohol gas generator 202 and the alcohol lock 2031 to be tested. In this way, the blowing distance between the driver and the alcohol lock can be simulated.

[0044] Optionally, the driving structure 204 may include a driving motor 2041 and a screw structure 2042; the driving motor 2041 is connected to the host computer 201, the driving motor 2041 and the screw structure 2042 are movably connected, and the alcohol lock 2031 to be tested is fixedly arranged on the screw structure 2042. In this way, the host computer can control the motor to drive the screw structure to move, thereby driving the alcohol lock to be tested to move.

[0045] In this way, the alcohol gas generator can simulate the driver's blowing behavior, and the driving structure drives the alcohol lock to be tested to move, which can simulate the blowing distance between the driver and the alcohol lock, thereby more accurately simulating the driver's blowing process into the alcohol lock and improving the accuracy of the test.

[0046] In some embodiments, reference Figure 4 As shown, Figure 4 FIG. 2 shows a schematic diagram of the structure of the third embodiment of the test system provided by the present invention. Figure 4 As shown, the alcohol interlock device 203 to be tested includes an alcohol lock 2031 to be tested and a vehicle computer 2032 to be tested; the test system 200 also includes a terminal block 205, a power supply 206, a collection device 207 and a bus collection device 208; the terminal block 205 is respectively connected to the alcohol lock 2031 to be tested, the vehicle computer 2032 to be tested, the bus collection device 208, and the power supply 206; the bus collection device 208 is connected to the host computer 201; and the collection device 207 is connected to the host computer 201.

[0047] The vehicle computer to be tested 2032 represents the vehicle computer to be tested.

[0048] The terminal block 205 is an electrical connection device that can connect multiple circuits together to facilitate circuit wiring and management.

[0049] The power supply 206 is used to supply power to the equipment of the test system. It should be noted that the embodiment of the present invention does not limit the type of the power supply. By connecting the power supply to the terminal block, the equipment connected to the terminal block can be supplied with power.

[0050] The acquisition device 207 is used to acquire information generated by the vehicle to be tested. The acquisition device can be an image acquisition device, such as a camera or a webcam or other electronic device with an image acquisition function; or an audio acquisition device, such as a microphone or other electronic device with a recording function. The embodiment of the present invention does not limit the type of acquisition device, and it can be set according to actual needs.

[0051] The bus acquisition device 208 is used to acquire information transmitted in the bus.

[0052] In this way, the alcohol interlock device to be tested and the bus acquisition device are connected by using a terminal block, which makes it easy to replace the alcohol interlock device to be tested. In other words, when replacing the alcohol interlock device to be tested, it is only necessary to connect the updated alcohol interlock device to be tested to the terminal block, without changing other equipment in the test system, thereby improving the test efficiency.

[0053] In some embodiments, in order to ensure the accuracy of the test, the test system may also include some supporting equipment, such as an operating table, for placing the alcohol gas generator and the drive structure to ensure the stability of the alcohol lock to be tested, thereby ensuring the accuracy of the test results generated by the alcohol lock to be tested, thereby improving the accuracy of the test results. The supporting equipment may also include a dark box for placing the vehicle machine to be tested and the acquisition device to ensure the accuracy of the feedback information collected by the acquisition device, thereby improving the accuracy of the test results.

[0054] Figure 5 The flowchart of the first embodiment of the test method of the alcohol interlock device provided by the present invention is shown, and the method is executed by the host computer. Figure 2 and Figure 5 As shown, the method comprises the following steps:

[0055] S301. Send a first control signal to an alcohol gas generator.

[0056] Exemplarily, the first control signal is used to trigger the alcohol gas generator to generate alcohol gas.

[0057] In some possible implementations, the host computer may generate a first control signal according to a preset test case and send the first control signal to the alcohol gas generator. The preset test case may indicate the alcohol content, and the alcohol gas generator may generate alcohol gas according to the first control signal.

[0058] S302, obtaining actual test results of the alcohol interlock device to be tested.

[0059] Exemplarily, the above actual detection result represents the detection result of the alcohol interlock device to be tested on the alcohol gas generated by the alcohol gas generator. It should be understood that the vehicle to be tested in the alcohol interlock device to be tested needs to determine the detection result of the vehicle to be tested based on the detection result of the alcohol lock to be tested. Therefore, the actual detection result may include only the detection result generated by the vehicle to be tested, or may include the detection result generated by the alcohol lock to be tested and the detection result generated by the vehicle to be tested. The embodiment of the present invention is not limited here.

[0060] In some possible implementations, the host computer can obtain the test results generated by the vehicle computer to be tested in the alcohol interlock device to be tested to obtain the actual test results. For example, the test results generated by the vehicle computer to be tested can be sent directly to the host computer, or the test results generated by the vehicle computer to be tested can be collected by a collection device and then sent to the host computer; or the host computer can obtain the test results generated by the alcohol lock to be tested in the alcohol interlock device to be tested to obtain the actual test results. For example, the host computer can use a bus collection device to collect information sent by the alcohol lock to be tested to the vehicle computer to be tested to obtain the actual test result.

[0061] S303: Determine the test result of the alcohol interlock device to be tested according to the actual test result.

[0062] Exemplarily, the above test results indicate whether the alcohol interlock device to be tested functions normally.

[0063] In some possible implementations, as mentioned above, the host computer can generate a first control signal according to a test case, and the test case corresponds to a theoretical test result, in other words, a correct test result under the test case. Therefore, after obtaining the actual test result, the host computer can compare the actual test result with the theoretical test result. If the two are determined to be consistent, it means that the function of the alcohol interlock device to be tested is normal, and the test of the alcohol interlock device to be tested is determined to have passed; if the two are determined to be inconsistent, it means that the function of the alcohol interlock device to be tested is abnormal, and the test of the alcohol interlock device to be tested is determined to have failed.

[0064] In this embodiment, based on a test system including a host computer, an alcohol interlock device to be tested, and an alcohol gas generator, the host computer can automatically control the alcohol gas generator to produce alcohol gas, and then obtain the actual detection result of the alcohol interlock device to be tested on the alcohol gas, and determine the test result of the alcohol interlock device to be tested based on the actual detection result. In this way, the host computer can automatically test the alcohol interlock device to be tested, obtain the test result, and improve the test efficiency.

[0065] Figure 6 The flowchart of the second embodiment of the alcohol interlock device testing method provided by the present invention is shown, and the method is executed by the host computer. Figure 4 and Figure 6 As shown, the method comprises the following steps:

[0066] S401. Generate a first control signal according to a preset test case.

[0067] Exemplarily, the preset test case represents the driver's blowing scenario, which may include, for example: a. driver blowing hard, b. driver blowing softly, c. driver stopping blowing early, d. driver blowing at a long distance to the alcohol lock, e. driver blowing at a close distance to the alcohol lock, f. driver effective distance and effective blowing time scenario, etc. It should be noted that the embodiment of the present invention does not limit the content of the test case, and the above is only an illustration.

[0068] Optionally, the test case may indicate gas emission information, which includes one or more of the following: gas content, gas concentration, and gas emission duration. The gas content represents the total amount of alcohol gas generated, the gas concentration represents the alcohol concentration in the generated alcohol gas, and the gas emission duration represents the duration of generating alcohol gas. The gas emission information may also include blowing strength, for example, soft blowing and strong blowing.

[0069] The first control signal may indicate the information of the gas emission. It should be noted that the embodiment of the present invention does not limit the form of the first control signal, which is specifically related to the setting of the alcohol gas generator, for example, it may be a pulse width modulation (PWM) signal.

[0070] In some possible implementations, the above-mentioned preset test cases may be pre-stored in a host computer, or may be acquired by the host computer through communication with other electronic devices. Optionally, a test case library may be preset in the host computer, and the test case library includes multiple test cases. For example, Table 1 is a schematic diagram of a test case library provided in an embodiment of the present invention.

[0071] Table 1 Test case library

[0072] Serial number Gas content Gas concentration Gas emission time Test Case 1 Content 1 Concentration 1 Duration 1 Test Case 2 Content 2 Concentration 2 Duration 2 Test case 3 Content 3 Concentration 3 Duration 3

[0073] In some possible implementations, the host computer may randomly determine a test case as the test case for the alcohol interlock device to be tested, and then generate a first control signal according to the test case. Alternatively, the host computer may receive a test case specified by a user, and generate a first control signal according to the specified test case. Alternatively, the host computer may test the alcohol interlock device to be tested in sequence according to all test cases in the test case library, and generate a first control signal corresponding to each test case in sequence according to each test case.

[0074] S402: Send a first control signal to the alcohol gas generator.

[0075] Exemplarily, the host computer may send the first control signal to the alcohol gas generator.

[0076] Optionally, the alcohol gas generator can generate corresponding alcohol gas according to the first control signal. For example, the alcohol gas generator can include a controller, and the controller can adjust the temperature of the heating element based on the first control signal so that the liquid alcohol evaporates to generate alcohol gas. It should be noted that the embodiment of the present invention does not limit how to generate alcohol gas.

[0077] Optionally, after the alcohol gas generator generates alcohol gas, the alcohol interlock device to be tested can generate a detection result based on the alcohol gas.

[0078] S403: Receive detection information sent by the bus acquisition device.

[0079] Exemplarily, the above detection information represents the information generated by the alcohol lock to be tested. The detection information may include, for example, the authentication result of the alcohol lock, the current working status information of the alcohol lock, the remaining time for the alcohol lock to be disabled and restored, etc.; wherein, the authentication result of the alcohol lock represents whether the alcohol lock can be powered on, and the authentication result may include authentication success, authentication failure, and pending authentication, etc. The current working status information of the alcohol lock represents the current state of the alcohol lock, and may include, for example, normal state, initial test state, retest state, analysis state, error state, locked state, etc. The remaining time for the alcohol lock to be disabled and restored represents the time required to wait for retesting after the alcohol lock is locked.

[0080] In some possible implementations, as mentioned above, the alcohol lock to be tested can detect alcohol gas, and then generate detection information, and send it to the vehicle to be tested through the bus, so that the vehicle to be tested determines whether the vehicle can be started based on the detection information. Therefore, the host computer can collect the detection information on the bus based on the bus acquisition device and receive the detection information sent by the bus acquisition device.

[0081] S404: Receive feedback information sent by the collection device.

[0082] Exemplarily, the above feedback information represents the information generated by the vehicle computer to be tested and collected by the collection device. Optionally, the vehicle computer to be tested can generate prompt information based on the detection information sent by the alcohol lock to be tested, and the prompt information corresponds to the detection information one by one. The prompt information can be, for example, text information displayed on the vehicle computer to be tested, or it can be output voice information. Therefore, the collection device can take a picture of the text information displayed on the vehicle computer to be tested, obtain a picture, that is, the feedback information, and send it to the host computer; or the collection device can collect the voice information output by the vehicle computer to be tested, obtain audio, that is, the feedback information, and send it to the host computer.

[0083] For example, Table 2 is a schematic diagram of detection information and feedback information provided by an embodiment of the present invention. It should be noted that the embodiment of the present invention does not limit the content of the detection information and feedback information, and Table 2 is only a schematic diagram.

[0084] Table 2 Detection information and feedback information

[0085]

[0086]

[0087] S405. Determine the test result of the alcohol interlock device to be tested according to the actual test result and the theoretical test result corresponding to the preset test case.

[0088] Exemplarily, the above theoretical detection structure represents the correct detection result generated by the alcohol interlock device under the test case. Optionally, the theoretical detection result may include theoretical feedback information and theoretical detection information, wherein the theoretical feedback information represents the correct information that the vehicle under test should generate under the test case, and the theoretical detection information represents the correct information that the alcohol interlock device under the test case should generate under the test case.

[0089] The above-mentioned preset test cases have a one-to-one correspondence with the theoretical detection results, and the theoretical detection results can be obtained together when the test cases are obtained. For example, a test case library can be preset in the host computer, and the test case library can include test cases and theoretical detection results corresponding to the test cases. For example, Table 3 is a schematic diagram of another test case library provided in an embodiment of the present invention.

[0090] Table 3 Test case library

[0091] Serial number Gas content Gas concentration Gas emission time Theoretical test results Test Case 1 Content 1 Concentration 1 Duration 1 Result 1 Test Case 2 Content 2 Concentration 2 Duration 2 Result 2 Test case 3 Content 3 Concentration 3 Duration 3 Result 3

[0092] Therefore, the host computer can determine the theoretical test result corresponding to the test case based on the test case used this time, and then compare the actual test result with the theoretical test result corresponding to the test case to determine the test result of the alcohol interlock device to be tested.

[0093] Specifically, this step may include the following steps:

[0094] S4051. Determine the test result of the vehicle computer to be tested according to the feedback information and the theoretical feedback information.

[0095] In a possible implementation, if the feedback information is a picture, the host computer can determine the first eigenvector of the picture and the second eigenvector of the theoretical feedback information according to a preset detection model, and then determine the similarity between the first eigenvector and the second eigenvector. If the similarity is greater than or equal to a preset threshold, the two are determined to be consistent, and the function of the vehicle to be tested is determined to be normal; if the similarity is less than the preset threshold, the two are determined to be inconsistent, and the function of the vehicle to be tested is determined to be abnormal. The detection model can be, for example, a convolutional neural network model, which is not limited in the embodiments of the present invention.

[0096] Alternatively, a comparison model is preset in the host computer, and the pictures in the feedback information and the pictures in the theoretical feedback information are input into the comparison model together, and a comparison result is output. The comparison result is used to characterize the similarity between the feedback information and the theoretical feedback information. If the comparison result indicates that the two are consistent, it is determined that the function of the vehicle computer to be tested is normal, otherwise.

[0097] In another possible implementation, if the feedback information is audio, the host computer can determine the third eigenvector in the audio of the feedback information and the fourth eigenvector of the theoretical feedback information, and then determine the similarity between the third eigenvector and the fourth eigenvector. If the similarity is greater than or equal to a preset threshold, the two are determined to be consistent, and the function of the vehicle machine to be tested is determined to be normal; if the similarity is less than the preset threshold, the two are determined to be inconsistent, and the function of the vehicle machine to be tested is determined to be abnormal.

[0098] S4052: Determine the test result of the alcohol lock to be tested according to the test information and theoretical test information.

[0099] Exemplarily, the detection information may be collected in the form of a signal, so the host computer may compare whether the signal of the detection information is consistent with the signal of the theoretical detection information. If they are consistent, it is determined that the function of the alcohol lock to be tested is normal; if they are inconsistent, it is determined that the function of the alcohol lock to be tested is abnormal.

[0100] S4053. Determine the test result of the alcohol interlock device to be tested according to the test result of the vehicle computer to be tested and the test result of the alcohol lock to be tested.

[0101] Exemplarily, if the upper computer determines that the function of the vehicle to be tested and the function of the alcohol lock to be tested are both normal, then it is determined that the function of the alcohol interlock device to be tested is normal, that is, the alcohol interlock device to be tested passes the test; if it is determined that there is a functional abnormality in either, then it is determined that the function of the alcohol interlock device to be tested is abnormal, that is, the alcohol interlock device to be tested fails the test.

[0102] In this embodiment, the host computer can generate a first control signal based on the test case to control the alcohol gas generator to generate alcohol gas, and then determine the test result of the alcohol interlock device to be tested according to the received detection information and feedback information, as well as the theoretical detection result corresponding to the test case. In this way, the host computer can control the alcohol gas generator to simulate the driver's blowing behavior, and automatically collect the detection results, and then compare them with the theoretical detection results to obtain the test results, thereby intelligently implementing the test of the alcohol interlock device and improving the test efficiency.

[0103] Figure 7The flowchart of the third embodiment of the test method of the alcohol interlock device provided by the present invention is shown, and the method is executed by the host computer. Figure 4 and Figure 7 As shown, the method comprises the following steps:

[0104] S501. Generate a second control signal according to a preset test case.

[0105] Exemplarily, the above-mentioned preset test case can indicate the moving distance of the driving structure, and the second control signal is used to trigger the driving structure to move. Optionally, the driving structure can include a driving motor and a screw structure; the driving motor is movably connected to the screw structure, and the alcohol lock to be tested is fixedly arranged on the screw structure; therefore, the second control signal can indicate the moving distance of the screw structure relative to the driving motor.

[0106] In a possible implementation, the preset test case includes the moving distance. For example, Table 4 is a schematic diagram of another test case library provided by an embodiment of the present invention. The host computer may generate a second control signal based on the test case.

[0107] Table 4 Test case library

[0108]

[0109] S502: Send a second control signal to the driving structure.

[0110] Exemplarily, the host computer can send the second control signal to the motor of the drive structure, so that the motor drives the screw structure to move the alcohol lock to be tested based on the second control signal to simulate the blowing distance when the driver blows into the alcohol lock.

[0111] S503: Generate a first control signal according to a preset test case.

[0112] It should be noted that this step is similar to step S401 and will not be described again here.

[0113] S504: Send a first control signal to the alcohol gas generator.

[0114] It should be noted that this step is similar to step S402 and will not be described again here.

[0115] S505: Receive detection information sent by the bus acquisition device.

[0116] It should be noted that this step is similar to step S403 and will not be repeated here.

[0117] S506: Receive feedback information sent by the collection device.

[0118] It should be noted that this step is similar to step S404 and will not be repeated here.

[0119] S507: Determine the test result of the vehicle computer to be tested according to the feedback information and the theoretical feedback information.

[0120] It should be noted that this step is similar to step S4051 and will not be repeated here.

[0121] S508: Determine the test result of the alcohol lock to be tested according to the test information and the theoretical test information.

[0122] It should be noted that this step is similar to step S4052 and will not be repeated here.

[0123] S509: Determine the test result of the alcohol interlock device to be tested according to the test result of the vehicle computer to be tested and the test result of the alcohol lock to be tested.

[0124] It should be noted that this step is similar to step S4053 and will not be repeated here.

[0125] In this embodiment, the host computer generates a second control signal based on the test case to control the driving structure to drive the alcohol lock to be tested to move, simulate the blowing distance when the driver blows into the alcohol lock, and then control the alcohol gas generator to generate alcohol gas, and determine the test result of the alcohol interlock device to be tested according to the received detection information and feedback information, as well as the theoretical detection result corresponding to the test case. In this way, the host computer can not only control the alcohol gas generator to simulate the driver's blowing behavior, but also control the driving structure to simulate the distance of the driver's blowing, simulate the blowing process more accurately and comprehensively, and automatically collect the detection results, and then compare them with the theoretical detection results to obtain the test results, so as to intelligently implement the test of the alcohol interlock device, improve the test efficiency, and improve the test accuracy.

[0126] Figure 8 FIG. 2 is a schematic diagram showing a structure of an embodiment of a testing device for an alcohol interlock device provided by the present invention. Figure 8 As shown, the device 600 includes:

[0127] The sending module 601 is used to send a first control signal to the alcohol gas generator; wherein the first control signal is used to trigger the alcohol gas generator to produce alcohol gas;

[0128] The acquisition module 602 is used to acquire the actual detection result of the alcohol interlock device to be tested; wherein the actual detection result represents the detection result of the alcohol interlock device to be tested on the alcohol gas generated by the alcohol gas generator;

[0129] The determination module 603 is used to determine the test result of the alcohol interlock device to be tested according to the actual detection result.

[0130] In some possible implementations, the alcohol interlock device to be tested includes an alcohol lock to be tested and a vehicle computer to be tested; the vehicle computer to be tested and the alcohol lock to be tested are connected via a bus; the test system further includes a bus acquisition device; the bus acquisition device is connected to the bus between the vehicle computer to be tested and the alcohol lock to be tested, and the bus acquisition device is connected to the host computer; the acquisition module 602 is specifically used to:

[0131] Receive the detection information sent by the bus acquisition device; wherein the detection information represents the information generated by the alcohol lock to be tested.

[0132] In some possible implementations, the test system further includes a collection device; the collection device is connected to the host computer; an acquisition module 602 is specifically used to:

[0133] Receive feedback information sent by the acquisition device; wherein the feedback information represents the information generated by the vehicle computer to be tested and acquired by the acquisition device.

[0134] In some possible implementations, the determining module 603 is specifically configured to:

[0135] The test result of the alcohol interlock device to be tested is determined according to the actual test result and the theoretical test result corresponding to the preset test case; wherein the preset test case represents the test requirement.

[0136] In some possible implementations, the theoretical detection result includes theoretical feedback information and theoretical detection information, and the determination module 603 is specifically configured to:

[0137] Determining a test result of the vehicle computer to be tested according to the feedback information and the theoretical feedback information;

[0138] Determine the test result of the alcohol lock to be tested according to the test information and the theoretical test information;

[0139] The test result of the alcohol interlock device to be tested is determined according to the test result of the vehicle computer to be tested and the test result of the alcohol lock to be tested.

[0140] In some possible implementations, the device further includes a generating module, configured to:

[0141] The first control signal is generated according to a preset test case; wherein the preset test case indicates gas emission information, and the gas emission information includes one or more of the following: gas content, gas concentration, and gas emission duration.

[0142] In some possible implementations, the alcohol interlock device to be tested includes an alcohol lock to be tested, the test system further includes a drive structure, the drive structure is connected to the host computer, and the alcohol lock to be tested is arranged on the drive structure; before the acquisition module 602 is used to obtain the actual detection result of the alcohol interlock device to be tested, the sending module 601 is specifically used to:

[0143] A second control signal is sent to the driving structure; wherein the second control signal is used to trigger the driving structure to move.

[0144] In some possible implementations, the driving structure includes a driving motor and a screw structure; the driving motor is connected to the host computer, the driving motor and the screw structure are movably connected, and the alcohol lock to be tested is fixedly arranged on the screw structure;

[0145] The second control signal indicates a movement distance of the screw structure relative to the drive motor.

[0146] In some possible implementations, a module is generated to:

[0147] The second control signal is generated according to a preset test case, wherein the preset test case indicates the moving distance of the driving structure.

[0148] In some possible implementations, the alcohol interlock device to be tested includes an alcohol lock to be tested and a vehicle computer to be tested; the test system also includes a terminal block, a power supply and a bus acquisition device; the terminal block is respectively connected to the alcohol lock to be tested, the vehicle computer to be tested, the bus acquisition device and the power supply; the bus acquisition device is connected to the host computer.

[0149] It can be seen from the above that the testing device for the alcohol interlock device provided in the embodiment of the present invention can automatically test the alcohol interlock device to be tested, obtain the test results, and improve the test efficiency.

[0150] Fig. 9 The schematic diagram of the structure of an embodiment of the host computer provided by the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the host computer.

[0151] like Fig. 9 As shown, the host computer may include: a processor (processor) 702 , a communication interface (Communications Interface) 704 , a memory (memory) 706 , and a communication bus 708 .

[0152] The processor 702, the communication interface 704, and the memory 706 communicate with each other via the communication bus 708. The communication interface 704 is used to communicate with other devices such as a client or other server network elements. The processor 702 is used to execute the program 710, which can specifically execute the relevant steps in the above-mentioned embodiment of the test method for the alcohol interlock device.

[0153] Specifically, the program 710 may include program code including computer executable instructions.

[0154] The processor 702 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the host computer may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0155] The memory 706 is used to store the program 710. The memory 706 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0156] Program 710 can be specifically called by processor 702 to enable the host computer to perform the following operations:

[0157] Sending a first control signal to the alcohol gas generator; wherein the first control signal is used to trigger the alcohol gas generator to produce alcohol gas;

[0158] Acquire an actual detection result of the alcohol interlock device to be tested; wherein the actual detection result represents a detection result of the alcohol interlock device to be tested on the alcohol gas generated by the alcohol gas generator;

[0159] According to the actual detection result, the test result of the alcohol interlock device to be tested is determined.

[0160] In some possible implementations, the alcohol interlock device to be tested includes an alcohol lock to be tested and a vehicle computer to be tested; the vehicle computer to be tested and the alcohol lock to be tested are connected via a bus; the test system further includes a bus acquisition device; the bus acquisition device is connected to the bus between the vehicle computer to be tested and the alcohol lock to be tested, and the bus acquisition device is connected to the host computer; obtaining the actual detection result of the alcohol interlock device to be tested includes:

[0161] Receive the detection information sent by the bus acquisition device; wherein the detection information represents the information generated by the alcohol lock to be tested.

[0162] In some possible implementations, the test system further includes a collection device; the collection device is connected to the host computer; and obtaining the actual test result of the alcohol interlock device to be tested includes:

[0163] Receive feedback information sent by the acquisition device; wherein the feedback information represents the information generated by the vehicle computer to be tested and acquired by the acquisition device.

[0164] In some possible implementations, determining the test result of the alcohol interlock device to be tested according to the actual test result includes:

[0165] The test result of the alcohol interlock device to be tested is determined according to the actual test result and the theoretical test result corresponding to the preset test case; wherein the preset test case represents the test requirement.

[0166] In some possible implementations, the theoretical detection result includes theoretical feedback information and theoretical detection information, and determining the test result of the alcohol interlock device to be tested according to the actual detection result and the theoretical detection result corresponding to the preset test case includes:

[0167] Determining a test result of the vehicle computer to be tested according to the feedback information and the theoretical feedback information;

[0168] Determine the test result of the alcohol lock to be tested according to the test information and the theoretical test information;

[0169] The test result of the alcohol interlock device to be tested is determined according to the test result of the vehicle computer to be tested and the test result of the alcohol lock to be tested.

[0170] In some possible implementations, before sending the first control signal to the alcohol gas generator, the method further includes:

[0171] The first control signal is generated according to a preset test case; wherein the preset test case indicates gas emission information, and the gas emission information includes one or more of the following: gas content, gas concentration, and gas emission duration.

[0172] In some possible implementations, the alcohol interlock device to be tested includes an alcohol lock to be tested, the test system further includes a drive structure, the drive structure is connected to the host computer, and the alcohol lock to be tested is arranged on the drive structure; before obtaining the actual test result of the alcohol interlock device to be tested, the test system includes:

[0173] A second control signal is sent to the driving structure; wherein the second control signal is used to trigger the driving structure to move.

[0174] In some possible implementations, the driving structure includes a driving motor and a screw structure; the driving motor is connected to the host computer, the driving motor and the screw structure are movably connected, and the alcohol lock to be tested is fixedly arranged on the screw structure;

[0175] The second control signal indicates a movement distance of the screw structure relative to the drive motor.

[0176] In some possible implementations, before sending the second control signal to the driving structure, the method includes:

[0177] The second control signal is generated according to a preset test case, wherein the preset test case indicates the moving distance of the driving structure.

[0178] In some possible implementations, the alcohol interlock device to be tested includes an alcohol lock to be tested and a vehicle computer to be tested; the test system also includes a terminal block, a power supply and a bus acquisition device; the terminal block is respectively connected to the alcohol lock to be tested, the vehicle computer to be tested, the bus acquisition device and the power supply; the bus acquisition device is connected to the host computer.

[0179] It can be seen from the above that the host computer provided in the embodiment of the present invention can automatically test the alcohol interlock device to be tested, obtain the test results, and improve the test efficiency.

[0180] An embodiment of the present invention provides a computer-readable storage medium, which stores at least one executable instruction. When the executable instruction is run on a test device of a host computer / alcohol interlock device, the test device of the host computer / alcohol interlock device executes the test method of the alcohol interlock device in any of the above-mentioned method embodiments.

[0181] The executable instructions can be specifically used to enable the host computer / alcohol interlock device test device to perform the following operations:

[0182] Sending a first control signal to the alcohol gas generator; wherein the first control signal is used to trigger the alcohol gas generator to produce alcohol gas;

[0183] Acquire an actual detection result of the alcohol interlock device to be tested; wherein the actual detection result represents a detection result of the alcohol interlock device to be tested on the alcohol gas generated by the alcohol gas generator;

[0184] According to the actual detection result, the test result of the alcohol interlock device to be tested is determined.

[0185] In some possible implementations, the alcohol interlock device to be tested includes an alcohol lock to be tested and a vehicle computer to be tested; the vehicle computer to be tested and the alcohol lock to be tested are connected via a bus; the test system further includes a bus acquisition device; the bus acquisition device is connected to the bus between the vehicle computer to be tested and the alcohol lock to be tested, and the bus acquisition device is connected to the host computer; obtaining the actual detection result of the alcohol interlock device to be tested includes:

[0186] Receive the detection information sent by the bus acquisition device; wherein the detection information represents the information generated by the alcohol lock to be tested.

[0187] In some possible implementations, the test system further includes a collection device; the collection device is connected to the host computer; and obtaining the actual test result of the alcohol interlock device to be tested includes:

[0188] Receive feedback information sent by the acquisition device; wherein the feedback information represents the information generated by the vehicle to be tested and collected by the acquisition device.

[0189] In some possible implementations, determining the test result of the alcohol interlock device to be tested according to the actual test result includes:

[0190] The test result of the alcohol interlock device to be tested is determined according to the actual test result and the theoretical test result corresponding to the preset test case; wherein the preset test case represents the test requirement.

[0191] In some possible implementations, the theoretical detection result includes theoretical feedback information and theoretical detection information, and determining the test result of the alcohol interlock device to be tested according to the actual detection result and the theoretical detection result corresponding to the preset test case includes:

[0192] Determining a test result of the vehicle computer to be tested according to the feedback information and the theoretical feedback information;

[0193] Determine the test result of the alcohol lock to be tested according to the test information and the theoretical test information;

[0194] The test result of the alcohol interlock device to be tested is determined according to the test result of the vehicle computer to be tested and the test result of the alcohol lock to be tested.

[0195] In some possible implementations, before sending the first control signal to the alcohol gas generator, the method further includes:

[0196] The first control signal is generated according to a preset test case; wherein the preset test case indicates gas emission information, and the gas emission information includes one or more of the following: gas content, gas concentration, and gas emission duration.

[0197] In some possible implementations, the alcohol interlock device to be tested includes an alcohol lock to be tested, the test system further includes a drive structure, the drive structure is connected to the host computer, and the alcohol lock to be tested is arranged on the drive structure; before obtaining the actual test result of the alcohol interlock device to be tested, the test system includes:

[0198] A second control signal is sent to the driving structure; wherein the second control signal is used to trigger the driving structure to move.

[0199] In some possible implementations, the driving structure includes a driving motor and a screw structure; the driving motor is connected to the host computer, the driving motor and the screw structure are movably connected, and the alcohol lock to be tested is fixedly arranged on the screw structure;

[0200] The second control signal indicates a movement distance of the screw structure relative to the drive motor.

[0201] In some possible implementations, before sending the second control signal to the driving structure, the method includes:

[0202] The second control signal is generated according to a preset test case, wherein the preset test case indicates the moving distance of the driving structure.

[0203] In some possible implementations, the alcohol interlock device to be tested includes an alcohol lock to be tested and a vehicle computer to be tested; the test system also includes a terminal block, a power supply and a bus acquisition device; the terminal block is respectively connected to the alcohol lock to be tested, the vehicle computer to be tested, the bus acquisition device and the power supply; the bus acquisition device is connected to the host computer.

[0204] From the above, it can be seen that the computer-readable storage medium provided by the embodiment of the present invention stores at least one executable instruction. When the executable instruction is run on the test device of the host computer / alcohol interlock device, it can automatically test the alcohol interlock device to be tested, obtain the test results, and improve the test efficiency.

[0205] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.

[0206] The methods disclosed in the various method embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new method embodiments.

[0207] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. Similarly, in order to simplify the present invention and help understand one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. Wherein, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself is a separate embodiment of the present invention.

[0208] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and further may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive.

[0209] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.

Claims

1. A method for testing an alcohol interlock device, characterized in that: The method is applied to a host computer in a test system, wherein the test system comprises the host computer, an alcohol gas generator, and an alcohol interlock device to be tested, wherein the host computer is connected to the alcohol gas generator and the alcohol interlock device to be tested respectively; the method comprises: Sending a first control signal to the alcohol gas generator; wherein the first control signal is used to trigger the alcohol gas generator to produce alcohol gas; Acquire an actual detection result of the alcohol interlock device to be tested; wherein the actual detection result represents a detection result of the alcohol interlock device to be tested on the alcohol gas generated by the alcohol gas generator; According to the actual detection result, the test result of the alcohol interlock device to be tested is determined.

2. The method according to claim 1, characterized in that: The alcohol interlock device to be tested includes an alcohol lock to be tested and a vehicle computer to be tested; the vehicle computer to be tested and the alcohol lock to be tested are connected via a bus; the test system also includes a bus acquisition device; the bus acquisition device is connected to the bus between the vehicle computer to be tested and the alcohol lock to be tested, and the bus acquisition device is connected to the host computer; Obtaining the actual test result of the alcohol interlock device to be tested, including: Receive the detection information sent by the bus acquisition device; wherein the detection information represents the information generated by the alcohol lock to be tested.

3. The method according to claim 2, characterized in that The test system further includes a collection device; the collection device is connected to the host computer; and the actual test result of the alcohol interlock device to be tested is obtained, including: Receive feedback information sent by the acquisition device; wherein the feedback information represents the information generated by the vehicle to be tested and collected by the acquisition device.

4. The method according to claim 3, characterized in that Determining the test result of the alcohol interlock device to be tested according to the actual test result includes: The test result of the alcohol interlock device to be tested is determined according to the actual test result and the theoretical test result corresponding to the preset test case; wherein the preset test case represents the test requirement.

5. The method according to claim 4, characterized in that The theoretical detection result includes theoretical feedback information and theoretical detection information. The test result of the alcohol interlock device to be tested is determined according to the actual detection result and the theoretical detection result corresponding to the preset test case, including: Determining a test result of the vehicle computer to be tested according to the feedback information and the theoretical feedback information; Determine the test result of the alcohol lock to be tested according to the test information and the theoretical test information; The test result of the alcohol interlock device to be tested is determined according to the test result of the vehicle computer to be tested and the test result of the alcohol lock to be tested.

6. The method according to claim 1, characterized in that Before sending the first control signal to the alcohol gas generator, the method further includes: The first control signal is generated according to a preset test case; wherein the preset test case indicates gas emission information, and the gas emission information includes one or more of the following: gas content, gas concentration, and gas emission duration.

7. The method according to claim 1, characterized in that The alcohol interlock device to be tested includes an alcohol lock to be tested, and the test system further includes a driving structure, the driving structure is connected to the host computer, and the alcohol lock to be tested is arranged on the driving structure; Before obtaining the actual test result of the alcohol interlock device to be tested, the method includes: Generate a second control signal according to a preset test case; wherein the preset test case indicates the moving distance of the drive structure; and the second control signal is used to trigger the drive structure to move; The second control signal is sent to the driving structure.

8. The method according to claim 7, characterized in that The driving structure comprises a driving motor and a screw structure; the driving motor is connected to the host computer, the driving motor and the screw structure are movably connected, and the alcohol lock to be tested is fixedly arranged on the screw structure; The second control signal indicates a movement distance of the screw structure relative to the drive motor.

9. The method according to any one of claims 1 to 8, characterized in that: The alcohol interlock device to be tested includes an alcohol lock to be tested and a vehicle computer to be tested; the test system also includes a terminal block, a power supply and a bus acquisition device; the terminal block is respectively connected to the alcohol lock to be tested, the vehicle computer to be tested, the bus acquisition device and the power supply; the bus acquisition device is connected to the host computer.

10. A testing system, characterized in that: The test system includes a host computer, an alcohol gas generator, and an alcohol interlock device to be tested, wherein the host computer is respectively connected to the alcohol gas generator and the alcohol interlock device to be tested; wherein the host computer is used to execute the method described in any one of claims 1-9.