SOA architecture-based vehicle-side service call processing method, system, storage medium, and vehicle

By introducing call source management and queue management mechanisms into the automotive SOA architecture, and using action sequence numbers for arbitration processing, the problems of functional anomalies and control authority management in remote procedure calls are solved, efficiency and security are improved, and development and maintenance costs are reduced. .

WO2024174486A1PCT designated stage expired Publication Date: 2024-08-29GUANGZHOU AUTOMOBILE GROUP CO LTD

Patent Information

Application Number
PCT/CN2023/114538
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-23
Filing Date
2023-08-23
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

In the automotive SOA architecture, the service requester cannot be identified during remote procedure calls, resulting in functional abnormalities and difficulty in managing control rights. Existing solutions violate the loose coupling and flexibility of SOA, resulting in low development efficiency and high maintenance costs.

Method used

By introducing the call source management function into service calls, a queue management mechanism is established, and action sequence numbers and priority information are used for arbitration processing to ensure the reasonable calling and execution order of method services.

Benefits of technology

It effectively reduces application layer monitoring behaviors and repeated calls, reduces the amount of code and communication data, improves the efficiency and security of remote procedure calls, and reduces the development and maintenance costs of automotive SOA service architecture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023114538_29082024_PF_FP_ABST
    Figure CN2023114538_29082024_PF_FP_ABST
Patent Text Reader

Abstract

The present application discloses an SOA architecture-based vehicle-side service call processing method, comprising the steps: receiving a service call request from a service requester for a method service, and obtaining a request parameter in the service call request; obtaining an action ID corresponding to the request parameters and priority information corresponding to the action ID, and storing at least part of the request parameters, the action ID and the priority information to a current calling queue corresponding to a service requested to be called; performing arbitration on the service call request according to the priority information corresponding to the action ID, and after arbitration succeeds, calling the method service and executing same; after execution is completed, deleting information corresponding to a current action ID in the calling queue. The present application also discloses a corresponding system, a storage medium, and a vehicle. By means of implementing the present application, the efficiency and security of remote procedure calling can be improved, and development and maintenance costs can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

A vehicle-side service call processing method, system, storage medium and vehicle based on SOA architecture

[0001] This application claims priority to a Chinese patent application filed with the Patent Office of China on February 23, 2023, with application number 202310158952.5, entitled “A vehicle-side service call processing method, system, storage medium and vehicle based on SOA architecture”, the entire contents of which are incorporated herein by reference. Technical Field

[0002] The present application relates to the technical field of automotive service-oriented architecture (SOA), and in particular to a vehicle-side service call processing method, system, storage medium and vehicle based on SOA architecture. Background Art

[0003] Software is playing an increasingly important role in smart cars. In recent years, Service-Oriented Architecture (SOA) has been gradually introduced into the automotive field, and with it, the SOME / IP (Scalable Service-Oriented Middleware over IP) protocol has also been increasingly used in in-vehicle Ethernet communications.

[0004] The automotive SOA architecture abstracts and decouples the functions and capabilities of traditional automotive electronic control systems into independent logical units—services. These are then called upon by other modules through service interfaces. Service interfaces are defined in a neutral manner, independent of the hardware platform, operating system, or programming language that implements the service. This allows services built into a variety of systems to interact in a unified and universal manner.

[0005] SOME / IP is a scalable, service-oriented protocol. As automotive middleware for user-controlled messaging, it enables cross-platform or operating system resource sharing (information, functionality, etc.) through mechanisms such as serialization, Remote Procedure Call (RPC), service discovery, and publish / subscribe. Remote Procedure Call (RPC) is a communication protocol that allows a program running on one terminal to call a subroutine on another terminal without requiring programmers to program the interaction. Figure 1 shows a flow chart of a service call using the Remote Procedure Call (RPC) mechanism within the existing SOME / IP protocol. During transmission, data is transmitted as a binary byte stream according to certain rules (serialization). The data receiver must also parse this binary data stream according to agreed-upon rules to obtain the same data structure as the sender, such as a structure or array. This is known as deserialization. In the service call request using SOME / IP, request parameter information such as service number (ServiceID), method number (MethodID), requester number (ClientID), session number (SessionID) and load (Payload) needs to be carried.

[0006] However, remote procedure calls (RPCs) within the automotive SOA architecture have some drawbacks. Specifically, the method service provider cannot identify the service requester at the application layer, and the corresponding controlled load cannot distinguish the control source, making it impossible to implement operations such as intra-group arbitration and control permission management.

