Method, device and system for testing electronic brake control unit
By sending target control instructions and working environment information, generating and collecting electrical control signals of electronic braking control units, the problem of insufficient testing accuracy and coverage in the prior art is solved, and more efficient testing methods are realized, reducing simulation The cost of model development simplifies the joint debugging and testing process.
Patent Information
- Application Number
- CN202411338865.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2024-12-31
AI Technical Summary
In the existing electronic braking control unit testing methods, the execution components are highly precise and distributed in various laboratories, making it difficult to achieve complete joint debugging and testing, resulting in insufficient test accuracy and coverage, and the cost of simulation model development is high, so it is impossible to Completely accurate description of complex physical phenomena.
By sending target control instructions and pre-acquisitioned working environment information to the electronic braking control unit under test, an electrical control signal is generated, and the signal is sent to the execution component through the data acquisition device, the actual pressure information is collected, and the test platform is returned to the pre-pre-pre-pre-pre-pre-pre-pre-pre-pre-pre-pre-pre-pre-pre-pre-pre-pre-pre-pre-pre-pre-pre-pre-pre-pre-pre-pre-pre-pre-pre-pre Suppose the standard execution results are compared with the actual information to obtain the test results.
It improves the reliability and accuracy of electronic braking control unit testing, reduces the cost of simulation model development, realizes closed-loop control and automatic test results comparison, and simplifies the joint debugging and testing process between EBCU and execution components.
Smart Images

