A vehicle-mounted TBOX signal test verification method, device and medium
Through the automated test verification method, the automated test host computer and CAN interface card equipment are used to realize the automation of on-board TBOX signal transmission and reception test, solving the problems of low manual operation efficiency and large test error in the existing technology, and improving the testing efficiency and accuracy sex.
Patent Information
- Application Number
- CN202411433092.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-14
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2044-10-14
AI Technical Summary
The existing on-board TBOX signal transmission and reception tests rely on manual operation, which is inefficient and has large test errors, especially when hundreds of CAN signals are needed.
The automated test verification method is adopted to automatically send and verify CAN signals through the combination of automated test host computer, CAN interface card equipment and TBOX testing equipment. The specific steps include determining the target CAN interface card device, establishing a signal channel mapping relationship, automatically sending the signals to be tested and comparing the results to be returned, and determining the signal test results.
It improves the efficiency and accuracy of on-board TBOX signal transmission and reception tests, reduces manual operation errors, and can efficiently handle a large number of CAN signal testing tasks.
Smart Images

Figure CN118972279B_ABST
Abstract
Description
Background Art
[0002] The on-board TBOX (Telematics BOX, an on-board remote communication terminal, a module integrating body network and wireless communication, used to connect the vehicle with the external network) is an important part of the Internet of Vehicles system. It communicates with the vehicle controller through the CAN bus to collect and control the controller data, and communicates with the car company's TSP backend system (Telematics Service Provider, automotive remote service provider terminal) through the 4G / 5G network to realize data reporting and vehicle control.
[0003] Generally speaking, during the development and debugging of the vehicle-mounted TBOX, the functions of other vehicle controllers are generally also being developed simultaneously. Therefore, TBOX cannot rely on the vehicle controller to perform signal reception and transmission tests, and can only use the analog controller to send CAN signals for reception and transmission tests.
[0004] The existing TBOX signal reception and transmission test is implemented by the tester manually sending CAN signals, and the correctness of the TBOX data reception and transmission needs to be manually checked. However, in the TBOX signal reception and transmission test, hundreds or even thousands of CAN signals on the whole vehicle need to be tested and collected. Therefore, the defects of this TBOX signal reception and transmission test are low efficiency of manual operation and large test errors. Summary of the invention
[0005] In view of the above technical problems, the technical solution adopted by the present invention is:
[0006] According to one aspect of the present application, a vehicle-mounted TBOX signal test verification method is provided, which is applied to a signal test verification system, wherein the signal test verification system includes an automated test host computer, several CAN interface card devices, and a TBOX test device;
[0007] The vehicle-mounted TBOX signal test verification method includes:
[0008] According to the signal transmission channel of the CAN interface card device and the vehicle signal channel of the TBOX to be tested, a target CAN interface card device is determined from a number of CAN interface card devices;
[0009] According to the signal attribute of each vehicle signal channel of the TBOX to be tested, the mapping relationship between each vehicle signal channel and the signal transmission channel of each target CAN interface card device and each test signal channel of the TBOX test device is determined;
[0010] According to the test signal protocol field stored in the automated test host computer, a plurality of signals to be tested are determined from a plurality of CAN signals stored in the automated test host computer; the test signal protocol field is a preset signal protocol field of a vehicle equipped with the TBOX to be tested;
[0011] Determine the target signal transmission channel corresponding to each signal to be tested according to the signal attribute corresponding to each signal to be tested and the signal attribute corresponding to the signal transmission channel of each target CAN interface card device;
[0012] Sending each signal to be tested to the TBOX to be tested via a target signal transmission channel corresponding to the signal to be tested and a test signal channel having a mapping relationship with the target signal transmission channel;
[0013] The signal test result of the TBOX to be tested is determined by comparing the result signal returned by the TBOX to be tested with each signal to be tested.
[0014] In an exemplary embodiment of the present application, the automated test host computer is connected to each CAN interface card device, and several CAN interface card devices are connected to the TBOX test device;
[0015] The automated test host computer is used to send the signal to be tested to the CAN interface card device and determine the signal test result of the TBOX to be tested;
[0016] The CAN interface card device is used to simulate the vehicle controller hardware device and send the received test signal to the TBOX test device;
[0017] The TBOX test equipment is used to simulate the power supply and wiring harness integration of the entire vehicle, and send the received test signal to the TBOX to be tested.
[0018] In an exemplary embodiment of the present application, a target CAN interface card device is determined from a number of CAN interface card devices according to a signal transmission channel of the CAN interface card device and a vehicle signal channel of a TBOX to be tested, including:
[0019] According to the number of signal transmission channels of each CAN interface card device, a plurality of CAN interface card devices are clustered to obtain a plurality of CAN interface card device groups; the number of signal transmission channels of a plurality of CAN interface card devices in any CAN interface card device group is equal;
[0020] Obtain the number of CAN interface card devices included in each CAN interface card device group to obtain a first quantity list A=(A 1 ,A 2 ,...,A m ,...,A h), where m=1,2,...,h; h is the number of CAN interface card device groups; A m is the number of CAN interface card devices included in the mth CAN interface card device group;
[0021] Obtain the number of signal transmission channels of any CAN interface card device in each CAN interface card device group to obtain a second number list B=(B 1 ,B 2 ,...,B m ,...,B h ), where B m is the number of signal transmission channels of any CAN interface card device in the mth CAN interface card device group;
[0022] Traverse each CAN interface card device group, if A m ×B m ≥z, the mth CAN interface card device group is determined as the target CAN interface card device group; wherein z is the number of vehicle signal channels of the TBOX to be tested;
[0023] The roundup(z / q) CAN interface card devices in any target CAN interface card device group are determined as target CAN interface card devices; wherein roundup() is a preset upper integer function; and q is the number of signal transmission channels of any CAN interface card device in the target CAN interface card device group.
[0024] In an exemplary embodiment of the present application, according to the signal attribute of each vehicle signal channel of the TBOX to be tested, a mapping relationship between each vehicle signal channel and a signal transmission channel of each target CAN interface card device and each test signal channel of the TBOX test device is determined, including:
[0025] Acquire the signal attribute information corresponding to each vehicle signal channel of the TBOX to be tested to obtain the first signal attribute information list C=(C 1 ,C 2 ,...,C j ,...,C z ), where j=1,2,...,z; C j is the signal attribute information corresponding to the j-th vehicle signal channel of the TBOX to be tested; the signal attribute information corresponding to the vehicle signal channel is the attribute information of the CAN signal that can be received by the vehicle signal channel;
[0026] Connecting a plurality of target CAN interface card devices in parallel to obtain a plurality of signal transmission channels after being connected in parallel;
[0027] Determine any z signal transmission channels among the plurality of signal transmission channels connected in parallel as key signal transmission channels;
[0028] A mapping relationship is established between each vehicle signal channel and each key signal transmission channel, so that each key signal transmission channel can transmit a CAN signal received by the vehicle signal channel that establishes a mapping relationship with the key signal transmission channel;
[0029] Obtain the signal attribute information corresponding to each test signal channel of the TBOX test device to obtain the second signal attribute information list D=(D 1 ,D 2 ,...,D u ,...,D v ), where u=1,2,...,v; v is the number of test signal channels of the TBOX test equipment; D u The signal attribute information corresponding to the u-th test signal channel of the TBOX test device;
[0030] Traverse the second signal attribute information list D, if D u =C j , a mapping relationship between the u-th test signal channel and the key signal transmission channel corresponding to the j-th vehicle signal channel is established, so that signal transmission can be performed between the key signal transmission channel corresponding to the j-th vehicle signal channel and the u-th test signal channel.
[0031] In an exemplary embodiment of the present application, according to the test signal protocol field stored in the automated test host computer, several signals to be tested are determined from several CAN signals stored in the automated test host computer, including:
[0032] Obtain the test signal protocol field stored in the automated test host computer;
[0033] Get the protocol fields corresponding to several CAN signals stored in the automated test host computer;
[0034] Each CAN signal stored in the automated test host computer is traversed. If the protocol field corresponding to any CAN signal is the same as the test signal protocol field, the CAN signal is determined as a signal to be tested.
[0035] In an exemplary embodiment of the present application, determining a target signal transmission channel corresponding to each signal to be tested according to a signal attribute corresponding to each signal to be tested and a signal attribute corresponding to a signal transmission channel of each target CAN interface card device includes:
[0036] Acquire the signal attribute information of each signal to be tested to obtain a third signal attribute information list E=(E 1 ,E 2,...,E i ,...,E n ), where i=1,2,...,n, and n is the number of signals to be tested. i is the signal attribute information of the i-th signal to be tested;
[0037] Obtain signal attribute information of a vehicle signal channel corresponding to each key signal transmission channel;
[0038] Traverse each key signal transmission channel, if the signal attribute information of the vehicle signal channel corresponding to any key signal transmission channel is consistent with E i If the key signal transmission channel is the same, the key signal transmission channel is determined as the target signal transmission channel corresponding to the i-th signal to be tested.
[0039] In an exemplary embodiment of the present application, each signal to be tested is sent to the TBOX to be tested via a target signal transmission channel corresponding to the signal to be tested and a test signal channel having a mapping relationship with the target signal transmission channel, including:
[0040] Traverse each signal to be tested in turn and set E i It passes through the target signal transmission channel corresponding to the i-th signal to be tested and the test signal channel having a mapping relationship with the target signal transmission channel in sequence, and is sent to the TBOX to be tested.
[0041] In an exemplary embodiment of the present application, by comparing the result signal returned by the TBOX to be tested with each signal to be tested, determining the signal test result of the TBOX to be tested includes:
[0042] Obtain the result signal returned by the TBOX to be tested after receiving each signal to be tested;
[0043] If the result signal corresponding to the signal to be tested is the same as the signal to be tested, the signal to be tested is determined as a normal test signal;
[0044] If the ratio of the number of normal test signals to the number of signals to be tested is greater than a preset normal signal ratio threshold, the test pass is determined as the signal test result of the TBOX to be tested; otherwise, the test fail is determined as the signal test result of the TBOX to be tested.
[0045] According to one aspect of the present application, a non-transitory computer-readable storage medium is provided, in which at least one instruction or at least one program is stored, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the aforementioned vehicle-mounted TBOX signal test verification method.
[0046] According to one aspect of the present application, an electronic device is provided, including a processor and the aforementioned non-transitory computer-readable storage medium.
[0047] The present invention has at least the following beneficial effects:
[0048] The vehicle-mounted TBOX signal test verification method of the present invention first determines a target CAN interface card device for signal test from a plurality of CAN interface card devices according to a signal transmission channel of a CAN interface card device and a vehicle signal channel of a TBOX to be tested, then determines a mapping relationship between each vehicle signal channel and a signal transmission channel of each target CAN interface card device and each test signal channel of a TBOX test device according to a signal attribute of each vehicle signal channel of the TBOX to be tested, so that test signals with different signal attributes can be transmitted to the TBOX to be tested through different signal channels, then determines a plurality of signals to be tested from a plurality of CAN signals according to a test signal protocol field stored in an automated test host computer, determines a target signal transmission channel corresponding to each signal to be tested according to a signal attribute corresponding to each signal to be tested and a signal attribute corresponding to a signal transmission channel of each target CAN interface card device, sends each signal to be tested to the TBOX to be tested via a target signal transmission channel corresponding to the signal to be tested and a test signal channel having a mapping relationship with the target signal transmission channel, and finally determines a signal test result of the TBOX to be tested by comparing a result signal returned by the TBOX to be tested with each signal to be tested. By automatically sending and verifying CAN signals, the efficiency and accuracy of the signal transmission and reception test of the vehicle-mounted TBOX are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0050] Figure 1 A flow chart of a vehicle-mounted TBOX signal test and verification method provided by an embodiment of the present invention;
[0051] Figure 2 A block diagram of the components and connections of a signal testing and verification system provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0053] A vehicle-mounted TBOX signal test and verification method is applied to a signal test and verification system, such as Figure 2 As shown, the signal test verification system includes an automated test host computer, several CAN interface card devices (i.e. Figure 2 CAN interface card in the TBOX test equipment (i.e. Figure 2 The TBOX test bench in the test is connected to the automated test host computer and each CAN interface card device. Several CAN interface card devices are connected to the TBOX test device. The TBOX test device is used to connect to the TBOX to be tested (i.e. Figure 2 The TBOX in the signal test is connected to the test object in this application).
[0054] The automated test host computer is responsible for simulating the transmission of CAN bus data on the vehicle, for sending the test signal to the CAN interface card device, and determining the signal test result of the TBOX to be tested.
[0055] The CAN interface card device can be a CAN signal transceiver, which is used to simulate the vehicle controller hardware device and send the received signal to be tested to the TBOX test device.
[0056] The TBOX test equipment is used to simulate the power supply and wiring harness integration of the entire vehicle, and send the received test signal to the TBOX to be tested.
[0057] Among them, Figure 1 As shown, the vehicle-mounted TBOX signal test verification method described in this application includes:
[0058] Step S100, determining a target CAN interface card device from a plurality of CAN interface card devices according to the signal transmission channel of the CAN interface card device and the vehicle signal channel of the TBOX to be tested;
[0059] At present, the CAN interface card devices on the market generally support 1 to 8 channels. The more channels, the more expensive it is. Therefore, considering the actual application scenarios and economic use, most of the CAN interface card devices use 2 and 4 channels. However, in the automotive communication system, the vehicle CAN bus can be divided into power CAN bus, chassis CAN bus, information CAN bus, diagnostic CAN bus, body CAN bus, new energy CAN bus, etc., which must exceed 4 channels in the application. Therefore, a single CAN interface card device cannot meet the needs of simulating all CAN bus channels of the vehicle. It can only consider the method of connecting multiple CAN interface card devices in parallel to generate more channels. Therefore, it is necessary to determine the target CAN interface card device for signal testing among several CAN interface card devices. For example: if the vehicle has 8 CAN bus channels and uses a 2-channel CAN interface card device, it is necessary to use 4 CAN interface card devices in parallel. The manufacturers of CAN interface card devices generally provide SDK interfaces to facilitate users' secondary development, so even if CAN interface card devices from different manufacturers are used, data transmission and reception can be compatible by calling the corresponding SDK interfaces provided by the manufacturers.
[0060] Further, step S100 includes steps S110 to S150:
[0061] Step S110: clustering a plurality of CAN interface card devices according to the number of signal transmission channels of each CAN interface card device to obtain a plurality of CAN interface card device groups;
[0062] The numbers of signal transmission channels of the several CAN interface card devices in any CAN interface card device group are equal.
[0063] Step S120: Obtain the number of CAN interface card devices included in each CAN interface card device group to obtain a first number list A=(A 1 ,A 2 ,...,A m ,...,A h ), where m=1,2,...,h; h is the number of CAN interface card device groups; A m is the number of CAN interface card devices included in the mth CAN interface card device group;
[0064] Step S130: Obtain the number of signal transmission channels of any CAN interface card device in each CAN interface card device group to obtain a second number list B=(B 1 ,B 2 ,...,B m ,...,B h ), where B mis the number of signal transmission channels of any CAN interface card device in the mth CAN interface card device group;
[0065] Step S140, traverse each CAN interface card device group, if A m ×B m ≥z, the mth CAN interface card device group is determined as the target CAN interface card device group; wherein z is the number of vehicle signal channels of the TBOX to be tested; and the vehicle signal channel is the signal channel required by the TBOX to be tested when performing a signal test;
[0066] Step S150: determine roundup(z / q) CAN interface card devices in any target CAN interface card device group as target CAN interface card devices; wherein roundup() is a preset ceiling function; and q is the number of signal transmission channels of any CAN interface card device in the target CAN interface card device group.
[0067] Step S200, according to the signal attribute of each vehicle signal channel of the TBOX to be tested, determining the mapping relationship between each vehicle signal channel and the signal transmission channel of each target CAN interface card device and each test signal channel of the TBOX test device;
[0068] In step S200, after the target CAN interface card device is determined, the vehicle CAN bus channel is mapped to the signal transmission channel of the target CAN interface card device, and then the signal transmission channel of the target CAN interface card device is mapped to the test signal channel of the TBOX test device. For example: the power CAN bus channel of the vehicle is mapped to the first channel of the target CAN interface card device, and the first channel of the target CAN interface card device is mapped to the first test signal channel of the TBOX test device, then the first channel terminal of the target CAN interface card device can be connected to the first test signal channel of the TBOX test device, so that the configuration of the first channel of the target CAN interface card device as the power CAN bus channel of the vehicle is completed, and the subsequent sending of the test data signal to the first channel of the target CAN interface card device simulates the scenario of sending data to the power CAN bus channel of the vehicle.
[0069] Further, step S200 includes steps S210 to S260:
[0070] Step S210: Acquire the signal attribute information corresponding to each vehicle signal channel of the TBOX to be tested, so as to obtain a first signal attribute information list C=(C 1 ,C 2 ,...,C j ,...,C z ), where j=1,2,...,z; Cj is the signal attribute information corresponding to the j-th vehicle signal channel of the TBOX to be tested;
[0071] The signal attribute information corresponding to the vehicle signal channel is the attribute information of the CAN signal that can be received by the vehicle signal channel. The signal attribute information is the attribute information corresponding to different CAN signals of the whole vehicle CAN bus. For example, it can be indicated that the corresponding CAN signal bus is one of the power CAN bus, chassis CAN bus, information CAN bus, diagnostic CAN bus, body CAN bus, and new energy CAN bus.
[0072] Step S220, connecting a plurality of target CAN interface card devices in parallel to obtain a plurality of signal transmission channels after being connected in parallel;
[0073] Step S230, determining any z signal transmission channels among the plurality of signal transmission channels connected in parallel as key signal transmission channels;
[0074] Step S240, establishing a mapping relationship between each vehicle signal channel and each key signal transmission channel one by one, so that each key signal transmission channel can transmit the CAN signal received by the vehicle signal channel that establishes a mapping relationship with the key signal transmission channel;
[0075] Step S250: Acquire the signal attribute information corresponding to each test signal channel of the TBOX test device to obtain a second signal attribute information list D=(D 1 ,D 2 ,...,D u ,...,D v ), where u=1,2,...,v; v is the number of test signal channels of the TBOX test equipment; D u The signal attribute information corresponding to the u-th test signal channel of the TBOX test device;
[0076] Step S260: traverse the second signal attribute information list D. If D u =C j , a mapping relationship between the u-th test signal channel and the key signal transmission channel corresponding to the j-th vehicle signal channel is established, so that signal transmission can be performed between the key signal transmission channel corresponding to the j-th vehicle signal channel and the u-th test signal channel.
[0077] Step S300, according to the test signal protocol field stored in the automated test host computer, determining a plurality of signals to be tested from a plurality of CAN signals stored in the automated test host computer;
[0078] Further, step S300 includes step S310-step S330:
[0079] Step S310, obtaining the test signal protocol field stored in the automated test host computer;
[0080] The test signal protocol field is a preset signal protocol field of the vehicle configured with the TBOX to be tested.
[0081] The OEM generally provides the supplier with the DBC (Dynamic Body Control, CAN bus database) file for the whole vehicle, and the TSP background system of the car manufacturer needs to collect some CAN data points. In order to meet the customized CAN data collection needs of the OEM, TBOX needs to collect a large number of CAN signals and report them to the TSP background system of the car manufacturer. Therefore, the OEM TSP background system needs to collect a large number of controller CAN signals. According to the mapping relationship between the CAN signal data points input by the OEM and the protocol fields of the OEM TSP background system, the CAN signals that need to be reported can be clearly identified. The OEM TSP background system generally collects CAN signals related to the controller. This requires the configuration of the CAN signal set related to the controller to facilitate the control of the data transmission of a single CAN signal set or multiple CAN signal sets.
[0082] Step S320, obtaining protocol fields corresponding to a plurality of CAN signals stored in the automated test host computer;
[0083] Step S330: traverse each CAN signal stored in the automated test host computer, and if the protocol field corresponding to any CAN signal is the same as the test signal protocol field, determine the CAN signal as a signal to be tested.
[0084] Step S400, determining a target signal transmission channel corresponding to each signal to be tested according to a signal attribute corresponding to each signal to be tested and a signal attribute corresponding to a signal transmission channel of each target CAN interface card device;
[0085] Further, step S400 includes step S410-step S430:
[0086] Step S410: Acquire the signal attribute information of each signal to be tested to obtain a third signal attribute information list E=(E 1 ,E 2 ,...,E i ,...,E n ), where i=1,2,...,n, and n is the number of signals to be tested. i is the signal attribute information of the i-th signal to be tested;
[0087] Step S420, obtaining signal attribute information of the vehicle signal channel corresponding to each key signal transmission channel;
[0088] Step S430, traverse each key signal transmission channel, if the signal attribute information of the vehicle signal channel corresponding to any key signal transmission channel is the same as E i If the key signal transmission channel is the same, the key signal transmission channel is determined as the target signal transmission channel corresponding to the i-th signal to be tested.
[0089] Step S500: Send each signal to be tested to the TBOX to be tested via a target signal transmission channel corresponding to the signal to be tested and a test signal channel having a mapping relationship with the target signal transmission channel;
[0090] Further, step S500 includes step S510:
[0091] Step S510, traverse each signal to be tested in turn, and i It passes through the target signal transmission channel corresponding to the i-th signal to be tested and the test signal channel having a mapping relationship with the target signal transmission channel in sequence, and is sent to the TBOX to be tested.
[0092] Step S600, determining the signal test result of the TBOX to be tested by comparing the result signal returned by the TBOX to be tested with each signal to be tested;
[0093] Further, step S600 includes steps S610 to S630:
[0094] Step S610, obtaining the result signal returned by the TBOX to be tested after receiving each signal to be tested;
[0095] Step S620: If the result signal corresponding to the signal to be tested is the same as the signal to be tested, the signal to be tested is determined as a normal test signal;
[0096] Step S630: if the ratio of the number of normal test signals to the number of signals to be tested is greater than a preset normal signal ratio threshold, the test pass is determined as the signal test result of the TBOX to be tested; otherwise, the test fail is determined as the signal test result of the TBOX to be tested.
[0097] During the test of the signal to be tested, the signal test verification system will obtain the binding relationship between the CAN channel and the signal to be tested based on the DBC file of each CAN bus imported, and automatically identify the signal transmission channel of the target CAN interface card device associated with the signal to be tested by channel mapping. By calling the SDK interface provided by the manufacturer of the target CAN interface card device, the signal to be tested can be sent to the channel, and then forwarded by the CAN gateway, and finally received by the TBOX to be tested. After receiving the signal to be tested, the TBOX to be tested parses the signal data, and then repackages it and sends it back to the automated test host computer. The automated test host computer compares the consistency of the sent and received data. If the data before and after are exactly the same, it means that the test of the signal to be tested passes, otherwise the test fails.
[0098] After comparing the test signal to obtain the signal test result, the automated test host will generate a detailed CAN signal receiving and sending data comparison table, which is convenient for developers to analyze the specific CAN signal with error and troubleshoot the problem. By checking the signal test result, the abnormal test signal can be determined and the problems in the process of TBOX collecting and processing CAN signals can be found, which is convenient for developers to quickly locate the problem and improve the test efficiency.
[0099] The vehicle-mounted TBOX signal test verification method of the present invention first determines a target CAN interface card device for signal test from a plurality of CAN interface card devices according to a signal transmission channel of a CAN interface card device and a vehicle signal channel of a TBOX to be tested, then determines a mapping relationship between each vehicle signal channel and a signal transmission channel of each target CAN interface card device and each test signal channel of a TBOX test device according to a signal attribute of each vehicle signal channel of the TBOX to be tested, so that test signals with different signal attributes can be transmitted to the TBOX to be tested through different signal channels, then determines a plurality of signals to be tested from a plurality of CAN signals according to a test signal protocol field stored in an automated test host computer, determines a target signal transmission channel corresponding to each signal to be tested according to a signal attribute corresponding to each signal to be tested and a signal attribute corresponding to a signal transmission channel of each target CAN interface card device, sends each signal to be tested to the TBOX to be tested via a target signal transmission channel corresponding to the signal to be tested and a test signal channel having a mapping relationship with the target signal transmission channel, and finally determines a signal test result of the TBOX to be tested by comparing a result signal returned by the TBOX to be tested with each signal to be tested. By automatically sending and verifying CAN signals, the efficiency and accuracy of the signal transmission and reception test of the vehicle-mounted TBOX are improved.
[0100] An embodiment of the present invention further provides a computer program product, which includes program code. When the program product is run on an electronic device, the program code is used to enable the electronic device to execute the steps of the method according to various exemplary embodiments of the present invention described above in this specification.
[0101] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0102] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0103] In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
[0104] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as a "circuit", "module" or "system".
[0105] The electronic device according to this embodiment of the present invention is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0106] The electronic device is presented in the form of a general-purpose computing device. The components of the electronic device may include, but are not limited to: the at least one processor mentioned above, the at least one storage device mentioned above, and a bus connecting different system components (including storage devices and processors).
[0107] The storage stores program codes, which can be executed by the processor, so that the processor executes the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification.
[0108] The memory may include readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory, and may further include read only memory (ROM).
[0109] The storage may also include a program / utility having a set (at least one) of program modules, such program modules including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0110] The bus may represent one or more of several types of bus structures including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.
[0111] The electronic device may also communicate with one or more external devices (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may communicate with one or more devices that enable a user to interact with the electronic device, and / or may communicate with any device (e.g., routers, modems, etc.) that enables the electronic device to communicate with one or more other computing devices. This communication may be performed through an input / output (I / O) interface. In addition, the electronic device may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) through a network adapter. As shown in the figure, the network adapter communicates with other modules of the electronic device through a bus. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0112] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes a number of instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0113] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.
[0114] The program product may be any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0115] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0116] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0117] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0118] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0119] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0120] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A vehicle-mounted TBOX signal test and verification method, characterized in that: Applied to a signal test verification system, the signal test verification system includes an automated test host computer, several CAN interface card devices, and a TBOX test device, the CAN interface card device is used to simulate the vehicle controller hardware device; The vehicle-mounted TBOX signal test verification method includes: Determine a target CAN interface card device from a plurality of CAN interface card devices according to a signal transmission channel of the CAN interface card device and a vehicle signal channel of the TBOX to be tested; According to the signal attribute of each vehicle signal channel of the TBOX to be tested, determining the mapping relationship between each vehicle signal channel and each signal transmission channel of the target CAN interface card device and each test signal channel of the TBOX test device; According to the test signal protocol field stored in the automated test host computer, a plurality of signals to be tested are determined from a plurality of CAN signals stored in the automated test host computer; the test signal protocol field is a preset signal protocol field of the vehicle equipped with the TBOX to be tested; Determine the target signal transmission channel corresponding to each of the signals to be tested according to the signal attribute corresponding to each of the signals to be tested and the signal attribute corresponding to the signal transmission channel of each of the target CAN interface card devices; Sending each of the signals to be tested to the TBOX to be tested via a target signal transmission channel corresponding to the signal to be tested and a test signal channel having a mapping relationship with the target signal transmission channel; The signal test result of the TBOX to be tested is determined by comparing the result signal returned by the TBOX to be tested with each of the signals to be tested.
2. The vehicle-mounted TBOX signal test verification method according to claim 1, characterized in that: The automated test host computer is connected to each of the CAN interface card devices, and a plurality of the CAN interface card devices are connected to the TBOX test device; The automated test host computer is used to send the signal to be tested to the CAN interface card device and determine the signal test result of the TBOX to be tested; The CAN interface card device sends the received signal to be tested to the TBOX test device; The TBOX test equipment is used to simulate the power supply and wiring harness integration of the entire vehicle, and sends the received signal to be tested to the TBOX to be tested.
3. The vehicle-mounted TBOX signal test verification method according to claim 2, characterized in that: The step of determining a target CAN interface card device from a plurality of CAN interface card devices according to the signal transmission channel of the CAN interface card device and the vehicle signal channel of the TBOX to be tested comprises: According to the number of signal transmission channels of each of the CAN interface card devices, a plurality of the CAN interface card devices are clustered to obtain a plurality of CAN interface card device groups; the number of signal transmission channels of a plurality of the CAN interface card devices in any of the CAN interface card device groups is equal; Obtain the number of the CAN interface card devices included in each of the CAN interface card device groups to obtain a first number list A=(A1, A2, ..., A m ,...,A h ); wherein, m = 1, 2, ..., h; h is the number of the CAN interface card device group; A m is the number of the CAN interface card devices included in the mth CAN interface card device group; Obtain the number of signal transmission channels of any CAN interface card device in each CAN interface card device group to obtain a second number list B=(B1, B2, ..., B m ,...,B h ), where B m is the number of signal transmission channels of any CAN interface card device in the mth CAN interface card device group; Traverse each of the CAN interface card device groups, if A m ×B m ≥z, the mth CAN interface card device group is determined as the target CAN interface card device group; wherein z is the number of vehicle signal channels of the TBOX to be tested; Determine roundup(z / q) CAN interface card devices in any of the target CAN interface card device groups as target CAN interface card devices; wherein roundup() is a preset upper integer function; and q is the number of signal transmission channels of any of the CAN interface card devices in the target CAN interface card device group.
4. The vehicle-mounted TBOX signal test verification method according to claim 3, characterized in that: The step of determining the mapping relationship between each vehicle signal channel and each signal transmission channel of the target CAN interface card device and each test signal channel of the TBOX test device according to the signal attribute of each vehicle signal channel of the TBOX to be tested comprises: Acquire the signal attribute information corresponding to each vehicle signal channel of the TBOX to be tested to obtain a first signal attribute information list C=(C1, C2, ..., C j ,...,C z ), where j = 1, 2, ..., z; C j is the signal attribute information corresponding to the j-th vehicle signal channel of the TBOX to be tested; the signal attribute information corresponding to the vehicle signal channel is the attribute information of the CAN signal that can be received by the vehicle signal channel; Connecting a plurality of the target CAN interface card devices in parallel to obtain a plurality of signal transmission channels after being connected in parallel; Determine any z signal transmission channels among the plurality of signal transmission channels connected in parallel as key signal transmission channels; Establishing a mapping relationship between each of the vehicle signal channels and each of the key signal transmission channels one by one, so that each of the key signal transmission channels can transmit the CAN signal received by the vehicle signal channel that establishes a mapping relationship with the key signal transmission channel; Acquire the signal attribute information corresponding to each test signal channel of the TBOX test device to obtain a second signal attribute information list D=(D1, D2, ..., D u ,...,D v ); wherein u = 1, 2, ..., v; v is the number of test signal channels of the TBOX test device; D u The signal attribute information corresponding to the u-th test signal channel of the TBOX test device; Traverse the second signal attribute information list D, if D u =C j , a mapping relationship between the u-th test signal channel and the key signal transmission channel corresponding to the j-th vehicle signal channel is established, so that signal transmission can be performed between the key signal transmission channel corresponding to the j-th vehicle signal channel and the u-th test signal channel.
5. The vehicle-mounted TBOX signal test verification method according to claim 4, characterized in that: The step of determining a plurality of signals to be tested from a plurality of CAN signals stored in the automated test host computer according to the test signal protocol field stored in the automated test host computer comprises: Obtaining the test signal protocol field stored in the automated test host computer; Obtaining protocol fields corresponding to several CAN signals stored in the automated test host computer; Each CAN signal stored in the automated test host computer is traversed, and if the protocol field corresponding to any CAN signal is the same as the test signal protocol field, the CAN signal is determined as a signal to be tested.
6. The vehicle-mounted TBOX signal test verification method according to claim 5, characterized in that: Determining the target signal transmission channel corresponding to each of the signals to be tested according to the signal attribute corresponding to each of the signals to be tested and the signal attribute corresponding to the signal transmission channel of each of the target CAN interface card devices includes: Acquire the signal attribute information of each of the signals to be tested to obtain a third signal attribute information list E=(E1, E2, ..., E i ,...,E n ), wherein i=1, 2, ..., n, and n is the number of the signals to be tested; E i is the signal attribute information of the i-th signal to be tested; Acquire signal attribute information of a vehicle signal channel corresponding to each of the key signal transmission channels; Traverse each of the key signal transmission channels, if the signal attribute information of the vehicle signal channel corresponding to any of the key signal transmission channels is the same as E i If the key signal transmission channel is the same, the key signal transmission channel is determined as the target signal transmission channel corresponding to the i-th signal to be tested.
7. The vehicle-mounted TBOX signal test and verification method according to claim 6, characterized in that: The step of sending each of the signals to be tested to the TBOX to be tested via a target signal transmission channel corresponding to the signal to be tested and a test signal channel having a mapping relationship with the target signal transmission channel comprises: Traverse each of the signals to be tested in turn, and set E i It sequentially passes through the target signal transmission channel corresponding to the i-th signal to be tested and the test signal channel having a mapping relationship with the target signal transmission channel, and is sent to the TBOX to be tested.
8. The vehicle-mounted TBOX signal test verification method according to claim 7, characterized in that: The step of comparing the result signal returned by the TBOX to be tested with each of the signals to be tested to determine the signal test result of the TBOX to be tested comprises: Obtaining a result signal returned by the TBOX to be tested after receiving each of the signals to be tested; If the result signal corresponding to the signal to be tested is the same as the signal to be tested, determining the signal to be tested as a normal test signal; If the ratio of the number of normal test signals to the number of signals to be tested is greater than a preset normal signal ratio threshold, a test pass is determined as the signal test result of the TBOX to be tested; otherwise, a test fail is determined as the signal test result of the TBOX to be tested.
9. A non-transitory computer-readable storage medium, wherein at least one instruction or at least one program is stored in the storage medium, characterized in that: The at least one instruction or the at least one program is loaded and executed by the processor to implement the vehicle-mounted TBOX signal test and verification method as claimed in any one of claims 1 to 8.
10. An electronic device, characterized in that: The invention comprises a processor and the non-transitory computer-readable storage medium as claimed in claim 9.
Citation Information
Patent Citations
Vehicle-mounted ECU bus refreshing test method and system
CN115794142A
Test system of vehicle control unit of electric vehicle
CN214311429U