[0007] In the current SOA distributed service architecture, when a client (service requester) remotely calls a specified service on a server (service provider) using protocols such as SOME / IP, some functions may malfunction due to the failure to authenticate the specific caller. The following example illustrates this: in a typical functional scenario, assume that the speaker (service provider) has two method services, StartHorn and StopHorn, and callers A and B are service requesters in the same group.

[0008] Among them, caller A calls StartHorn due to an alarm reminder to turn on the horn, with an expected working cycle of 30s;

[0009] Caller B calls StartHorn due to a fault reminder, turns on the horn, and expects a working cycle of 10 seconds;

[0010] Caller B completes the expected function and calls StopHorn to turn off the speaker.

[0011] Because callers A and B have equal priority, caller B simultaneously turns off caller A's horn when turning off the horn, causing caller A's horn operation to terminate abnormally. The action sequence diagram for this RPC application scenario is shown in Figure 2. The word "ON" in Figure 2 only indicates the operating state, not the continuous horn state. This operating state can also be intermittent horn sounding according to the work template. The corresponding workflow for each participant is shown in Figure 3. Clearly, there are disputes in this workflow that require arbitration.

[0012] To resolve this dispute, the following solutions are generally adopted:

[0013] First, in some cases, other modules or caller A monitors the horn's operating status and, when detecting that the horn is off, calls StartHorn again to turn it on due to their own needs; or

[0014] Second, caller B determines whether the speaker can be turned off before calling StopHorn.

[0015] However, both existing solutions impose additional functional logic requirements on the caller, which is inconsistent with the loose coupling, flexibility and reusability of the SOA service architecture. At the same time, the uncertainty and anonymity of the caller lead to extremely low development efficiency, great development difficulty and extremely high maintenance costs.

[0016] Summary of the Invention

[0017] The technical problem to be solved by this application is to provide a vehicle-side service call processing method, system, storage medium, and vehicle based on the SOA architecture, which can arbitrate during remote procedure calls to avoid affecting the functions of other callers. This can effectively reduce application-layer monitoring and repeated calls, reduce the amount of code and communication data, and thus improve the efficiency and security of remote procedure calls.

[0018] To solve the above technical problems, as one aspect of the present application, a vehicle-side service call processing method based on SOA architecture is provided, which is applied to the service provider and includes at least the following steps:

[0019] Receive a service call request for a method class Method service from a service requester and obtain the request parameters in the service call request;

[0020] Obtaining an action ID corresponding to the request parameter and priority information corresponding to the action ID, and storing at least part of the request parameter, the action ID and the priority information in a current call queue corresponding to the requested service;

[0021] Arbitrate the service call request according to the priority information corresponding to the action sequence number, and after the arbitration is passed, call the method class service and execute it;

[0022] After the execution is completed, the service requester related information corresponding to the current action sequence number in the call queue is deleted.

[0023] The step of obtaining the action ID corresponding to the request parameter and the priority information corresponding to the action ID, and storing at least part of the request parameter, the action ID and the priority information in the current call queue corresponding to the requested service further includes:

[0024] Querying a pre-stored call source tracing list based on the request parameters to determine whether the requested method service needs to be included in the call source management, wherein the request parameters include at least: service ID, method ID, requester ID, session ID, and payload;

[0025] Generate or query the call source traceability list according to the request parameter mapping to obtain the action number corresponding to the current service call request and the priority information corresponding to the action number;

[0026] At least part of the request parameters, action sequence number and priority information are stored in the current call queue corresponding to the requested service through the adding interface.

[0027] The step of arbitrating the service call request according to the priority information corresponding to the action sequence number includes:

[0028] Query the current call queue based on the action sequence number to see if there are other action sequences with the same name;

[0029] If it does not exist, the arbitration will be directly determined to be successful;

[0030] If so, the priority information of the current action number is compared with the priority information of other action numbers with the same name. When the priority of the current action number is the highest, it is determined that the arbitration is passed.

[0031] The step of arbitrating the service call request according to the priority information corresponding to the action sequence number further includes:

[0032] Determine whether there is a preceding action sequence of the current action number in the current call queue. If so, compare the priority information of the current action number with the priority information of the preceding action number in the current call queue. When the priority of the current action number is the highest priority, determine that the arbitration is passed.

[0033] The step of deleting the service requester related information corresponding to the current action sequence number in the call queue after the execution is completed specifically includes:

[0034] After the current method service is executed, the information corresponding to the current action sequence number is deleted from the call queue, including: service sequence number, method sequence number, requester sequence number, session sequence number, current action sequence number and priority information.

[0035] Wherein, after the execution is completed, the step of deleting the service requester related information corresponding to the current action sequence number in the call queue further includes:

