Vehicle SOA service management method and device and computer program product
By dynamically adjusting the CAN cycle of atomic services, the delay problem caused by fixed cycle forwarding strategies in service-oriented communication is solved, the vehicle function response speed and user experience are improved, and the intelligent management of vehicle SOA services is realized.
Patent Information
- Application Number
- CN202411282264.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2044-09-12
AI Technical Summary
In service-oriented communications, fixed-cycle forwarding strategies lead to wasted network bandwidth and unnecessary delays, especially with significant negative impacts on user experience for fast response functions such as emergency braking or lane keeping assist systems.
Through the CAN or CANFD bus connection between the central controller and the area controller, the information of the atomic service is obtained to generate a service matrix table, and determine whether the preset conditions are met (signal to service mark is Yes, the service cycle is less than the CAN cycle and The signal sending and receiving status is sending), if it is satisfied, the actual load rate of the regional controller network segment is obtained and the CAN cycle of the atomic service is adjusted to dynamically adjust the service call time.
Significantly reduce service call delay, improve the response speed of the fast response function, realize intelligent management of vehicle SOA services, and improve user driving experience.
Smart Images

Figure CN119135772A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle SOA services, and in particular to a management method, device and computer program product for vehicle SOA services. Background Art
[0002] Automotive functions are increasingly implemented through software, which has become a key factor in differentiating automotive performance and functionality, making the car more like a large mobile computing platform. Service-Oriented Architecture (SOA) is a software design pattern that connects different functional units of an application (called services) through interfaces between services. These services are independent, interoperable, and can perform specific tasks when called. In traditional automotive electronic architectures, vehicle control and communication are mostly based on signals, such as signals on the CAN / CANFD bus. With the introduction of SOA, the entire vehicle will shift some functions from traditional signal-oriented communication to service-oriented communication, and realize vehicle function service through SOA.
[0003] Currently, in service-oriented communications, the signal service system forwarding strategy generally uses fixed-cycle forwarding, with a cycle time of, for example, 100 milliseconds. When forwarding CAN / CANFD, the original signal cycle forwarding is used. Although this strategy is simple, it may lead to a waste of network bandwidth. Under the fixed-cycle forwarding strategy, if the data required by a service call happens to arrive in the next forwarding cycle, unnecessary delays will occur, especially for functions that require fast response (such as emergency braking or lane keeping assist systems), and this delay may have a negative impact on the user experience. Summary of the invention
[0004] The purpose of this application is to propose a vehicle SOA service management method and its device, as well as a 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-mentioned purpose, 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 service called in the current cycle, and generate a service matrix table according to the service information of the called atomic service; the service matrix table at least includes 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] Determine whether the called atomic service meets preset conditions according to the service matrix table, wherein the preset conditions include that the signal-to-service mark is yes, the service cycle is less than the CAN cycle, and the signal transceiver state is sending; if the preset conditions are met, obtain at least one regional controller network segment involved in the called atomic service, obtain the actual load rate of at least one regional controller network segment involved, and determine whether to adjust the cycle of the called atomic service according to the actual load rate of 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 management device for vehicle SOA services is provided, the management device being applied to a central controller, the central controller being connected to a plurality of regional controllers via a CAN or CANFD bus;
[0011] The management device comprises:
[0012] An information acquisition module is used to acquire service information of the atomic service called in the current cycle, and generate a service matrix table according to the service information of the called atomic service; the service matrix table at least includes the signal-to-service mark, service cycle, signal transceiver status and CAN cycle of each called atomic service; the signal transceiver status includes sending and receiving;
[0013] The adjustment judgment module is used to determine whether the called atomic service meets the preset conditions according to the service matrix table, and the preset conditions include that the signal-to-service mark is yes, the service cycle is less than the CAN cycle, and the signal transceiver state is sending; if the preset conditions are met, at least one regional controller network segment involved in the called atomic service is obtained, the actual load rate of the at least one regional controller network segment involved is obtained, and whether to adjust the cycle of the called atomic service is determined according to 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 and 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, the delay in service calls can be reduced, especially for functions that require quick responses, such as emergency braking or lane keeping assist systems, which can significantly improve the response speed and realize intelligent management of vehicle SOA services. Due to the reduction in service call time, the vehicle's functional response is faster, thereby improving 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 drawings required in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 This is a schematic diagram of the connection relationship between the vehicle central controller, the regional controller and the 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 management device for vehicle SOA services in an embodiment of the present application. DETAILED DESCRIPTION
[0022] The detailed description of the drawings is intended 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 the central controller is also connected to multiple ECUs via Ethernet. The central controller uses signal-to-service to convert the capabilities of the multiple regional controllers to provide service capabilities to the multiple ECUs.
[0024] See also Figure 2 , the method comprises the following steps:
[0025] Step S10, obtain the service information of the atomic service called in the current cycle, and generate a service matrix table according to the service information of the called atomic service; the service matrix table at least includes the signal-to-service mark, service cycle, signal transceiver status and CAN cycle of each atomic service called; the signal transceiver status includes sending and receiving.
[0026] Specifically, in step S10, the central controller first needs to identify all atomic services called in the current cycle. Atomic services refer to the smallest service unit that implements specific functions in the vehicle. For each atomic service called, the central controller will collect information such as the signal-to-service tag, service cycle, signal transceiver status, and CAN cycle of the atomic service. This information will be organized into a service matrix table, which is the basis for the central controller to make subsequent decisions. The signal-to-service tag is used to indicate whether an atomic service is converted from the original signal-based communication method to the SOA service implementation method, the service cycle indicates the cycle in which the atomic service is called, the signal transceiver status indicates whether the atomic service sends or receives signals, and the CAN cycle indicates the cycle in which the atomic service is transmitted on the CAN / CANFD bus.
[0027] Step S20, determining whether the called atomic service meets the preset conditions according to the service matrix table, wherein the preset conditions include that the signal-to-service mark is yes, the service cycle is less than the CAN cycle, and the signal transceiver state is sending; if the preset conditions are met, obtaining at least one regional controller network segment involved in the called atomic service, obtaining the actual load rate of at least one regional controller network segment involved, and determining whether to adjust the period of the called atomic service according to the actual load rate of 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-to-service mark indicates that the atomic service is converted from the original signal-based communication method to an SOA-based service implementation; the service cycle is shorter than the CAN cycle, indicating that the calling cycle of the atomic service is shorter than the transmission cycle of the CAN bus, and the atomic service has high real-time requirements. 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 proceed to the next step to obtain the actual load rate of at least one regional controller segment involved. The actual load rate refers to the current workload of the regional controller, which is used to help determine whether the service cycle 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] The method of this embodiment can reduce the delay in service calls by adaptively and dynamically adjusting the CAN cycle of the atomic service to the service cycle, especially for functions that require fast response, such as emergency braking or lane keeping assist systems, which can significantly improve the response speed and realize intelligent management of vehicle SOA services. Due to the reduction in service call time, the vehicle's functional response is faster, thereby improving 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 a composite service is called, the composite service includes 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 perform any processing; 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, do not perform any processing. 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, the obtaining of 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] The error between the actual load rate of each regional controller network segment and the preset expected load rate is obtained. If the errors corresponding to at least one regional controller network segment are less than the preset error threshold, it is determined to adjust the signal sending cycle of the called atomic service, otherwise the signal sending cycle is not adjusted.
[0042] Specifically, assuming the expected load rate Br, it can be configured according to actual needs, for example, Br = 55, and the allowable error boundary value e0 can be set according to actual needs. For example, e0 = 5, that is, the maximum load rate is 60. If it is higher than 60, it is considered that the regional controller segment does not meet the conditions and cannot adjust the signal transmission cycle. Assuming that the actual load rate of the regional controller segment bus Bw1 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, enter step S30.
[0043] An example of the transceiver matrix of the regional controller network segment is as follows:
[0044]
[0045]
[0046] According to the transceiver 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 comprises:
[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 the CAN cycle of the called atomic service is adjusted to the service cycle, the actual load rate Bw2 of the regional controller network segment is recalculated according to the content of the aforementioned embodiment, and the actual error e2=Bw2-Br is calculated. When e2<e0, the cycle adjustment of the called atomic service is maintained. If it is not satisfied, the cycle adjustment of the called atomic service is not maintained, and the signal is sent according to the original CAN cycle. The purpose of re-evaluating the cycle adjustment in this embodiment is to ensure stable network operation and avoid network congestion or performance degradation caused by 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 also Figure 3 The management device of this embodiment includes:
[0054] Information acquisition module 1, used to acquire service information of the atomic service called in the current cycle, and generate a service matrix table according to the service information of the atomic service called; the service matrix table at least includes the signal-to-service mark, service cycle, signal transceiver status and CAN cycle of each atomic service called; the signal transceiver status includes sending and receiving;
[0055] The adjustment judgment module 2 is used to determine whether the called atomic service meets the preset conditions according to the service matrix table, and the preset conditions include that the signal-to-service mark is yes, the service cycle is less than the CAN cycle, and the signal transceiver state is sending; if the preset conditions are met, at least one regional controller network segment involved in the called atomic service is obtained, the actual load rate of the at least one regional controller network segment involved is obtained, and whether to adjust the cycle of the called atomic service is determined according to the actual load rate of the at least one regional controller network segment;
[0056] The cycle adjustment module 3 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.
[0057] In some specific embodiments, the adjustment judgment module 3 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;
[0058] The error between the actual load rate of each regional controller network segment and the preset expected load rate is obtained. If the errors corresponding to at least one regional controller network segment are less than the preset error threshold, it is determined 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 used 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, the contents of the vehicle SOA service management device of this embodiment that are not described in detail can be obtained by referring to the contents of the vehicle SOA service management method of the aforementioned embodiment, so they are not repeated in this embodiment.
[0065] An embodiment of the present application also provides a computer program product, including 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, which 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, which define how to perform specific operations. In this embodiment, these instructions are used to execute the vehicle SOA service management method of 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, which can be run on various computer devices to implement the vehicle SOA service management method of the above embodiment.
[0069] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill 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, and the central controller is connected to multiple regional controllers via a CAN or CANFD bus; The method comprises: Obtain service information of the atomic service called in the current cycle, and generate a service matrix table according to the service information of the called atomic service; the service matrix table at least includes 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; Determine whether the called atomic service meets preset conditions according to the service matrix table, wherein the preset conditions include that the signal-to-service mark is yes, the service cycle is less than the CAN cycle, and the signal transceiver state is sending; if the preset conditions are met, obtain at least one regional controller network segment involved in the called atomic service, obtain the actual load rate of at least one regional controller network segment involved, and determine whether to adjust the cycle of the called atomic service according to the actual load rate of 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 each regional controller network segment involved further includes: The load rates of each message received and sent by each regional controller network segment are respectively obtained, and the load rates of each message 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 at least one regional controller network segment further includes: The error between the actual load rate of each regional controller network segment and the preset expected load rate is obtained. If the errors corresponding to at least one regional controller network segment are less than the preset error threshold, it is determined 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 step of adjusting the CAN cycle of the called atomic service to the service cycle further comprises: 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 comprises: An information acquisition module is used to acquire service information of the atomic service called in the current cycle, and generate a service matrix table according to the service information of the called atomic service; the service matrix table at least includes the signal-to-service mark, service cycle, signal transceiver status and CAN cycle of each called atomic service; the signal transceiver status includes sending and receiving; The adjustment judgment module is used to determine whether the called atomic service meets the preset conditions according to the service matrix table, and the preset conditions include that the signal-to-service mark is yes, the service cycle is less than the CAN cycle, and the signal transceiver state is sending; if the preset conditions are met, at least one regional controller network segment involved in the called atomic service is obtained, the actual load rate of the at least one regional controller network segment involved is obtained, and whether to adjust the cycle of the called atomic service is determined according to 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; The error between the actual load rate of each regional controller network segment and the preset expected load rate is obtained. If the errors corresponding to at least one regional controller network segment are less than the preset error threshold, it is determined 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 used for: 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 execute operations corresponding to the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Automobile area framework system and automobile
CN115344031A
Signal and service conversion system and vehicle
CN116634013A
Variable-period automobile CAN communication method and system
CN116866109A
Seamless Capsule Manufacturing Machine
KR102421317B1
