An integrated testing method, system, device and medium based on SOA architecture

By adopting an integrated test method based on SOA architecture in the functional test of the opening and closing parts bench, the motor running state is simulated and the running state is obtained, and the problem of the inability to change and feedback in the existing technology is solved, and the accuracy of functional characteristics is achieved Verification and commissioning guarantee.

CN116068995BActive Publication Date: 2025-02-11CHONGQING CHANGAN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310002610.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-03
Publication Date
2025-02-11
Estimated Expiration
2043-01-03

AI Technical Summary

Technical Problem

In the functional test of the existing opening and closing parts bench, the motion state cannot be changed and feedback, making it difficult to verify functional characteristics, such as the automatic window drop function cannot detect the target position.

Method used

The integrated testing method based on the SOA architecture is adopted, and the motor operation status is simulated by providing the controlled object model docking function services, and the motor operation status is obtained until the target state is reached and the test is completed.

Benefits of technology

It realizes accurate verification of the functional characteristics of the opening and closing parts, ensures the smooth use of relevant functions, and avoids the disadvantage of not being able to measure the functional value due to the lack of the correct motion state value of the underlying feedback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116068995B_ABST
    Figure CN116068995B_ABST
Patent Text Reader

Abstract

The present application provides an integrated testing method, system, device and medium based on SOA architecture, the method comprising: providing a controlled object model, connecting the functional services corresponding to the opening and closing parts of the vehicle through the controlled object model to simulate the operation of the motor corresponding to the opening and closing parts; inputting the control command of the application layer into the controlled object model, calling the corresponding functional service based on the control command, and obtaining the operating status of the corresponding motor; returning the operating status to the application layer, so that the application layer outputs the control command based on the operating status, until the operating status reaches the target operating status, and the test is completed. The present application can perform functional closed-loop testing on each opening and closing part to ensure the effectiveness of the new function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent vehicle testing applications, and in particular to an integrated testing method, system, device and medium based on a SOA architecture. Background Art

[0002] At present, in the bench function test of opening and closing parts, some movement states cannot be changed and feedbacked, and the underlying movement state is the default value, making it difficult to verify the corresponding functional characteristics. For example, in the functional verification of the window bench, the fluctuation automatic lowering switch sends an automatic lowering command, but the actual position of the window is the default value and will not change accordingly, so it will not be detected that the window has reached the target position required by the command. This greatly hinders the verification and commissioning of related functions, and will to a certain extent delay the commissioning of related functional characteristics. Summary of the invention

[0003] In view of the above problems existing in the prior art, the present application proposes an integrated testing method, system, device and medium based on SOA architecture, which mainly solves the problem of difficulty in functional testing of existing opening and closing component benches.

[0004] In order to achieve the above-mentioned purpose and other purposes, the technical solution adopted in this application is as follows.

[0005] This application provides an integrated testing method based on SOA architecture, including:

[0006] Providing a controlled object model, and connecting the functional services corresponding to the opening and closing parts of the vehicle through the controlled object model to simulate the operation of the motor corresponding to the opening and closing parts;

[0007] Inputting a control command of the application layer into the controlled object model, calling a corresponding functional service based on the control command, and obtaining the operating status of the corresponding motor;

[0008] The running state is returned to the application layer, so that the application layer outputs a control command based on the running state until the running state reaches the target running state, thereby completing the test.

[0009] In one embodiment of the present application, the controlled object model provides an interface that is consistent with the name of each functional service, and the connection between the controlled object model and the functional service is completed by matching the interface through the name.

[0010] In one embodiment of the present application, the motor operating state includes: the actual movement state of the motor, the motor fault state, and the actual percentage position of the corresponding opening and closing member.

[0011] In an embodiment of the present application, the corresponding functional service is called based on the control command to obtain the operating state of the corresponding motor, including:

[0012] Inputting a preset motor fault state into the controlled object model;

[0013] If the preset motor fault state is no fault, inputting the control command into a corresponding functional service, and outputting the actual motion state of the motor in response to the control command;

[0014] If the preset motor fault state is faulty, the motor operating state corresponding to the fault is output.

[0015] In one embodiment of the present application, after inputting the preset motor fault state into the controlled object model, the method further includes:

[0016] The preset motor fault state is returned to the application layer, so that the application layer outputs a control command based on the preset motor fault state, and obtains the operating state of the motor corresponding to the fault-free opening and closing component for subsequent testing.

