CN114674571A - Driving mode testing method and device and vehicle - Google Patents

Driving mode testing method and device and vehicle Download PDF

Info

Publication number
CN114674571A
CN114674571A CN202110864198.8A CN202110864198A CN114674571A CN 114674571 A CN114674571 A CN 114674571A CN 202110864198 A CN202110864198 A CN 202110864198A CN 114674571 A CN114674571 A CN 114674571A
Authority
CN
China
Prior art keywords
mode
button
driving mode
vehicle
adjusting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110864198.8A
Other languages
Chinese (zh)
Other versions
CN114674571B (en
Inventor
张路
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Electric Vehicle Co Ltd
Original Assignee
Beijing Electric Vehicle Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Electric Vehicle Co Ltd filed Critical Beijing Electric Vehicle Co Ltd
Priority to CN202110864198.8A priority Critical patent/CN114674571B/en
Publication of CN114674571A publication Critical patent/CN114674571A/en
Application granted granted Critical
Publication of CN114674571B publication Critical patent/CN114674571B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M17/00Testing of vehicles
    • G01M17/007Wheeled or endless-tracked vehicles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • Testing Of Devices, Machine Parts, Or Other Structures Thereof (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a driving mode testing method, a driving mode testing device and a driving mode testing system, wherein the method comprises the following steps: determining a first button adjusting mode supported by a vehicle to be tested, wherein the first button adjusting mode is used for adjusting the driving mode of the vehicle to be tested; if the first button adjusting mode is determined to be different from the second button adjusting mode supported by the current test case, the second button adjusting mode supported by the current test case is modified into a virtual second button adjusting mode, and a target test case supporting the first button adjusting mode is obtained; and testing the driving mode function of the vehicle by adopting the target test case. And multiplexing the current test case into the test case of the vehicle to be tested by modifying the second button adjusting mode supported by the current test case into the virtual second button adjusting mode. Compared with the method for independently developing the test cases of the vehicles to be tested, the method has the advantages that the workload of test engineers can be reduced, the test period of the vehicles to be tested is shortened, and the test efficiency is improved.

Description

Driving mode testing method and device and vehicle
Technical Field
The invention relates to the field of automobiles, in particular to a driving mode testing method and device and a vehicle.
Background
At present, when testing related functions of a driving mode of a vehicle, a test engineer may need to develop a corresponding test environment and design a corresponding test case according to each driving mode type to meet the test requirement.
However, since the test cases of each driving mode cannot be reused, the workload of the test engineer is significantly increased, thereby reducing the test efficiency. How to solve the above problems needs to be considered.
Disclosure of Invention
The invention aims to provide a driving mode testing method, a driving mode testing device and a vehicle, so that the testing efficiency is improved.
In order to achieve the above object, the present invention provides a driving mode testing method, comprising: determining a first button adjusting mode supported by a vehicle to be tested, wherein the first button adjusting mode is used for adjusting the driving mode of the vehicle to be tested; if the first button adjusting mode is determined to be different from a second button adjusting mode supported by the current test case, modifying the second button adjusting mode supported by the current test case into a virtual second button adjusting mode to obtain a target test case supporting the first button adjusting mode; and testing the driving mode function of the vehicle by adopting the target test case.
Optionally, the button adjustment mode comprises at least one of: single button adjustment mode; a double-button adjustment mode; three-button adjustment mode.
Optionally, the modifying the second button adjustment mode supported by the current test case into a virtual second button adjustment mode to obtain a target test case supporting the first button adjustment mode includes: and modifying the button signal type of the second button adjusting mode in the current test case, generating a virtual second button adjusting mode, and obtaining a target test case supporting the first button adjusting mode.
Optionally, the method further comprises: determining a current driving mode of the vehicle to be tested; and if the current driving mode is different from the first preset driving mode, adjusting the current driving mode to the first preset driving mode through the virtual second button adjusting mode.
Optionally, the method further comprises: determining whether the whole vehicle torque value of the vehicle is matched with the first preset driving mode; and if the complete vehicle torque value is determined not to be matched with the first preset driving mode, resetting the first preset driving mode so as to enable the reset second preset driving mode to be matched with the complete vehicle torque value.
Optionally, the virtual second button adjustment manner includes at least one virtual adjustment button; the adjusting the current driving mode to the preset driving mode by the virtual second button adjusting mode includes: and adjusting the current driving mode to the preset driving mode through the at least one virtual adjusting button.
Optionally, the method further comprises: and if the first button adjusting mode is determined to be the same as the second button adjusting mode, testing the driving mode function of the vehicle according to the current test case corresponding to the second button adjusting mode.
Another embodiment of the present invention provides a driving pattern testing apparatus, including: the system comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a first button adjusting mode supported by a vehicle to be tested, and the first button adjusting mode is used for adjusting the driving mode of the vehicle to be tested; the control module is used for modifying the second button adjusting mode supported by the current test case into a virtual second button adjusting mode to obtain a target test case supporting the first button adjusting mode if the first button adjusting mode is determined to be different from the second button adjusting mode supported by the current test case; and the control module is also used for testing the driving mode function of the vehicle by adopting the target test case.
Yet another embodiment of the present invention provides a vehicle including the driving pattern testing apparatus as described above.
Yet another embodiment of the invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the driving pattern testing method as described above.
The technical scheme of the invention has the following beneficial effects:
according to the driving mode testing method provided by the embodiment of the invention, the second button adjusting mode supported by the current testing case is modified into the virtual second button adjusting mode, so that the target testing case supporting the first button adjusting mode is obtained, and the current testing case is reused in the testing case of the vehicle to be tested. Compared with the method for independently developing the test cases of the vehicles to be tested, the method can reduce the workload of test engineers, greatly shorten the test period of the vehicles to be tested and improve the test efficiency.
Drawings
Fig. 1 is a schematic flow chart of a driving mode testing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an environment model according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating another driving pattern testing method according to an embodiment of the present invention;
fig. 4 is a schematic block diagram of a driving mode testing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments. In the following description, specific details such as specific configurations and components are provided only to help the full understanding of the embodiments of the present invention. Thus, it will be apparent to those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the invention. In addition, descriptions of well-known functions and constructions are omitted for clarity and conciseness.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
It should be understood that the term "and/or" herein is only one kind of association relationship describing the association object, and means that there may be three kinds of relationships, for example, a and/or B, and may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
In the embodiments provided herein, it should be understood that "B corresponding to A" means that B is associated with A from which B can be determined. It should also be understood that determining B from a does not mean determining B from a alone, but may be determined from a and/or other information.
Referring to fig. 1, an embodiment of the present invention provides a driving pattern testing method, including the steps of:
step 11: determining a first button adjusting mode supported by a vehicle to be tested, wherein the first button adjusting mode is used for adjusting the driving mode of the vehicle to be tested.
It should be noted that the driving mode includes at least one of the following: economy mode, comfort mode, and sport mode. The button adjusting modes of different vehicles can be different, and the switching among different driving modes of the vehicles can be realized through the adjustment of the buttons.
Step 12: and if the first button adjusting mode is different from the second button adjusting mode supported by the current test case, modifying the second button adjusting mode supported by the current test case into a virtual second button adjusting mode to obtain the target test case supporting the first button adjusting mode.
It should be noted that, in the case that the first button adjustment manner is different from the second button adjustment manner supported by the current test case, the vehicle to be tested cannot be tested by using the current test case. After the second button adjustment mode is modified into the virtual second button adjustment mode, because the driving mode obtained by adjusting the virtual second button adjustment mode is the same as the driving mode obtained by adjusting the first button adjustment mode, a target test case supporting the first button adjustment mode can be obtained, and therefore multiplexing of the test cases can be achieved.
Step 13: and testing the driving mode function of the vehicle by adopting the target test case.
According to the test method provided by the embodiment of the invention, the second button adjusting mode supported by the current test case is modified into the virtual second button adjusting mode, so that the target test case supporting the first button adjusting mode is obtained, and the current test case is reused in the test case of the vehicle to be tested. Compared with the method for independently developing the test cases of the vehicles to be tested, the method can reduce the workload of test engineers, greatly shorten the test period of the vehicles to be tested and improve the test efficiency.
In addition, the test case is multiplexed, the building speed of the test environment can be increased, the multiplexing of the test cases of the test platforms of different driving modes is achieved, and the test quality of the control system software is guaranteed.
Optionally, the driving mode testing method provided by the present invention may also include testing functions related to the driving mode, such as testing relationships between different driving modes and vehicle conditions and output torque functions, and testing relationships between different driving modes and power response time, which are not illustrated herein one by one.
Illustratively, the button adjustment comprises at least one of: single button adjustment mode; a double-button adjustment mode; three-button adjustment mode.
It should be noted that, with the single-button adjustment, the vehicle can be cyclically switched among the economy mode, the comfort mode and the sport mode through one button. For example, if the current driving mode of the vehicle is a comfortable mode, the comfortable mode is adjusted to a sport mode when a button is pressed once; pressing the button once again, and adjusting the motion mode into the economic mode; and pressing the button once again to adjust the economy mode to the comfort mode, and repeating the steps.
By adopting the double-button adjusting mode, the three modes can be switched by two buttons. For example, one button is "mode +", one button is "mode-", the driving mode of the current vehicle is a comfort mode, the comfort mode can be adjusted to a sport mode through the "mode +" button, the sport mode can be adjusted to a comfort mode through the "mode-" button, and the comfort mode can be adjusted to an economy mode through the "mode-" button. The upper limit of the adjustment by the "mode +" button is the sport mode, and the lower limit of the adjustment by the "mode-" button is the economy mode.
By adopting the three-button adjusting mode, the driving mode can be switched to the corresponding driving mode by three buttons, wherein each button corresponds to one driving mode, and the button corresponding to the driving mode is pressed.
And the second virtual button adjusting mode adjusts the driving mode of the vehicle to be tested according to a single-button adjusting mode or a double-button adjusting mode.
For example, the modifying the second button adjustment mode supported by the current test case into a virtual second button adjustment mode to obtain the target test case supporting the first button adjustment mode includes: and modifying the button signal type of the second button adjusting mode in the current test case, generating a virtual second button adjusting mode, and obtaining a target test case supporting the first button adjusting mode.
The second button adjustment mode is generally a two-button adjustment mode, but may be a single-button adjustment mode or a three-button adjustment mode.
Optionally, the button signal types corresponding to different button adjustment modes are different. And modifying the second button adjusting mode into a virtual second button adjusting mode by modifying the button signal type of the test case, thereby obtaining the target test case supporting the first button adjusting mode.
Illustratively, the method further comprises: determining a current driving mode of the vehicle to be tested; and if the current driving mode is different from the first preset driving mode, adjusting the current driving mode to the first preset driving mode through the virtual second button adjusting mode.
Alternatively, the first preset driving mode is generally the comfort mode.
It should be noted that the function of the driving mode may affect the test of the working condition and the torque function of the whole vehicle in the controller test, and the change of the driving mode may cause the functional test of other modules to fail. Therefore, it is necessary to ensure that the required driving mode is set before testing other modes to ensure the accuracy and operability of the test. The accuracy of the test result is ensured by ensuring that the current driving mode is consistent with the first preset driving mode.
Illustratively, the method further comprises: determining whether the whole vehicle torque value of the vehicle is matched with the first preset driving mode; and if the complete vehicle torque value is determined not to be matched with the first preset driving mode, resetting the first preset driving mode so as to enable the reset second preset driving mode to be matched with the complete vehicle torque value.
It should be noted that, the vehicle torque value of the vehicle is different, and the corresponding driving modes may also be different. If the torque value of the whole vehicle is not matched with the first preset driving mode, the test result is inaccurate. By resetting the first driving mode, the reset second driving mode is matched with the finished automobile torque value, and the relation between the finished automobile torque value and the matched driving mode can be accurately tested.
Illustratively, the virtual second button adjustment comprises at least one virtual adjustment button; the adjusting the current driving mode to the preset driving mode through the virtual second button adjusting mode comprises: and adjusting the current driving mode to the preset driving mode through the at least one virtual adjusting button.
It should be noted that, when the first button adjustment mode is the single-button adjustment mode, the virtual second button adjustment mode only includes one virtual adjustment button. When the first button adjusting mode is a double-button adjusting mode or a three-button adjusting mode, the virtual second button adjusting mode comprises two or three virtual adjusting buttons.
Optionally, when the second button adjustment mode is a dual-button adjustment mode, switching between different driving modes is achieved through difference of pressing times of the two virtual adjustment buttons. When the first button adjustment mode is a single-button adjustment mode or a three-button adjustment mode, the corresponding numerical value of the economy mode is 1, the corresponding numerical value of the comfort mode is 2, and the corresponding numerical value of the sport mode is 3 through two virtual adjustment buttons, such as Mod + and Mod-. Pressing Mod + once automatically adds 1 to the value corresponding to the driving mode, the upper limit is 3, pressing Mod-once automatically subtracts 1 to the value corresponding to the driving mode, and the lower limit is 1. For example, if the current driving mode is economy mode, pressing Mod + once adjusts the economy mode to comfort mode, and pressing Mod + once again adjusts the comfort mode to sport mode. Also, for example, the current driving mode is sport mode, and once Mod is pressed, the comfort mode is adjusted to economy mode.
Illustratively, the method further comprises: and if the first button adjusting mode is determined to be the same as the second button adjusting mode, testing the driving mode function of the vehicle according to the current test case corresponding to the second button adjusting mode.
It should be noted that, in the case that it is determined that the first button adjustment manner is the same as the second button adjustment manner, it is described that the test case corresponding to the second button adjustment manner may be directly applied to the vehicle to be tested. According to the current test case, the driving mode function of the vehicle to be tested can be directly tested.
Next, the test method provided by the present invention will be further explained.
It should be understood that the button adjustment modes of the driving modes may be different due to different vehicles when the related functions of the driving modes are tested. Therefore, a test engineer needs to develop a corresponding test environment and design a corresponding test case according to different driving mode button types, where the button types are the above-mentioned button adjustment manners. However, the current test cases cannot be multiplexed on other button-configured vehicle types, for example, the test cases of the two-button type cannot be multiplexed on a vehicle type configured with a single-button type or a three-button type, and for example, the test cases of the single-button type cannot be multiplexed on a vehicle type configured with a two-button type or a three-button type. As such, the workload of the test engineer is significantly increased, and the maintenance cost at a later stage is increased.
In another embodiment, the present invention provides a method of testing comprising the steps of:
step 1, the input/output interfaces of the single-button adjustment mode, the double-button adjustment mode and the three-button adjustment mode are defined in table 1.
Figure BDA0003186986710000071
TABLE 1
In table 1, the number of buttons and the names of the buttons are input. Eco denotes an economy mode button, Normal denotes a comfort mode button, and Sport mode. Each time of input, only one button of signal input, namely each time one button is pressed, the signal input is effective.
Step 2, developing a driving mode environment model: the environment model of the driving mode is constructed and processed according to different architecture modes, and the architecture of the obtained environment model is shown in fig. 2. The input interface inputs virtual Mod + and virtual Mod-, and the output interface can output the driving mode switching controlled by a single-button adjusting mode, a double-button adjusting mode and a three-button adjusting mode through the processes of button judgment, basic model construction, multiple driving mode self-adaptive control, default mode setting, torque verification and the like.
One-button and two-button modes (namely a two-button adjusting mode): the dual-button mode is used as a reference model of the test environment and is input as a virtual Mod + or Mod-button. The button can rebound and output a real level signal for the controller software test of the double-button mode.
Two and three button modes (i.e., three button adjustment mode): in this mode, a test environment model is used to convert the virtual Mod + or Mod-button into a corresponding three-button hardware button output in different driving modes.
Specifically, 1, a driving mode of the current state of the vehicle to be tested is acquired (acquired by reading a CAN message of the controller), and it is required to ensure that the driving mode defaults to a comfort Normal mode (the value is 2). If the current driving mode is a Sport mode (the numerical value is 3), the virtual Mod-button needs to be automatically operated once; if the current mode is the economy Eco mode (the value is 1), the virtual Mod + button needs to be operated automatically once. Alternatively, the value of the Sport mode may be 1, and the Normal mode is adjusted by operating the virtual Mod + button once. The value of Eco mode is 3, and the Normal mode is adjusted by operating the dummy Mod-button once.
2. Switching between driving modes and virtual buttons:
(1) pressing a virtual Mod + button once, and adding 1 to the driving mode on the basis of the previous state, wherein the maximum value is 3;
(2) the virtual Mod-button is pressed once, the driving mode is reduced by 1 on the basis of the previous state, and the minimum value is 1;
(3) the virtual button is unchanged and the driving mode maintains the value of the previous state.
Three, single button mode (i.e. single button adjustment mode): in this mode, a test environment model is used to convert the virtual Mod + or Mod-button into a hardware button output in the single-button mode. Specifically, a, acquiring a driving mode of the current state of the vehicle to be tested (acquired by reading a CAN message of the controller), and it is required to ensure that the driving mode defaults to a Normal mode (the value is 2). If the current driving mode is the Sport mode (value is 3), the virtual Mod-button needs to be automatically operated once to switch the Sport mode to the Normal mode. If the current mode is Eco mode (value is 1), the virtual Mod + button needs to be operated once automatically to switch Eco mode to Normal mode.
b. Switching between the single-button mode and the virtual button:
(a) the driving mode of the current state of the vehicle to be tested is obtained and is a comfortable mode, the virtual Mod + button does not change, and the state of the single button does not change;
(b) the driving mode of the current state of the vehicle to be tested is obtained and is an economic mode, the virtual Mod + button is pressed twice to be changed into a virtual motion mode, and a single button is automatically pressed for two times;
(c) the driving mode for acquiring the current state of the vehicle to be tested is a motion mode, the virtual Mod + button is pressed twice to be changed into a virtual motion mode, and the state of the single button is not changed.
(d) The driving mode of the current state of the vehicle to be tested is obtained and is a comfortable mode, the virtual Mod-button is not changed, and the state of the single button is not changed;
(e) the driving mode of the current state of the vehicle to be tested is obtained and is an economic mode, the virtual Mod-button is pressed twice and is changed into a virtual economic mode, and the state of a single button is not changed;
(f) the driving mode of the current state of the vehicle to be tested is obtained and is a motion mode, the virtual Mod-button is pressed twice to be changed into a virtual economy mode, and a single button is automatically pressed twice;
and step 3, setting and checking the driving mode: since the function of the driving mode influences the test of the working condition and the torque function of the whole vehicle in the controller test, the change of the driving mode can cause the functional test of other modules to be invalid. Therefore, it is necessary to ensure that the required driving mode is set before testing other modes to ensure the accuracy and operability of the test, and the specific steps are as follows:
1) setting a default driving mode: and setting a default driving mode value according to the test requirement, and comparing the current driving mode of the vehicle to be tested with the default driving mode after the vehicle is powered on. If the two are consistent, no operation is needed; if the current driving mode is larger than the default driving mode, carrying out virtual Mod-button operation according to the button type; and if the current driving mode is smaller than the default driving mode, performing virtual Mod + button operation according to the button type. It should be noted that this method is applicable to the three-button mode, and in the case of the single-button mode, the operation is performed by the virtual Mod + button or the virtual Mod-button.
2) Automatic checking of driving mode and vehicle torque: in order to quickly verify the matching between the driving mode and the vehicle torque (under the same accelerator pedal opening, the same gear and the same motor speed, the torque of the Sport mode is equal to the torque of the Normal mode and is equal to the torque of the Eco mode). And (4) according to the cyclic setting of the drive mode (Sport-Normal-Eco), correspondingly recording the integrated torque value in the corresponding mode. If the two are matched, the driving mode does not need to be adjusted; if the two are not matched, a default driving mode needs to be reset, and then the driving mode and the whole vehicle torque are verified.
And 4, multiplexing of related functional test cases and test environments of the driving mode: the relevant functional test requirements of the driving mode of the platform are analyzed, and the driving mode control of different button configurations can be realized by adopting the same virtual Mod + button and virtual Mod-button. The types of the buttons are set in the test case, after the test case is compiled, when different buttons are switched, the signal types of the buttons only need to be modified in a mapping table, the number of the buttons in the test case does not need to be changed, the driving mode is adjusted through the virtual Mod + button and the virtual Mod-button, and the test case can be completely multiplexed on different button configurations.
And configuring the input and output channels of the driving mode IO channel according to a hard wire wiring table of the controller, and mainly considering multiplexing and self-adaptive selection of pins of driving mode buttons. When different driving mode button configurations are switched, the button type of the driving mode only needs to be changed in the parameter configuration table, the number of the actual buttons does not need to be changed, and the multiplexing of the test environment is completely realized
Step 5, debugging an opening and closing ring of the self-adaptive model: after the environment model is built, debugging of an opening and closing ring is carried out, and the method comprises the following steps: (1) and performing closed-Loop connection on the test model of the driving mode and controller software, and connecting the input and output of the controller and the input and output of the HIL rack by using a hard wire In a Hardware-In-the-Loop (HIL) test.
(2) And after the model connection and integration are completed, debugging the open-close ring of the test environment according to the input test requirement.
Referring next to fig. 3, a schematic flow chart of another testing method according to an embodiment of the present invention is provided. The method comprises the following steps:
step 31: and starting. The driving mode and the button type may be input and output.
Step 32: it is determined whether the number of buttons is 2, if so, step 33 is executed, and if not, step 34 is executed.
Step 33: and judging whether the button is a single button or not, if so, executing a step 35, and if not, executing a step 36.
Step 34: the high and low voltage levels are directly output and step 37 is performed.
Step 35: the one-button mode cycle voltage is output and step 37 is performed.
Step 36: three mode voltages are output and step 37 is performed.
Step 37: default driving mode settings. The default driving mode set is typically comfort mode.
Step 38: and judging whether the test mode and the finished automobile torque value are matched with the default driving mode. If yes, the adaptive mode matching is completed and step 39 is executed, otherwise step 37 is executed.
Step 39: and (6) ending.
Referring next to fig. 4, based on the same technical concept as the above-mentioned test method, another embodiment of the present invention provides a driving pattern test apparatus, and the effect achieved by the test apparatus is similar to that achieved by the above-mentioned test method, and is not described herein again.
The test device includes: the determining module 41 is configured to determine a first button adjustment mode supported by a vehicle to be tested, where the first button adjustment mode is used to adjust a driving mode of the vehicle to be tested;
the control module 42 is configured to modify the second button adjustment mode supported by the current test case into a virtual second button adjustment mode if it is determined that the first button adjustment mode is different from the second button adjustment mode supported by the current test case, so as to obtain a target test case supporting the first button adjustment mode;
And the control module 42 is further configured to test the driving mode function of the vehicle by using the target test case.
Optionally, the button adjustment comprises at least one of: single button adjustment mode; a double-button adjustment mode; three-button adjustment mode.
Optionally, when the control module 42 is configured to modify the second button adjustment manner supported by the current test case into a virtual second button adjustment manner, and obtain a target test case supporting the first button adjustment manner, specifically configured to:
and modifying the button signal type of the second button adjusting mode in the current test case, generating a virtual second button adjusting mode, and obtaining a target test case supporting the first button adjusting mode.
Optionally, the determining module 41 is further configured to: determining a current driving mode of the vehicle to be tested; the control module 42 is further configured to: and if the current driving mode is different from the first preset driving mode, adjusting the current driving mode to the first preset driving mode through the virtual second button adjusting mode.
Optionally, the determining module 41 is further configured to: determining whether the whole vehicle torque value of the vehicle is matched with the first preset driving mode; the control module 42 is further configured to: and if the complete vehicle torque value is determined not to be matched with the first preset driving mode, resetting the first preset driving mode so as to enable the reset second preset driving mode to be matched with the complete vehicle torque value.
Optionally, the virtual second button adjustment manner includes at least one virtual adjustment button; when the control module 42 is configured to adjust the current driving mode to the preset driving mode through the virtual second button adjustment manner, specifically, to: and adjusting the current driving mode to the preset driving mode through the at least one virtual adjusting button.
Optionally, the control module 42 is further configured to: and if the first button adjusting mode is determined to be the same as the second button adjusting mode, testing the driving mode function of the vehicle according to the current test case corresponding to the second button adjusting mode.
Yet another embodiment of the present invention provides a vehicle including the driving pattern testing apparatus as described above.
The vehicle adopts the testing device, and the second button adjusting mode supported by the current testing case can be modified into the virtual second button adjusting mode, so that the target testing case supporting the first button adjusting mode is obtained, and the current testing case is reused in the testing case of the vehicle to be tested. Compared with the method for independently developing the test cases of the vehicles to be tested, the method can reduce the workload of test engineers, greatly shorten the test period of the vehicles to be tested and improve the test efficiency.
Yet another embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the driving pattern testing method as described above.
Moreover, the present disclosure may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion.
While the foregoing is directed to the preferred embodiment of the present invention, it will be appreciated by those skilled in the art that various changes and modifications may be made therein without departing from the principles of the invention as set forth in the appended claims.

