Data reading method, testing device, testing equipment, testing system and storage medium for whole vehicle testing
By obtaining the time difference of the signal to be observed in the vehicle test and reading the time points uniformly, the problem of lag in the reading of the signal to be observed in the vehicle test is solved, and the accuracy and consistency of the test results are improved.
Patent Information
- Application Number
- CN202411731358.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2024-12-31
AI Technical Summary
During the vehicle test, the reading time interval of the signal to be observed causes the reading of the observed signal value lag, affecting the accuracy and consistency of the test results.
By obtaining the time difference corresponding to the observed signal values of each signal to be observed, and determining the reading time points of each signal to be observed based on the start reading time point, all signals to be observed have the same starting reading time point, realizing independent and synchronous Observed signal value read.
It alleviates the problem of reading lag of signal values to be observed, and improves the accuracy of observed signal values and the accuracy of test results.
Smart Images

Figure CN119226175A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of testing technology, and in particular to a data reading method, a testing device, a testing equipment, a testing system and a storage medium for whole vehicle testing. Background Art
[0002] In the process of testing the device to be tested, there is a complex coupling relationship between the various functions of the device to be tested. Therefore, it is necessary to design test cases with multiple functional combinations to test the device to be tested. In the process of executing test cases with multiple functional combinations, the test tool usually reads the observation signal values corresponding to each signal to be observed in sequence according to the reading order set in the test case. However, this reading method has a reading time interval, resulting in a later reading time for the observation signal value of the later signal to be observed. Therefore, when the observation signal value of some signals to be observed is read with a lag, the accurate observation signal value of the signal to be observed cannot be read in time during the test process. Summary of the invention
[0003] In view of the above problems, the present application provides a data reading method, test device, test equipment, test system and storage medium for whole vehicle testing, which can alleviate the problem of delayed reading of observation signal values of some signals to be observed during the test, resulting in inaccurate read observation signal values.
[0004] In a first aspect, the present application provides a data reading method for whole vehicle testing, comprising: if the reading process of the observation signal value of the whole vehicle is triggered, obtaining the time difference of reading the observation signal value corresponding to each signal to be observed according to the observation signal value reading set; obtaining the reading time point of the observation signal value of each signal to be observed according to the start reading time point and the time difference of reading the observation signal value corresponding to each signal to be observed, wherein the start reading time point of the observation signal value corresponding to each signal to be observed is the same; based on the reading time point, reading the observation signal value of the signal to be observed from the hardware test environment of the whole vehicle.
[0005] In the embodiment of the present application, since the observation signal values of each signal to be observed have the same starting reading time point, even if there are different time differences in the signals to be observed, the corresponding observation signal values can be read independently and synchronously after the corresponding time difference. This can alleviate the problem of inaccurate observation signal values being read late due to observation signal value reading delays of some signals to be observed during the test process, thereby making the observation signal values read by all signals to be observed more accurate.
[0006] In one embodiment, the time difference and identification information corresponding to each signal to be observed are extracted from the target test case of the whole vehicle; and an observation signal value reading set is constructed according to the time difference and identification information corresponding to each signal to be observed.
[0007] In the embodiment of the present application, the target test case provides a unified standard and format for testing. By directly extracting the time difference and identification information from the target test case, the accuracy and consistency of the data can be ensured, errors that may be introduced by manual input or calculation can be avoided, and the accuracy of the constructed observation signal value reading set can be improved.
[0008] In one embodiment, the observed signal value reading set includes a plurality of set elements, and the set elements are composed of time differences and identification information corresponding to the signals to be observed.
[0009] In the embodiment of the present application, multiple set elements are obtained by combining the time difference and identification information corresponding to the signal to be observed, and each set element forms an observation signal value reading set to meet the test requirements of complex test scenarios in which multiple signals to be observed are read synchronously.
[0010] In one embodiment, according to the observed signal value determination set, the expected value, observed signal value and numerical tolerance corresponding to each signal to be observed are obtained; based on the expected value, observed signal value and numerical tolerance corresponding to each signal to be observed, the test results corresponding to each signal to be observed are obtained.
[0011] In the embodiment of the present application, by automatically comparing the expected value, observed signal value and numerical tolerance corresponding to each signal to be observed, the test result corresponding to each signal to be observed is obtained, which can intuitively reflect whether the observed signal value of the signal to be observed meets the expectation, achieve the automated testing effect of each signal to be observed, and improve the accuracy and objectivity of the test results.
[0012] In one embodiment, a test time interval and a test order for each signal to be observed are obtained; based on the test time interval and the test order, expected values corresponding to the signals to be observed and observed signal values are compared in turn to obtain test results corresponding to each signal to be observed.
[0013] In the embodiment of the present application, by comparing the expected value and the observed signal value of each signal to be observed one by one, the deviation of each signal to be observed can be accurately captured, the accuracy of the test results of each signal to be observed can be improved, and the final test result can be made more accurate.
[0014] In one embodiment, based on the expected value and numerical tolerance of the signal to be observed, the expected value fluctuation range corresponding to the signal to be observed is obtained; when the observed signal value is within the expected value fluctuation range, the test result of the signal to be observed is determined to be passed; when the observed signal value is outside the expected value fluctuation range, the test result of the signal to be observed is determined to be failed.
[0015] In the embodiment of the present application, the introduction of numerical tolerance allows the observed signal value to fluctuate within a certain range around the expected value, thereby reducing misjudgments caused by slight deviations.
[0016] In one embodiment, the expected value and numerical tolerance corresponding to each signal to be observed are extracted from the target test case of the whole vehicle; and an observation signal value judgment set is constructed according to the observed signal value, identification information, expected value and numerical tolerance corresponding to each signal to be observed.
[0017] The embodiment of the present application can ensure the accuracy and consistency of data by directly extracting expected values and numerical tolerances from target test cases, avoid errors that may be introduced by manual input or calculation, and improve the accuracy of the constructed observation signal value reading set. The target test case provides a unified standard and format for testing. By extracting the expected value, numerical tolerance, and time difference of the signal to be observed from the target test case, subsequent tests can be tested in accordance with the same specifications and standards, thereby improving the normalization and standardization of the test.
[0018] In one embodiment, the observed signal value determination set includes a plurality of subsets, and the subsets are composed of identification information corresponding to the signal to be observed, the observed signal value, the expected value, and the numerical tolerance.
[0019] In the embodiment of the present application, by setting multiple groups of subsets, each signal to be observed in the observation signal value determination set can be compared based on the corresponding observation signal value, expected value and numerical tolerance to meet the needs of comparing multiple signals to be observed.
[0020] In one embodiment, the observed signal value determination set includes an expected value set and an observed signal value set, the set elements in the expected value set are composed of identification information corresponding to the signal to be observed, numerical tolerance and expected value, and the set elements in the observed signal value set are composed of identification information corresponding to the signal to be observed and observed signal value.
[0021] In the embodiment of the present application, the expected value and the observed signal value are represented by different sets respectively, and finally the expected value and the observed signal value are synchronously compared between the two sets, thereby improving the comparison efficiency of the expected value and the observed signal value of each signal to be observed.
[0022] In one embodiment, when the reading time point is reached, based on the connection relationship between the test tool of the test equipment and the hardware test environment of the whole vehicle, the observation signal value of the signal to be observed corresponding to the reading time point is read from the hardware test environment of the whole vehicle.
[0023] In the embodiment of the present application, a data transmission channel can be established between the test tool of the test device and the hardware test environment of the device to be tested through a connection relationship, so that when each signal to be observed arrives at the corresponding reading time point, the corresponding observation signal value can be read from the hardware test environment based on the data transmission channel, thereby realizing real-time reading of the observation signal value.
[0024] In a second aspect, the present application provides a testing device, comprising: The time difference determination module is used to obtain the time difference corresponding to the reading of the observation signal value of each signal to be observed according to the observation signal value reading set if the reading process of the observation signal value of the whole vehicle is triggered; A reading time point determination module is used to obtain the reading time point of the observation signal value of each signal to be observed according to the time difference between the start reading time point and the corresponding reading time of the observation signal value of each signal to be observed, wherein the start reading time point of the observation signal value corresponding to each signal to be observed is the same; The reading module is used to read the observed signal value of the signal to be observed from the hardware test environment of the whole vehicle based on the reading time point.
[0025] In a third aspect, the present application provides a testing device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the above-mentioned data reading method for whole vehicle testing.
[0026] In a fourth aspect, the present application provides a testing system, including the above-mentioned testing equipment, and a connection is established between the testing tools carried on the testing equipment and the hardware testing environment of the whole vehicle.
[0027] In a fifth aspect, the present application provides a storage medium, which is a computer-readable storage medium. A computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned data reading method for whole vehicle testing are implemented.
[0028] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Moreover, the same reference numerals are used throughout the drawings to represent the same components. In the drawings: Figure 1 A schematic diagram of the structure of a test system according to some embodiments of the present application; Figure 2 This is a flow chart of a data reading method for a vehicle test in an embodiment of the present application; Figure 3 This is a functional diagram of a synchronous reading module in some embodiments of the present application; Figure 4 This is a flow chart of a data reading method for a vehicle test in another embodiment of the present application; Figure 5 This is a flow chart of a data reading method for a vehicle test in another embodiment of the present application; Figure 6 Schematic diagram of the process of step S50 of the data reading method for vehicle testing in one embodiment of the present application; Figure 7 This is a flow chart of step S52 of a method for reading data for a vehicle test in an embodiment of the present application; Figure 8 This is a flow chart of a data reading method for a vehicle test in another embodiment of the present application; Fig. 9 This is a schematic diagram of the module structure of the testing device in some embodiments of the present application; Fig.10 This is a schematic diagram of the structure of the testing equipment in some embodiments of the present application. DETAILED DESCRIPTION
[0030] The following embodiments of the technical solution of the present application will be described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.
[0031] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.
[0032] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
[0033] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0034] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0035] At present, functional testing is a key link to ensure the quality and performance of equipment. The equipment to be tested often integrates a variety of complex and interrelated functional modules. The coupling relationship between these functional modules is intricate and interdependent, and together they constitute the overall performance of the equipment. In order to ensure that the equipment to be tested can operate stably and reliably in actual applications, test engineers need to design a series of comprehensive and detailed test cases to cover all possible functional combinations and interaction scenarios.
[0036] In testing practice, test cases are usually designed to contain a collection of multiple signals to be observed, each of which represents a state or output of the device under test during the execution of a specific function. As the main body of executing the test case, the test tool is responsible for capturing and recording the observed signal values of these signals to be observed from the device under test in sequence according to the preset reading order. This process is crucial for evaluating whether the device under test meets the expected design standards. Among them, in the whole vehicle testing scenario, the test tool can be an automated test tool that integrates test case editing, execution, and archiving.
[0037] However, existing test tools face a significant technical challenge when executing multi-functional combination test cases, namely the problem of reading time intervals. When the test tool reads the observed signal value of each signal to be observed, the corresponding time difference of each signal to be observed will be different due to the different message cycles in which it is located. As the number of signals to be observed in the test case increases and the reading order advances linearly, the reading time of the observed signal value of the later signal to be observed will be delayed accordingly.
[0038] The cumulative effect of this reading time interval may have serious consequences for some time-sensitive functional tests. For example, in a real-time control system, if the observed signal value of the observed signal cannot be obtained in time, it may lead to reduced accuracy of the test results, or even fail to effectively evaluate the performance of the device under test under specific conditions. In addition, reading lag may also cause data inconsistency problems during the test process, further increasing the risk of misjudgment of test results.
[0039] Therefore, how to optimize the reading mechanism of the test tool, reduce the reading time interval, and ensure that the observed signal values of all signals to be observed can be obtained in a timely and accurate manner during the test process has become a technical problem that needs to be solved urgently.
[0040] Based on the above considerations, in order to alleviate the problem of delayed reading of the observation signal values of some signals to be observed during the test, resulting in inaccurate observation signal values, the present application designs a data reading method for vehicle testing, which specifically includes: if the reading process of the observation signal values of the whole vehicle is triggered, according to the observation signal value reading set, the time difference corresponding to the reading of the observation signal values of each signal to be observed is obtained; according to the start reading time point and the time difference corresponding to the reading of the observation signal values of each signal to be observed, the reading time point of the observation signal values of each signal to be observed is obtained, wherein the start reading time point of the observation signal values corresponding to each signal to be observed is the same; based on the reading time point, the observation signal value of the signal to be observed is read from the hardware test environment of the whole vehicle. Different from the traditional reading method, the present application has the same start reading time point for the observation signal values of each signal to be observed, even if there are different time differences in the signals to be observed, the corresponding observation signal values can be read independently and synchronously after the corresponding time difference, which can alleviate the problem of delayed reading of the observation signal values of some signals to be observed during the test, resulting in inaccurate observation signal values, so that the observation signal values read by all signals to be observed are more accurate.
[0041] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0042] The data reading method for vehicle testing provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown.
[0043] The testing tool carried on the testing device 102 is connected to the hardware testing environment corresponding to the device to be tested 104 .
[0044] The test device 102 may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the data reading function of the above-mentioned vehicle test, etc. The specific content of the test device 102 can be referred to the subsequent content, and will not be repeated here. The above-mentioned test tool is running in the test device 102, and through the test tool, the test tool provides a software testing environment.
[0045] The device to be tested 104 may be a complete vehicle, such as a new energy vehicle, a fuel vehicle, etc. Specifically, the power system, battery pack, etc. in the complete vehicle may be tested. It may also be other devices that need to be tested, such as electronic and communication equipment such as mobile phones, tablet computers, personal computers, etc., industrial automation and mechanical equipment such as industrial robots, CNC machine tools, etc., automobile and transportation equipment such as engines, brake systems, vehicle-mounted electronic equipment, etc., medical equipment such as ultrasonic diagnostic equipment, etc., aerospace equipment such as navigation systems, flight control systems, etc., household appliances, security equipment, environmental monitoring equipment, etc. In the actual test process, the hardware test environment of the device to be tested 104 may be simulated to reduce the test cost.
[0046] Taking vehicle testing as an example, there are the following test scenarios: First, perform HIL (Hardware-in-the-Loop Testing) testing on the entire vehicle. HIL testing is a testing method widely used in the field of automotive electronic control systems. In HIL testing, a software testing environment, i.e., a testing tool, is installed or run in the test equipment, and the device to be tested provides a hardware testing environment, including actual hardware such as ECU (Electronic Control Unit), sensors, actuators, etc. Testing is performed jointly by the software testing environment and the hardware testing environment, which can reduce the testing cost of the actual vehicle testing. In actual use, the test equipment sends test cases to the test tool, which converts the test cases into test scripts. By executing the test scripts, the observed signal values of the signals to be observed are read from the hardware test environment.
[0047] Second, the battery pack or power system level test can also be performed on the whole vehicle. In electric vehicles or hybrid vehicles, the battery pack is one of the core components of the whole vehicle, and its performance and safety are directly related to the vehicle's range, power performance and safety. Therefore, it is very important to test the battery pack. This test may include battery pack capacity testing, charge and discharge performance testing, safety testing, etc., to ensure that the battery pack can meet the performance and safety requirements of the whole vehicle.
[0048] Third, it is also possible to perform functional testing on each software module in the vehicle to implement testing at the software unit level. In vehicle development, a large amount of software programming and algorithm design will be involved. The performance and stability of these software modules are directly related to the intelligence level and driving experience of the vehicle. Therefore, it is very important to test the software modules. This test may include interface testing, functional testing, performance testing, etc. of the module, so that the software module can correctly implement its function and have sufficient stability and reliability.
[0049] It should be noted that vehicle testing is a complex and systematic process, which covers multiple levels and aspects from hardware to software, from systems to components. Tests at different levels have different goals and focuses, but they are all for the performance, safety and reliability of the vehicle. In actual testing, it is necessary to select the appropriate test level and method based on the specific needs and test objectives of the vehicle. At the same time, tests at different levels and tests of different functions at the same level are also interrelated and dependent, which requires comprehensive consideration and coordination.
[0050] Regardless of which of the above tests is performed, the signal to be observed in the device to be tested can be determined according to the test requirements, and then the observed signal value corresponding to the signal to be observed can be read.
[0051] In some embodiments, Figure 2 As shown, a method for reading data from a vehicle test is provided, and the method is applied to Figure 1 Taking the test device 102 in the example as an example, the following steps are included: Step S10: If the reading process of the observation signal value of the whole vehicle is triggered, the time difference of the corresponding reading of the observation signal value of each signal to be observed is obtained according to the observation signal value reading set.
[0052] A trigger is an event or condition that starts or activates a process or action.
[0053] The observation signal value reading process refers to a program or process responsible for reading the observation signal value corresponding to the signal to be observed from the device to be tested.
[0054] Triggering the reading process of the observation signal value means starting the process of reading the observation signal value.
[0055] The signal to be observed is the signal that is expected or planned to be observed in the device under test.
[0056] For example, the signals to be observed can be specifically divided into control instructions, sensor sampling signals, status signals, diagnostic signals, etc., among which the sensor sampling signals can be engine speed, intake air volume, coolant temperature, battery capacity, vehicle speed, etc.
[0057] Since there is a complex coupling relationship between the various functions of the device to be tested, it is necessary to design test cases with multiple functional combinations for testing. Therefore, in the test scenario of the multi-functional combination, there may be multiple signals to be observed in one test case, and each signal to be observed represents a different function to meet the testing requirements under complex working conditions.
[0058] For example, there are functional modules including a temperature module, a charging module and a high-voltage module. When the temperature value corresponding to the temperature module changes, it will affect the output values of the charging module and the high-voltage module. By setting a test case, which includes the temperature corresponding to the temperature module, the charging voltage corresponding to the charging module and the voltage corresponding to the high-voltage module, the testing requirements of the multi-functional combination can be met.
[0059] The observed signal value refers to the signal value observed from the device to be tested. Taking the device to be tested as a whole vehicle as an example, the observed signal value can be collected and monitored by the sensors of the whole vehicle. The electronic control unit of the whole vehicle can collect information from various sensors, which are responsible for monitoring the observed signal values corresponding to the various signals to be observed of the vehicle.
[0060] For example, when the signal to be observed is the battery temperature, the observed signal value may be the temperature value of the battery temperature; when the signal to be observed is the battery capacity, the observed signal value may be the battery capacity value.
[0061] The observation signal value reading set includes the time difference of the corresponding reading of the observation signal value of each signal to be observed. In different programming languages, the expression form of the observation signal value reading set is different. For example, it can be an observation signal value reading array, or an observation signal value reading list, or other expressions. The expression form of the observation signal value reading set can be set according to different programming languages. The programming language of the observation signal value reading set can be recognized by the test tool, and it can be executed in the form of a test script. The observation signal value reading set can be obtained by programming in the test tool according to the current test requirements. The observation signal value reading set can also be a historically programmed observation signal value reading set matched from the database, for example, feature extraction is performed on the current test case, the attribute features corresponding to each signal to be observed are determined, and the attribute features corresponding to each signal to be observed are converted into attribute feature vectors, and similar observation signal value reading sets are matched from the observation signal value reading sets already in the database based on the attribute feature vectors. In this way, there is no need to repeatedly program the observation signal value reading set, thereby reducing development costs.
[0062] The time difference refers to the maximum time that the signal to be observed needs to wait to obtain its corresponding observed signal value. Since the device to be tested and the device to be tested can exchange data in the form of messages, and since the messages are sent periodically, if the observed signal value of the signal to be observed changes within a cycle, then this change will not be transmitted immediately. On the contrary, it needs to wait until the end of the current cycle and the beginning of the next cycle when a new message is sent to include this change. That is, when the observed signal value of the signal to be observed changes, it is necessary to wait for the next message cycle to observe it. Therefore, the waiting time here is the time difference, and the time difference depends on the message cycle corresponding to the signal to be observed.
[0063] Since the message periods corresponding to the signals to be observed may be the same or different, for example, if the signal to be observed is the battery temperature, the message period corresponding to the battery temperature may be sent once per second; if the signal to be observed is the battery capacity, the message period corresponding to the battery capacity may be sent once per second or once every two seconds. When the message periods of the signals to be observed are different, the time differences for reading the observed signal values of the signals to be observed are also different. When the message periods of the signals to be observed are the same, the time differences for reading the observed signal values of the signals to be observed are the same.
[0064] For example, the observed signal value reading set can be represented as: ["signal a: T1", "signal b: T1", "signal b: T1", "signal b: T1"].
[0065] The signals a, b, c, and d in the above observed signal value reading set correspond to the signal name of the signal a to be observed, the signal name of the signal b to be observed, the signal name of the signal c to be observed, and the signal name of the signal d to be observed, respectively. Figure 3 It can be seen that T1, T2, T3, and T4 respectively correspond to the time difference of the observed signal value of the signal to be observed a, the time difference of the observed signal value of the signal to be observed b, the time difference of the observed signal value of the signal to be observed c, and the time difference of the observed signal value of the signal to be observed d. The time difference of the observed signal value of each signal to be observed corresponding to the reading may be different, for example, Figure 3 It can be seen that the time difference corresponding to the reading of the observed signal values of signals a, b, c, and d increases successively.
[0066] In a feasible implementation, a test tool is provided on the test device, and the test tool includes a programming interface and a reading control. The reading control is associated with the program corresponding to the observation signal value reading set edited in the editing interface. After the program corresponding to the observation signal value reading set is edited in the programming interface, the reading control is triggered to enter the observation signal value reading process to read the observation signal value.
[0067] In another feasible implementation, in order to realize the reading of observation signal values, when triggering the reading process of observation signal values, it is necessary to parse the observation signal value reading set to obtain the time difference corresponding to the reading of the observation signal values of each signal to be observed, so as to determine the subsequent reading time point based on the time difference.
[0068] Step S20, obtaining the reading time point of the observation signal value of each signal to be observed according to the time difference between the start reading time point and the corresponding reading time of the observation signal value of each signal to be observed, wherein the start reading time point of the observation signal value corresponding to each signal to be observed is the same.
[0069] The start reading time point refers to the moment when each signal to be observed uniformly starts to read the observed signal value, and the start reading time point of the observed signal value of each signal to be observed is the same. The start reading time point here can be the triggering moment of the reading process of the observed signal value, or it can be the moment corresponding to when the reading process of the observed signal value reaches a preset duration after being triggered. For example, if the reading process of the observed signal value is triggered at time A, record the triggering time and use it as the start reading time point. Alternatively, if the reading process of the observed signal value reaches 1 minute after being triggered at time A, record A+1 minutes and use it as the start reading time point.
[0070] For example, Figure 3 As shown, "0" corresponds to the start time of reading, starting from Figure 3 It can be seen that the start time point of reading the observation signal values of each signal to be observed is the same.
[0071] In a feasible implementation manner, when the reading process of the observation signal value is triggered, the start reading time points corresponding to the various observation signal values may be unified.
[0072] In another feasible implementation, when the preset time length is reached after the reading process of the observation signal value is triggered, the start reading time points corresponding to each signal to be observed can be unified. This preset time length can be set according to actual conditions. By setting the preset time length, the test tool has enough time to prepare and initialize the data acquisition process, ensuring that the observation signal values of each signal to be observed are read at a unified time point.
[0073] The reading time point refers to the moment when the observation signal value of the corresponding signal to be observed is read from the device to be observed. Since the start reading time points of the observation signal values of each signal to be observed are the same, if the time differences corresponding to the reading of the observation signal values of each signal to be observed are different, the reading time points corresponding to each observation signal value are also different. If the time differences corresponding to the reading of the observation signal values of each signal to be observed are the same, the reading time points corresponding to each observation signal value are the same. Therefore, the reading time points of each observation signal value may be the same or different.
[0074] For example, Figure 3 As shown, there are four signals to be observed, namely signals a, b, c, and d. "t1" corresponds to the reading time point of the signal value to be observed of signal a, "t2" corresponds to the reading time point of signal b, "t3" corresponds to the reading time point of the signal value to be observed of signal c, and "t4" corresponds to the reading time point of the signal value to be observed of signal d.
[0075] In a feasible implementation, the corresponding time difference can be added to the start reading time point to obtain the reading time point of the observation signal value. Each signal to be observed can determine its corresponding reading time point of the observation signal value based on this method.
[0076] from Figure 3 It can be seen that each observation signal value has the same start reading time point, and each signal to be observed has a synchronous reading of the observation signal value after the start reading time point. Through this synchronous reading setting, the total time required to complete the reading of the observation signal values of the four signals to be observed is "T4", that is, the reading of the observation signal values of the four signals to be observed is completed at "T4". Since the related art is serially read, the total time required to complete the reading of the observation signal values of the four signals to be observed is "T1+T2+T3+T4". Compared with the related art, the present application improves the reading efficiency of the observation signal value.
[0077] Step S30, based on the reading time point, reading the observation signal value of the signal to be observed from the hardware test environment of the whole vehicle.
[0078] Following the above embodiment, after determining the reading time point of the observation signal value of each signal to be observed, when the corresponding reading time point is reached, the corresponding observation signal value is read from the hardware test environment of the whole vehicle.
[0079] For example, Figure 3 For example, at "t1" the observation signal value of the signal to be observed a is read from the hardware test environment of the whole vehicle, at "t2" the observation signal value of the signal to be observed b is read from the hardware test environment of the whole vehicle, at "t3" the observation signal value of the signal to be observed c is read from the hardware test environment of the whole vehicle, and at "t4" the observation signal value of the signal to be observed d is read from the hardware test environment of the whole vehicle.
[0080] After the observation signal values are obtained, fault analysis or fault diagnosis can be performed based on these observation signal values, or other purposes can be achieved.
[0081] In the embodiment of the present application, since the observation signal values of each signal to be observed have the same starting reading time point, even if there are different time differences in the signals to be observed, the corresponding observation signal values can be read independently and synchronously after the corresponding time difference. This can alleviate the problem of inaccurate observation signal values being read late due to observation signal value reading delays of some signals to be observed during the test process, thereby making the observation signal values read by all signals to be observed more accurate.
[0082] like Figure 4As shown, in some embodiments of the present application, if the reading process of the observation signal value of the whole vehicle is triggered, before obtaining the time difference corresponding to the reading of the observation signal value of each signal to be observed according to the observation signal value reading set, it includes: Step S01, extracting the time difference and identification information corresponding to each signal to be observed from the target test case of the whole vehicle.
[0083] The target test case can be a table including multiple reading actions of the signals to be observed, or it can be a text, or it can be a flow chart, state diagram, etc. This application does not limit the form of expression of the target test case. Among them, the target test case may contain multiple fields, such as signal name, time difference, test sequence corresponding to each signal to be observed, action of each signal to be observed such as reading or writing, etc. The target test case can be sent from the test equipment to the test tool, or it can be integrated and developed in the test tool to obtain the target test case. The target test case can be used to implement software functional testing to verify each functional module.
[0084] Step S02: construct an observation signal value reading set according to the time difference and identification information corresponding to each signal to be observed.
[0085] The identification information refers to a unique identification of the signal to be observed, which may be a signal name of the signal to be observed, or a number of the signal to be observed, or other information that may indicate the uniqueness of the signal to be observed.
[0086] In a feasible implementation, the target test case can be edited on the test device and then sent to the test tool running on the test device, so that the test tool can obtain the target test case. In order to enable the test tool to recognize the content of the target test case, the target test case needs to be converted into a test script that can be recognized by the test tool, that is, the time difference and identification information corresponding to each signal to be observed are extracted from the target test case, and an observation signal value reading set is constructed according to the time difference and identification information corresponding to each signal to be observed, thereby achieving the effect of converting the target test case into a test script.
[0087] In another feasible implementation, the target test case may also be a test case obtained by editing on a test tool. The test tool may integrate the functions of making a target test case, reading subsequent observation signal values, and judging observation signal values. The making of the target test case and subsequent functions are completed through the test tool, thereby reducing data transmission overhead and improving test efficiency. Similarly, in order to implement subsequent observation signal value reading operations, it is necessary to extract the time difference and identification information corresponding to each signal to be observed from the target test case edited by the test tool, and construct an observation signal value reading set based on the time difference and identification information corresponding to each signal to be observed, thereby achieving the effect of converting the target test case into a test script.
[0088] In the embodiment of the present application, the target test case provides a unified standard and format for testing. By directly extracting the time difference and identification information from the target test case, the accuracy and consistency of the data can be ensured, errors that may be introduced by manual input or calculation can be avoided, and the accuracy of the constructed observation signal value reading set can be improved.
[0089] In some embodiments of the present application, the observed signal value reading set includes multiple set elements, and the set elements are composed of time differences and identification information corresponding to the signals to be observed.
[0090] A set element is a basic unit constituting a set. Each signal to be observed corresponds to a set element. The set element corresponding to each signal to be observed is composed of identification information and a time difference corresponding to the signal to be observed.
[0091] For example, the observed signal value reading set can be expressed as: ["signal a: T1", "signal b: T1", "signal b: T1", "signal b: T1"]. The observed signal value reading set includes four set elements, namely "signal a: T1", "signal b: T2", "signal c: T3" and "signal d: T4", and each set element is composed of identification information corresponding to a signal to be observed, such as a signal name and a time difference.
[0092] In the embodiment of the present application, multiple set elements are obtained by combining the time difference and identification information corresponding to the signal to be observed, and each set element forms an observation signal value reading set to meet the test requirements of complex test scenarios in which multiple signals to be observed are read synchronously.
[0093] like Figure 5 As shown, in some embodiments of the present application, after reading the observed signal value of the signal to be observed from the hardware test environment of the whole vehicle based on the reading time point, it also includes: Step S40, determining a set of observed signal values, and obtaining expected values, observed signal values, and numerical tolerances corresponding to each signal to be observed.
[0094] The observed signal value determination set refers to a set including the expected value and observed signal value of each signal to be observed, which is used to guide the comparison of the expected value and the observed signal value of each signal to be observed. In different programming languages, the expression form of the observed signal value determination set is different. For example, it can be an array, a list, or other expressions. The expression form of the observed signal value determination set can be set according to different programming languages. The observed signal value determination set may include identification information, observed signal value, expected value and numerical tolerance corresponding to each signal to be observed.
[0095] The expected value refers to the expected signal value of the signal to be observed. The expected value corresponding to each signal to be observed can be determined according to experiments and set in advance.
[0096] The numerical tolerance refers to the permissible error value or error range of the observed signal value. It can be determined and preset through experiments, and the numerical tolerances corresponding to different signals to be observed can be the same or different.
[0097] For example, the observed signal value judgment set can be expressed as: [["a1", "s1", "actual value of signal a"], ["b1", "s2", "actual value of signal b"], ["c1", "s3", "actual value of signal c"]]. Among them, a1 is the expected value of signal a, s1 is the numerical tolerance of signal a, and the actual value of signal a is the observed signal value of signal a; b1 is the expected value of signal b, s2 is the numerical tolerance of signal b, and the actual value of signal b is the observed signal value of signal b; c1 is the expected value of signal c, s3 is the numerical tolerance of signal c, and the actual value of signal c is the observed signal value of signal c.
[0098] In a feasible implementation, after reading the observed signal value of the signal to be observed from the hardware test environment of the whole vehicle based on the reading time point, the set can be directly determined based on the observed signal value to obtain the expected value, observed signal value and numerical tolerance corresponding to each signal to be observed.
[0099] In another feasible implementation, after reading the observation signal value of the signal to be observed from the hardware test environment of the whole vehicle based on the reading time point, if the judgment process of the observation signal value is triggered, the set of observation signal values is read to obtain the time difference corresponding to the reading of each observation signal value of the signal to be observed.
[0100] The judgment process of the observed signal value refers to the program or process responsible for judging the observed signal value of each signal value to be observed. Triggering the judgment process of the observed signal value means starting to compare the observed signal value of each signal value to be observed with the expected value. The purpose of the comparison is to determine whether the observed signal value read is consistent with the expected value. Through this operation, the purpose of fault diagnosis of the corresponding test function can be achieved, and the corresponding function can also be corrected and updated.
[0101] A test tool is provided on the test device, which includes a programming interface and a judgment control. The judgment control is associated with the program corresponding to the observation signal value judgment set edited in the editing interface. After the program corresponding to the observation signal value judgment set is edited in the programming interface, the judgment control is triggered to enter the observation signal value judgment process and perform subsequent observation signal value judgments.
[0102] In order to realize the judgment of the observed signal value, when triggering the judgment process of the observed signal value, it is necessary to parse the observed signal value judgment set to obtain the expected value, observed signal value and numerical tolerance corresponding to each signal to be observed, so as to judge the observed signal value.
[0103] In another feasible implementation, the observation signal value reading set and the observation signal value determination set are embodied by two independent test scripts. After the test script of the observation signal value reading set is executed, the observation signal values of all the signals to be observed are displayed on the display interface of the test tool. Then, the tester can trigger the execution of the test script of the observation signal value determination set, trigger the judgment process of the observation signal value, implement the judgment of the observation signal value, and display the test results of all the observation signal values on the display interface. Alternatively, a test script can be jointly constructed by the observation signal value reading set and the observation signal value determination set. After the test script of the observation signal value reading set is executed, the process of the observation signal value determination set is automatically triggered, and the test script is executed to implement the judgment of the observation signal value. Finally, the observation signal values of all the signals to be observed and the test results of all the observation signal values are displayed on the display interface of the test tool. The above two implementations can meet the testing requirements in different scenarios.
[0104] Step S50, obtaining the test results corresponding to each signal to be observed based on the expected value, the observed signal value and the numerical tolerance corresponding to each signal to be observed.
[0105] The test result is the test result of the expected value and the observed signal value corresponding to a single signal to be observed. The test result may include pass or fail, and may also include the difference between the expected value and the observed signal value.
[0106] For example, in the observed signal value judgment set, ["a1", "s1", "actual value of signal a"] is compared with ["b1", "s2", "actual value of signal b"] to obtain the test results corresponding to signal a and signal b.
[0107] In the embodiment of the present application, by comparing each signal to be observed based on the corresponding expected value, observed signal value and numerical tolerance, the test results corresponding to each signal to be observed are obtained, which can intuitively reflect whether the observed signal value of the signal to be observed meets the expectation, achieve the automated testing effect of each signal to be observed, and improve the accuracy and objectivity of the test results.
[0108] like Figure 6 As shown, in some embodiments of the present application, based on the expected value, observed signal value and numerical tolerance corresponding to each signal to be observed, obtaining the test result corresponding to each signal to be observed includes: Step S51, obtaining a test time interval and a test sequence of each signal to be observed.
[0109] The test time interval refers to the time difference between two adjacent signals to be observed and are retrieved for judgment. It can be set according to the actual situation. The test time intervals between the signals to be tested can be set to be the same or different. For example, the test time interval between signal a and signal b is 10 seconds, and the test time interval between signal b and signal c is 2 seconds.
[0110] The test sequence refers to the order in which the various signals to be observed are called for testing, which can be represented by time or sequence number. It can be determined by manual adjustment in the test case, or it can be set according to the test priority and test difficulty of each signal to be observed.
[0111] For example, the test order of signal a, signal b and signal c can be expressed as 1.1, 1.2, 1.3, or it can be expressed as testing signal a at time t1', testing signal b at time t2', and testing signal c at time t3'.
[0112] Step S52, according to the test time interval and the test sequence, compare the expected value, the observed signal value and the numerical tolerance corresponding to the signal to be observed in turn to obtain the test results corresponding to each signal to be observed.
[0113] In a feasible implementation, after the test time interval, the expected value and observed signal value corresponding to the next signal to be observed are obtained for comparison to obtain the corresponding test result, and the judgment process is exited after all the signals to be observed are compared.
[0114] In another feasible implementation, after the last signal to be observed is judged, the test results of each signal to be observed are uniformly displayed on the display interface of the test tool. It is also possible to display the test result of the corresponding signal to be observed on the display interface after each signal to be observed is judged, so as to achieve the effect of real-time display of the test results.
[0115] In the embodiment of the present application, by comparing the expected value and the observed signal value of each signal to be observed one by one, the deviation of each signal to be observed can be accurately captured, the accuracy of the test results of each signal to be observed can be improved, and the final test result can be made more accurate.
[0116] like Figure 7 As shown, in some embodiments of the present application, based on the comparison of the expected value, the observed signal value and the numerical tolerance corresponding to the signal to be observed, the test results corresponding to each signal to be observed are obtained, including: Step S521, obtaining the expected value fluctuation range corresponding to the signal to be observed according to the expected value and the numerical tolerance of the signal to be observed.
[0117] The expected value fluctuation interval refers to the range within which the expected value can fluctuate. Setting the expected value fluctuation interval can reduce the impact of numerical errors on test results. The expected value fluctuation interval can be a closed interval or an open interval. One endpoint value of the expected value fluctuation interval can be determined based on the sum of the expected value and the numerical tolerance of the signal to be observed, and the other endpoint value can be determined based on the difference between the expected value and the numerical tolerance of the signal to be observed. When the expected values and numerical tolerances of the signals to be observed are different, the expected value fluctuation intervals corresponding to the signals to be observed are also different.
[0118] For example, suppose the expected value corresponding to signal a is represented by a1, and the numerical tolerance is s1. Then, the expected value fluctuation range corresponding to signal a can be represented by [a1-s1, a1+s1], or (a1-s1, a1+s1] or [a1-s1, a1+s1]. Suppose the expected value corresponding to signal b is represented by b1, and the numerical tolerance is s2. Then, the expected value fluctuation range corresponding to signal b can be represented by [b1-s2, b1+s2], or (b1-s2, b1+s2] or [b1-s2, b1+s2]. Suppose the expected value corresponding to signal c is represented by c1, and the numerical tolerance is s3. Then, the expected value fluctuation range corresponding to signal c can be represented by [c1-s3, c1+s3], or (c1-s3, c1+s3] or [c1-s3, c1+s3).
[0119] Step S522: if the observed signal value of the signal to be observed belongs to the expected value fluctuation range, the test result of the signal to be observed is determined to be passed.
[0120] Step S523: if the observed signal value of the signal to be observed does not belong to the expected value fluctuation range, the test result of the signal to be observed is determined to be failed.
[0121] For example, taking the expected value fluctuation interval of signal a as [a1-s1, a1+s1], assuming that the observed signal value of signal a is located at [a1-s1, a1+s1], the test result of signal a is determined to be passed, otherwise, the test result of signal a is failed. Taking the expected value fluctuation interval of signal b as [b1-s2, b1+s2], assuming that the observed signal value of signal b is located at [b1-s2, b1+s2], the test result of signal b is determined to be passed, otherwise, the test result of signal b is failed. Taking the expected value fluctuation interval of signal c as [c1-s3, c1+s3], assuming that the observed signal value of signal c is located at [c1-s3, c1+s3], the test result of signal c is determined to be passed, otherwise, the test result of signal c is failed.
[0122] In the embodiment of the present application, the introduction of numerical tolerance allows the observed signal value to fluctuate within a certain range around the expected value, thereby reducing misjudgments caused by slight deviations.
[0123] like Figure 8 As shown, in some embodiments of the present application, if the judgment process of the observed signal value is triggered, before determining the expected value and the observed signal value corresponding to each signal to be observed according to the judgment set of the observed signal value, it also includes: Step S03, extracting the expected value and numerical tolerance corresponding to each signal to be observed from the target test case of the whole vehicle.
[0124] The target test case here can be the target test case mentioned in step S01. In this case, in addition to the signal name, time difference, and test sequence corresponding to each signal to be observed, the target test case also includes the expected value and numerical tolerance corresponding to each signal to be observed. The target test case here can also be a target test case independent of the target test case mentioned in step S01. The target test case here includes the signal name, expected value, and numerical tolerance corresponding to each signal to be observed.
[0125] Step S04: construct an observation signal value determination set according to the observation signal value, identification information, expected value and numerical tolerance corresponding to each signal to be observed.
[0126] In a feasible implementation, the target test case can be edited on the test device and then sent to the test tool running on the test device, so that the test tool can obtain the target test case. In order to enable the test tool to recognize the content of the target test case, the target test case needs to be converted into a test script that can be recognized by the test tool, that is, the identification information, expected value and numerical tolerance corresponding to each signal to be observed are extracted from the target test case, and an observation signal value judgment set is constructed according to the identification information, expected value, numerical tolerance corresponding to each signal to be observed and the read observation signal value, thereby achieving the effect of converting the target test case into a test script.
[0127] In another feasible implementation, the target test case may also be a target test case obtained by editing on a test tool. The test tool may integrate the functions of target test case creation, observation signal value reading, and observation signal value judgment. The target test case creation, observation signal value reading, and observation signal value judgment are completed through the test tool, thereby reducing data transmission overhead and improving test efficiency. Similarly, in order to implement subsequent observation signal value reading operations, it is necessary to extract the identification information, expected value, and numerical tolerance corresponding to each signal to be observed from the target test case edited by the test tool, and construct an observation signal value judgment set based on the identification information, expected value, numerical tolerance corresponding to each signal to be observed and the read observation signal value, thereby achieving the effect of converting the target test case into a test script.
[0128] The embodiment of the present application can ensure the accuracy and consistency of the data by directly extracting the identification information, expected value and numerical tolerance from the target test case, avoiding the errors that may be introduced by manual input or calculation, and improving the accuracy of the constructed observation signal value reading set. In addition, the target test case provides a unified standard and format for testing. By extracting the expected value, numerical tolerance and time difference of the signal to be observed from the target test case, subsequent tests can be tested in accordance with the same specifications and standards, thereby improving the normalization and standardization of the test.
[0129] In some embodiments of the present application, in order to implement the judgment process of serial observation signal values. It is necessary to set the observation signal value judgment set. Since the data has deviations, it will affect the accuracy of the test results. Therefore, when setting the observation signal value judgment set, it is necessary to consider the numerical tolerance. The observation signal value judgment set includes multiple subsets, and the subsets are composed of identification information corresponding to the signal to be observed, the observation signal value, the expected value and the numerical tolerance.
[0130] For example, the observed signal value decision set is expressed as: [["a1", "s1", "actual value of signal a"], ["b1", "s2", "actual value of signal b"], ["c1", "s3", "actual value of signal c"]].
[0131] From the above-mentioned observed signal value determination set, it can be seen that the observed signal value determination set includes three subsets, namely ["a1", "s1", "actual value of signal a"], ["b1", "s2", "actual value of signal b"] and ["c1", "s3", "actual value of signal c"].
[0132] Each subset corresponds to a signal to be observed. Each subset includes multiple set elements. For example, the set elements in the subset ["a1", "s1", "actual value of signal a"] include a1, s1 and the actual value of signal a.
[0133] In an embodiment of the present application, by setting up multiple groups of subsets, each subset is composed of identification information, observation signal value, expected value and numerical tolerance corresponding to a signal to be observed. It is possible to compare each signal to be observed in the observation signal value determination set based on the corresponding observation signal value, expected value and numerical tolerance to meet the needs of comparing multiple signals to be observed.
[0134] In some embodiments of the present application, in addition to sequentially comparing the tests corresponding to each signal to be observed, the expected value and the observed signal value corresponding to each signal to be observed can also be synchronously compared to obtain the test results corresponding to each signal to be observed. By synchronously comparing the expected value and the observed signal value of each signal to be observed, the judgment efficiency of each signal to be observed can be improved.
[0135] In the case of synchronous comparison, the observed signal value determination set includes an expected value set and an observed signal value set, each set element in the expected value set represents a combination of identification information, numerical tolerance and expected value corresponding to a signal to be observed, and each set element in the observed signal value set includes a combination of identification information and an observed signal value corresponding to a signal to be observed.
[0136] For example, the expected value set can be expressed as [["a1", "s1"], ["b1", "s2"], ["c1", "s3"]], where the expected value set includes three set elements, namely ["a1", "s1"], ["b1", "s2"], ["c1", "s3"]. The observed signal value set can be expressed as [["actual value of signal a"], ["actual value of signal b"], ["actual value of signal c"]], where the observed signal value set includes three set elements, namely ["actual value of signal a"], ["actual value of signal b"], ["actual value of signal c"].
[0137] In the comparison process, according to the expected value and numerical tolerance of the signal to be observed in the expected value set, the expected value fluctuation range corresponding to the signal to be observed is obtained. If the observed signal value of the signal to be observed belongs to the expected value fluctuation range, the test result of the signal to be observed is determined to be passed. If the observed signal value of the signal to be observed does not belong to the expected value fluctuation range, the test result of the signal to be observed is determined to be failed. The specific comparison method can refer to the above embodiment, which will not be repeated here.
[0138] In the embodiment of the present application, the expected value and the observed signal value are represented by different sets respectively, and finally the expected value and the observed signal value are synchronously compared between the two sets, thereby improving the comparison efficiency of the expected value and the observed signal value of each signal to be observed.
[0139] In some embodiments of the present application, after reading the observed signal value of the signal to be observed from the hardware test environment of the whole vehicle based on the reading time point, it also includes: if the judgment process of the observed signal value is triggered, the expected value and the observed signal value corresponding to each signal to be observed are determined according to the observed signal value judgment set. Based on the expected value and the observed signal value corresponding to each signal to be observed, the test result corresponding to each signal to be observed is determined.
[0140] Among them, based on the expected value and the observed signal value corresponding to each signal to be observed, determining the test result corresponding to each signal to be observed includes: obtaining the test time interval and the test order of each signal to be observed; according to the test time interval and the test order, comparing the expected value and the observed signal value corresponding to the signal to be observed in turn to obtain the test result corresponding to each signal to be observed.
[0141] Among them, based on the comparison between the expected value and the observed signal value corresponding to the signal to be observed, the test results corresponding to each signal to be observed are obtained, including: the expected value and the observed signal value corresponding to the signal to be observed can be compared, and when the expected value and the observed signal value corresponding to the signal to be observed are the same, the test result of the signal to be observed is determined to be passed; when the expected value and the observed signal value corresponding to the signal to be observed are different, the test result of the signal to be observed is determined to be failed.
[0142] The above-mentioned observation signal value determination set includes multiple subsets, each of which includes identification information corresponding to a signal to be observed, an observation signal value and an expected value.
[0143] In the embodiment of the present application, by directly comparing the expected value and the observed signal value of the signal to be observed based on the corresponding expected value, the effect of judging the observed signal value of the signal to be observed can also be achieved.
[0144] In some embodiments of the present application, based on the reading time point, reading the observed signal value of the signal to be observed from the hardware test environment of the whole vehicle includes: Step S31, when the reading time point is reached, based on the connection relationship between the test tool of the test equipment and the hardware test environment of the whole vehicle, the observation signal value of the signal to be observed corresponding to the reading time point is read from the hardware test environment of the whole vehicle.
[0145] In a feasible implementation, before the observation signal value is read for the first time, a request for access permission is sent to the hardware test environment of the whole vehicle through the connection relationship. When feedback information allowing access is received from the hardware test environment of the whole vehicle, it indicates that the conditions for reading the observation signal value are met. At this time, when the reading time point corresponding to each signal to be observed is reached, based on the connection relationship between the test equipment and the hardware test environment of the whole vehicle, the observation signal value of the signal to be observed corresponding to the reading time point is read from the hardware test environment of the whole vehicle, thereby realizing the reading of the observation signal value corresponding to the signal to be observed at each reading time point.
[0146] In another feasible implementation, a signal database can be established in advance based on all the signals to be observed in the test case, and the signal database can be loaded into the hardware test environment to establish a connection relationship between the test tool and the hardware test environment. When the reading time point is reached, a request is sent to the hardware test environment to match the signal to be observed corresponding to the reading time point from the signal database, obtain the observed signal value corresponding to the signal to be observed, and feed the observed signal value back to the test device, thereby achieving the effect of obtaining the observed signal value corresponding to the signal to be observed.
[0147] The above signal database is derived from the set of all signals to be observed in the test case and matches the test case version. The signals to be observed in the signal database can be changed, such as added or deleted. Every time the signals to be observed in the target test case are changed, the signals to be observed in the signal database also change synchronously to meet the reading of the observed signal values of different signals to be observed.
[0148] For example, Table 1 represents a target test case, which includes multiple signals to be observed. Signal a, signal b, signal c, and signal d in Table 1 will be extracted and included in the signal database.
[0149] Table 1
[0150] In the embodiment of the present application, a data transmission channel can be established between the test tool of the test equipment and the hardware test environment of the whole vehicle through a connection relationship, so that when each signal to be observed arrives at the corresponding reading time point, the corresponding observation signal value can be read from the hardware test environment based on the data transmission channel, thereby realizing real-time reading of the observation signal value.
[0151] The data reading method for the whole vehicle test of the present application can be applied to the test scenario of any functional module of the whole vehicle. In order to make a clearer description of the data reading method for the whole vehicle test provided by the present application, the following takes the test of the thermal management functional module of the whole vehicle as an example, including the following steps: (1) Obtain the target test cases of the thermal management function module of the whole vehicle. The target test cases of the thermal management function module of the whole vehicle can be shown in Table 2: Table 2
[0152] (2) Extract the time difference and identification information corresponding to each signal to be observed from the target test case of the thermal management function module of the whole vehicle. Construct the observation signal value reading set based on the time difference and identification information corresponding to each signal to be observed.
[0153] For example, the generated observation signal value reading set can be expressed as: ["Battery working status: 10", "Battery thermal management request: 100", "Battery thermal management scenario: 100", "Requested water inlet target water temperature: 100", "Requested water flow: 100", "DC charging status: 20"].
[0154] (3) Extract the expected value and numerical tolerance corresponding to each signal to be observed from the target test case. Construct an observation signal value judgment set based on the identification information, expected value, numerical tolerance and the read observation signal value corresponding to each signal to be observed.
[0155] For example, the generated observed signal value decision set can be expressed as: [["3","0","3.0"], ["2","0","2.0"], ["1","0","1.0"], ["107.5","0.5","107.5"], ["255.5","0.5","255.5"], ["2","0","2.0"]].
[0156] (4) If the reading process of the observation signal value of the whole vehicle is triggered, the time difference of reading the observation signal value of each signal to be observed is obtained according to the observation signal value reading set. The reading time point of the observation signal value of each signal to be observed is obtained according to the start reading time point and the time difference of reading the observation signal value of each signal to be observed, wherein the start reading time point of the observation signal value corresponding to each signal to be observed is the same. Based on the reading time point, the observation signal value of the signal to be observed is read from the hardware test environment of the whole vehicle.
[0157] For example, assuming that the start reading time point is 0, the reading time point of the observation signal value corresponding to the battery working status is the 10th second, the reading time point of the observation signal value corresponding to the battery thermal management request is the 100th second, the reading time point of the observation signal value corresponding to the battery thermal management scenario is the 100th second, the reading time point of the observation signal value corresponding to the requested inlet target water temperature is the 100th second, the reading time point of the observation signal value corresponding to the requested water flow rate is the 100th second, and the reading time point of the observation signal value corresponding to the DC charging status is the 20th second.
[0158] (5) According to the observed signal value judgment set, the expected value, observed signal value and numerical tolerance corresponding to each signal to be observed are obtained. Based on the expected value, observed signal value and numerical tolerance corresponding to each signal to be observed, the test results corresponding to each signal to be observed are obtained. At this point, the test of each signal to be observed in the thermal management function module of the whole vehicle is completed.
[0159] Among them, the test results corresponding to each signal to be observed can be shown in Table 3: Table 3
[0160] In the embodiment of the present application, in the thermal management function module, the observation signal values of each signal to be observed have the same start reading time point. Even if there are different time differences between the signals to be observed, the corresponding observation signal values can be read independently and synchronously after the corresponding time differences. This reading method can improve the reading efficiency of the observation signal values, thereby improving the test efficiency of the thermal management function module of the whole vehicle. It can also alleviate the problem of inaccurate observation signal values being read out late for some of the signals to be observed during the test, making the observation signal values read by all the signals to be observed more accurate.
[0161] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0162] Based on the same invention purpose, corresponding to the data reading method of the vehicle test provided in the above embodiment, Fig. 9This is a structural block diagram of a testing device provided in an embodiment of the present application. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0163] Reference Fig. 9 , a test device is provided, namely Fig. 9 The test device includes a case processing module 201, a synchronous reading module 202 and a result determination module 203. Fig. 9 The synchronous reading module 202 in the embodiment includes a time difference determination module, a reading time point determination module and a reading module. Specifically, the synchronous reading module 202 includes: The time difference determination module is used to obtain the time difference corresponding to the reading of the observation signal value of each signal to be observed according to the observation signal value reading set if the reading process of the observation signal value of the whole vehicle is triggered.
[0164] The reading time point determination module is used to obtain the reading time point of the observation signal value of each signal to be observed based on the time difference between the start reading time point and the corresponding reading of the observation signal value of each signal to be observed, wherein the start reading time point of the observation signal value corresponding to each signal to be observed is the same.
[0165] The reading module is used to read the observed signal value of the signal to be observed from the hardware test environment of the whole vehicle based on the reading time point.
[0166] In some embodiments of the present application, the testing device also includes a use case processing module 201, which is used to extract the time difference and identification information corresponding to each signal to be observed from the target test case of the whole vehicle; and construct an observation signal value reading set based on the time difference and identification information corresponding to each signal to be observed.
[0167] In some embodiments of the present application, the observed signal value reading set includes multiple set elements, and the set elements are composed of time differences and identification information corresponding to the signals to be observed.
[0168] In some embodiments of the present application, the use case processing module 201 is also used to extract the expected value and numerical tolerance corresponding to each signal to be observed from the target test case of the whole vehicle; and construct an observation signal value judgment set based on the identification information, expected value, numerical tolerance and the read observation signal value corresponding to each signal to be observed.
[0169] In some embodiments of the present application, the observed signal value determination set includes multiple subsets, and the subsets are composed of identification information corresponding to the signal to be observed, the observed signal value, the expected value and the numerical tolerance.
[0170] In some embodiments of the present application, the testing device also includes a result determination module 203, which is used to determine the set of observed signal values to obtain expected values, observed signal values and numerical tolerances corresponding to each signal to be observed; based on the expected values, observed signal values and numerical tolerances corresponding to each signal to be observed, the test results corresponding to each signal to be observed are obtained.
[0171] In some embodiments of the present application, the result determination module 203 is also used to obtain the test time interval and the test order of each signal to be observed; according to the test time interval and the test order, comparisons are made in turn based on the expected value, observed signal value and numerical tolerance corresponding to the signal to be observed to obtain the test results corresponding to each signal to be observed.
[0172] In some embodiments of the present application, the result judgment module 203 is also used to obtain the expected value fluctuation range corresponding to the signal to be observed based on the expected value and numerical tolerance of the signal to be observed; if the observed signal value of the signal to be observed belongs to the expected value fluctuation range, the test result of the signal to be observed is determined to be passed; if the observed signal value of the signal to be observed does not belong to the expected value fluctuation range, the test result of the signal to be observed is determined to be failed.
[0173] In some embodiments of the present application, the reading module is further used to read the observation signal value of the signal to be observed from the hardware test environment of the whole vehicle based on the reading time point.
[0174] The test device provided by the present application adopts the data reading method for the whole vehicle test in the above embodiment, which can alleviate the problem of delayed reading of the observation signal values of some signals to be observed during the test, resulting in inaccurate observation signal values. Compared with the prior art, the beneficial effects of the test device provided by the present application are the same as the beneficial effects of the data reading method for the whole vehicle test provided by the above embodiment, and other technical features in the test device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0175] Based on the same invention purpose, the present application provides a testing device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned data reading method for the whole vehicle test.
[0176] Reference below Fig.10, which shows a schematic diagram of the structure of a test device suitable for implementing the embodiment of the present application. The test device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions: tablet computers), PMPs (Portable Media Players: portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.10 The test device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0177] like Fig.10 As shown, the test equipment may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the test equipment are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the test device to communicate with other devices wirelessly or wired to exchange data. Although the figure shows a test device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0178] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0179] The test equipment provided by the present application adopts the data reading method for the whole vehicle test in the above embodiment, which can alleviate the problem of delayed reading of the observation signal values of some signals to be observed during the test, resulting in inaccurate observation signal values. Compared with the prior art, the beneficial effects of the test equipment provided by the present application are the same as the beneficial effects of the data reading method for the whole vehicle test provided by the above embodiment, and the other technical features in the test equipment are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0180] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0181] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0182] Based on the same invention purpose, refer to Figure 1 , the embodiment of the present application provides a test system, which includes a test device 102, and a connection relationship is established between the test tool on the test device 102 and the hardware test environment corresponding to the device to be tested 104. Among them, the hardware test environment between the test tool on the test device 102 and the device to be tested 104 can be connected through a wired network or a wireless network, and the specific connection method can be selected according to actual needs.
[0183] The test system provided by the present application can alleviate the problem of delayed reading of the observed signal values of some signals to be observed during the test, resulting in inaccurate observed signal values. Compared with the prior art, the beneficial effects of the test system provided by the present application are the same as those of the data reading method for the whole vehicle test provided by the above embodiment, and will not be elaborated here.
[0184] Based on the same invention purpose, the present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the data reading method for the whole vehicle test in the above-mentioned embodiment.
[0185] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0186] The computer-readable storage medium may be included in the test device, or may exist independently without being assembled into the test device.
[0187] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the test device, the test device can alleviate the problem of inaccurate observation signal values caused by delayed reading of observation signal values of some signals to be observed during the test process.
[0188] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, Python, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0189] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0190] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0191] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned data reading method for the whole vehicle test, and can alleviate the problem of delayed reading of the observed signal values of some signals to be observed during the test, resulting in inaccurate read observation signal values. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the data reading method for the whole vehicle test provided by the above-mentioned embodiment, and will not be elaborated here.
[0192] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application, and they should all be included in the scope of the claims and specification of the present application. In particular, as long as there is no structural conflict, the various technical features mentioned in the various embodiments can be combined in any way. The present application is not limited to the specific embodiments disclosed herein, but includes all technical solutions that fall within the scope of the claims.
Claims
1. A data reading method for vehicle testing, characterized in that: The data reading method of the whole vehicle test includes: If the reading process of the observation signal value of the whole vehicle is triggered, the time difference corresponding to the reading of the observation signal value of each signal to be observed is obtained according to the reading set of the observation signal value; Obtaining the reading time points of the observation signal values of the signals to be observed according to the time difference between the start reading time point and the corresponding reading time of the observation signal values of the signals to be observed, wherein the start reading time points of the observation signal values corresponding to the signals to be observed are the same; Based on the reading time point, the observation signal value of the signal to be observed is read from the hardware test environment of the whole vehicle.
2. The data reading method for vehicle testing according to claim 1, characterized in that: If the reading process of the observation signal value of the whole vehicle is triggered, before the step of obtaining the time difference corresponding to the reading of the observation signal value of each signal to be observed according to the observation signal value reading set, it also includes: Extracting the time difference and identification information corresponding to each of the signals to be observed from the target test case of the whole vehicle; The observed signal value reading set is constructed according to the time difference corresponding to each of the signals to be observed and the identification information.
3. The data reading method for vehicle testing according to claim 1 or 2, characterized in that: The observed signal value reading set includes a plurality of set elements, and the set elements are composed of time differences and identification information corresponding to the signals to be observed.
4. The data reading method for vehicle testing according to claim 1, characterized in that: After reading the observed signal value of the signal to be observed from the hardware test environment of the whole vehicle based on the reading time point, the method further includes: According to the observed signal value determination set, the expected value, the observed signal value and the numerical tolerance corresponding to each of the signals to be observed are obtained; Based on the expected value, the observed signal value and the numerical tolerance corresponding to each of the signals to be observed, the test results corresponding to each of the signals to be observed are obtained.
5. The data reading method for vehicle testing as claimed in claim 4, characterized in that: The obtaining of the test results corresponding to each of the signals to be observed based on the expected value, the observed signal value and the numerical tolerance corresponding to each of the signals to be observed comprises: Obtaining a test time interval and a test order of each of the signals to be observed; According to the test time interval and the test sequence, comparisons are made based on the expected value, the observed signal value and the numerical tolerance corresponding to the signal to be observed, so as to obtain the test results corresponding to each of the signals to be observed.
6. The data reading method for vehicle testing as claimed in claim 5, characterized in that: The comparison based on the expected value, the observed signal value and the numerical tolerance corresponding to the signal to be observed to obtain the test results corresponding to each of the signals to be observed includes: Obtaining an expected value fluctuation range corresponding to the signal to be observed according to the expected value and the numerical tolerance of the signal to be observed; If the observed signal value of the signal to be observed belongs to the expected value fluctuation range, determining that the test result of the signal to be observed is passed; If the observed signal value of the signal to be observed does not belong to the expected value fluctuation range, it is determined that the test result of the signal to be observed is failed.
7. The data reading method for vehicle testing according to any one of claims 4 to 6, characterized in that: Before determining the expected value and the observed signal value corresponding to each of the signals to be observed according to the determined set of observed signal values, the method further includes: Extracting the expected value and the numerical tolerance corresponding to each of the signals to be observed from the target test case of the whole vehicle; The observed signal value determination set is constructed according to the observed signal values, identification information, the expected value and the numerical tolerance corresponding to each of the signals to be observed.
8. The data reading method for vehicle testing according to claim 7, characterized in that: The observed signal value determination set includes a plurality of subsets, and the subsets are composed of identification information corresponding to the signal to be observed, the observed signal value, the expected value and the numerical tolerance.
9. The data reading method for vehicle testing as claimed in claim 4, characterized in that: The observed signal value determination set includes an expected value set and an observed signal value set, wherein the set elements in the expected value set are composed of identification information corresponding to the signal to be observed, numerical tolerance and expected value, and the set elements in the observed signal value set are composed of identification information corresponding to the signal to be observed and observed signal value.
10. The data reading method for vehicle testing according to claim 1, characterized in that: The step of reading the observed signal value of the signal to be observed from the hardware test environment of the whole vehicle based on the reading time point includes: When the reading time point is reached, based on the connection relationship between the test tool of the test equipment and the hardware test environment of the whole vehicle, the observation signal value of the signal to be observed corresponding to the reading time point is read from the hardware test environment of the whole vehicle.
11. A testing device, characterized in that: The testing device comprises: The time difference determination module is used to obtain the time difference corresponding to the reading of the observation signal value of each signal to be observed according to the observation signal value reading set if the reading process of the observation signal value of the whole vehicle is triggered; A reading time point determination module, used to determine the reading time point of the observation signal value of each of the signals to be observed according to the time difference and the start reading time point, wherein the start reading time point of the observation signal value corresponding to each of the signals to be observed is the same; A reading module is used to read the observation signal value of the signal to be observed from the hardware test environment of the whole vehicle based on the reading time point.
12. A testing device, characterized in that: The testing device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data reading method for the whole vehicle test as claimed in any one of claims 1 to 10.
13. A testing system, characterized in that: The test system includes the test device as claimed in claim 12, and a connection is established between the test tool carried on the test device and the hardware test environment of the whole vehicle.
14. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the data reading method for the whole vehicle test as described in any one of claims 1 to 10 are implemented.
Citation Information
Patent Citations
Method for testing BCU node in PTCAN based on ECU-TEST
CN108490911A
Event generation strategy and calibration method for automatic test case
CN118733436A
Event type semiconductor testing system
JP2001124836A
Event based semiconductor test system
US6532561B1
