A method, apparatus and computer program product for managing vehicle SOA services

By generating a service matrix table through the central controller and dynamically adjusting the CAN cycle of the atomic service, the network bandwidth waste and delay problems caused by the fixed-cycle forwarding strategy are solved, the intelligent management of vehicle SOA services is realized, and the user experience is improved.

CN119135772BActive Publication Date: 2025-10-10GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411282264.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2025-10-10
Estimated Expiration
2044-09-12

AI Technical Summary

Technical Problem

In service-oriented communications, fixed-period forwarding strategies lead to wasted network bandwidth and unnecessary delays, which have a negative impact on fast-response functions such as emergency braking or lane keeping assist systems.

Method used

The central controller dynamically adjusts the CAN cycle of the atomic service to the service cycle, generates a service matrix table, and decides whether to adjust the service cycle based on the actual load rate to optimize network resource utilization.

Benefits of technology

Reduce service call delays, increase the response speed of quick response functions, and enhance user driving experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119135772B_ABST
    Figure CN119135772B_ABST
Patent Text Reader

Abstract

The application relates to a vehicle SOA service management method, device and computer program product, comprising: acquiring service information of an atomic service called in a current period, and generating a service matrix table according to the service information of the called atomic service; determining whether the called atomic service meets a preset condition according to the service matrix table, wherein the preset condition comprises a signal transfer service mark being yes, a service period being less than a CAN period, and a signal transceiving state being sending; if the preset condition is met, acquiring at least one regional controller network segment involved by the called atomic service, acquiring an actual load rate of the at least one involved regional controller network segment, and determining whether to perform period adjustment on the called atomic service according to the actual load rate of the at least one regional controller network segment; and if it is determined to perform period adjustment on the called atomic service, adjusting a CAN period of the called atomic service to the service period. Through the application, the service calling duration can be reduced, and user experience can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of vehicle SOA services, and in particular to a method, device, and computer program product for managing vehicle SOA services. Background Art

[0002] Automotive functions are increasingly implemented through software, becoming a key differentiator in vehicle performance and functionality, making cars more like large-scale mobile computing platforms. Service-Oriented Architecture (SOA) is a software design pattern that connects the different functional units of an application (called services) through interfaces between services. These services are independent, interoperable, and capable of performing specific tasks when called. In traditional automotive electronics architectures, vehicle control and communication are largely signal-based, such as those on the CAN / CANFD bus. With the introduction of SOA, the entire vehicle is shifting some functions from traditional signal-oriented communication to service-oriented communication, enabling the service-oriented nature of vehicle functions through SOA.

[0003] Currently, in service-oriented communications, signal service system forwarding strategies typically use fixed-cycle forwarding, with a cycle time of, for example, 100 milliseconds. CAN / CANFD forwarding uses the same periodic forwarding as the original signal. While simple, this strategy can waste network bandwidth. With a fixed-cycle forwarding strategy, if the data required by a service call arrives only during the next forwarding cycle, unnecessary delays can occur. This can negatively impact the user experience, especially for functions that require fast responses, such as emergency braking or lane keeping assist systems. Summary of the Invention

[0004] The purpose of this application is to propose a vehicle SOA service management method, device, and computer program product to ensure that the regionalized services of the entire vehicle can be implemented efficiently, reduce the service call time, and improve the user experience.

[0005] To achieve the above objectives, according to a first aspect of the present application, a method for managing vehicle SOA services is provided, wherein the method is implemented based on a central controller, and the central controller is connected to multiple regional controllers via a CAN or CANFD bus;

[0006] The method comprises:

[0007] Obtain service information of the atomic services called in the current cycle, and generate a service matrix table according to the service information of the called atomic services; the service matrix table includes at least the signal-to-service tag, service cycle, signal transceiver status, and CAN cycle of each called atomic service; the signal transceiver status includes sending and receiving;

[0008] Determining whether the called atomic service meets preset conditions according to the service matrix table, wherein the preset conditions include a signal-to-service flag being yes, a service cycle being less than a CAN cycle, and a signal transceiver state being sending; if the preset conditions are met, obtaining at least one regional controller network segment involved in the called atomic service, obtaining an actual load rate of the at least one regional controller network segment involved, and determining whether to adjust the cycle of the called atomic service according to the actual load rate of the at least one regional controller network segment;

[0009] If it is determined to adjust the cycle of the called atomic service, the CAN cycle of the called atomic service is adjusted to the service cycle.

[0010] According to a second aspect of the present application, a vehicle SOA service management device is provided, wherein the management device is applied to a central controller, and the central controller is connected to multiple regional controllers via a CAN or CANFD bus;

