Interface test method, device and test system of cockpit domain controller

The signal output device automatically outputs different types of electrical signals to the cockpit domain controller and receives test data, which solves the problem of low manual testing efficiency in the prior art and realizes efficient automated interface testing.

CN120143795APending Publication Date: 2025-06-13CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202510292164.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-12
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

In the prior art, manual testing of each interface of the cockpit domain controller is required, resulting in less testing efficiency.

Method used

The signal output device automatically controls the first interface module to output a digital voltage signal, the second interface module to output an analog voltage signal and/or the third interface module to output a resistance signal to the cockpit domain controller to be tested, and receives the test data returned therefrom and sends it to the host computer to determine the interface test result.

Benefits of technology

It improves the efficiency of cockpit domain controller interface testing, reduces the need for manual operation, and realizes automated testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120143795A_ABST
    Figure CN120143795A_ABST
Patent Text Reader

Abstract

The invention relates to an interface test method, device and test system for a cockpit domain controller, and the method comprises the steps: obtaining configuration parameters, and carrying out the parameter configuration of a first interface module, a second interface module and / or a third interface module based on the configuration parameters, the configuration parameter is determined based on an interface test requirement of the cabin domain controller to be tested; the control module is used for receiving a test instruction issued by the upper computer, responding to the test instruction and controlling the first interface module to output at least one digital voltage signal, the second interface module to output at least one analog voltage signal and / or the third interface module to output at least one resistance signal to the cockpit domain controller to be tested; and receiving test data returned by the cabin domain controller to be tested, and sending the test data to the upper computer, so that the upper computer determines and obtains an interface test result based on the test data. Therefore, each interface of the cockpit domain controller does not need to be tested manually, so that the test efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of interface testing, and in particular, to an interface testing method, device, and testing system for a cockpit domain controller. Background Art

[0002] As one of the core components of a vehicle, the cockpit domain controller integrates various functions such as infotainment, in-vehicle navigation, and safety protection. With the continuous improvement of function complexity and integration, the types and quantities of interfaces required by the cockpit domain controller also increase. Therefore, it becomes particularly important to test each interface of the cockpit domain controller to ensure that each interface can be used normally.

[0003] In the related art, it is usually necessary to manually test each interface of the cockpit domain controller. For example, it is necessary to manually modify the input conditions of each interface and manually read the test results of each interface, etc., which are cumbersome operations and there is a problem of low test efficiency. Therefore, how to improve the interface test efficiency of the cockpit domain controller has become a technical problem to be solved urgently. Summary of the Invention

[0004] This application provides an interface testing method, device, and testing system for a cockpit domain controller to solve the problem of low test efficiency in the related art where it is necessary to manually test each interface of the cockpit domain controller.

[0005] In a first aspect, an embodiment of this application provides an interface testing method for a cockpit domain controller, which is applied to a signal output device. The signal output device includes a first interface module for outputting a digital voltage signal, a second interface module for outputting an analog voltage signal, and a third interface module for outputting a resistance signal. The method includes:

[0006] Obtain configuration parameters, and configure the parameters of the first interface module, the second interface module, and / or the third interface module based on the configuration parameters, where the configuration parameters are determined based on the interface testing requirements of the cockpit domain controller to be tested;

[0007] Receive a test instruction sent by a host computer, and in response to the test instruction, control the first interface module to output at least one digital voltage signal, the second interface module to output at least one analog voltage signal, and / or the third interface module to output at least one resistance signal to the cockpit domain controller to be tested;

[0008] Receive the test data returned by the cockpit domain controller to be tested, and send the test data to the host computer, so that the host computer determines the interface test result based on the test data, where the test data is generated by the cockpit domain controller to be tested in response to receiving the at least one digital voltage signal, the at least one analog voltage signal, and / or the at least one resistance signal.

[0009] Optionally, the obtaining the configuration parameters includes:

[0010] Receive the configuration instruction sent by the host computer, and parse the configuration parameters from the configuration instruction, where the configuration parameters are manually configured based on the operation interface of the host computer, and the configuration instruction is manually triggered after the configuration parameters are configured.

[0011] Optionally, the responding to the test instruction to control the first interface module to output at least one digital voltage signal, the second interface module to output at least one analog voltage signal, and / or the third interface module to output at least one resistance signal to the cockpit domain controller to be tested includes:

[0012] In response to the test instruction, determine at least one digital voltage channel with parameter configuration completed in the first interface module, at least one analog voltage channel with parameter configuration completed in the second interface module, and / or at least one resistance channel with parameter configuration completed in the third interface module, where the first interface module includes multiple digital voltage channels, the second interface module includes multiple analog voltage channels, and the third interface module includes multiple resistance channels;

[0013] Control the at least one digital voltage channel to output the at least one digital voltage signal, the at least one analog voltage channel to output the at least one analog voltage signal, and / or the at least one resistance channel to output the at least one resistance signal to the cockpit domain controller to be tested.

[0014] In a second aspect, an embodiment of the present application further provides an interface test method for a cockpit domain controller, which is applied to a host computer, and the method includes:

[0015] Send a test instruction to the signal output device, so that the signal output device responds to the test instruction and controls the first interface module to output at least one digital voltage signal, the second interface module to output at least one analog voltage signal, and / or the third interface module to output at least one resistance signal to the cockpit domain controller to be tested;

[0016] Receive the test data returned by the signal output device, and determine an interface test result based on the test data, where the test data is generated by the cockpit domain controller to be tested in response to the received at least one digital voltage signal, the at least one analog voltage signal, and / or the at least one resistance signal.

[0017] Optionally, before sending the test instruction to the signal output device, the method further includes:

[0018] Send a configuration instruction to the signal output device, so that the signal output device parses configuration parameters from the configuration instruction, and performs parameter configuration on the first interface module, the second interface module, and / or the third interface module based on the configuration parameters, where the configuration instruction carries the configuration parameters, and the configuration parameters are determined based on the interface test requirements of the cockpit domain controller to be tested.

[0019] Optionally, the determining an interface test result based on the test data includes:

[0020] Determine the test data corresponding to each interface in the cockpit domain controller to be tested from the test data;

[0021] Compare the test data corresponding to each interface in the cockpit domain controller to be tested with the preset expected values corresponding to each interface in the cockpit domain controller to be tested respectively;

[0022] According to the comparison result, determine the working state of each interface in the cockpit domain controller to be tested, and determine the interface test result based on the working state of each interface in the cockpit domain controller to be tested.

[0023] Optionally, after determining the interface test result based on the test data, the method further includes:

[0024] Display and export the interface test result.

[0025] In a third aspect, an embodiment of the present application further provides an interface test device for a cockpit domain controller, which is applied to a signal output device. The signal output device includes a first interface module for outputting a digital voltage signal, a second interface module for outputting an analog voltage signal, and a third interface module for outputting a resistance signal. The device includes:

[0026] An acquisition module, configured to acquire configuration parameters, and perform parameter configuration on the first interface module, the second interface module, and / or the third interface module based on the configuration parameters, where the configuration parameters are determined based on the interface test requirements of the cockpit domain controller to be tested;

[0027] A control module, configured to receive a test instruction sent by a host computer, and in response to the test instruction, control the first interface module to output at least one digital voltage signal, the second interface module to output at least one analog voltage signal, and / or the third interface module to output at least one resistance signal to the cockpit domain controller to be tested;

[0028] A first sending module, configured to receive test data returned by the cockpit domain controller to be tested, and send the test data to the host computer, so that the host computer determines an interface test result based on the test data, where the test data is generated by the cockpit domain controller to be tested in response to receiving the at least one digital voltage signal, the at least one analog voltage signal, and / or the at least one resistance signal.

[0029] In a fourth aspect, an embodiment of the present application further provides an interface test device for a cockpit domain controller, which is applied to a host computer, and the device includes:

[0030] A second sending module, configured to send a test instruction to a signal output device, so that the signal output device, in response to the test instruction, controls the first interface module to output at least one digital voltage signal, the second interface module to output at least one analog voltage signal, and / or the third interface module to output at least one resistance signal to the cockpit domain controller to be tested;

[0031] A determination module, configured to receive the test data returned by the signal output device, and determine an interface test result based on the test data, where the test data is generated by the cockpit domain controller to be tested in response to receiving the at least one digital voltage signal, the at least one analog voltage signal, and / or the at least one resistance signal.

[0032] In a fifth aspect, an embodiment of the present application further provides a test system, which includes a signal output device, a host computer, and a cockpit domain controller to be tested. The signal output device includes a first interface module for outputting a digital voltage signal, a second interface module for outputting an analog voltage signal, and a third interface module for outputting a resistance signal. The first interface module, the second interface module, and / or the third interface module are respectively electrically connected to different interfaces in the cockpit domain controller to be tested, and the signal output device is communicatively connected to the host computer and the cockpit domain controller to be tested;

[0033] wherein, the signal output device is configured to execute the interface test method for the cockpit domain controller described in the first aspect;

[0034] The host computer is configured to execute the interface test method for the cockpit domain controller described in the second aspect.

[0035] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art: In the method provided by the embodiment of the present application, by obtaining configuration parameters and performing parameter configuration on the first interface module, the second interface module, and / or the third interface module based on the configuration parameters, where the configuration parameters are determined based on the interface test requirements of the cockpit domain controller to be tested; receiving a test instruction sent by the host computer, and in response to the test instruction, controlling the first interface module to output at least one digital voltage signal, the second interface module to output at least one analog voltage signal, and / or the third interface module to output at least one resistance signal to the cockpit domain controller to be tested; receiving the test data returned by the cockpit domain controller to be tested, and sending the test data to the host computer, so that the host computer determines an interface test result based on the test data, where the test data is generated by the cockpit domain controller to be tested in response to the received at least one digital voltage signal, at least one analog voltage signal, and / or at least one resistance signal. In the above manner, the signal output device can automatically control the first interface module to output at least one digital voltage signal, the second interface module to output at least one analog voltage signal, and / or the third interface module to output at least one resistance signal to the cockpit domain controller to be tested according to the configuration parameters, so as to meet the interface test requirements of the cockpit domain controller to be tested, without manually testing each interface of the cockpit domain controller, thereby improving the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present invention and, together with the specification, are used to explain the principles of the present invention.

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative efforts.

[0038] Figure 1 It is a schematic flow chart of an interface test method for a cockpit domain controller provided by an embodiment of the present application;

[0039] Figure 2 It is a schematic structural diagram of a signal output device provided by an embodiment of the present application;

[0040] Figure 3 It is a schematic diagram of an operation interface of a host computer provided by an embodiment of the present application;

[0041] Figure 4 Schematic flow diagram of another interface testing method for the cockpit domain controller provided by an embodiment of the present application;

[0042] Figure 5 Schematic diagram of the operation interface of another host computer provided by an embodiment of the present application;

[0043] Figure 6 Schematic flow diagram of yet another interface testing method for the cockpit domain controller provided by an embodiment of the present application;

[0044] Figure 7 Schematic structural diagram of an interface testing device for the cockpit domain controller provided by an embodiment of the present application;

[0045] Figure 8 Schematic structural diagram of yet another interface testing device for the cockpit domain controller provided by an embodiment of the present application;

[0046] Figure 9 Schematic structural diagram of a test system provided by an embodiment of the present application. Detailed implementation manners

[0047] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.

[0048] Refer to Figure 1 , Figure 1 Schematic flow diagram of an interface testing method for the cockpit domain controller provided by an embodiment of the present application. As Figure 1 shown, this interface testing method for the cockpit domain controller is applied to a signal output device. The signal output device includes a first interface module for outputting a digital voltage signal, a second interface module for outputting an analog voltage signal, and a third interface module for outputting a resistance signal. This interface testing method for the cockpit domain controller may include the following steps:

[0049] Step S102, obtain configuration parameters, and perform parameter configuration on the first interface module, the second interface module, and / or the third interface module based on the configuration parameters, where the configuration parameters are determined based on the interface testing requirements of the cockpit domain controller to be tested.

[0050] It should be noted that the interface test method for the cockpit domain controller provided in the embodiments of this application can be applied to a signal output device. The signal output device includes a first interface module for outputting digital voltage signals, a second interface module for outputting analog voltage signals, and a third interface module for outputting resistance signals. The first interface module, the second interface module, and / or the third interface module are respectively electrically connected to different interfaces in the cockpit domain controller to be tested. The signal output device is respectively communicatively connected to the host computer and the cockpit domain controller to be tested. Among them, the first interface module may include one or more digital voltage channels, and each digital voltage channel is used to output one or more digital voltage signals. The value of each digital voltage signal can be flexibly configured according to configuration parameters. For example, the low level in the digital voltage signal can be configured as 0V, and the high level in the digital voltage signal can be configured as 3.3V, 5V, or 12V, etc. The second interface module may include one or more analog voltage channels, and each analog voltage channel is used to output one or more analog voltage signals. The value of the analog voltage signal can be flexibly configured according to configuration parameters. For example, the analog voltage signal can be an analog voltage signal with an output range of 0 to 3.3V, 0 to 5V, or 0 to 12V, etc. The third interface module may include one or more resistance channels, and each resistance channel is used to output one or more resistance signals. The value of the resistance signal can be flexibly configured according to configuration parameters. For example, the resistance signal can be a resistance signal with an output range of 0 to 1M ohm, etc. In addition, the signal output device further includes a communication interface module, a storage module, a processing module, etc., as Figure 2 shown. Among them, the communication interface module supports Controller Area Network (CAN for short) communication, Universal Serial Bus (USB for short) communication, etc. The communication interface module is used to realize the communication between the signal output device and the cockpit domain controller to be tested and the host computer respectively. The storage module is used to store information such as test data, configuration parameters, and program codes. The storage module can be a storage chip such as an Electrically Erasable Programmable Read Only Memory (EEPROM for short), a Flash EEPROM Memory (Flash for short), or an Embedded Multi Media Card (EMMC for short). The processing module is used to realize functions such as data acquisition, processing, and analysis. The host computer here can be a terminal device such as a personal computer, a laptop computer, or a smart phone. The cockpit domain controller to be tested here can be any cockpit domain controller that needs to perform interface testing.

[0051] Since the vehicle cockpit domain controller usually needs to connect to a relatively large number of signals, such as the KL15 switch signal, fuel level signal, seat gravity signal, seat belt wearing signal, and various wake-up signals, etc., and the above signals can be classified into three types according to their electrical characteristics: digital voltage signals, analog voltage signals, and resistance signals. Therefore, the first interface module in the signal output device can be used to provide various digital voltage signals for the cockpit domain controller to be tested, and the second interface module in the signal output device can be used to provide various analog voltage signals for the cockpit domain controller to be tested, and the third interface module in the signal output device can be used to provide various resistance signals for the cockpit domain controller to be tested. This can meet the requirements of the cockpit domain controller to be tested for various signals, so as to implement interface testing on the cockpit domain controller to be tested.

[0052] Specifically, the above configuration parameters refer to the configuration parameters required for parameter configuration of one or more of the first interface module, the second interface module, and the third interface module in the signal output device. The configuration parameters are determined in advance based on the interface test requirements of the cockpit domain controller to be tested. For example, when this interface test only needs to test the interfaces corresponding to 3 digital voltage signals of a certain cockpit domain controller to be tested, only the configuration parameters of the corresponding 3 digital voltage channels in the first interface module need to be obtained; when this interface test needs to test the interfaces corresponding to 2 digital voltage signals, 2 analog voltage signals, and 2 resistance signals of a certain cockpit domain controller to be tested, the configuration parameters of the corresponding 2 digital voltage channels in the first interface module, the corresponding 2 analog voltage channels in the second interface module, and the corresponding 2 resistance channels in the third interface module need to be obtained.

[0053] The way to obtain the configuration parameters can be to directly write the relevant configuration parameters into the signal output device according to the interface test requirements; it can also be to send the relevant configuration parameters to the signal output device through the host computer according to the interface test requirements. The embodiments of the present application do not make specific limitations.

[0054] Step S104: Receive the test instruction sent by the host computer, and in response to the test instruction, control the first interface module to output at least one digital voltage signal, the second interface module to output at least one analog voltage signal, and / or the third interface module to output at least one resistance signal to the cockpit domain controller to be tested.

[0055] Specifically, the above test instruction can be triggered and generated by the user on the host computer and then sent to the signal output device. The test instruction is used to request the signal output device to output corresponding signals for interface testing of the cockpit domain controller to be tested. After receiving the test instruction, the signal output device can control the first interface module to output at least one digital voltage signal, the second interface module to output at least one analog voltage signal, and / or the third interface module to output at least one resistance signal to the cockpit domain controller to be tested according to the pre-configured configuration parameters. It should be noted that the quantity and values of the digital voltage signals output by the first interface module, the quantity and values of the analog voltage signals output by the second interface module, and the quantity and values of the resistance signals output by the third interface module are all determined based on the configuration parameters obtained by the signal output device, and they can be one or multiple to meet the interface testing requirements in different test scenarios.

[0056] Step S106: Receive the test data returned by the cockpit domain controller to be tested and send the test data to the host computer so that the host computer can determine the interface test result based on the test data, where the test data is generated by the cockpit domain controller to be tested in response to receiving at least one digital voltage signal, at least one analog voltage signal, and / or at least one resistance signal.

[0057] When the signal output device outputs digital voltage signals, analog voltage signals, and / or resistance signals to the cockpit domain controller to be tested, the cockpit domain controller to be tested can generate test data based on the received signals. For example, when the signal output device outputs a low-level signal of 0V to a certain interface of the cockpit domain controller to be tested, the cockpit domain controller to be tested can generate a test data for indicating that the seat belt is not worn; when outputting a high-level signal of 3.3V to this interface of the cockpit domain controller to be tested, the cockpit domain controller to be tested can generate a test data for indicating that the seat belt is worn. Another example is that when the signal output device outputs an analog signal with a voltage range of 0 - 3.3V to another interface of the cockpit domain controller to be tested, the cockpit domain controller to be tested can generate a test data for indicating the remaining fuel quantity or water temperature. Still another example is that when the signal output device outputs a resistance signal of 100 ohms to yet another interface of the cockpit domain controller to be tested, the cockpit domain controller to be tested can generate a test data for indicating that someone is sitting on the seat or for multimedia volume control.

[0058] In this way, the signal output device can also receive the test data returned by the cockpit domain controller to be tested and send the test data to the host computer. At this time, the host computer can determine the interface test result based on the test data.

[0059] In the above manner, the signal output device can automatically control the first interface module to output at least one digital voltage signal, the second interface module to output at least one analog voltage signal, and / or the third interface module to output at least one resistance signal to the cockpit domain controller to be tested, so as to meet the interface test requirements of the cockpit domain controller to be tested, without manually testing each interface of the cockpit domain controller, thereby improving the test efficiency.

[0060] In an alternative embodiment, the above step S102, obtaining configuration parameters, includes:

[0061] Receiving a configuration instruction sent by the host computer and parsing the configuration parameters from the configuration instruction, where the configuration parameters are manually configured based on the operation interface of the host computer, and the configuration instruction is manually triggered after the configuration parameters are configured.

[0062] Specifically, the above configuration parameters can be manually configured by the user on the operation interface of the host computer. As Figure 3 shown, the user can select the required digital voltage channels, analog voltage channels, and / or resistance channels on the operation interface of the host computer, and manually set relevant parameters for each selected channel. After the configuration is completed, the user can click the "Save Configuration" button to save the configuration parameters, and can also click the "Configuration Download" button to generate a configuration instruction and send it to the signal output device. In this way, the signal output device can receive the configuration instruction sent by the host computer and parse the configuration parameters from the configuration instruction.

[0063] In the above manner, the user can flexibly set relevant configuration parameters according to the interface test requirements of different cockpit domain controllers, without having to modify the logic in the program code every time the configuration parameters are modified, so the flexibility and practicability are stronger.

[0064] In an alternative embodiment, the above step S104, in response to a test instruction, controlling the first interface module to output at least one digital voltage signal, the second interface module to output at least one analog voltage signal, and / or the third interface module to output at least one resistance signal to the cockpit domain controller to be tested, includes:

[0065] In response to the test instruction, determining at least one digital voltage channel with parameter configuration completed in the first interface module, at least one analog voltage channel with parameter configuration completed in the second interface module, and / or at least one resistance channel with parameter configuration completed in the third interface module, where the first interface module includes multiple digital voltage channels, the second interface module includes multiple analog voltage channels, and the third interface module includes multiple resistance channels;

[0066] Control at least one digital voltage channel to output at least one digital voltage signal, at least one analog voltage channel to output at least one analog voltage signal, and / or at least one resistance channel to output at least one resistance signal to the cockpit domain controller to be tested.

[0067] Specifically, when the signal output device outputs a digital voltage signal, an analog voltage signal, and / or a resistance signal to the cockpit domain controller to be tested, it is necessary to first determine the number of digital voltage channels with parameter configuration completed in the first interface module and the relevant configuration parameters, the number of analog voltage channels with parameter configuration completed in the second interface module and the relevant configuration parameters, and / or the number of resistance channels with parameter configuration completed in the third interface module and the relevant configuration parameters, and then control these digital voltage channels, analog voltage channels, and / or resistance channels to output the corresponding signals to the cockpit domain controller to be tested. In this way, the signal output device can accurately control the relevant channels to output the corresponding signals based on the obtained configuration parameters, thereby realizing the interface test function.

[0068] See Figure 4 , Figure 4 which is a schematic flowchart of another interface test method for the cockpit domain controller provided by the embodiment of the present application. As Figure 4 shown, this interface test method for the cockpit domain controller is applied to the host computer. This interface test method for the cockpit domain controller may include the following steps:

[0069] Step S402: Send a test instruction to the signal output device so that the signal output device, in response to the test instruction, controls the first interface module to output at least one digital voltage signal, the second interface module to output at least one analog voltage signal, and / or the third interface module to output at least one resistance signal to the cockpit domain controller to be tested.

[0070] It should be noted that the interface test method for the cockpit domain controller provided by the embodiment of the present application can be applied to the host computer. The host computer can be a terminal device such as a personal computer, a laptop computer, or a smart phone. The host computer is communicatively connected to the signal output device and is used to send configuration parameters and test instructions to the signal output device. The signal output device is also communicatively connected to the cockpit domain controller to be tested and is used to provide the required digital voltage signal, analog voltage signal, and / or resistance signal for the cockpit domain controller to be tested.

[0071] Specifically, the above test instructions can be generated by the user on the host computer and then sent to the signal output device. The test instructions are used to request the signal output device to output corresponding signals for interface testing of the cockpit domain controller to be tested. After receiving the test instructions, the signal output device can, according to the pre-configured configuration parameters, control the first interface module to output at least one digital voltage signal, the second interface module to output at least one analog voltage signal, and / or the third interface module to output at least one resistance signal to the cockpit domain controller to be tested. It should be noted that the quantity and values of the digital voltage signals output by the first interface module, the quantity and values of the analog voltage signals output by the second interface module, and the quantity and values of the resistance signals output by the third interface module are all determined based on the configuration parameters obtained by the signal output device. They can be one or multiple to meet the interface testing requirements in different test scenarios.

[0072] Step S404: Receive the test data returned by the signal output device, and based on the test data, determine the interface test result, where the test data is generated by the cockpit domain controller to be tested in response to receiving at least one digital voltage signal, at least one analog voltage signal, and / or at least one resistance signal.