Claims (10)

1. A driving pattern testing method, comprising:
determining a first button adjusting mode supported by a vehicle to be tested, wherein the first button adjusting mode is used for adjusting the driving mode of the vehicle to be tested;
if the first button adjusting mode is different from a second button adjusting mode supported by the current test case, modifying the second button adjusting mode supported by the current test case into a virtual second button adjusting mode to obtain a target test case supporting the first button adjusting mode;
and testing the driving mode function of the vehicle by adopting the target test case.
2. The method of claim 1, wherein the button adjustment comprises at least one of:
single button adjustment mode;
a double-button adjustment mode;
three-button adjustment mode.
3. The method according to claim 1, wherein the modifying the second button adjustment mode supported by the current test case into a virtual second button adjustment mode to obtain the target test case supporting the first button adjustment mode comprises:
and modifying the button signal type of the second button adjusting mode in the current test case, generating a virtual second button adjusting mode, and obtaining a target test case supporting the first button adjusting mode.
4. The method of claim 1, further comprising:
determining a current driving mode of the vehicle to be tested;
and if the current driving mode is different from the first preset driving mode, adjusting the current driving mode to the first preset driving mode through the virtual second button adjusting mode.
5. The method of claim 4, further comprising:
determining whether the whole vehicle torque value of the vehicle is matched with the first preset driving mode;
and if the complete vehicle torque value is determined not to be matched with the first preset driving mode, resetting the first preset driving mode so as to enable the reset second preset driving mode to be matched with the complete vehicle torque value.
6. The method of claim 4, wherein the virtual second button adjustment comprises at least one virtual adjustment button;
the adjusting the current driving mode to the preset driving mode through the virtual second button adjusting mode comprises:
and adjusting the current driving mode to the preset driving mode through the at least one virtual adjusting button.
7. The method of claim 1, further comprising:
and if the first button adjusting mode is determined to be the same as the second button adjusting mode, testing the driving mode function of the vehicle according to the current test case corresponding to the second button adjusting mode.
8. A driving pattern testing apparatus, characterized by comprising:
the system comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a first button adjusting mode supported by a vehicle to be tested, and the first button adjusting mode is used for adjusting the driving mode of the vehicle to be tested;
the control module is used for modifying the second button adjusting mode supported by the current test case into a virtual second button adjusting mode to obtain a target test case supporting the first button adjusting mode if the first button adjusting mode is determined to be different from the second button adjusting mode supported by the current test case;
and the control module is also used for testing the driving mode function of the vehicle by adopting the target test case.
9. A vehicle characterized by comprising the driving pattern testing device according to claim 8.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the driving pattern testing method according to any one of claims 1 to 7.
CN202110864198.8A 2021-07-29 2021-07-29 Driving mode testing method and device and vehicle Active CN114674571B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110864198.8A CN114674571B (en) 2021-07-29 2021-07-29 Driving mode testing method and device and vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110864198.8A CN114674571B (en) 2021-07-29 2021-07-29 Driving mode testing method and device and vehicle