[0036] After the current method service is executed, the information corresponding to the preceding action number of the current action number is deleted from the call queue, including: service number, method number, requester number, session number, preceding action number and priority information.

[0037] Which further includes:

[0038] Preset the leading action sequence number for the action sequence numbers in the function items that appear in pairs;

[0039] When the vehicle is initialized, it queries and obtains the latest call source traceability list from the cloud and stores it. The call source traceability list contains multiple records, each of which contains a service number, method number, action number and priority information. The priority information includes priority and sub-priority values.

[0040] Accordingly, another aspect of the present application provides a vehicle-side service call processing system based on SOA architecture, which at least includes:

[0041] The service call acquisition unit is used to receive a service call request for a method class Method service from a service requester and obtain request parameters in the service call request;

[0042] A call queue establishment unit is used to obtain an action sequence number ActionID corresponding to the request parameters and priority information corresponding to the action sequence number, and store at least part of the request parameters, action sequence number and priority information into a current call queue corresponding to the requested service;

[0043] An arbitration processing unit, configured to perform arbitration processing on the service call request according to the priority information corresponding to the action sequence number;

[0044] A service calling processing unit, configured to call and execute the method service after the arbitration processing unit determines that the arbitration is passed;

[0045] The calling queue information deleting unit deletes the service requester related information corresponding to the current action sequence number in the calling queue after execution is completed.

[0046] Wherein, the calling queue establishing unit further includes:

[0047] A call source determination unit is configured to query a pre-stored call source tracing list based on the request parameters to determine whether the requested method service needs to be included in the call source management, where the request parameters include at least: a service ID, a method ID, a requester ID, a session ID, and a payload.

[0048] An action sequence number information acquisition unit, configured to obtain the action sequence number corresponding to the current service call request and the priority information corresponding to the action sequence number by generating or querying the call source traceability list according to the request parameter mapping;

[0049] The storage unit is used to store at least part of the request parameters, action sequence number and priority information into the current call queue corresponding to the requested service through the adding interface.

[0050] Wherein, the arbitration processing unit further includes:

[0051] A query unit, configured to query, based on the action sequence number, whether there are other action sequence numbers with the same name in the current call queue;

[0052] The current action sequence number arbitration processing unit is configured to directly determine that the arbitration has been passed if the query unit finds that the action sequence number does not exist; and if the query unit finds that the action sequence number exists, compare the priority information of the current action sequence number with the priority information of other action sequence numbers with the same name, and determine that the arbitration has been passed if the priority of the current action sequence number is the highest priority;

[0053] The predecessor action sequence number arbitration processing unit is used to determine whether there is a predecessor action sequence of the current action sequence number in the current call queue. If so, the priority information of the current action sequence number is compared with the priority information of the predecessor action sequence number in the current call queue. When the priority of the current action sequence number is the highest priority, it is determined that the arbitration is passed.

[0054] The calling queue information deleting unit specifically includes:

[0055] The current action sequence number information deletion unit is used to delete the information corresponding to the current action sequence number in the call queue after the current method service is executed, including: service sequence number, method sequence number, requester sequence number, session sequence number, current action sequence number and priority information;

[0056] The predecessor action sequence number information deletion unit is used to delete the information corresponding to the predecessor action sequence number of the current action sequence number in the call queue after the current method type service is executed, including: service sequence number, method sequence number, requester sequence number, session sequence number, predecessor action sequence number and priority information.

[0057] Which further includes:

[0058] An action number association setting unit, used to pre-set a leading action number for the action numbers in the function items that appear in pairs;

[0059] The call source traceability list update unit is used to query and obtain the latest call source traceability list from the cloud and store it when the vehicle is initialized. The call source traceability list contains multiple records, each record contains a service serial number, method serial number, action serial number and priority information, and the priority information includes priority and sub-priority values.

[0060] Accordingly, another aspect of the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the aforementioned method when executed by a processor.

[0061] Correspondingly, another aspect of the present application also provides a vehicle, which is provided with a service provider and a service requester of a vehicle-side service, and the service provider and the service requester implement remote procedure calls through the SOME / IP protocol, and the aforementioned vehicle-side service call processing system based on the SOA architecture is integrated in the SOME / IP middleware.

[0062] The implementation of the embodiments of the present application has the following beneficial effects:

[0063] The present invention provides a vehicle-side service call processing method, system, storage medium, and vehicle based on a SOA architecture. By adding a call source management function to the RPC call process in the current SOME / IP protocol, a queue management mechanism is established. The current call queue is used to trace the history of method-based service calls. An action sequence number is generated based on specific call parameters, and arbitration is performed for the current remote procedure call based on the priority information corresponding to the action sequence number.

