An anti-pinch function service system based on SOA architecture
Through the anti-pinch function service-oriented system based on SOA architecture, the separation of anti-pinch software and hardware in body control is achieved, solving the problem of limited application flexibility and performance of the anti-pinch function, and improving the performance and development efficiency of the anti-pinch function. , reducing costs.
Patent Information
- Application Number
- CN202210075744.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-22
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-01-22
AI Technical Summary
In the existing vehicle body control method, the coupling between anti-pinch software and hardware is too strong, making it difficult to adapt different parts and performance. Moreover, due to cost constraints, high computing power MCUs cannot be used, and application flexibility is limited.
Adopt an anti-pinch function service-oriented system based on SOA architecture, realize the separation of software and hardware through the scene service layer, enhanced service layer, hardware abstraction layer and atomic service layer, isolate the hardware abstraction layer and enhanced service layer, and independently develop anti-pinch algorithm modules and main control logic operation to realize the separation of software and hardware of anti-pinch function.
It improves the performance and application flexibility of the anti-pinch function, shields the differences in hardware and underlying driver software provided by different hardware suppliers, reduces the research and development cycle and development costs, and realizes the reusability and independent development of the anti-pinch algorithm.
Smart Images

Figure CN114428602B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automobile anti-pinch function, and in particular to an anti-pinch function service system based on SOA architecture. Background Art
[0002] With the continuous deepening of the development of the "New Four Modernizations" in the automotive industry, the degree of automotive electrification, intelligence, and networking is also getting higher and higher; there is more and more attention and understanding of user needs, and the technologies of the ICT industry and the Internet industry continue to penetrate into the automotive industry, which together promotes the development of automotive electronic and electrical hardware and software technologies and related standards. For a long time, the development of on-board electronic control units has been relatively independent, which has resulted in a lot of development work for function adjustments and upgrades, as well as the addition or update of in-vehicle electronic control units. Therefore, SOA (Service-Oriented Architecture) is introduced to design in-vehicle functions as services and implement them in software, so as to ensure the decoupling of service functions and reduce secondary development costs.
[0003] In the field of body control, the anti-pinch function design of objects such as windows, sunroofs (including sunshades), electric tailgates, electric front hoods, electric doors (side doors, side sliding doors, gull-wing doors, scissor doors, and double doors) is a key research direction. For example, the Chinese patent with publication number CN111927232A discloses "A vehicle and its tailgate anti-pinch method, device and equipment", which includes: identifying that the tailgate of the vehicle is in motion and obtaining the first running direction of the tailgate; detecting whether there is a first obstacle in the first running direction of the tailgate; if there is a first obstacle in the first running direction, controlling the tailgate to reverse to the second running direction.
[0004] The above-mentioned existing vehicle and tailgate anti-pinch method can be regarded as an anti-pinch software, which controls the tailgate to reverse and run in the opposite direction when it is determined that there is an obstacle in the current running direction of the tailgate, so as to effectively avoid the tailgate from clamping the obstacle during movement. The existing anti-pinch software includes an anti-pinch function algorithm for judging and generating an anti-pinch signal and a real-time position value, and a main control logic operation for generating a drive signal based on the anti-pinch signal, the real-time position value and the state of the drive motor.
[0005] However, under the existing body control mode and framework, the coupling between software and hardware is too strong, and the anti-pinch software is generally used in combination with the opening and closing component controller (hardware). On the one hand, different components such as windows, sunroofs, electric tailgates, electric front hoods, and electric doors are generally provided by different suppliers, which are difficult to adapt to the opening and closing component controller, resulting in the performance of the anti-pinch function being difficult to reflect. On the other hand, the opening and closing component controller is positioned as a small controller, which is greatly affected by the cost. It is impossible to use an MCU with higher computing power, nor can it support algorithm models using Fourier transform and calculus algorithms. It can only use ordinary single-chip microcomputers to run simple C language programs, resulting in the application flexibility of the anti-pinch function being limited. For this reason, the applicant thought of realizing the service-oriented anti-pinch function based on the SOA architecture to realize the separation of software and hardware of the anti-pinch function, thereby improving the performance and application flexibility of the anti-pinch function. However, how to design a solution based on the SOA architecture that can effectively realize the separation of software and hardware of the anti-pinch function is a technical problem that needs to be solved urgently. Summary of the invention
[0006] In view of the above-mentioned deficiencies in the prior art, the technical problem to be solved by the present invention is: how to provide an anti-pinch function service system based on SOA architecture to achieve the separation of software and hardware of the anti-pinch function, thereby improving the performance and application flexibility of the anti-pinch function.
[0007] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0008] An anti-pinch function service system based on SOA architecture, including:
[0009] The scene service layer is used to trigger the anti-pinch function of the corresponding scene and generate the corresponding trigger signal;
[0010] Enhanced service layer, used to implement the main control logic operation of the anti-pinch function;
[0011] The hardware abstraction layer is used to realize the abstraction of the corresponding drive motor and collect the motor data of the corresponding drive motor;
[0012] The atomic service layer is used to isolate the hardware abstraction layer and the enhanced service layer, and is arranged with an anti-pinch algorithm module for implementing the anti-pinch function algorithm.
[0013] Preferably, the atomic service layer generates a corresponding stall signal based on the motor data collected by the hardware abstraction layer, and generates a corresponding anti-pinch signal and a real-time position value through an anti-pinch algorithm module, and sends the stall signal, anti-pinch signal and real-time position value to the enhanced service layer;
[0014] After receiving the trigger signal from the scene service layer, the enhanced service layer performs the main control logic operation based on the stall signal, anti-pinch signal and real-time position value, generates the corresponding drive signal and sends it to the atomic service layer;
[0015] The atomic service layer receives the driving signal from the enhanced service layer and sends it to the hardware abstraction layer;
[0016] The hardware abstraction layer controls the corresponding drive motor based on the drive signal.
[0017] Preferably, the anti-pinch algorithm module is arranged in the atomic service layer by hot plugging;
[0018] In the absence of an anti-pinch algorithm module, the enhanced service layer can perform a main control logic operation based on the stall signal to generate a corresponding drive signal.
[0019] Preferably, the atomic service layer is also provided with a diagnosis module; the diagnosis module diagnoses the operating status of the corresponding drive motor based on the motor data, generates corresponding diagnosis results, and sends the diagnosis results to the enhanced service layer.
[0020] Preferably, the enhanced service layer is also used to perform main control logic operations in combination with the diagnosis results to generate corresponding drive signals.
[0021] Preferably, the hardware abstraction layer is also used to realize the abstraction of the corresponding trigger motor and collect the switch signal of the corresponding trigger motor;
[0022] The atomic service layer is also arranged with a switch scanning module for acquiring the switch signal and sending it to the enhanced service layer;
[0023] The enhancement service layer receives the switch signal and sends it to the scene service layer;
[0024] The scene service layer generates a corresponding trigger signal based on the switch signal.
[0025] Preferably, the motor data of the driving motor includes a current square wave signal of the driving motor.
[0026] Preferably, the current square wave signal of the drive motor is collected by a Hall sensor or a ripple processing circuit.
[0027] Preferably, the enhanced service layer is further used to generate the working mode of the anti-pinch algorithm module through the main control logic operation and send it to the atomic service layer;
[0028] The atomic service layer is used to control the anti-pinch algorithm module to execute the corresponding working mode.
[0029] Preferably, the working mode includes a normal mode and a calibration mode;
[0030] When the atomic service layer receives the correction mode, it controls the anti-pinch algorithm module to execute the correction mode and complete the parameter correction.
[0031] Compared with the prior art, the anti-pinch function service system of the present invention has the following beneficial effects:
[0032] The present invention isolates the hardware abstraction layer and the enhanced service layer through the atomic service layer, and the hardware abstraction layer and the enhanced service layer are strongly associated with the hardware (drive motor) and (anti-pinch) software, respectively, thereby realizing the separation of software and hardware of the anti-pinch function, making it possible to shield the differences in hardware and underlying driver software provided by different hardware suppliers, thereby improving the application flexibility of the anti-pinch function. At the same time, the present invention horizontally splits the anti-pinch function to obtain the anti-pinch algorithm module and the main control logic operation, and arranges them in the atomic service layer and the enhanced service layer respectively, so that the two major parts of the anti-pinch algorithm module and the main control logic operation can be developed independently and in parallel, thereby ensuring the development efficiency and independence of the anti-pinch function. In addition, the present invention arranges the anti-pinch algorithm module in the atomic service layer, so that the anti-pinch algorithm module can be as close to the hardware as possible under the premise of being separated from the hardware, which can ensure the application effect of the anti-pinch algorithm; and, the anti-pinch algorithm module can be reused for different projects, and only the travel data, position data, calibration parameters, etc. of the anti-pinch algorithm module need to be modified when facing different scenarios, but the overall model or software framework and the functions contained do not need to be changed, thereby greatly reducing the research and development cycle and saving development costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to make the purpose, technical solution and advantages of the invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings, in which:
[0034] Figure 1 This is the network architecture diagram of the anti-pinch function service system based on SOA architecture;
[0035] Figure 2 This is the main control logic operation flow chart of the main state machine. DETAILED DESCRIPTION
[0036] The following is a further detailed description through specific implementation methods:
[0037] Example:
[0038] This embodiment discloses an anti-pinch function service system based on SOA architecture.
[0039] like Figure 1 As shown in the figure, the anti-pinch function service system based on SOA architecture includes:
[0040] The scene service layer is used to trigger the anti-pinch function of the corresponding scene and generate the corresponding trigger signal;
[0041] The enhanced service layer is used to implement the main control logic operation of the anti-pinch function, and implements the main control logic operation through the main state machine. In this embodiment, the enhanced service layer provides an interface for scene service to call and receive the trigger signal of the scene service.
[0042] The hardware abstraction layer is used to realize the abstraction of the corresponding drive motor and collect the motor data of the corresponding drive motor;
[0043] The atomic service layer is used to isolate the hardware abstraction layer and the enhanced service layer, and is arranged with an anti-pinch algorithm module for implementing the anti-pinch function algorithm.
[0044] Specifically, the atomic service layer generates a corresponding stall signal based on the motor data collected by the hardware abstraction layer, and generates a corresponding anti-pinch signal and real-time position value through the anti-pinch algorithm module, and sends the stall signal, anti-pinch signal and real-time position value to the enhanced service layer;
[0045] After receiving the trigger signal from the scene service layer, the enhanced service layer performs the main control logic operation based on the stall signal, anti-pinch signal and real-time position value, generates the corresponding drive signal and sends it to the atomic service layer;
[0046] The atomic service layer receives the driving signal from the enhanced service layer and sends it to the hardware abstraction layer;
[0047] The hardware abstraction layer (I / O abstraction layer) controls the corresponding drive motor to work based on the drive signal. In this embodiment, the corresponding drive motor is controlled to retreat 15 cm or retreat to the bottom based on the drive signal, that is, anti-pinch retreat.
[0048] It should be noted that the scene service layer, enhanced service layer, hardware abstraction layer and atomic service layer of the anti-pinch function service system based on the SOA architecture of the present invention are built based on the SOA architecture and can run on existing servers or computers.
[0049] Specifically, the main control logic operation and anti-pinch algorithm of the anti-pinch function both adopt the anti-pinch judgment logic in the prior art, such as the anti-pinch judgment logic disclosed in "A vehicle and its tailgate anti-pinch method, device and equipment" with publication number CN111927232A. At the same time, different anti-pinch algorithm models are selected according to the different selection of the main chip of the opening and closing component controller. For example, if a chip with higher computing power is selected, the model developed by tools such as MATLAB can be used to support a large number of floating-point operations, while considering parameters such as ambient temperature, suitability, and aging coefficient to enhance the applicability and robustness of the algorithm. If a general-purpose chip is selected, the software can be built using C language, and the performance of the algorithm in each stroke can be improved through table lookup and calibration.
[0050] The present invention isolates the hardware abstraction layer and the enhanced service layer through the atomic service layer, and the hardware abstraction layer and the enhanced service layer are strongly associated with the hardware (drive motor) and (anti-pinch) software, respectively, thereby realizing the separation of software and hardware of the anti-pinch function, making it possible to shield the differences in hardware and underlying driver software provided by different hardware suppliers, thereby improving the application flexibility of the anti-pinch function. At the same time, the present invention horizontally splits the anti-pinch function to obtain the anti-pinch algorithm module and the main control logic operation, and arranges them in the atomic service layer and the enhanced service layer respectively, so that the two major parts of the anti-pinch algorithm module and the main control logic operation can be developed independently and in parallel, thereby ensuring the development efficiency and independence of the anti-pinch function. In addition, the present invention arranges the anti-pinch algorithm module in the atomic service layer, so that the anti-pinch algorithm module can be as close to the hardware as possible under the premise of being separated from the hardware, which can ensure the application effect of the anti-pinch algorithm; and, the anti-pinch algorithm module can be reused for different projects, and only the travel data, position data, calibration parameters, etc. of the anti-pinch algorithm module need to be modified when facing different scenarios, but the overall model or software framework and the functions contained do not need to be changed, thereby greatly reducing the research and development cycle and saving development costs.
[0051] This embodiment takes the automatic rising state of the car window as an example, and designs the main control logic operation flow of the main state machine as follows: Figure 2 As shown, IDLE refers to a state in which the drive motor is not running; the FG interval refers to the glass hiding interval (that is, the window glass is inside the door); the DF interval refers to the interval in which the anti-pinch algorithm module does not work (at this time, the window stops when encountering an obstacle); the CD interval refers to the interval in which the anti-pinch algorithm module works (at this time, the window moves back when encountering an obstacle).
[0052] In the specific implementation process, the anti-pinch algorithm module is arranged in the atomic service layer by hot plugging; when there is no anti-pinch algorithm module, the enhanced service layer can perform the main control logic operation based on the stall signal to generate the corresponding drive signal. Figure 2 It can be seen that the anti-pinch algorithm module is only effective in a specific area. In other non-anti-pinch algorithm working areas, it can be judged by current stall (stall signal). Since these areas do not involve anti-pinch retraction, the real-time position value of the anti-pinch algorithm module is not required. In the anti-pinch algorithm module working area, the anti-pinch algorithm module judgment result and the current stall judgment are retained. When the anti-pinch algorithm module is abnormal or does not exist, the control object can still stop moving when encountering obstacles, ensuring the safety of the components themselves and the driver and passengers.
[0053] The present invention can independently perform main control logic operations based on a stall signal when the anti-pinch algorithm module is abnormal or does not exist, so that the movement can be stopped when encountering an obstacle, thereby ensuring the safety of the components themselves and the driver and passengers.
[0054] In the specific implementation process, the atomic service layer is also arranged with a diagnosis module; the diagnosis module diagnoses the operating state of the corresponding drive motor based on the motor data, generates a corresponding diagnosis result, and sends the diagnosis result to the enhanced service layer. In this embodiment, the diagnosis of the operating state of the drive motor is realized through the diagnosis logic in the prior art.
[0055] The enhanced service layer is also used to perform main control logic operations in combination with the diagnosis results to generate corresponding drive signals. When the diagnosis result of the drive motor is abnormal operation, the enhanced service layer generates a drive signal for controlling the drive motor to stop running.
[0056] The present invention diagnoses the operating state of the corresponding drive motor through the diagnosis module, so that the drive motor can be controlled to stop running when the drive motor runs abnormally, thereby avoiding damage to the drive motor due to abnormal operation.
[0057] In the specific implementation process, the hardware abstraction layer is also used to realize the abstraction of the corresponding trigger motor and collect the switch signal of the corresponding trigger motor;
[0058] The atomic service layer is also arranged with a switch scanning module for acquiring the switch signal and sending it to the enhanced service layer;
[0059] The enhancement service layer receives the switch signal and sends it to the scene service layer;
[0060] The scene service layer generates a corresponding trigger signal based on the switch signal.
[0061] In the specific implementation process, the motor data of the driving motor includes the current square wave signal of the driving motor. In this embodiment, the current square wave signal of the driving motor is collected by a Hall sensor or a ripple processing circuit. In this embodiment, whether an obstacle is encountered is determined by the change of the square wave pulse width, and the real-time position is calculated by counting the number of square waves.
[0062] During the specific implementation process, the enhanced service layer is also used to generate the working mode of the anti-pinch algorithm module through the main control logic operation and send it to the atomic service layer; the atomic service layer is used to control the anti-pinch algorithm module to execute the corresponding working mode. The working mode includes normal mode and correction mode; when the atomic service layer receives the correction mode, it controls the anti-pinch algorithm module to execute the correction mode and complete the parameter correction, and feeds back the correction result to the enhanced service layer. This embodiment enters the correction mode after the anti-pinch algorithm module is powered on for the first time or loses its position.
[0063] The present invention generates a correction mode of the anti-pinch algorithm module by enhancing the service layer, so that the anti-pinch algorithm module can enter the correction mode to complete parameter correction after the first power-on or position loss, thereby better improving the performance and application effect of the anti-pinch algorithm module.
[0064] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit the technical solution. Those skilled in the art should understand that those modifications or equivalent substitutions of the technical solution of the present invention that do not depart from the purpose and scope of the technical solution should be included in the scope of the claims of the present invention.
Claims
1. An anti-pinch function service system based on SOA architecture, characterized in that: include: The scene service layer is used to trigger the anti-pinch function of the corresponding scene and generate the corresponding trigger signal; Enhanced service layer, used to implement the main control logic operation of the anti-pinch function; The hardware abstraction layer is used to realize the abstraction of the corresponding drive motor and collect the motor data of the corresponding drive motor; The atomic service layer is used to isolate the hardware abstraction layer and the enhanced service layer, and is provided with an anti-pinch algorithm module for implementing an anti-pinch function algorithm; The atomic service layer generates the corresponding stall signal based on the motor data collected by the hardware abstraction layer, and generates the corresponding anti-pinch signal and real-time position value through the anti-pinch algorithm module, and sends the stall signal, anti-pinch signal and real-time position value to the enhanced service layer; After receiving the trigger signal from the scene service layer, the enhanced service layer performs the main control logic operation based on the stall signal, anti-pinch signal and real-time position value, generates the corresponding drive signal and sends it to the atomic service layer; The atomic service layer receives the driving signal from the enhanced service layer and sends it to the hardware abstraction layer.
2. The anti-pinch function service system based on SOA architecture as claimed in claim 1, characterized in that: The hardware abstraction layer controls the corresponding drive motor based on the drive signal.
3. The anti-pinch function service system based on SOA architecture as claimed in claim 1, characterized in that: The anti-pinch algorithm module is arranged in the atomic service layer by hot-plugging; The enhanced service layer can perform the main control logic operation based on the stall signal and generate the corresponding drive signal when there is no anti-pinch algorithm module.
4. The anti-pinch function service system based on SOA architecture as claimed in claim 1, characterized in that: The atomic service layer is also equipped with a diagnostic module; the diagnostic module diagnoses the operating status of the corresponding drive motor based on the motor data, generates corresponding diagnostic results, and sends the diagnostic results to the enhanced service layer.
5. The anti-pinch function service system based on SOA architecture as claimed in claim 4, characterized in that: The enhanced service layer is also used to perform main control logic operations in combination with the diagnosis results to generate corresponding drive signals.
6. The anti-pinch function service system based on SOA architecture as claimed in claim 1, characterized in that: The hardware abstraction layer is also used to realize the abstraction of the corresponding trigger motor and collect the switch signal of the corresponding trigger motor; The atomic service layer is also arranged with a switch scanning module for acquiring the switch signal and sending it to the enhanced service layer; The enhancement service layer receives the switch signal and sends it to the scene service layer; The scene service layer generates a corresponding trigger signal based on the switch signal.
7. The anti-pinch function service system based on SOA architecture as claimed in claim 1, characterized in that: The motor data of the driving motor includes a current square wave signal of the driving motor.
8. The anti-pinch function service system based on SOA architecture as claimed in claim 7, characterized in that: The current square wave signal of the drive motor is collected through a Hall sensor or a ripple processing circuit.
9. The anti-pinch function service system based on SOA architecture as claimed in claim 1, characterized in that: The enhanced service layer is also used to generate the working mode of the anti-pinch algorithm module through the main control logic operation and send it to the atomic service layer; The atomic service layer is used to control the anti-pinch algorithm module to execute the corresponding working mode.
10. The anti-pinch function service system based on SOA architecture as claimed in claim 9, characterized in that: The working modes include normal mode and correction mode; When the atomic service layer receives the correction mode, it controls the anti-pinch algorithm module to execute the correction mode and complete the parameter correction.