[0011] The management device includes:

[0012] An information acquisition module is used to obtain service information of the atomic services called in the current cycle and generate a service matrix table based on the service information of the called atomic services; the service matrix table includes at least the signal-to-service tag, service cycle, signal transceiver status and CAN cycle of each called atomic service; the signal transceiver status includes sending and receiving;

[0013] an adjustment judgment module, configured to determine, based on the service matrix table, whether the called atomic service meets preset conditions, wherein the preset conditions include a signal-to-service flag being yes, a service cycle being less than a CAN cycle, and a signal transceiver state being sending; if the preset conditions are met, obtaining at least one regional controller network segment involved in the called atomic service, obtaining an actual load rate of the at least one regional controller network segment involved, and determining whether to perform a period adjustment on the called atomic service based on the actual load rate of the at least one regional controller network segment;

[0014] The cycle adjustment module is used to adjust the CAN cycle of the called atomic service to the service cycle if it is determined to adjust the cycle of the called atomic service.

[0015] According to a third aspect of the present application, a computer program product is provided, comprising computer program instructions, wherein the computer program instructions instruct a computer device to perform operations corresponding to the method according to the first aspect of the present application.

[0016] The vehicle SOA service management method, device, and computer program product proposed in this application have the following beneficial effects:

[0017] By adaptively and dynamically adjusting the CAN cycle of atomic services to the service cycle, service call latency can be reduced. This significantly improves response speed for functions requiring rapid response, such as emergency braking or lane keeping assist systems, enabling intelligent management of vehicle SOA services. Reduced service call duration allows for faster vehicle function responses, enhancing the user's driving experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 This is a schematic diagram of the connection relationship between the vehicle central controller, regional controller and ECU in an embodiment of the present application.

[0020] Figure 2 This is a flowchart of a method for managing vehicle SOA services in an embodiment of the present application.

[0021] Figure 3 This is a framework diagram of a vehicle SOA service management device in an embodiment of the present application. DETAILED DESCRIPTION

[0022] The detailed description of the accompanying drawings is intended to serve as an illustration of the current embodiment of the present application and is not intended to represent the only form in which the present application can be implemented. It should be understood that the same or equivalent functions can be accomplished by different embodiments intended to be included in the spirit and scope of the present application.

[0023] An embodiment of the present application provides a method for managing vehicle SOA services, the method being implemented based on a central controller, see Figure 1 The central controller is connected to multiple regional controllers via a CAN or CANFD bus, and is also connected to multiple ECUs via Ethernet. The central controller uses signal-to-service conversion to provide service capabilities to the multiple ECUs.

[0024] See Figure 2 , the method comprises the following steps:

[0025] In step S10, service information of the called atomic services in the current period is acquired, and a service matrix table is generated according to the service information of the called atomic services; the service matrix table at least includes signal conversion service marks, service periods, signal transceiving states and CAN periods of the called atomic services; the signal transceiving states include sending and receiving.

[0026] Specifically, in step S10, the central controller first needs to identify all the called atomic services in the current period, and the atomic service refers to the smallest service unit for realizing a specific function in the vehicle. For each called atomic service, the central controller will collect information such as signal conversion service marks, service periods, signal transceiving states and CAN periods of the atomic service, and these information will be organized into a service matrix table, which is the basis for the subsequent decision of the central controller. The signal conversion service mark is used to indicate whether a certain atomic service is converted from the original signal communication mode to the SOA service implementation mode, the service period indicates the period of calling the atomic service, the signal transceiving state indicates whether the atomic service is sending or receiving signals, and the CAN period indicates the transmission period of the atomic service on the CAN / CANFD bus.

[0027] In step S20, it is determined whether the called atomic services meet the preset conditions according to the service matrix table, the preset conditions including the signal conversion service mark being yes, the service period being less than the CAN period and the signal transceiving state being sending; if the preset conditions are met, at least one regional controller network segment involved in the called atomic service is acquired, the actual load rate of the at least one regional controller network segment involved is acquired, and it is determined whether to adjust the period of the called atomic service according to the actual load rate of the at least one regional controller network segment.

[0028] Specifically, in step S20, the central controller will check each atomic service in the service matrix table to determine whether they meet the preset conditions; the signal conversion service mark being yes indicates that the atomic service is converted from the original signal communication mode to the SOA service implementation mode; the service period being less than the CAN period indicates that the calling period of the atomic service is shorter than the transmission period of the CAN bus, and the atomic service has higher real-time requirements, and the update frequency of the signal on the CAN bus cannot meet the real-time requirements of the atomic service.