[0064] By implementing this application, by establishing a queue management mechanism within the service and dynamic IDs (action numbers) between service callers and providers, it is possible to dynamically monitor all valid callers of the current function and implement function arbitration for specific callers to avoid impacting the functions of other callers. This can effectively reduce monitoring and repeated calling behaviors at the application layer, reduce the amount of code and communication data, and improve the negative experience caused by function switching, thereby improving the efficiency and security of remote procedure calls; at the same time, it can reduce the cost of developing and maintaining the automotive SOA service architecture. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, without paying any creative labor, obtaining other drawings based on these drawings still falls within the scope of the present application.

[0066] FIG1 is a schematic diagram of an overall application environment using the RPC mechanism for service calls in an existing SOME / IP protocol;

[0067] Figure 2 is an action sequence diagram of an existing RPC application scenario;

[0068] FIG3 is a schematic diagram of the workflow of each participant in FIG2 ;

[0069] FIG4 is a schematic diagram of the main process of an embodiment of a vehicle-side service call processing method based on SOA architecture provided by the present application;

[0070] FIG5 is a schematic diagram of the overall application environment of the present application using the RPC mechanism for service calls;

[0071] FIG6 is a functional diagram of the call source management module involved in this application;

[0072] FIG7 is an action sequence diagram of an RPC application scenario involved in this application;

[0073] FIG8 is a schematic diagram of the workflow of each participant in FIG7 ;

[0074] FIG9 is a schematic structural diagram of an embodiment of a vehicle-side service call processing system based on an SOA architecture provided by the present application;

[0075] FIG10 is a schematic structural diagram of the call queue establishment unit in FIG9 ;

[0076] FIG11 is a schematic structural diagram of the arbitration processing unit in FIG9 ;

[0077] FIG12 is a schematic structural diagram of the call queue information deletion unit in FIG9 . DETAILED DESCRIPTION

[0078] In order to make the objectives, technical solutions and advantages of this application clearer, this application will be described in further detail below with reference to the accompanying drawings.

[0079] As shown in Figure 4, a schematic diagram of the main process of an embodiment of a vehicle-side service call processing method based on SOA architecture provided by the present application is shown; in combination with Figures 5 and 6, in this embodiment, the method is applied to the service provider side. Specifically, it can be implemented using the call source management module (SourcingManager) deployed as shown in Figure 5. As can be seen from Figure 6, the call source management module can implement functions such as listening (Listen), filtering (Filter), adding (Add), querying (Query), deleting (Delete), and data management (DataMgr). More specifically, the method provided by the present application includes at least the following steps:

[0080] Step S10: Receive a service call request for a method service from a service requester, and obtain request parameters in the service call request; the request parameters include at least: a service ID (ServiceID), a method ID (MethodID), a requester ID (ClientID), a session ID (SessionID), and a payload (Payload), wherein the payload includes specific call input parameters of the method request;

[0081] The service call request may be, for example, a start request (StartRequest) or a stop request (StopRequest).

[0082] Step S11, obtaining the action ID corresponding to the request parameters and the priority information corresponding to the action ID, and storing at least part of the request parameters, the action ID and the priority information into the current call queue corresponding to the requested service;

[0083] More specifically, the step S11 further includes:

[0084] Step S110: querying a pre-stored call source tracing list based on the request parameters to determine whether the requested method service needs to be included in the call source management; for example, in some embodiments, the method service can be marked in the call source tracing list;

[0085] It is understandable that a call source traceability list needs to be pre-stored on the vehicle side. The call source traceability list includes multiple records, each of which contains a service number, method number, action number, and priority information (priority and sub-priority). The priority information includes priority and sub-priority values. Table 1 below is an example table of a call source traceability list;

[0086] Table 1. Example table of call source traceability list

[0087] In actual examples, an initial call source traceability list is provided when the vehicle leaves the factory. During the vehicle's life cycle, if the call source traceability list needs to be updated due to new services or scenarios, the list will be updated to the cloud. The main information contained in the list is the same as the example information in the above table. Therefore, when the vehicle is initialized (when the vehicle is powered on), it is necessary to query the cloud to see if there is a list update, and then download the latest call source traceability list from the cloud and store it.

[0088] In an actual example, after monitoring the relevant call information parameters, the call source management module queries the call source traceability list by calling SourcingManager.Filter(ServiceID,MethodID) to determine whether the method class service of the request needs to be included in the call source management;

