Single-pedal function test method, electronic device, and storage medium
By acquiring and analyzing vehicle bus data, and generating visual instructions to display test results, the problem of long testing cycles in the development of single-pedal functionality has been solved, thus improving testing and development efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-20
- Publication Date
- 2026-04-07
AI Technical Summary
In the development of the one-pedal function, existing technologies require extensive experimental verification of vehicles under various driving conditions, resulting in high development costs and long testing cycles, which reduces development efficiency.
By acquiring vehicle bus data, the test condition parameters and target parameters of the one-pedal function are extracted. Electronic devices are used to perform data analysis under different test conditions, generate visual instructions and display test results, thereby realizing centralized testing of the one-pedal function and improving testing efficiency.
It enables testing of the same single-pedal function in different vehicles and testing of the operation of different single-pedal functions in the same vehicle, improving testing and development efficiency.
Smart Images

Figure CN114778138B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of automatic testing technology, and in particular to a single-pedal function testing method, electronic device, and storage medium. Background Technology
[0002] During vehicle operation, drivers can control acceleration, speed maintenance, and deceleration by using both the accelerator and brake pedals. To reduce driver fatigue caused by constantly switching between the brake and accelerator pedals, researchers developed and implemented a single-pedal function in the vehicle. This allows drivers to judge their driving intentions by the speed and degree of release when pressing the accelerator pedal, thereby controlling the motor torque to achieve acceleration, speed maintenance, and deceleration. Energy is also recovered during deceleration and braking, increasing the utilization rate of stored energy in the vehicle.
[0003] In the development of the one-pedal function, in order to improve the vehicle conditions that the one-pedal function can adapt to and to ensure the stability of the one-pedal function in the vehicle, it is necessary to conduct a large number of experiments to verify the relevant parameters of the one-pedal function under at least one vehicle condition. Then, the implementation of the function is manually analyzed and verified one by one. This not only increases the development cost, but also lengthens the testing cycle and reduces the development efficiency. Summary of the Invention
[0004] This application provides a single-pedal function testing method, electronic device, and storage medium to solve the technical problem of improving the development efficiency of single-pedal functions.
[0005] Firstly, this application provides a method for testing the function of a single pedal, the method comprising:
[0006] Acquire vehicle bus data and obtain vehicle parameter data generated during the use of the one-pedal function from the vehicle bus data. The vehicle parameters include one-pedal function test condition parameters and one-pedal function test target parameters.
[0007] Based on the corresponding data of the single-pedal function test conditions and parameters, the single-pedal function test time range is obtained.
[0008] Within the single-pedal function test time range, the single-pedal function test results are obtained based on the corresponding data of the single-pedal function test target and the single-pedal function test target parameters.
[0009] Based on the single-pedal function test results, a visualization command is generated and sent to the display device. The visualization command is used to control the display device to display the single-pedal function test results.
[0010] In the above technical solution, the electronic device utilizes the bus data of vehicles that have already implemented the one-pedal function to acquire data corresponding to the one-pedal function test condition parameters and one-pedal function test target parameters during the one-pedal function operation process, according to preset parameters. The electronic device limits the test time range under different test conditions according to the data corresponding to different one-pedal function test conditions and test condition parameters. Within this time range, based on the corresponding data of the one-pedal function test target and target parameters, the test results for different test targets are obtained. This separates the test data collection process from the test process, enabling the testing of the same one-pedal function operation in different vehicles and the testing of different one-pedal functions operation in the same vehicle. This replaces the previous method of testing the one-pedal function on multiple vehicles one by one, thus improving test efficiency.
[0011] Optionally, after obtaining the vehicle parameter data generated during the use of the one-pedal function from the vehicle bus data, the method further includes:
[0012] Obtain the single pedal function test type, which includes function status adjustment test type or function usage status test type;
[0013] Based on the single-pedal function test type and type parameter mapping table, obtain the test vehicle parameters corresponding to the single-pedal function test type; where the type parameter mapping table represents the mapping relationship between the single-pedal function test type and its corresponding test vehicle parameters.
[0014] Based on the single-pedal function test type and type condition mapping table, obtain the single-pedal function test conditions and single-pedal function test objectives corresponding to the single-pedal function test type; the type condition mapping table represents the mapping relationship between the single-pedal function test type and its corresponding single-pedal function test conditions and single-pedal function test objectives.
[0015] In the above technical solution, the electronic device uses the single-pedal function test type to classify the specific test situation, so as to realize the fine classification of the corresponding data, test conditions and test targets of the test vehicle parameters under different test conditions, thereby improving the structuring of test cases, improving the efficiency of determining specific test cases, and thus improving the testing and development efficiency of single-pedal function.
[0016] Optionally, when the single-pedal function test type is a function state adjustment test type, the single-pedal function test time range is obtained based on the corresponding data of the single-pedal function test conditions and single-pedal function test condition parameters, specifically including:
[0017] If the single pedal function test condition is the activation function test condition, obtain the single pedal function activation test time range when the data corresponding to the single pedal function test condition parameters meet the activation function test condition.
[0018] The activation function test conditions are as follows: the vehicle usage mode is in the first preset mode, the vehicle speed is within the preset speed range, the driving mode is in normal mode or environmental mode, the high voltage system is in a fault-free state, the braking system is in a fault-free state, the intelligent assistance functions are all in an inactive state, the road surface slope is less than the preset slope, the gear is in forward or reverse gear, and the status activation signal is set.
[0019] The intelligent assistance functions include: automatic emergency braking, cruise control, automatic parking, speed limit, automatic driving mode, and hill descent control.
[0020] Optionally, within the single-pedal function test time range, the single-pedal function test results are obtained based on the corresponding data of the single-pedal function test target and the single-pedal function test target parameters, specifically including:
[0021] If the single-pedal function test target is the activation function test target, within the single-pedal function activation test time range, the first single-pedal function test result is obtained based on the state of the single-pedal function and the state of the large screen display.
[0022] Optionally, the method further includes:
[0023] If the single-pedal function test condition is the first standby function test condition, the data corresponding to the single-pedal function test condition parameters obtained meet the first single-pedal function standby test time range when the vehicle usage mode is not in the second preset mode, the vehicle speed is less than the speed threshold, and the state activation signal is set.
[0024] If the single-pedal function test condition is the second standby function test condition, the data corresponding to the single-pedal function test condition parameters obtained meet the second single-pedal function standby test time range when the single-pedal function is in the active state and / or standby state.
[0025] Optionally, within the single-pedal function test time range, the single-pedal function test results are obtained based on the corresponding data of the single-pedal function test target and the single-pedal function test target parameters, specifically including:
[0026] If the single-pedal function test target is the first standby function test target, within the first single-pedal function standby test time range, the second single-pedal function test result is obtained based on the state of the single-pedal function and the state of the large screen display.
[0027] If the single-pedal function test target is the second standby function test target, within the second single-pedal function standby test time range, when the data corresponding to the single-pedal function test condition parameters does not meet the activation function test conditions, the adjustment state of the single-pedal function and the corresponding large screen display state are used to obtain the third single-pedal function test result.
[0028] Optionally, when the single-pedal function test type is a function usage status test type, the single-pedal function test time range is obtained based on the corresponding data of the single-pedal function test conditions and single-pedal function test condition parameters, specifically including:
[0029] If the single-pedal function test condition is the first function usage test condition, the data corresponding to the single-pedal function test condition parameters obtained meet the first single-pedal function usage test time range after the power-on time point when the vehicle is powered off and then powered on again.
[0030] If the single-pedal function test condition is the second function usage test condition, the data corresponding to the single-pedal function test condition parameters are obtained to satisfy the second single-pedal function usage test time range after the release operation time point when the single-pedal function is in the active state and the pedal is released.
[0031] Optionally, within the single-pedal function test time range, the single-pedal function test results are obtained based on the corresponding data of the single-pedal function test target and the single-pedal function test target parameters, specifically including:
[0032] If the single-pedal function test target is the first function usage test target, within the first single-pedal function usage test time range, the fourth single-pedal function test result is obtained based on the change of the single-pedal function's state and the large screen display state.
[0033] If the single-pedal function test target is the second function usage test target, the fifth single-pedal function test result is obtained based on the change state of the brake light electrical signal within the second single-pedal function usage test time range.
[0034] In the above technical solution, the electronic device uses the relevant data of the single-pedal function in the bus data to extract the relevant data according to different test objectives and the test conditions corresponding to each objective, and performs corresponding analysis. This enables the electronic device to perform diverse single-pedal function tests using the bus data of at least one vehicle.
[0035] In a second aspect, this application provides an electronic device, including: a processor and a memory communicatively connected to the processor;
[0036] The memory stores the instructions that the computer executes;
[0037] The processor executes computer execution instructions stored in memory to implement the single-pedal function test method involved in the first aspect.
[0038] Thirdly, this application provides a computer-readable storage medium storing computer instructions, which, when executed by a processor, are used to implement the single-pedal function testing method involved in the first aspect.
[0039] This application provides a one-pedal function testing method, electronic device, and storage medium. It acquires vehicle bus data and obtains vehicle parameter data generated during the one-pedal function usage process from the vehicle bus data. Based on the one-pedal function test conditions and the corresponding data of the one-pedal function test condition parameters, it obtains the one-pedal function test time range. Then, within the one-pedal function test time range, based on the corresponding data of the one-pedal function test target and the one-pedal function test target parameters, it obtains the one-pedal function test result. Based on the one-pedal function test result, it generates a visualization instruction and sends the visualization instruction to a display device. The vehicle parameters include one-pedal function test condition parameters and one-pedal function test target parameters. The visualization instruction controls the display device to display the one-pedal function test result. This allows the electronic device to obtain data corresponding to the parameters to be tested based on the bus data generated during operation. By using this data and preset test conditions and preset test targets, different test situations are defined, and different test results are obtained. This increases the types and number of functions that can be tested within the same time period, thereby improving the testing efficiency and development efficiency of the one-pedal function. Attached Figure Description
[0040] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0041] Figure 1 This is an application scenario diagram of a single-pedal function testing method provided in an embodiment of this application;
[0042] Figure 2 A flowchart illustrating a single-pedal function testing method provided in an embodiment of this application;
[0043] Figure 3 A flowchart illustrating a single-pedal function testing method provided in another embodiment of this application;
[0044] Figure 4 This is a schematic diagram of the structure of a single-pedal function testing device provided in an embodiment of this application;
[0045] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0046] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0047] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0048] During vehicle operation, drivers can control acceleration, speed maintenance, and deceleration by using both the accelerator and brake pedals. To reduce driver fatigue caused by constantly switching between the brake and accelerator pedals, researchers developed and implemented a single-pedal function in the vehicle. This allows drivers to judge their driving intentions by the speed and degree of release when pressing the accelerator pedal, thereby controlling the motor torque to achieve acceleration, speed maintenance, and deceleration. Energy is also recovered during deceleration and braking, increasing the utilization rate of stored energy in the vehicle.
[0049] In the development of the one-pedal function, in order to improve the vehicle conditions that the one-pedal function can adapt to and to ensure the stability of the one-pedal function in the vehicle, it is necessary to conduct a large number of experiments to verify the relevant parameters of the one-pedal function under at least one vehicle condition. Then, the implementation of the function is manually analyzed and verified one by one. This not only increases the development cost, but also lengthens the testing cycle and reduces the development efficiency.
[0050] To address the aforementioned technical problems, this application provides a one-pedal function testing method, electronic device, and storage medium, aiming to improve the development efficiency of one-pedal functions. The technical concept of this application is: the electronic device acquires data information from the vehicle bus data of the one-pedal function under test, showing the vehicle operating at least one test target under at least one test condition, thereby enabling the re-acquisition of the one-pedal function's operating state. Combined with simultaneous acquisition of data from other vehicles testing the function, this achieves centralized testing of the one-pedal function's operating state, improving testing efficiency.
[0051] Figure 1 This is an application scenario diagram of the steering data testing method provided in an embodiment of this application, such as... Figure 1As shown, the system includes a vehicle 10, electronic equipment 11, and a display device 12. The electronic equipment 11 and the display device 12 are connected, more specifically, this connection includes both electrical and communication connections. The vehicle 10 is equipped with an accelerator pedal and a brake pedal. When the vehicle 10 is operating in one-pedal mode, its driving speed can be adjusted based on the depth and speed of the accelerator pedal. More specifically, as the depth of the accelerator pedal gradually increases, the vehicle 10 accelerates; as the depth of the accelerator pedal gradually decreases, the vehicle 10 brakes. That is, when the vehicle is in one-pedal mode, it can control its acceleration and deceleration using only the control signals received from the accelerator pedal.
[0052] When vehicle 10 is operating the one-pedal function under test, its electronic control unit controls the vehicle's operation by controlling the accelerator pedal's related systems and corresponding devices. During the control process, control data and commands are transmitted between various devices via the vehicle bus to ensure the vehicle's stable operation of the one-pedal function under test. Vehicle 10 stores the control data and commands transmitted on the vehicle bus as bus data. When electronic device 11 tests the operating status of the one-pedal function under test, it obtains the stored bus data from vehicle 10, extracts the corresponding parameter-related data from the bus data according to preset test conditions and test objectives, and determines the corresponding test results based on the changes in the data. During the above testing process, electronic device 11 not only tests the operation of the one-pedal function of the same vehicle under different test conditions, but also tests the operation of the one-pedal function of different vehicles under the same test conditions. Electronic device 11 acquires vehicle parameters from at least one vehicle, including parameters for operating a one-pedal function under at least one test condition, and tests these parameters to obtain test results. Based on these results, it performs statistical analysis to determine the operation of the one-pedal function under test on each vehicle. To improve visibility, electronic device 11 sends the operational information obtained from the statistical analysis to display device 12 and controls its display.
[0053] Figure 2 This is a schematic flowchart illustrating a steering single-pedal function testing method provided in an embodiment of this application. Figure 2 As shown, the single-pedal function testing method provided in this application includes:
[0054] S201. The electronic device acquires vehicle bus data and obtains data corresponding to vehicle parameters generated during the use of the one-pedal function from the vehicle bus data.
[0055] Vehicle bus data includes data transmitted on the bus and stored within the vehicle when the vehicle is operating the one-pedal function. Depending on the type of data transmitted, the bus data stored in the vehicle may be in formats including, but not limited to, MDF, DAT, and BLF.
[0056] When electronic devices use vehicle bus data to perform single-pedal function tests, they obtain data corresponding to the associated vehicle parameters from the bus data. These vehicle parameters include single-pedal function test condition parameters and single-pedal function test target parameters.
[0057] More specifically, the one-pedal function test condition parameters are parameters that define the different vehicle conditions in which the vehicle operates the one-pedal function. These vehicle conditions include the road conditions the vehicle is in and / or the preset states required for driving. The one-pedal function test target parameters are parameters representing the operating state to be tested when the vehicle operates the aforementioned one-pedal function.
[0058] S202. The electronic device obtains the single-pedal function test time range based on the corresponding data of the single-pedal function test conditions and parameters.
[0059] Among them, the single-pedal function test conditions are the conditions that the vehicle needs to meet when operating the single-pedal function to be tested during driving. These conditions include the single-pedal function test condition parameters in step S201 and the values or ranges that each parameter needs to meet.
[0060] More specifically, the single-pedal function test condition includes at least one single-pedal function test sub-condition, each sub-condition containing a single-pedal function test condition sub-parameter and the target data to be satisfied by that sub-parameter.
[0061] After obtaining the actual data corresponding to the single-pedal function test condition parameters from the bus data, the electronic device compares the actual data with the target data in the single-pedal function test conditions corresponding to the parameters, obtains the time range in the bus data when the actual data is equal to the target data or the actual data is within the data range corresponding to the target data, and determines this time range as the single-pedal function test time range.
[0062] More specifically, when the single-pedal function test conditions include multiple sub-conditions, the electronic device obtains the actual data corresponding to the test sub-condition parameters of each sub-condition from the bus data, and compares the actual data with the target data corresponding to the test condition parameters to obtain the original time range for the single-pedal function test when the data corresponding to the test sub-condition parameters of that sub-condition meets the target data. The electronic device then determines the single-pedal function test time range from the above multiple original time ranges for single-pedal function tests when the data corresponding to each test sub-condition parameter meets its corresponding target data.
[0063] S203. Within the single-pedal function test time range, the electronic device obtains the single-pedal function test result based on the corresponding data of the single-pedal function test target and the single-pedal function test target parameters.
[0064] The single-pedal function test time range is obtained from step S202.
[0065] The single-pedal function test objective is the condition where the associated parameters of the single-pedal function meet preset data within the preset test conditions defined by the bus data corresponding to the single-pedal function test time range. This single-pedal function test objective includes the single-pedal function test objective parameters and their corresponding preset data.
[0066] When performing a one-pedal function test, the electronic device obtains the actual data corresponding to the target parameters of the one-pedal function test from the bus data corresponding to the test time range, and compares the actual data with the preset data corresponding to the target parameters to determine whether the actual data meets or does not meet the preset data. Based on the above, the electronic device obtains the original test results for the one-pedal function and performs statistical analysis on these results to obtain the state of the vehicle achieving or not achieving the one-pedal function test target, thus obtaining the one-pedal function test result. The data corresponding to the target parameters of the one-pedal function test is obtained from step S201.
[0067] S204. The electronic device generates a visual instruction based on the single pedal function test results and sends the visual instruction to the display device.
[0068] The single-pedal function test result is obtained from step S203.
[0069] The electronic device generates a visualization command based on the single-pedal function test results and sends the visualization command to the display device to display the single-pedal test results. More specifically, when displaying the single-pedal function test results, the display device can not only display the relevant data of the test results, but also display the data in the form of statistical charts and / or statistical tables.
[0070] In the above technical solution, the electronic device utilizes the bus data of vehicles that have already implemented the one-pedal function to acquire data corresponding to the one-pedal function test condition parameters and one-pedal function test target parameters during the one-pedal function operation process, according to preset parameters. The electronic device limits the test time range under different test conditions according to the data corresponding to different one-pedal function test conditions and test condition parameters. Within this time range, based on the corresponding data of the one-pedal function test target and target parameters, the test results for different test targets are obtained. This separates the test data collection process from the test process, enabling the testing of the same one-pedal function operation in different vehicles and the testing of different one-pedal functions operation in the same vehicle. This replaces the previous method of testing the one-pedal function on multiple vehicles one by one, thus improving test efficiency.
[0071] Figure 3 This is a flowchart illustrating a single-pedal function testing method according to another embodiment of this application, wherein the method is executed by an electronic device. Figure 3 As shown, the single-pedal function testing method provided in this application includes:
[0072] S301. Obtain vehicle bus data and retrieve the vehicle parameter data generated during the use of the single-pedal function from the vehicle bus data.
[0073] The vehicle parameters include single-pedal function test condition parameters and single-pedal function test target parameters. The vehicle bus data and the corresponding vehicle parameter data are explained in detail in step S201, and will not be repeated here.
[0074] In one embodiment, after acquiring vehicle bus data, the electronic device discretizes the bus data according to a preset sampling time interval to obtain discrete vehicle bus data. This discrete vehicle bus data includes discrete time points and corresponding vehicle discrete data, which includes discrete data corresponding to the single-pedal function test condition parameters and discrete data corresponding to the single-pedal function test target parameters.
[0075] In another embodiment, the electronic device determines the existence status of vehicle parameter data generated during the use of the single-pedal function in the bus data, extracts the valid bus data corresponding to the time range in which the data exists, and discretizes the valid bus data according to a preset sampling time interval to obtain multiple discrete time points and discrete data corresponding to each discrete time point.
[0076] S302, Obtain the single pedal function test type.
[0077] The single-pedal function test type is a preset type that limits the single-pedal function test target type and the test conditions corresponding to that target.
[0078] The single-pedal function test types include function state adjustment test type and function usage state test type. Among them, the function state adjustment test type is a case type that takes the adjustment of the state of the single-pedal function as the test target, and the function usage state test type is a case type that takes the change of the state of the relevant parameters of the single-pedal function as the test target.
[0079] S303. Based on the single-pedal function test type and type parameter mapping table, obtain the test vehicle parameters corresponding to the single-pedal function test type.
[0080] The type parameter mapping table represents the mapping relationship between the single-pedal function test type and its corresponding test vehicle parameters. The single-pedal function test type is obtained from step S302.
[0081] S304. Based on the single-pedal function test type and type condition mapping table, obtain the single-pedal function test conditions and single-pedal function test objectives corresponding to the single-pedal function test type.
[0082] The single-pedal function test type is obtained from step S302.
[0083] The type condition mapping table represents the mapping relationship between the single-pedal function test type, its corresponding single-pedal function test conditions, and the single-pedal function test target.
[0084] S305. Based on the corresponding data of the single-pedal function test conditions and parameters, obtain the single-pedal function test time range.
[0085] The one-pedal function test conditions are the conditions that the vehicle parameters corresponding to the determined test conditions must meet. These test conditions include one-pedal function test condition parameters and target data that these parameters must meet. The one-pedal function test condition parameters are determined in step S304 based on the one-pedal function test type and the required conditions for the one-pedal function test target to be tested.
[0086] In determining the time range for single-pedal function testing, the electronic device uses a logic condition mapping table to process the single-pedal function test conditions, obtaining the corresponding logical expression for each condition. This logical expression is then used to process the corresponding data of the single-pedal function test condition parameters, obtaining data that satisfies the logical expression. The time range corresponding to this data is then used to determine the single-pedal function test time range. In one embodiment, the data processed by the logical expression is discrete data. The electronic device substitutes the discrete data corresponding to each discrete time point into the logical expression to obtain the discrete data for which the logical expression is true and the corresponding discrete time points. This yields a time range determined by consecutive discrete time points that satisfy the conditions. The electronic device then defines this time range as the single-pedal function test time range. The logic condition mapping table represents the correspondence between the logical expressions and the single-pedal function test conditions.
[0087] More specifically, if the one-pedal function test conditions include at least one sub-condition, the logic condition mapping table represents the mapping relationship between each sub-condition and its corresponding logic expression. The electronic device processes the discrete data associated with each obtained logic expression to obtain the original time range for the one-pedal function test corresponding to each logic expression. The electronic device organizes the original time ranges corresponding to all logic expressions and determines the time range within which the vehicle bus discrete data satisfies all logic expressions as the one-pedal function test time range.
[0088] When the single-pedal function test type is a function state adjustment test type, the number of test cases within a specified test time range for this test type is a first preset number. In one embodiment, this first preset number is 3.
[0089] More specifically, if the one-pedal function test condition is the activation function test condition, the data corresponding to the one-pedal function test condition parameters must satisfy the activation function test condition for the one-pedal function activation test time range. The activation function test condition includes: the vehicle usage mode is in the first preset mode; the vehicle speed is within the preset speed range; the driving mode is in normal mode or environmental mode; the high-voltage system is in a fault-free state; the braking system is in a fault-free state; all intelligent assistance functions are in an inactive state; the road surface slope is less than the preset slope; the gear is in forward or reverse gear; and the status activation signal is set. The intelligent assistance functions include: automatic emergency braking, cruise control, automatic parking, speed limit function, automatic driving mode, and hill descent control. In one embodiment, the first preset mode is Driving mode, and the status activation signal is set when the soft switch for the one-pedal function on the instrument panel is activated. More specifically, the cruise control function includes cruise control and adaptive cruise control, and the speed limit function includes automatic speed limit function and manual speed limit function.
[0090] In the above technical solution, the activation test time range for the single-pedal function is defined as the time range after the vehicle receives the control signal for single-pedal function activation from the vehicle's large screen during the driving process, when the vehicle is used in Driving mode, and is traveling at a speed within a preset speed range in normal or environmental mode, with both vehicle and road conditions being suitable. Suitable vehicle conditions mean that the high-voltage system and braking system are in a fault-free state, and intelligent assistance functions are not activated.
[0091] If the one-pedal function test condition is the first standby function test condition, the data corresponding to the one-pedal function test condition parameters are obtained within the first one-pedal function standby test time range when the vehicle usage mode is not in the second preset mode, the vehicle speed is less than the speed threshold, and the state activation signal is set. In one embodiment, the second preset mode is the Abandoned mode, where the vehicle speed is less than the speed threshold and the vehicle is stationary.
[0092] In the above technical solution, the vehicle is stationary within the standby test time range of the first single-pedal function, the vehicle is using the Abandoned mode, and the vehicle has received a control signal to activate the single-pedal function.
[0093] If the single-pedal function test condition is the second standby function test condition, the data corresponding to the single-pedal function test condition parameters obtained meet the second single-pedal function standby test time range when the single-pedal function is in the active state and / or standby state.
[0094] More specifically, the second single-pedal function standby test time range includes three test time sub-ranges: the first single-pedal function standby test time sub-range corresponding to the single-pedal function being in the active state, the second single-pedal function standby test time sub-range corresponding to the single-pedal function being in the standby state, and the third single-pedal standby function test time sub-range consisting of the time range of the single-pedal function being in the active state and the time range of the single-pedal function being in the standby state.
[0095] When the single-pedal function test type is a function usage status test type, the number of test cases within a specified test time range for this test type is a second preset number. In one embodiment, this second preset number is two.
[0096] If the single-pedal function test condition is the first function usage test condition, the data corresponding to the single-pedal function test condition parameters obtained meet the first single-pedal function usage test time range after the power-on time point when the vehicle is powered off and then powered on again.
[0097] In the above technical solution, during the test time range of the first single-pedal function, after the vehicle experiences a power outage during use, ending the current driving cycle, it is powered on again to enter the next driving cycle. More specifically, the test time range of the first single-pedal function includes a pre-power-off time range ending at the time point corresponding to the power-off operation and a power-on time range starting at the time point corresponding to the power-on operation. The duration of these time ranges is a preset duration, and the power-off and power-on operations are adjacent operations. More specifically, in the bus data, the rising edge of the electrical signal generated by the power-on operation and the falling edge of the electrical signal generated by the power-off operation are adjacent.
[0098] If the single-pedal function test condition is the second function usage test condition, the data corresponding to the single-pedal function test condition parameters are obtained to satisfy the following conditions: the single-pedal function is in an active state, the pedal is released, and the vehicle's braking acceleration is less than the preset acceleration. This is the range of the second single-pedal function usage test time after the release operation time point.
[0099] In the above technical solution, the second single-pedal function usage test time range is a preset braking time range with the release time point corresponding to the release operation as the starting time point when the vehicle with the single-pedal function activated releases the accelerator pedal during use. More specifically, in the vehicle bus data when the single-pedal function is activated, the preset braking time range with the release operation-generated electrical signal-point as the starting time point is determined as the second single-pedal function test time range.
[0100] S306. Within the single-pedal function test time range, obtain the single-pedal function test results based on the corresponding data of the single-pedal function test target and the single-pedal function test target parameters.
[0101] The single-pedal function test time range is obtained from step S305.
[0102] The single-pedal function test objective is the single-pedal function test objective determined in step S304 according to the single-pedal function test type, within the vehicle bus data corresponding to the single-pedal function test time range. This single-pedal function test objective includes single-pedal function test objective parameters and target data that these parameters must satisfy. The data corresponding to the single-pedal function test objective parameters is obtained from step S301.
[0103] In determining the single-pedal function test result, the electronic device uses a logic condition mapping table to process the single-pedal function test target, obtains the corresponding logical expression for the single-pedal function test target, and uses this logical expression to process the corresponding data of the single-pedal function test target parameters to obtain data that satisfies the logical expression. The device then uses the time corresponding to this data to determine the implementation state of the function under test, thus obtaining the single-pedal function test result. In one embodiment, the data processed by the logical expression is discrete data. The electronic device substitutes the discrete data corresponding to each discrete time point into the logical expression to obtain the discrete data for which the logical expression is true and the discrete time points corresponding to these data. This yields the discrete time points that satisfy the conditions and / or the time range determined by consecutive discrete time points. The electronic device performs statistical calculations on these time points and / or time ranges to obtain the implementation state of the function under test within the single-pedal function test time range, thereby obtaining the single-pedal function test result.
[0104] Within the single-pedal function activation test time range, if the single-pedal function test target is the activation function test target, the first single-pedal function test result is obtained based on the state of the single-pedal function and the state of the large screen display.
[0105] More specifically, the test involves assessing whether the electronic device can adjust the single-pedal function to an active state after the vehicle meets the activation function test conditions, and displaying this state on the instrument panel. The test results are then statistically analyzed to obtain the first single-pedal function test result. This result includes: the number of times the single-pedal function was adjusted and failed to be activated; the number of times the single-pedal indicator was displayed and illuminated on the instrument panel; the proportion of each of these counts relative to the number of times the activation function test conditions were met; the duration of the single-pedal function in an active state; the duration of the single-pedal indicator displayed and illuminated on the instrument panel; and the proportion of each of these durations to the corresponding duration of their respective activation test time range. In one embodiment, the vehicle indicates that the single-pedal function is active by displaying and illuminating the single-pedal indicator on the instrument panel. In the vehicle bus data, the display flag for the single-pedal indicator is set, and the illuminated flag is set.
[0106] Within the standby test time range of the first single-pedal function, if the test target of the single-pedal function is the same as the test target of the first standby function, the test result of the second single-pedal function is obtained based on the state of the single-pedal function and the state of the large screen display.
[0107] More specifically, the electronic device tests the status of the one-pedal function and the display status of the function on the instrument panel when the vehicle, under the first standby function test conditions, requests to use the one-pedal function. The test results are analyzed to obtain the second one-pedal function test results. The test results include: the number of times the one-pedal function is in standby and non-standby states, the number of times the one-pedal indicator is displayed on the instrument panel but not lit, the ratio of the above numbers to the total number of times the vehicle is in the first one-pedal function standby test time range, the duration of the one-pedal function in standby state, the duration of the one-pedal indicator displayed on the instrument panel but not lit, and the ratio of each of the above durations to the corresponding duration of the first one-pedal function standby test time range.
[0108] Within the second standby test time range of the single-pedal function, if the single-pedal function test target is the second standby function test target, the third single-pedal function test result is obtained by adjusting the state of the single-pedal function and the corresponding large screen display state when the data corresponding to the single-pedal function test condition parameters does not meet the activation function test conditions.
[0109] More specifically, according to the second single-pedal function standby test time range explained in step S305, this time range includes three test time sub-ranges.
[0110] In one embodiment, during a first single-pedal function standby test sub-range when the vehicle's single-pedal function is active, the electronic device tests, based on bus data, the changes in the single-pedal function status and the display of the single-pedal indicator on the instrument panel when any function in the intelligent assistance function is switched to an active state or the vehicle gear is adjusted to park or neutral. The electronic device analyzes the above situations to obtain a third single-pedal function test result. This test result includes: the number of times the single-pedal function switches to standby and non-standby states, the number of times the single-pedal indicator is displayed on the instrument panel but not illuminated, the ratio of the above numbers to the total number of times the vehicle is in the second single-pedal function standby test range, the duration after the single-pedal function is adjusted to standby state, the duration of the single-pedal indicator being displayed on the instrument panel but not illuminated, and the ratio of each of the above durations to the corresponding duration of the second single-pedal function standby test range.
[0111] In another embodiment, during a third single-pedal function standby test sub-range when the vehicle's single-pedal function is in an active or standby state, the electronic device tests, based on bus data, the adjustment of the single-pedal function's state when the state activation signal is reset and the display of the single-pedal indicator on the instrument panel. The electronic device analyzes the above situations to obtain the third single-pedal function test results. These test results include: the number of times the single-pedal function switches to the off state and the number of times the current state is not adjusted; the number of times the single-pedal indicator is displayed and not displayed on the instrument panel; the ratio of the above numbers to the total number of times the vehicle is in the second single-pedal function standby test range; the duration after the single-pedal function is adjusted to the off state; the duration after the single-pedal indicator is stopped being displayed on the instrument panel; and the ratio of each of the above durations to the corresponding duration of the second single-pedal function standby test range.
[0112] In another embodiment, during the third single-pedal function standby test sub-range when the vehicle's single-pedal function is active or in standby mode, the electronic device tests, based on bus data, the adjustment of the single-pedal function's state and the display of the single-pedal indicator on the instrument panel when the driving mode is adjusted to other modes besides normal and eco modes. The electronic device analyzes the above situations to obtain the third single-pedal function test results. The content of these test results is the same as that in the previous embodiment and will not be repeated here.
[0113] In another embodiment, during a third single-pedal function standby test sub-range when the vehicle's single-pedal function is active or in standby mode, the electronic device tests, based on bus data, the adjustment of the single-pedal function's state and the display of the single-pedal indicator on the instrument panel when the high-voltage system and / or the braking system are in a fault state. The electronic device analyzes the above situations to obtain the third single-pedal function test results. The content of these test results is the same as that in the previous embodiment and will not be repeated here.
[0114] Within the first single-pedal function usage test time range, if the single-pedal function test target is the first function usage test target, the fourth single-pedal function test result is obtained based on the state of the single-pedal function and the large screen display state.
[0115] More specifically, the electronic device, based on vehicle bus data within the first single-pedal function usage test time range, and according to the single-pedal function state activation set signal and state activation reset signal before and after power-off, tests the changes in the operating state of the single-pedal function in adjacent driving cycles, and obtains the fourth single-pedal function test result after analyzing these changes. This test result includes: the number of times the single-pedal function operating state was maintained and the number of times it was adjusted, and the ratio of these numbers to the total number of times the vehicle was within the first single-pedal function usage test time range. This embodiment is used to test the memory function of the single-pedal function, more specifically, to test whether the vehicle's single-pedal function usage state remains unchanged during the vehicle's power-off and power-on process.
[0116] Within the second single-pedal function usage test time range, if the single-pedal function test target is the second function usage test target, the fifth single-pedal function test result is obtained based on the change state of the brake light's electrical signal.
[0117] More specifically, the electronic device tests the brake light illumination signal state of the vehicle based on vehicle bus data within the second one-pedal function usage test time range, and analyzes this state to obtain the fifth one-pedal function test results. These results include: the number of times the brake light illumination signal was activated, and the ratio of this number to the total number of times the vehicle was within the second one-pedal function usage test time range. This embodiment is used to test the brake light illumination state of the vehicle during the braking process when the accelerator pedal is released while using the one-pedal function.
[0118] S307. Generate a visual instruction based on the single pedal function test results and send the visual instruction to the display device.
[0119] The single-pedal test result is obtained from step S306.
[0120] More specifically, the content and process of the electronic device displaying the single-pedal test result on the display device using visualization instructions have been explained in detail in step S204, and will not be repeated here.
[0121] In the above technical solution, the electronic device uses the relevant data of the single-pedal function in the bus data to extract the relevant data according to different test objectives and the test conditions corresponding to each objective, and performs corresponding analysis. This enables the electronic device to use the bus data of at least one vehicle to achieve diverse single-pedal function tests, thereby increasing the number of test cases of the electronic device within the same test time range and thus improving testing and development efficiency.
[0122] like Figure 4 As shown, one embodiment of this application provides a single-pedal function testing device 400, which includes:
[0123] The acquisition module 401 is used to acquire vehicle bus data and obtain data corresponding to vehicle parameters generated during the use of the one-pedal function from the vehicle bus data. The vehicle parameters include one-pedal function test condition parameters and one-pedal function test target parameters.
[0124] The processing module 402 is used to obtain the single-pedal function test time range based on the corresponding data of the single-pedal function test conditions and the parameters of the single-pedal function test conditions.
[0125] The processing module 402 is also used to obtain the single-pedal function test result within the single-pedal function test time range, based on the corresponding data of the single-pedal function test target and the single-pedal function test target parameters.
[0126] The processing module 402 is also used to generate visualization instructions based on the single-pedal function test results and send the visualization instructions to the display device. The visualization instructions are used to control the display device to display the single-pedal function test results.
[0127] In one embodiment, the processing module 402 is specifically used for:
[0128] Obtain the single pedal function test type, which includes function status adjustment test type or function usage status test type;
[0129] Based on the single-pedal function test type and type parameter mapping table, obtain the test vehicle parameters corresponding to the single-pedal function test type; where the type parameter mapping table represents the mapping relationship between the single-pedal function test type and its corresponding test vehicle parameters.
[0130] Based on the single-pedal function test type and type condition mapping table, obtain the single-pedal function test conditions and single-pedal function test objectives corresponding to the single-pedal function test type; the type condition mapping table represents the mapping relationship between the single-pedal function test type and its corresponding single-pedal function test conditions and single-pedal function test objectives.
[0131] In one embodiment, the processing module 402 is specifically used for:
[0132] If the single pedal function test condition is the activation function test condition, obtain the single pedal function activation test time range when the data corresponding to the single pedal function test condition parameters meet the activation function test condition.
[0133] The activation function test conditions are as follows: the vehicle usage mode is in the first preset mode, the vehicle speed is within the preset speed range, the driving mode is in normal mode or environmental mode, the high voltage system is in a fault-free state, the braking system is in a fault-free state, the intelligent assistance functions are all in an inactive state, the road surface slope is less than the preset slope, the gear is in forward or reverse gear, and the status activation signal is set.
[0134] The intelligent assistance functions include: automatic emergency braking, cruise control, automatic parking, speed limit, automatic driving mode, and hill descent control.
[0135] In one embodiment, the processing module 402 is specifically used for:
[0136] If the single-pedal function test target is the activation function test target, within the single-pedal function activation test time range, the first single-pedal function test result is obtained based on the state of the single-pedal function and the state of the large screen display.
[0137] In one embodiment, the processing module 402 is specifically used for:
[0138] If the single-pedal function test condition is the first standby function test condition, the data corresponding to the single-pedal function test condition parameters obtained meet the first single-pedal function standby test time range when the vehicle usage mode is not in the second preset mode, the vehicle speed is less than the speed threshold, and the state activation signal is set.
[0139] If the single-pedal function test condition is the second standby function test condition, the data corresponding to the single-pedal function test condition parameters obtained meet the second single-pedal function standby test time range when the single-pedal function is in the active state and / or standby state.
[0140] In one embodiment, the processing module 402 is specifically used for:
[0141] If the single-pedal function test target is the first standby function test target, within the first single-pedal function standby test time range, the second single-pedal function test result is obtained based on the state of the single-pedal function and the state of the large screen display.
[0142] If the single-pedal function test target is the second standby function test target, within the second single-pedal function standby test time range, when the data corresponding to the single-pedal function test condition parameters does not meet the activation function test conditions, the adjustment state of the single-pedal function and the corresponding large screen display state are used to obtain the third single-pedal function test result.
[0143] In one embodiment, the processing module 402 is specifically used for:
[0144] If the single-pedal function test condition is the first function usage test condition, the data corresponding to the single-pedal function test condition parameters obtained meet the first single-pedal function usage test time range after the power-on time point when the vehicle is powered off and then powered on again.
[0145] If the single-pedal function test condition is the second function usage test condition, the data corresponding to the single-pedal function test condition parameters are obtained to satisfy the second single-pedal function usage test time range after the release operation time point when the single-pedal function is in the active state and the pedal is released.
[0146] In one embodiment, the processing module 402 is specifically used for:
[0147] If the single-pedal function test target is the first function usage test target, within the first single-pedal function usage test time range, the fourth single-pedal function test result is obtained based on the change of the single-pedal function's state and the large screen display state.
[0148] If the single-pedal function test target is the second function usage test target, the fifth single-pedal function test result is obtained based on the change state of the brake light electrical signal within the second single-pedal function usage test time range.
[0149] like Figure 5 As shown, one embodiment of this application provides an electronic device 500, which includes a memory 501 and a processor 502.
[0150] The memory 501 is used to store computer instructions that can be executed by the processor.
[0151] The processor 502 implements the various steps of the data redirection testing method in the above embodiments when executing computer instructions. For details, please refer to the relevant descriptions in the foregoing method embodiments.
[0152] Optionally, the memory 501 can be either standalone or integrated with the processor 502. When the memory 501 is set up independently, the server 500 also includes a bus for connecting the memory 501 and the processor 502.
[0153] This application also provides a computer-readable storage medium storing computer instructions. When a processor executes the computer instructions, it implements the various steps in the single-pedal function testing method described above.
[0154] This application also provides a computer program product, including computer instructions, which, when executed by a processor, implement the various steps in the single-pedal function testing method described above.
[0155] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0156] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A method for testing the function of a single pedal, characterized in that, The method includes: Acquire vehicle bus data, and obtain data corresponding to vehicle parameters generated during the use of the single-pedal function from the vehicle bus data. The vehicle parameters include single-pedal function test condition parameters and single-pedal function test target parameters. Based on the single-pedal function test conditions and the corresponding data of the single-pedal function test condition parameters, the single-pedal function test time range is obtained. Within the single-pedal function test time range, the single-pedal function test result is obtained based on the corresponding data of the single-pedal function test target and the parameters of the single-pedal function test target. A visualization command is generated based on the single-pedal function test results, and the visualization command is sent to the display device. The visualization command is used to control the display device to display the single-pedal function test results. When the single-pedal function test type is a function state adjustment test type, the single-pedal function test time range is obtained based on the single-pedal function test conditions and the corresponding data of the single-pedal function test condition parameters, specifically including: If the single pedal function test condition is the activation function test condition, obtain the single pedal function activation test time range when the data corresponding to the single pedal function test condition parameters meets the activation function test condition. The activation function test conditions are as follows: the vehicle usage mode is in the first preset mode, the vehicle speed is within the preset speed range, the driving mode is in normal mode or environmental mode, the high voltage system is in a fault-free state, the braking system is in a fault-free state, the intelligent assistance functions are all in an inactive state, the road surface slope is less than the preset slope, the gear is in forward or reverse gear, and the status activation signal is set. The intelligent assistance functions include: automatic emergency braking, cruise control, automatic parking, speed limit, automatic driving mode, and hill descent control.
2. The method according to claim 1, characterized in that, After obtaining the vehicle parameter data generated during the one-pedal function usage process from the vehicle bus data, the method further includes: Obtain the single pedal function test type, which includes function status adjustment test type or function usage status test type; Based on the single-pedal function test type and type parameter mapping table, the test vehicle parameters corresponding to the single-pedal function test type are obtained; wherein, the type parameter mapping table represents the mapping relationship between the single-pedal function test type and its corresponding test vehicle parameters; Based on the single-pedal function test type and type condition mapping table, the single-pedal function test conditions and single-pedal function test objectives corresponding to the single-pedal function test type are obtained; the type condition mapping table represents the mapping relationship between the single-pedal function test type and its corresponding single-pedal function test conditions and single-pedal function test objectives.
3. The method according to claim 2, characterized in that, Within the single-pedal function test time range, based on the corresponding data of the single-pedal function test target and the parameters of the single-pedal function test target, the single-pedal function test result is obtained, specifically including: If the single-pedal function test target is the activation function test target, within the single-pedal function activation test time range, the first single-pedal function test result is obtained based on the state of the single-pedal function and the large screen display state.
4. The method according to claim 2, characterized in that, The method further includes: If the single-pedal function test condition is the first standby function test condition, the data corresponding to the single-pedal function test condition parameter is obtained to meet the first single-pedal function standby test time range when the vehicle usage mode is not in the second preset mode, the vehicle speed is less than the speed threshold and the state activation signal is set. If the single-pedal function test condition is the second standby function test condition, the data corresponding to the single-pedal function test condition parameters obtained meet the second single-pedal function standby test time range when the single-pedal function is in the active state and / or standby state.
5. The method according to claim 4, characterized in that, Within the single-pedal function test time range, based on the corresponding data of the single-pedal function test target and the parameters of the single-pedal function test target, the single-pedal function test result is obtained, specifically including: If the single-pedal function test target is the first standby function test target, within the first single-pedal function standby test time range, the second single-pedal function test result is obtained based on the state of the single-pedal function and the large screen display state. If the single-pedal function test target is the second standby function test target, within the second single-pedal function standby test time range, if the data corresponding to the single-pedal function test condition parameters does not meet the activation function test conditions, the adjustment state of the single-pedal function and the corresponding large screen display state are used to obtain the third single-pedal function test result.
6. The method according to claim 2, characterized in that, When the single-pedal function test type is a function usage status test type, the single-pedal function test time range is obtained based on the single-pedal function test conditions and the corresponding data of the single-pedal function test condition parameters, specifically including: If the single-pedal function test condition is the first function usage test condition, the data corresponding to the single-pedal function test condition parameter is obtained to meet the first single-pedal function usage test time range after the power-on time point when the vehicle is powered off and then powered on again. If the single-pedal function test condition is the second function usage test condition, the data corresponding to the single-pedal function test condition parameter is obtained to satisfy the second single-pedal function usage test time range after the release operation time point when the single-pedal function is in the active state and the pedal is released.
7. The method according to claim 6, characterized in that, Within the single-pedal function test time range, based on the corresponding data of the single-pedal function test target and the parameters of the single-pedal function test target, the single-pedal function test result is obtained, specifically including: If the single pedal function test target is the first function usage test target, within the first single pedal function usage test time range, the fourth single pedal function test result is obtained based on the change of the state of the single pedal function and the large screen display state. If the single-pedal function test target is the second function usage test target, within the second single-pedal function usage test time range, the fifth single-pedal function test result is obtained based on the change state of the brake light's electrical signal.
8. An electronic device, characterized in that, include: A processor and a memory communicatively connected to the processor; The memory stores computer-executed instructions; When executing the computer instructions, the processor is used to implement the single-pedal function test method as described in any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, are used to implement the single-pedal function test method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
New energy vehicle single pedal technology testing device and method
CN111307472A