Publications (2)

Publication Number Publication Date
CN114674571A true CN114674571A (en) 2022-06-28
CN114674571B CN114674571B (en) 2024-03-26

Family

ID=82071066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110864198.8A Active CN114674571B (en) 2021-07-29 2021-07-29 Driving mode testing method and device and vehicle

Country Status (1)

Country Link
CN (1) CN114674571B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160179092A1 (en) * 2014-12-22 2016-06-23 Lg Electronics Inc. Apparatus for switching driving modes of vehicle and method of switching between modes of vehicle
CN109496188A (en) * 2017-06-30 2019-03-19 北京嘀嘀无限科技发展有限公司 System and method for switching vehicle driving model
CN111688700A (en) * 2020-06-22 2020-09-22 中国第一汽车股份有限公司 Driving mode switching system, method and device and storage medium
CN112236348A (en) * 2019-09-03 2021-01-15 北京航迹科技有限公司 Driving mode switching system and method in automatic driving
CN112622912A (en) * 2020-12-22 2021-04-09 北京百度网讯科技有限公司 Test device and method for automatic driving vehicle
CN114661021A (en) * 2021-04-02 2022-06-24 北京新能源汽车股份有限公司 Hardware-in-loop test method and device for controller

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160179092A1 (en) * 2014-12-22 2016-06-23 Lg Electronics Inc. Apparatus for switching driving modes of vehicle and method of switching between modes of vehicle
CN109496188A (en) * 2017-06-30 2019-03-19 北京嘀嘀无限科技发展有限公司 System and method for switching vehicle driving model
CN112236348A (en) * 2019-09-03 2021-01-15 北京航迹科技有限公司 Driving mode switching system and method in automatic driving
CN111688700A (en) * 2020-06-22 2020-09-22 中国第一汽车股份有限公司 Driving mode switching system, method and device and storage medium
CN112622912A (en) * 2020-12-22 2021-04-09 北京百度网讯科技有限公司 Test device and method for automatic driving vehicle
CN114661021A (en) * 2021-04-02 2022-06-24 北京新能源汽车股份有限公司 Hardware-in-loop test method and device for controller