[0089] At the same time, it's necessary to pre-assign action numbers to the action numbers in paired function items. For paired function items (such as Start / Stop, TurnOn / TurnOff, etc.), if you need to restrict the call source when executing Stop, TurnOff, etc. (for example, the caller can only close the component they started), you need to pre-assign the corresponding action number (pre-ActionID). Table 2 below shows the corresponding relationship between each action number and its pre-assigned action number.

[0090] Table 2 Correspondence between action numbers and their preceding action numbers

[0091] Step S111, generating or querying the call source traceability list according to the request parameter mapping to obtain the action number corresponding to the current service call request and the priority information corresponding to the action number;

[0092] It is understood that, in some examples, the call source management module can obtain relevant method service request parameters according to the requested method ID and the corresponding payload, and generate an action ID and corresponding priority information (PriorityLevel, SubPriorityLevel) according to pre-defined rules;

[0093] In another example, the action sequence number corresponding to the current service call request and the priority information corresponding to the action sequence number may also be obtained by querying the call source tracing list according to the request parameter mapping.

[0094] The corresponding relationship between the request parameters and the action sequence number can be shown in the following table 3:

[0095] Table 3. Correspondence between request parameters and action numbers

[0096] Step S112: Store at least part of the request parameters, action sequence number and priority information into the current call queue corresponding to the requested service through the adding interface.

[0097] The service provider calls the source management module and calls SourcingManager.Add to add caller-related information to the interface. Specifically, at least part of the request parameters, action sequence number, and priority information are stored in the current call queue corresponding to the requested service through the add interface. Table 4 below is a schematic diagram of a call queue:

[0098] Table 4. Current call queue diagram

[0099] Step S12: arbitrate the service call request according to the priority information corresponding to the action sequence number, and after the arbitration is passed, call the method service and execute it;

[0100] In a specific example, only the actions performed may be arbitrated, including:

[0101] Use SourcingManager.Query(ActionID) to query whether there are other action numbers with the same name in the current call queue according to the action number;

[0102] If it does not exist, the arbitration will be directly determined to be successful;

[0103] If so, the priority information of the current action number is compared with the priority information of other action numbers with the same name. If the priority of the current action number is the highest, the arbitration is determined to have passed, the arbitration right is obtained, and the method class service is allowed to be called and executed. Otherwise, an indication of call failure is returned, where the failure reason is arbitration failure.

[0104] In another specific example, arbitration may be performed on the sequence number of the preceding action of the currently executed action.

[0105] For example, if ACT_HORN_STOP is executed, arbitration will focus on whether the caller has arbitration rights for its preceding action ACT_HORN_START. This includes:

[0106] Use SourcingManager.Query(prefixActionID) to check whether the prefixAcitonID exists in the current call queue;

[0107] If it does not exist, the arbitration will be directly determined to be successful;

[0108] If it exists, the priority information of the current action number is compared with the priority information of the previous action number in the current call queue. When the priority of the current action number is the highest priority, the arbitration is determined to be successful; otherwise, the call fails and the reason for the failure is arbitration failure.

[0109] Step S13: After the execution is completed, the service requester related information corresponding to the current action sequence number in the call queue is deleted.

[0110] In a specific example, the executed ActionID information needs to be deleted. The step S13 further includes:

[0111] After the execution of the current method type service is completed, the service provider deletes the caller-related information in the interface of the call source management module (SourcingManager); specifically, the information corresponding to the current action sequence number is deleted, that is, the information related to the action sequence number executed by the requester sequence number and the session sequence number is deleted, including: service sequence number (ServiceID), method sequence number (MethodID), requester sequence number (ClientID), session sequence number (SessionID), current action sequence number (ActionID) and priority information (PriorityLevel, SubPriorityLevel).

[0112] In another specific example, it is necessary to delete the preceding ActionID information of the executed actions individually or collectively, and the step S13 further includes:

[0113] Call SourcingManager.Delete to delete information related to the preceding action sequence executed by the requester sequence number (ClientID) and session sequence number (SessionID), including: service sequence number (ServiceID), method sequence number (MethodID), requester sequence number (ClientID), session sequence number (SessionID), preceding action sequence number (preceding ActionID) and priority information (PriorityLevel, SubPriorityLevel).

[0114] 5 and 6 , the method provided in this application mainly applies the call source management link shown in FIG5 , and at the same time utilizes the relevant interfaces provided by the call source management module (SourcingManager) to perform on-demand query and other application tasks in the execution link.

[0115] It can be understood that the system described in the present application forms a call source traceability list dynamically by adding a call source management module to the middleware service proxy related components, marking the ServiceID, MethodID, ClientID, SessionID, ActionID, and priority related information of the service call when the service is called. When the related service is called subsequently, the call source of the currently executed action can be identified by querying the list, and call arbitration based on SessionID, ClientID or ActionID can be achieved by comparing the ActionID priority in the list;