Figure CN119225335A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic brake control units, and in particular to a testing method, device and system for an electronic brake control unit. Background Art
[0002] The EMU software integration development test platform (referred to as the test platform) is a hardware-in-the-loop semi-physical simulation test device, in which only the electronic brake control unit (EBCU) under test is a physical object, and other system components of the train are simulated by the test platform. The test platform simulates the peripheral working environment of the EBCU, interacts with the EBCU through electrical signals, completes the virtualization of the single-vehicle braking environment, simulates the network control signals of other train equipment, and maintains the train formation information, operating status, etc., to build a complete vehicle environment, which can complete single-vehicle and train-level software integration testing. Figure 1 As shown in the figure, the test platform interacts with the object under test; the test platform sends common braking, emergency braking, parking braking and other instructions to the EBCU. After receiving the instructions, the EBCU calculates and outputs the electrical control signal for controlling the execution component through software. The test platform collects the state and timing of the electrical signal output by the EBCU, simulates the functional logic of the execution component in real time, and sends the simulation results to the EBCU to form a closed-loop control, so as to test and verify the software function of the EBCU.
[0003] During the test process, the executive components of the EBCU are simulated by the test platform, which requires a lot of manpower and time to model. Due to the high precision of the executive components, these models cannot fully and accurately describe their complex physical phenomena. There will be certain errors in the simulation results, and it is impossible to accurately verify the actual control effect of the EBCU output electrical signal. The executive components of the EBCU are distributed in various laboratories, which are not easy to move, and cannot be fully integrated with the EBCU and other subsystems simulated by the test platform. How to improve test accuracy while ensuring test coverage has become an urgent problem to be solved. Summary of the invention
[0004] In view of at least one problem in the prior art, the present application proposes a test method, device and system for an electronic brake control unit, which can improve the reliability of the test of the electronic brake control unit.
[0005] In order to solve the above technical problems, this application provides the following technical solutions:
[0006] In a first aspect, the present application provides a method for testing an electronic brake control unit, comprising:
[0007] Sending a target control instruction and pre-acquired working environment information to the electronic brake control unit under test, wherein the electronic brake control unit generates an electrical control signal according to the target control instruction and the pre-acquired working environment information;
[0008] receiving the electrical control signal, sending the electrical control signal and pre-acquired working environment information to the execution component of the electronic brake control unit under test via a data acquisition device, wherein the execution component generates actual pressure information according to the electrical control signal and the pre-acquired working environment information, and returns the actual pressure information via the data acquisition device;
[0009] The test result of the electronic brake control unit under test is obtained according to the preset standard execution result and the actual pressure information.
[0010] In one embodiment, the step of sending the electrical control signal and the pre-acquired working environment information to the execution component of the electronic brake control unit under test via a data acquisition device includes:
[0011] The electrical control signal and the pre-acquired working environment information are sent to the data acquisition device via Ethernet, and the data acquisition device sends the electrical control signal and the pre-acquired working environment information to the execution component of the electronic brake control unit under test.
[0012] In one embodiment, the execution component generates actual pressure information according to the electrical control signal and the pre-acquired working environment information, and returns the actual pressure information via the data acquisition device, including:
[0013] The execution component generates actual pressure information according to the electrical control signal and the pre-acquired working environment information;
[0014] The data acquisition device acquires actual pressure information of the execution component;
[0015] Receive the actual pressure information returned by the data acquisition device via Ethernet.
[0016] In one embodiment, the data acquisition device acquires actual pressure information of the execution component, including:
[0017] The signal conditioning board of the data acquisition device conditions the actual pressure information to obtain conditioned pressure information. The modular data acquisition platform of the data acquisition device acquires the conditioned pressure information, performs mean filtering on the conditioned pressure information, and performs data conversion on the mean filtering result according to preset channel range parameters and signal conditioning circuit parameters to obtain actual pressure information.
[0018] In one embodiment, the electronic brake control unit testing method further includes:
[0019] The shaft speed is obtained according to the actual pressure information and sent to the electronic brake control unit under test.
[0020] In a second aspect, the present application provides a test device for an electronic brake control unit, comprising:
[0021] A sending module, used for sending a target control instruction and pre-acquired working environment information to the electronic brake control unit under test, wherein the electronic brake control unit generates an electrical control signal according to the target control instruction and the pre-acquired working environment information;
[0022] an execution module, configured to receive the electrical control signal, send the electrical control signal and pre-acquired working environment information to an execution component of the electronic brake control unit under test via a data acquisition device, wherein the execution component generates actual pressure information according to the electrical control signal and the pre-acquired working environment information, and returns the actual pressure information via the data acquisition device;
[0023] The test module is used to obtain the test result of the electronic brake control unit under test according to the preset standard execution result and the actual pressure information.
[0024] In one embodiment, the execution module includes:
[0025] The execution unit is used to send the electrical control signal and the pre-acquired working environment information to the data acquisition device through Ethernet, and the data acquisition device sends the electrical control signal and the pre-acquired working environment information to the execution component of the electronic brake control unit under test.
[0026] In one embodiment, the execution component generates actual pressure information according to the electrical control signal and the pre-acquired working environment information; the data acquisition device acquires the actual pressure information of the execution component;
[0027] Correspondingly, the execution module includes:
[0028] The receiving unit is used to receive the actual pressure information returned by the data acquisition device via Ethernet.
[0029] In one embodiment, the data acquisition device acquires actual pressure information of the execution component, including:
[0030] The signal conditioning board of the data acquisition device conditions the actual pressure information to obtain conditioned pressure information. The modular data acquisition platform of the data acquisition device acquires the conditioned pressure information, performs mean filtering on the conditioned pressure information, and performs data conversion on the mean filtering result according to preset channel range parameters and signal conditioning circuit parameters to obtain actual pressure information.
[0031] In one embodiment, the electronic brake control unit test device further includes:
[0032] The shaft speed determination module is used to obtain the shaft speed according to the actual pressure information and send it to the electronic brake control unit under test.
[0033] In a third aspect, the present application provides a test system for an electronic brake control unit, comprising: a data acquisition device, an execution component, an electronic brake control unit to be tested, and a test device for the electronic brake control unit;
[0034] The data acquisition device is connected to the test device of the electronic brake control unit via Ethernet, the data acquisition device is connected to the execution component, the electronic brake control unit under test is connected to the test device of the electronic brake control unit, and the distance between the data acquisition device and the execution component is less than a preset distance range.
[0035] In a fourth aspect, the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the electronic brake control unit test method when executing the program.
[0036] In a fifth aspect, the present application provides a computer-readable storage medium having computer instructions stored thereon, and when the instructions are executed by a processor, the electronic brake control unit testing method is implemented.
[0037] As can be seen from the above technical solution, the present application provides a test method, device and system for an electronic brake control unit. The method includes: sending a target control instruction and pre-acquired working environment information to the electronic brake control unit under test, and the electronic brake control unit generates an electrical control signal according to the target control instruction and the pre-acquired working environment information; receiving the electrical control signal, sending the electrical control signal and the pre-acquired working environment information to the execution component of the electronic brake control unit under test via a data acquisition device, and the execution component generates actual pressure information according to the electrical control signal and the pre-acquired working environment information, and returns the actual pressure information via the data acquisition device; obtaining the test result of the electronic brake control unit under test according to the preset standard execution result and the actual pressure information, which can improve the reliability of the electronic brake control unit test; specifically, the remote EBCU execution component can be conveniently and flexibly connected to the test platform through the data acquisition device, and the response data of the execution component or the control signal of the output EBCU can be collected. The collected data can be shared with the test platform, and a closed-loop control is formed between the test platform and the EBCU, and the test data can also be used for automatic test result comparison. After the test platform is connected to this device, there is no need to develop complex simulation models to jointly debug and test the EBCU and the execution components; the data acquisition device and the test platform can work together to verify the actual control effect of the EBCU more accurately and conveniently, which can not only improve the accuracy of the test, but also reduce the development cost of the simulation model. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 It is a schematic diagram of the relationship between the test platform and the object under test in the prior art;
[0040] Figure 2 is a first flow chart of a method for testing an electronic brake control unit in an embodiment of the present application;
[0041] Figure 3 is a second flow chart of a method for testing an electronic brake control unit in an embodiment of the present application;
[0042] Figure 4 It is a logic block diagram of a test method of an electronic brake control unit in an application example of the present application;
[0043] Figure 5 is a structural schematic diagram of a test device for an electronic brake control unit in an embodiment of the present application;
[0044] Figure 6 is a structural schematic diagram of a test system for an electronic brake control unit in an embodiment of the present application;
[0045] Figure 7 It is a schematic diagram of the relationship between the execution component, the data acquisition device, the object under test and the test platform in the application example of this application;
[0046] Figure 8 It is a logic block diagram of the data acquisition device in the application example of this application;
[0047] Fig. 9 It is a schematic diagram of the software architecture of the data acquisition device in the application example of this application;
[0048] Fig.10 It is a flow chart of the channel parameter setting process in the application example of this application;
[0049] Fig.11 It is a flowchart of the analog quantity acquisition process in the application example of this application;
[0050] Fig.12 It is a flowchart of the digital quantity acquisition process in the application example of this application;
[0051] Fig.13 It is a flowchart of the analog output process in the application example of this application;
[0052] Fig.14 It is a flowchart of the digital quantity output process in the application example of this application;
[0053] Fig.15 It is a flowchart of the data processing process in the application example of this application;
[0054] Fig.16 It is a flowchart of the remote data sharing process in the application example of this application;
[0055] Fig.17 This is a schematic diagram of a circuit implementation for collecting voltages of multiple ranges in the application example of this application;
[0056] Fig.18 It is a schematic block diagram of the system structure of the electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0057] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0058] As the number of high-speed EMUs put into production and the operating mileage continue to increase, the market scale is gradually expanding. As one of the key subsystems of EMUs, the reliability, safety, and information transmission requirements of the braking system are constantly increasing. The Electronic Brake Control Unit (EBCU) as the core component of the braking control system is also constantly upgraded and improved. In order to meet market requirements, the overall performance of EBCU software and hardware must be improved to shorten the design cycle while ensuring product reliability.
[0059] Braking control software development and integration testing are important links in the entire braking control product development process. Development and testing often need to be processed in parallel. In the early stages of software development, software engineers need to use testing equipment to debug and verify whether the software functions meet the requirements. After the software development is completed, the software needs to be tested in detail according to the system requirements to detect whether the software functions are complete and meet the design requirements. After the software design is changed, the affected items of the software need to be tested according to the change instructions to confirm the feasibility of the software change. Therefore, testing work is very important in the software development life cycle. Whether the testing equipment is reliable greatly affects the cycle and quality of software development.
[0060] The details are described through the following embodiments.
[0061] In order to improve the reliability of the electronic brake control unit test, this embodiment provides a test method for an electronic brake control unit in which the execution subject is a test device for the electronic brake control unit. The test device for the electronic brake control unit includes but is not limited to a server, such as Figure 2 As shown, the method specifically includes the following contents:
[0062] Step 100: sending a target control instruction and pre-acquired working environment information to an electronic brake control unit under test, wherein the electronic brake control unit generates an electrical control signal according to the target control instruction and the pre-acquired working environment information.
[0063] Specifically, the test device of the electronic brake control unit can be an existing EMU software integrated development test platform. The electronic brake control unit under test can be an electronic brake control unit of an EMU / urban rail transit train braking system. The target control instruction can be: a traction instruction, a common brake instruction, an emergency brake instruction, etc.; the target control instruction can include: a traction mark, a common brake mark and an emergency brake mark, the traction mark is used to identify whether to trigger the electronic brake control unit under test to perform traction control, the common brake mark is used to identify whether to trigger the electronic brake control unit under test to perform common brake control, and the emergency brake mark is used to identify whether to trigger the electronic brake control unit under test to perform emergency brake control. If the target control instruction is a traction instruction, the traction mark is yes, the common brake mark is no and the emergency brake mark is no, if the target control instruction is a common brake instruction, the traction mark is no, the common brake mark is yes and the emergency brake mark is no; if the target control instruction is an emergency brake instruction, the traction mark is no, the common brake mark is no and the emergency brake mark is yes, "0" can be used to indicate yes, "1" can be used to indicate no; "0" can also be used to indicate no, "1" can be used to indicate yes. The preset working environment information may be simulated peripheral working environment information of the electronic brake control unit under test, including: isolation plug state, remote relief switch state, air spring pressure parameter, shaft speed signal, vehicle code, total air pressure, parking brake, vehicle power supply and other parameters and other train subsystems and electronic brake control unit interaction information. The electrical control signal may include: electric-pneumatic conversion valve signal and anti-skid valve control signal. The isolation plug state may include an open state and a closed state, etc., the remote relief switch may include an open state and a closed state, etc., the air spring pressure parameter may be a simulated air spring pressure, and the shaft speed signal may be a simulated shaft speed. The target brake cylinder pressure may be obtained according to the target control instruction and the pre-acquired working environment information, the electric-pneumatic conversion valve signal may be obtained according to the target brake cylinder pressure, and the anti-skid valve control signal may be obtained according to the target control instruction and the shaft speed signal.
[0064] Step 200: Receive the electrical control signal, and send the electrical control signal and pre-acquired working environment information to the execution component of the electronic brake control unit under test via the data acquisition device, the execution component generates actual pressure information based on the electrical control signal and the pre-acquired working environment information, and returns the actual pressure information via the data acquisition device.
[0065] Specifically, the actuator may include: an electric-pneumatic conversion valve and an anti-skid valve, etc. The actual pressure information may include: an actual pre-control pressure and a brake cylinder pressure. The data acquisition device may be a modular data acquisition platform, which is connected to the actuator and the test platform respectively. The data acquisition device may directly acquire the actual pressure signal of the actuator through the connecting cable, and send the actual pressure information to the test platform via Ethernet. The actuator may generate the actual pressure information under the working environment corresponding to the pre-acquired working environment information according to the electrical control signal.
[0066] Step 300: Obtain the test result of the electronic brake control unit under test according to the preset standard execution result and the actual pressure information.
[0067] Specifically, it can be determined whether the difference between the actual pressure information and the preset standard execution result is less than or equal to the difference threshold. If so, the test result is determined to be normal, otherwise the test result is determined to be abnormal. The preset standard execution result can be set according to actual conditions, and this application does not limit this.
[0068] In order to improve the reliability of data transmission, in one embodiment, step 200 includes:
[0069] The electrical control signal and the pre-acquired working environment information are sent to the data acquisition device via Ethernet, and the data acquisition device sends the electrical control signal and the pre-acquired working environment information to the execution component of the electronic brake control unit under test.
[0070] Specifically, the data sharing module of the data acquisition device can receive the electrical control signal and the pre-acquired working environment information, and write the electrical control signal and the pre-acquired working environment information into the data queue. The data acquisition device can obtain the electrical control signal and the pre-acquired working environment information from the data queue, and output the electrical control signal and the pre-acquired working environment information via the DAQmx driver.
[0071] In order to improve the reliability of data transmission, such as Figure 3 As shown, in one embodiment, the execution component in step 200 generates actual pressure information according to the electrical control signal and the pre-acquired working environment information, and returns the actual pressure information via the data acquisition device, including:
[0072] Step 201: The execution component generates actual pressure information according to the electrical control signal and pre-acquired working environment information.
[0073] Step 202: The data acquisition device acquires actual pressure information of the execution component.
[0074] Specifically, the DAQmx driver of the data acquisition device can collect actual pressure information and write the actual pressure information into a data queue.
[0075] Step 203: Receive the actual pressure information returned by the data acquisition device via Ethernet.
[0076] Specifically, the data acquisition device can obtain the actual pressure information from the data queue, and output the actual pressure information via the DAQmx driver.
[0077] In order to improve the reliability of the actual pressure information, in one embodiment, step 202 includes:
[0078] The signal conditioning board of the data acquisition device conditions the actual pressure information to obtain conditioned pressure information. The modular data acquisition platform of the data acquisition device acquires the conditioned pressure information, performs mean filtering on the conditioned pressure information, and performs data conversion on the mean filtering result according to preset channel range parameters and signal conditioning circuit parameters to obtain actual pressure information.
[0079] Specifically, by conditioning the actual pressure information, the actual pressure information can be conditioned to a range suitable for a collection channel corresponding to the modular data collection platform, and the collection channel can be a channel used by the modular data collection platform to collect the conditioned pressure information. The conversion formula can be as follows:
[0080] Y=A1X 3 +A2X 2 +A3X+A4
[0081] Among them, X is the mean filtering result; Y is the actual pressure information; A1 to A4 are constants, which are related to the range of the acquisition channel and the signal conditioning circuit and can be preset according to actual conditions.
[0082] In order to achieve closed-loop control of the electronic brake control unit, in one embodiment, the test method of the electronic brake control unit further includes:
[0083] Step 400: Obtain the shaft speed according to the actual pressure information and send it to the electronic brake control unit under test.
[0084] In order to conveniently access the execution components of the electronic brake control unit in the test platform, conduct more accurate tests on the control effect of the electronic brake control unit, and realize portable data collection with data sharing function, this application proposes an application example of a test method for the electronic brake control unit, which is specifically described as follows:
[0085] In this application example, when it is necessary to test the actual control effect of the EBCU, the EBCU executive components distributed in other laboratories are connected to the test platform via the data acquisition device. The test platform sends common braking, emergency braking instructions, shaft speed and other parameters to the EBCU. The EBCU outputs the electrical control signal used to control the executive component through software calculation. The test platform collects the electrical control signal of the EBCU, and remotely transmits the EBCU electrical control signal and the braking system parameters related to the executive component to the data acquisition device via Ethernet. The data acquisition device sends it to the executive component. The data acquisition device also collects the execution results of the executive component and transmits it remotely to the test platform via Ethernet for closed-loop control or automated test result analysis. The details are as follows:
[0086] Step 1: Before the test begins, connect the test platform to the electronic brake control unit, connect the actuators in other laboratories to the data acquisition device, and connect the test platform and the data acquisition device to the same local area network via an Ethernet cable.
[0087] Step 2: The test platform simulates the peripheral working environment of the electronic brake control unit and sends the isolation plug state, remote release switch, and air spring pressure parameters to the electronic brake control unit.
[0088] Step 3: The test platform sends traction command, normal braking command, emergency braking command, and shaft speed signal to the electronic brake control unit. The electronic brake control unit calculates the target brake cylinder pressure according to the traction / braking command, isolation plug state, remote release switch, and air spring pressure parameters, and generates EP valve and anti-skid valve control signals. The test platform collects EP valve and anti-skid valve signals and sends them to the data acquisition device via Ethernet.
[0089] Step 4: The data acquisition device receives the isolation plug state, remote release switch, air spring pressure parameters and the forwarded EP valve and anti-skid valve control signals of the electronic brake control unit from the test platform through Ethernet, and sends them to the actuator of the electronic brake control unit.
[0090] Step 5: After receiving the state parameters and the EP valve and anti-skid valve control instructions, the executive component generates actual pre-control pressure and brake cylinder pressure.
[0091] Specifically, the state parameters can be parameters related to the actuator in the peripheral working environment information, such as the isolation plug state, remote release switch, and empty spring pressure. In addition to the above parameters, the peripheral working environment information can also include: vehicle code, total wind pressure, parking brake, vehicle power supply and other parameters, as well as other train subsystems and electronic brake control unit interaction information.
[0092] Step 6: The data acquisition device collects the actual pre-control pressure and brake cylinder pressure, and sends them to the test platform via Ethernet. The test platform outputs the pre-control pressure and brake cylinder pressure to the electronic brake control unit. At the same time, the speed calculation model in the test platform calculates the shaft speed according to the traction / braking command and the brake cylinder pressure, and outputs it to the electronic brake control unit to realize closed-loop control of the electronic brake control unit.
[0093] Step 7: The brake cylinder pressure sent by the data acquisition device to the test platform is also used for automated test result analysis. The test platform compares the actual brake cylinder pressure with the preset standard execution result to obtain the test result of the electronic brake control unit.
[0094] The above-mentioned isolation plug status, remote release switch, traction command, normal braking command, emergency braking command, EP valve, and anti-skid valve control command are all digital signals, and the air spring pressure, pre-control pressure and brake cylinder pressure are all analog signals. Figure 4 This is a logic diagram of the test method of the electronic brake control unit of this application example.
[0095] From the software level, in order to improve the reliability of the electronic brake control unit test, the present application provides an embodiment of a test device for an electronic brake control unit for implementing all or part of the contents of the test method for the electronic brake control unit, see Figure 5 The test device of the electronic brake control unit specifically includes the following contents:
[0096] A sending module 01 is used to send a target control instruction and pre-acquired working environment information to the electronic brake control unit under test, and the electronic brake control unit generates an electrical control signal according to the target control instruction and the pre-acquired working environment information;
[0097] An execution module 02 is used to receive the electrical control signal, send the electrical control signal and the pre-acquired working environment information to the execution component of the electronic brake control unit under test via a data acquisition device, and the execution component generates actual pressure information according to the electrical control signal and the pre-acquired working environment information, and returns the actual pressure information via the data acquisition device;
[0098] The test module 03 is used to obtain the test result of the electronic brake control unit under test according to the preset standard execution result and the actual pressure information.
[0099] In one embodiment, the execution module includes:
[0100] The execution unit is used to send the electrical control signal and the pre-acquired working environment information to the data acquisition device through Ethernet, and the data acquisition device sends the electrical control signal and the pre-acquired working environment information to the execution component of the electronic brake control unit under test.
[0101] In one embodiment, the execution component generates actual pressure information according to the electrical control signal and the pre-acquired working environment information; the data acquisition device acquires the actual pressure information of the execution component;
[0102] Correspondingly, the execution module includes:
[0103] The receiving unit is used to receive the actual pressure information returned by the data acquisition device via Ethernet.
[0104] In one embodiment, the data acquisition device acquires actual pressure information of the execution component, including:
[0105] The signal conditioning board of the data acquisition device conditions the actual pressure information to obtain conditioned pressure information. The modular data acquisition platform of the data acquisition device acquires the conditioned pressure information, performs mean filtering on the conditioned pressure information, and performs data conversion on the mean filtering result according to preset channel range parameters and signal conditioning circuit parameters to obtain actual pressure information.
[0106] In one embodiment, the electronic brake control unit test device further includes:
[0107] The shaft speed determination module is used to obtain the shaft speed according to the actual pressure information and send it to the electronic brake control unit under test.
[0108] The embodiment of the test device for an electronic brake control unit provided in this specification can be specifically used to execute the processing flow of the embodiment of the test method for an electronic brake control unit described above, and its functions will not be described in detail here, and reference may be made to the detailed description of the embodiment of the test method for an electronic brake control unit described above.
[0109] To further illustrate the present solution, the present application provides an embodiment of a test system for an electronic brake control unit, such as Figure 6As shown, the system includes: a data acquisition device 10, an execution component 20, an electronic brake control unit under test 30 and a test device 40 for the electronic brake control unit; the data acquisition device and the test device for the electronic brake control unit are connected via Ethernet, the data acquisition device is connected to the execution component, the electronic brake control unit under test is connected to the test device for the electronic brake control unit, and the distance between the data acquisition device and the execution component is less than a preset distance range.
[0110] Specifically, the preset distance range can be set according to actual conditions, and the present application does not impose any restrictions on this. The data acquisition device can be constructed on the basis of an existing modular data acquisition platform (such as a CompactDAQ platform, i.e., a CDAQ chassis). The modular data acquisition platform includes: a chassis and a modular data acquisition card; the data acquisition device can also include: a signal conditioning board, a power board, a device panel, an interface board, a power socket, an Ethernet port socket, and a data acquisition device housing. Among them, the power board is connected to the power socket; the power board is respectively connected to the power supply interface and the signal conditioning board of the CompactDAQ chassis, and is used to convert 220V AC power to 24V DC voltage and output it to the power supply interface and the signal conditioning board of the CompactDAQ chassis; the signal conditioning board is connected to the modular data acquisition card of the CompactDAQ platform, and is used to adjust the standard input and output levels of the modular data acquisition card to the range of the EBCU interface signal; the signal conditioning board can also be used to connect to the execution component; such as Figure 8 As shown, the device panel can be composed of interfaces such as analog voltage signal acquisition, analog voltage signal output, digital signal acquisition, power supply output, pressure sensor signal acquisition, acceleration sensor signal acquisition, relay output, etc. The pressure sensor signal acquisition interface and the acceleration sensor signal acquisition interface can be reserved interfaces for subsequent use; the interface types are banana head interface and LEMO connector; the interface board is used to connect the interface of the device panel, and summarize the input and output signals on the panel to the wiring strip; the CDAQ chassis can be used for digital output, digital acquisition, analog output and analog acquisition; the monitoring software in the data acquisition device can be used for digital output, digital acquisition, analog output and analog acquisition.
[0111] In order to conveniently access the execution components of the electronic brake control unit in the test system and perform more accurate testing on the control effect of the electronic brake control unit, the present invention proposes an application example of a test system for the electronic brake control unit, which is as follows:
[0112] like Figure 7As shown, the test system introduces a data acquisition device. The object under test can communicate with the test platform through CAN bus, MVB bus or Ethernet bus, analog / digital input and output, etc. The data acquisition device is portable and movable. When it is necessary to test the actual control effect of EBCU, the EBCU execution components distributed in other laboratories are connected to the test system through the data acquisition device. The test platform sends common braking, emergency braking instructions, shaft speed and other parameters to EBCU. EBCU outputs electrical control signals for controlling the execution components through software calculation. The test platform collects the electrical control signals of EBCU, and transmits the EBCU electrical control signals and the brake system parameters related to the execution components to the data acquisition device remotely through Ethernet, and the data acquisition device sends them to the execution components. The data acquisition device also collects the execution results of the execution components and transmits them remotely to the test platform through Ethernet for closed-loop control or automated test result analysis.
[0113] The data acquisition monitoring software can be integrated into the data acquisition device. The test platform transmits control instructions to the data acquisition device and transmits the collected data to the monitoring software. The data acquisition device has a remote data sharing interface, which can share test data with the test platform through remote communication and realize data interaction with the test platform.
[0114] like Fig. 9 As shown in the figure, the data acquisition monitoring software includes the interface layer, application layer and driver layer. Among them, the interface layer is mainly responsible for the human-computer interaction functions such as the acquisition channel range parameter setting, remote data sharing parameter setting, output signal value setting, and real-time display of the acquisition signal. The application layer mainly completes the parameter setting of the data acquisition channel, the acquisition and output of analog and digital signals, and the remote data sharing between the test platform. The driver layer realizes the unified transmission and reception of data by calling the DAQmx driver.
[0115] For analog and digital acquisition signals, after the original acquisition data is obtained through the data acquisition module, it is first processed and then sent to the data pool for data display on the interface. At this time, if remote data sharing is enabled, the data also needs to be sent to the test platform through the data sharing module for closed-loop calculation and comparison of automated test results. For analog and digital output signals, if remote data sharing is not enabled, the data set on the interface is sent to the data pool and then sent to the driver layer through the data acquisition module. If remote data sharing is enabled at this time, the remote data from the test platform obtained through the data sharing module is sent to the data pool and then sent to the driver layer through the data acquisition module.
[0116] The interface layer and application layer functions in the data acquisition and monitoring software architecture are implemented by three threads: acquisition parameter setting thread, data acquisition / data processing thread, and data sharing thread.
[0117] (1) Fig.10 As shown, the acquisition parameter setting thread includes: parameter initialization, judging whether the control value has changed, if so, popping up the setting interface, judging whether it has changed, if so, changing the parameters and writing into the queue; by responding to the value change event of the control on the interface, popping up the range and output type setting interface of each channel, and after obtaining the parameter value, passing the range and output type of each channel through the real-time data queue (First Input First Output, referred to as FIFO) to the data acquisition / data processing thread for subsequent calculations.
[0118] (2) The data acquisition / data processing thread realizes the unified sending and receiving of data by calling the NIDAQmx driver. Fig.11 As shown in the figure, analog quantity acquisition AI includes: creating AI handle, initializing voltage acquisition parameters, setting acquisition clock, creating AI task, reading data from DAQmx driver, data processing, updating to monitoring interface, writing to queue, judging whether to stop, if so, AI task cancellation, otherwise return to read data from DAQmx driver. Fig.12 As shown in the figure, digital quantity acquisition DI includes: creating DI handle, initializing channel parameters, creating DI task, reading data from DAQmx driver, data processing, updating to monitoring interface, writing to queue, judging whether to stop, if so, the DI task is cancelled, otherwise it returns to read data from DAQmx driver. Fig.13 The analog output AO shown in the figure includes: creating an AO handle, initializing voltage acquisition parameters, creating an AO task, determining whether to enable remote data, if so, dequeueing the data, writing data to the DAQmx driver, determining whether to stop, if so, deregistering the AO task, otherwise returning to determine whether to enable remote data. Fig.14 The digital output DO shown includes: creating a DO handle, channel classification, DI range selection channel, AI range selection channel, pressure sensor type selection channel and relay output channel, DO task creation, judging whether to enable remote data, if so, the data is queued, writing data to the DAQmx driver, judging whether to stop, if so, the DO task is unregistered, otherwise it returns to judge whether to enable remote data.
[0119] Specifically, first create the AI handle and DI handle, then initialize the acquisition channel parameters, and complete the creation of the acquisition task. Get the original acquisition data through the DAQmx driver, and then enter the data processing module. Fig.15In this module, the voltage acquisition process can include: analog input, drive data reading, mean filtering, polynomial evaluation based on range parameters, and physical value; that is, the collected data can be filtered first, such as mean filtering the data of 5 sampling cycles, and then data conversion is performed according to the selected range parameters of each channel and signal conditioning circuit parameters, and the real physical value is output, and the physical value is updated to the software monitoring interface, and then the physical value is written to FIFO and passed to the data sharing thread. FIFO can realize the first-in-first-out of data, ensure the orderliness of data, and ensure the reliability and correctness of data.
[0120] The analog output signal and relay output channel first create an AO handle, and then select the data source for the signal based on whether to enable remote data on the interface. When remote data is not enabled, the analog signal value and relay output status set on the interface are updated to the data buffer of the physical channel through the DAQmx driver to achieve analog, digital, and relay outputs; when remote data is enabled, first take out the remote data from the data sharing from the real-time data queue (FIFO), and then update the remote data to the data buffer of the physical channel through the DAQmx driver to achieve analog, digital, and relay outputs.
[0121] like Fig.16 As shown, the remote data sharing process includes: idle, determine whether to enable remote data, if so, open the TCP connection, determine whether the opening is successful, if so, determine whether the communication is normal, if so, take out the FIFO to collect data, write to TCP, read TCP, write remote data to FIFO, determine whether to exit the program, if so, close the TCP connection, and end.
[0122] (3) The data sharing thread uses the Transmission Control Protocol (TCP) to implement data interaction with the test platform, i.e., remote data sharing. Set the remote sharing parameters on the monitoring interface, including the IP address, communication port number, acquisition module name, and output module name of the test platform. Set the remote data sharing button on the monitoring interface to enable or disable the remote data sharing button, and display the connection status with the test platform in real time. When remote data sharing is enabled, open the TCP communication connection, periodically read the TCP data, and update the read remote data to the real-time data queue (FIFO) for analog, digital, and relay outputs; periodically take out analog and digital acquisition data from the real-time data queue (FIFO), write it to TCP, and send it to the test platform for closed-loop control or automated test result comparison.
[0123] like Fig.17As shown, the circuit for realizing voltage acquisition of multiple ranges may include: a switch selection circuit, a voltage divider circuit, an isolation circuit and an operational amplifier circuit connected in sequence; first, a range control instruction is output through DO to control the switch selection circuit to select voltage dividers of different resistance values, and voltage dividers of different resistance values can proportionally reduce input voltages of different ranges to a suitable acquisition range, and then the input signal is isolated through an optical coupling isolation circuit, and then amplified to a voltage signal of a standard range through an operational amplifier, and finally transmitted to a data acquisition card to complete voltage acquisition. The voltage collected in this application example can be voltages of different ranges.
[0124] Fig.18 A schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention, such as Fig.18 As shown, the electronic device includes: a memory 501, a processor 502, and a computer program stored in the memory 501 and executable on the processor 502. When the processor 502 executes the computer program, the following method is implemented:
[0125] Sending a target control instruction and pre-acquired working environment information to the electronic brake control unit under test, wherein the electronic brake control unit generates an electrical control signal according to the target control instruction and the pre-acquired working environment information;
[0126] receiving the electrical control signal, sending the electrical control signal and pre-acquired working environment information to the execution component of the electronic brake control unit under test via a data acquisition device, wherein the execution component generates actual pressure information according to the electrical control signal and the pre-acquired working environment information, and returns the actual pressure information via the data acquisition device;
[0127] The test result of the electronic brake control unit under test is obtained according to the preset standard execution result and the actual pressure information.
[0128] This embodiment discloses a computer program product, the computer program product including a computer program, and when the computer program is executed by a processor, the following method is implemented:
[0129] Sending a target control instruction and pre-acquired working environment information to the electronic brake control unit under test, wherein the electronic brake control unit generates an electrical control signal according to the target control instruction and the pre-acquired working environment information;
[0130] receiving the electrical control signal, sending the electrical control signal and pre-acquired working environment information to the execution component of the electronic brake control unit under test via a data acquisition device, wherein the execution component generates actual pressure information according to the electrical control signal and the pre-acquired working environment information, and returns the actual pressure information via the data acquisition device;
[0131] The test result of the electronic brake control unit under test is obtained according to the preset standard execution result and the actual pressure information.
[0132] This embodiment provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following method is implemented:
[0133] Sending a target control instruction and pre-acquired working environment information to the electronic brake control unit under test, wherein the electronic brake control unit generates an electrical control signal according to the target control instruction and the pre-acquired working environment information;
[0134] receiving the electrical control signal, sending the electrical control signal and pre-acquired working environment information to the execution component of the electronic brake control unit under test via a data acquisition device, wherein the execution component generates actual pressure information according to the electrical control signal and the pre-acquired working environment information, and returns the actual pressure information via the data acquisition device;
[0135] The test result of the electronic brake control unit under test is obtained according to the preset standard execution result and the actual pressure information.
[0136] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0137] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0138] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0139] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0140] In the description of this specification, the description with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0141] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for testing an electronic brake control unit, characterized in that: include: Sending a target control instruction and pre-acquired working environment information to the electronic brake control unit under test, wherein the electronic brake control unit generates an electrical control signal according to the target control instruction and the pre-acquired working environment information; receiving the electrical control signal, sending the electrical control signal and pre-acquired working environment information to the execution component of the electronic brake control unit under test via a data acquisition device, wherein the execution component generates actual pressure information according to the electrical control signal and the pre-acquired working environment information, and returns the actual pressure information via the data acquisition device; The test result of the electronic brake control unit under test is obtained according to the preset standard execution result and the actual pressure information.
2. The method for testing an electronic brake control unit according to claim 1, characterized in that: The step of sending the electrical control signal and the pre-acquired working environment information to the execution component of the electronic brake control unit under test via a data acquisition device includes: The electrical control signal and the pre-acquired working environment information are sent to the data acquisition device via Ethernet, and the data acquisition device sends the electrical control signal and the pre-acquired working environment information to the execution component of the electronic brake control unit under test.
3. The method for testing an electronic brake control unit according to claim 1, characterized in that: The execution component generates actual pressure information according to the electrical control signal and the pre-acquired working environment information, and returns the actual pressure information via the data acquisition device, including: The execution component generates actual pressure information according to the electrical control signal and the pre-acquired working environment information; The data acquisition device acquires actual pressure information of the execution component; Receive the actual pressure information returned by the data acquisition device via Ethernet.
4. The method for testing an electronic brake control unit according to claim 3, characterized in that: The data acquisition device acquires actual pressure information of the execution component, including: The signal conditioning board of the data acquisition device conditions the actual pressure information to obtain conditioned pressure information. The modular data acquisition platform of the data acquisition device acquires the conditioned pressure information, performs mean filtering on the conditioned pressure information, and performs data conversion on the mean filtering result according to preset channel range parameters and signal conditioning circuit parameters to obtain actual pressure information.
5. The method for testing an electronic brake control unit according to claim 1, characterized in that: Also includes: The shaft speed is obtained according to the actual pressure information and sent to the electronic brake control unit under test.
6. A test device for an electronic brake control unit, characterized in that: include: A sending module, used for sending a target control instruction and pre-acquired working environment information to the electronic brake control unit under test, wherein the electronic brake control unit generates an electrical control signal according to the target control instruction and the pre-acquired working environment information; an execution module, configured to receive the electrical control signal, send the electrical control signal and pre-acquired working environment information to an execution component of the electronic brake control unit under test via a data acquisition device, wherein the execution component generates actual pressure information according to the electrical control signal and the pre-acquired working environment information, and returns the actual pressure information via the data acquisition device; The test module is used to obtain the test result of the electronic brake control unit under test according to the preset standard execution result and the actual pressure information.
7. The test device for the electronic brake control unit according to claim 6, characterized in that: The execution module comprises: The execution unit is used to send the electrical control signal and the pre-acquired working environment information to the data acquisition device through Ethernet, and the data acquisition device sends the electrical control signal and the pre-acquired working environment information to the execution component of the electronic brake control unit under test.
8. A test system for an electronic brake control unit, characterized in that: include: A data acquisition device, an execution component, an electronic brake control unit to be tested, and a test device for the electronic brake control unit according to claim 6 or 7; The data acquisition device is connected to the test device of the electronic brake control unit via Ethernet, the data acquisition device is connected to the execution component, the electronic brake control unit under test is connected to the test device of the electronic brake control unit, and the distance between the data acquisition device and the execution component is less than a preset distance range.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the test method for the electronic brake control unit according to any one of claims 1 to 5 is implemented.
10. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instructions are executed by the processor, the test method for the electronic brake control unit according to any one of claims 1 to 5 is implemented.