[0017] In an embodiment of the present application, the corresponding functional service is called based on the control command to obtain the operating state of the corresponding motor, including:

[0018] If the control command is to control the action of the corresponding opening and closing member, the percentage position of the corresponding opening and closing member is increased or decreased based on the control signal cycle, and the percentage position of the opening and closing member is output.

[0019] In an embodiment of the present application, the application layer outputs a control command based on the running state, including:

[0020] The target position corresponding to the control command is compared with the percentage position returned by the controlled object model. If the target position is greater than the percentage position, a control command to open the corresponding opening and closing component is output; if the target position is less than the percentage position, a control command to close the corresponding opening and closing component is output.

[0021] The present application also provides an integrated testing system based on SOA architecture, including:

[0022] A service integration module, used to provide a controlled object model, and to connect the functional services corresponding to the opening and closing parts of the vehicle through the controlled object model to simulate the operation of the motor corresponding to the opening and closing parts;

[0023] A response output module, used for inputting the control command of the application layer into the controlled object model, calling the corresponding functional service based on the control command, and obtaining the operating state of the corresponding motor;

[0024] The test control module is used to return the running state to the application layer so that the application layer outputs control commands based on the running state until the running state reaches the target running state and the test is completed.

[0025] The present application also provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the SOA-based integrated testing method when executing the computer program.

[0026] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the integrated testing method based on the SOA architecture are implemented.

[0027] As described above, the present application provides an integrated testing method, system, device and medium based on SOA architecture, which have the following beneficial effects.

[0028] The present application provides a controlled object model, through which the functional services corresponding to the opening and closing parts of the vehicle are connected to the controlled object model to simulate the operation of the motor corresponding to the opening and closing parts; the control command of the application layer is input into the controlled object model, and the corresponding functional service is called based on the control command to obtain the operating status of the corresponding motor; the operating status is returned to the application layer, so that the application layer outputs the control command based on the operating status until the operating status reaches the target operating status, and the test is completed. The present application simulates and integrates the functional services of each opening and closing part through the controlled object model, and then simulates the operation of the motor, and outputs the operating status in response to the control command of the application layer, and returns it to the application layer to realize closed-loop testing. The operating status can change according to the control command, and the functional characteristics of each test bench can be accurately verified to ensure the smooth commissioning of related functions. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 The figure is a flowchart of an integrated testing method based on SOA architecture in one embodiment of the present application.

[0030] Figure 2 It is a logic block diagram of a controlled object model in one embodiment of the present application.

[0031] Figure 3 This is a logic block diagram of integrated testing in one embodiment of the present application.

[0032] Figure 4 This is a module diagram of an integrated testing system based on SOA architecture in one embodiment of the present application.

[0033] Figure 5 It is a schematic diagram of the structure of a device in one embodiment of the present application. DETAILED DESCRIPTION

[0034] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0035] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.

[0036] SOA (Service-Oriented Architecture) is a component model that connects different functional units of an application (called services) through well-defined interfaces and contracts between these services. The interface is defined in a neutral way and should be independent of the hardware platform, operating system, and programming language that implements the service. This allows services built in various such systems to interact in a unified and common way.

[0037] Software-defined cars have become a consensus in the industry. Based on the SOA architecture, it can achieve decoupling between software and software, software and hardware, improve software flexibility, and reduce the cost of software secondary development and maintenance. Matlab / Simulink tools are used for modeling to realize the service-oriented model development of each module. Code files are generated under AUTOSAR configuration for real vehicle integration.

[0038] For the bench functional characteristic test of opening and closing parts, some motion states cannot be changed and feedbacked. For example, in the bench functional verification of the window, the automatic lowering switch is turned on, the automatic lowering command is sent, and the window lowering indicator light is on, but the actual position of the window does not change accordingly. It is the default value, so it is not detected that the window has reached the target position, and the window does not stop automatically, that is, the reaction state of the bench is that the lowering indicator light does not go out automatically. For another example, when the window lowering command is accepted and executed, the motor operating state should feedback the value of Open, but because the motor operating state is the default value Stop, the new command call will mistakenly think that the window is in the Stop state, and the functional response deviates from the correct situation. Sunroofs, electric doors, and electric back doors will have the same problem, so it is impossible to verify whether the logic of the software is correct.

[0039] Based on the above problems existing in the prior art, an integrated testing method, system, device and medium based on SOA architecture are proposed in the embodiments of the present application. The technical solution of the present application is elaborated in detail below in conjunction with specific embodiments.

[0040] See also Figure 1 The present application provides an integrated testing method based on SOA architecture, which includes the following steps.

[0041] Step S100, providing a controlled object model, and connecting the functional service corresponding to the opening and closing parts of the vehicle through the controlled object model to simulate the operation of the motor corresponding to the opening and closing parts;

[0042] Step S110, inputting the control command of the application layer into the controlled object model, calling the corresponding functional service based on the control command, and obtaining the operating state of the corresponding motor;

[0043] Step S120, returning the running state to the application layer, so that the application layer outputs a control command based on the running state, until the running state reaches the target running state, and the test is completed.

[0044] In step S100, a controlled object model is provided, and functional services corresponding to opening and closing parts of the vehicle are connected to the controlled object model to simulate the operation of the motor corresponding to the opening and closing parts.

[0045] In one embodiment, the automobile opening and closing parts include body components that can be opened and closed. The range of opening and closing parts is relatively wide. Generally speaking, the opening and closing parts integrate the body hinges and other various accessories, such as the engine hood, the sunroof, windows, doors and trunk lid of the body. Corresponding functional services can be designed for each opening and closing part, and the functional services are connected to the preset controlled object model through their respective interfaces.

[0046] In one embodiment, the controlled object model provides an interface that is consistent with the name of each functional service, and the controlled object model is connected to the functional service by matching the interface through the name.

[0047] Specifically, the controlled object model is mainly used to simulate the changes and feedback of the underlying motion parameters of the opening and closing components, and correctly feedback the actual position, motor operation status and other parameters of the opening and closing components under motion state, forming a closed-loop test, so as to verify the logic and functional test of the functional service. The controlled object model, its calling interface name is consistent with the interface name of each functional service calling the input and output abstract layer, and its output interface name for feedback motion parameters is consistent with the input interface name of the functional service obtaining parameters from the bottom layer. Use the script tool to integrate the above-mentioned controlled object model with the functional services of each opening and closing component, automatically match and connect the interfaces, simulate input commands, and perform testing and simulation.

[0048] See also Figure 2 , Figure 2 This is a logic block diagram of the controlled object model in one embodiment of the present application. The environment configuration of the controlled object model is the same as that of the application layer software. It is a main control periodic function triggered periodically at 10ms. It provides a function class external call interface for the application layer to call, input control commands to it, simulate the operation of the motor according to the received control commands, and output the operating status of the motor. The operating status includes: actual motion state (Open, Close, Stop, Idle), motor fault state (Fault, Nofault), actual percentage position of the opening and closing parts, etc. The controlled object model can provide an external interface for docking with the application layer and receiving application layer control commands.

[0049] In step S110, a control command of the application layer is input into the controlled object model, and a corresponding functional service is called based on the control command to obtain the operating status of the corresponding motor.

[0050] In one embodiment, calling a corresponding functional service based on the control command to obtain the operating state of the corresponding motor includes:

[0051] Inputting a preset motor fault state into the controlled object model;

[0052] If the preset motor fault state is no fault, inputting the control command into a corresponding functional service, and outputting the actual motion state of the motor in response to the control command;

[0053] If the preset motor fault state is faulty, the motor operating state corresponding to the fault is output.

[0054] Specifically, when testing, the tester can configure the motor fault state and input the motor fault state into the controlled object model. During the test, two states, faulty or non-faulty, are simulated. In the non-faulty state, the received control command is transparently transmitted, that is, the received control command is Open, then the motor responds to the command normally, and the actual motion state output at this time is Open. The other states are the same as above. If the simulation is in a faulty state, the motor cannot respond to the control command, and the output motion state is Idle.

[0055] In one embodiment, after inputting the preset motor fault state into the controlled object model, the method further includes:

[0056] The preset motor fault state is returned to the application layer, so that the application layer outputs control commands based on the preset motor fault state, and obtains the running state of the corresponding motor of the opening and closing parts without faults for subsequent testing. Specifically, during the test, the tester simulates the faulty or fault-free state to be transparently transmitted, with the purpose of notifying the application layer whether the motor is faulty, so as to avoid repeated calls. That is, when the application layer receives that the corresponding opening and closing part is faulty, it will no longer output subsequent control commands to the opening and closing part, skip the opening and closing part, and output control commands for another opening and closing part that has not reported a fault for testing.

[0057] In one embodiment, a corresponding functional service is called based on the control command to obtain the operating status of the corresponding motor, including: if the control command is to control the action of the corresponding opening and closing component, the percentage position of the corresponding opening and closing component is increased or decreased based on the control signal cycle, and the percentage position of the opening and closing component is output.