[0116] More specifically, by storing and managing the caller information (ClientID) of the service when the service user calls the service, the call queue information of the service is provided, so that the execution module can query all existing callers of the service when needed, and at the same time provide a queue member deletion function so that the execution module can release the caller information after completing the required function.

[0117] After completing the current caller's work instructions, the implementation execution module implements interrupt recovery operations and more detailed permission management for specific callers based on the queue information provided by the call source management module. As shown in Figures 7 and 8, Figure 7 is an action sequence diagram of an RPC application scenario (speaker control) involved in this application, and Figure 8 is a schematic diagram of the workflow of each participant in Figure 7; by performing queue queries and priority comparison measures, the disputes and conflicts shown in Figure 3 can be avoided.

[0118] As shown in Figure 9, a schematic diagram of the structure of an embodiment of a vehicle-side service call processing system based on SOA architecture provided by the present application is shown. In conjunction with Figures 10 to 12, in this embodiment, the system 1 is integrated into the SOME / IP middleware between the service provider and the service requester, and includes at least:

[0119] The service call acquisition unit 10 is used to receive a service call request for a method class (Method) service from a service requester and obtain request parameters in the service call request; the request parameters include at least: a service serial number (ServiceID), a method serial number (MethodID), a requester serial number (ClientID), a session serial number (SessionID), and a load (Payload);

[0120] A call queue establishment unit 11 is configured to obtain an action ID corresponding to the request parameters and priority information corresponding to the action ID, and store at least part of the request parameters, the action ID and the priority information in a current call queue corresponding to the requested service;

[0121] The arbitration processing unit 12 is used to arbitrate the service call request according to the priority information corresponding to the action sequence number;

[0122] The service calling processing unit 13 is used to call and execute the method service after the arbitration processing unit's arbitration result is that the arbitration is passed;

[0123] The calling queue information deleting unit 14 deletes the service requester related information corresponding to the current action sequence number in the calling queue after execution is completed;

[0124] The action number association setting unit 16 is used to pre-set a leading action number for the action numbers in the function items that appear in pairs;

[0125] The call source traceability list update unit 15 is used to query and obtain the latest call source traceability list from the cloud and store it when the vehicle is initialized. The call source traceability list contains multiple records, each record contains a service serial number, method serial number, action serial number and priority information, and the priority information includes priority and sub-priority values.

[0126] As shown in FIG10 , the calling queue establishing unit 11 further includes:

[0127] The call source determination unit 110 is configured to query a pre-stored call source tracing list according to the request parameters to determine whether the requested method service needs to be included in the call source management;

[0128] The action sequence number information acquisition unit 111 is used to obtain the action sequence number corresponding to the current service call request and the priority information corresponding to the action sequence number by generating or querying the call source traceability list according to the request parameter mapping;

[0129] The storage unit 112 is used to store at least part of the request parameters, action sequence number and priority information into the current call queue corresponding to the requested service through the adding interface.

[0130] As shown in FIG11 , the arbitration processing unit 12 further includes:

[0131] A query unit 120 is configured to query, based on the action sequence number, whether there is another action sequence number with the same name in the current call queue;

[0132] The current action number arbitration processing unit 121 is configured to directly determine that the arbitration has been passed if the query unit finds that the action number does not exist; and if the query unit finds that the action number exists, compare the priority information of the current action number with the priority information of other action numbers with the same name, and determine that the arbitration has been passed if the priority of the current action number is the highest priority;

[0133] The predecessor action sequence number arbitration processing unit 122 is used to determine whether there is a predecessor action sequence of the current action sequence number in the current call queue. If so, the priority information of the current action sequence number is compared with the priority information of the predecessor action sequence number in the current call queue. When the priority of the current action sequence number is the highest priority, it is determined that the arbitration is passed.

[0134] As shown in FIG12 , the call queue information deletion unit 13 specifically includes:

[0135] The current action sequence number information deletion unit 130 is used to delete the information corresponding to the current action sequence number in the call queue after the current method service is executed, including: service sequence number, method sequence number, requester sequence number, session sequence number, current action sequence number and priority information;

[0136] The predecessor action sequence number information deletion unit 131 is used to delete the information corresponding to the predecessor action sequence number of the current action sequence number in the call queue after the current method type service is executed. The information includes: service sequence number, method sequence number, requester sequence number, session sequence number, predecessor action sequence number and priority information.

[0137] For more details, please refer to and combine the methods described in Figures 4 to 8 above, which will not be described in detail here.

