Testing method and apparatus for controller of air spring of vehicle, and device and medium
By automatically adjusting the height adjustment valve of the controller and changing the sensor height using a stepper motor, the test error problem caused by manual adjustment in the prior art is solved, and the automated testing and accuracy of the vehicle air spring controller is achieved.
Patent Information
- Application Number
- PCT/CN2024/143468
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-01-03
- Filing Date
- 2024-12-27
- Publication Date
- 2025-07-10
AI Technical Summary
In the prior art, functional testing of vehicle air spring controller requires manual adjustment of sensor height and sending CAN signals, which makes it impossible for testers to manually adjust the sensor height according to the opening and closing of the five-connected valve, resulting in inaccurate testing.
The controller obtains vehicle height data and target height data from the air spring, changes the switching state of the height adjustment valve based on these data, and adjusts the sensor height using the stepper motor. The first upper computer determines whether the height data difference is within the threshold range and automatically confirms the normal state of the controller.
Automatic controller testing is implemented, avoiding errors caused by manual adjustments and ensuring the accuracy and reliability of test results.
Smart Images

Figure CN2024143468_10072025_PF_FP_ABST
Abstract
Description
Test method, device, equipment and medium for vehicle air spring controller
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority and benefits of patent application No. 202410014507.6 filed with the State Intellectual Property Office of China on January 3, 2024, and the entire text of which is incorporated herein by reference. Technical Field
[0003] The present invention relates to the field of vehicle technology, and in particular to a method for testing a controller of a vehicle air spring, a device for testing a controller of a vehicle air spring, an electronic device, and a computer-readable medium. Background Art
[0004] Before vehicle assembly, the air spring controller must undergo a functional test to determine whether it can successfully control the air spring to adjust vehicle height. A vehicle air spring system consists of at least two host computers (CANAPES), a controller, sensors, and a five-valve linkage. The two host computers are each connected to the controller, which in turn is connected to the sensors and the five-valve linkage. One of the host computers collects the five-valve's switch status information and sends it to the controller. The sensor collects vehicle height data and sends it to the controller. The controller controls the opening and closing of the five-valve linkage based on the vehicle height data and the target vehicle height, inflating and deflating the five-valve linkage to adjust the vehicle's height. The other host computer sends CAN (Controller Area Network) signals to the controller, which contain vehicle driving data. The controller can only open and close the five-valve linkage when the vehicle driving data is within a reasonable range.
[0005] In the test bench environment used for controller function testing, the opening and closing of the five-valve linkage valve cannot directly change the vehicle height. To conduct the test, the tester needs to manually change the sensor height according to the opening and closing of the five-valve linkage valve to change the vehicle height recorded by the sensor. In addition, the tester needs to manually control another host computer to send a CAN signal to the controller. However, this operation may result in the tester being unable to accurately manually adjust the sensor height according to the opening and closing of the five-valve linkage valve. Summary of the Invention
[0006] The embodiments of the present invention provide a testing method, device, equipment and medium for the controller of a vehicle air spring to solve the problem that the tester needs to manually operate to change the sensor height and manually control the upper computer to send a CAN signal to the controller, which may cause the tester to be unable to accurately manually adjust the sensor height according to the opening and closing of the five-valve valve.
[0007] An embodiment of the present invention discloses a method for testing a controller for a vehicle air spring, which is applied to a test system for the controller of a vehicle air spring. The test system for the controller of a vehicle air spring includes at least an air spring, a stepper motor, and a first host computer communicatively connected to the air spring. The air spring includes at least a controller, a sensor, and a height adjustment valve. The controller is used to control the height adjustment valve. The stepper motor is connected to the sensor. The sensor is used to collect vehicle height data. The method includes:
[0008] The controller obtains the vehicle height data and preset target height data from the air spring;
[0009] The controller changes the on-off state of the height adjustment valve based on the height data of the vehicle and the target height data;
[0010] The first host computer obtains the switch state information of the height adjustment valve from the air spring, and based on the switch state information, changes the height of the sensor by operating the stepping motor;
[0011] When the height data of the vehicle acquired by the controller from the sensor is equal to the target height data, the controller stops changing the switching state of the height adjustment valve;
[0012] The first host computer obtains the vehicle height data and the target height data from the air spring, and determines whether a difference between the vehicle height data and the target height data is within a preset threshold range;
[0013] When the difference between the height data of the vehicle and the target height data is within a preset threshold range, the first host computer confirms that the controller of the air spring is normal.
[0014] Optionally, the air spring further includes a second host computer; the second host computer is communicatively connected to the controller; and the method further includes:
[0015] The first host computer obtains driving data from the air spring and determines whether the driving data is within a preset data range;
[0016] When the driving data is within a preset data range, the first host computer sends a first instruction to the second host computer; the first instruction is used to instruct the second host computer to send the target height data to the controller;
[0017] The second host computer receives the first instruction, and sends the target height data to the controller based on the first instruction.
[0018] Optionally, the step of obtaining driving data further includes:
[0019] The second host computer collects the driving data in the controller and sends the driving data to the first host computer;
[0020] The first host computer receives the driving data sent by the second host computer.
[0021] Optionally, the air spring further includes a third host computer; the third host computer is communicatively connected to the controller; the step of changing the switching state of the height adjustment valve based on the vehicle height data and the target height data further includes:
[0022] When the driving data is not within a preset data range, the first host computer sends a second instruction to the third host computer; the second instruction is used to instruct the third host computer to send the preset driving data within the data range to the controller;
[0023] The third host computer receives the second instruction, and sends the preset driving data within the data range to the controller based on the second instruction;
[0024] When the controller receives the driving data within the data range, the controller changes the open / close state of the height adjustment valve based on the height data of the vehicle and the target height data.
[0025] Optionally, the method further includes:
[0026] When the controller receives the driving data within the data range, the first host computer determines whether the switch state of the height adjustment valve has changed based on the switch state information;
[0027] When the switch state of the height adjustment valve changes, the first host computer confirms that the controller of the air spring is normal.
[0028] Optionally, the step of obtaining the vehicle height data and the target height data further includes:
[0029] The second host computer collects the vehicle height data and the target height data in the controller, and sends the vehicle height data and the target height data to the first host computer;
[0030] The first host computer receives the vehicle height data and the target height data sent by the second host computer.
[0031] Optionally, the controller further stores control parameters; and the method further includes:
[0032] When the difference between the vehicle height data and the target height data is not within a preset threshold range and / or the switch state of the height regulating valve is not changed, the first host computer confirms that the control parameter is wrong;
[0033] The first host computer sends a third instruction to the second host computer; the third instruction is used to instruct the second host computer to send preset correct control parameters to the controller;
[0034] The second host computer receives the third instruction and sends preset correct control parameters to the controller based on the third instruction.
[0035] An embodiment of the present invention further provides a test device for a vehicle air spring controller, which is applied to a test system for a vehicle air spring controller; the test system for the vehicle air spring controller includes at least an air spring, a stepper motor, and a first host computer communicatively connected to the air spring; the air spring includes at least a controller, a sensor, and a height adjustment valve; the controller is used to control the height adjustment valve; the stepper motor is connected to the sensor; the sensor is used to collect vehicle height data; the device includes:
[0036] an acquisition module, configured to enable the controller to acquire the vehicle height data and preset target height data from the air spring;
[0037] a changing module, configured to enable the controller to change the switching state of the height adjustment valve based on the vehicle height data and the target height data;
[0038] a first switch state information acquisition module, configured to enable the first host computer to acquire switch state information of the height adjustment valve from the air spring, and based on the switch state information, change the height of the sensor by operating the stepping motor;
[0039] a stop changing module, configured to cause the controller to stop changing the switch state of the height regulating valve when the height data of the vehicle acquired by the controller from the sensor is equal to the target height data;
[0040] a vehicle height data and target height data acquisition module, configured to enable the first host computer to acquire the vehicle height data and the target height data from the air spring, and to determine whether a difference between the vehicle height data and the target height data is within a preset threshold range;
[0041] The first confirmation module is configured to, when a difference between the height data of the vehicle and the target height data is within a preset threshold range, confirm by the first host computer that the controller of the air spring is normal.
[0042] Optionally, the air spring further includes a second host computer; the second host computer is communicatively connected to the controller; the device further includes:
[0043] a driving data acquisition module, configured to enable the first host computer to acquire driving data from the air spring and determine whether the driving data is within a preset data range;
[0044] a first instruction sending module, configured to enable the first host computer to send a first instruction to the second host computer when the driving data is within a preset data range; the first instruction is used to instruct the second host computer to send the target height data to the controller;
[0045] The first instruction receiving module is used to enable the second host computer to receive the first instruction and send the target height data to the controller based on the first instruction.
[0046] Optionally, the driving data acquisition module further includes:
[0047] a driving data collection submodule, configured to enable the second host computer to collect the driving data in the controller and send the driving data to the first host computer;
[0048] The driving data receiving submodule is used to enable the first host computer to receive the driving data sent by the second host computer.
[0049] Optionally, the air spring further includes a third host computer; the third host computer is communicatively connected to the controller; the changing module further includes:
[0050] a second instruction sending submodule, configured to cause the first host computer to send a second instruction to the third host computer when the driving data is not within a preset data range; the second instruction is configured to instruct the third host computer to send the preset driving data within the data range to the controller;
[0051] a second instruction receiving submodule, configured to enable the third host computer to receive the second instruction, and to send preset driving data within the data range to the controller based on the second instruction;
[0052] A changing submodule is configured to change the switching state of the height regulating valve based on the vehicle height data and the target height data when the controller receives the driving data within the data range.
[0053] Optionally, the device further comprises:
[0054] a judgment module, configured to, when the controller receives the driving data within the data range, determine, by the first host computer, whether the switch state of the height adjustment valve has changed based on the switch state information;
[0055] The second confirmation module is configured to enable the first host computer to confirm that the controller of the air spring is normal when the switch state of the height adjustment valve changes.
[0056] Optionally, the vehicle height data and target height data acquisition module further includes:
[0057] a sending submodule, configured to enable the second host computer to collect the vehicle height data and the target height data in the controller, and send the vehicle height data and the target height data to the first host computer;
[0058] A receiving submodule is used for the first host computer to receive the vehicle height data and the target height data sent by the second host computer.
[0059] Optionally, the controller further stores control parameters; and the device further comprises:
[0060] a third confirmation module, configured to, when a difference between the vehicle height data and the target height data is not within a preset threshold range and / or the switch state of the height regulating valve is unchanged, confirm by the first host computer that the control parameter is incorrect;
[0061] a third instruction sending module, configured to enable the first host computer to send a third instruction to the second host computer; the third instruction is configured to instruct the second host computer to send preset correct control parameters to the controller;
[0062] The third instruction receiving module is used to enable the second host computer to receive the third instruction and send preset correct control parameters to the controller based on the third instruction.
[0063] An embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
[0064] The memory is used to store computer programs;
[0065] The processor is configured to implement the method described in the embodiment of the present invention when executing the program stored in the memory.
[0066] The embodiments of the present invention further disclose one or more computer-readable media having instructions stored thereon. When executed by one or more processors, the processors are enabled to perform the method according to the embodiments of the present invention.
[0067] An embodiment of the present invention further provides a test system for a vehicle air spring controller, the test system comprising at least an air spring, a stepper motor, and a first host computer communicatively connected to the air spring; the air spring comprising at least a controller, a sensor, and a height adjustment valve; the controller being configured to control the height adjustment valve; the stepper motor being connected to the sensor; and the sensor being configured to collect vehicle height data.
[0068] The vehicle air spring controller test system further includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
[0069] The memory is used to store computer programs;
[0070] The processor is configured to implement a method for testing a controller of a vehicle air spring when executing a program stored in the memory, the method comprising:
[0071] The controller obtains the vehicle height data and preset target height data from the air spring;
[0072] The controller changes the on-off state of the height adjustment valve based on the height data of the vehicle and the target height data;
[0073] The first host computer obtains the switch state information of the height adjustment valve from the air spring, and based on the switch state information, changes the height of the sensor by operating the stepping motor;
[0074] When the height data of the vehicle acquired by the controller from the sensor is equal to the target height data, the controller stops changing the switching state of the height adjustment valve;
[0075] The first host computer obtains the vehicle height data and the target height data from the air spring, and determines whether a difference between the vehicle height data and the target height data is within a preset threshold range;
[0076] When the difference between the height data of the vehicle and the target height data is within a preset threshold range, the first host computer confirms that the controller of the air spring is normal.
[0077] The embodiments of the present invention include the following advantages:
[0078] In an embodiment of the present invention, a controller obtains vehicle height data and target height data from an air spring, and the controller changes the switch state of a height adjustment valve based on the vehicle height data and the target height data; a first host computer obtains the switch state information of the height adjustment valve from the air spring, and based on the switch state information, changes the sensor height by running a stepper motor; when the vehicle height data obtained by the controller from the sensor is equal to the target height data, the controller stops changing the switch state of the height adjustment valve; the first host computer obtains the vehicle height data and target height data from the air spring, and determines whether the difference between the vehicle height data and the target height data is within a preset threshold range; when the difference between the vehicle height data and the target height data is within a preset threshold range, the first host computer confirms that the controller of the air spring is normal. In an embodiment of the present invention, the first host computer can drive the stepper motor to rotate based on the switch state information of the height adjustment valve to change the height of the sensor, thereby avoiding errors caused by the staff manually adjusting the height of the sensor according to the switch state of the height adjustment valve. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] FIG1 is a schematic diagram of a bench test environment for a vehicle air spring controller provided by the prior art;
[0080] FIG2 is a flowchart of a method for testing a controller of a vehicle air spring provided in an embodiment of the present invention;
[0081] FIG3 is a schematic diagram of a sensor provided by an embodiment of the present invention;
[0082] FIG4 is a schematic diagram of a stepping motor provided in an embodiment of the present invention;
[0083] 5 is a schematic diagram of a test result output by a first host computer according to an embodiment of the present invention;
[0084] 6 is a structural block diagram of a test system for a vehicle air spring controller provided by an embodiment of the present invention;
[0085] 7 is a structural block diagram of a test device for a vehicle air spring controller provided in an embodiment of the present invention;
[0086] FIG8 is a block diagram of an electronic device provided in an embodiment of the present invention;
[0087] FIG9 is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0088] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0089] To facilitate understanding of the technical solutions and technical effects of the embodiments of the present application, the prior art of the present application will be briefly described below.
[0090] Referring to Figure 1, a schematic diagram of a bench test environment for a vehicle air spring controller provided by the prior art is shown. The bench environment used in the prior art for functional testing of vehicle air spring controllers includes two host computers, an ECU (Electronic Control Unit) controller, a Jiaode airbag valve, a compressor, and an air tank. Number 101 in Figure 1 refers to the host computer, number 102 refers to the ECU controller, number 103 refers to the Jiaode airbag valve, number 106 refers to the air tank, and numbers 304-307 refer to the Jiaode airbag valve. The rectangle above the Jiaode airbag valve represents a sensor.
[0091] Both host computers are connected to the ECU controller, which is also connected to the sensors and the Jiaode airbag valve. One host computer can collect the on / off status information of the Jiaode airbag valve and send it to the ECU controller. The sensor can collect the vehicle's height data and send it to the ECU controller. The ECU controller can control the opening and closing of the Jiaode airbag valve based on the vehicle's height data and target height data, and use a compressor or air tank to inflate and deflate the Jiaode airbag valve. The other host computer can send a CAN signal to the ECU controller, which includes the vehicle's driving data. The ECU controller can only control the opening and closing of the Jiaode airbag valve if the vehicle's driving data is within a reasonable range.
[0092] The opening and closing of the J-D airbag valve does not directly change the vehicle's height. To conduct tests, testers need to manually adjust the sensor's height based on the opening and closing of the J-D airbag valve, thereby changing the vehicle's height recorded by the sensor. Furthermore, testers need to manually control another host computer to send CAN signals to the ECU controller. However, this operation may prevent testers from accurately adjusting the sensor's height based on the opening and closing of the J-D airbag valve.
[0093] 2 , a flowchart of a method for testing a vehicle air spring controller provided in an embodiment of the present invention is shown, which is applied to a test system for a vehicle air spring controller; the test system for the vehicle air spring controller includes at least an air spring, a stepper motor, and a first host computer communicatively connected to the air spring; the air spring includes at least a controller, a sensor, and a height adjustment valve; the controller is used to control the height adjustment valve; the stepper motor is connected to the sensor; the sensor is used to collect vehicle height data; and the method may specifically include the following steps:
[0094] Step 201: The controller obtains the vehicle height data and preset target height data from the air spring;
[0095] In an embodiment of the present invention, a test system for a controller of a vehicle air spring may include a first host computer, an air spring, and a stepper motor. The air spring includes at least a controller, a second host computer, a third host computer, a sensor, and a height regulating valve. Among them, the sensor is used to collect the height of the vehicle. The height regulating valve in the test system of the controller of the vehicle air spring can realize the inflation and deflation of the height regulating valve by opening and closing the valve, but the inflation and deflation of the height regulating valve cannot change the height of the vehicle. In an embodiment of the present invention, the height regulating valve may be a five-link valve. The controller of the air spring may be integrated on a VMC (vehicle central coordinated motion controller) integrated circuit board; before the VMC integrated circuit board is assembled on the vehicle, the test system for the controller of the vehicle air spring provided by the embodiment of the present invention may be used to detect whether the controller is normal.
[0096] The first host computer is in communication with the controller in the air spring, the second host computer, and the third host computer. The first host computer is also in communication with a stepper motor, which is connected to a sensor. The first host computer can control the rotation of the stepper motor, thereby changing the height of the sensor and, therefore, the vehicle height data collected by the sensor. The controller in the air spring is in communication with the second host computer, the third host computer, the sensor, and the height adjustment valve. The controller can control the on / off state of the height adjustment valve.
[0097] In an embodiment of the present invention, a controller can obtain vehicle height data and target height data from the air spring. In one specific example, a sensor is communicatively coupled to the controller, and the sensor can transmit the collected vehicle height data to the controller. A second host computer can transmit the target height data to the air spring to change the air spring mode. Depending on the air spring mode, the controller needs to adjust different target height data.
[0098] Step 202 , the controller changes the switch state of the height adjustment valve based on the vehicle height data and the target height data;
[0099] In an embodiment of the present invention, the controller can change the opening and closing of the height adjustment valve based on the vehicle height data sent by the sensor and the target height data sent by the second host computer, thereby realizing the inflation and deflation of the height adjustment valve.
[0100] Step 203: the first host computer obtains the switch status information of the height adjustment valve from the air spring, and based on the switch status information, changes the height of the sensor by operating the stepping motor;
[0101] In the embodiment of the present invention, the second host computer in the air spring can collect the switch status information of the height regulating valve, and send the switch status information of the height regulating valve to the first host computer.
[0102] In this embodiment of the present invention, the inflation and deflation of the height control valve caused by changes in the height control valve's on / off state does not change the vehicle's height. To test the vehicle's air spring controller, the first host computer can control the rotation of the stepper motor based on the height control valve's on / off state, thereby changing the sensor's height. In this embodiment of the present invention, changes in the sensor's height also change the vehicle's height data collected by the sensor.
[0103] Step 204 , when the vehicle height data acquired by the controller from the sensor is equal to the target height data, the controller stops changing the switch state of the height adjustment valve;
[0104] In an embodiment of the present invention, the controller can change the switching state of the height adjustment valve based on the target height data and the vehicle height data, and the first host computer can control the rotation of the stepper motor according to the switching state information of the height adjustment valve, thereby changing the vehicle height data collected by the sensor.
[0105] When the vehicle height data sent by the sensor received by the controller is equal to the target height data, the controller can stop changing the switch state of the height adjustment valve, and the first host computer will also stop controlling the rotation of the stepper motor. The height of the sensor will no longer change, which is equivalent to the height of the vehicle no longer changing.
[0106] Step 205: the first host computer obtains the vehicle height data and the target height data from the air spring, and determines whether the difference between the vehicle height data and the target height data is within a preset threshold range;
[0107] In an embodiment of the present invention, when the controller stops changing the on / off state of the height adjustment valve and the first host computer stops controlling the rotation of the stepper motor, the first host computer can obtain vehicle height data from the air spring. The vehicle height data is the vehicle height data collected by the sensor when the controller stops changing the on / off state of the height adjustment valve. In one specific example, the controller in the air spring stores vehicle height data received from the sensor when the controller stops changing the on / off state of the height adjustment valve. The second host computer can collect this height data and transmit it to the first host computer.
[0108] The first host computer can calculate the difference between the vehicle height data collected by the sensor and the target height data when the controller stops changing the switch state of the height adjustment valve, and determine whether the difference is within a preset threshold range. The preset threshold range refers to an error value that is unrelated to the internal logic control of the controller.
[0109] Step 206 : When the difference between the height data of the vehicle and the target height data is within a preset threshold range, the first host computer confirms that the controller of the air spring is normal.
[0110] In an embodiment of the present invention, if the controller stops changing the switching state of the height adjustment valve, and the difference between the height data of the vehicle collected by the sensor and the target height data is within a preset threshold range, the first host computer confirms that the controller of the air spring is normal. If the controller stops changing the switching state of the height adjustment valve, and the difference between the height data of the vehicle collected by the sensor and the target height data is not within a preset threshold range, the first host computer confirms that the controller of the air spring is not in a normal state. In a specific example, after the second host computer sends the target height data to the controller, the controller does not change the air spring mode, and the target height data stored in the controller is not changed to the target height data sent by the second host computer. When the controller stops changing the switching state of the height adjustment valve, the difference between the height data of the vehicle collected by the sensor and the target height data exceeds the preset threshold range, the first host computer confirms that the controller of the air spring is not in a normal state, and the first host computer can output a failed test result.
[0111] In an embodiment of the present invention, a controller obtains vehicle height data and target height data from an air spring, and the controller changes the switch state of a height adjustment valve based on the vehicle height data and the target height data; a first host computer obtains the switch state information of the height adjustment valve from the air spring, and based on the switch state information, changes the sensor height by running a stepper motor; when the vehicle height data obtained by the controller from the sensor is equal to the target height data, the controller stops changing the switch state of the height adjustment valve; the first host computer obtains the vehicle height data from the air spring, and determines whether the difference between the vehicle height data and the target height data is within a preset threshold range; when the difference between the vehicle height data and the target height data is within a preset threshold range, the first host computer confirms that the controller of the air spring is normal. In an embodiment of the present invention, the first host computer can drive the stepper motor to rotate based on the switch state information of the height adjustment valve to change the height of the sensor, thereby avoiding errors caused by the staff manually adjusting the height of the sensor according to the switch state of the height adjustment valve.
[0112] Furthermore, in any of the above embodiments, the air spring further includes a second host computer; the second host computer is communicatively connected to the controller; and the method further includes:
[0113] Sub-step S11, the first host computer obtains driving data from the air spring and determines whether the driving data is within a preset data range;
[0114] Sub-step S12: when the driving data is within a preset data range, the first host computer sends a first instruction to the second host computer; the first instruction is used to instruct the second host computer to send the target height data to the controller;
[0115] In sub-step S13 , the second host computer receives the first instruction and sends the target height data to the controller based on the first instruction.
[0116] In an embodiment of the present invention, the air spring further includes a second host computer, which is communicatively connected to the controller and the first host computer. The controller in the air spring stores vehicle driving data. The first host computer can obtain the vehicle driving data stored in the controller. The vehicle driving data may include the vehicle's lateral acceleration, longitudinal acceleration, steering angle, and speed. In a specific example, the second host computer can collect the vehicle driving data stored in the controller and send the collected vehicle driving data to the first host computer.
[0117] In an embodiment of the present invention, the first host computer can determine whether the vehicle's driving data is within a preset data range. If the vehicle's driving data exceeds the preset data range, the air spring controller may adjust the vehicle's height by controlling the inflation and deflation of the height adjustment valve, potentially posing a driving safety risk. Therefore, the preset data range refers to a safe driving data range within which the air spring controller adjusts the vehicle's height while the vehicle is driving.
[0118] In an embodiment of the present invention, when the vehicle's driving data is within a preset data range, the first host computer can send a first instruction to the second host computer, instructing the second host computer to send target height data to the controller to change the air spring mode. Different air spring modes require different target height data to be adjusted by the controller. Based on the vehicle height data transmitted by the sensor and the target height data transmitted by the second host computer, the controller can adjust the opening and closing of the height control valve, thereby inflating and deflating the height control valve.
[0119] Furthermore, in any of the above embodiments, the sub-step S11 further includes:
[0120] Sub-step S21, the second host computer collects the driving data in the controller and sends the driving data to the first host computer;
[0121] Sub-step S22: the first host computer receives the driving data sent by the second host computer.
[0122] In an embodiment of the present invention, the air spring further includes a second host computer, which is communicatively connected to the controller and the first host computer. The second host computer can collect vehicle driving data stored in the controller and transmit the collected vehicle driving data to the first host computer. The first host computer can receive the driving data transmitted by the second host computer and determine whether the driving data is within a preset data range. Only when the driving data is within the preset data range can the controller change the on / off state of the height adjustment valve.
[0123] The driving data may include: the vehicle's lateral acceleration, longitudinal acceleration, steering angle, and vehicle speed, etc. The preset data range refers to the safe driving data range within which the air spring controller adjusts the vehicle height during driving.
[0124] Furthermore, in any of the above embodiments, the air spring further includes a third host computer; the third host computer is in communication with the controller; and step 102 further includes:
[0125] In sub-step S31, when the driving data is not within a preset data range, the first host computer sends a second instruction to the third host computer; the second instruction is used to instruct the third host computer to send the preset driving data within the data range to the controller;
[0126] Sub-step S32, the third host computer receives the second instruction, and sends the preset driving data within the data range to the controller based on the second instruction;
[0127] Sub-step S33 : When the controller receives the driving data within the data range, the controller changes the on-off state of the height adjustment valve based on the vehicle height data and the target height data.
[0128] In an embodiment of the present invention, the air spring further includes a third host computer. The third host computer is communicatively connected to the first host computer and the controller. If the driving data stored in the controller is not within a preset data range, the controller cannot change the on / off state of the height adjustment valve. The first host computer can send a first instruction to the third host computer, instructing the third host computer to send a CAN signal to the controller. The CAN signal stores driving data within the preset data range.
[0129] The third host computer can receive the first instruction and send a CAN signal to the controller based on the first instruction. When the controller receives the CAN signal, the controller can change the switching state of the height adjustment valve based on the vehicle height data and the target height data to achieve inflation and deflation of the height adjustment valve. The vehicle height data is collected by the sensor and sent to the controller. The target height data is sent to the controller by the second host computer. The second host computer can send the target height data to the controller to change the air spring mode. Different air spring modes require different target height data to be adjusted by the controller.
[0130] In an embodiment of the present invention, the third host computer can send a CAN signal to the controller based on the instruction of the first host computer, thereby avoiding the situation where the tester needs to manually control the third host computer to send a CAN signal to the controller while manually changing the sensor height according to the opening and closing of the height adjustment valve, resulting in the tester being unable to accurately manually adjust the height of the sensor according to the opening and closing of the height adjustment valve.
[0131] Furthermore, in any of the above embodiments, the method further includes:
[0132] Sub-step S41, when the controller receives the driving data within the data range, the first host computer determines whether the switch state of the height adjustment valve has changed based on the switch state information;
[0133] Sub-step S42: When the switch state of the height adjustment valve changes, the first host computer confirms that the controller of the air spring is normal.
[0134] In an embodiment of the present invention, the second host computer is communicatively connected to the first host computer and can collect switch status information of the height regulating valve and send it to the first host computer.
[0135] When the controller receives a CAN signal, it can change the on / off state of the height adjustment valve based on the vehicle's height data and target height data. The CAN signal includes driving data within the safe driving data range. When the controller receives the CAN signal, the first host computer can determine whether the on / off state of the height adjustment valve has changed based on the on / off state information of the height adjustment valve sent by the second host computer. If the on / off state of the height adjustment valve has changed, the first host computer confirms that the air spring controller is normal. If the on / off state of the height adjustment valve has not changed, the first host computer confirms that the air spring controller is not in a normal state.
[0136] Furthermore, in any of the above embodiments, step 205 further includes:
[0137] Sub-step S51, the second host computer collects the vehicle height data and the target height data in the controller, and sends the vehicle height data and the target height data to the first host computer;
[0138] In sub-step S52 , the first host computer receives the vehicle height data and the target height data sent by the second host computer.
[0139] In an embodiment of the present invention, the second host computer is communicatively connected to the first host computer and the controller respectively. The second host computer can collect the vehicle height data and target height data stored in the controller, and send the vehicle height data and target height data to the first host computer. The first host computer can receive the vehicle height data and target height data. In a specific example, the controller stores the vehicle height data collected by the sensor when the controller stops changing the switching state of the height adjustment valve. The second host computer can collect the vehicle height data and send it to the first host computer. The first host computer can receive the vehicle height data and calculate the difference between the vehicle height data collected by the sensor and the target height data when the controller stops changing the switching state of the height adjustment valve, and judge whether the difference is within a preset threshold range to judge whether the controller of the air spring is normal.
[0140] Furthermore, in any of the above embodiments, the controller further stores control parameters; and the method further includes:
[0141] Sub-step S61, when the difference between the vehicle height data and the target height data is not within a preset threshold range and / or the switch state of the height adjustment valve is unchanged, the first host computer confirms that the control parameter is wrong;
[0142] Sub-step S62: the first host computer sends a second instruction to the second host computer; the second instruction is used to instruct the second host computer to send preset correct control parameters to the controller;
[0143] In sub-step S63 , the second host computer receives the second instruction and sends preset correct control parameters to the controller based on the second instruction.
[0144] In an embodiment of the present invention, control parameters are also stored in the controller, and the second host computer can calibrate the control parameters in the controller. The controller can control the opening and closing of the height adjustment valve based on the control parameters to realize the inflation and deflation of the height adjustment valve. When the controller stops changing the on-off state of the height adjustment valve, if the difference between the vehicle height data collected by the sensor and the target height data is not within the preset threshold range, the first host computer confirms that the controller of the air spring is not in a normal state, and the first host computer confirms that the control parameters in the controller are wrong. The first host computer sends a second instruction to the second host computer to instruct the second host computer to send the correct control parameters to the controller.
[0145] When the controller receives a CAN signal that includes driving data within a safe driving data range, the controller can control the height adjustment valve to change its on / off state based on the driving data within the safe driving data range. If the on / off state of the height adjustment valve does not change, the first host computer determines that the air spring controller is not in a normal state and that the control parameters in the controller are incorrect. The first host computer can then send a second instruction to the second host computer, instructing the second host computer to send the correct control parameters to the controller.
[0146] Figure 3 shows a schematic diagram of a sensor provided by an embodiment of the present invention. The structure indicated by 2 in Figure 3 is a connecting rod, and the structure indicated by 1 in Figure 3 is a cylindrical structure for inserting the connecting rod. The sensor can be disconnected from the connecting rod, and the structure below the connecting rod in Figure 3 can be discarded to reduce resistance encountered during sensor movement.
[0147] Referring to Figure 4, a schematic diagram of a stepper motor provided by an embodiment of the present invention is shown. The stepper motor can rotate by step length, by angle, by circle, and by length. The stepper motor can also control the direction of rotation to achieve forward and reverse rotation. In an embodiment of the present invention, the stepper motor is connected to the sensor; the controller can control the rotation of the stepper motor to change the height of the sensor. The protruding structure indicated by number 1 in Figure 4 can be inserted into the cylindrical structure indicated by number 1 in Figure 3 to achieve the connection between the stepper motor and the sensor. If there is damping between the protruding structure indicated by number 1 in Figure 4 and the cylindrical structure indicated by number 1 in Figure 3, which affects the rotation of the stepper motor, a sealant can be used to fix the protruding structure indicated by number 1 in Figure 4 and the cylindrical structure indicated by number 1 in Figure 3 together.
[0148] In an embodiment of the present invention, a vehicle air spring controller test system may include four sensors and four stepper motors connected to the sensors. Each sensor is connected to one stepper motor. The four sensors are secured together with an acrylic plate, and the four stepper motors are also secured together with an acrylic plate.
[0149] 5 , a schematic diagram of a test result output by a first host computer according to an embodiment of the present invention is shown;
[0150] In this embodiment of the present invention, the first host computer can output the test results and test success rate output by the test system of the vehicle air spring controller. Test results include success, failure, skipped, and not executed, which avoids errors caused by manual recording of test results by users and provides convenience for users.
[0151] In one specific example, after the second host computer sends the target height data to the controller, the controller does not change the air spring mode, and the target height data stored in the controller does not change to the target height data sent by the second host computer. When the controller stops changing the on / off state of the height adjustment valve, the difference between the vehicle height data collected by the sensor and the target height data exceeds a preset threshold. The first host computer determines that the air spring controller is not in a normal state and outputs a test result of failure.
[0152] It should be noted that for the sake of simplicity, the method embodiments are described as a series of actions. However, those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0153] 6 , there is shown a structural block diagram of a test system for a vehicle air spring controller according to an embodiment of the present invention.
[0154] The test system for the controller of the vehicle air spring may include a first host computer, an air spring and a stepper motor. The air spring may include an ECU controller, a second host computer, a third host computer, a sensor and a five-valve. The five-valve is a height adjustment valve. The first host computer is respectively connected to the ECU controller, the second host computer, the third host computer and the stepper motor, and the stepper motor is connected to the sensor. The first host computer stores a program written by the user using Python. Python is an object-oriented interpreted computer programming language. The first host computer uses the program to automate the rotation of the stepper motor and the transmission of CAN signals. The sensor is used to collect the vehicle's height data and implement step 101 to send the vehicle's height data to the ECU controller.
[0155] The second host computer can collect the switch status information of the five-valve. The second host computer can also implement step 102 to collect the vehicle's driving data and target height data stored in the ECU controller, and implement step 106 to send the vehicle's driving data, target height data and the switch status information of the five-valve to the first host computer. The first host computer can determine whether the vehicle's driving data is within a reasonable range. When the vehicle's driving data is not within the preset data range, the first host computer can implement step 108 to send a second instruction to the third host computer to instruct the third host computer to implement step 107 to send a CAN signal to the ECU controller. The CAN signal includes driving data within the safe driving data range. When the ECU controller receives the CAN signal, the ECU controller can change the switch status of the five-valve.
[0156] The first host computer can implement step 105 to send an instruction to the second host computer, instructing the second host computer to implement step 103 to send target height data to the ECU controller to change the air spring mode. The ECU controller can implement step 104 to change the opening and closing of the five-valve linkage based on the vehicle height data sent by the sensor and the target height data sent by the second host computer, thereby realizing inflation and deflation of the five-valve linkage.
[0157] The first host computer can implement step 109 to control the rotation of the stepper motor according to the switching state of the five-valve, thereby changing the height of the sensor. When the height data of the vehicle sent by the sensor received by the ECU controller is equal to the target height data, the ECU controller can stop changing the switching state of the five-valve, and the first host computer will also stop controlling the rotation of the stepper motor. When the ECU controller stops changing the switching state of the five-valve and the first host computer stops controlling the rotation of the stepper motor, the first host computer can obtain the height data of the vehicle collected by the sensor when the ECU controller stops changing the switching state of the five-valve from the air spring. The first host computer can calculate the difference between the height data of the vehicle collected by the sensor and the target height data when the ECU controller stops changing the switching state of the five-valve, and determine whether the difference is within a preset threshold range. If the difference is within the preset threshold range, the first host computer confirms that the ECU controller of the air spring is normal.
[0158] 7 , a block diagram of a test device for a vehicle air spring controller provided in an embodiment of the present invention is shown, which is applied to a test system for a vehicle air spring controller; the test system for the vehicle air spring controller includes at least an air spring, a stepper motor, and a first host computer communicatively connected to the air spring; the air spring includes at least a controller, a sensor, and a height adjustment valve; the controller is used to control the height adjustment valve; the stepper motor is connected to the sensor; the sensor is used to collect vehicle height data; and specifically may include the following modules:
[0159] An acquisition module 701 is configured to enable the controller to acquire the vehicle height data and preset target height data from the air spring;
[0160] a changing module 702, configured to enable the controller to change the switch state of the height adjustment valve based on the vehicle height data and the target height data;
[0161] a first switch state information acquisition module 703, configured to enable the first host computer to acquire switch state information of the height adjustment valve from the air spring, and to change the height of the sensor by operating the stepping motor based on the switch state information;
[0162] a stop changing module 704, configured to, when the height data of the vehicle acquired by the controller from the sensor is equal to the target height data, stop the controller from changing the switch state of the height regulating valve;
[0163] a vehicle height data and target height data acquisition module 705, configured to enable the first host computer to acquire the vehicle height data and the target height data from the air spring, and determine whether a difference between the vehicle height data and the target height data is within a preset threshold range;
[0164] The first confirmation module 706 is configured to, when a difference between the height data of the vehicle and the target height data is within a preset threshold range, confirm by the first host computer that the controller of the air spring is normal.
[0165] In an optional embodiment of the present invention, the air spring further includes a second host computer; the second host computer is communicatively connected to the controller; the device further includes:
[0166] a driving data acquisition module, configured to enable the first host computer to acquire driving data from the air spring and determine whether the driving data is within a preset data range;
[0167] a first instruction sending module, configured to enable the first host computer to send a first instruction to the second host computer when the driving data is within a preset data range; the first instruction is used to instruct the second host computer to send the target height data to the controller;
[0168] The first instruction receiving module is used to enable the second host computer to receive the first instruction and send the target height data to the controller based on the first instruction.
[0169] In an optional embodiment of the present invention, the driving data acquisition module further includes:
[0170] a driving data collection submodule, configured to enable the second host computer to collect the driving data in the controller and send the driving data to the first host computer;
[0171] The driving data receiving submodule is used to enable the first host computer to receive the driving data sent by the second host computer.
[0172] In an optional embodiment of the present invention, the air spring further includes a third host computer; the third host computer is in communication with the controller; the changing module further includes:
[0173] a second instruction sending submodule, configured to cause the first host computer to send a second instruction to the third host computer when the driving data is not within a preset data range; the second instruction is configured to instruct the third host computer to send the preset driving data within the data range to the controller;
[0174] a second instruction receiving submodule, configured to enable the third host computer to receive the second instruction, and to send preset driving data within the data range to the controller based on the second instruction;
[0175] A changing submodule is configured to change the switching state of the height regulating valve based on the vehicle height data and the target height data when the controller receives the driving data within the data range.
[0176] In an optional embodiment of the present invention, the device further includes:
[0177] a judgment module, configured to, when the controller receives the driving data within the data range, determine, by the first host computer, whether the switch state of the height adjustment valve has changed based on the switch state information;
[0178] The second confirmation module is configured to enable the first host computer to confirm that the controller of the air spring is normal when the switch state of the height adjustment valve changes.
[0179] In an optional embodiment of the present invention, the vehicle height data and target height data acquisition module further includes:
[0180] a sending submodule, configured to enable the second host computer to collect the vehicle height data and the target height data in the controller, and send the vehicle height data and the target height data to the first host computer;
[0181] A receiving submodule is used for the first host computer to receive the vehicle height data and the target height data sent by the second host computer.
[0182] In an optional embodiment of the present invention, the controller further stores control parameters; and the device further comprises:
[0183] a third confirmation module, configured to, when a difference between the vehicle height data and the target height data is not within a preset threshold range and / or the switch state of the height regulating valve is unchanged, confirm by the first host computer that the control parameter is incorrect;
[0184] a third instruction sending module, configured to enable the first host computer to send a third instruction to the second host computer; the third instruction is configured to instruct the second host computer to send preset correct control parameters to the controller;
[0185] The third instruction receiving module is used to enable the second host computer to receive the third instruction and send preset correct control parameters to the controller based on the third instruction.
[0186] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0187] In addition, an embodiment of the present invention further provides an electronic device, as shown in FIG8 , including a processor 801 , a communication interface 802 , a memory 803 , and a communication bus 804 , wherein the processor 801 , the communication interface 802 , and the memory 803 communicate with each other via the communication bus 804 ;
[0188] Memory 803, used for storing computer programs;
[0189] The processor 801 is configured to execute the program stored in the memory 803, and implement the following steps:
[0190] The controller obtains the vehicle height data and preset target height data from the air spring;
[0191] The controller changes the on-off state of the height adjustment valve based on the height data of the vehicle and the target height data;
[0192] The first host computer obtains the switch state information of the height adjustment valve from the air spring, and based on the switch state information, changes the height of the sensor by operating the stepping motor;
[0193] When the height data of the vehicle acquired by the controller from the sensor is equal to the target height data, the controller stops changing the switching state of the height adjustment valve;
[0194] The first host computer obtains the vehicle height data and the target height data from the air spring, and determines whether a difference between the vehicle height data and the target height data is within a preset threshold range;
[0195] When the difference between the height data of the vehicle and the target height data is within a preset threshold range, the first host computer confirms that the controller of the air spring is normal.
[0196] In an optional embodiment of the present invention, the air spring further includes a second host computer; the second host computer is communicatively connected to the controller; and the method further includes:
[0197] The first host computer obtains driving data from the air spring and determines whether the driving data is within a preset data range;
[0198] When the driving data is within a preset data range, the first host computer sends a first instruction to the second host computer; the first instruction is used to instruct the second host computer to send the target height data to the controller;
[0199] The second host computer receives the first instruction, and sends the target height data to the controller based on the first instruction.
[0200] In an optional embodiment of the present invention, the step of obtaining driving data further includes:
[0201] The second host computer collects the driving data in the controller and sends the driving data to the first host computer;
[0202] The first host computer receives the driving data sent by the second host computer.
[0203] In an optional embodiment of the present invention, the air spring further includes a third host computer; the third host computer is communicatively connected to the controller; the step of changing the switching state of the height adjustment valve based on the vehicle height data and the target height data further includes:
[0204] When the driving data is not within a preset data range, the first host computer sends a second instruction to the third host computer; the second instruction is used to instruct the third host computer to send the preset driving data within the data range to the controller;
[0205] The third host computer receives the second instruction, and sends the preset driving data within the data range to the controller based on the second instruction;
[0206] When the controller receives the driving data within the data range, the controller changes the open / close state of the height adjustment valve based on the height data of the vehicle and the target height data.
[0207] In an optional embodiment of the present invention, the method further includes:
[0208] When the controller receives the driving data within the data range, the first host computer determines whether the switch state of the height adjustment valve has changed based on the switch state information;
[0209] When the switch state of the height adjustment valve changes, the first host computer confirms that the controller of the air spring is normal.
[0210] In an optional embodiment of the present invention, the step of obtaining the vehicle height data and the target height data further includes:
[0211] The second host computer collects the vehicle height data and the target height data in the controller, and sends the vehicle height data and the target height data to the first host computer;
[0212] The first host computer receives the vehicle height data and the target height data sent by the second host computer.
[0213] In an optional embodiment of the present invention, the controller further stores control parameters; and the method further includes:
[0214] When the difference between the vehicle height data and the target height data is not within a preset threshold range and / or the switch state of the height regulating valve is not changed, the first host computer confirms that the control parameter is wrong;
[0215] The first host computer sends a third instruction to the second host computer; the third instruction is used to instruct the second host computer to send preset correct control parameters to the controller;
[0216] The second host computer receives the third instruction and sends preset correct control parameters to the controller based on the third instruction.
[0217] The communication bus mentioned in the terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is used in the figure, but this does not mean that there is only one bus or only one type of bus.
[0218] The communication interface is used for communication between the above terminal and other devices.
[0219] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage. Alternatively, the memory may be at least one storage device located away from the processor.
[0220] The above-mentioned processors can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0221] As shown in FIG9 , in another embodiment provided by the present invention, a computer-readable storage medium 901 is further provided, in which instructions are stored. When the computer-readable storage medium 901 is run on a computer, the computer executes the test method for the controller of the vehicle air spring described in the above embodiment.
[0222] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes the method for testing the controller of the vehicle air spring described in the above embodiment.
[0223] In the above embodiments, all or part of the embodiments can be implemented through software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with the embodiments of the present invention are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
[0224] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.
[0225] Each embodiment in this specification is described in a related manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiment is generally similar to the method embodiment, so the description is relatively simple. For related parts, refer to the description of the method embodiment.
[0226] The above description is only a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention are included in the scope of protection of the present invention.
Claims
1. A test method for a controller of a vehicle air spring, characterized in that, Testing system for a controller applied to a vehicle air spring; the testing system for the controller of the vehicle air spring at least includes an air spring, a stepper motor, and a first host computer communicatively connected to the air spring; the air spring at least includes a controller, a sensor, and a height regulating valve; the controller is used to control the height regulating valve; The stepper motor is connected to the sensor; the sensor is used to collect the height data of the vehicle; the method includes: The controller obtains the height data of the vehicle and the preset target height data from the air spring; The controller changes the switch state of the height regulating valve based on the height data of the vehicle and the target height data; The first host computer obtains the switch state information of the height regulating valve from the air spring, and based on the switch state information, changes the height of the sensor by operating the stepper motor; When the height data of the vehicle obtained by the controller from the sensor is equal to the target height data, the controller stops changing the switch state of the height regulating valve; The first host computer obtains the height data of the vehicle and the target height data from the air spring, and determines whether the difference between the height data of the vehicle and the target height data is within a preset threshold range; When the difference between the height data of the vehicle and the target height data is within the preset threshold range, the first host computer confirms that the controller of the air spring is normal.
2. The method according to claim 1, wherein The air spring further includes a second host computer; the second host computer is communicatively connected to the controller; the method further includes: The first host computer obtains the driving data from the air spring and determines whether the driving data is within a preset data range; When the driving data is within the preset data range, the first host computer sends a first instruction to the second host computer; the first instruction is used to instruct the second host computer to send the target height data to the controller; The second host computer receives the first instruction and sends the target height data to the controller based on the first instruction.
3. The method according to claim 2, wherein The step of obtaining the driving data further includes; The second host computer collects the driving data in the controller and sends the driving data to the first host computer; The first host computer receives the driving data sent by the second host computer.
4. The method according to claim 2, wherein The air spring further includes a third host computer; the third host computer is communicatively connected to the controller; the step of changing the switch state of the height regulating valve based on the height data of the vehicle and the target height data further includes: When the driving data is not within the preset data range, the first host computer sends a second instruction to the third host computer; the second instruction is used to instruct the third host computer to send the preset driving data within the data range to the controller; The third host computer receives the second instruction and sends the preset driving data within the data range to the controller based on the second instruction; When the controller receives the driving data within the data range, the controller changes the switch state of the height regulating valve based on the height data of the vehicle and the target height data.
5. The method according to claim 4, wherein The method further includes: When the controller receives the driving data within the data range, the first host computer determines whether the switch state of the height regulating valve changes based on the switch state information; When the switch state of the height regulating valve changes, the first host computer confirms that the controller of the air spring is normal.
6. The method according to claim 2, wherein The step of obtaining the height data of the vehicle and the target height data further includes: The second host computer collects the height data of the vehicle and the target height data in the controller, and sends the height data of the vehicle and the target height data to the first host computer; The first host computer receives the height data of the vehicle and the target height data sent by the second host computer.
7. The method according to claim 5, characterized in that Control parameters are also stored in the controller; the method further includes: When the difference between the height data of the vehicle and the target height data is not within the preset threshold range and / or the switch state of the height regulating valve does not change, the first host computer confirms that the control parameters are incorrect; The first host computer sends a third instruction to the second host computer; the third instruction is used to instruct the second host computer to send preset correct control parameters to the controller; The second host computer receives the third instruction and sends preset correct control parameters to the controller based on the third instruction.
8. A test device for a controller of a vehicle air spring, characterized in that, A test system applied to a controller of a vehicle air spring; the test system of the controller of the vehicle air spring at least includes an air spring, a stepping motor, and a first host computer communicatively connected to the air spring; the air spring at least includes a controller, a sensor, and a height regulating valve; the controller is used to control the height regulating valve; The stepping motor is connected to the sensor; the sensor is used to collect the height data of the vehicle; the device includes: An acquisition module, configured to enable the controller to acquire the height data of the vehicle and preset target height data from the air spring; A change module, configured to enable the controller to change the switch state of the height regulating valve based on the height data of the vehicle and the target height data; A first switch state information acquisition module, configured to enable the first host computer to acquire the switch state information of the height regulating valve from the air spring, and based on the switch state information, change the height of the sensor by operating the stepping motor; A stop change module, configured to when the height data of the vehicle acquired by the controller from the sensor is equal to the target height data, the controller stops changing the switch state of the height regulating valve; A vehicle height data and target height data acquisition module, configured to enable the first host computer to acquire the height data of the vehicle and the target height data from the air spring, and determine whether the difference between the height data of the vehicle and the target height data is within a preset threshold range; The first confirmation module is configured to confirm that the controller of the air spring is normal by the first host computer when the difference between the height data of the vehicle and the target height data is within a preset threshold range.
9. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete communication with each other through the communication bus; The memory is used to store computer programs; When the processor is used to execute the program stored on the memory, it implements the method according to any one of claims 1-7.
10. One or more computer-readable media, on which instructions are stored. When executed by one or more processors, the instructions cause the processors to execute the method according to any one of claims 1-7.
11. A test system for a controller of a vehicle air spring. The test system for the controller of the vehicle air spring at least includes an air spring, a stepper motor, and a first host computer communicatively connected to the air spring; the air spring at least includes a controller, a sensor, and a height regulating valve; the controller is used to control the height regulating valve; the stepper motor is connected to the sensor; the sensor is used to collect the height data of the vehicle; The test system of the controller of the vehicle air spring further includes a processor, a communication interface, a memory, and a communication bus, wherein, The processor, the communication interface, and the memory complete communication with each other through the communication bus; The memory is used to store computer programs; The processor, when used to execute the program stored on the memory, implements a test method for a controller of a vehicle air spring, which includes: The controller obtains the height data of the vehicle and a preset target height data from the air spring; The controller changes the switch state of the height regulating valve based on the height data of the vehicle and the target height data; The first host computer obtains the switch state information of the height regulating valve from the air spring, and based on the switch state information, changes the height of the sensor by running the stepper motor; When the height data of the vehicle obtained by the controller from the sensor is equal to the target height data, the controller stops changing the switch state of the height regulating valve; The first host computer obtains the height data of the vehicle and the target height data from the air spring, and judges whether the difference between the height data of the vehicle and the target height data is within a preset threshold range; When the difference between the height data of the vehicle and the target height data is within a preset threshold range, the first host computer confirms that the controller of the air spring is normal.
12. The test system for the controller of the vehicle air spring according to claim 11, characterized in that, The air spring further includes a second host computer; the second host computer is communicatively connected to the controller; the method further includes: The first host computer obtains driving data from the air spring and judges whether the driving data is within a preset data range; When the driving data is within a preset data range, the first host computer sends a first instruction to the second host computer; the first instruction is used to instruct the second host computer to send the target height data to the controller. The second host computer receives the first instruction and sends the target height data to the controller based on the first instruction.
13. The test system for the controller of the vehicle air spring according to claim 12, characterized in that, The step of obtaining the driving data further includes: The second host computer collects the driving data in the controller and sends the driving data to the first host computer; The first host computer receives the driving data sent by the second host computer.
14. The test system for the controller of the vehicle air spring according to claim 12, characterized in that, The air spring further includes a third host computer; the third host computer is communicatively connected to the controller; the step of changing the switch state of the height adjustment valve based on the height data of the vehicle and the target height data further includes: When the driving data is not within the preset data range, the first host computer sends a second instruction to the third host computer; the second instruction is used to instruct the third host computer to send the preset driving data within the data range to the controller; The third host computer receives the second instruction and sends the preset driving data within the data range to the controller based on the second instruction; When the controller receives the driving data within the data range, the controller changes the switch state of the height adjustment valve based on the height data of the vehicle and the target height data.
15. The test system for the controller of the vehicle air spring according to claim 14, characterized in that, The method further includes: When the controller receives the driving data within the data range, the first host computer determines whether the switch state of the height adjustment valve has changed based on the switch state information; When the switch state of the height adjustment valve changes, the first host computer confirms that the controller of the air spring is normal.
16. The test system for the controller of the vehicle air spring according to claim 12, characterized in that, The step of obtaining the height data and the target height data of the vehicle further includes: The second host computer collects the height data and the target height data of the vehicle in the controller and sends the height data and the target height data of the vehicle to the first host computer; The first host computer receives the height data and the target height data of the vehicle sent by the second host computer.
17. The test system of the controller of the vehicle air spring according to claim 15, characterized in that, Control parameters are also stored in the controller; the method further includes: When the difference between the height data of the vehicle and the target height data is not within the preset threshold range and / or the switch state of the height adjustment valve has not changed, the first host computer confirms that the control parameters are incorrect; The first host computer sends a third instruction to the second host computer; the third instruction is used to instruct the second host computer to send the preset correct control parameters to the controller; The second host computer receives the third instruction and sends the preset correct control parameters to the controller based on the third instruction.
Citation Information
Patent Citations
In-the-loop test method and test platform support for electric control air suspension controller
CN106681312A
Vehicle detection method, system and readable storage medium
CN112765199A
Vehicle intelligent suspension controller test system
CN114675613A
Air suspension automatic test system and method
CN114755936A
Hardware-in-the-loop automatic test platform for automobile electric air suspension
CN115014812A