[0073] When the signal output device outputs digital voltage signals, analog voltage signals, and / or resistance signals to the cockpit domain controller to be tested, the cockpit domain controller to be tested can generate test data based on the received signals. For example, when the signal output device outputs a low-level signal of 0V to a certain interface of the cockpit domain controller to be tested, the cockpit domain controller to be tested can generate a test data for indicating that the seat belt is not worn. When a high-level signal of 3.3V is output to this interface of the cockpit domain controller to be tested, the cockpit domain controller to be tested can generate a test data for indicating that the seat belt is worn. Another example is that when the signal output device outputs an analog signal with a voltage range of 0 - 3.3V to another interface of the cockpit domain controller to be tested, the cockpit domain controller to be tested can generate a test data for indicating the remaining fuel quantity or water temperature. For another example, when the signal output device outputs a resistance signal of 100 ohms to yet another interface of the cockpit domain controller to be tested, the cockpit domain controller to be tested can generate a test data for indicating that someone is sitting on the seat or for multimedia volume control.

[0074] In this way, the signal output device can receive the test data returned by the cockpit domain controller to be tested and send the test data to the host computer. At this time, the host computer can receive the test data returned by the signal output device and determine the interface test result based on the test data.

[0075] In the above - mentioned manner, the host computer can send a test instruction to the signal output device, so that the signal output device automatically controls the first interface module to output at least one digital voltage signal, the second interface module to output at least one analog voltage signal, and / or the third interface module to output at least one resistance signal to the cockpit domain controller to be tested according to the obtained configuration parameters, so as to meet the interface test requirements of the cockpit domain controller to be tested, without manually testing each interface of the cockpit domain controller, thus improving the test efficiency.

[0076] In an alternative embodiment, before the above - mentioned step S402 of sending a test instruction to the signal output device, the method further includes:

[0077] Sending a configuration instruction to the signal output device, so that the signal output device parses the configuration parameters from the configuration instruction and configures the parameters of the first interface module, the second interface module, and / or the third interface module based on the configuration parameters. Among them, the configuration instruction carries the configuration parameters, and the configuration parameters are determined based on the interface test requirements of the cockpit domain controller to be tested.

[0078] Specifically, the above - mentioned configuration parameters can be manually configured by the user on the operation interface of the host computer. As Figure 3 shown, the user can select the required digital voltage channels, analog voltage channels, and / or resistance channels on the operation interface of the host computer, and manually set the relevant parameters for each selected channel. After the configuration is completed, the user can click the "Save Configuration" button to save the configuration parameters, and can also click the "Configuration Download" button to generate a configuration instruction and send it to the signal output device. In this way, the signal output device can parse the configuration parameters from the configuration instruction and configure the parameters of the first interface module, the second interface module, and / or the third interface module based on the configuration parameters.

[0079] In the above - mentioned manner, the user can flexibly set the relevant configuration parameters by using the host computer according to the interface test requirements of different cockpit domain controllers, without modifying the logic in the program code every time the configuration parameters are modified, so the flexibility and practicality are stronger.

[0080] In an alternative embodiment, the above - mentioned step S404 of determining the interface test result based on the test data includes:

[0081] Determining the test data corresponding to each interface in the cockpit domain controller to be tested from the test data;

[0082] Comparing the test data corresponding to each interface in the cockpit domain controller to be tested with the preset expected values corresponding to each interface in the cockpit domain controller to be tested respectively;

[0083] Based on the comparison results, determine the working states of each interface in the cockpit domain controller to be tested, and based on the working states of each interface in the cockpit domain controller to be tested, determine the interface test results.

[0084] Specifically, when the host computer determines the interface test results based on the test data, it can determine the test data corresponding to each interface in the cockpit domain controller to be tested from the test data, and then compare the test data corresponding to each interface in the cockpit domain controller to be tested with the preset expected values corresponding to each interface in the cockpit domain controller to be tested respectively. Then, according to the comparison results, determine the working states of each interface in the cockpit domain controller to be tested, and based on the working states of each interface in the cockpit domain controller to be tested, determine the interface test results. It should be noted that the preset expected values corresponding to each interface in the cockpit domain controller to be tested can be stored in the host computer in advance. When the test data corresponding to a certain interface in the cockpit domain controller to be tested is consistent with the preset expected value corresponding to this interface, it indicates that the working state of this interface is normal; when the test data corresponding to a certain interface in the cockpit domain controller to be tested is inconsistent with the preset expected value corresponding to this interface, it indicates that the working state of this interface is abnormal, and thus the working states of each interface can be obtained.

[0085] Through the above method, the host computer can determine the working states of each interface in the cockpit domain controller to be tested based on the test data returned by the signal output device, and then automatically obtain the interface test results, without the need for manual reading of the test results of each interface, thereby improving the interface test efficiency.

[0086] In an alternative embodiment, after step S404, determining the interface test results based on the test data, the method further includes:

[0087] Display and export the interface test results.

[0088] Specifically, after the host computer determines the interface test results, it can also display the interface test results. As Figure 5 shown, the host computer can display the test results of each channel. In addition, the host computer can also export the interface test results. For example, the user can click the "Export Data" button in the operation interface to export data such as the configuration parameters and test results of each channel, which is convenient for subsequent problem analysis and processing.

[0089] In an alternative embodiment, the interface test process of the cockpit domain controller provided in the embodiments of the present application is as Figure 6 shown, and it may include the following steps:

[0090] Step S602: Configure the parameters of the signal output device using the host computer.

[0091] The host computer can be communicatively connected to the signal output device through the CAN communication method. According to the interface electrical characteristics of the cockpit domain controller to be tested, it is necessary to configure the parameters of each channel of the first interface module, the second interface module, and the third interface module of the signal output device. The configuration method is as follows:

[0092] a. The first interface module needs to configure the high and low levels of each channel. The typical value of the low-level configuration is 0V, and the typical value of the high-level configuration is 3.3V;

[0093] b. The second interface module needs to configure the voltage range and voltage step value of each channel. The typical value is 0~3.3V, and the step is 0.1V;

[0094] c. The third interface module needs to configure the resistance value of each channel. The typical values are 150 ohms and 1M ohm.