[0138] Accordingly, another aspect of the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in Figures 4 to 8 . For more details, reference can be made to and in conjunction with the method described in Figures 4 to 8 , and will not be repeated here.

[0139] Accordingly, another aspect of the present application provides a vehicle comprising a vehicle-side service provider and a service requester. Remote procedure calls are implemented between the service provider and the service requester via the SOME / IP protocol. The SOA-based vehicle-side service call processing system described in Figures 9 through 12 is integrated into the SOME / IP middleware. For further details, please refer to and combine the aforementioned descriptions of Figures 9 through 12 and are not further elaborated here.

[0140] The implementation of the embodiments of the present application has the following beneficial effects:

[0141] The present invention provides a vehicle-side service call processing method, system, storage medium, and vehicle based on a SOA architecture. By adding a call source management function to the RPC call process in the current SOME / IP protocol, a queue management mechanism is established. The current call queue is used to trace the history of method-based service calls. An action sequence number is generated based on specific call parameters, and arbitration is performed for the current remote procedure call based on the priority information corresponding to the action sequence number.

[0142] By implementing this application, by establishing a queue management mechanism within the service and dynamic IDs (action numbers) between service callers and providers, it is possible to dynamically monitor all valid callers of the current function and implement function arbitration for specific callers to avoid impacting the functions of other callers. This can effectively reduce monitoring and repeated calling behaviors at the application layer, reduce the amount of code and communication data, and improve the negative experience caused by function switching, thereby improving the efficiency and security of remote procedure calls; at the same time, it can reduce the cost of developing and maintaining the automotive SOA service architecture.

[0143] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0144] The present application is described with reference to the flow chart and / or block diagram of the method, device (system), and computer program product according to the embodiment of the present application. It should be understood that each flow process and / or box in the flow chart and / or block diagram and the combination of the flow process and / or box in the flow chart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processing machine or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one flow chart flow or multiple flows and / or one box or multiple boxes of the block diagram.

[0145] The above disclosure is only a preferred embodiment of the present application, and certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A vehicle-side service call processing method based on SOA architecture, characterized in that: At least the following steps are included: Receive a service call request for a method class Method service from a service requester, and obtain request parameters in the service call request; Obtaining an action number ActionID corresponding to the request parameter and priority information corresponding to the action number, and storing at least part of the request parameter, the action number and the priority information into a current call queue corresponding to the requested service; Arbitrate the service call request according to the priority information corresponding to the action sequence number, and after the arbitration is passed, call the method class service and execute it; After the execution is completed, the service requester related information corresponding to the current action sequence number in the call queue is deleted.

2. The method according to claim 1, characterized in that The step of obtaining the action number ActionID corresponding to the request parameter and the priority information corresponding to the action number, and storing at least part of the request parameter, the action number and the priority information into the current call queue corresponding to the requested service further includes: According to the request parameters, a pre-stored call source tracing list is queried to determine whether the requested method service needs to be included in the call source management, wherein the request parameters at least include: service ID, method ID, requester ID, session ID, and payload; Generate or query the call source traceability list according to the request parameter mapping to obtain the action number corresponding to the current service call request and the priority information corresponding to the action number; At least part of the request parameters, action sequence number and priority information are stored in the current call queue corresponding to the requested service through the adding interface.

3. The method according to claim 2, characterized in that The step of arbitrating the service call request according to the priority information corresponding to the action sequence number includes: According to the action sequence number, it is checked whether there are other action sequences with the same name in the current call queue; If it does not exist, the arbitration will be directly determined to be successful; If so, the priority information of the current action number is compared with the priority information of other action numbers with the same name. When the priority of the current action number is the highest priority, it is determined that the arbitration is passed.

4. The method according to claim 3, characterized in that The step of arbitrating the service call request according to the priority information corresponding to the action sequence number further includes: Determine whether there is a preceding action sequence of the current action number in the current call queue. If so, compare the priority information of the current action number with the priority information of the preceding action number in the current call queue. When the priority of the current action number is the highest priority, determine that the arbitration is passed.

5. The method according to claim 4, characterized in that After the execution is completed, the step of deleting the service requester related information corresponding to the current action sequence number in the call queue specifically includes: After the current method service is executed, the information corresponding to the current action number is deleted from the call queue, including: service number, method number, requester number, session number, current action number and priority information.

6. The method according to claim 4, characterized in that After the execution is completed, the step of deleting the service requester related information corresponding to the current action sequence number in the call queue further includes: After the current method service is executed, the information corresponding to the preceding action number of the current action number is deleted from the call queue, including: service number, method number, requester number, session number, preceding action number and priority information.