[0029] If the atomic service meets the preset conditions, the central controller will continue to the next step to acquire the actual load rate of the at least one regional controller network segment involved, and the actual load rate refers to the current workload of the regional controller, which is used to help determine whether the service period needs to be adjusted.

[0030] Step S30: If it is determined to adjust the cycle of the called atomic service, the CAN cycle of the called atomic service is adjusted to the service cycle.

[0031] This method, by adaptively and dynamically adjusting the atomic service's CAN cycle to the service cycle, can reduce service call latency. This significantly improves response speed for functions requiring rapid response, such as emergency braking or lane keeping assist systems, thereby enabling intelligent management of vehicle SOA services. This reduction in service call duration allows for faster vehicle function responses, thereby enhancing the user's driving experience.

[0032] In some specific embodiments, the service matrix table includes at least the service interface name, service identifier, signal name and signal identifier of each atomic service being called;

[0033] When the signal transfer service flag of any atomic service is yes, its signal transceiver status, CAN cycle, signal name and signal identifier are valid values;

[0034] When the signal-to-service flag of any atomic service is No, its signal transceiver status, CAN cycle, signal name, and signal identifier are invalid values ​​or empty.

[0035] Specifically, the service matrix is ​​as follows:

[0036]

[0037] In the above service matrix table, service ID is the service identifier, S2S (Signal to Service) is the signal to service mark, CANID is the signal identifier, CANTX / RX is the signal transmission and reception status, TX means sending signal, and RX means receiving signal.

[0038] For example, when calling a composite service, the composite service contains N atomic services, of which M atomic services are S2S converted (M≤N). When M=0, no processing is performed; when M>0, and the CANTX / RX of the corresponding atomic service's S2S are both RX, the signal service system forwarding strategy does not process it; when M>0, and the corresponding atomic service's S2S has CANTX / RX as TX, first determine whether the atomic service cycle is ≥CAN cycle. If so, no processing is performed. If not, proceed to the next step. For atomic services where CANTX / RX is TX and the service cycle is less than the CAN cycle, first determine how many regional controller network segments the corresponding atomic service involves, and proceed to the next step for each network segment to obtain the actual load rate of at least one regional controller network segment involved.

[0039] In some specific embodiments, obtaining the actual load rate of each regional controller network segment involved further includes:

[0040] Obtaining the load rate of each message received and sent by each regional controller network segment respectively, and accumulating the load rates of each message to obtain the actual load rate of each regional controller network segment;

[0041] Obtain the error between the actual load rate of each regional controller network segment and the preset expected load rate. If the errors corresponding to at least one regional controller network segment are less than the preset error threshold, determine to adjust the signal sending period of the called atomic service; otherwise, do not adjust the signal sending period.

[0042] Specifically, assuming a desired load rate Br, which can be configured based on actual needs, for example, Br = 55, and an allowable error boundary value e0, which can be set based on actual needs, for example, e0 = 5, indicating a maximum load rate of 60%. If it exceeds 60, the regional controller segment is deemed to not meet the conditions and signal transmission cycle adjustment cannot be performed. Assuming the actual load rate Bw1 of the regional controller segment bus is monitored, collected, and calculated by the central controller, the actual error e1 = Bw1 - Br is calculated based on Br and Bw1. When e1 < e0, the process proceeds to step S30.

[0043] The following is an example of the transmit / receive matrix of the regional controller network segment:

[0044]

[0045]

[0046] According to the transmit-receive matrix, the load rates of network segments 1 and 2 are calculated as follows:

[0047] The actual load rate of network segment 1 = 0.24 + 1.2 + 0.48 + 1.2 = 3.12;

[0048] The actual load rate of network segment 2 = 1.2 + 0.24 = 1.48.

[0049] In some specific embodiments, the step S30 further includes:

[0050] After the CAN cycle of the called atomic service is adjusted to the service cycle, the actual load rate of the at least one regional controller network segment is re-acquired, and it is determined whether to maintain the cycle adjustment of the called atomic service based on the re-acquired actual load rate of the at least one regional controller network segment.

[0051] Specifically, after adjusting the CAN cycle of the called atomic service to the service cycle, the actual load rate Bw2 of the regional controller network segment is recalculated according to the aforementioned embodiment, and the actual error e2 = Bw2 - Br is calculated. If e2 < e0, the cycle adjustment of the called atomic service is maintained. If not, the cycle adjustment of the called atomic service is not maintained, and the signal is sent according to the original CAN cycle. This embodiment re-evaluates the cycle adjustment to ensure stable network operation and avoid network congestion or performance degradation caused by the cycle adjustment.