Also Published As

Publication number Publication date
CN114674571B (en) 2024-03-26

Similar Documents

Publication Publication Date Title
CN107145140B (en) Automatic test system and test method for CAN interface of vehicle-mounted electronic control unit
US9201764B2 (en) Method and device for creating and testing a control unit program
CN100375059C (en) Automatic testing system of person digital aid cell phone function and method thereof
US10551807B2 (en) Method for connecting an input/output interface of a tester equipped for control unit development
CN111221325B (en) Hardware-in-loop test system and method
CN111064628B (en) CAN bus automatic test system
CN104483959A (en) Fault simulation and test system
CN109726061B (en) SoC chip verification method
CN112068530A (en) ECU (electronic control Unit) automatic testing method, system, storage medium and device
JP5270666B2 (en) System and method for simulating vehicle driving
CN106292647B (en) A kind of test method and device of electric machine controller operating condition
CN107918585B (en) Method and device for testing software program
CN114674571A (en) Driving mode testing method and device and vehicle
CA2556116C (en) Automotive scan tools with quick boot method
CN113133041A (en) Method and device for testing vehicle-to-vehicle communication function in dynamic interval train control vehicle
KR20060120080A (en) Simulation system and computer-implemented method for simulation and verifying a control system
CN111413891A (en) PTC controller hardware-in-loop simulation system
CN114661021A (en) Hardware-in-loop test method and device for controller
CN113985849A (en) Method for writing DTC (digital control channel) read ECU (electronic control unit) version of automatic clear-reading whole vehicle based on CANoe software
CN114898617A (en) Automobile electronic demonstration system and operation method thereof
CN109426235B (en) Tester for control system
US10268625B2 (en) Signal path verification device
CN111400160B (en) Code verification method and device and vehicle
CN116955205A (en) Automatic testing method and device for electronic drive-by-wire gear system
CN112069756A (en) Programmable logic verification architecture and implementation method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant