Vehicle machine test method and device, electronic equipment and storage medium
By simulating the body CAN signal on the host computer, sending it to the vehicle computer and receiving the returned signal, the accuracy and flexibility of the vehicle computer test are improved, and the safety risks and high cost problems in the existing vehicle computer testing methods are solved.
Patent Information
- Application Number
- CN202410817283.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-15
AI Technical Summary
Existing vehicle-machine testing methods face safety risks, low accuracy of test results, poor flexibility, and high costs, especially when simulating extreme scenarios and limited real environments.
By simulating the body CAN signal on the host computer, sending it to the vehicle computer and receiving the returned signal, and observing the test conditions of the vehicle computer, it is possible to simulate specific extreme scenarios, reduce preparation and debugging time, and reduce resources and costs.
It improves the accuracy and flexibility of test results, reduces test costs, and solves the problems of security risks and restricted environments.
Smart Images

Figure CN118778599A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle computer technology, and more specifically, to a vehicle computer testing method, device, electronic equipment and storage medium. Background Art
[0002] In the automotive field, car computers are important electronic devices in cars. They not only provide entertainment functions such as audio and video playback, but also connect to the Internet to provide intelligent services such as navigation, telephone, and voice assistants. In order to ensure the functional stability and reliability of car computers, they need to be tested to improve driving safety and comfort.
[0003] At present, field testing is mainly carried out by installing the vehicle computer on a real vehicle, which can directly reflect the performance of the vehicle computer in the actual test environment.
[0004] However, existing vehicle computer tests face the possible safety risks brought by field tests, and field tests are limited by the influence of the real environment (such as weather, road conditions, etc.), which often makes the accuracy of test results generally average. Certain specific extreme scenarios (such as extremely cold or hot weather) are also difficult to achieve in field tests. At the same time, field tests usually require a lot of preparation and debugging time. It is difficult to adjust and repair problems and defects in the test in a timely manner, which makes the test less flexible. In addition, field tests require a lot of resources and expenses, which makes the cost of testing high. Summary of the invention
[0005] In view of this, the purpose of this application is to provide a vehicle computer test method, device, electronic device and storage medium, by simulating the corresponding first body CAN signal on the host computer according to the test requirements, sending the first body CAN signal to the vehicle computer and receiving the second body CAN signal returned by the vehicle computer, and observing the test status of the vehicle computer according to the second body CAN signal, it is possible to simulate specific extreme scenarios, solve the safety risks that may be brought about by field testing, no longer be limited by the influence of the real environment, and improve the accuracy of the test results. At the same time, less preparation and debugging time is required, so problems in the test can be adjusted and repaired in time, which improves the flexibility of the test. In addition, fewer resources and expenses are required, reducing the cost of testing.
[0006] In a first aspect, an embodiment of the present application provides a vehicle computer testing method, which is applied to a vehicle computer test bench; the vehicle computer test bench includes a computer, a vehicle computer, and a preset host computer; the method includes:
[0007] Based on the preset test requirements, the corresponding first vehicle body CAN signal is simulated on the host computer running on the computer; the first vehicle body CAN signal represents the vehicle body CAN signal under different test conditions; different first vehicle body CAN signals correspond to different test conditions;
[0008] In response to clicking and selecting a desired first vehicle body CAN signal on the application interface of the host computer, sending the first vehicle body CAN signal to the vehicle computer;
[0009] A second vehicle body CAN signal returned by the vehicle computer is received, and a test condition of the vehicle computer is observed on a display interface of the host computer based on the second vehicle body CAN signal; the test condition at least includes changes in the sound and / or image of the vehicle computer.
[0010] In a possible implementation manner, the vehicle test bench includes a CAN box; and the method further includes:
[0011] The first vehicle body CAN signal is sent to the CAN box, so that the CAN box sends the first vehicle body CAN signal to the vehicle computer and receives a second vehicle body CAN signal returned by the vehicle computer.
[0012] In a possible implementation, the method further includes:
[0013] Determining corresponding adjustment requirements for the first vehicle body CAN signal;
[0014] The first vehicle body CAN signal is adjusted on the application interface of the host computer based on the adjustment requirement.
[0015] In a possible implementation manner, the simulating and completing the corresponding first vehicle body CAN signal on the host computer running on the computer based on the preset test requirement includes:
[0016] Determine corresponding test parameters and / or test buttons based on preset test requirements;
[0017] The corresponding test parameters are set on the host computer running on the computer and / or the test button is clicked to simulate the first vehicle body CAN signal corresponding to the test requirement.
[0018] In a possible implementation, the test requirement includes multiple test scenarios; when the test requirement is a panoramic imaging system fault test, the test parameters include a gear switch; the gear switch includes a body control module BCM power gear switch, a keyless entry and keyless start PEPS power gear switch, and a transmission control unit TCU gear switch; the test button includes a panoramic imaging system AVM fault button; the host computer running on the computer based on the preset test requirement simulates and completes the corresponding first body CAN signal, including:
[0019] In response to setting the BCM power gear to an on state and the PEPS power gear to an on state on the application interface of the host computer, a test scenario of simulating a vehicle key starting the vehicle;
[0020] In response to setting the TCU gear switch as a target gear on the application interface of the host computer, a test scenario of simulating a vehicle driving process;
[0021] In response to clicking the AVM fault button on the application interface of the host computer, a corresponding first vehicle body CAN signal is simulated and completed.
[0022] In a possible implementation manner, observing the test status of the vehicle computer on the display interface of the host computer based on the second vehicle body CAN signal includes:
[0023] Based on the second vehicle body CAN signal, observe on the display interface of the host computer whether a prompt box of "AVM system failure" pops up on the vehicle computer;
[0024] If so, it is determined that the "AVM system failure" prompt box of the vehicle computer can be displayed.
[0025] In a possible implementation, the method further includes:
[0026] Receiving a software function test instruction sent by the vehicle computer;
[0027] In response to the upper computer executing normally based on the software function test instruction, it is determined that the software function corresponding to the software function test instruction of the vehicle computer is normal.
[0028] In a second aspect, an embodiment of the present application further provides a vehicle computer test device, which is applied to a vehicle computer test bench; the vehicle computer test bench includes a computer, a vehicle computer and a preset host computer; the device includes:
[0029] A simulation module, used for simulating and completing the corresponding first vehicle body CAN signal on the host computer running on the computer based on a preset test requirement; the first vehicle body CAN signal represents the vehicle body CAN signal under different test conditions; different first vehicle body CAN signals correspond to different test conditions;
[0030] A first sending module, configured to send the first body CAN signal to the vehicle computer in response to selecting the first body CAN signal required by the application interface of the host computer;
[0031] The observation module is used to receive the second body CAN signal returned by the vehicle computer, and observe the test status of the vehicle computer on the display interface of the host computer based on the second body CAN signal; the test status at least includes the change of the sound and / or image of the vehicle computer.
[0032] In a possible implementation manner, the vehicle computer test bench includes a CAN box; the vehicle computer test device further includes:
[0033] The second sending module is used to send the first body CAN signal to the CAN box, so that the CAN box sends the first body CAN signal to the vehicle computer and receives a second body CAN signal returned by the vehicle computer.
[0034] In a possible implementation manner, the vehicle computer testing device further includes:
[0035] A determination module, used for determining a corresponding adjustment requirement for the first vehicle body CAN signal;
[0036] An adjustment module is used to adjust the first vehicle body CAN signal in the application interface of the host computer based on the adjustment requirement.
[0037] In a possible implementation manner, the simulation module is specifically used to:
[0038] Determine corresponding test parameters and / or test buttons based on preset test requirements;
[0039] The corresponding test parameters are set on the host computer running on the computer and / or the test button is clicked to simulate the first vehicle body CAN signal corresponding to the test requirement.
[0040] In a possible implementation manner, the test requirement includes multiple test scenarios; when the test requirement is a panoramic imaging system fault test, the test parameters include a gear switch; the gear switch includes a body control module BCM power gear switch, a keyless entry and keyless start PEPS power gear switch, and a transmission control unit TCU gear switch; the test button includes a panoramic imaging system AVM fault button; the simulation module is specifically used to:
[0041] In response to setting the BCM power gear to an on state and the PEPS power gear to an on state on the application interface of the host computer, a test scenario of simulating a vehicle key starting the vehicle;
[0042] In response to setting the TCU gear switch as a target gear on the application interface of the host computer, a test scenario of simulating a vehicle driving process;
[0043] In response to clicking the AVM fault button on the application interface of the host computer, a corresponding first vehicle body CAN signal is simulated and completed.
[0044] In a possible implementation manner, the observation module is specifically used to:
[0045] Based on the second vehicle body CAN signal, observe on the display interface of the host computer whether a prompt box of "AVM system failure" pops up on the vehicle computer;
[0046] If so, it is determined that the "AVM system failure" prompt box of the vehicle computer can be displayed.
[0047] In a possible implementation manner, the vehicle computer testing device further includes:
[0048] A receiving module, used for receiving a software function test instruction sent by the vehicle computer;
[0049] The test module is used to determine that the software function corresponding to the software function test instruction of the vehicle computer is normal in response to the upper computer executing the software function test instruction normally.
[0050] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the vehicle computer testing method as described in any one of the first aspects.
[0051] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the vehicle computer testing method described in any one of the first aspects are executed.
[0052] The embodiment of the present application provides a vehicle computer test method, device, electronic device and storage medium, which simulates the corresponding first body CAN signal on the host computer running on the computer based on the preset test requirements, responds to clicking and selecting the required first body CAN signal on the application interface of the host computer, sends the first body CAN signal to the vehicle computer, receives the second body CAN signal returned by the vehicle computer, and observes the test situation of the vehicle computer on the display interface of the host computer based on the second body CAN signal, and the test situation at least includes the change of the sound and / or image of the vehicle computer. In the present application, by simulating the corresponding first body CAN signal on the host computer according to the test requirements, sending the first body CAN signal to the vehicle computer and receiving the second body CAN signal returned by the vehicle computer, and observing the test situation of the vehicle computer according to the second body CAN signal, it is possible to simulate specific extreme scenarios, solve the safety risks that may be brought about by field testing, no longer be limited by the influence of the real environment, improve the accuracy of the test results, and at the same time, require less preparation and debugging time, so that problems existing in the test can be adjusted and repaired in time, and the flexibility of the test is improved. In addition, less resources and expenses are required, which reduces the cost of testing. In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0054] Figure 1 is a flow chart of a vehicle computer testing method provided according to an embodiment of the present application;
[0055] Figure 2 It is a structural diagram of the vehicle test bench;
[0056] Figure 3 is a flow chart of a vehicle computer testing method provided according to another embodiment of the present application;
[0057] Figure 4 is a flow chart of a vehicle computer testing method provided according to another embodiment of the present application;
[0058] Figure 5 is a flow chart of a vehicle computer testing method provided according to another embodiment of the present application;
[0059] Figure 6 is a flow chart of a vehicle computer testing method provided according to another embodiment of the present application;
[0060] Figure 7 is a flow chart of a vehicle computer testing method provided according to another embodiment of the present application;
[0061] Figure 8 is a structural schematic diagram of a vehicle computer testing device provided according to an embodiment of the present application;
[0062] Fig. 9 It is a structural schematic diagram of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0063] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0064] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0065] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0066] Considering that in the automotive field, the car computer is an important electronic device in the car, which not only provides entertainment functions such as audio and video playback, but also can connect to the Internet and provide intelligent services such as navigation, telephone, voice assistant, etc. In order to ensure the functional stability and reliability of the car computer, it is necessary to test the car computer to improve driving safety and comfort.
[0067] At present, field tests are mainly conducted by installing the vehicle computer on a real vehicle, which can directly reflect the performance of the vehicle computer in the actual test environment. However, existing vehicle computer tests face the safety risks that may be brought about by field tests, and field tests are limited by the influence of the real environment (such as weather, road conditions, etc.), which often makes the accuracy of test results generally average. Certain specific extreme scenarios (such as extremely cold or hot weather) are also difficult to achieve in field tests. At the same time, field tests usually require a lot of preparation and debugging time. It is difficult to adjust and repair problems and defects in the test in a timely manner, which makes the test less flexible. In addition, field tests require a lot of resources and expenses, making the cost of testing high.
[0068] In response to this problem, the present application provides a vehicle computer test method, device, electronic device and storage medium. By simulating the corresponding first vehicle body CAN signal on the host computer according to the test requirements, sending the first vehicle body CAN signal to the vehicle computer and receiving the second vehicle body CAN signal returned by the vehicle computer, and observing the test status of the vehicle computer according to the second vehicle body CAN signal, it is possible to simulate specific extreme scenarios, solve the safety risks that may be brought about by field testing, no longer be limited by the influence of the real environment, and improve the accuracy of the test results. At the same time, less preparation and debugging time is required, so problems in the test can be adjusted and repaired in time, which improves the flexibility of the test. In addition, fewer resources and expenses are required, reducing the cost of testing.
[0069] Figure 1 The flowchart of the vehicle computer test method provided in the embodiment of the present application is applied to the vehicle computer test bench. The vehicle computer test bench includes a computer, a vehicle computer and a preset host computer, for example, Figure 2 As shown, PC refers to the computer of the present application, and host computer refers to the host computer of the present application. It should be noted that the host computer is the host computer pre-developed by the present application.
[0070] like Figure 1 As shown, the vehicle computer testing method of the embodiment of the present application may specifically include:
[0071] S101, simulating a corresponding first vehicle body CAN signal on a host computer running on a computer based on a preset test requirement.
[0072] S102 , in response to clicking and selecting a desired first body CAN signal on an application interface of the host computer, sending the first body CAN signal to the vehicle computer.
[0073] S103, receiving a second vehicle body CAN signal returned by the vehicle computer, and observing the test status of the vehicle computer on the display interface of the host computer based on the second vehicle body CAN signal.
[0074] In the above vehicle computer testing method, by simulating the corresponding first vehicle body CAN signal on the upper computer according to the test requirements, sending the first vehicle body CAN signal to the vehicle computer and receiving the second vehicle body CAN signal returned by the vehicle computer, and observing the test status of the vehicle computer according to the second vehicle body CAN signal, it is possible to simulate specific extreme scenarios, solve the safety risks that may be caused by field testing, no longer be restricted by the influence of the real environment, and improve the accuracy of the test results. At the same time, less preparation and debugging time is required, so problems in the test can be adjusted and repaired in time, which improves the flexibility of the test. In addition, fewer resources and expenses are required, which reduces the cost of testing. The following is combined with Figure 1 , the above exemplary steps of the embodiment of the present application are described with reference to specific examples:
[0075] S101, based on the preset test requirements, a corresponding first vehicle body CAN signal is simulated on a host computer running on a computer.
[0076] In the embodiment of the present application, the test requirement is a pre-set requirement for testing the vehicle computer, different test requirements correspond to different test conditions, different test requirements correspond to different first body CAN (Controller Area Network) signals, the first body CAN signal is the body CAN signal simulated by the host computer, the first body CAN signal represents the body CAN signal under different test conditions, different first body CAN signals correspond to different test conditions, and the host computer running on the computer simulates the corresponding first body CAN signal according to the test requirement. It should be noted that there can be multiple first body CAN signals.
[0077] Therefore, based on the host computer simulating the vehicle body CAN signal, rich test data can be easily obtained, which is convenient for comprehensive and in-depth test analysis.
[0078] S102, in response to clicking and selecting a desired first body CAN signal on an application interface of the host computer, sending the first body CAN signal to the vehicle computer.
[0079] In the embodiment of the present application, after the host computer completes the simulation of the first vehicle body CAN signal, click and select the required first vehicle body CAN signal on the application interface of the host computer, and send the first vehicle body CAN signal to the vehicle computer for subsequent processing.
[0080] Optionally, the required first body CAN signal is selected from a first body CAN signal list on an application interface of the host computer.
[0081] S103, receiving a second vehicle body CAN signal returned by the vehicle computer, and observing the test status of the vehicle computer on the display interface of the host computer based on the second vehicle body CAN signal.
[0082] In an embodiment of the present application, the test conditions at least include changes in the sound and / or image of the vehicle computer. The second body CAN signal is a response signal returned by the vehicle computer after receiving the first body CAN signal. After the host computer sends the selected first body CAN signal to the vehicle computer, it receives the second body CAN signal returned by the vehicle computer, and observes the test conditions of the vehicle computer on the display interface of the host computer based on the second body CAN signal.
[0083] Therefore, by simulating the vehicle body CAN signal through the host computer, clicking the corresponding vehicle body CAN signal on the host computer application interface and sending it to the vehicle computer, the sound and image changes fed back by the vehicle computer can be observed, thereby achieving the purpose of testing the vehicle computer function.
[0084] The vehicle computer testing method provided in the embodiment of the present application simulates the corresponding first vehicle body CAN signal on the upper computer running on the computer based on the preset test requirements, responds to clicking and selecting the required first vehicle body CAN signal on the application interface of the upper computer, sends the first vehicle body CAN signal to the vehicle computer, receives the second vehicle body CAN signal returned by the vehicle computer, and observes the test situation of the vehicle computer on the display interface of the upper computer based on the second vehicle body CAN signal, and the test situation at least includes the change of the sound and / or image of the vehicle computer. The vehicle computer testing method of the present application can simulate specific extreme scenarios by simulating the corresponding first vehicle body CAN signal on the upper computer according to the test requirements, sending the first vehicle body CAN signal to the vehicle computer and receiving the second vehicle body CAN signal returned by the vehicle computer, and observing the test situation of the vehicle computer according to the second vehicle body CAN signal, thereby solving the safety risks that may be brought about by field testing, no longer being limited by the influence of the real environment, and improving the accuracy of the test results. At the same time, less preparation and debugging time is required, so problems existing in the test can be adjusted and repaired in time, which improves the flexibility of the test. In addition, fewer resources and expenses are required, reducing the cost of testing.
[0085] Furthermore, the vehicle computer test bench includes a CAN box, which sends the first vehicle body CAN signal to the CAN box, so that the CAN box sends the first vehicle body CAN signal to the vehicle computer and receives a second vehicle body CAN signal returned by the vehicle computer.
[0086] In the embodiment of the present application, the host computer sends a first body CAN signal to the CAN box, and the CAN box sends a body CAN signal to the vehicle computer after receiving the first body CAN signal. The vehicle computer responds after receiving the first body CAN signal and sends a second body CAN signal to the CAN box. The CAN box receives the second body CAN signal and sends the second body CAN signal to the host computer. For example, Figure 2 shown.
[0087] Further, such as Figure 3 As shown, the vehicle computer testing method of the embodiment of the present application may further include the following steps:
[0088] S301, determining a corresponding adjustment requirement for a first vehicle body CAN signal.
[0089] In the embodiment of the present application, the adjustment requirement is the requirement that can be adjusted corresponding to the first body CAN signal. For the first body CAN signal selected on the host computer, the adjustment requirement of the first body CAN signal is determined for subsequent processing.
[0090] S302: adjusting parameters corresponding to the first vehicle body CAN signal and / or executing corresponding operations on the application interface of the host computer based on the adjustment requirements.
[0091] In the embodiment of the present application, the first body CAN signal is adjusted on the application interface of the host computer according to the adjustment requirement of the first body CAN signal obtained in step S301. Optionally, the parameters corresponding to the first body CAN signal are adjusted and / or corresponding buttons are executed on the application interface of the host computer based on the adjustment requirement.
[0092] Therefore, the test content of the first vehicle body CAN signal can be flexibly adjusted and optimized, thereby improving the flexibility and adaptability of the test.
[0093] Further, such as Figure 4 As shown, in step S101 in the above embodiment, "simulating and completing the corresponding first vehicle body CAN signal on the host computer running on the computer based on the preset test requirements" may specifically include the following steps:
[0094] S401, determining corresponding test parameters and / or test buttons based on preset test requirements.
[0095] In the embodiment of the present application, the test requirement is a pre-set test requirement corresponding to the test conditions to be tested, the test parameter is a parameter that needs to be set corresponding to the test requirement, and the test button is a function button that needs to be clicked corresponding to the test requirement. Specifically, it can be a button for turning on or off related functions.
[0096] S402, setting corresponding test parameters and / or clicking a test button on the host computer running on the computer to simulate a first vehicle body CAN signal corresponding to the test requirement.
[0097] In an embodiment of the present application, based on the test parameters and / or test button determined in step S401, the test parameters are set and / or the test button is clicked on the host computer running on the computer, thereby simulating the first vehicle body CAN signal corresponding to the test requirement for subsequent processing.
[0098] Therefore, the corresponding test parameters and / or test buttons can be determined through different test conditions, so as to simulate the corresponding first vehicle body CAN signal.
[0099] Furthermore, the test requirements include multiple test scenarios. When the test requirement is a panoramic imaging system fault test, the test parameters include the gear switch, which includes the body control module (BCM) power gear switch, the keyless entry and keyless start (Passive Entry & Passive Start, PEPS) power gear switch, and the transmission control unit (TCU) gear switch. The test button includes the panoramic imaging system AVM (Around View Monitor) fault button. Figure 5 As shown, in step S102 in the above embodiment, "based on the preset test requirements, the host computer running on the computer simulates and completes the corresponding first vehicle body CAN signal", specifically, it may include the following steps:
[0100] S501, in response to setting the BCM power gear to an on state and the PEPS power gear to an on state in the application interface of the host computer, a test scenario of simulating starting the vehicle with a car key is implemented.
[0101] In the embodiment of the present application, the BCM power gear is set to the on state and the PEPS power gear is set to the on state on the application interface of the host computer to simulate the test scenario of starting the vehicle with a car key.
[0102] S502, in response to setting the TCU gear switch as a target gear on the application interface of the host computer, a test scenario of simulating a vehicle driving process.
[0103] In an embodiment of the present application, after simulating the test scenario of starting the vehicle with a car key, indicating that the vehicle is started with the car key, the TCU gear switch is then set to the target gear on the application interface of the host computer, for example, the D gear, which can simulate the test scenario of the vehicle driving process.
[0104] S503, in response to clicking the AVM fault button on the application interface of the host computer, simulating and completing the corresponding first vehicle body CAN signal.
[0105] In the embodiment of the present application, by clicking the AVM fault button on the application interface of the host computer, the corresponding first vehicle body CAN signal, that is, the first vehicle body CAN signal of the panoramic imaging system fault test, can be simulated and completed.
[0106] Further, such as Figure 6 As shown, the step S103 in the above embodiment of “observing the test status of the vehicle computer on the display interface of the host computer based on the second vehicle body CAN signal” may specifically include the following steps:
[0107] S601, based on the second vehicle body CAN signal, observe on the display interface of the host computer whether an "AVM system failure" prompt box pops up on the vehicle computer.
[0108] S602: If yes, then determine that the "AVM system failure" prompt box of the vehicle computer can be displayed.
[0109] In an embodiment of the present application, during the above-mentioned panoramic imaging system fault test, after the first body CAN signal is sent to the vehicle computer, the display interface of the host computer is observed to see whether an "AVM system failure" prompt box pops up on the vehicle computer based on the second body CAN signal returned by the vehicle computer. If so, it is determined that the "AVM system failure" prompt box of the vehicle computer can be displayed normally, otherwise, the "AVM system failure" prompt box of the vehicle computer cannot be displayed normally.
[0110] For example, during driving, test whether the "AVM reversing system failure" prompt box can be displayed. In the computer, open the upper computer software and simulate the car key to start the vehicle: the upper computer BCM power gear is set to the ON state, and the PEPS power gear setting switch is set to the ON state; simulate during driving: the upper computer TCU gear switch is set to the D gear; simulate the prompt box instruction: click "AVM system failure" on the upper computer to simulate the vehicle computer receiving the AVM device instruction, that is, the first body CAN signal; finally, complete the test by observing whether the vehicle computer has an "AVM system failure" prompt box pop-up.
[0111] Further, such as Figure 7 As shown, the vehicle computer testing method of the embodiment of the present application may further include the following steps:
[0112] S701, receiving a software function test instruction sent by the vehicle computer.
[0113] S702, in response to the upper computer executing the software function test instruction normally, determining that the software function corresponding to the software function test instruction of the vehicle computer is normal.
[0114] In an embodiment of the present application, the software function test instruction is an instruction for testing the software on the vehicle computer. The host computer receives the software function test instruction sent by the vehicle computer. When the host computer executes normally based on the software function test instruction, that is, the button state corresponding to the software function test instruction in the host computer changes, it is determined that the software function corresponding to the software function test instruction of the vehicle computer is normal.
[0115] Specifically, the upper computer is run through the PC, and the upper computer sends a CAN message, i.e., the first vehicle body CAN signal, to the vehicle computer through the CAN box. The vehicle computer receives the corresponding CAN message through the CAN box and makes corresponding image or sound prompt functions. Conversely, through the screen of the vehicle computer, click the corresponding function button of the vehicle computer, and the vehicle computer sends the corresponding test instruction to the upper computer through the CAN box, and the corresponding button state of the upper computer changes. Through this process, whether the vehicle computer software function is normal is tested.
[0116] Therefore, through this process, it is possible to test whether the vehicle software functions normally.
[0117] Furthermore, for example, Figure 2 As shown, the vehicle computer test bench may also include a DC power supply, for example, an adjustable voltage DC power supply, which is used to provide a DC power supply for the vehicle computer, and this application will not go into detail. Figure 8 1 is a schematic diagram of the structure of a vehicle computer test device provided according to an embodiment of the present application, which is applied to a vehicle computer test bench; the vehicle computer test bench includes a computer, a vehicle computer and a preset host computer; Figure 8 As shown, the vehicle computer testing device 800 of the embodiment of the present application may specifically include:
[0118] A simulation module, used for simulating and completing the corresponding first vehicle body CAN signal on the host computer running on the computer based on a preset test requirement; the first vehicle body CAN signal represents the vehicle body CAN signal under different test conditions; different first vehicle body CAN signals correspond to different test conditions;
[0119] A first sending module, configured to send the first body CAN signal to the vehicle computer in response to selecting the first body CAN signal required by the application interface of the host computer;
[0120] The observation module is used to receive the second body CAN signal returned by the vehicle computer, and observe the test status of the vehicle computer on the display interface of the host computer based on the second body CAN signal; the test status at least includes the change of the sound and / or image of the vehicle computer.
[0121] In a possible implementation manner, the vehicle computer test bench includes a CAN box; the vehicle computer test device further includes:
[0122] The second sending module is used to send the first body CAN signal to the CAN box, so that the CAN box sends the first body CAN signal to the vehicle computer and receives a second body CAN signal returned by the vehicle computer.
[0123] In a possible implementation manner, the vehicle computer testing device further includes:
[0124] A determination module, used for determining a corresponding adjustment requirement for the first vehicle body CAN signal;
[0125] An adjustment module is used to adjust the first vehicle body CAN signal in the application interface of the host computer based on the adjustment requirement.
[0126] In a possible implementation manner, the simulation module is specifically used to:
[0127] Determine corresponding test parameters and / or test buttons based on preset test requirements;
[0128] The corresponding test parameters are set on the host computer running on the computer and / or the test button is clicked to simulate the first vehicle body CAN signal corresponding to the test requirement.
[0129] In a possible implementation manner, the test requirement includes multiple test scenarios; when the test requirement is a panoramic imaging system fault test, the test parameters include a gear switch; the gear switch includes a body control module BCM power gear switch, a keyless entry and keyless start PEPS power gear switch, and a transmission control unit TCU gear switch; the test button includes a panoramic imaging system AVM fault button; the simulation module is specifically used to:
[0130] In response to setting the BCM power gear to an on state and the PEPS power gear to an on state on the application interface of the host computer, a test scenario of simulating a vehicle key starting the vehicle;
[0131] In response to setting the TCU gear switch as a target gear on the application interface of the host computer, a test scenario of simulating a vehicle driving process;
[0132] In response to clicking the AVM fault button on the application interface of the host computer, a corresponding first vehicle body CAN signal is simulated and completed.
[0133] In a possible implementation manner, the observation module is specifically used to:
[0134] Based on the second vehicle body CAN signal, observe on the display interface of the host computer whether a prompt box of "AVM system failure" pops up on the vehicle computer;
[0135] If so, it is determined that the "AVM system failure" prompt box of the vehicle computer can be displayed.
[0136] In a possible implementation manner, the vehicle computer testing device further includes:
[0137] A receiving module, used for receiving a software function test instruction sent by the vehicle computer;
[0138] The test module is used to determine that the software function corresponding to the software function test instruction of the vehicle computer is normal in response to the upper computer executing the software function test instruction normally.
[0139] The vehicle computer test device provided in the embodiment of the present application simulates the corresponding first vehicle body CAN signal on the upper computer running on the computer based on the preset test requirements, responds to clicking and selecting the required first vehicle body CAN signal on the application interface of the upper computer, sends the first vehicle body CAN signal to the vehicle computer, receives the second vehicle body CAN signal returned by the vehicle computer, and observes the test situation of the vehicle computer on the display interface of the upper computer based on the second vehicle body CAN signal, and the test situation at least includes the change of the sound and / or image of the vehicle computer. The vehicle computer test device of the present application can simulate specific extreme scenarios by simulating the corresponding first vehicle body CAN signal on the upper computer according to the test requirements, sending the first vehicle body CAN signal to the vehicle computer and receiving the second vehicle body CAN signal returned by the vehicle computer, and observing the test situation of the vehicle computer according to the second vehicle body CAN signal, thereby solving the safety risks that may be brought about by field testing, no longer being limited by the influence of the real environment, and improving the accuracy of the test results. At the same time, less preparation and debugging time is required, so problems existing in the test can be adjusted and repaired in time, which improves the flexibility of the test. In addition, fewer resources and expenses are required, reducing the cost of testing.
[0140] like Fig. 9 As shown, an electronic device 900 provided in an embodiment of the present application includes: a processor 901, a memory 902 and a bus, wherein the memory 902 stores machine-readable instructions executable by the processor 901. When the electronic device is running, the processor 901 communicates with the memory 902 through the bus, and the processor 901 executes the machine-readable instructions to perform the steps of the above-mentioned vehicle computer testing method.
[0141] Specifically, the above-mentioned memory 902 and processor 901 can be general-purpose memory and processor, which are not specifically limited here. When the processor 901 runs the computer program stored in the memory 902, the above-mentioned vehicle computer testing method can be executed.
[0142] Corresponding to the above-mentioned vehicle computer testing method, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned vehicle computer testing method are executed.
[0143] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0144] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0145] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0146] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the deployment method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0147] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A vehicle computer testing method, characterized in that: Applied to vehicle test bench; The vehicle computer test bench includes a computer, a vehicle computer and a preset host computer; the method includes: Based on the preset test requirements, the corresponding first vehicle body CAN signal is simulated on the host computer running on the computer; the first vehicle body CAN signal represents the vehicle body CAN signal under different test conditions; different first vehicle body CAN signals correspond to different test conditions; In response to clicking and selecting a desired first vehicle body CAN signal on the application interface of the host computer, sending the first vehicle body CAN signal to the vehicle computer; A second vehicle body CAN signal returned by the vehicle computer is received, and a test condition of the vehicle computer is observed on a display interface of the host computer based on the second vehicle body CAN signal; the test condition at least includes changes in the sound and / or image of the vehicle computer.
2. The method according to claim 1, wherein the vehicle test bench comprises a CAN box; The method further comprises: The first vehicle body CAN signal is sent to the CAN box, so that the CAN box sends the first vehicle body CAN signal to the vehicle computer and receives a second vehicle body CAN signal returned by the vehicle computer.
3. The method according to claim 1, characterized in that The method further comprises: Determining corresponding adjustment requirements for the first vehicle body CAN signal; The first vehicle body CAN signal is adjusted on the application interface of the host computer based on the adjustment requirement.
4. The method according to claim 1, characterized in that: The simulating and completing the corresponding first vehicle body CAN signal on the host computer running on the computer based on the preset test requirement includes: Determine corresponding test parameters and / or test buttons based on preset test requirements; The corresponding test parameters are set on the host computer running on the computer and / or the test button is clicked to simulate the first vehicle body CAN signal corresponding to the test requirement.
5. The method according to claim 4, characterized in that The test requirement includes multiple test scenarios; when the test requirement is a panoramic imaging system fault test, the test parameters include a gear switch; the gear switch includes a body control module BCM power gear switch, a keyless entry and keyless start PEPS power gear switch, and a transmission control unit TCU gear switch; the test button includes a panoramic imaging system AVM fault button; the host computer running on the computer based on the preset test requirement simulates and completes the corresponding first body CAN signal, including: In response to setting the BCM power gear to an on state and the PEPS power gear to an on state on the application interface of the host computer, a test scenario of simulating a vehicle key starting the vehicle; In response to setting the TCU gear switch as a target gear on the application interface of the host computer, a test scenario of simulating a vehicle driving process; In response to clicking the AVM fault button on the application interface of the host computer, a corresponding first vehicle body CAN signal is simulated and completed.
6. The method according to claim 5, characterized in that The observing the test condition of the vehicle computer on the display interface of the host computer based on the second vehicle body CAN signal includes: Based on the second vehicle body CAN signal, observe on the display interface of the host computer whether an "AVM system failure" prompt box pops up on the vehicle computer; If so, it is determined that the "AVM system failure" prompt box of the vehicle computer can be displayed.
7. The method according to claim 1, characterized in that The method further comprises: Receiving a software function test instruction sent by the vehicle computer; In response to the upper computer executing normally based on the software function test instruction, it is determined that the software function corresponding to the software function test instruction of the vehicle computer is normal.
8. A vehicle computer testing device, characterized in that: Applied to vehicle test bench; The vehicle computer test bench includes a computer, a vehicle computer and a preset host computer; the device includes: A simulation module, used for simulating and completing the corresponding first vehicle body CAN signal on the host computer running on the computer based on a preset test requirement; the first vehicle body CAN signal represents the vehicle body CAN signal under different test conditions; different first vehicle body CAN signals correspond to different test conditions; A first sending module, configured to send the first body CAN signal to the vehicle computer in response to selecting the first body CAN signal required by the application interface of the host computer; The observation module is used to receive the second body CAN signal returned by the vehicle computer, and observe the test status of the vehicle computer on the display interface of the host computer based on the second body CAN signal; the test status at least includes the change of the sound and / or image of the vehicle computer.
9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the memory communicate via the bus. When the machine-readable instructions are executed by the processor, the steps of the vehicle computer testing method as described in any one of claims 1 to 7 are performed.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the vehicle computer testing method as claimed in any one of claims 1 to 7 are executed.