7. The method according to any one of claims 1 to 6, characterized in that: Further including: Preset the leading action number for the action numbers in the function items that appear in pairs.

8. The method according to any one of claims 1 to 6, characterized in that Further including: When the vehicle is initialized, it queries and obtains the latest call source traceability list from the cloud and stores it. The call source traceability list contains multiple records, each of which contains a service number, method number, action number and priority information. The priority information includes priority and sub-priority values.

9. A vehicle-side service call processing system based on SOA architecture, characterized in that: At least: A service call acquisition unit is used to receive a service call request for a method class Method service from a service requester, and obtain request parameters in the service call request; A call queue establishment unit, used to obtain the action number ActionID corresponding to the request parameter and the priority information corresponding to the action number, and store at least part of the request parameters, the action number and the priority information into the current call queue corresponding to the requested service; An arbitration processing unit, used for arbitrating the service call request according to the priority information corresponding to the action sequence number; A service calling processing unit, used to call and execute the method service after the arbitration result of the arbitration processing unit is that the arbitration is passed; The calling queue information deleting unit deletes the service requester related information corresponding to the current action sequence number in the calling queue after execution is completed.

10. The system according to claim 9, characterized in that The calling queue establishing unit further comprises: A call source determination unit, used to query a pre-stored call source tracing list according to the request parameters to determine whether the requested method service needs to be included in the call source management, wherein the request parameters at least include: service number ServiceID, method number MethodID, requester number ClientID, session number SessionID, and load Payload; An action sequence number information acquisition unit, used to generate or query the call source tracing list according to the request parameter mapping. Obtain the action sequence number corresponding to the current service call request and the priority information corresponding to the action sequence number; The storage unit is used to store at least part of the request parameters, action sequence number and priority information into the current call queue corresponding to the requested service through the adding interface.

11. The system according to claim 10, characterized in that The arbitration processing unit further comprises: A query unit, used to query whether there are other action numbers with the same name in the current call queue according to the action number; The current action sequence number arbitration processing unit is used to directly determine that the arbitration is passed if the query unit finds that the action sequence number does not exist; and if the query unit finds that the action sequence number exists, compare the priority information of the current action sequence number with the priority information of other action sequence numbers with the same name, and determine that the arbitration is passed when the priority of the current action sequence number is the highest priority; The predecessor action sequence number arbitration processing unit is used to determine whether there is a predecessor action sequence of the current action sequence number in the current calling queue. If so, the priority information of the current action sequence number is compared with the priority information of the predecessor action sequence number in the current calling queue. When the priority of the current action sequence number is the highest priority, it is determined that the arbitration is passed.

12. The system according to claim 11, characterized in that The calling queue information deleting unit specifically includes: The current action sequence number information deletion unit is used to delete the information corresponding to the current action sequence number in the call queue after the current method service is executed, including: service sequence number, method sequence number, requester sequence number, session sequence number, current action sequence number and priority information; The predecessor action sequence number information deletion unit is used to delete the information corresponding to the predecessor action sequence number of the current action sequence number in the call queue after the current method type service is executed, including: service sequence number, method sequence number, requester sequence number, session sequence number, predecessor action sequence number and priority information.

13. The system according to any one of claims 9 to 12, characterized in that Further including: An action number association setting unit, used to pre-set a leading action number for the action numbers in the function items that appear in pairs; The call source traceability list update unit is used to query and obtain the latest call source traceability list from the cloud and store it when the vehicle is initialized. The call source traceability list contains multiple records, each record contains a service number, a method number, an action number and priority information, and the priority information includes priority and sub-priority values.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

15. A vehicle, characterized in that: It is provided with a service provider and a service requester of the vehicle-side service, and the service provider and the service requester implement remote procedure call through the SOME / IP protocol. It is characterized in that, in one place, a vehicle-side service call processing system based on SOA architecture as described in any one of claims 9 to 13 is integrated in the SOME / IP middleware.

Citation Information

Patent Citations

  • Vehicle-mounted network ECU communication method based on SOME / IP protocol

    CN112291124A

  • In-vehicle SOME / IP transmission method and device based on TSN time sensitive network

    CN114785474A

  • Service call request arbitration method of vehicle-mounted SOA system

    CN114844839A

  • Service call chain tracking method and system based on AUTOSAR Adaptive, computer and storage medium

    CN114978880A

  • Service state feedback method, device and equipment based on SOA (Service Oriented Architecture) and medium

    CN115687015A

Cited By

  • Vehicle body control arbitration method and apparatus based on SOA services

    WO2026103551A1