Method, device and processor for testing response time of vehicle control system
By obtaining the trigger time of the controller receiving the control message and the driving time of the test equipment voltage signal stabilizing to the target voltage in the vehicle control system, the problem of inaccurate response time testing is solved, and a more accurate description of response performance is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA FAW CO LTD
- Filing Date
- 2023-06-27
- Publication Date
- 2026-07-24
Smart Images

Figure CN116679674B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle control technology, and more specifically, to a method, apparatus, and processor for testing the response time of a vehicle control system. Background Technology
[0002] Currently, dual-battery vehicles are common. Dual-battery controllers have multiple electrical signals and multiple network input / output signals. When testing the response time of a vehicle's control system, the time it takes for the battery voltage at the back end of the controller to rise from 0V to 12V is usually considered, and this time is used as the response time of the vehicle's control system. However, since this time only considers the time at the back end of the controller and does not take into account the input response time at the front end of the controller, using this time as the response time of the vehicle's control system to describe the overall response performance of the vehicle's control system is inaccurate.
[0003] There is currently no effective solution to the technical problem of low accuracy in the response time of the control system of the aforementioned vehicles. Summary of the Invention
[0004] This invention provides a method, apparatus, and processor for testing the response time of a vehicle control system, thereby addressing at least the technical problem of low accuracy in the response time of a vehicle control system.
[0005] According to one aspect of the invention, a method for testing the response time of a vehicle control system is provided. The method may include: in response to the completion of power supply to the vehicle's controller and the ignition switch of the vehicle being closed, a control transceiver sends a control message to the controller, wherein the control message is used to control the closure of the vehicle's drive switch; acquiring the trigger time at which the controller receives the control message; in response to the closure of the vehicle's drive switch, acquiring the drive time for the voltage signal of the test device to stabilize to a target voltage, wherein the drive time and the trigger time are on the same time axis, and the drive switch is connected in series with the test device; and determining the response time of the control system based on the trigger time and the drive time.
[0006] Optionally, obtaining the trigger time for the controller to receive the control message includes: determining the time point when the signal transceiver sends the control message to the controller as the zero point of the time axis; and determining the time difference between the time point on the time axis corresponding to the time point when the controller receives the control message and the zero point as the trigger time.
[0007] Optionally, in response to the closing of the vehicle's drive switch, the driving time for the voltage signal of the test device to stabilize to the target voltage is obtained, including: in response to the closing of the vehicle's drive switch, acquiring the voltage signal of the test device at each moment to obtain the mapping relationship between the time point and the voltage signal; in response to the voltage signal being greater than the voltage threshold, determining whether the voltage signal has stabilized to the target voltage; in response to the voltage signal stabilizing to the target voltage, determining the time point corresponding to the voltage signal based on the mapping relationship; and determining the time difference between the time point corresponding to the voltage signal and the zero point on the time axis as the driving time.
[0008] Optionally, determining whether the voltage signal has stabilized to the target voltage in response to the voltage signal being greater than a voltage threshold includes: determining the derivative value between the voltage signal and time based on the voltage signal at any two time points; determining that the voltage signal has stabilized to the target voltage in response to the derivative value being less than a reference value; and determining that the voltage signal has not stabilized to the target voltage in response to the derivative value being not less than the reference value.
[0009] Optionally, the response time of the vehicle control system is determined based on the trigger time and the drive time, including: determining the absolute value of the difference between the trigger time and the drive time as the response time of the vehicle control system.
[0010] Optionally, before the control signal transceiver sends a control message to the controller, the method further includes: zeroing the voltage signal of the test equipment, wherein the zeroing operation is used to indicate that the voltage signal of the test equipment is adjusted to zero.
[0011] According to one aspect of the present invention, a test apparatus for the response time of a vehicle control system is provided. The apparatus may include: a control unit, configured to send a control message to the controller via a control signal transceiver in response to the completion of power supply to the vehicle controller and the ignition switch of the vehicle being closed, wherein the control message is used to control the closure of the vehicle's drive switch; a first acquisition unit, configured to acquire the trigger time at which the controller receives the control message; a second acquisition unit, configured to acquire the drive time during which the voltage signal of the test device stabilizes to a target voltage in response to the closure of the vehicle's drive switch, wherein the drive time and the trigger time are on the same time axis, and the drive switch is connected in series with the test device; and a determination unit, configured to determine the response time of the control system based on the trigger time and the drive time.
[0012] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored program, wherein, when the program is run by a processor, it controls the device where the storage medium is located to execute any of the methods in the embodiments of the present invention.
[0013] According to another aspect of the present invention, a processor is also provided. The processor is used to run a program, wherein the program, when running, performs the method of any one of the embodiments of the present invention.
[0014] According to another aspect of the present invention, a vehicle is also provided. This vehicle is used to perform the method of any one of the embodiments of the present invention.
[0015] In this embodiment of the invention, in response to the completion of power supply to the vehicle controller and the ignition switch of the vehicle being closed, the control signal transceiver sends a control message to the controller, wherein the control message is used to control the closure of the vehicle's drive switch; the trigger time of the controller receiving the control message is obtained; in response to the closure of the vehicle's drive switch, the drive time for the voltage signal of the test device to stabilize to the target voltage is obtained, wherein the drive time and the trigger time are on the same time axis, and the drive switch and the test device are connected in series; based on the trigger time and the drive time, the response time of the control system is determined. That is to say, in this embodiment of the invention, the trigger time of the controller receiving the control message and the drive time for the voltage signal of the test device to stabilize to the target voltage are on the same time axis. The response time of the control system is determined by the trigger time and the drive time, which not only considers the drive time of the back end of the vehicle's control system, but also the trigger time of the front end of the vehicle's control system. Based on this, the determined response time of the vehicle's control system is more accurate. Using the determined response time of the vehicle's control system, the response performance of the vehicle's control system can be described more accurately, improving the accuracy of the determined response time of the vehicle's control system and solving the technical problem of low accuracy of the response time of the vehicle's control system. Attached Figure Description
[0016] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this invention, illustrate exemplary embodiments of the invention and are used to explain the invention, but do not constitute an undue limitation of the invention. In the drawings:
[0017] Figure 1 This is a flowchart of a method for testing the response time of a vehicle control system according to an embodiment of the present invention;
[0018] Figure 2 This is a schematic diagram of a vehicle control system according to an embodiment of the present invention;
[0019] Figure 3 This is a schematic diagram of a test apparatus for the response time of a vehicle control system according to an embodiment of the present invention. Detailed Implementation
[0020] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0021] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0022] Example 1
[0023] According to an embodiment of the present invention, a method for testing the response time of a vehicle control system is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0024] The following describes the test method for the response time of the vehicle control system according to an embodiment of the present invention.
[0025] Figure 1 This is a flowchart of a method for testing the response time of a vehicle control system according to an embodiment of the present invention, as shown below. Figure 1 As shown, the method may include the following steps:
[0026] In step S101, in response to the completion of power supply to the vehicle controller and the ignition switch of the vehicle being closed, the control signal transceiver sends a control message to the controller.
[0027] In the technical solution provided in step S101 of the present invention, the vehicle controller can be the vehicle's electronic control unit (ECU). The vehicle's main power supply can output a 12V voltage to power the vehicle controller. When the vehicle controller is powered on and the vehicle's ignition switch is closed, the control transceiver can send a control message to the controller. The control message is used to control the vehicle's drive switch to close. The transceiver can be a protocol controller, such as a Controller Area Network (CAN) transceiver.
[0028] In this embodiment, the positive terminal of the vehicle's main power supply is connected to the vehicle's controller via a connecting cable, and the negative terminal of the main power supply is grounded. When the main power supply outputs a voltage of 12V, the constant power supply to the vehicle's controller is completed. If the vehicle's ignition switch is closed, the controller's control function is activated. At this time, the control transceiver can be controlled to send control messages to the controller. The vehicle's ignition switch can be the vehicle's ON position switch.
[0029] Step S102: Obtain the trigger time for the controller to receive control messages.
[0030] In the technical solution provided in step S102 of the present invention, there is a time interval between the signal transceiver sending a control message to the controller and the controller receiving the control message. This time interval is the trigger time for the controller to receive the control message. Based on this, the trigger time for the controller to receive the control message can be obtained.
[0031] In this embodiment, when the vehicle's ignition switch is closed, the controller's control function is activated. At this time, the signal transceiver and data acquisition unit can be started. The time when the signal transceiver sends a control message to the controller is taken as the zero point of the time axis. The data acquisition unit can monitor the time when the controller receives the control message through the CAN bus and take the time point corresponding to this time point on the time axis as the trigger time for the controller to receive the control message. The trigger time can be represented by T1, which can be 2s or 5s, without specific limitations.
[0032] Step S103: In response to the closing of the vehicle's drive switch, acquire the drive time during which the voltage signal of the test equipment stabilizes to the target voltage.
[0033] In the technical solution provided in step S103 of the present invention, when the ignition switch of the vehicle is closed and the function of the vehicle controller is activated, the vehicle's transceiver can send a control message to the controller. The control message is used to control the closing of the vehicle's drive switch. When the vehicle's drive switch is closed, the driving time for the voltage signal of the test device to stabilize to the target voltage can be obtained. The test device can be a light-emitting diode (LED) indicator.
[0034] In this embodiment, after the controller's control function is activated and the controller receives the control message, the controller can output high and low levels on two pins through its internal circuitry to control the vehicle's drive switch to close. After the vehicle's drive switch closes, the vehicle's main power supply can power the test equipment. After receiving the main power supply, the voltage signal of the test equipment will gradually increase from 0V to 12V. As described in step S102 above, the time point when the transceiver sends the control message to the controller is the zero point of the time axis. Based on this, the voltage signals at both ends of the test equipment can be collected. When the voltage signals at both ends of the test equipment stabilize to the target voltage of 12V, the time point when the voltage signal stabilizes to the target voltage is recorded. The time interval between the corresponding time point on the time axis and the zero point is determined as the driving time for the voltage signal of the test equipment to stabilize to the target voltage. This driving time can be represented by T2, which can be 8s or 10s, without specific limitations.
[0035] Step S104: Determine the response time of the control system based on the trigger time and drive time.
[0036] In the technical solution provided by step S104 of the present invention, after obtaining the trigger time based on step S102 and the drive time based on step S103, the response time of the control system can be determined by using the trigger time and the drive time.
[0037] In this embodiment, the trigger time represents the time when the controller receives the control message, and the drive time represents the time when the voltage signal of the test device stabilizes to the target voltage. The trigger time is the time interval between the point on the time axis corresponding to the time when the controller receives the control message and the zero point on the time axis. Since the controller only controls the drive switch to close and supply power to the test device after receiving the control message, the voltage signal of the test device rises from 0V to 12V. This process is the response time of the control system. The trigger time is the time when the controller receives the control message, which is also the input response time of the control system's front end. Therefore, the response time of the control system can be determined by subtracting the trigger time from the drive time. For example, the response time of the control system can be determined using the following formula.
[0038] ΔT = |T2 - T1|
[0039] Where ΔT can be used to represent the response time of the control system, T2 can be used to represent the drive time, and T1 can be used to represent the trigger time.
[0040] It should be noted that steps S101 to S104 above can be implemented by a host computer.
[0041] In steps S101 to S104 of the present invention, in response to the completion of power supply to the vehicle controller and the ignition switch of the vehicle being closed, the control signal transceiver sends a control message to the controller, wherein the control message is used to control the closing of the vehicle's drive switch; the trigger time for the controller to receive the control message is obtained; in response to the closing of the vehicle's drive switch, the drive time for the voltage signal of the test equipment to stabilize to the target voltage is obtained, wherein the drive time and the trigger time are on the same time axis, and the drive switch and the test equipment are connected in series; based on the trigger time and the drive time, the response time of the control system is determined. In other words, in this embodiment of the invention, the trigger time when the controller receives the control message and the driving time when the voltage signal of the test equipment stabilizes to the target voltage are on the same time axis. The response time of the control system is determined by the trigger time and the driving time. This not only considers the driving time of the back end of the vehicle control system, but also the input response time of the front end of the vehicle control system. Based on this, the determined response time of the vehicle control system is more accurate. The determined response time of the vehicle control system can be used to describe the response performance of the vehicle control system more accurately, thereby improving the accuracy of the determined response time of the vehicle control system and solving the technical problem of low accuracy of the response time of the vehicle control system.
[0042] The method described in this embodiment will be further described below.
[0043] As an optional embodiment, step S102, obtaining the trigger time of the controller receiving the control message, includes: determining the time point when the signal transceiver sends the control message to the controller as the zero point of the time axis; and determining the time difference between the time point on the time axis corresponding to the time point when the controller receives the control message and the zero point as the trigger time.
[0044] In this embodiment, a time axis can be established, and the time point when the signal transceiver sends a control message to the controller can be determined as the zero point of the time axis. Based on this, the time point when the controller receives the control message can be monitored in real time, and the time difference between the corresponding time point on the time axis and the zero point can be determined. After determining the time difference, the time difference can be determined as the trigger time when the controller receives the control message.
[0045] For example, assuming the transceiver sends a control message to the controller at 1:00:00, then 1:00:00 can be taken as the zero point of the time axis. Based on this, assuming the controller receives the control message at 1:00:05, since 1:00:05 corresponds to 0:00:05 on the time axis, it can be determined that the trigger time for the controller to receive the control message is 5 seconds. This is only an exemplary example and does not limit the embodiments of this application.
[0046] As an optional embodiment, step S103, in response to the closing of the vehicle's drive switch, acquires the driving time for the voltage signal of the test device to stabilize to the target voltage, including: in response to the closing of the vehicle's drive switch, acquiring the voltage signal of the test device at each moment to obtain the mapping relationship between the time point and the voltage signal; in response to the voltage signal being greater than a voltage threshold, determining whether the voltage signal has stabilized to the target voltage; in response to the voltage signal stabilizing to the target voltage, determining the time point corresponding to the voltage signal based on the mapping relationship; and determining the time difference between the time point corresponding to the voltage signal and the zero point on the time axis as the driving time.
[0047] In this embodiment, since the drive switch is connected to the test equipment, when the vehicle's drive switch is closed, the vehicle's main power supply can supply power to the test equipment. The voltage signal of the test equipment will gradually increase from 0V to 12V. Based on this, the voltage signal at both ends of the test equipment can be acquired in real time by a data acquisition device, and the voltage signal of the test equipment acquired at each moment can be recorded to obtain the mapping relationship between the time point and the voltage signal. When the voltage signal at both ends of the test equipment is greater than the voltage threshold, it can be further determined whether the voltage signal at both ends of the test equipment has stabilized to the target voltage. The voltage threshold can be 11V, which is not specifically limited here, and the target voltage is 12V.
[0048] Once the voltage signal of the test equipment stabilizes to the target voltage, the time point at which the voltage signal of the test equipment stabilizes to the target voltage can be determined based on the mapping relationship between the recorded time points and the voltage signal. Then, the time difference between the corresponding time point on the time axis and the zero point on the time axis can be determined, and this time difference can be determined as the driving time of the test equipment.
[0049] Following the example above, assuming 1:00:00 is the zero point on the time axis, if the test device stabilizes to the target voltage in 1:00:30, since 1:00:30 corresponds to 0:00:30 on the time axis, that is, the test device stabilizes to the target voltage in 30 seconds. This is only an exemplary example and does not limit the embodiments of this application.
[0050] As an optional embodiment, determining whether a voltage signal has stabilized to a target voltage in response to a voltage signal greater than a voltage threshold includes: determining the derivative of the voltage signal with respect to time based on the voltage signals at any two time points; determining that the voltage signal has stabilized to the target voltage in response to a derivative value less than a reference value; and determining that the voltage signal has not stabilized to the target voltage in response to a derivative value not less than a reference value.
[0051] In this embodiment, when the voltage signal of the test device is greater than the voltage threshold, it indicates that the voltage signal of the test device is about to stabilize to the target voltage. At this time, the derivative value between the voltage signal and time can be determined by the voltage signal at any two time points after the voltage signal stabilizes to the voltage threshold, and then the voltage signal is determined to be stable to the target voltage based on the derivative value.
[0052] For example, since there is a mapping relationship between time and voltage signals, a coordinate system can be established with time as the horizontal axis and voltage as the vertical axis. A curve showing the change of voltage signal over time can be plotted on this coordinate system. When the voltage signal of the testing device exceeds a voltage threshold, the derivative between the voltage signal and time can be determined using the voltage signals at any two time points. For example, these two arbitrary time points can be T. n T m The voltage signals corresponding to any two time points are V, respectively. n V m Based on this, the derivative of voltage with respect to time can be determined by the following formula.
[0053]
[0054] Here, K represents the derivative of voltage with respect to time. According to this method, the derivative of voltage with respect to time can be determined at any two time points after the voltage signal of the test device exceeds the voltage threshold. Then, it is further determined whether the derivative is less than a reference value. If the derivative is less than the reference value, it indicates that the derivative is close to zero, and the voltage hardly changes with time. In this case, the voltage signal of the test device is considered to have stabilized to the target voltage. Conversely, if the derivative is not less than the reference value, it indicates that the voltage is still changing with time, and the voltage signal is considered not to have stabilized to the target voltage. The reference value can be preset; for example, it can be 0.00001, without specific limitations.
[0055] As an optional embodiment, step S104, determining the response time of the vehicle control system based on the trigger time and the drive time, includes: determining the absolute value of the difference between the trigger time and the drive time as the response time of the vehicle control system.
[0056] In this embodiment, after determining the trigger time when the controller receives the control message and the voltage signal of the test equipment stabilizes to the target voltage, the absolute value of the difference between the trigger time and the drive time can be determined as the response time of the vehicle's control system.
[0057] ΔT = |T2 - T1|
[0058] Where ΔT can be used to represent the response time of the control system, T2 can be used to represent the drive time, and T1 can be used to represent the trigger time.
[0059] As an optional embodiment, before the control signal transceiver sends a control message to the controller, the method further includes: zeroing the voltage signal of the test equipment, wherein the zeroing operation is used to indicate that the voltage signal of the test equipment is adjusted to zero.
[0060] In this embodiment, before the control signal transceiver sends a control message to the controller, the voltage signal of the test equipment can be zeroed to ensure that after the test equipment receives power from the main power supply, its voltage signal rises from 0V. The zeroing operation is used to indicate that the voltage signal of the test equipment is adjusted to 0V.
[0061] In the above steps, the trigger time when the controller receives the control message and the driving time when the voltage signal of the test equipment stabilizes to the target voltage are on the same time axis. The response time of the control system is determined by the trigger time and the driving time. This not only considers the driving time of the back end of the vehicle control system but also the input response time of the front end of the vehicle control system. Based on this, the determined response time of the vehicle control system is more accurate. The determined response time of the vehicle control system can be used to describe the response performance of the vehicle control system more accurately, thereby improving the accuracy of the determined response time of the vehicle control system and solving the technical problem of low accuracy of the response time of the vehicle control system.
[0062] Example 2
[0063] The technical solutions of the embodiments of the present invention will be illustrated below with reference to preferred embodiments.
[0064] With the development of automotive electrification and intelligentization technologies, there are many dual-battery models. The system response time is an important indicator for describing vehicle start-up performance. In vehicle testing, if the response time of the vehicle's control system can be accurately tested, on the one hand, the individual performance of the controller can be accurately grasped, and on the other hand, a closed-loop feedback can be formed with the vehicle design end, which can improve the response performance of the vehicle control system.
[0065] Currently, when testing the response time of a vehicle's control system, the driving time for the battery voltage at the back end of the vehicle's controller to rise from 0V to 12V is usually considered, and this driving time is used as the response time of the vehicle's control system. However, since this driving time only considers the driving time at the back end of the vehicle's controller and does not take into account the input response time at the front end of the vehicle's controller, it is not accurate to use this driving time as the response time of the vehicle's control system to describe the overall response performance of the vehicle's control system.
[0066] Therefore, to solve the above problems, this invention provides a method for testing the response time of a vehicle control system. When power is supplied to the vehicle controller and the ignition switch is closed, a control transceiver sends a control message to the controller, wherein the control message is used to control the closure of the vehicle's drive switch. The trigger time for the controller to receive the control message is obtained. In response to the closure of the vehicle's drive switch, the drive time for the voltage signal of the test device to stabilize to the target voltage is obtained, wherein the drive time and the trigger time are on the same time axis, and the drive switch and the test device are connected in series. Based on the trigger time and the drive time, the response time of the control system is determined. In this embodiment of the invention, not only the drive time of the back end of the vehicle control system is considered, but also the input response time of the front end of the vehicle control system. Based on this, the determined response time of the vehicle control system is more accurate. Using the determined response time of the vehicle control system, the response performance of the vehicle control system can be described more accurately, improving the accuracy of the determined response time and solving the technical problem of low accuracy in the response time of the vehicle control system.
[0067] Figure 2 This is a schematic diagram of a vehicle control system according to an embodiment of the present invention, such as... Figure 2 As shown, the vehicle's control system may include: a system input terminal 201, a test terminal 202, and a host computer 203. The system input terminal includes a main power supply 2011, a controller 2012, and a drive switch 2013. The positive terminal of the main power supply 2011 can be connected to pin 1 of the controller 2012. The positive terminal of the main power supply 2011 can also be connected to pin 2 of the controller 202 via an ON switch. The negative terminal of the main power supply 2011 is grounded, and it can also be connected to pin 3 of the controller 2012 via a connecting wire. Pin 4 of the controller 2012 can output a high level, and pin 5 of the controller 2012 can output a low level to control the drive switch 2013 to close. Pins 6 and 7 of the controller 2012 are left floating and not connected to any components.
[0068] The test terminal 202 may include: a CAN transceiver 2021, a data acquisition unit 2022, and indicator lights 2023. The CAN transceiver 2021 is connected to pin 8 of the controller 2012 via a CAN-H line and to pin 9 of the controller 2012 via a CAN-L line. The CAN transceiver 2021 can send control messages to the controller 2012 via the CAN-H and CAN-L lines. Additionally, as... Figure 2As shown, the CAN transceiver can also be connected to the data acquisition unit 2022 via the CAN-H and CAN-L lines to acquire the trigger time of the control message received by the controller 2012. The CH1+ interface of the data acquisition unit 2022 is connected to the voltage signal acquisition point A1 of the indicator light 2023, and the CH1- interface of the data acquisition unit 2022 is connected to the voltage signal acquisition point A2 of the indicator light 2023 to acquire the voltage signal of the indicator light 2023.
[0069] The host computer 203 runs a software program to control the CAN transceiver 2021 to send control messages to the controller. It can also collect the trigger time when the controller 2012 receives the control message, as well as the drive time when the voltage signal of the indicator light 2023 stabilizes to the target voltage. The collected trigger time and drive time are processed to obtain the response time of the vehicle's control system.
[0070] The method for determining the response time of a vehicle's control system in this embodiment of the invention is described below.
[0071] After the main power supply outputs 12V, the controller's constant power supply is complete. Closing the ON switch powers on the controller, and the host computer starts the CAN transceiver and data acquisition unit. The CAN transceiver then sends control messages to the controller. The data acquisition unit can determine the trigger time T1 when the controller receives the control message. The time it takes for the controller to receive the control message is the front-end input response time of the vehicle's control system. After starting the CAN transceiver and data acquisition unit, the voltage signal across the indicator light can be adjusted to zero volts so that the voltage signal rises from 0V after receiving main power. The data acquisition unit can collect the voltage signal across the indicator light and obtain the drive time T2 when the voltage signal stabilizes at 12V. Then, the response time of the vehicle's control system can be determined using the following formula.
[0072] ΔT = |T2 - T1|
[0073] Where ΔT can be used to represent the response time of the control system, T2 can be used to represent the drive time, and T1 can be used to represent the trigger time.
[0074] In this embodiment, the trigger time when the controller receives the control message and the driving time when the voltage signal of the test equipment stabilizes to the target voltage are on the same time axis. The response time of the control system is determined by the trigger time and the driving time. This not only considers the driving time of the back end of the vehicle control system but also the input response time of the front end of the vehicle control system. Based on this, the determined response time of the vehicle control system is more accurate. The determined response time of the vehicle control system can be used to describe the response performance of the vehicle control system more accurately, thereby improving the accuracy of the determined response time of the vehicle control system and solving the technical problem of low accuracy of the response time of the vehicle control system.
[0075] Example 3
[0076] According to an embodiment of the present invention, a testing apparatus for the response time of a vehicle control system is provided. It should be noted that this testing apparatus for the response time of a vehicle control system can be used to execute a testing method for the response time of a vehicle control system as described in Embodiment 1.
[0077] Figure 3 This is a schematic diagram of a test apparatus for the response time of a vehicle control system according to an embodiment of the present invention. Figure 3 As shown, a test device 300 for the response time of a vehicle control system may include: a control unit 301, a first acquisition unit 302, a second acquisition unit 303, and a determination unit 304.
[0078] Control unit 301 is configured to send a control message to the controller in response to the completion of power supply to the vehicle controller and the ignition switch of the vehicle being closed, wherein the control message is used to control the closure of the vehicle drive switch.
[0079] The first acquisition unit 302 is used to acquire the trigger time for the controller to receive control messages.
[0080] The second acquisition unit 303 is used to acquire the driving time when the voltage signal of the test equipment stabilizes to the target voltage in response to the closing of the vehicle's drive switch, wherein the driving time and the triggering time are on the same time axis, and the drive switch is connected in series with the test equipment.
[0081] The determination unit 304 is used to determine the response time of the control system based on the trigger time and the drive time.
[0082] Optionally, the first acquisition unit 302 further includes: a sending module, used to determine the time point at which the signal transceiver sends a control message to the controller as the zero point of the time axis; and a determining module, used to determine the time difference between the time point on the time axis corresponding to the time point at which the controller receives the control message and the zero point as the trigger time.
[0083] Optionally, the second acquisition unit 303 further includes: an acquisition module, used to acquire the voltage signal of the test device at each moment in response to the closing of the vehicle's drive switch, and obtain the mapping relationship between the time point and the voltage signal; a second determination module, used to determine whether the voltage signal has stabilized to the target voltage in response to the voltage signal being greater than the voltage threshold; a third determination module, used to determine the time point corresponding to the voltage signal based on the mapping relationship in response to the voltage signal stabilizing to the target voltage; and a fourth determination module, used to determine the time difference between the time point corresponding to the voltage signal and the zero point on the time axis as the drive time.
[0084] Optionally, the second determining module is further configured to: determine the derivative value between the voltage signal and time based on the voltage signals at any two time points; determine that the voltage signal has stabilized to the target voltage in response to the derivative value being less than a reference value; and determine that the voltage signal has not stabilized to the target voltage in response to the derivative value being not less than a reference value.
[0085] Optionally, the determining unit 304 further includes a fifth determining module, which is further configured to determine the absolute value of the difference between the trigger time and the driving time as the response time of the vehicle control system.
[0086] Optionally, the device 300 is further configured to zero-calibrate the voltage signal of the test equipment before the control signal transceiver sends a control message to the controller, wherein the zero-calibration operation is used to indicate that the voltage signal of the test equipment is adjusted to zero.
[0087] In this embodiment, the trigger time when the controller receives the control message and the driving time when the voltage signal of the test equipment stabilizes to the target voltage are on the same time axis. The response time of the control system is determined by the trigger time and the driving time. This takes into account not only the driving time of the back end of the vehicle control system but also the trigger time of the front end of the vehicle control system. Based on this, the determined response time of the vehicle control system is more accurate. The determined response time of the vehicle control system can be used to describe the response performance of the vehicle control system more accurately, thereby improving the accuracy of the determined response time of the vehicle control system and solving the technical problem of low accuracy of the response time of the vehicle control system.
[0088] Example 4
[0089] According to an embodiment of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored program, wherein, when the program is run by a processor, it controls the device where the readable storage medium is located to execute the test method for the response time of the vehicle control system in Embodiment 1.
[0090] Example 5
[0091] According to an embodiment of the present invention, a processor is also provided for running a program, wherein the program executes the method for testing the response time of the vehicle control system in Embodiment 1.
[0092] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0093] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0094] In the several embodiments provided by this invention, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed can be through some interfaces; the indirect coupling or communication connection of units or modules can be electrical or other forms.
[0095] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0096] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0097] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0098] The above are merely preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for testing the response time of a vehicle control system, characterized in that, include: In response to the completion of power supply to the vehicle controller and the ignition switch of the vehicle being closed, the control transceiver sends a control message to the controller, wherein the control message is used to control the closure of the vehicle's drive switch; The trigger time for the controller to receive the control message is obtained, wherein the trigger time is the time interval between the time point on the time axis corresponding to the time when the controller receives the control message and the zero point on the time axis, and the zero point on the time axis is the time when the signal transceiver sends the control message to the controller; In response to the closing of the vehicle's drive switch, the driving time for the voltage signal of the test equipment to stabilize to the target voltage is obtained, wherein the driving time and the triggering time are on the same time axis, and the drive switch is connected in series with the test equipment; The response time of the control system is determined based on the trigger time and the drive time.
2. The method according to claim 1, characterized in that, The step of obtaining the trigger time for the controller to receive the control message includes: The time point at which the signal transceiver sends the control message to the controller is determined as the zero point of the time axis; The time difference between the time point on the time axis corresponding to the time point when the controller receives the control message and the zero point is determined as the trigger time.
3. The method according to claim 1, characterized in that, The driving time for the voltage signal of the test equipment to stabilize to the target voltage in response to the closing of the drive switch of the vehicle includes: In response to the closing of the vehicle's drive switch, the voltage signal of the test device is acquired at each moment to obtain the mapping relationship between the time point and the voltage signal; In response to the voltage signal being greater than a voltage threshold, it is determined whether the voltage signal has stabilized to the target voltage; In response to the voltage signal stabilizing to the target voltage, the time point corresponding to the voltage signal is determined based on the mapping relationship; The time difference between the time point corresponding to the voltage signal and the zero point on the time axis is determined as the driving time.
4. The method according to claim 3, characterized in that, The step of determining whether the voltage signal has stabilized to the target voltage in response to the voltage signal being greater than a voltage threshold includes: Based on the voltage signals at any two time points, determine the derivative value between the voltage signal and the time; In response to the derivative value being less than the reference value, it is determined that the voltage signal has stabilized to the target voltage; In response to the derivative value being not less than the reference value, it is determined that the voltage signal has not stabilized to the target voltage.
5. The method according to claim 1, characterized in that, Determining the response time of the vehicle control system based on the trigger time and the driving time includes: The absolute value of the difference between the trigger time and the driving time is determined as the response time of the vehicle control system.
6. The method according to claim 1, characterized in that, Before the control signal transceiver sends a control message to the controller, the method further includes: The voltage signal of the test equipment is zeroed out, wherein the zeroing operation is used to indicate that the voltage signal of the test equipment is adjusted to zero.
7. A testing device for the response time of a vehicle control system, characterized in that, include: A control unit is configured to send a control message to the controller in response to the completion of power supply to the vehicle's controller and the ignition switch of the vehicle being closed, wherein the control message is used to control the closure of the vehicle's drive switch. The first acquisition unit is used to acquire the trigger time when the controller receives the control message, wherein the trigger time is the time interval between the time point corresponding to the time when the controller receives the control message on the time axis and the zero point on the time axis, and the zero point on the time axis is the time when the signal transceiver sends the control message to the controller. The second acquisition unit is used to acquire the driving time when the voltage signal of the test equipment stabilizes to the target voltage in response to the closing of the drive switch of the vehicle, wherein the driving time and the triggering time are on the same time axis, and the drive switch is connected in series with the test equipment; A determining unit is used to determine the response time of the control system based on the trigger time and the drive time.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein when the program is run by a processor, it controls the device in which the storage medium is located to perform the method of any one of claims 1 to 6.
9. A processor, characterized in that, The processor is used to run a program, wherein the program executes the method according to any one of claims 1 to 6 when it runs.
10. A vehicle, characterized in that, The vehicle is used to perform the method according to any one of claims 1 to 6.