[0095] After the user configures in the host computer, by clicking the "Configuration Download" button, the parameter configuration of the signal output device can be realized. After the signal output device completes the parameter configuration, it can generate a configuration completion flag and send it to the host computer. At this time, the host computer can indicate that the parameter configuration has been completed based on this configuration completion flag.

[0096] Step S604: Test the interfaces corresponding to all digital voltage signals.

[0097] After the parameter configuration is completed, the host computer can send a test instruction to the signal output device, so that the signal output device can sequentially test each channel in the order of the interface corresponding to the preset analog voltage signal, the interface corresponding to the analog voltage signal, and the interface corresponding to the resistance signal.

[0098] When testing the interface corresponding to a certain digital voltage signal in the cockpit domain controller to be tested, the signal output device can first control the corresponding digital voltage channel to output a low level, and obtain the test data of this interface through the CAN message. Then, it controls the corresponding digital voltage channel to output a high level and obtains the test data of this interface through the CAN message. After testing this interface, in the same way as above, test the interface corresponding to the next digital voltage signal in the cockpit domain controller to be tested until all the interfaces corresponding to the digital voltage signals have been tested.

[0099] Step S606: Test the interfaces corresponding to all analog voltage signals.

[0100] When testing an interface corresponding to a certain analog voltage signal in the cockpit domain controller under test, the signal output device can first control the corresponding analog voltage channel to output a 0V voltage, obtain the test data of this interface through a CAN message, then increase the output voltage of this channel in steps of 0.1V, and obtain the test data of this interface through a CAN message every time the output voltage of this channel is increased until the output voltage of this channel reaches the set value. After testing this interface, the next interface corresponding to the analog voltage signal in the cockpit domain controller under test is tested in the same manner as above.

[0101] Step S608: Test all interfaces corresponding to the resistance signals.

[0102] When testing an interface corresponding to a certain resistance signal in the cockpit domain controller under test, the signal output device can control the corresponding resistance channel to output according to the set resistance value, and obtain the test data of this interface through a CAN message every time the resistance value is output until all set resistance values are output. After testing this interface, the next interface corresponding to the resistance signal in the cockpit domain controller under test is tested in the same manner as above.

[0103] Step S610: Analyze the test data and output the test result.

[0104] After all interfaces in the cockpit domain controller under test are tested, the signal output device generates a test completion flag and sends the test completion flag to the host computer. At this time, the host computer can indicate that the interface test has been completed based on this test completion flag. The test results of each channel can be viewed on the host computer, and the test results can be selected for export and analysis.

[0105] Thus, the above interface test method can achieve the following beneficial effects:

[0106] 1. Improve test efficiency and save test costs: The cockpit domain controller has a large number of interfaces. The existing interface test methods basically rely on manual testing, which takes a long time and has low efficiency in the test process; in this application, by combining the signal output device and the host computer, high-efficiency testing can be achieved, and the test results can be quickly analyzed.

[0107] 2. Improve test coverage: Due to the large number of interfaces in the cockpit domain controller, and it is time-consuming and laborious to build a test environment. In order to improve test efficiency, manual testing often uses a sampling method for interfaces, and the test does not cover all interfaces, there is a risk of missing potential problems; while in this application, multiple channels can be set in the first interface module, the second interface module and the third interface module of the signal output device, so the test coverage can be significantly improved.

[0108] 3. Strong compatibility: The electrical parameter specifications of the interfaces of different cockpit domain controllers are different. The signal output device of the present application can be configured to output interface signals with different parameters, so it can be compatible with the interface tests of different cockpit controllers.

[0109] See Figure 7 , Figure 7 which is a schematic structural diagram of an interface test device for a cockpit domain controller provided by an embodiment of the present application. As Figure 7 shown, the interface test device 700 for the cockpit domain controller is applied to a signal output device. The signal output device includes a first interface module for outputting digital voltage signals, a second interface module for outputting analog voltage signals, and a third interface module for outputting resistance signals. The device 700 includes:

[0110] An acquisition module 702, configured to acquire configuration parameters and perform parameter configuration on the first interface module, the second interface module, and / or the third interface module based on the configuration parameters, where the configuration parameters are determined based on the interface test requirements of the cockpit domain controller to be tested;

[0111] A control module 704, configured to receive a test instruction sent by a host computer and, in response to the test instruction, control the first interface module to output at least one digital voltage signal, the second interface module to output at least one analog voltage signal, and / or the third interface module to output at least one resistance signal to the cockpit domain controller to be tested;

[0112] A first sending module 706, configured to receive test data returned by the cockpit domain controller to be tested and send the test data to the host computer, so that the host computer determines an interface test result based on the test data, where the test data is generated by the cockpit domain controller to be tested in response to receiving at least one digital voltage signal, at least one analog voltage signal, and / or at least one resistance signal.

[0113] Further, the acquisition module 702 includes:

[0114] A parsing sub-module, configured to receive a configuration instruction sent by the host computer and parse the configuration parameters from the configuration instruction, where the configuration parameters are manually configured based on the operation interface of the host computer, and the configuration instruction is manually triggered after the configuration parameters are configured.

[0115] Further, the control module 704 includes:

[0116] A first determination sub-module, configured to determine, in response to a test instruction, at least one digital voltage channel with parameter configuration completed in a first interface module, at least one analog voltage channel with parameter configuration completed in a second interface module, and / or at least one resistance channel with parameter configuration completed in a third interface module, where the first interface module includes multiple digital voltage channels, the second interface module includes multiple analog voltage channels, and the third interface module includes multiple resistance channels;

[0117] A control sub-module, configured to control at least one digital voltage channel to output at least one digital voltage signal, at least one analog voltage channel to output at least one analog voltage signal, and / or at least one resistance channel to output at least one resistance signal to a cockpit domain controller to be tested.

[0118] It should be noted that the interface test device 700 for the cockpit domain controller can implement the steps of the interface test method for the cockpit domain controller provided in the foregoing method embodiment as shown, and can achieve the same technical effects, which will not be elaborated herein one by one. Figure 1 Shown in