[0058] In one embodiment, first, an initial position value is initialized. In the absence of a fault, if the control command received is Open, the actual percentage position value increases by 5 per cycle. If the control command received is Close, the actual position value decreases by 5 per cycle. If the control command received is Stop, the actual position stops changing. The actual position is always output periodically. The specific increment or decrement of each cycle can be set according to the actual application requirements and is not limited here.

[0059] In step S120, the running state is returned to the application layer, so that the application layer outputs a control command based on the running state until the running state reaches the target running state, thereby completing the test.

[0060] In one embodiment, the application layer outputs a control command based on the operating state, including: comparing the target position corresponding to the control command with the percentage position returned by the controlled object model; if the target position is greater than the percentage position, outputting a control command to open the corresponding opening and closing component; if the target position is less than the percentage position, outputting a control command to close the corresponding opening and closing component.

[0061] Specifically, the control command sent by the application layer is to open the window to 50 percent. In the first cycle after the control command is sent, the actual percentage position of the window calculated by the controlled object model is 20. By comparison, it is determined that the actual percentage position is less than the target position, and the window opening command is continued to be sent until the actual percentage position of the window reaches the target position in a certain cycle. Then the stop command is sent, and the controlled object model stops calculating the actual percentage position after receiving the command. The judgment process for closing the window is the same as that for opening the window, which will not be repeated here.

[0062] See also Figure 3 , Figure 3 This is a logic block diagram of the integrated test in one embodiment of the present application. In one embodiment, still taking the car window as an example, taking the car window as an example, in a fault-free state, the functional purpose is to allow the car window to automatically move to the 50% position. The logic of the application layer compares the target position (50%) with the actual position (output of the controlled object model). If the target position is greater than the actual position, it outputs Open, and if the target position is less than the actual position, it outputs Close. The above control commands call the interface in sequence. After the controlled object model receives the control command, it calculates the actual percentage position according to the logic described above and outputs it back to the application layer. When the application layer receives that the actual percentage position reaches 50%, a Stop command is sent at this time, and the external interface is called in sequence to transmit this control command to the controlled object model. The controlled object model receives the Stop command, the motor output state is Stop, and the actual percentage position stops calculating. The above completes the function of automatically moving the car window to the 50% position.

[0063] Based on the technical solution of the above embodiment of the present application, the disadvantage of being unable to measure the function value due to the lack of the correct motion state value of the underlying feedback is avoided. Because of the lack of underlying feedback value, that is, the actual position is always at the default value and will not change with the change of the control command, the automatic window lifting function cannot be tested and cannot stop automatically after reaching the target position. After introducing the controlled object model, similar functional characteristics can be verified, thereby verifying whether the application layer logic is correct. It is convenient to better troubleshoot problems after subsequent actual vehicle testing.

[0064] See also Figure 4 This embodiment provides an integrated testing system based on SOA architecture, which is used to execute the integrated testing method based on SOA architecture described in the above method embodiment. Since the technical principle of the system embodiment is similar to the technical principle of the above method embodiment, the same technical details will not be repeated.

[0065] In one embodiment, an integrated test system based on a SOA architecture includes: a service integration module 10, used to provide a controlled object model, and to connect to the functional services corresponding to the opening and closing parts of the vehicle through the controlled object model to simulate the operation of the motor corresponding to the opening and closing parts; a response output module 11, used to input the control command of the application layer into the controlled object model, and to call the corresponding functional service based on the control command to obtain the operating status of the corresponding motor; a test control module 12, used to return the operating status to the application layer, so that the application layer outputs the control command based on the operating status until the operating status reaches the target operating status, and the test is completed.

[0066] The embodiment of the present application also provides an integrated test device based on SOA architecture, which may include: one or more processors; and one or more machine-readable media having instructions stored thereon, which, when executed by the one or more processors, enable the device to execute Figure 1 In practical applications, the device can be used as a terminal device or a server. Examples of terminal devices may include: ultrasonic knife host, smart phone, tablet computer, e-book reader, MP3 (Moving Picture Experts Group Audio Layer III) player, MP4 (Moving Picture Experts Group Audio Layer IV) player, laptop computer, car computer, desktop computer, set-top box, smart TV, wearable device, etc. The embodiments of the present application do not limit the specific devices.

