An intelligent vehicle computer automatic testing system, method and application thereof
Through the converter between the serial port protocol and the CAN bus protocol, the automated function test of smart car machines is realized, solving the problems of high manual operation time and high defect rate, improving the testing efficiency and accuracy, and reducing labor costs and defect rate.
Patent Information
- Application Number
- CN202011583941.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-28
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2040-12-28
AI Technical Summary
The existing intelligent vehicle inspection methods rely on manual operation, resulting in time-consuming, high labor costs, and easy to be human interference. The product has a high defect rate after leaving the factory, and the workers have a low level of education, so they cannot operate complex processes, and the efficiency of automated testing Low, the test results are inaccurate.
The converter between the serial port protocol and the CAN bus protocol is adopted to send instructions and receive response data through the PC software to realize automated functional testing of smart car machines, reduce manual intervention, and improve test efficiency and accuracy.
The machine automatic testing is realized, which reduces labor costs, improves testing efficiency and accuracy, and reduces product defect rate. Workers can test multiple machines at the same time, shortening the test time and significantly reducing the product defect rate.
Smart Images

Figure CN112631847B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent detection technology, and in particular to an intelligent vehicle machine automatic testing system, method and application thereof. Background Art
[0002] As an in-vehicle entertainment, audio-visual and driving assistance device, the functions of smart car machines are numerous and complex. In order to ensure product quality, each machine needs to be fully tested manually before leaving the factory, which consumes a lot of labor costs. However, the defective rate of products after leaving the factory is still at a high level. The current market for automobile-related products continues to decline, competition intensifies, product profits decline, and labor costs continue to rise, and many companies are overwhelmed. Therefore, inventing an automated testing method for smart car machines is a problem that the entire industry currently needs to solve.
[0003] The smart car machine is installed on the car and generally communicates with other ECUs using the CAN protocol. Most models have a CAN bus interface, but the CAN bus type and rate are different. For production line workers, operating the CAN bus is quite complicated, while operating the host software of the PC terminal is relatively simple. To achieve automated testing, it is also necessary to build a data channel between the PC host software and the smart car machine. Since the PC side generally does not have a CAN interface, but has a serial port, a serial port to CAN protocol converter is also required.
[0004] In summary, the problems existing in the prior art are: the existing intelligent vehicle machine detection methods mostly use manual click operation detection, which has the disadvantages of being labor-consuming and time-consuming, high labor costs, and easy human interference in the detection results, resulting in missed detection, under-detection, and mis-detection, and a high defective rate of products after leaving the factory. The purpose of the present invention is to transform most of the repetitive and tedious testing work into machine-automated testing, reduce labor costs, use machine testing, reduce human intervention, and ensure accurate and efficient test results.
[0005] The difficulty in solving the above technical problems lies in: 1. Factory workers have low educational levels, are frequently replaced, and are unable to operate complex processes; 2. Automated testing should cover all required test items as much as possible and minimize manual intervention; 3. The time for testing each machine cannot be too long and efficiency must be high; 4. The accuracy of the test results must be high enough.
[0006] The significance of solving the above technical problems lies in: 1. Reducing the production cost of smart car machines 2. Improving testing efficiency 3. Reducing the defective rate of finished products after leaving the factory. Summary of the invention
[0007] In order to overcome the problems existing in the related technologies, the disclosed embodiments of the present invention provide an intelligent vehicle machine automatic testing system, method and application thereof, aiming to solve the problem of manual function testing of finished intelligent vehicle machine products before they leave the factory, and adopt machine automatic testing to eliminate faulty products, avoid human errors, reduce product defect rate, improve testing efficiency and save labor costs. The technical solution is as follows:
[0008] The intelligent vehicle computer automatic testing method comprises the following steps:
[0009] Step 1: The PC software of the host computer sends instructions to the bus converter through the serial port protocol, configures the bus converter, and selects the CAN channel type and communication rate to be converted;
[0010] Step 2: The PC software on the computer sends the function test command to the bus converter through the serial port protocol. The bus converter converts the received serial port protocol data into CAN bus protocol data and sends it to the smart car machine.
[0011] Step 3: The intelligent vehicle computer receives the CAN bus data and responds accordingly, and sends the test response data back to the bus converter through the CAN bus. The bus converter then sends the data back to the PC software through the serial port protocol.
[0012] Step 4: The PC software determines whether the function has passed the test based on the response data returned, and records and displays the test status of each function. After testing a function, the PC software automatically issues the next test instruction until all function tests are completed.
[0013] In one embodiment, in step three, if no response data is received within 300ms after the PC software sends the functional test instruction, the test is considered to have failed.
[0014] In one embodiment, in step 4, if all function item tests pass the test, the machine is considered to have passed the machine automation test. As long as one or more function tests fail, it is considered to have failed the test, and the result is finally displayed on the PC software.
[0015] Another object of the present invention is to provide a system for implementing the intelligent vehicle machine automatic testing method, the intelligent vehicle machine automatic testing system comprising:
[0016] The PC host computer is connected to the bus converter through the universal synchronous / asynchronous serial transmitter / receiver UART interface and serves as a control terminal;
[0017] The bus converter is connected to the PC-side host computer through a serial port interface, converts the serial port protocol data received from the PC-side host computer into CAN messages and sends them to the smart car computer, and converts the CAN data received from the smart car computer into corresponding serial port protocol data and sends them to the smart car computer;
[0018] The intelligent vehicle computer is connected to the bus converter via the CAN bus, makes corresponding functional responses after receiving the signal, and sends the test response data back to the bus converter via the CAN bus.
[0019] In one embodiment, the bus data converter includes one high-speed CAN interface, one fault-tolerant CAN interface, one single-line CAN interface, one serial port interface, and one LCD12864 liquid crystal display module;
[0020] The high-speed CAN interface, the fault-tolerant CAN interface, the single-line CAN interface and the serial port interface are all connected to the LCD12864 liquid crystal display module through the MCU controller.
[0021] In one embodiment, the bus data converter converts the serial port protocol data of the PC software on the computer into CAN messages, transmits them to the smart car machine under test through a high-speed CAN, a fault-tolerant CAN or a single-line CAN interface, and then converts the test result message sent back by the smart car machine through the CAN bus into serial port protocol data and transmits it to the PC software.
[0022] Another object of the present invention is to provide a computer program product stored on a computer-readable medium, including a computer-readable program, which, when executed on an electronic device, provides a user input interface to implement the intelligent vehicle computer automatic testing method.
[0023] Another object of the present invention is to provide a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and when the computer program is executed by the processor, the processor performs the following steps:
[0024] The PC software of the host computer on the PC side sends instructions to the bus converter through the serial port protocol, configures the bus converter, and selects the CAN channel type and communication rate to be converted;
[0025] The PC software on the computer sends the function test command to the bus converter through the serial port protocol. The bus converter converts the received serial port protocol data into CAN bus protocol data and sends it to the smart car machine.
[0026] The intelligent vehicle computer receives the CAN bus data and responds accordingly, and sends the test response data back to the bus converter through the CAN bus. The bus converter then sends the data back to the PC software through the serial port protocol.
[0027] The PC software determines whether the function has passed the test based on the returned response data, and records and displays the test status of each function. After testing a function, the PC software automatically issues the next test instruction until all function tests are completed.
[0028] Another object of the present invention is to provide a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the intelligent vehicle computer automated testing method.
[0029] Another object of the present invention is to provide an information data processing terminal, which includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the intelligent vehicle automatic testing method.
[0030] The technical solution provided by the embodiments disclosed in the present invention may have the following beneficial effects:
[0031] After the present invention adopts machine automation testing, a worker can now test 3 to 5 machines at the same time instead of only being able to test one machine at the same time, and the time to test one machine is reduced from more than 10 minutes to less than 5 minutes; it is convenient, fast, efficient, low in labor cost, higher in reliability and better in stability. The bus converter contains multiple types of CAN bus interfaces, which can be reused and compatible with more different bus type machine tests.
[0032] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0034] Figure 1 It is a schematic diagram of the intelligent vehicle machine automatic testing system provided by the present invention.
[0035] Figure 2 It is a schematic diagram of the PC-side host computer provided by the present invention.
[0036] Figure 3 It is a schematic diagram of the bus converter provided by the present invention.
[0037] Reference numerals:
[0038] 1. PC host computer; 2. Bus converter; 3. Intelligent vehicle computer. DETAILED DESCRIPTION
[0039] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention, so the present invention is not limited by the specific implementation disclosed below.
[0040] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used in the present invention are for illustrative purposes only and do not represent the only implementation method.
[0041] Unless otherwise defined, all technical and scientific terms used in the present invention have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used in the present invention in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used in the present invention includes any and all combinations of one or more of the related listed items.
[0042] The intelligent vehicle machine automatic test system includes: a PC host computer 1, a bus converter 2, and an intelligent vehicle machine 3.
[0043] The PC host computer 1 includes an edit box for displaying test information, a CAN channel drop-down selection box, a baud rate drop-down selection box, a CAN channel configuration button, a start test button, and a stop test button. As the control terminal of the entire system, it is used to configure the CAN channel of the bus converter 2, control the normal operation of the entire test process, and determine the test results. Each test function will display the test results, and after all function tests are completed, the test results of the entire machine will be displayed.
[0044] The block diagram of bus converter 2 is as follows Figure 3As shown, in order to be compatible with different models of products, the bus data converter includes one high-speed CAN, one fault-tolerant CAN and one single-line CAN interface, one serial port interface, an LCD12864 liquid crystal display module, etc. The function of the bus data converter is to convert the serial port protocol data of the PC software on the computer into CAN messages, and transmit them to the tested intelligent vehicle machine 3 through the high-speed CAN or fault-tolerant CAN or single-line CAN interface, and then convert the test result message sent back by the intelligent vehicle machine 3 through the CAN bus into serial port protocol data and transmit it to the PC software. The PC software can send special instructions to configure the destination bus channel and rate converted by the bus converter 2. After the configuration is completed, the bus converter 2 returns the configuration result to the PC software. The LCD12864 liquid crystal module is used to display the destination CAN channel information converted by the bus converter 2. The high-speed CAN transceiver of the bus converter 2 uses the TJA1043 chip, the fault-tolerant CAN transceiver uses the TJA1055 chip, the single-line CAN transceiver uses the AU5790 chip, and the MCU uses the Renesas R7F701013 chip.
[0045] The PC host computer 1 and the bus converter 2 are connected by a serial port interface, and the bus converter 2 and the intelligent vehicle computer 3 are connected by a CAN bus. Through the conversion of the bus converter 2, the PC host computer 1 and the bus converter 2 communicate by a serial port protocol, and the bus converter 2 and the intelligent vehicle computer 3 communicate by a CAN bus.
[0046] During the test, the production line worker first connects the bus converter 2 to the computer equipped with the PC-side automated test host computer through the serial port interface, and connects the CAN bus of the smart car machine 3 to the corresponding CAN bus of the bus converter 2. Then operate the PC-side host computer 1, select the corresponding CAN baud rate and channel type, click the Configure CAN Channel button to send the corresponding serial port command to the bus converter 2 to configure the CAN channel. After the bus converter 2 responds, it returns the configuration result signal to the PC-side host computer 1. The PC-side host computer 1 determines whether the bus converter 2 is successfully configured through the return signal, and displays the result in the edit box of the PC-side host computer 1. After the CAN channel of the bus converter 2 is successfully configured, you can click the Start Test button to start the test.
[0047] After clicking the start test button, the PC host computer 1 sends a function test command to the bus converter 2 through the serial port protocol. The bus converter 2 converts the received serial port protocol data into CAN bus protocol data and sends it to the intelligent vehicle machine 3. The intelligent vehicle machine 3 receives the CAN bus data and makes a corresponding functional response, and sends the test response result back to the bus converter 2 through the CAN bus. The bus converter 2 then sends the data back to the PC software through the serial port protocol. The PC software determines whether the function passes the test based on the response data sent back, and records and displays the test status of each function. After testing a function, the PC software automatically issues the next test command until all function tests are completed. If all function items pass the test, it is considered that the machine passes the machine automation test. As long as one or more function tests fail, it is considered that the test fails, and finally the result is displayed on the PC software. If the PC software does not receive the response data within 300mS after sending the function test command, it is considered that the test fails. The waiting time for individual special functions is adjusted according to the actual situation. The intelligent vehicle machine 3 needs to integrate the software that responds to the function test to support the function test.
[0048] For example, when testing the function of turning on the radio, the PC software sends the command data FF EE 0003 00 01 00 00 00 00 to bus converter 2 through the serial port protocol. Bus converter 2 converts the received serial port protocol command into CAN message ID: 0x7FE data: 00 03 00 01 00 00 00 00 and sends it to smart car machine 3. After receiving it, smart car machine 3 executes the action of turning on the radio. If it is turned on successfully, it returns the CAN message ID: 0x7FD data: 00 03 00 01 00 00 00 01. If it fails, it returns the CAN message ID: 0x7FD data: 00 03 00 01 00 00 00 00. Bus converter 2 then converts the CAN message into serial port protocol data FF 55 00 03 00 01 00 00 00 01 or FF 55 00 03 00 01 00 00 00 00 is returned to the PC software, and the PC software determines whether the radio function test succeeds or fails based on the return data from bus converter 2.
[0049] The test system is easy to operate and easy for production line workers to learn and operate. After using this automated test system, the production efficiency of the intelligent vehicle machine 3 has been greatly improved. Originally, each worker could only test one machine at a time, but now they can test 35 machines at the same time, and the test time for each machine has been reduced from more than 10 minutes to less than 5 minutes. The defective rate of the product has also been greatly reduced. The defective rate of the intelligent vehicle machine 3 has been reduced from 15 to 20 per 10,000 units to less than 4 after leaving the factory.
[0050] Another object of the present invention is to provide a system for implementing the intelligent vehicle machine automatic testing method, the intelligent vehicle machine automatic testing system comprising:
[0051] The PC host computer 1 is connected to the bus converter 2 via a universal synchronous / asynchronous serial transmitter / receiver UART interface, serving as a control terminal;
[0052] The bus converter 2 is connected to the PC-side host computer 1 through a serial port interface, converts the serial port protocol data received from the PC-side host computer 1 into CAN messages and sends them to the smart car machine 3, and converts the CAN data received from the smart car machine 3 into corresponding serial port protocol data and sends them to the smart car machine 3;
[0053] The intelligent vehicle machine 3 is connected to the bus converter 2 via the CAN bus, makes a corresponding functional response after receiving the signal, and sends the test response data back to the bus converter 2 via the CAN bus.
[0054] In one embodiment, the bus data converter includes one high-speed CAN interface, one fault-tolerant CAN interface, one single-line CAN interface, one serial port interface, and one LCD12864 liquid crystal display module;
[0055] The high-speed CAN interface, the fault-tolerant CAN interface, the single-line CAN interface and the serial port interface are all connected to the LCD12864 liquid crystal display module.
[0056] In one embodiment, the bus data converter converts the serial port protocol data of the PC software on the computer into CAN messages, transmits them to the smart car machine under test through a high-speed CAN, a fault-tolerant CAN or a single-line CAN interface, and then converts the test result message sent back by the smart car machine through the CAN bus into serial port protocol data and transmits it to the PC software.
[0057] Another object of the present invention is to provide a computer program product stored on a computer-readable medium, including a computer-readable program, which, when executed on an electronic device, provides a user input interface to implement the intelligent vehicle computer automatic testing method.
[0058] Another object of the present invention is to provide a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and when the computer program is executed by the processor, the processor performs the following steps:
[0059] The PC software of the PC host computer 1 sends instructions to the bus converter 2 through the serial port protocol, configures the bus converter 2, and selects the CAN channel type and communication rate to be converted;
[0060] The PC software on the computer sends the function test command to the bus converter 2 through the serial port protocol, and the bus converter 2 converts the received serial port protocol data into CAN bus protocol data and sends it to the intelligent vehicle machine 3;
[0061] The intelligent vehicle computer 3 receives the CAN bus data and makes corresponding functional responses, and sends the test response data back to the bus converter 2 through the CAN bus. The bus converter 2 then sends the data back to the PC software through the serial port protocol.
[0062] The PC software determines whether the function has passed the test based on the returned response data, and records and displays the test status of each function. After testing a function, the PC software automatically issues the next test instruction until all function tests are completed.
[0063] Another object of the present invention is to provide a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the intelligent vehicle computer automated testing method.
[0064] Another object of the present invention is to provide an information data processing terminal, which includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the intelligent vehicle automatic testing method.
[0065] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
[0066] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure should be limited by the appended claims.
Claims
1. An automated testing method for an intelligent vehicle computer, characterized in that: The intelligent vehicle computer automatic testing method comprises the following steps: Step 1: The PC software of the host computer sends instructions to the bus converter through the serial port protocol, configures the bus converter, and selects the CAN channel type and communication rate to be converted; Step 2: The PC software on the computer sends the function test command to the bus converter through the serial port protocol. The bus converter converts the received serial port protocol data into CAN bus protocol data and sends it to the smart car machine; Step 3: The intelligent vehicle computer receives the CAN bus data and responds accordingly, and sends the test response data back to the bus converter through the CAN bus. The bus converter then sends the data back to the PC software through the serial port protocol. Step 4: The PC software determines whether the function has passed the test based on the response data returned, and records and displays the test status of each function. After testing a function, the PC software automatically issues the next test instruction until all function tests are completed; In step 3, if the PC software sends a function test command and does not receive a response within 300ms, the test is considered to have failed. In step 4, if all function tests are passed, the smart car machine is considered to have passed the machine automation test. If one or more function tests fail, it is considered to have failed the test, and the results are finally displayed on the PC software. The system for realizing the intelligent vehicle computer automatic testing method includes: The PC host computer is connected to the bus converter through the universal synchronous / asynchronous serial transmitter / receiver UART interface and serves as a control terminal; The bus converter is connected to the PC-side host computer through a serial port interface, converts the serial port protocol data received from the PC-side host computer into CAN messages and sends them to the smart car computer, and converts the CAN data received from the smart car computer into corresponding serial port protocol data and sends them to the smart car computer; The intelligent vehicle computer is connected to the bus converter via the CAN bus, makes corresponding functional responses after receiving the signal, and sends the test response data back to the bus converter via the CAN bus.
2. The intelligent vehicle computer automated testing method according to claim 1, characterized in that: The bus data converter includes one high-speed CAN interface, one fault-tolerant CAN interface, one single-line CAN interface, one serial port interface, and an LCD12864 liquid crystal display module; The high-speed CAN interface, the fault-tolerant CAN interface, the single-line CAN interface and the serial port interface are all connected to the LCD12864 liquid crystal display module through the MCU controller.
3. The intelligent vehicle computer automated testing method according to claim 1, characterized in that: The bus data converter converts the serial port protocol data of the PC software on the computer into CAN messages, transmits them to the tested intelligent vehicle computer through the high-speed CAN or fault-tolerant CAN or single-line CAN interface, and then converts the test result message sent back by the intelligent vehicle computer through the CAN bus into serial port protocol data and transmits it to the PC software.
4. A computer program product stored on a computer readable medium, characterized in that It includes a computer-readable program, which, when executed on an electronic device, provides a user input interface to implement the intelligent vehicle computer automatic testing method as claimed in claim 1.
5. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the intelligent vehicle automatic testing method according to claim 1.
6. A computer-readable storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor, the processor executes the intelligent vehicle computer automatic testing method according to claim 1.
7. An information data processing terminal, characterized in that: The information data processing terminal includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the intelligent vehicle automatic testing method according to claim 1.