[0052] Another embodiment of the present application proposes a vehicle SOA service management device, which is a service gateway applied to a central controller and can be used to implement the vehicle SOA service management method described in the above embodiment, such as Figure 2 As shown, the central controller is connected to multiple regional controllers via a CAN or CANFD bus, and the central controller is also connected to multiple ECUs via Ethernet;

[0053] See Figure 3 The management device of this embodiment includes:

[0054] Information acquisition module 1 is used to obtain service information of the atomic services called in the current cycle and generate a service matrix table based on the service information of the called atomic services; the service matrix table includes at least the signal-to-service tag, service cycle, signal transceiver status and CAN cycle of each called atomic service; the signal transceiver status includes sending and receiving;

[0055] An adjustment judgment module 2 is configured to determine, based on the service matrix table, whether the called atomic service meets preset conditions, wherein the preset conditions include a signal-to-service flag being yes, a service cycle being less than a CAN cycle, and a signal transceiver state being sending; if the preset conditions are met, obtaining at least one regional controller network segment involved in the called atomic service, obtaining an actual load rate of the at least one regional controller network segment involved, and determining whether to perform a period adjustment on the called atomic service based on the actual load rate of the at least one regional controller network segment;

[0056] The cycle adjustment module 3 is configured to adjust the CAN cycle of the called atomic service to the service cycle if it is determined that the cycle of the called atomic service is to be adjusted.

[0057] In some specific embodiments, the adjustment judgment module 3 is further configured to respectively obtain the load rate of each message received and sent by each regional controller network segment, and accumulate the load rates of each message to obtain the actual load rate of each regional controller network segment;

[0058] Obtain the error between the actual load rate of each regional controller network segment and the preset expected load rate. If the errors corresponding to at least one regional controller network segment are less than the preset error threshold, determine to perform periodic adjustment on the called atomic service, otherwise no periodic adjustment is performed.

[0059] In some specific embodiments, the period adjustment module 3 is further configured to:

[0060] After the CAN cycle of the called atomic service is adjusted to the service cycle, the actual load rate of the at least one regional controller network segment is re-acquired, and it is determined whether to maintain the cycle adjustment of the called atomic service based on the re-acquired actual load rate of the at least one regional controller network segment.

[0061] In some specific embodiments, the service matrix table includes at least the service interface name, service identifier, signal name and signal identifier of each atomic service being called;

[0062] When the signal transfer service flag of any atomic service is yes, its signal transceiver status, CAN cycle, signal name and signal identifier are valid values;

[0063] When the signal-to-service flag of any atomic service is No, its signal transceiver status, CAN cycle, signal name, and signal identifier are invalid values ​​or empty.

[0064] It should be noted that the vehicle SOA service management device of this embodiment can be a hardware device, a software device, or a combination of hardware and software. The vehicle SOA service management device of this embodiment corresponds to the vehicle SOA service management method of the aforementioned embodiment. Therefore, any details not detailed in the vehicle SOA service management device of this embodiment can be found in the vehicle SOA service management method of the aforementioned embodiment and are not further described in this embodiment.

[0065] An embodiment of the present application further provides a computer program product, comprising computer program instructions, wherein the computer program instructions instruct a computer device to perform operations corresponding to the method described in the above embodiment.

[0066] Specifically, the computer program product includes a series of computer program instructions that can instruct a computer device to execute the vehicle SOA service management method described in this application. These instructions are codes written in a computer program that define how to perform specific operations. In this embodiment, these instructions are used to execute the vehicle SOA service management method described in the above embodiment.

[0067] These program instructions are designed to be loaded onto a computer device and instruct the device to perform specific operations, which are the various steps in the vehicle SOA service management method described in the above embodiment.

[0068] In this way, the computer program product provides a complete software solution that can be run on various computer devices to implement the vehicle SOA service management method of the above embodiment.

[0069] While various embodiments of the present application have been described above, the above descriptions are illustrative, non-exhaustive, and not intended to be limiting of the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is selected to best explain the principles of the embodiments, their practical applications, or technological improvements in the marketplace, or to enable others skilled in the art to understand the embodiments disclosed herein.

Claims