[0119] Refer to Figure 8 , Figure 8 which is a schematic structural diagram of another interface test device for a cockpit domain controller provided in an embodiment of the present application. As Figure 8 shown, the interface test device 800 for the cockpit domain controller is applied to a host computer, and the device 800 includes:

[0120] A second sending module 802, configured to send a test instruction to a signal output device, so that the signal output device, in response to the test instruction, controls the first interface module to output at least one digital voltage signal, the second interface module to output at least one analog voltage signal, and / or the third interface module to output at least one resistance signal to a cockpit domain controller to be tested;

[0121] A determination module 804, configured to receive test data returned by the signal output device, and determine an interface test result based on the test data, where the test data is generated by the cockpit domain controller to be tested in response to at least one digital voltage signal, at least one analog voltage signal, and / or at least one resistance signal received.

[0122] Furthermore, the device 800 further includes:

[0123] A third sending module, configured to send a configuration instruction to the signal output device, so that the signal output device parses configuration parameters from the configuration instruction, and performs parameter configuration on the first interface module, the second interface module, and / or the third interface module based on the configuration parameters, where the configuration instruction carries the configuration parameters, and the configuration parameters are determined based on the interface test requirements of the cockpit domain controller to be tested.

[0124] Further, the determination module 804 includes:

[0125] A second determination sub-module, configured to determine the test data corresponding to each interface in the cockpit domain controller to be tested from the test data;

[0126] A comparison sub-module, configured to compare the test data corresponding to each interface in the cockpit domain controller to be tested with the preset expected values corresponding to each interface in the cockpit domain controller to be tested respectively;

[0127] A third determination sub-module, configured to determine the working state of each interface in the cockpit domain controller to be tested according to the comparison result, and determine the interface test result based on the working state of each interface in the cockpit domain controller to be tested.

[0128] Further, the apparatus 800 further includes:

[0129] A display and export module, configured to display and export the interface test result.

[0130] It should be noted that the interface test apparatus 800 of the cockpit domain controller can implement the steps of the interface test method of the cockpit domain controller provided in the foregoing Figure 4 shown in the method embodiment, and can achieve the same technical effects, which will not be elaborated here one by one.

[0131] See Figure 9 , an embodiment of the present application further provides a test system. The test system includes a signal output device 902, a host computer 904, and a cockpit domain controller 906 to be tested. Among them, the signal output device 902 includes a first interface module for outputting a digital voltage signal, a second interface module for outputting an analog voltage signal, and a third interface module for outputting a resistance signal. The first interface module, the second interface module, and / or the third interface module are respectively electrically connected to different interfaces in the cockpit domain controller 906 to be tested. The signal output device 902 is respectively communicatively connected to the host computer 904 and the cockpit domain controller 906 to be tested;

[0132] Among them, the signal output device 902 is configured to execute the steps of the interface test method of the cockpit domain controller provided in the foregoing Figure 1 shown in the method embodiment;

[0133] The host computer 904 is configured to execute the steps of the interface test method of the cockpit domain controller provided in the foregoing Figure 4 shown in the method embodiment.

[0134] Specifically, the hardware environment of the test system is built as follows:

[0135] Each channel in the first interface module of the signal output device 902 is electrically connected to a corresponding interface of a digital voltage signal in the cockpit domain controller 906 to be tested through a single-ended cable, so as to output a digital voltage signal to the corresponding interface of the digital voltage signal;

[0136] Each channel in the second interface module of the signal output device 902 is electrically connected to a corresponding interface of an analog voltage signal in the cockpit domain controller 906 to be tested through a single-ended cable, so as to output an analog voltage signal to the corresponding interface of the analog voltage signal;

[0137] Each channel in the third interface module of the signal output device 902 is electrically connected to a corresponding interface of a resistance signal in the cockpit domain controller 906 to be tested through a single-ended cable, so as to output a resistance signal to the corresponding interface of the resistance signal;

[0138] The communication interface module of the signal output device 902 is communicatively connected to the cockpit domain controller 906 to be tested through a twisted differential cable, so as to transmit test data to the signal output device 902;

[0139] The communication interface module of the signal output device 902 is communicatively connected to the host computer 904 through a twisted differential cable, so as to transmit test data to the host computer 904.

[0140] In this way, the signal output device 902 is used to output interface signals to the cockpit domain controller 906 to be tested, receive the test data returned by the cockpit domain controller 906 to be tested, and send the test data to the host computer 904 for processing; the cockpit domain controller 906 to be tested is used to receive the interface signals output by the signal output device 902 and return the test data to the signal output device 902; the host computer 904 is used for the configuration and management of the signal output device 902, and the display and storage of test results.

[0141] In the above manner, the signal output device 902 can automatically control the first interface module to output at least one digital voltage signal, the second interface module to output at least one analog voltage signal, and / or the third interface module to output at least one resistance signal to the cockpit domain controller 906 to be tested according to the configuration parameters, so as to meet the interface test requirements of the cockpit domain controller 906 to be tested, without manually testing each interface of the cockpit domain controller 906, thereby improving the test efficiency.

[0142] In addition, the 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 interface test method for the cockpit domain controller provided in any one of the foregoing method embodiments are implemented.

[0143] It should be noted that in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprising", "including" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising said element.

[0144] The above are only specific embodiments of the present invention, enabling those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to these embodiments shown herein, but rather to the broadest scope consistent with the principles and novel features claimed herein.

Claims

1. A cockpit domain controller interface testing method, characterized in that: Applied to a signal output device, the signal output device comprises a first interface module for outputting a digital voltage signal, a second interface module for outputting an analog voltage signal and a third interface module for outputting a resistance signal, the method comprises: Acquire configuration parameters, and perform parameter configuration on the first interface module, the second interface module, and / or the third interface module based on the configuration parameters, wherein the configuration parameters are determined based on interface test requirements of the cockpit domain controller to be tested; Receive a test instruction sent by a host computer, and in response to the test instruction, control the first interface module to output at least one digital voltage signal, the second interface module to output at least one analog voltage signal, and / or the third interface module to output at least one resistance signal to the cockpit domain controller to be tested; Receive test data returned by the cockpit domain controller to be tested, and send the test data to the host computer, so that the host computer determines the interface test result based on the test data, wherein the test data is generated by the cockpit domain controller to be tested in response to the at least one digital voltage signal, the at least one analog voltage signal and / or the at least one resistance signal received.

