Test system and method, electronic device and computer program product
By using the test equipment and the wire harness to be tested in the test system, the problem of dependence on vehicle controller development and wire harness development is solved, independent testing of wire harness and software is realized, and development time and cost are reduced.
Patent Information
- Application Number
- CN202411246837.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2024-12-17
AI Technical Summary
In the prior art, the development of vehicle controllers and wire harness development are interdependent, resulting in the testing of wire harness and controller software waiting for the controller development to be completed, which extends the development time.
A test system is provided, including a test device and a wire harness to be tested, which sends and receives test signals through an output module and a receiving port, for simulating a communication signal of a vehicle controller, detecting signal transmission conditions to determine wire harness and software problems.
The independent testing of wire harness and software is realized, avoiding the process of waiting for the controller to be developed, and problems are discovered in a timely manner, saving development time and cost.
Smart Images

Figure CN119148679A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of testing technology, specifically, to the technical field of hardware and software testing, and more specifically, to a testing system, method, electronic equipment and computer program product. Background Art
[0002] In some existing vehicles, a vehicle controller (such as an ECU) is connected to other components through various communication harnesses (such as hard wires, CAN bus, LIN bus, Ethernet bus, etc.) to transmit electrical signals to achieve information exchange between the vehicle controller and other components.
[0003] To ensure normal communication, the continuity of the wiring harness, the accuracy of the wiring harness pin definition, and the controller software's signal receiving and sending functions will affect the normal use of the communication signal.
[0004] In the prior art, the testing of wiring harness and controller software is generally completed on the vehicle. However, the development of the vehicle controller and the overall assembly progress of the vehicle lags behind the development of the wiring harness and software. Waiting for the controller development to be completed before testing will extend the development time and result in a waste of development time. Summary of the invention
[0005] Based on the above-mentioned defects and shortcomings of the prior art, the present application proposes a testing system, method, electronic device and computer program product, which can solve the problem in the prior art that the testing of wiring harness and controller software must wait until the controller development is completed before it can be carried out, which easily leads to a waste of development time.
[0006] According to a first aspect of an embodiment of the present application, a test system is provided, comprising: a test device and a tested wiring harness, the test device comprising a sending port and a receiving port, two ends of the tested wiring harness are respectively connected to the sending port and the receiving port, and the tested wiring harness is used to be installed on a vehicle for signal transmission;
[0007] The test device is installed with a tested program, the tested program includes an output module and an input module in the vehicle controller software, the output module is used to output a signal generated by the vehicle controller, and the input module is used to input an external signal to the vehicle controller;
[0008] The test device is used to generate a test signal, and send the test signal to the tested wiring harness through the output module and the sending port, so that the test signal is transmitted back to the input module through the tested wiring harness and the receiving port; wherein the test signal is used to simulate the communication signal received or sent by the vehicle controller;
[0009] The testing device is also used to determine that there are problems with the tested software and the tested wiring harness when it is detected that the input module does not receive any signal or when it is detected that the signal received by the input module is different from the test signal.
[0010] According to a second aspect of an embodiment of the present application, a testing method is provided, which is applied to a testing device in the testing system as described in the first aspect;
[0011] The test method includes:
[0012] Sending the test signal to the tested wiring harness through the output module;
[0013] When it is detected that the input module does not receive any signal, or when it is detected that the signal received by the input module is different from the test signal, it is determined that there are problems with the tested software and the tested wiring harness.
[0014] According to a third aspect of an embodiment of the present application, there is provided an electronic device, including: a memory and a processor;
[0015] The memory is connected to the processor and is used to store programs;
[0016] The processor is used to implement the testing method as described in the second aspect by running the program in the memory.
[0017] According to a fourth aspect of an embodiment of the present application, a storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the test method described in the second aspect is implemented.
[0018] According to a fifth aspect of an embodiment of the present application, a computer program product or a computer program is provided, wherein the computer program product comprises a computer program, and the computer program is stored in a computer-readable storage medium; a processor of the computer device reads the computer program from the computer-readable storage medium, and when the processor executes the computer program, the steps in the test method described in the second aspect are implemented.
[0019] In the technical solution provided in the present application, the test equipment in the test system includes a sending port and a receiving port, and the two ends of the tested harness in the test system are connected to the sending port and the receiving port respectively. The test equipment can generate a test signal, and during the test process, the test signal can be transmitted to the tested harness through the output module in the vehicle controller software and the sending port of the test equipment, so as to be transmitted back to the input module in the vehicle controller software through the tested harness and the receiving port. And the test equipment can determine whether there are problems with the output module and the input module in the tested software and the tested harness based on the reception of the test signal. For example, when it is detected that the input module does not receive any signal, or when it is detected that the signal received by the input module is different from the test signal, it can be explained that there are problems with the output module, the input module and the tested harness. Through this test method, the test of the harness and the software can be separated from the vehicle controller, without waiting for the development of the controller to be completed, and these software problems and harness hardware problems can be discovered in time, saving the development time and development cost of the software and harness. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0021] Figure 1 One of the block diagrams of the test system provided in the embodiment of the present application;
[0022] Figure 2 The second block diagram of the test system provided in the embodiment of the present application;
[0023] Figure 3 A block diagram of a wiring harness testing device provided in an embodiment of the present application;
[0024] Figure 4 The third block diagram of the test system provided in the embodiment of the present application;
[0025] Figure 5 A flow chart of a testing method provided in an embodiment of the present application;
[0026] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0028] Application Overview
[0029] In the early stages of vehicle development, the hardware development of the vehicle controller generally lags behind the software development, especially the development of the input module and output module in the vehicle controller software, which can be completed quickly according to the interface definition of the vehicle controller (such as hard-wired interface, CAN message definition, LIN message definition, etc.). However, since there is no controller hardware at this time, it is impossible to download these software to the controller hardware for software and hardware integration testing, and the software test can only be carried out after the controller hardware development is completed.
[0030] In addition, after the manufacturing of the wiring harness used to connect the vehicle controller with other components is completed, how to ensure its own continuity and whether the wiring harness and the PIN pins in the connector are correctly corresponding also need to be tested and confirmed. In the related art, since the controller has not been developed after the wiring harness is manufactured, only the continuity of the wiring harness is tested, that is, by simulating a general type of electrical signal, the physical characteristics of the wiring harness are tested to determine whether the wiring harness can transmit electrical signals. This method cannot test specific types of signals transmitted on the wiring harness, such as electrical signals with certain timing requirements, such as CAN signals, LIN signals, Ethernet signals, etc.
[0031] In order to solve the above problems, the present application provides a test system, which is described in detail through some embodiments below. The following embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0032] Exemplary Systems
[0033] like Figure 1 As shown, the system may include: a test device 101 and a wiring harness 102 to be tested.
[0034] The test device 101 described here has a program under test installed therein, and the program under test includes an output module and an input module in the vehicle controller software.
[0035] The input module is used to input external signals into the vehicle controller. For example, when the door opening function is triggered, the door opening and closing actuator sends an electrical signal indicating the door opening request to the body domain controller, and the body domain controller can receive the electrical signal through the input module.
[0036] The output module is used to output the signal generated by the vehicle controller. For example, after the body domain controller receives the electrical signal indicating the door opening request through the input module, it can process the electrical signal. When it is determined that the door can be opened, it sends an electrical signal indicating confirmation that the door can be opened to the door opening and closing actuator, so that the door opening and closing actuator performs the door opening operation.
[0037] The tested wiring harness 102 described here is used to be installed on the vehicle for signal transmission, specifically refers to a wiring harness used to connect the vehicle controller and other components. The tested wiring harness 102 may include but is not limited to at least one of the following: hard wire, CAN bus, LIN bus, Ethernet bus, etc. Among them, the hard wire is used to transmit hard wire signals, that is, simple high and low level signals. The CAN bus is used to transmit CAN signals, the LIN bus is used to transmit LIN signals, and the Ethernet bus is used to transmit Ethernet signals. CAN signals, LIN signals, and Ethernet signals are electrical signals with certain timing requirements. Although they are also high and low level signals physically, under the communication protocol specifications, different meanings of different level sequences are defined. Compared with hard wire signals, the data that can be transmitted is richer.
[0038] The test device 101 may further include a transmission port 1001 and a receiving port 1002, which match the interface of the tested wiring harness 102, and the two ends of the tested wiring harness 102 are respectively connected to the transmission port 1001 and the receiving port 1002. Optionally, the tested wiring harness 102 may be connected to the transmission port 1001 and the receiving port 1002 by quick plugging.
[0039] like Figure 1 As shown, a test program can also be installed in the test device 101. The test program is a software simulation environment built for the vehicle controller software. The software simulation environment can be run on the test device 101. The input module and output module of the developed vehicle controller software can be imported into the software simulation environment to run and realize the reception and transmission of signals. According to the definition of the input interface and output interface of the vehicle controller, the input signal can be monitored in the software simulation environment, and the output signal value can be set.
[0040] Among them, the accurate reception or transmission of signals by the vehicle controller is the basis for the correct operation of the software strategy. Ensuring the accuracy of the signal requires testing the signal transmission. Therefore, in the embodiment of the present application, the test program can generate a test signal to simulate the communication signal received or sent by the vehicle controller, and participate in the test process to test the output module and input module in the vehicle controller software, as well as whether there are problems with the tested wiring harness 102. Which test signals can be generated by the test program can be pre-configured according to the actual signals to be transmitted on the vehicle, and the embodiment of the present application does not limit this.
[0041] During the test process, the test signal can be transmitted to the tested harness 102 through the output module in the vehicle controller software and the sending port 1001 of the test device 101, so as to be transmitted back to the input module in the vehicle controller software through the tested harness 102 and the receiving port 1002. The test device 101 can determine whether there are problems with the output module and input module in the tested software, and the tested harness 102 based on the reception of the test signal. For example, when it is detected that the input module does not receive any signal, or when it is detected that the signal received by the input module is different from the test signal, it can be explained that there are problems with the output module, the input module and the tested harness 102. Optionally, the specific link where the problem occurs can be further judged by other technical means.
[0042] Through the testing system provided in the embodiment of the present application, the testing of wiring harnesses and software can be implemented independently of the vehicle controller without waiting for the development of the controller to be completed, so that problems can be discovered and solved in a timely manner, saving software and wiring harness development time and development costs.
[0043] In some optional embodiments, when there are multiple test signals, the test device 101 may also be specifically used for:
[0044] Determine the ratio of the number of test signals received with problems to the total number of test signals; when the ratio is greater than or equal to the ratio threshold, determine that the probability of a problem with the tested wiring harness 102 is greater than the probability of a problem with the tested software; when the ratio is less than the ratio threshold, determine that the probability of a problem with the tested software is greater than the probability of a problem with the tested wiring harness 102.
[0045] The "test signal with a problem receiving" mentioned here may include but is not limited to: the signal corresponding to the test signal is not received at the input module (ie, the signal is lost), or the signal received at the input module is different from the corresponding correct test signal.
[0046] The ratio threshold described here can be set according to actual needs or based on experience, and is not specifically limited in the embodiments of the present application.
[0047] In the case where there are multiple test signals, such as when testing the tested wiring harness 102 and the tested software based on CAN signals, multiple CAN signals are sent simultaneously to simulate the transmission of CAN signals on the vehicle. If there are a large number of problematic signals, it means that there is a high probability that the tested wiring harness 102 has problems, such as continuity problems, pin misalignment problems, etc. If there are a small number of problematic signals, it means that there is a high probability that the tested software has problems, because software configuration generally does not have too many or large-scale configuration errors. In this way, testers can be assisted in locating errors.
[0048] In some optional embodiments, such as Figure 2 As shown, the test equipment 101 may include: a host computer 1003 and a wire harness test device 1004. The host computer 1003 and the wire harness test device 1004 are connected in communication, specifically, through a wire harness or a wireless network (such as Bluetooth, etc.).
[0049] The host computer 1003 described here refers to a computing device that can directly issue control commands, and can specifically be a computer such as a desktop computer or a laptop computer. The program under test and the test program are both installed in the host computer 1003. Optionally, the test program can be a host computer software developed according to the test requirements using Qt development technology. Qt development technology is a general technical means, which can be used to develop software with specific requirements for installation on a computing device such as a computer.
[0050] The wiring harness testing device 1004 described here is mainly used to connect with the wiring harness 102 under test, test the wiring harness 102 under test, and realize the reception and transmission of test signals by the wiring harness 102 under test. Therefore, the aforementioned sending port 1001 and receiving port 1002 connected with the wiring harness 102 under test are arranged on the wiring harness testing device 1004.
[0051] In this embodiment, the host computer 1003 can generate a test signal through a test program, and send the test signal to the harness test device 1004 through the output module in the tested program; the harness test device 1004 receives the test signal sent by the host computer 1003, and sends the test signal to the tested harness 102 through the sending port 1001; the tested harness 102 receives the test signal through the sending port 1001 and transmits the test signal. Therefore, the test signal transmitted by the tested wiring harness 102 will be transmitted back to the wiring harness testing device 1004 through the receiving port 1002; after the wiring harness testing device 1004 receives the test signal through the receiving port 1002, it sends the test signal to the host computer 1003 based on the communication connection with the host computer 1003; the host computer 1003 receives the test signal through the input module in the tested program, and determines whether there is a problem between the tested program and the tested wiring harness 102 according to the reception of the test signal by the input module through the test program.
[0052] In this embodiment, the host computer 1003 can be an ordinary computer such as a desktop computer or a laptop computer, so that only the wire harness test device 1004 needs to be designed. The wire harness test device 1004 has relatively simple functions, so its structure is relatively simple and easy to design.
[0053] Optionally, pins are provided at both ends of the tested harness 102 , and different pins are defined to transmit different types of signals, such as hard-wired signals, CAN signals, LIN signals, and Ethernet signals, etc. The pins can be provided at both ends of the tested harness 102 in the form of connectors.
[0054] Since different pins are defined to transmit different types of signals, in order to enable the wiring harness testing device 1004 to send test signals to the pins corresponding to the wiring harness 102 under test, the host computer 1003 can send indication information to the wiring harness testing device 1004 to indicate the pins in the wiring harness 102 under test for transmitting test signals, so that the wiring harness testing device 1004 can accurately send the test signals to the corresponding pins of the wiring harness 102 under test based on the indication information.
[0055] The indication information may be generated by an output module in the program under test, and the output module may include a correspondence between different types of signals and pins of the wiring harness 102 under test. The indication information may be generated based on the correspondence and the type of the test signal.
[0056] Alternatively, if Figure 3As shown, the wiring harness test device 1004 may include: a signal distribution unit and a plurality of signal transceivers (such as the CAN signal transceiver, LIN signal transceiver and hard-wire signal transceiver in the figure). The signal distribution unit is connected to each signal transceiver respectively. Different signal transceivers are used to transmit and receive different types of signals. The transmitting port of each signal transceiver is connected to the transmitting port 1001 on the wiring harness test device 1004, and the receiving port of each signal transceiver is connected to the receiving port 1002 on the wiring harness test device, so as to be respectively connected to the two ends of the wiring harness 102 under test, and specifically can be connected to the pins used to transmit the same type of signal in the wiring harness 102 under test. For example, if the signal transceiver is a CAN signal transceiver, then the CAN signal transceiver is connected to the pins used to transmit CAN signals in the wiring harness 102 under test.
[0057] The wire harness testing device 1004 can specifically determine the type of the test signal through a signal distribution unit, and send the test signal to the tested wire harness 102 through a signal transceiver matching the type of the test signal. The details are as follows:
[0058] The harness test device 1004 can receive the test signal and indication information sent by the host computer 1003 through the communication port, and send the test signal and indication information to the signal distribution unit. The signal distribution unit determines the type of the test signal according to the indication information, and then sends the test signal to the corresponding signal transceiver, and the signal transceiver sends the test signal to the tested harness 102 through the sending port 1001. The signal transmitted by the tested harness 102 is then received by the receiving port 1002 and sent to the corresponding signal transceiver. After receiving the signal, the signal transceiver sends the signal to the signal distribution unit, and finally the signal distribution unit transmits it back to the host computer 1003 through the communication port.
[0059] For example, the signal distribution unit determines that the test signal is a CAN signal according to the indication information, and then sends the test signal to the CAN signal transceiver. The CAN signal transceiver is connected to the pins for transmitting CAN signals in the tested harness 102, and can send the test signal to the corresponding pins at one end of the tested harness 102 for signal transmission. If the pins for transmitting CAN signals at both ends of the tested harness 102 are correct, the signal transmitted through the tested harness 102 can be transmitted back to the CAN signal transceiver, and finally transmitted back to the host computer 1003 by the signal distribution unit; if the pins for transmitting CAN signals at both ends of the tested harness 102 are incorrect, the signal transmitted through the tested harness 102 may not be transmitted back to the CAN signal transceiver, such as being sent to other signal transceivers, or cannot be sent to any signal transceiver.
[0060] In the embodiment of the present application, by providing a signal distribution unit and a plurality of signal transceivers in the wire harness testing device 1004, various types of signal transmission can be performed more accurately.
[0061] Optionally, the hard-line signal transceiver may be an AD (analog to digital) / DA (digital to analog) conversion unit to achieve conversion between digital signals and analog signals.
[0062] In some optional embodiments, the test system may include multiple wire harness test devices 1004 , and different wire harness test devices 1004 are used to send and receive different types of signals.
[0063] The output module of the tested program can send a test signal to a target wiring harness test device through the host computer 1003 , and the type of the signal received and sent by the target wiring harness test device is the same as the type of the test signal.
[0064] In the embodiment of the present application, by providing a plurality of wire harness test devices 1004 and providing different wire harness test devices 1004 for transmitting and receiving different types of signals, various types of signals can be transmitted more accurately.
[0065] In some optional embodiments, the test system may further include: a signal conversion device, which is used to convert the signal transmitted between the host computer 1003 and the wiring harness test device 1004 into a signal adapted to the signal receiving port of the host computer 1003, or to convert it into a signal adapted to the signal receiving port of the wiring harness test device 1004. For example, the signal from the USB interface of the host computer 1003 to the wiring harness test device 1004 is converted into a serial port signal, and the signal from the wiring harness test device 1004 to the host computer 1003 is converted from a serial port signal into a signal that can be received by the USB interface.
[0066] Alternatively, if Figure 4 As shown, the signal conversion device 1005 can be arranged between the host computer 1003 and the wire harness test device 1004, that is, the signal conversion device 1005 is a device independent of the host computer 1003 and the wire harness test device 1004. Alternatively, the signal conversion device can also be integrated on the wire harness test device 1004, that is, when designing the wire harness test device 1004, the integrated design of the signal conversion device is also considered.
[0067] The above is a description of the test system provided in the embodiment of the present application.
[0068] In summary, through the test system provided in the embodiment of the present application, the testing of wiring harness and software can be implemented independently of the vehicle controller. There is no need to wait for the development of the controller to be completed. These software problems and wiring harness hardware problems can be discovered in time, saving software and wiring harness development time and development costs.
[0069] Exemplary Methods
[0070] Correspondingly, an embodiment of the present application also provides a testing method, which is applied to a testing device in the aforementioned testing system.
[0071] like Figure 5 As shown, the testing method may include:
[0072] Step 501: Send the test signal to the tested wiring harness through the output module.
[0073] Step 502: When it is detected that the input module does not receive any signal, or when it is detected that the signal received by the input module is different from the test signal, it is determined that there is a problem with the tested software and the tested wiring harness.
[0074] Optionally, when there are multiple test signals, step 502 may specifically include:
[0075] Determine the ratio of the number of test signals received with problems to the total number of test signals; when the ratio is greater than a ratio threshold, determine that the probability of the problem with the wiring harness under test is greater than the probability of the problem with the software under test; when the ratio is less than the ratio threshold, determine that the probability of the problem with the software under test is greater than the probability of the problem with the wiring harness under test.
[0076] Optionally, the testing method further comprises: sending indication information to the wiring harness testing device; wherein the indication information is used to indicate a pin in the tested wiring harness used to transmit the test signal.
[0077] Exemplary Devices
[0078] Correspondingly, an embodiment of the present application also provides a testing device, which is applied to the testing equipment in the aforementioned testing system.
[0079] The testing device may include:
[0080] The first sending module is used to send the test signal to the tested wiring harness through the output module.
[0081] The detection module is used to determine that there are problems with the tested software and the tested wiring harness when it is detected that the input module does not receive any signal or when it is detected that the signal received by the input module is different from the test signal.
[0082] Optionally, the detection module may be specifically used for:
[0083] Determine the ratio of the number of test signals received with problems to the total number of test signals; when the ratio is greater than a ratio threshold, determine that the probability of the problem with the wiring harness under test is greater than the probability of the problem with the software under test; when the ratio is less than the ratio threshold, determine that the probability of the problem with the software under test is greater than the probability of the problem with the wiring harness under test.
[0084] Optionally, the testing device may further include:
[0085] The second sending module is used to send indication information to the wiring harness testing device; wherein the indication information is used to indicate the pin in the tested wiring harness used to transmit the test signal.
[0086] Exemplary Electronic Devices
[0087] The present application also provides an electronic device, such as Figure 6 As shown, the electronic device includes: a memory 600 and a processor 610 .
[0088] The memory 600 is connected to the processor 610 and is used to store programs.
[0089] The processor 610 is used to implement the testing method in the above embodiment by running the program stored in the memory 600 .
[0090] Specifically, the electronic device may further include: a communication interface 620 , an input device 630 , an output device 640 and a bus 650 .
[0091] The processor 610, the memory 600, the communication interface 620, the input device 630 and the output device 640 are connected to each other via a bus.
[0092] Bus 650 may include a pathway for transferring information between the various components of the computer system.
[0093] The processor 610 may be a general-purpose processor, such as a general-purpose central processing unit (CPU), a microprocessor, etc., or an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the scheme of the present invention. It may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0094] The processor 610 may include a main processor, and may also include a baseband chip, a modem, and the like.
[0095] The memory 600 stores a program for executing the technical solution of the present invention, and may also store an operating system and other key services. Specifically, the program may include a program code, and the program code includes a computer operation instruction. More specifically, the memory 600 may include a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM), other types of dynamic storage devices that can store information and instructions, a disk storage, a flash, and the like.
[0096] The input device 630 may include a device for receiving data and information input by a user, such as a keyboard, a mouse, a camera, a scanner, a light pen, a voice input device, a touch screen, a pedometer, or a gravity sensor.
[0097] Output device 640 may include a device that allows information to be output to a user, such as a display screen, printer, speaker, etc.
[0098] The communication interface 620 may include any transceiver or the like to communicate with other devices or communication networks, such as Ethernet, a radio access network (RAN), a wireless local area network (WLAN), etc.
[0099] The processor 610 executes the program stored in the memory 600 and calls other devices, which can be used to implement the various steps of the testing method provided in the above embodiments of the present application.
[0100] Exemplary computer program products and storage media
[0101] In addition to the above-mentioned method and device, the embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps in the test method described in the embodiment of the present application.
[0102] The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0103] In addition, an embodiment of the present application may also be a storage medium on which a computer program is stored, and the computer program is executed by a processor to execute the steps of the test method described in the embodiment of the present application.
[0104] For the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0105] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0106] The steps in the methods of each embodiment of the present application can be adjusted in order, combined and deleted according to actual needs, and the technical features recorded in each embodiment can be replaced or combined.
[0107] The modules and sub-modules in the devices and terminals in the embodiments of the present application can be combined, divided and deleted according to actual needs.
[0108] In the several embodiments provided in the present application, it should be understood that the disclosed terminals, devices and methods can be implemented in other ways. For example, the terminal embodiments described above are only schematic, for example, the division of modules or submodules is only a logical function division, and there may be other division methods in actual implementation, for example, multiple submodules or modules can be combined or integrated into another module, 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 an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0109] The modules or submodules described as separate components may or may not be physically separated, and the components of the modules or submodules may or may not be physical modules or submodules, that is, they may be located in one place, or they may be distributed on multiple network modules or submodules. Some or all of the modules or submodules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0110] In addition, each functional module or submodule in each embodiment of the present application may be integrated into one processing module, or each module or submodule may exist physically separately, or two or more modules or submodules may be integrated into one module. The above-mentioned integrated modules or submodules may be implemented in the form of hardware or in the form of software functional modules or submodules.
[0111] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0112] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly by hardware, software units executed by a processor, or a combination of the two. The software units may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0113] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
Claims
1. A testing system, characterized in that: include: A test device and a tested wiring harness, wherein the test device comprises a transmitting port and a receiving port, two ends of the tested wiring harness are respectively connected to the transmitting port and the receiving port, and the tested wiring harness is used to be installed on a vehicle for signal transmission; The test device is installed with a tested program, the tested program includes an output module and an input module in the vehicle controller software, the output module is used to output a signal generated by the vehicle controller, and the input module is used to input an external signal to the vehicle controller; The test device is used to generate a test signal, and send the test signal to the tested wiring harness through the output module and the sending port, so that the test signal is transmitted back to the input module through the tested wiring harness and the receiving port; wherein the test signal is used to simulate the communication signal received or sent by the vehicle controller; The testing device is also used to determine that there are problems with the tested software and the tested wiring harness when it is detected that the input module does not receive any signal or when it is detected that the signal received by the input module is different from the test signal.
2. The test system according to claim 1, characterized in that: In the case where there are multiple test signals, the test device is specifically used for: determining a ratio of the number of test signals having reception problems to the total number of the test signals; In the case where the ratio is greater than the ratio threshold, determining that the probability that the tested wiring harness has a problem is greater than the probability that the tested software has a problem; When the ratio is less than the ratio threshold, it is determined that the probability that the tested software has a problem is greater than the probability that the tested wiring harness has a problem.
3. The test system according to claim 1 or 2, characterized in that: The test equipment comprises a host computer and a wiring harness test device, the program under test is installed on the host computer, and the sending port and the receiving port are arranged on the wiring harness test device; The host computer is used to generate the test signal, send the test signal to the wiring harness test device through the output module, and receive the signal sent by the wiring harness test device through the input module; The wiring harness testing device is used to receive a test signal sent by the host computer, and send the test signal to the wiring harness under test through the sending port, and receive a signal sent by the wiring harness under test through the receiving port; The host computer is also used to determine whether there are problems with the tested program and the tested wiring harness according to the reception status of the test signal by the input module.
4. The test system according to claim 3, characterized in that: Pins are arranged at both ends of the wiring harness to be tested, and different pins are defined to transmit different types of signals; The host computer is also used to send instruction information to the wiring harness test device; wherein the instruction information is used to indicate the pin in the tested wiring harness used to transmit the test signal; The wiring harness testing device is specifically configured to send the test signal to a corresponding pin of the wiring harness under test based on the indication information.
5. The test system according to claim 3, characterized in that: The wiring harness testing device comprises: a signal distribution unit and a plurality of signal transceivers, wherein different signal transceivers are used to transmit and receive different types of signals, and a transmitting port and a receiving port of each signal transceiver are respectively connected to two ends of the wiring harness under test; The wiring harness testing device is specifically used to determine the type of the test signal through the signal distribution unit, and send the test signal to the tested wiring harness through a signal transceiver matching the type of the test signal.
6. The test system according to claim 4 or 5, characterized in that: The type of the test signal includes at least one of the following: a hard-line signal, a CAN bus signal, a LIN bus signal, and an Ethernet signal.
7. The test system according to claim 3, characterized in that: The test system also includes: a signal conversion device for converting the signal transmitted between the host computer and the wiring harness test device into a signal adapted to the signal receiving port of the host computer, or into a signal adapted to the signal receiving port of the wiring harness test device.
8. A testing method, characterized in that: A test device used in a test system as claimed in any one of claims 1 to 7; The test method includes: Sending the test signal to the tested wiring harness through the output module; When it is detected that the input module does not receive any signal, or when it is detected that the signal received by the input module is different from the test signal, it is determined that there are problems with the tested software and the tested wiring harness.
9. An electronic device, characterized in that: include: Memory and processor; The memory is connected to the processor and is used to store programs; The processor is used to implement the testing method according to claim 8 by running the program in the memory.
10. A computer program product, characterized in that The computer program product stores a computer program, and when the computer program is executed by a processor, the testing method according to claim 8 is implemented.