1. A vehicle SOA service management method, characterized in that: The method is implemented based on a central controller, which is connected to multiple regional controllers via a CAN or CANFD bus; The method comprises: Obtain service information of the atomic services called in the current cycle, and generate a service matrix table according to the service information of the called atomic services; the service matrix table includes at least the signal-to-service tag, service cycle, signal transceiver status, and CAN cycle of each called atomic service; the signal transceiver status includes sending and receiving; Determining whether the called atomic service meets preset conditions according to the service matrix table, wherein the preset conditions include a signal-to-service flag being yes, a service cycle being less than a CAN cycle, and a signal transceiver state being sending; if the preset conditions are met, obtaining at least one regional controller network segment involved in the called atomic service, obtaining an actual load rate of the at least one regional controller network segment involved, and determining whether to adjust the cycle of the called atomic service according to the actual load rate of the at least one regional controller network segment; If it is determined to adjust the cycle of the called atomic service, the CAN cycle of the called atomic service is adjusted to the service cycle.

2. The method according to claim 1, characterized in that The obtaining of the actual load rate of at least one regional controller network segment involved further includes: The load rates of the messages received and sent by each regional controller network segment are respectively obtained, and the load rates of the messages are accumulated to obtain the actual load rate of each regional controller network segment.

3. The method according to claim 1, characterized in that The determining whether to perform periodic adjustment on the called atomic service according to the actual load rate of the at least one regional controller network segment further includes: Obtain the error between the actual load rate of each regional controller network segment and the preset expected load rate. If the errors corresponding to at least one regional controller network segment are less than the preset error threshold, determine to perform periodic adjustment on the called atomic service, otherwise no periodic adjustment is performed.

4. The method according to claim 2, characterized in that The adjusting the CAN cycle of the called atomic service to the service cycle further includes: After the CAN cycle of the called atomic service is adjusted to the service cycle, the actual load rate of the at least one regional controller network segment is re-acquired, and it is determined whether to maintain the cycle adjustment of the called atomic service based on the re-acquired actual load rate of the at least one regional controller network segment.

5. The method according to any one of claims 1 to 4, characterized in that The service matrix table at least includes the service interface name, service identifier, signal name and signal identifier of each atomic service being called; When the signal transfer service flag of any atomic service is yes, its signal transceiver status, CAN cycle, signal name and signal identifier are valid values; When the signal-to-service flag of any atomic service is No, its signal transceiver status, CAN cycle, signal name, and signal identifier are invalid values ​​or empty.

6. A vehicle SOA service management device, characterized in that: The management device is applied to a central controller, and the central controller is connected to multiple regional controllers via a CAN or CANFD bus; The management device includes: An information acquisition module is used to obtain service information of the atomic services called in the current cycle and generate a service matrix table based on the service information of the called atomic services; the service matrix table includes at least the signal-to-service tag, service cycle, signal transceiver status and CAN cycle of each called atomic service; the signal transceiver status includes sending and receiving; an adjustment judgment module, configured to determine, based on the service matrix table, whether the called atomic service meets preset conditions, wherein the preset conditions include a signal-to-service flag being yes, a service cycle being less than a CAN cycle, and a signal transceiver state being sending; if the preset conditions are met, obtaining at least one regional controller network segment involved in the called atomic service, obtaining an actual load rate of the at least one regional controller network segment involved, and determining whether to perform a period adjustment on the called atomic service based on the actual load rate of the at least one regional controller network segment; The cycle adjustment module is used to adjust the CAN cycle of the called atomic service to the service cycle if it is determined to adjust the cycle of the called atomic service.

7. The management device according to claim 6, characterized in that The adjustment judgment module is further used to respectively obtain the load rate of each message received and sent by each regional controller network segment, and accumulate the load rates of each message to obtain the actual load rate of each regional controller network segment; Obtain the error between the actual load rate of each regional controller network segment and the preset expected load rate. If the errors corresponding to at least one regional controller network segment are less than the preset error threshold, determine to perform periodic adjustment on the called atomic service, otherwise no periodic adjustment is performed.

8. The management device according to claim 7, characterized in that: The cycle adjustment module is further configured to: After the CAN cycle of the called atomic service is adjusted to the service cycle, the actual load rate of the at least one regional controller network segment is re-acquired, and it is determined whether to maintain the cycle adjustment of the called atomic service based on the re-acquired actual load rate of the at least one regional controller network segment.

9. The management device according to any one of claims 7 to 8, characterized in that: The service matrix table at least includes the service interface name, service identifier, signal name and signal identifier of each atomic service being called; When the signal transfer service flag of any atomic service is yes, its signal transceiver status, CAN cycle, signal name and signal identifier are valid values; When the signal-to-service flag of any atomic service is No, its signal transceiver status, CAN cycle, signal name, and signal identifier are invalid values ​​or empty.

10. A computer program product, characterized in that The method comprises computer program instructions, wherein the computer program instructions instruct a computer device to perform operations corresponding to the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Signal and service conversion system and vehicle

    CN116634013A

  • Variable-period automobile CAN communication method and system

    CN116866109A