T-BOX function test method and system
By simulating the operating environment of the equipment and the vehicle operating position, combined with the use of communication simulators, recording and comparing bus simulation data, the problem of low accuracy of T-BOX functional testing is solved, and efficient functional detection in the field of Internet of Vehicles is achieved.
Patent Information
- Application Number
- CN202411257288.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2024-12-24
AI Technical Summary
In the field of Internet of Vehicles, there are challenges in how to improve the accuracy of functional testing of T-BOX, especially in simulating the effectiveness, accuracy and reliability verification of real-life bus communication environment and remote dynamic acquisition systems.
Using a functional test system including equipment operation test system, operation position simulator, communication simulator, upper computer, T-BOX to be tested, data monitor and client, through simulating the equipment operation environment, vehicle operation position, communication standard mode and channel In the scenario, the candidate bus simulation data is recorded, and the function detection results of T-BOX are determined by comparing the client with the preset standard data.
On the basis of building simulated vehicle operation, the accuracy of T-BOX function detection is improved, functional closed-loop testing is realized, and the accuracy and reliability of the test are ensured.
Smart Images

Figure CN119182690A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of simulation testing technology, and in particular to a T-BOX function testing method and system. Background Art
[0002] With the rapid development of Internet of Vehicles technology, more and more types of services are derived from Internet-connected products. As a specific business application in the remote service function, the remote dynamic acquisition system can provide a convenient remote vehicle data supervision method for vehicle organizations, which is used for vehicle status tracking, problem troubleshooting, fuel consumption data statistics, emission data monitoring, driving behavior analysis, etc. In addition, different target data can be collected on demand for different vehicles through dynamic configurable methods, which saves data traffic expenses and improves personalized services and flexibility of use. At the same time, the effectiveness, accuracy and reliability verification of the remote dynamic acquisition system during the development process is different from the traditional non-networked vehicle testing. To complete the functional closed-loop test, on the one hand, it is necessary to simulate the real vehicle bus communication environment, and on the other hand, it is necessary to verify the results sent by the T-BOX (telematics box, remote communication module) to the cloud server and finally displayed on the client. Therefore, it is crucial to improve the accuracy of functional testing of T-BOX. Summary of the invention
[0003] The present invention provides a T-BOX function testing method and system to improve the accuracy of function testing on the T-BOX.
[0004] According to one aspect of the present invention, a T-BOX function test method is provided, which is applied to a T-BOX function test system, wherein the T-BOX function test system includes a device operation test system, an operation position simulator and a communication simulator, a host computer, a T-BOX to be tested, a data monitor and a client, and the method includes:
[0005] The device operation test system simulates the device operation environment according to the device test data sent by the host computer;
[0006] Simulating the vehicle running position through the running position simulator according to the vehicle running test data sent by the host computer;
[0007] Simulating the communication mode and the communication channel scenario through the communication simulator according to the communication test data sent by the host computer;
[0008] Recording the candidate bus simulation data sent by the host computer under the device operating environment, the vehicle operating position, the communication standard mode and the communication channel scenario through the data monitor;
[0009] The T-BOX to be tested responds to the data acquisition instruction sent by the client, obtains the target bus simulation data from the data monitor, and feeds back the target bus simulation data to the client;
[0010] The client compares the target bus simulation data with corresponding preset vehicle bus standard data to determine the function detection result of the T-BOX to be tested.
[0011] According to another aspect of the present invention, a T-BOX functional test system is provided, comprising: a device operation test system, an operation position simulator and a communication simulator, a host computer, a T-BOX to be tested, a data monitor and a client, wherein:
[0012] The device operation test system is communicatively connected to the host computer and is used to simulate the device operation environment according to the device test data sent by the host computer;
[0013] The operation position simulator is communicatively connected to the host computer and is used to simulate the vehicle operation position according to the vehicle operation test data sent by the host computer;
[0014] The communication simulator is communicatively connected to the host computer and is communicatively connected to the client, and is used to simulate a communication mode and a communication channel scenario according to communication test data sent by the host computer;
[0015] The data monitor is communicatively connected to the host computer and is communicatively connected to the equipment operation test system, and is used to record the candidate bus simulation data sent by the host computer under the equipment operation environment, the vehicle operation position, the communication standard mode and the communication channel scenario;
[0016] The T-BOX to be tested is physically connected to the equipment operation test system, the operation position simulator and the communication simulator respectively, and is used to obtain target bus simulation data from the data monitor in response to the data acquisition instruction sent by the client, and feed back the target bus simulation data to the client;
[0017] The client is used to receive the target bus simulation data, and compare the target bus simulation data with corresponding preset vehicle bus standard data to determine the function detection result of the T-BOX to be tested.
[0018] The embodiment of the present invention provides a functional test solution for a T-BOX, wherein a device operation test system simulates a device operation environment according to device test data sent by a host computer; a vehicle operation position is simulated according to vehicle operation test data sent by a host computer through a running position simulator; a communication standard mode and a communication channel scenario are simulated according to communication test data sent by the host computer through a communication simulator; candidate bus simulation data sent by the host computer under the device operation environment, vehicle operation position, communication standard mode and communication channel scenario are recorded through a data monitor; the T-BOX to be tested responds to a data acquisition instruction sent by a client, obtains target bus simulation data from the data monitor, and feeds back the target bus simulation data to the client; the client compares the target bus simulation data with corresponding preset vehicle bus standard data to determine a functional detection result of the T-BOX to be tested. The above scheme determines the functional test result of the T-BOX to be tested by comparing the target bus simulation data obtained by the T-BOX to be tested from the data monitor with the corresponding vehicle bus standard data in a simulation environment composed of the equipment operation environment, vehicle operation position, communication format mode and communication channel scenario, thereby realizing functional testing of the T-BOX on the basis of the constructed simulated vehicle operation conditions, thereby improving the accuracy of functional testing of the T-BOX to be tested.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] 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.
[0021] Figure 1 is a flow chart of a T-BOX function testing method provided by Embodiment 1 of the present invention;
[0022] Figure 2 is a structural diagram of a T-BOX function test system provided by Embodiment 2 of the present invention;
[0023] Figure 3 is a structural diagram of another T-BOX function test system provided by Embodiment 2 of the present invention;
[0024] Figure 4 is a structural diagram of another T-BOX function test system provided by Embodiment 2 of the present invention;
[0025] Figure 5 It is a structural diagram of another T-BOX function test system provided in the second embodiment of the present invention. DETAILED DESCRIPTION
[0026] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0027] Embodiment 1
[0028] Figure 1 It is a flow chart of a T-BOX functional testing method provided in Embodiment 1 of the present invention. This embodiment is applicable to the case of testing the function of the T-BOX. The method can be executed by the T-BOX functional testing method. The device can be implemented in software and / or hardware and can be configured in an electronic device that carries the functional testing function of the T-BOX.
[0029] See also Figure 1 The functional test method of the T-BOX shown is applied to the functional test system of the T-BOX. The functional test system of the T-BOX includes a device operation test system, an operation position simulator and a communication simulator, a host computer, a T-BOX to be tested, a data monitor and a client. The method includes:
[0030] S110, simulating the device operation environment through the device operation test system according to the device test data sent by the host computer.
[0031] The device operation test system may be a system for simulating the operation environment of the vehicle-mounted device. Exemplarily, the device operation test system may be a HIL (Hardware-in-the-Loop) test system.
[0032] The host computer refers to an instrument that provides data for simulating the simulation environment of the T-BOX to be tested. The equipment test data refers to the simulation data used to determine the equipment operating environment. The equipment operating environment refers to the operating environment of each load and controller in the vehicle.
[0033] Exemplarily, the HIL test system simulates the equipment operating environment in which the load and controller in the vehicle are located based on the equipment test data sent by the host computer.
[0034] In an optional embodiment, the device operation test system simulates the device operation environment according to the device test data sent by the upper computer, including: judging through the device operation test system whether there is device abnormality associated data in the device test data; if so, simulating the device abnormal operation environment through the fault injection board in the device operation test system; if not, simulating the device normal operation environment through the fault injection board in the device operation test system.
[0035] Among them, the device abnormality associated data refers to data used to determine the abnormal operating environment of the device. Exemplarily, the device abnormality associated data may include a faulty device identifier and a fault content. The faulty device identifier is used to characterize the identity of the faulty device. The fault content refers to a description of the fault that occurs in the faulty device. That is, the faulty device identifier is used to determine which device has a fault, and the fault content is used to determine which type of fault occurs in the device.
[0036] Exemplarily, the device operating environment may include a normal device operating environment and an abnormal device operating environment. The normal device operating environment refers to an environment in which the load and controller in the vehicle are in normal working order. The abnormal device operating environment refers to an environment in which the load or controller in the vehicle is in abnormal working order.
[0037] Among them, the fault injection board can be used to simulate the equipment operating environment of the load and controller in the vehicle.
[0038] It can be understood that by introducing equipment abnormality correlation data and fault injection boards, the equipment operating environment is simulated, thereby improving the accuracy of the simulated equipment operating environment; at the same time, the simulation of the equipment abnormal operating environment is introduced to take into account the actual operating status of each device in the vehicle, thereby improving the accuracy of subsequent functional testing of the T-BOX.
[0039] S120, simulating the vehicle running position according to the vehicle running test data sent by the host computer through the running position simulator.
[0040] The running position simulator can be used to simulate the running position of the vehicle. Exemplarily, the running position simulator can be a GNSS (Caudal Neurosecretory System) simulator. Exemplarily, the GNSS simulator can simulate the position information of the actual driving route (i.e., the running position of the vehicle), including the longitude, latitude, altitude, speed, time and other positioning status data of the driving position.
[0041] The vehicle operation test data refers to the simulation data of the vehicle operation track. The vehicle operation position refers to the positioning data of the vehicle on the vehicle operation track. Exemplarily, the vehicle operation position data may include other navigation data such as GPS (Global Positioning System) navigation data and Beidou navigation data.
[0042] Specifically, the CNSS simulator simulates the vehicle operation position of the vehicle according to the vehicle operation test data sent by the host computer.
[0043] S130, simulating the communication mode and the communication channel scenario through a communication simulator according to the communication test data sent by the host computer.
[0044] The communication simulator can be used to simulate communication mode and communication channel scenario. Exemplarily, the communication simulator can be a wireless communication comprehensive tester. The wireless communication comprehensive tester can simulate a cellular wireless communication environment. The communication test data refers to simulation data used to simulate the communication environment.
[0045] The communication standard mode refers to the communication method adopted by the vehicle. The embodiment of the present invention does not impose any limitation on the communication standard mode, which can be set by technicians based on experience. Exemplarily, the communication standard mode may include at least one of GSM (Global System for Mobile Communications), WCDMA (Wide band Code Division Multiple Access), LTE (Long Term Evolution) and 5G (5th Generation Mobile Networks).
[0046] The communication channel scenario refers to the scenario where the vehicle's communication channel is located. The embodiments of the present invention do not impose any limitation on the communication channel scenario, which can be set by a technician based on experience. Exemplarily, the communication channel scenario may include a high-speed mobile scenario, a multipath fading scenario, an urban area scenario, a rural area scenario, a hilly area scenario, and network abnormality scenarios such as a network disconnection.
[0047] Specifically, the wireless communication comprehensive tester simulates the communication standard mode and communication channel scenario of the vehicle according to the communication test data sent by the host computer.
[0048] S140. Record the candidate bus simulation data sent by the host computer under the equipment operation environment, vehicle operation position, communication standard mode and communication channel scenario through the data monitor.
[0049] Among them, the data monitor can be used to record the candidate bus simulation data sent by the host computer. Exemplarily, the embodiment of the present invention does not impose any limitation on the data monitor, which can be set by a technician according to experience or needs. Exemplarily, the data monitor can be a CAN (Controller Area Network) tool. The CAN tool can also receive the vehicle bus communication data sent by the T-BOX to be tested in a simulation environment consisting of the device operating environment, vehicle operating position, communication standard mode and communication channel scenario.
[0050] The candidate bus simulation data refers to the vehicle bus communication data sent by the host computer to the data monitor in the simulation environment consisting of the equipment operation environment, vehicle operation position, communication mode and communication channel scenario. Exemplarily, the candidate bus simulation data can be stored in the data monitor in the form of a message.
[0051] Exemplarily, the candidate bus simulation data may include candidate bus simulation normal values and candidate bus simulation abnormal values. The candidate bus simulation normal values refer to the vehicle bus communication data under the normal operation environment of the equipment. The candidate bus simulation abnormal values refer to the vehicle bus communication data under the abnormal operation environment of the equipment. Exemplarily, the candidate bus simulation abnormal values may include at least one of a long break of the bus signal, a short break of the bus signal, and a bus signal exceeding a preset range value. The embodiment of the present invention does not impose any limitation on the size of the preset range value, which can be set by a technician based on experience or needs, or repeatedly determined through a large number of experiments.
[0052] Specifically, the candidate bus simulation data sent by the host computer is recorded through the CAN tool in a simulation environment composed of the equipment operation environment, vehicle operation position, communication standard mode and communication channel scenario.
[0053] S150, the T-BOX to be tested responds to the data acquisition instruction sent by the client, obtains the target bus simulation data from the data monitor, and feeds back the target bus simulation data to the client.
[0054] The T-BOX to be tested refers to the T-BOX that needs to be functionally tested. The data acquisition instruction refers to an instruction for instructing to obtain bus simulation data. The target bus simulation data refers to the candidate bus simulation data obtained from the data monitor based on the data acquisition instruction.
[0055] In an optional embodiment, the target bus simulation data is obtained from the data monitor by the T-BOX under test responding to the data collection instruction sent by the client, including: parsing the data collection instruction by the T-BOX under test to obtain data collection related data; wherein the data collection related data includes a data collection interval, a data collection identifier, a data value type and a data collection length; and obtaining the target bus simulation data from each candidate bus simulation data of the data monitor according to the data collection related data by the T-BOX under test.
[0056] The data acquisition related data refers to data related to the acquisition of target bus simulation data by the T-BOX under test from the data monitor. Exemplarily, the data acquisition related data may include at least one of data acquisition interval, data acquisition identifier, data value type and data acquisition length.
[0057] The data acquisition interval refers to the interval at which the T-BOX to be tested reads the target bus simulation data from the data monitor. The data acquisition identifier is used to determine the identity of the target bus simulation data. The data value type refers to the category of the collected target bus simulation data. The data acquisition length refers to the length of the collected target bus simulation data. The embodiment of the present invention does not impose any limitation on the size of the data acquisition interval, which can be set by the technician according to experience or needs.
[0058] It can be understood that by introducing the data acquisition associated data and acquiring the target bus simulation data according to the data acquisition associated data, the accuracy of the acquired target bus simulation data is improved.
[0059] In an optional embodiment, the target bus simulation data is fed back to the client through the T-BOX under test, including: parsing the data acquisition instruction through the T-BOX under test to obtain data reporting related data; wherein the data reporting related data includes a data reporting interval and a data reporting identifier; encapsulating the target bus simulation data according to the data reporting related data through the T-BOX under test, and feeding back the encapsulated target bus simulation data to the client.
[0060] The data reporting associated data refers to data related to the reporting of the target bus simulation data (ie, feedback to the client). Exemplarily, the data reporting associated data includes a data reporting interval and a data reporting identifier.
[0061] The data reporting interval refers to the interval at which the T-BOX to be tested sends the target bus simulation data to the client. The embodiment of the present invention does not impose any limitation on the size of the data reporting interval, which can be set by the technician according to experience or needs. The data reporting identifier refers to the identifier of the data after the target bus simulation data is encapsulated, such as the identifier of the encapsulated data packet.
[0062] It can be understood that by introducing data reporting associated data, encapsulating the target bus simulation data according to the data reporting associated data, and feeding back the encapsulated target bus simulation data to the client, the accuracy of the reported target bus simulation data is improved and data loss is avoided.
[0063] S160: The client compares the target bus simulation data with the corresponding preset vehicle bus standard data to determine the function test result of the T-BOX to be tested.
[0064] Among them, the client can be used to send data collection instructions and determine the function test results of the T-BOX to be tested. Exemplarily, the client may include a business platform, a mobile terminal and a cloud server. The function test result refers to the result of the function test of the T-BOX to be tested. Exemplarily, the function test result is normal function or abnormal function. Normal function means that there is no abnormality in the function of the T-BOX to be tested. Abnormal function means that there is an abnormality in the function of the T-BOX to be tested.
[0065] In an optional embodiment, the client compares the target bus simulation data with the corresponding preset vehicle bus standard data to determine the function test result of the T-BOX to be tested, including: judging by the client whether the target bus simulation data and the corresponding preset vehicle bus standard data are the same; if they are the same, determining that the function test result of the T-BOX to be tested is normal; if they are different, determining that the function test result of the T-BOX to be tested is abnormal.
[0066] The vehicle bus standard data refers to pre-set standard vehicle bus communication data.
[0067] Exemplarily, the vehicle bus standard data that matches the target bus simulation data is searched from the vehicle bus standard data that is pre-set in the simulation environment consisting of the equipment operation environment, the vehicle operation position, the communication format mode and the communication channel scenario; it is determined whether the target bus simulation data is the same as the matching vehicle bus standard data; if they are the same, it is determined that the function test result of the T-BOX to be tested is normal; if they are different, it is determined that the function test result of the T-BOX to be tested is abnormal.
[0068] It should be noted that the function test result of the T-BOX to be tested is determined by comparing the vehicle bus standard data used to determine the data acquisition instruction with the target bus simulation data.
[0069] It can be understood that by comparing the target bus simulation data with the corresponding preset vehicle bus standard data and determining the function test result of the T-BOX to be tested according to the comparison result, the accuracy of the determined function test result is improved.
[0070] The embodiment of the present invention provides a functional test solution for a T-BOX, wherein a device operation test system simulates a device operation environment according to device test data sent by a host computer; a vehicle operation position is simulated according to vehicle operation test data sent by a host computer through a running position simulator; a communication standard mode and a communication channel scenario are simulated according to communication test data sent by the host computer through a communication simulator; candidate bus simulation data sent by the host computer under the device operation environment, vehicle operation position, communication standard mode and communication channel scenario are recorded through a data monitor; the T-BOX to be tested responds to a data acquisition instruction sent by a client, obtains target bus simulation data from the data monitor, and feeds back the target bus simulation data to the client; the client compares the target bus simulation data with corresponding preset vehicle bus standard data to determine a functional detection result of the T-BOX to be tested. The above scheme determines the functional test result of the T-BOX to be tested by comparing the target bus simulation data obtained by the T-BOX to be tested from the data monitor with the corresponding vehicle bus standard data in a simulation environment composed of the equipment operation environment, vehicle operation position, communication format mode and communication channel scenario, thereby realizing functional testing of the T-BOX on the basis of the constructed simulated vehicle operation conditions, thereby improving the accuracy of functional testing of the T-BOX to be tested.
[0071] Embodiment 2
[0072] Figure 2 It is a structural diagram of a T-BOX function test system provided in Embodiment 2 of the present invention.
[0073] The functional test system of T-BOX includes an equipment operation test system, an operation position simulator, a communication simulator, a host computer, a T-BOX to be tested, a data monitor and a client. The equipment operation test system is connected to the host computer for simulating the equipment operation environment according to the equipment test data sent by the host computer; the operation position simulator is connected to the host computer for simulating the vehicle operation position according to the vehicle operation test data sent by the host computer; the communication simulator is connected to the host computer and to the client for simulating the communication standard mode and communication channel scenario according to the communication test data sent by the host computer; the data monitor is connected to the host computer for simulating the communication test data sent by the host computer. The T-BOX to be tested is communicated with the equipment operation test system, the operation position simulator and the communication simulator respectively, and is used to obtain the target bus simulation data from the data monitor in response to the data acquisition instruction sent by the client, and feed the target bus simulation data back to the client; the client is used to receive the target bus simulation data, and compare the target bus simulation data with the corresponding preset vehicle bus standard data to determine the function detection result of the T-BOX to be tested.
[0074] The device operation test system may be a system for simulating the operation environment of the vehicle-mounted device. Exemplarily, the device operation test system may be a HIL (Hardware-in-the-Loop) test system.
[0075] The host computer refers to an instrument that provides data for simulating the simulation environment in which the T-BOX to be tested is located. The equipment test data refers to the simulation data used to determine the equipment operation environment. The equipment operation environment refers to the operation environment of each load and controller in the vehicle. Exemplarily, the host computer and the equipment operation test system are connected by a network cable to achieve communication.
[0076] The running position simulator can be used to simulate the running position of the vehicle. Exemplarily, the running position simulator can be a GNSS (Caudal Neurosecretory System) simulator. Exemplarily, the GNSS simulator can simulate the position information of the actual driving route (i.e., the running position of the vehicle), including the longitude, latitude, altitude, speed, time and other positioning status data of the driving position.
[0077] The vehicle operation test data refers to the simulation data of the vehicle operation track. The vehicle operation position refers to the positioning data of the vehicle on the vehicle operation track. Exemplarily, the host computer and the operation position simulator are connected by a network cable to achieve communication.
[0078] The communication simulator can be used to simulate communication mode and communication channel scenario. For example, the communication simulator can be a wireless communication comprehensive tester. The communication test data refers to simulation data used to simulate the communication environment.
[0079] The communication standard mode refers to the communication method adopted by the vehicle. The embodiment of the present invention does not impose any limitation on the communication standard mode, which can be set by technicians based on experience. Exemplarily, the communication standard mode may include at least one of GSM (Global System for Mobile Communications), WCDMA (Wide band Code Division Multiple Access), LTE (Long Term Evolution) and 5G (5th Generation Mobile Networks).
[0080] The communication channel scenario refers to the scenario where the vehicle's communication channel is located. The embodiments of the present invention do not impose any limitation on the communication channel scenario, which can be set by a technician based on experience. Exemplarily, the communication channel scenario may include a high-speed mobile scenario, a multipath fading scenario, an urban area scenario, a rural area scenario, a hilly area scenario, and network abnormality scenarios such as a network disconnection.
[0081] Exemplarily, a network cable is used to realize communication connection between the host computer and the communication simulator; a wireless communication connection is realized between the communication simulator and the client.
[0082] Among them, the data monitor can be used to record the candidate bus simulation data sent by the host computer. Exemplarily, the embodiment of the present invention does not impose any limitation on the data monitor, which can be set by a technician according to experience or needs. Exemplarily, the data monitor can be a CAN (Controller Area Network) tool. The CAN tool can also receive the vehicle bus communication data sent by the T-BOX to be tested in a simulation environment consisting of the device operating environment, vehicle operating position, communication standard mode and communication channel scenario.
[0083] The candidate bus simulation data refers to the vehicle bus communication data sent by the host computer to the data monitor in a simulation environment consisting of the equipment operation environment, vehicle operation position, communication mode and communication channel scenario. Exemplarily, the candidate bus simulation data can be stored in the data monitor in the form of a message. Exemplarily, the data monitor and the host computer are connected to each other through a CAN bus.
[0084] The T-BOX to be tested refers to the T-BOX that needs to be functionally tested. The data acquisition instruction refers to an instruction for instructing to obtain bus simulation data. The target bus simulation data refers to the candidate bus simulation data obtained from the data monitor based on the data acquisition instruction.
[0085] Exemplarily, a wiring harness is used to achieve communication connection between the T-BOX under test and the equipment operation test system; a radio frequency line is used to achieve communication connection between the T-BOX under test and the operation position simulator; and a radio frequency line is used to achieve communication connection between the T-BOX under test and the communication simulator.
[0086] Among them, the client can be used to send data collection instructions and determine the function test results of the T-BOX to be tested. Exemplarily, the client may include a business platform, a mobile terminal and a cloud server. The function test result refers to the result of the function test of the T-BOX to be tested. Exemplarily, the function test result is normal function or abnormal function. Normal function means that there is no abnormality in the function of the T-BOX to be tested. Abnormal function means that there is an abnormality in the function of the T-BOX to be tested.
[0087] It should be noted that the communication simulator can be respectively connected to the business platform and the mobile terminal through a cloud server; or, the communication simulator can be directly connected to the business platform and the mobile terminal through the Internet.
[0088] It can be understood that by introducing the equipment operation test system, the operation position simulator, the communication simulator, the host computer, the T-BOX to be tested, the data monitor and the client, a T-BOX functional test system is constructed, and the functional detection of the T-BOX is realized on the basis of the constructed simulated vehicle operation conditions, thereby improving the accuracy of the functional detection of the T-BOX to be tested.
[0089] In an optional embodiment, the client compares the target bus simulation data with the corresponding preset vehicle bus standard data to determine the function detection result of the T-BOX to be tested, including: the client determines whether the target bus simulation data and the corresponding preset vehicle bus standard data are the same; if they are the same, determining that the function detection result of the T-BOX to be tested is normal; if they are different, determining that the function detection result of the T-BOX to be tested is abnormal.
[0090] The vehicle bus standard data refers to pre-set standard vehicle bus communication data.
[0091] Exemplarily, the client searches for vehicle bus standard data that matches the target bus simulation data from the vehicle bus standard data pre-set in a simulation environment consisting of a device operating environment, a vehicle operating position, a communication format mode, and a communication channel scenario; determines whether the target bus simulation data is identical to the matching vehicle bus standard data; if they are identical, determines that the function test result of the T-BOX to be tested is normal; if they are different, determines that the function test result of the T-BOX to be tested is abnormal.
[0092] It is understandable that the client compares the target bus simulation data with the corresponding preset vehicle bus standard data, and determines the function test result of the T-BOX to be tested according to the comparison result, thereby improving the accuracy of the determined function test result.
[0093] See also Figure 3 The structural diagram of another T-BOX functional test system is shown. The device operation test system includes a fault injection board, a load and a controller. The device operation test system simulates the device operation environment according to the device test data sent by the host computer, including: the fault injection board is used to simulate the device operation environment of the load and the controller according to the device operation data.
[0094] Among them, the fault injection board can be used to simulate the equipment operating environment of the load and controller in the vehicle. The load refers to the real load in the vehicle, such as the headlights, etc. The controller refers to the controller in the vehicle.
[0095] Specifically, the equipment operation test system determines whether there is equipment abnormality related data in the equipment test data; if so, the fault injection board in the equipment operation test system is used to simulate the equipment abnormal operation environment; if not, the fault injection board in the equipment operation test system is used to simulate the equipment normal operation environment.
[0096] Among them, the device abnormality associated data refers to data used to determine the abnormal operating environment of the device. Exemplarily, the device abnormality associated data may include a faulty device identifier and a fault content. The faulty device identifier is used to characterize the identity of the faulty device. The fault content refers to a description of the fault that occurs in the faulty device. That is, the faulty device identifier is used to determine which device has a fault, and the fault content is used to determine which type of fault occurs in the device.
[0097] Exemplarily, the device operating environment may include a normal device operating environment and an abnormal device operating environment. The normal device operating environment refers to an environment in which the load and controller in the vehicle are in normal working order. The abnormal device operating environment refers to an environment in which the load or controller in the vehicle is in abnormal working order.
[0098] It can be understood that by introducing equipment abnormality correlation data and fault injection boards, the equipment operating environment is simulated, thereby improving the accuracy of the simulated equipment operating environment; at the same time, the simulation of the equipment abnormal operating environment is introduced to take into account the actual operating status of each device in the vehicle, thereby improving the accuracy of subsequent functional testing of the T-BOX.
[0099] It should be noted that the equipment operation test system also includes a power management unit, an I / O (Input / Output) board, and a programmable power supply. Among them, the I / O board can be used to control the working state of the T-BOX to be tested. The programmable power supply is used to power the T-BOX to be tested. The power management unit is used to power the operation position simulator and the communication simulator.
[0100] See also Figure 4 Another structural diagram of a T-BOX functional test system is shown in FIG. The system further includes an electromagnetic shielding box, wherein the electromagnetic shielding box is used to store the T-BOX to be tested.
[0101] It can be understood that the introduction of the electromagnetic shielding box can shield the influence of irrelevant signals on the T-BOX to be tested, thereby providing a simulation environment without interference signals for the T-BOX to be tested.
[0102] See also Figure 5 Another structural diagram of a T-BOX functional test system is shown. The system further includes a router, wherein the router is used to establish communication connections between the host computer and the device operation test system, the operation position simulator and the communication simulator.
[0103] It can be understood that by introducing routing, the host computer, the equipment operation test system, the operation location simulator and the communication simulator can be placed in the same network environment.
[0104] The functional test system of T-BOX provided in the embodiment of the present invention is based on the HIL test system and aims at simulating the functional requirements of various scenarios of real vehicle bus communication environment, controller faults, driving trajectory and vehicle external network. It consists of a HIL test system including a load, a fault injection board, an I / O board, a programmable power supply and a real-time processor, a CAN tool, a GNSS simulator, a shielding box, a wireless communication comprehensive tester, a router, a cloud server, a host computer, an operation platform and a mobile client terminal.
[0105] Exemplarily, each assembly unit controller and load is connected to the relevant domain bus of the HIL test system, and can work normally, the connection harness of the T-BOX to be tested is independently led out from the system and connected to the port of the T-BOX to be tested in the electromagnetic shielding box, wherein the power supply of the T-BOX to be tested is provided separately by a programmable power supply, and the power management unit of the HIL test system is connected to the power interface of the GNSS simulator and the wireless communication comprehensive tester to provide power supply, and power on to confirm that all devices can work normally.
[0106] Furthermore, the GNSS simulator and the wireless communication comprehensive tester are set to remote control mode, and the vehicle operation test data is imported into the GNSS simulator to confirm that its RF output port is stably connected to the satellite positioning antenna port of the T-BOX to be tested in the electromagnetic shielding box. At the same time, the cellular communication port of the T-BOX to be tested is stably connected to the input port of the wireless communication comprehensive tester through the RF line.
[0107] Furthermore, the host computer is connected to the GNSS simulator, the wireless communication comprehensive tester and the HIL test system via a network cable to control the GNSS simulator to simulate the satellite navigation positioning data of the driving trajectory curve (i.e., the vehicle running position) in real time. At the same time, the wireless communication comprehensive tester is controlled to simulate various communication mode modes and simulate multiple communication channel scenarios.
[0108] Furthermore, the host computer software controls the I / O board and the fault injection board to drive the real load, i.e., various switches, sensors, and controllers, as well as various controller electrical faults, etc.; the CAN bus tool monitors and records the bus message value (i.e., candidate bus simulation data) in real time, which is used to provide a basis for the accuracy evaluation and determination of the T-BOX function to be tested. Exemplarily, the electrical fault of the controller may include at least one of a controller power line break, a ground line break, a CAN_H and CAN_L break, a CAN_H and CAN_L short circuit to power, a CAN_H and CAN_L short circuit to ground, a CAN_H and CAN_L short circuit, etc.
[0109] It should be noted that the host computer software controls the I / O board and the fault injection board to drive the controller to output the vehicle driving data, and the CAN bus tool is used to monitor and record the vehicle driving data in real time. The vehicle driving data may include at least one of the total fuel consumption, average fuel consumption, total mileage and subtotal mileage. Exemplarily, the host computer software controls the I / O board and the fault injection board to drive the instrument controller to output the total mileage and total fuel consumption data values, and the CAN bus tool is used to monitor and record the total mileage and total fuel consumption data values in real time.
[0110] Furthermore, data collection instructions are configured through the business platform, and sent to the T-BOX under test through the cloud server; the T-BOX under test receives, parses and responds to the data collection instructions, completes data collection, processing and packaging according to data collection related data and data reporting related data, and feeds back to the cloud server through the wireless communication comprehensive tester, and is displayed in a friendly interface through the client.
[0111] It should be noted that when configuring data collection instructions, the business platform can configure them according to the vehicle driving data recorded in the CAN tool.
[0112] Furthermore, the target bus simulation data displayed on the client side fed back by the T-BOX under test is compared with the corresponding preset vehicle bus standard data to evaluate the function of the T-BOX under test.
[0113] It should be noted that the functions of data collection instructions may include issuing collection instructions, modifying collection content, querying collection content and deleting collection instructions.
[0114] The functional testing system of the T-BOX provided by the embodiment of the present invention can not only restore the satellite navigation positioning data of the whole vehicle's driving route in a laboratory environment, but also simulate the bus communication environment and various wireless communication scenarios under the running state of the whole vehicle, thereby realizing various fault scenarios that cannot be simulated and reproduced by the real vehicle during the test, or are difficult to simulate for safety reasons. At the same time, based on the CAN bus recording tool, the bus message value (i.e., candidate bus simulation data) during the test is recorded and saved in real time, as well as the on-board bus standard data corresponding to the data acquisition instruction issued by the business platform, which are compared with the target bus simulation data uploaded by the T-BOX to be tested and displayed on the client, to realize the closed-loop test of the T-BOX function.
Claims
1. A T-BOX functional testing method, characterized in that: A functional test system applied to a T-BOX, wherein the T-BOX functional test system includes a device operation test system, an operation position simulator and a communication simulator, a host computer, a T-BOX to be tested, a data monitor and a client, and the method includes: The device operation test system simulates the device operation environment according to the device test data sent by the host computer; Simulating the vehicle running position through the running position simulator according to the vehicle running test data sent by the host computer; Simulating the communication mode and the communication channel scenario through the communication simulator according to the communication test data sent by the host computer; Recording the candidate bus simulation data sent by the host computer under the device operating environment, the vehicle operating position, the communication standard mode and the communication channel scenario through the data monitor; The T-BOX to be tested responds to the data acquisition instruction sent by the client, obtains the target bus simulation data from the data monitor, and feeds back the target bus simulation data to the client; The client compares the target bus simulation data with corresponding preset vehicle bus standard data to determine the function detection result of the T-BOX to be tested.
2. The method according to claim 1, characterized in that The step of comparing the target bus simulation data with corresponding preset vehicle bus standard data by the client to determine the function test result of the T-BOX to be tested includes: Determining, by the client, whether the target bus simulation data and the corresponding preset vehicle bus standard data are the same; If they are the same, it is determined that the function test result of the T-BOX to be tested is normal; If they are different, it is determined that the function test result of the T-BOX to be tested is abnormal.
3. The method according to claim 1, characterized in that The device operation test system simulates the device operation environment according to the device test data sent by the host computer, including: Determining whether there is device abnormality-related data in the device test data by the device operation test system; If so, simulating an abnormal operation environment of the device through a fault injection board in the device operation test system; If not, the normal operation environment of the device is simulated by using the fault injection board in the device operation test system.
4. The method according to claim 1, characterized in that The step of obtaining target bus simulation data from the data monitor by the T-BOX to be tested responding to the data acquisition instruction sent by the client includes: The data collection instruction is parsed by the T-BOX to be tested to obtain data collection related data; wherein the data collection related data includes a data collection interval, a data collection identifier, a data value type and a data collection length; The target bus simulation data is acquired from each candidate bus simulation data of the data monitor by the T-BOX to be tested according to the data acquisition associated data.
5. The method according to claim 1, characterized in that Feeding back the target bus simulation data to the client through the T-BOX to be tested includes: The data collection instruction is parsed by the T-BOX to be tested to obtain data reporting related data; wherein the data reporting related data includes a data reporting interval and a data reporting identifier; The target bus simulation data is encapsulated and processed by the T-BOX to be tested according to the data reporting associated data, and the encapsulated target bus simulation data is fed back to the client.
6. A T-BOX functional testing system, characterized in that: include: Equipment operation test system, operation position simulator, communication simulator, host computer, T-BOX to be tested, data monitor and client, among which, The device operation test system is communicatively connected to the host computer and is used to simulate the device operation environment according to the device test data sent by the host computer; The operation position simulator is communicatively connected to the host computer and is used to simulate the vehicle operation position according to the vehicle operation test data sent by the host computer; The communication simulator is communicatively connected to the host computer and is communicatively connected to the client, and is used to simulate a communication mode and a communication channel scenario according to communication test data sent by the host computer; The data monitor is communicatively connected to the host computer and is communicatively connected to the equipment operation test system, and is used to record the candidate bus simulation data sent by the host computer under the equipment operation environment, the vehicle operation position, the communication standard mode and the communication channel scenario; The T-BOX to be tested is respectively connected to the equipment operation test system, the operation position simulator and the communication simulator for communication, and is used to obtain target bus simulation data from the data monitor in response to the data acquisition instruction sent by the client, and feed back the target bus simulation data to the client; The client is used to receive the target bus simulation data, and compare the target bus simulation data with corresponding preset vehicle bus standard data to determine the function detection result of the T-BOX to be tested.
7. The system according to claim 6, characterized in that The client compares the target bus simulation data with the corresponding preset vehicle bus standard data to determine the function test result of the T-BOX to be tested, including: The client determines whether the target bus simulation data and the corresponding preset vehicle bus standard data are the same; If they are the same, it is determined that the function test result of the T-BOX to be tested is normal; If they are different, it is determined that the function test result of the T-BOX to be tested is abnormal.
8. The system according to claim 6, characterized in that The device operation test system includes a fault injection board, a load and a controller, and the device operation test system simulates the device operation environment according to the device test data sent by the host computer, including: The fault injection board is used to simulate the equipment operating environment of the load and the controller according to the equipment operating data.
9. The system according to claim 6, characterized in that The system also includes an electromagnetic shielding box, wherein: The electromagnetic shielding box is used to store the T-BOX to be tested.
10. The system according to claim 6, characterized in that The system also includes a router, wherein The routing is used to establish communication connections between the host computer and the equipment operation test system, the operation position simulator and the communication simulator respectively.
