System and method for programmable testing and analysis of controlled-by-wire
The programmable test and analysis system solves the problems of poor adaptability and insufficient real-time analysis in wire-controlled testing, and realizes efficient and flexible wire-controlled testing, which is applicable to fields such as vehicles, mobile robots and industrial robotic arms.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2026-05-22
AI Technical Summary
Existing wire control testing methods cannot quickly locate problems, cannot adapt to the differences in different wire control logics, have low testing efficiency, and lack real-time data analysis capabilities, resulting in high testing costs and low efficiency for wire control systems.
A programmable testing and analysis system is provided, including a user interface, a processing device, and a communication interface. It can be configured to adapt to different drive-by-wire systems through plug-ins, supports real-time data analysis and evaluation, and uses predefined rules to map control commands and logic signals to realize the sending of target control commands and visualization of feedback information.
It improves the efficiency and accuracy of wire-controlled testing, reduces the need for customized testing equipment, enables rapid problem identification and performance evaluation, adapts to various wire-controlled systems, and reduces testing costs.
Smart Images

Figure CN122072469A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of wire-controlled testing technology, and more specifically, to a system and method for programmable testing and analysis of wire-controlled test objects. Background Technology
[0002] Controller-by-wire testing is a testing method for evaluating the performance and safety of controller-by-wire systems. It is widely used in vehicles, mobile robots, and industrial robotic arms.
[0003] For vehicles, drive-by-wire testing is crucial for the safe and reliable operation of autonomous vehicles. Thorough testing of the drive-by-wire system in autonomous vehicles during development and subsequent phases to verify its reliability and stability is an essential step in ensuring safety. Drive-by-wire testing is equally important for mobile robots, as their motion and navigation functions rely on precise drive-by-wire systems. For industrial robotic arms, drive-by-wire testing focuses on ensuring the arm's motion accuracy and repeatability, as well as its stability under high-speed movement or load changes, which directly impacts production efficiency and product quality.
[0004] In summary, drive-by-wire testing is a crucial step in ensuring the reliability and safety of drive-by-wire systems. It employs a series of performance evaluations to confirm whether the drive-by-wire test subject can function properly in various environments while meeting relevant safety standards.
[0005] Currently, wire-controlled systems typically involve writing multiple test script files to adapt to different testing scenarios and requirements. However, due to differences in wire-controlled logic between different machine types and manufacturers, test engineers need to customize test scripts for each unique test case. This not only increases workload but also reduces the efficiency of the testing process. Furthermore, existing testing methods often fail to achieve real-time analysis of test data and cannot quickly locate problems during testing, thus limiting their ability to promptly identify and resolve issues.
[0006] In summary, to improve testing efficiency and ensure the integrity of wire-controlled systems, it is necessary to adopt a more intelligent and automated testing framework. Such a framework can include reusable test components, modular design, and advanced data analysis tools, thereby adapting to changing testing requirements and accelerating problem diagnosis.
[0007] The above description of the background technology is only for the purpose of facilitating a deeper understanding of the technical solution of the present invention (the technical means used, the technical problems solved, and the technical effects produced, etc.), and should not be regarded as an admission or in any form an implication that the information constitutes prior art known to those skilled in the art. Summary of the Invention
[0008] This invention addresses the shortcomings and problems existing in the field of wire-controlled vehicle (WCV) testing by proposing a programmable testing and analysis system and method for WCV test objects. The purpose of this invention is to improve the testing efficiency of WCV test objects through simple plug-in configuration, extend the testing scope to various types of WCV systems, and achieve adaptability and support for multiple types and different WCV logics. Simultaneously, this invention also provides real-time analysis and recording of data during the testing process, thereby enabling rapid evaluation of the WCV performance of the WCV test object and rapid identification of problems within the WCV test object.
[0009] According to an embodiment of the present invention, a system for programmable testing and analysis of a drive-by-wire test object is provided, comprising: a user interface configured to acquire input of test cases concerning the drive-by-wire test object; a processing device communicatively connected to the user interface and configured to parse the acquired input of test cases concerning the drive-by-wire test object, determine a target control command for the drive-by-wire test object based on a predetermined control command matching rule and a predetermined control logic matching rule; and a communication interface device communicatively connected to the processing device and the drive-by-wire test object respectively, and configured to receive the target control command for the drive-by-wire test object determined by the processing device, send the target control command to the drive-by-wire test object, and send feedback information of the drive-by-wire test object to the processing device, thereby visualizing the feedback information of the drive-by-wire test object and performing real-time analysis and evaluation of the performance of the drive-by-wire test object.
[0010] Preferably, the processing device further includes: a file acquisition and parsing unit configured to acquire a communication data definition file of the wire-controlled test object, and parse the acquired communication data definition file of the wire-controlled test object to obtain information about control command signals and control logic signals of the wire-controlled test object; a control command abstraction unit configured to map the acquired information about control command signals of the wire-controlled test object into corresponding abstract control command messages according to a predetermined control command matching rule, and store the mapping relationship between the information about control command signals of the wire-controlled test object and the corresponding abstract control command messages; a control logic abstraction unit configured to map the acquired information about control logic signals of the wire-controlled test object into corresponding abstract control logic messages according to a predetermined control logic matching rule, and store the mapping relationship between the information about control logic signals of the wire-controlled test object and the corresponding abstract control logic messages; and a control command setting and transmission unit configured to acquire test case input from the user interface and parse the acquired test case input, convert the input into a target control command of the wire-controlled test object according to the predetermined control command matching rule and the predetermined control logic matching rule, and send the target control command to the communication interface device.
[0011] Preferably, the system for programmable testing and analysis of drive-by-wire test objects further includes: a control command matching unit communicatively connected to a control command abstraction unit, the control command matching unit storing a predetermined control command matching rule mapping table and providing the stored predetermined control command matching rule mapping table to the control command abstraction unit; and a control logic matching unit communicatively connected to the control logic abstraction unit, the control logic matching unit storing a predetermined control logic matching rule mapping table and providing the stored predetermined control logic matching rule mapping table to the control logic abstraction unit.
[0012] Preferably, the communication interface device is connected to the processing device via a first communication line, and the communication interface device is connected to the wire-controlled test object via a second communication line; the communication interface device is configured to: when receiving a target control command from the wire-controlled test object from the processing device, convert the target control command into a format suitable for transmission via the second communication line and send it to the wire-controlled test object; when receiving feedback information from the wire-controlled test object, convert the feedback information into a format suitable for transmission via the first communication line and send it to the processing device; the first communication line includes at least one of a USB-CAN cable and a USB-CANFD cable; the second communication line includes at least one of a CAN bus, a CANFD bus, an Ethernet bus, and a LIN bus.
[0013] Preferably, the drive-by-wire test objects include vehicles, mobile robots, and industrial robotic arms; the inputs for the test cases of the drive-by-wire test objects include: the attributes of the drive-by-wire test objects, the test scenarios of the drive-by-wire test objects, and the expected control behaviors; the communication data definition file of the drive-by-wire test objects includes a DBC file; the target control commands are set to non-periodic signals or periodic signals.
[0014] Preferably, the information regarding the control command signals of the wire-controlled test object includes at least one of the following: communication signal definition, value table, message definition, and communication compatibility of the wire-controlled test object; the information regarding the control logic signals of the wire-controlled test object includes at least one of the following: initialization logic, handshake logic, mode switching logic, and communication verification logic of the wire-controlled test object.
[0015] Preferably, the system for programmable testing and analysis of the drive-by-wire test object further includes a storage device configured to store feedback information of the drive-by-wire test object for offline analysis and evaluation of the performance of the drive-by-wire test object.
[0016] According to an embodiment of the present invention, a method for programmable testing and analysis of a drive-by-wire test object is provided, comprising: acquiring test case input for the drive-by-wire test object through a user interface; parsing the acquired test case input for the drive-by-wire test object through a processing device, determining a target control instruction for the drive-by-wire test object based on a predetermined control instruction matching rule and a predetermined control logic matching rule, and based on the input; receiving the determined target control instruction for the drive-by-wire test object through a communication interface device, sending the target control instruction to the drive-by-wire test object, and sending feedback information of the drive-by-wire test object to the processing device, thereby visualizing the feedback information of the drive-by-wire test object and performing real-time analysis and evaluation of the performance of the drive-by-wire test object.
[0017] Preferably, the method further includes: acquiring a communication data definition file of the wire-controlled test object, and parsing the acquired communication data definition file of the wire-controlled test object to obtain information about control command signals and control logic signals of the wire-controlled test object; mapping the obtained information about control command signals of the wire-controlled test object to corresponding abstract control command messages according to a predetermined control command matching rule, and storing the mapping relationship between the information about control command signals of the wire-controlled test object and the corresponding abstract control command messages; mapping the obtained information about control logic signals of the wire-controlled test object to corresponding abstract control logic messages according to a predetermined control logic matching rule, and storing the mapping relationship between the information about control logic signals of the wire-controlled test object and the corresponding abstract control logic messages; acquiring test case input from a user interface and parsing the acquired test case input, converting the input into a target control command of the wire-controlled test object according to the predetermined control command matching rule and the predetermined control logic matching rule, and sending the target control command to the communication interface device.
[0018] Preferably, the method further includes: when the communication interface device receives a target control command from the wire-controlled test object of the processing device, converting the target control command into a format suitable for transmission via the second communication line and sending it to the wire-controlled test object; when receiving feedback information from the wire-controlled test object, converting the feedback information into a format suitable for transmission via the first communication line and sending it to the processing device; the first communication line includes at least one of a USB-CAN cable and a USB-CANFD cable; the second communication line includes at least one of a CAN bus, a CANFD bus, an Ethernet bus, and a LIN bus.
[0019] Preferably, the drive-by-wire test object includes at least one of a vehicle, a mobile robot, and an industrial robotic arm; the input for the test cases of the drive-by-wire test object includes at least one of the following: attributes of the drive-by-wire test object, test scenario of the drive-by-wire test object, and expected control behavior; the communication data definition file of the drive-by-wire test object includes a DBC file; the target control command is set to a non-periodic signal or a periodic signal.
[0020] Preferably, the method further includes: storing feedback information of the wire-controlled test object for offline analysis and evaluation of the performance of the wire-controlled test object.
[0021] According to an embodiment of the present invention, a computer-readable storage medium is provided, on which computer instructions are stored. The computer instructions, when executed by a processing device, perform the following steps: obtaining input of test cases for a drive-by-wire test object through a user interface; parsing the obtained input of test cases for the drive-by-wire test object through the processing device, determining a target control instruction for the drive-by-wire test object based on predetermined control instruction matching rules and predetermined control logic matching rules, and based on the input; receiving the determined target control instruction for the drive-by-wire test object through a communication interface device, sending the target control instruction to the drive-by-wire test object, and sending feedback information from the drive-by-wire test object to the processing device, thereby visualizing the feedback information of the drive-by-wire test object and performing real-time analysis and evaluation of the performance of the drive-by-wire test object.
[0022] The present invention adopts the above technical solution, which has the following beneficial effects:
[0023] 1. Programmability: The programmable nature of the system allows it to flexibly adapt to different testing needs and conditions, reducing the need to customize dedicated testing equipment for each wire-controlled test object. This not only reduces development and maintenance costs but also enables the system to quickly adapt to new testing standards and technological changes.
[0024] 2. Plugin Configuration: Through simple plugin configuration, corresponding test parameters and logic can be quickly set for different types of wire control systems, and the efficiency of test preparation can be improved.
[0025] 3. Real-time analysis and recording: During the testing process, the system can provide real-time data acquisition, analysis and recording functions, which helps to evaluate the performance of the wire-controlled test object in an instant and to quickly locate and solve problems.
[0026] 4. Problem identification: Through real-time data analysis, testers can quickly identify abnormalities or faults in the wire-controlled test object, thereby shortening the time for problem diagnosis.
[0027] 5. Performance Evaluation: It can evaluate various performance indicators of the wire-controlled test object, such as response time, accuracy, and stability, so that the wire-controlled test object meets the predetermined performance requirements.
[0028] 6. Wide applicability: It takes into account a variety of types of wire-controlled test objects, thus enabling its wide application in different fields such as vehicles, mobile robots, and industrial robotic arms.
[0029] In summary, by providing an efficient, flexible, and comprehensive testing system, the testing efficiency and quality of wire-controlled devices have been significantly improved. This is of great significance for ensuring the reliability and safety of wire-controlled devices in practical applications, and also helps to reduce testing costs and improve development efficiency. Attached Figure Description
[0030] The exemplary embodiments of the present invention will now be described in more detail with reference to the accompanying drawings. For clarity, the same components in different drawings are shown with the same reference numerals. It should be noted that the drawings are for illustrative purposes only and are not necessarily drawn to scale. In these drawings:
[0031] Figure 1 This is a block diagram of a system for programmable testing and analysis of a wire-controlled test object according to an embodiment of the present invention.
[0032] Figure 2 This is a block diagram of a processing apparatus for a programmable testing and analysis system for a wire-controlled test object according to an embodiment of the present invention.
[0033] Figure 3 This is a flowchart of a method for programmable testing and analysis of a wire-controlled test object according to an embodiment of the present invention.
[0034] Figure 4 This is a flowchart of a system for programmable testing and analysis of a wire-controlled test object according to an embodiment of the present invention. Detailed Implementation
[0035] The following provides a detailed description of the embodiments of the present invention. These embodiments are implemented based on the technical solution of the present invention, and provide detailed implementation methods and specific operation processes. However, the scope of protection of the present invention is not limited to the following embodiments.
[0036] In the following, embodiments of the invention will be described in detail with reference to the accompanying drawings. Figure 1 This is a block diagram of a system for programmable testing and analysis of a wire-controlled test object according to an embodiment of the present invention.
[0037] See Figure 1According to an embodiment of the present invention, a programmable testing and analysis system for a wire-controlled test object may include: a processing device 100, a user interface 200, a communication interface device 300, and a wire-controlled test object 400.
[0038] User interface 200 can be configured to receive input of test cases for the drive-by-wire test object 400. Processing device 100 is communicatively connected to user interface 200 and can be configured to parse the received input of test cases for the drive-by-wire test object 400, and determine the target control command for the drive-by-wire test object based on the input according to predetermined control command matching rules and predetermined control logic matching rules. Communication interface device 300 is communicatively connected to processing device 100 and drive-by-wire test object 400 respectively, and communication interface device 300 can be configured to receive the target control command for the drive-by-wire test object 400 determined by processing device 100, send the target control command to drive-by-wire test object 400, and send feedback information from drive-by-wire test object 400 to processing device 100, so that the feedback information of drive-by-wire test object 400 is visualized and the performance of drive-by-wire test object 400 is analyzed and evaluated in real time.
[0039] The following is a detailed description of the various components of the system used for programmable testing and analysis of wire-controlled test objects.
[0040] Users (e.g., testers) can use the user interface 200 to set various information and parameters related to the wire-controlled test object 400 to simulate different test scenarios and conditions for effective testing. Users can select or create the wire-controlled test object 400 through the user interface 200. This may involve specifying basic information such as the name, type, and attributes of the wire-controlled test object. Users can also set specific test objectives and expected results for the wire-controlled test object to ensure the accuracy and reliability of the test.
[0041] In addition, users can configure other related settings for test cases. For example, users can set control parameters such as the execution order, number of loops, and timeout period of test cases; that is, the target control instruction can be set to aperiodic and / or periodic signals. These parameters can help users better control the testing process and improve the efficiency and accuracy of testing.
[0042] Users can initiate and monitor the execution of test cases through the user interface. Once the test begins, the interface will display test progress and results information in real time. Users can view and analyze this information at any time, enabling them to promptly identify and resolve issues during the testing process. Furthermore, users can pause, stop, or restart the test as needed for better control over the testing process.
[0043] The user interface 200 according to an embodiment of the present invention provides an intuitive and easy-to-use interface, enabling users to conveniently configure and manage test cases for wired test objects. Through this interface, users can flexibly define test objectives, input data, and related settings, thereby better meeting test requirements and improving test efficiency.
[0044] The processing device 100 can convert the test case input provided by the user through the user interface 200 into specific control commands for the wire-controlled test object.
[0045] The processing device 100 receives input data from the user interface 200. This data may include attributes of the test object, parameters of the test scenario, expected control behaviors, etc. The processing device 100 can parse this input data to correctly understand the user's testing intentions and needs.
[0046] The processing device 100 applies predetermined control command matching rules and predetermined control logic matching rules, which define how to map input data to specific control commands.
[0047] Once the processing device 100 determines the target control command for the wire-controlled test object, the processing device 100 sends the target control command to the wire-controlled test object 400, causing the wire-controlled test object 400 to operate according to the control command.
[0048] During the test, the processing device 100 can also monitor the working status and feedback information of the wire-controlled test object 400 in real time. If any abnormality or error is found, the processing device 100 can immediately present it to the user through the user interface 200 so that the user can understand the test situation in a timely manner and take corresponding measures.
[0049] The processing unit 100 acts as a crucial bridge between the user interface 200 and the wired test object 400. It not only parses the user's test case input and generates target control commands, but also monitors the testing process and ensures its smooth execution. In this way, the processing unit 100 provides users with an efficient and flexible wired testing solution.
[0050] According to an embodiment of the present invention, the processing device 100 can be integrated with the communication interface device 300. This integration forms an independent and comprehensive integrated terminal. In a testing scenario, a direct connection can be established with the wired test object for wired testing.
[0051] Figure 2 This is a block diagram of a processing apparatus for a programmable testing and analysis system for a wire-controlled test object according to an embodiment of the present invention. See also... Figure 2The processing device may include: a file acquisition and parsing unit 110, a control instruction abstraction unit 120, a control logic abstraction unit 130, a control instruction matching unit 140, a control logic matching unit 150, and a control instruction setting and transmission unit 160.
[0052] The file acquisition and parsing unit 110 can be configured to acquire the communication data definition file of the drive-by-wire test object and parse the acquired communication data definition file of the drive-by-wire test object to obtain information about the control command signals and control logic signals of the drive-by-wire test object.
[0053] The file acquisition and parsing unit 110 can acquire communication data definition files of the drive-by-wire test object from a specified source or location. These files contain details and specifications related to the communication and control of the drive-by-wire test object. By parsing these communication data definition files, the file acquisition and parsing unit 110 can extract information about the control command signals of the drive-by-wire test object. This information includes the communication format messages of the drive-by-wire test object, that is, the specific format and structure of how the drive-by-wire test object receives and sends messages. Understanding these formats and structures is crucial for correctly generating and parsing control commands.
[0054] For example, when the drive-by-wire test object is a vehicle, its communication data definition file is a Database CAN (DBC) file. This file defines the vehicle's CAN communication format and contains all the key information required for CAN bus communication, such as signal definitions, value tables, message definitions, communication compatibility, and fault diagnosis. DBC files are typically provided by vehicle manufacturers or system integrators to ensure communication compatibility and accuracy between different drive-by-wire test objects and drive-by-wire test systems.
[0055] Furthermore, the file acquisition and parsing unit 110 also extracts information about the control logic signals of the drive-by-wire test object. This information covers the logical flow of the test object under different conditions. For example, the initialization logic defines the initialization process of the test object at startup; the handshake logic defines how the test object establishes a connection and synchronization with the drive-by-wire test system; the mode switching logic defines how the test object switches between different operating modes; and the communication verification logic defines the reliability and effectiveness of communication between the test object and the drive-by-wire test system. By parsing this control logic signal information, the testing of the drive-by-wire system can be better designed and implemented, ensuring the safety and reliability of the system.
[0056] The file acquisition and parsing unit 110 parses the communication data definition file and obtains the aforementioned key information to generate accurate control commands and achieve precise control of the wire-controlled test object. Simultaneously, this key information also helps the processing device better understand the behavior and performance of the test object, thereby enabling more effective design and execution of test cases.
[0057] The control command abstraction unit 120 can be configured to map the obtained control command signal information about the drive-by-wire test object into corresponding abstract control command messages according to a predetermined control command matching rule. The control logic abstraction unit 130 can be configured to map the obtained control logic signal information about the drive-by-wire test object into corresponding abstract control logic messages according to a predetermined control logic matching rule.
[0058] This process involves matching the specific control signals and logic of the drive-by-wire test object with predefined abstract control signals and logic. Through parsing and matching, the different control logics and control signals of various drive-by-wire test objects can be standardized into a unified control interface and signals. This enables the use of universal control signals to control different drive-by-wire objects, achieving the universality and broad applicability of drive-by-wire testing.
[0059] To achieve the above mapping, the control command matching unit 140 and the control logic matching unit 150 store predetermined control command matching rule mapping tables and control logic matching rule mapping tables. These mapping tables contain the necessary rules to ensure that signal information can be correctly parsed and converted. For example, Abstract_Acceleration represents an abstract acceleration control signal, Abstract_Steering represents an abstract steering angle control signal, etc.
[0060] Specifically, the control command matching unit 140 is communicatively connected to the control command abstraction unit 120. The control command matching unit 140 stores a predetermined control command matching rule mapping table and provides the stored predetermined control command matching rule mapping table to the control command abstraction unit 120. The control logic matching unit 150 is communicatively connected to the control logic abstraction unit 130. The control logic matching unit 150 stores a predetermined control logic matching rule mapping table and provides the stored predetermined control logic matching rule mapping table to the control logic abstraction unit 130.
[0061] According to the embodiments of the present invention, wired control testing of different test objects can be supported. For different test objects, only the DBC file of the test object and the tester's programming configuration of the control protocol for different test scenarios are required, thereby quickly adapting to different test objects. This design makes wired control testing more flexible and scalable, while also improving testing efficiency and accuracy.
[0062] The control command setting and transmission unit can be configured to obtain test case input from the user interface and parse the obtained test case input. According to the predetermined control command matching rules and predetermined control logic matching rules, the input is converted into the target control command of the wire-controlled test object. That is, the input abstract control command message and abstract control logic message are converted into the target control command suitable for the wire-controlled test object, and the target control command is sent to the communication interface device.
[0063] According to embodiments of the present invention, the target control command can be set as a non-periodic signal and / or a periodic signal. For example, the abstract acceleration control signal Abstract_Acceleration, the abstract steering angle control signal Abstract_Steering, etc., can be set as a sinusoidal signal, a periodic step signal, or a single step signal. Furthermore, the amplitude and period of the periodic signal can be set to meet various test requirements. This includes configuring the period and amplitude of the sinusoidal signal, the period and amplitude of the step signal, and generating custom signals using user-defined functions.
[0064] A sinusoidal periodic signal can be set as shown in equation (1), where A is the amplitude of the sinusoidal signal, T is the period of the sinusoidal signal, and t is the time variable. This is the initial phase angle.
[0065]
[0066] The step periodic signal can be set as shown in equation (2), where A is the amplitude of the periodic step signal, T is the period of the step signal, and t is the time variable.
[0067] y = f(t) = 0 0 ≤ t ≤ T / 2
[0068] y=f(t)=AT / 2≤t≤T (2)
[0069] According to an embodiment of the present invention, the system for programmable testing and analysis of drive-by-wire test objects may further include a storage device. The storage device may be configured to store control signals and control logic of one or more previously configured drive-by-wire test objects. When testing the same model of drive-by-wire test object again, the previously configured information can be directly loaded. For new and unknown test objects, the control signals and control logic of the drive-by-wire test object are obtained through the above-described automatic parsing and programming configuration method, realizing a universal drive-by-wire testing method.
[0070] Storage devices can be located inside or outside the processing device and can include non-volatile computer-readable recording media. Examples of computer-readable recording media include hard disk drives (HDDs), solid-state drives (SSDs), silicon disk drives (SDDs), read-only memory (ROM), random access memory (RAM), CD-ROMs, magnetic tapes, floppy disks, optical data storage devices, etc.
[0071] See back Figure 1 According to an embodiment of the present invention, the communication interface device 300 acts as a communication bridge between the processing device 100 and the wire-controlled test object 400. The communication interface device 300 can be connected to the processing device 100 via a first communication line to receive target control commands from the processing device 100. These commands are generated by the processing device 100 based on test case inputs provided by the user interface 200, and are intended to guide the wire-controlled test object 400 to complete specific operations and tasks. Communication between the communication interface device 300 and the processing device 100 can be achieved via wired or wireless means, depending on the connection type and communication protocol between the communication interface device 300 and the processing device 100. According to an embodiment of the present invention, the first communication line may include a USB-CAN cable, a USB-CANFD cable, etc., but the present invention is not limited thereto.
[0072] The communication interface device 300 can also be connected to the wire-controlled test object 400 via a second communication line, sending target control commands to the wire-controlled test object 400 to enable it to perform specific operations and tasks. Communication between the communication interface device 300 and the wire-controlled test object 400 can be achieved via wired or wireless means, depending on the connection type and communication protocol between them. According to an embodiment of the present invention, the second communication line may include a CAN bus, CANFD bus, Ethernet, LIN bus, etc., but the present invention is not limited to these.
[0073] In embodiments of the present invention, the communication interface device 300 is a communication device supporting CAN or CANFD, used for sending and receiving CAN messages. However, depending on different embodiments, the communication interface device 300 can be adjusted to support devices with different communication lines.
[0074] In addition, the communication interface device 300 is also responsible for forwarding feedback information from the drive-by-wire test object 400. This feedback information may include the status of the drive-by-wire test object, sensor data, execution results, etc., reflecting the performance and status of the drive-by-wire test object during the execution of target control commands. After receiving the feedback information from the drive-by-wire test object 400, the communication interface device 300 sends this feedback information to the processing device 100. The processing device 100 can analyze and process this feedback information to evaluate the performance and test results of the drive-by-wire test object. For example, the processing device can check whether the drive-by-wire test object accurately executed the target control commands, and whether there are any deviations or errors.
[0075] Furthermore, the processing device can also visualize the feedback information from the drive-by-wire test object to the user through the user interface 200. For example, it can display real-time data such as the position, speed, and acceleration of the drive-by-wire test object, or plot curves and graphs showing changes during the test. In this way, users can intuitively understand the performance of the drive-by-wire test object and the test process, thereby better evaluating the test results and making corresponding decisions.
[0076] See Figure 2 The user interface 200 may include a feedback signal display submodule 210 and a test result evaluation submodule 220. The feedback signal display submodule 210 is responsible for extracting the signal values that need to be visualized from the vehicle's feedback signals and then dynamically plotting curves. The test result evaluation submodule 220 is responsible for comparing the target value or state of the drive-by-wire test object with the actual response value or state and calculating the corresponding drive-by-wire test results.
[0077] The programmable testing and analysis system for wire-controlled test objects according to an embodiment of the present invention not only supports online real-time visualization and analysis of test data, but also supports data encryption and storage for subsequent offline analysis and evaluation of test data.
[0078] Figure 3 This is a flowchart of a method for programmable testing and analysis of a wire-controlled test object according to an embodiment of the present invention.
[0079] In step S31, hardware wiring is performed. The communication interface device is connected to the processing device via the first communication line, and the wired test object is connected to the communication interface device via the second communication line.
[0080] In step S32, the communication data definition file of the wire-controlled test object is obtained, and the obtained communication data definition file of the wire-controlled test object is parsed to obtain information about the control command signals of the wire-controlled test object and information about the control logic signals of the wire-controlled test object.
[0081] In step S33, according to the predetermined control command matching rules and the predetermined control logic matching rules, the obtained information about the control command signal of the drive-by-wire test object is mapped into the corresponding abstract control command message, and the obtained information about the control logic signal of the drive-by-wire test object is mapped into the corresponding abstract control logic message.
[0082] In step S34, input is obtained for the test cases of the wired test object.
[0083] In step S35, the input of the test cases for the drive-by-wire test object is parsed, and the target control command for the drive-by-wire test object is determined based on the predetermined control command matching rules and predetermined control logic matching rules, as well as the input.
[0084] In step S36, the target control command is sent to the wire-controlled test object.
[0085] In step S37, the feedback information of the wire-controlled test object is sent to the processing device, the feedback information of the wire-controlled test object is visualized, and the performance of the wire-controlled test object is analyzed and evaluated in real time.
[0086] The following describes the workflow of a programmable testing and analysis system for drive-by-wire test objects according to an embodiment of the present invention, using a vehicle as the test object and CAN communication as the in-vehicle communication method. Figure 4 This is a flowchart of a system for programmable testing and analysis of a wire-controlled test object according to an embodiment of the present invention.
[0087] See Figure 4 In step S41, hardware wiring is performed. The communication interface device is connected to the processing device via a USB-CANFD cable, and the vehicle under test is connected to the communication interface device via the CAN bus.
[0088] In step S42, the DBC file of the vehicle under test is obtained and parsed to obtain information about the control command signals and control logic signals of the vehicle under test.
[0089] In step S43, according to the predetermined control command matching rules and the predetermined control logic matching rules, the obtained information about the control command signals of the vehicle under test is mapped into corresponding abstract control command messages, and the obtained information about the control logic signals of the vehicle under test is mapped into corresponding abstract control logic messages.
[0090] In step S44, configure the communication parameters. This includes configuring the CAN communication transmission speed and channel used by the CAN communication hardware. These parameters need to be set according to the actual hardware devices and communication requirements.
[0091] Step S45 involves performing communication initialization and handshake checks. This is to ensure that the test end and the test object can communicate normally. The initialization logic and handshake logic may differ depending on the test object, and therefore need to be adjusted according to the actual situation.
[0092] In addition to CAN bus communication, other communication methods such as Ethernet or LIN bus communication can also be used for in-vehicle communication. Therefore, according to different in-vehicle communication methods, the corresponding communication parameters, communication initialization and handshake checks are configured to carry out signal transmission between the test end and the test object end, thereby realizing remote test and debugging scenarios.
[0093] Step S46: Determine whether communication initialization and handshake checks were successful. If communication initialization and handshake checks were successful, proceed to step S47. If communication initialization and handshake checks failed, return to step S43 until communication initialization and handshake checks are successful.
[0094] In step S47, test cases are set for the vehicle under test. Target control commands are set according to the specific test case scenario. If necessary, control input values are configured, such as periodic sine waves, periodic step signals, or custom values.
[0095] Specifically, setting test cases for the vehicle under test may include: obtaining input for the test cases of the vehicle under test, parsing the obtained input for the test cases of the vehicle under test, determining the target control command for the vehicle under test based on predetermined control command matching rules and predetermined control logic matching rules, and based on the input.
[0096] In step S48, the target control command is sent to the vehicle under test. The configured target control command is sent to the vehicle under test. For target control commands of different cycles, the sending interval for each target control command can be set.
[0097] In step S49, the feedback information from the vehicle under test is sent to the processing device, enabling visualization of the feedback information and real-time analysis and evaluation of the vehicle's performance. For example, curves are plotted and data is analyzed to evaluate the vehicle's performance, including parameters such as drive-by-wire response delay, steady-state error, and overshoot. According to the embodiments of the present invention, various visualization and data editing options can be supported, facilitating real-time analysis. Furthermore, the data can also be saved for offline analysis.
[0098] After completing the testing requirements, disconnect the connections between the various hardware components.
[0099] The system and method of this invention automatically parse the DBC files of the vehicle under test. By providing a programming interface, the specific control logic and communication protocols of each drive-by-wire object can be configured. This aligns the different and independent control signals and control logic of the drive-by-wire test objects to a predefined, abstract, and universal control signal framework. This provides unified and universal drive-by-wire testing support for different test objects, eliminates the need to modify and create control signals, and makes the control logic applicable to each individual drive-by-wire test object. This efficiency improvement simplifies drive-by-wire testing.
[0100] The various embodiments of the present invention are not an exhaustive list of all possible combinations, but are intended to describe representative aspects of the invention, and the contents described in the various embodiments can be applied independently or in two or more combinations.
[0101] The description of the exemplary embodiments presented above is merely illustrative of the technical solutions of the present invention and is not intended to be exhaustive, nor is it intended to limit the invention to the precise forms described. Obviously, those skilled in the art can make many changes and variations based on the above teachings. The exemplary embodiments were chosen and described to explain the specific principles of the invention and its practical applications, thereby enabling others skilled in the art to understand, implement, and utilize the various exemplary embodiments of the invention and their various alternatives and modifications. The scope of protection of the present invention is intended to be defined by the appended claims and their equivalents.
Claims
1. A programmable testing and analysis system for wire-controlled test objects, comprising: A user interface configured to receive input for test cases related to the wired test object; A processing device, which is communicatively connected to a user interface, is configured to parse the input of test cases about the drive-by-wire test object, determine the target control command of the drive-by-wire test object based on the input according to a predetermined control command matching rule and a predetermined control logic matching rule; as well as A communication interface device is communicatively connected to a processing device and a drive-by-wire test object, and is configured to receive a target control command for the drive-by-wire test object determined by the processing device, send the target control command to the drive-by-wire test object, and send feedback information from the drive-by-wire test object to the processing device, thereby making the feedback information of the drive-by-wire test object visible and performing real-time analysis and evaluation of the performance of the drive-by-wire test object.
2. The system for programmable testing and analysis of wire-controlled test objects according to claim 1, wherein, The processing apparatus further includes: The file acquisition and parsing unit is configured to acquire the communication data definition file of the wire-controlled test object and parse the acquired communication data definition file of the wire-controlled test object to obtain information about the control command signals and control logic signals of the wire-controlled test object. The control command abstraction unit is configured to map the obtained control command signal information about the drive-by-wire test object into corresponding abstract control command messages according to a predetermined control command matching rule, and to store the mapping relationship between the control command signal information about the drive-by-wire test object and the corresponding abstract control command messages. A control logic abstraction unit is configured to map the obtained control logic signal information about the drive-by-wire test object into corresponding abstract control logic messages according to a predetermined control logic matching rule, and to store the mapping relationship between the control logic signal information of the drive-by-wire test object and the corresponding abstract control logic messages; and The control command setting and transmission unit is configured to obtain test case input from the user interface and parse the obtained test case input, convert the input into target control commands for the wire-controlled test object according to predetermined control command matching rules and predetermined control logic matching rules, and send the target control commands to the communication interface device.
3. The system for programmable testing and analysis of wire-controlled test objects according to claim 2, further comprising: A control command matching unit, which is communicatively connected to a control command abstraction unit, stores a predetermined control command matching rule mapping table and provides the stored predetermined control command matching rule mapping table to the control command abstraction unit. as well as A control logic matching unit is communicatively connected to a control logic abstraction unit. The control logic matching unit stores a predetermined control logic matching rule mapping table and provides the stored predetermined control logic matching rule mapping table to the control logic abstraction unit.
4. The system for programmable testing and analysis of wire-controlled test objects according to claim 1, wherein: The communication interface device is connected to the processing device via a first communication line, and the communication interface device is connected to the wire-controlled test object via a second communication line. The communication interface device is configured to: when receiving a target control command from the wire-controlled test object of the processing device, convert the target control command into a format suitable for transmission via the second communication line and send it to the wire-controlled test object; when receiving feedback information from the wire-controlled test object, convert the feedback information into a format suitable for transmission via the first communication line and send it to the processing device. The first communication line includes at least one USB-CAN cable and a USB-CANFD cable; The second communication line includes at least one of CAN bus, CANFD bus, Ethernet and LIN bus.
5. The system for programmable testing and analysis of wire-controlled test objects according to claim 1, wherein: The objects tested by drive-by-wire include vehicles, mobile robots, and industrial robotic arms; The inputs for test cases of wired control test objects include: the attributes of the wired control test object, the test scenario of the wired control test object, and the expected control behavior; The communication data definition file for the wired remote control test object includes a DBC file; The target control command is set to either a non-periodic signal or a periodic signal.
6. The system for programmable testing and analysis of wire-controlled test objects according to claim 2, wherein: Information regarding the control command signals of the drive-by-wire test object includes: at least one of the following: the communication signal definition, value table, message definition, and communication compatibility of the drive-by-wire test object; Information regarding the control logic signals of the remote control test object includes at least one of the following: the initialization logic, handshake logic, mode switching logic, and communication verification logic of the remote control test object.
7. The system for programmable testing and analysis of wire-controlled test objects according to claim 1, further comprising: A storage device configured to store feedback information from the wired test object for offline analysis and evaluation of the performance of the wired test object.
8. A method for programmable testing and analysis of wire-controlled test objects, comprising: The user interface is used to obtain input for test cases related to the wired test object; The processing device parses the input of test cases for the drive-by-wire test object, and determines the target control command for the drive-by-wire test object based on the predetermined control command matching rules and predetermined control logic matching rules, as well as the input. The system receives the target control command of the wire-controlled test object through the communication interface device, sends the target control command to the wire-controlled test object, and sends the feedback information of the wire-controlled test object to the processing device, so that the feedback information of the wire-controlled test object is visualized and the performance of the wire-controlled test object is analyzed and evaluated in real time.
9. The method for programmable testing and analysis of a wire-controlled test object according to claim 8, the method further comprising: Obtain the communication data definition file of the drive-by-wire test object, and parse the obtained communication data definition file of the drive-by-wire test object to obtain information about the control command signals and control logic signals of the drive-by-wire test object; According to the predetermined control command matching rules, the obtained information about the control command signal of the drive-by-wire test object is mapped into the corresponding abstract control command message, and the mapping relationship between the information about the control command signal of the drive-by-wire test object and the corresponding abstract control command message is stored. According to the predetermined control logic matching rules, the obtained information about the control logic signals of the drive-by-wire test object is mapped to the corresponding abstract control logic messages, and the mapping relationship between the information about the control logic signals of the drive-by-wire test object and the corresponding abstract control logic messages is stored. The system obtains test case input from the user interface and parses the obtained test case input. Based on predetermined control instruction matching rules and predetermined control logic matching rules, the input is converted into target control instructions for the wire-controlled test object and then sent to the communication interface device.
10. The method for programmable testing and analysis of a wire-controlled test object according to claim 9, the method further comprising: When the communication interface device receives the target control command of the wire-controlled test object from the processing device, it converts the target control command into a format suitable for transmission via the second communication line and sends it to the wire-controlled test object. When it receives feedback information from the wire-controlled test object, it converts the feedback information into a format suitable for transmission via the first communication line and sends it to the processing device. The first communication line includes at least one USB-CAN cable and a USB-CANFD cable; The second communication line includes at least one of CAN bus, CANFD bus, Ethernet and LIN bus.
11. The method for programmable testing and analysis of a wire-controlled test object according to claim 8, wherein: The drive-by-wire test objects include at least one vehicle, mobile robot, and industrial robotic arm; The inputs for test cases of a wired control test object include: the attributes of the wired control test object, the test scenario of the wired control test object, and at least one of the expected control behaviors; The communication data definition file for the wired remote control test object includes a DBC file; The target control command is set to either a non-periodic signal or a periodic signal.
12. The method for programmable testing and analysis of a wire-controlled test object according to claim 8, the method further comprising: Store feedback information from the drive-by-wire test object for offline analysis and evaluation of its performance.
13. A computer-readable storage medium storing computer instructions thereon, characterized in that, When this computer instruction is executed by a processing device, it performs the following steps: The user interface is used to obtain input for test cases related to the wired test object; The processing device parses the input of test cases for the drive-by-wire test object, and determines the target control command for the drive-by-wire test object based on the predetermined control command matching rules and predetermined control logic matching rules, as well as the input. The system receives the target control command of the wire-controlled test object through the communication interface device, sends the target control command to the wire-controlled test object, and sends the feedback information of the wire-controlled test object to the processing device, so that the feedback information of the wire-controlled test object is visualized and the performance of the wire-controlled test object is analyzed and evaluated in real time.