2. The method according to claim 1, characterized in that The obtaining of configuration parameters includes: The configuration instruction sent by the host computer is received, and the configuration parameters are obtained by parsing the configuration instruction, wherein the configuration parameters are manually configured based on the operation interface of the host computer, and the configuration instruction is manually triggered after the configuration of the configuration parameters is completed.

3. The method according to claim 1, characterized in that In response to the test instruction, controlling the first interface module to output at least one digital voltage signal, the second interface module to output at least one analog voltage signal and / or the third interface module to output at least one resistance signal to the cockpit domain controller to be tested includes: In response to the test instruction, determining at least one digital voltage channel in the first interface module that has completed parameter configuration, at least one analog voltage channel in the second interface module that has completed parameter configuration, and / or at least one resistance channel in the third interface module that has completed parameter configuration, wherein the first interface module includes a plurality of digital voltage channels, the second interface module includes a plurality of analog voltage channels, and the third interface module includes a plurality of resistance channels; Control the at least one digital voltage channel to output the at least one digital voltage signal, the at least one analog voltage channel to output the at least one analog voltage signal and / or the at least one resistance channel to output the at least one resistance signal to the cockpit domain controller to be tested.

4. A cockpit domain controller interface testing method, characterized in that: Applied to a host computer, the method includes: Sending a test instruction to the signal output device, so that the signal output device responds to the test instruction and controls the first interface module to output at least one digital voltage signal, the second interface module to output at least one analog voltage signal and / or the third interface module to output at least one resistance signal to the cockpit domain controller to be tested; Receive test data returned by the signal output device, and determine an interface test result based on the test data, wherein the test data is generated by the cockpit domain controller to be tested in response to the at least one digital voltage signal, the at least one analog voltage signal and / or the at least one resistance signal received.

5. The method according to claim 4, characterized in that Before sending the test instruction to the signal output device, the method further includes: Send a configuration instruction to the signal output device so that the signal output device parses the configuration instruction to obtain configuration parameters, and performs parameter configuration on the first interface module, the second interface module and / or the third interface module based on the configuration parameters, wherein the configuration instruction carries the configuration parameters, and the configuration parameters are determined based on the interface test requirements of the cockpit domain controller to be tested.

6. The method according to claim 4, characterized in that The determining, based on the test data, to obtain an interface test result includes: Determining test data corresponding to each interface in the cockpit domain controller to be tested from the test data; Compare the test data corresponding to each interface in the cockpit domain controller to be tested with the preset expected values ​​corresponding to each interface in the cockpit domain controller to be tested; According to the comparison result, the working status of each interface in the cockpit domain controller to be tested is determined, and based on the working status of each interface in the cockpit domain controller to be tested, the interface test result is determined.

7. The method according to claim 4, characterized in that After determining the interface test result based on the test data, the method further includes: The interface test results are displayed and exported.

8. An interface testing device for a cockpit domain controller, characterized in that: Applied to a signal output device, the signal output device comprises a first interface module for outputting a digital voltage signal, a second interface module for outputting an analog voltage signal and a third interface module for outputting a resistance signal, the device comprises: an acquisition module, used to acquire configuration parameters, and perform parameter configuration on the first interface module, the second interface module and / or the third interface module based on the configuration parameters, wherein the configuration parameters are determined based on the interface test requirements of the cockpit domain controller to be tested; a control module, configured to receive a test instruction issued by a host computer, and in response to the test instruction, control the first interface module to output at least one digital voltage signal, the second interface module to output at least one analog voltage signal, and / or the third interface module to output at least one resistance signal to the cockpit domain controller to be tested; The first sending module is used to receive the test data returned by the cockpit domain controller to be tested, and send the test data to the host computer, so that the host computer determines the interface test result based on the test data, wherein the test data is generated by the cockpit domain controller to be tested in response to the at least one digital voltage signal, the at least one analog voltage signal and / or the at least one resistance signal received.

9. An interface testing device for a cockpit domain controller, characterized in that: Applied to a host computer, the device comprises: a second sending module, configured to send a test instruction to the signal output device, so that the signal output device responds to the test instruction and controls the first interface module to output at least one digital voltage signal, the second interface module to output at least one analog voltage signal and / or the third interface module to output at least one resistance signal to the cockpit domain controller to be tested; A determination module is used to receive test data returned by the signal output device, and determine an interface test result based on the test data, wherein the test data is generated by the cockpit domain controller to be tested in response to the at least one digital voltage signal, the at least one analog voltage signal and / or the at least one resistance signal received.

10. A testing system, characterized in that: The test system includes a signal output device, a host computer and a cockpit domain controller to be tested, wherein the signal output device includes a first interface module for outputting a digital voltage signal, a second interface module for outputting an analog voltage signal and a third interface module for outputting a resistance signal, the first interface module, the second interface module and / or the third interface module are respectively electrically connected to different interfaces in the cockpit domain controller to be tested, and the signal output device is respectively communicatively connected to the host computer and the cockpit domain controller to be tested; Wherein, the signal output device is used to execute the interface testing method of the cockpit domain controller according to any one of claims 1 to 3; The host computer is used to execute the interface testing method of the cockpit domain controller described in any one of claims 4-7.

Citation Information

Patent Citations

  • Remote test method, device and equipment for cabin area controller and storage medium

    CN114510006A

  • Detection system and method for remote controller of oil pumping unit

    CN114721349A

  • Interface testing method and device

    CN116185735A

  • Controller interface function test system and test method

    CN116540681A

  • Test system specially used for testing interface function of new energy controller

    CN117908519A