[0067] The present application also provides a computer-readable storage medium, in which one or more modules (programs) are stored. When the one or more modules are applied to a device, the device can execute the embodiment of the present application. Figure 1 The machine-readable medium may be any available medium that can be stored by a computer or a data storage device such as a server or a data center that includes one or more available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, a tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)).

[0068] See also Figure 5 This embodiment provides a device 80, which may be a desktop computer, a portable computer, a smart phone, etc. In detail, the device 80 at least includes: a memory 82 and a processor 83 connected via a bus 81, wherein the memory 82 is used to store a computer program, and the processor 83 is used to execute the computer program stored in the memory 82 to execute all or part of the steps in the aforementioned method embodiment.

[0069] The system bus mentioned above can be a Peripheral Pomponent Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface is used to realize the communication between the database access device and other devices (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM), and may also include non-volatile memory, such as at least one disk storage.

[0070] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0071] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.

Claims

1. An integrated testing method based on SOA architecture, characterized in that: include: Providing a controlled object model, and connecting the functional services corresponding to the opening and closing parts of the vehicle through the controlled object model to simulate the operation of the motor corresponding to the opening and closing parts; Inputting a control command of the application layer into the controlled object model, calling a corresponding functional service based on the control command, and obtaining the operating status of the corresponding motor; The running state of the motor includes: the actual motion state of the motor, the motor fault state and the actual percentage position of the corresponding opening and closing parts; based on the control command, the corresponding functional service is called to obtain the running state of the corresponding motor, including: inputting the preset motor fault state into the controlled object model; if the preset motor fault state is no fault, the control command is input into the corresponding functional service, and the actual motion state of the motor is output in response to the control command; if the preset motor fault state is a fault, the motor running state corresponding to the fault is output; after the preset motor fault state is input into the controlled object model, it also includes: returning the preset motor fault state to the application layer, so that the application layer outputs the control command based on the preset motor fault state, and obtains the running state of the motor corresponding to the opening and closing parts without faults for subsequent testing; The running state is returned to the application layer, so that the application layer outputs a control command based on the running state until the running state reaches the target running state, thereby completing the test.

2. The integrated testing method based on SOA architecture according to claim 1, characterized in that: The controlled object model provides an interface that is consistent with the name of each functional service, and the controlled object model is connected with the functional service by matching the interface through the name.

3. The integrated testing method based on SOA architecture according to claim 1, characterized in that: Based on the control command, the corresponding functional service is called to obtain the operating status of the corresponding motor, including: If the control command is to control the action of the corresponding opening and closing member, the percentage position of the corresponding opening and closing member is increased or decreased based on the control signal cycle, and the percentage position of the opening and closing member is output.

4. The integrated testing method based on SOA architecture according to claim 3 is characterized in that: The application layer outputs a control command based on the running state, including: The target position corresponding to the control command is compared with the percentage position returned by the controlled object model. If the target position is greater than the percentage position, a control command to open the corresponding opening and closing component is output; if the target position is less than the percentage position, a control command to close the corresponding opening and closing component is output.

5. An integrated testing system based on SOA architecture, characterized in that: include: A service integration module, used to provide a controlled object model, and to connect the functional services corresponding to the opening and closing parts of the vehicle through the controlled object model to simulate the operation of the motor corresponding to the opening and closing parts; A response output module, used for inputting the control command of the application layer into the controlled object model, calling the corresponding functional service based on the control command, and obtaining the operating state of the corresponding motor; The running state of the motor includes: the actual motion state of the motor, the motor fault state and the actual percentage position of the corresponding opening and closing parts; based on the control command, the corresponding functional service is called to obtain the running state of the corresponding motor, including: inputting the preset motor fault state into the controlled object model; if the preset motor fault state is no fault, the control command is input into the corresponding functional service, and the actual motion state of the motor is output in response to the control command; if the preset motor fault state is a fault, the motor running state corresponding to the fault is output; after the preset motor fault state is input into the controlled object model, it also includes: returning the preset motor fault state to the application layer, so that the application layer outputs the control command based on the preset motor fault state, and obtains the running state of the motor corresponding to the opening and closing parts without faults for subsequent testing; The test control module is used to return the running state to the application layer so that the application layer outputs control commands based on the running state until the running state reaches the target running state and the test is completed.

6. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the SOA architecture-based integrated testing method described in any one of claims 1 to 4 when executing the computer program.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the integrated testing method based on SOA architecture described in any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Test simulator of automotive electronic controller

    CN104298129A

  • Automatic automobile skylight assembly test device

    CN107491063A