A mapping relationship generation method and device, and a storage medium
By automatically creating a mapping relationship between service instances and target communication connectors, the tedious manual configuration problem in the AUTOSAR adaptive platform is solved, thus improving configuration efficiency.
Patent Information
- Application Number
- CN202180007810.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-21
- Publication Date
- 2026-02-17
- Estimated Expiration
- 2041-10-21
AI Technical Summary
In the AUTOSAR adaptive platform, manually establishing the mapping relationship between communication service instances and nodes is a cumbersome and inefficient process.
By acquiring the mapping information between nodes and network domains, and the mapping information between processes and nodes, the system automatically creates the mapping relationship between service instances and target communication connectors, simplifying the configuration process.
The mapping relationship between service instances and target communication connectors can be established without manual operation, which improves configuration efficiency and simplifies the communication management process in the AUTOSAR adaptive platform.
Smart Images

Figure CN116324721B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of intelligent vehicles, and in particular to a mapping relationship generation method and device and a storage medium. BACKGROUND
[0002] Automotive Open System Architecture (AUTOSAR) is an open and de facto standardized software architecture developed to reduce the development risk of automotive software. With the gradual application of intelligent vehicles, vehicles integrated with multiple auxiliary functions such as perception, control, and automatic cruise are typical high-tech complexes. Their emergence has made vehicles more intelligent and electronic, and also made the software structure of vehicles more complex. AUTOSAR has introduced an adaptive platform (Adaptive Platform) on the basis of the original classic platform (Classic Platform).
[0003] Among them, communication management (CM) is the most important part of AUTOSAR Adaptive Platform. In the process of configuring CM, a series of mapping relationships need to be established for the communication service instance after it is instantiated. Currently, the mapping relationship is manually established one by one for each instance, which is cumbersome and inefficient. SUMMARY
[0004] Therefore, a mapping relationship generation method, device and storage medium are provided.
[0005] In a first aspect, an embodiment of the present application provides a mapping relationship generation method, which comprises: obtaining mapping relationship information between a communication connector on a node and a network domain; obtaining mapping relationship information between a process and the node, the mapping relationship information between the process and the node including a software component corresponding to the process, the software component including at least one port prototype; creating a service instance for a port prototype used by the process in the network domain according to the mapping relationship information between the communication connector on the node and the network domain and the mapping relationship information between the process and the node, and creating a mapping relationship between the service instance and a target communication connector on the node.
[0006] According to the embodiments of the present application, by creating a service instance for a port prototype used by the process in the network domain, a mapping relationship between the service instance and the target communication connector on the node can be created without manual operation in the process of configuring a communication management (CM), so that the corresponding node can communicate with the service instance, without manually establishing the mapping relationship, thereby simplifying the configuration process and improving the configuration efficiency.
[0007] According to the first aspect, in a first possible implementation manner of the mapping relationship generation method, the method further includes: creating the network domain, and configuring mapping relationship information between the communication connector on the node and the network domain.
[0008] Therefore, the communication connector on the node can be connected with the network domain, so that the mapping relationship between the service instance in the network domain and the target communication connector can be automatically created subsequently.
[0009] According to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the mapping relationship generation method, the method further includes: configuring a mapping relationship between the process and the node, and allocating a corresponding software component to the process.
[0010] Therefore, the association relationship between the process and the software component can be determined, so that the mapping relationship between the service instance in the network domain and the target communication connector can be automatically created subsequently.
[0011] According to the first aspect or the first or second possible implementation manner of the first aspect, in a third possible implementation manner of the mapping relationship generation method, the method further includes: configuring a port prototype used by the process and another process for communication in the network domain.
[0012] Therefore, the association relationship between the process and the port prototype can be determined, so that the mapping relationship between the service instance in the network domain and the target communication connector can be automatically created subsequently.
[0013] In a fourth possible implementation of the mapping relationship generation method according to the first, second or third possible implementation of the first aspect, the network domain is created, and the mapping relationship information of the communication connector on the node and the network domain is configured, including: determining the ID of the network domain; creating a service instance for a port archetype used by the process in the network domain according to the mapping relationship information of the communication connector on the node and the network domain, and the mapping relationship information between the process and the node, and creating a mapping relationship between the service instance and the target communication connector on the node, including: in a case where a communication protocol of the service instance is a data distribution service (DDS), determining that a network domain ID associated with the service instance is the ID.
[0014] According to the embodiments of the present application, by determining the ID of the network domain, the network domain ID can be associated with the service instance in a case where the communication protocol is DDS, without manual setting, thereby simplifying the configuration process and improving the configuration efficiency.
[0015] In a fifth possible implementation of the mapping relationship generation method according to the first aspect or the first, second, third or fourth possible implementation of the first aspect, each communication connector is associated with an Internet Protocol (IP) address.
[0016] Thus, the node can communicate with other configured objects through the communication connector.
[0017] In a sixth possible implementation of the mapping relationship generation method according to the first aspect or the first, second, third, fourth or fifth possible implementation of the first aspect, the service instance for the port archetype used by the process in the network domain is created according to the mapping relationship information of the communication connector on the node and the network domain, the mapping relationship information between the process and the node, and the mapping relationship between the service instance and the target communication connector on the node, including: determining a first communication connector information set corresponding to the network domain according to the mapping relationship information of the communication connector on the node and the network domain, the first communication connector information set including at least one communication connector on the node; determining a second communication connector information set corresponding to the software component port archetype according to the mapping relationship information between the service instance and the software component port archetype, the second communication connector information set including at least one communication connector on the target node; and determining the mapping relationship between the service instance and the target communication connector according to the first communication connector information set and the second communication connector information set.
[0018] According to the embodiment of the present application, the target communication connector is determined by determining two communication connector information sets, without manually searching for the target communication connector, and the mapping relationship between the service instance and the target communication connector can be established in the configuration process, without manually establishing the mapping relationship, thereby realizing the mapping of the service instance to the node, simplifying the configuration process, and improving the efficiency.
[0019] According to a seventh possible implementation of the mapping relationship generation method according to the sixth possible implementation of the first aspect, the mapping relationship between the service instance and the target communication connector is created according to the intersection of the first communication connector information set and the second communication connector information set.
[0020] Therefore, the mapping relationship between the service instance and the target communication connector can be determined without manually searching for the target communication connector, thereby realizing the communication between the service instance and the target node, simplifying the configuration process, and improving the efficiency.
[0021] According to the eighth possible implementation of the mapping relationship generation method according to the first aspect or the first, second, third, fourth, fifth, sixth, or seventh possible implementation of the first aspect, the method is used for configuring a communication service in an AUTOSAR adaptive platform.
[0022] Therefore, the method can be applied to a vehicle, and the communication management CM configuration in the AUTOSAR adaptive platform can be more efficiently realized to apply the corresponding communication service.
[0023] According to the eighth possible implementation of the mapping relationship generation method according to the first aspect or the first, second, third, fourth, fifth, sixth, or seventh possible implementation of the first aspect, the method is used for configuring a communication service in an AUTOSAR adaptive platform.
[0022] Therefore, the method can be applied to a vehicle, and the communication management CM configuration in the AUTOSAR adaptive platform can be more efficiently realized to apply the corresponding communication service.
[0023] According to the eighth possible implementation of the mapping relationship generation method according to the first aspect or the first, second, third, fourth, fifth, sixth, or seventh possible implementation of the first aspect, the method is used for configuring a communication service in an AUTOSAR adaptive platform.
[0024] According to a second aspect, in a first possible implementation manner of the mapping relationship generating apparatus, the apparatus further includes a first configuration module configured to create the network domain and configure mapping relationship information between the communication connector on the node and the network domain.
[0025] According to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner of the mapping relationship generating apparatus, the apparatus further includes a second configuration module configured to configure mapping relationship between the process and the node and assign a corresponding software component to the process.
[0026] According to the second aspect or the first or second possible implementation manner of the second aspect, in a third possible implementation manner of the mapping relationship generating apparatus, the apparatus further includes a third configuration module configured to configure a port prototype used by the process and another process for communication in the network domain.
[0027] According to the first or second or third possible implementation manner of the second aspect, in a fourth possible implementation manner of the mapping relationship generating apparatus, the first configuration module includes determining an ID of the network domain; and the creating module includes, in a case that the communication protocol of the service instance is a data distribution service (DDS), determining a network domain ID associated with the service instance as the ID.
[0028] According to the second aspect or the first or second or third or fourth possible implementation manner of the second aspect, in a fifth possible implementation manner of the mapping relationship generating apparatus, each communication connector is associated with an Internet Protocol (IP) address.
[0029] According to the second aspect or the first or second or third or fourth or fifth possible implementation manner of the second aspect, in a sixth possible implementation manner of the mapping relationship generating apparatus, the creating module includes: determining a first communication connector information set corresponding to the network domain according to the mapping relationship information between the communication connector on the node and the network domain, the first communication connector information set including at least one communication connector on the node; determining a second communication connector information set corresponding to the software component port prototype according to the mapping relationship information between the service instance and the software component port prototype, the second communication connector information set including at least one communication connector on a target node; and creating the mapping relationship between the service instance and the target communication connector according to the first communication connector information set and the second communication connector information set.
[0030] According to a seventh possible implementation form of the mapping relationship generation apparatus according to the second aspect, the mapping relationship generation apparatus is configured to create the mapping relationship between the service instance and the target communication connector according to the first communication connector information set and the second communication connector information set, comprising: determining the target communication connector according to an intersection of the first communication connector information set and the second communication connector information set; and creating the mapping relationship between the service instance and the target communication connector.
[0031] According to an eighth possible implementation form of the mapping relationship generation apparatus according to the second aspect or the first, second, third, fourth, fifth or sixth possible implementation form of the second aspect, the apparatus is configured to configure a communication service in an automotive open system architecture (AUTOSAR) adaptive platform.
[0032] In a third aspect, embodiments of the present application provide a mapping relationship generation apparatus, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the mapping relationship generation method of the first aspect or one or more of the possible implementation forms of the first aspect when executing the instructions.
[0033] In a fourth aspect, embodiments of the present application provide a non-volatile computer-readable storage medium having stored thereon computer program instructions, which, when executed by a processor, implement the mapping relationship generation method of the first aspect or one or more of the possible implementation forms of the first aspect.
[0034] In a fifth aspect, embodiments of the present application provide a terminal device, which can execute the mapping relationship generation method of the first aspect or one or more of the possible implementation forms of the first aspect.
[0035] In a sixth aspect, embodiments of the present application provide a computer program product comprising computer readable code or a non-volatile computer readable storage medium carrying computer readable code, which, when run in an electronic device, causes a processor in the electronic device to execute the mapping relationship generation method of the first aspect or one or more of the possible implementation forms of the first aspect.
[0036] These and other aspects of the present application will become more fully understood from the following (a few) embodiment descriptions. BRIEF DESCRIPTION OF DRAWINGS
[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate example embodiments, features, and aspects of the application and together with the description, serve to explain the principles of the application.
[0038] Figure 1 A schematic diagram showing an application scenario according to an embodiment of the present application.
[0039] Figure 2 A flow chart showing a mapping relationship generation method according to an embodiment of the present application.
[0040] Figure 3 A schematic diagram showing creation of a service instance in a network domain according to an embodiment of the present application.
[0041] Figure 4 A schematic diagram showing determination of a mapping relationship according to an embodiment of the present application.
[0042] Figure 5 A flow chart showing a mapping relationship generation method according to an embodiment of the present application.
[0043] Figure 6 A flow chart showing a mapping relationship generation method according to an embodiment of the present application.
[0044] Figure 7 A flow chart showing a mapping relationship generation method according to an embodiment of the present application.
[0045] Figure 8 A structural diagram of a mapping relationship generation apparatus according to an embodiment of the present application.
[0046] Figure 9 A structural diagram of a mapping relationship generation apparatus according to an embodiment of the present application. DETAILED DESCRIPTION
[0047] Various exemplary embodiments, features, and aspects of the present application will be described herein below with reference to the accompanying drawings. Identical reference numerals in the drawings denote elements having the same or similar functions. Although various aspects of the embodiments are illustrated in the drawings, the drawings are not necessarily drawn to scale unless specifically stated.
[0048] The word "exemplary" is used herein to mean "serving as an example, instance, or illustration." Any implementation described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other implementations.
[0049] In addition, a large number of specific details are given in the following detailed description of the application in order to provide a thorough understanding thereof. It will be apparent, however, to one skilled in the art that the application can be practiced without some or all of these specific details. In some instances, well-known methods, procedures, components, and circuits have not been described in detail in order to avoid unnecessarily obscuring the subject matter of the present application.
[0050] Figure 1A schematic diagram of an application scenario according to an embodiment of the present application is shown. The mapping relationship generation method of the present application can be used in the process of configuring communication management on an AUTOSAR adaptive platform. As shown in Figure 1 , the architecture of the AUTOSAR adaptive platform can include an application layer, a service layer, and a hardware layer. The application layer can include software for implementing application functions, such as software components (SWC), etc.; the service layer can provide various background services for the application layer, such as communication management CM, core types for providing data structure definition services; and the hardware layer can include nodes, which can be vehicle chips built into vehicles, such as microcontroller units (MCU), or domain controllers including MCUs, infotainment systems, etc.
[0051] In the process of configuring CM, it is usually necessary to instantiate communication services in the CM, i.e., to determine service instances and then establish a series of mapping relationships for them, in order to establish the mapping relationship between the service instances and the nodes (which can be referred to as machines) on the hardware layer, so that the software components SWC in the application layer can apply the communication services corresponding to the service instances. In the above process, if the mapping relationship is manually established one by one for each service instance, the process will be very tedious.
[0052] In view of this, in the mapping relationship generation method of the present application, a service instance is created in a network domain, and the mapping relationship between the network domain and the communication connectors on the nodes is determined (which is equivalent to establishing the mapping relationship between the service instance and the nodes), so that a series of mapping relationships can be established in the process of configuring the CM, and finally the mapping between the service instance and the target communication connector can be achieved without manual operation, improving the efficiency in the configuration process.
[0053] The following is under the application scenario shown in Figure 1 , through Figures 2-7 the mapping relationship generation method of the embodiment of the present application is introduced in detail:
[0054] Figure 2 A flowchart of the mapping relationship generation method according to an embodiment of the present application is shown. As shown in Figure 2 , the method can be used for a processor, and the method includes:
[0055] Step S201, creating a network domain.
[0056] Optionally, the network domain can be a virtual network domain.
[0057] In the case of a service interface deployment binding communication protocol being a data distribution service (DDS), a corresponding network domain default domain ID can also be generated for each created network domain.
[0058] Step S202, configure a node.
[0059] In the process of configuring a node, an ethernet cluster can be configured, and in this process, the network configuration of the ethernet, such as the IP address, subnet mask, etc., can be defined.
[0060] On the basis of configuring the ethernet cluster, a node design can also be configured, and in this process, the ethernet communication connector (ethernet communication connector, i.e., the communication connector mentioned above) on the node can be defined to realize the association of the node and the communication connector, and each communication connector on the node can be allocated an IP address to realize the communication of the node with other network domains, service instances, etc. Different communication connectors can be defined for different communication protocols. A service discovery IP can also be defined so that the IP address of the corresponding service can be determined when the service is accessed.
[0061] In the process of configuring a node, the relevant information of the configured node design can be referenced.
[0062] After the node is configured, the mapping relationship between the network domain and the communication connector on each node can be established. In this process, the network domain can be mapped with multiple nodes, and in this process, for each node, a communication connector on the node can be selected to be mapped with the network domain.
[0063] Step S203, configure an application.
[0064] In the process of configuring an application, the software component type can be configured, such as defining the object and attribute of the software component. The receiving port prototype (R-Port Prototype) for requesting services or data on the software component, and the sending port prototype (P-Port Prototype) for providing services or data can also be defined.
[0065] On the basis of configuring the software component type, the method further comprises: configuring an executable program, and in the configuration of the executable program, the information of the configured software component type can be referenced, so that the association between the executable program and the software component SWC can be realized.
[0066] On the basis of configuring the executable program, the method further comprises: configuring a process design, and in the configuration of the process design, the information of the configured executable program can be referenced.
[0067] On the basis of configuring the process design, the method further comprises: configuring a process, and in the configuration of the process, the information of the configured executable program and the information of the process design can be referenced, so that the association between the process and the executable program can be realized.
[0068] Thus, the association relationship among the software component (including the port prototype on the software component), the executable program and the process can be realized.
[0069] After the application is configured, the mapping relationship between the process and the node can be established, and according to the association relationship among the software component, the executable program and the process, the mapping relationship between the process and the software component can be obtained, so that the corresponding software component can be allocated to the process.
[0070] In step S204, a service instance is created in the network domain.
[0071] The network domain can be the network domain created in step S201.
[0072] In a possible implementation, in the process of creating the service instance, after the application is configured, the corresponding service instance can be created for the software component port prototype (for example, the respective service instances are created for the P port prototype and the R port prototype), so that the mapping relationship between the software component port prototype and the service instance is established. Then, according to the mapping relationship between the process and the node, the service instance can be associated with the configured node.
[0073] In the process of creating the service instance, the information of the configured service interface deployment can be referenced.
[0074] In the case where the bound communication protocol is DDS, the network domain identifier and the service instance can be automatically associated, without manual setting, so that the repeated configuration is avoided. See Figure 3 , Figure 3 FIG. 1 shows a schematic diagram of creating a service instance in a network domain according to an embodiment of the present application. As shown in FIG. 1, the network domain is created in step S201, and the service interface deployment is configured in step S202. Then, the application is configured in step S203, and the process is configured in step S204. Figure 3As shown, for the network domain created in step S201, a network domain identifier can be set by default, for example, 30 (the network domain identifier can be modified). In the network domain, multiple service instances can be created, such as service instance A, service instance B, service instance C, and service instance D. If the binding communication protocol is DDS, the network domain identifier (domain ID) attribute of each service instance created in the network domain can be set to the default network domain identifier of the network domain, without the need for manual repeated configuration. For example, the network domain identifier attribute of service instances A, B, C, and D in the same network domain can be set to 30. Thus, the configuration of the corresponding network domain identifier attribute in the service instance can be implemented. When the service instance is created in the network domain, some other attributes of the service instance can also be automatically configured, which is not limited in the present application.
[0075] In step S205, the mapping relationship between the service instance and the node is determined.
[0076] The mapping relationship between the service instance and the node is actually implemented to enable the node to communicate with the service instance, and thus the mapping relationship between the service instance and the target communication connector on the node is actually determined. The mapping relationship between the service instance and the target communication connector can be implemented through one of the following implementation manners.
[0077] Referring to Figure 4 , Figure 4 A schematic diagram for determining the mapping relationship according to an embodiment of the present application is shown. As Figure 4 shown, the solid connection arrows in the figure can represent that the two parties of the connection establish a mapping relationship. For example, the connection arrow between network domain 1 and communication connector B can indicate the mapping relationship between network domain 1 and the communication connector on node A, and the connection arrow between network domain 1 and communication connector C can indicate the mapping relationship between network domain 1 and the communication connector on node B. Thus, according to the mapping relationship between network domain 1 and the communication connectors on node A and node B, a set ListA of communication connectors can be obtained, which includes communication connector B and communication connector C, corresponding to the communication connectors on node A and B for connecting with network domain 1, respectively.
[0078] Figure 4In the middle, P-port prototype and R-port prototype can correspond to software component port prototype P-portPrototype and R-portPrototype respectively, and the connection arrows between P-port prototype and R-port prototype and service instance can indicate the mapping relationship between the determined service instance and software component port prototype. Since the association relationship between software component, executable program and process is determined in step S203, the association relationship between software component, executable program, process and node can be realized by obtaining the mapping relationship between process and node. Thus, the association relationship between service instance A and software component A corresponding to one P-port prototype of software component A can be obtained through the mapping relationship between service instance (for example, service instance A) and software component port prototype, so that the association relationship between service instance A and executable program A and process A can be obtained, and finally the node A associated with the service instance can be determined. Since there is at least one communication connector on node A, another set ListB can be obtained, which includes two communication connectors on node A associated with service instance A: communication connector A and communication connector B.
[0079] By taking the intersection of ListA and ListB, a unique communication connector can be determined as the target communication connector, that is, communication connector B. Thus, the mapping relationship between service instance A and communication connector B can be determined, which can be seen from the dashed line connection arrow between service instance A and communication connector B in Figure 4 For other service instances B, C and D, the corresponding dashed line connection arrows can be seen in Figure 4 .
[0080] Thus, the corresponding target communication connector can be found, the mapping relationship between service instance and target communication connector can be established, and the configuration process of CM can be completed. In this process, the user does not need to manually find, compare and configure, which improves the efficiency of the configuration process.
[0081] Optionally, the processes in steps S201-S205 can be performed on a visual interface, for example, in the form of graphics, tables and the like, and the user can operate on the visual interface to modify the configuration content. Taking the graphics shown in Figure 4 as an example, Figure 4 there is no existing connection arrow in the initial graphics, and the user can establish connection arrows in the initial graphics to determine the mapping relationship therebetween. The connection arrows established by the user can be seen from the solid line connection arrows (such as the arrow from P-port prototype to service instance A) in Figure 4 After the user establishes the mapping relationship corresponding to the solid line connection arrows shown in Figure 4 , the mapping relationship between service instance and the corresponding target communication connector can be determined according to the above method (see the dashed line connection arrow between service instance A and communication connector B in Figure 2The dashed line connection arrow in the figure, this step does not need user connection.
[0082] Optionally, after the CM configuration is completed, the configuration result of the CM can be displayed in a visual manner such as text, image, video, etc. For example, the object (such as a service instance, a node, etc.) properties configured in the configuration process and the mapping relationship established can be displayed in a domain view (or a sub-domain CM channel view, etc.). In the view, the object and its properties can be displayed, and the mapping relationship established in the configuration process can be represented by a connection line between the objects.
[0083] It should be noted that in a possible implementation, the definition of the basic data type, the configuration of the service interface, and the configuration of the service interface deployment can be completed before step S201.
[0084] In the process of defining the basic data type, the service implementation in the core type can be used, and the data type is, for example, an integer (int), a floating point (float), etc.
[0085] In the process of configuring the service interface, the communication mode required by the service can be defined, and for each communication mode, the event, the method, and the field therein can be defined, for example. The data type required by each communication mode (for example, corresponding to the basic data type described above) can also be determined.
[0086] In the process of configuring the service interface deployment, the related information of the configured service interface can be referenced, and the service interface deployment can also be bound to the corresponding communication protocol. In addition to the DDS described above, the communication protocol can also be a scalable service-oriented middleware over IP (SOME / IP) and the like.
[0087] It should be noted that, Figure 2 The execution order of the steps shown in the figure is not unique, and the scheme of the embodiments of the present application can also be executed in an order different from Figure 5 the order marked. For example, the execution order of step S205 and step S204 can be reversed.
[0088] Figure 5 A flow chart of a mapping relationship generation method according to an embodiment of the present application is shown. The method can be used for a processor, such as Figure 2 As shown, the method comprises:
[0089] Step S501, obtaining mapping relationship information between a communication connector on a node and a network domain;
[0090] In step S502, mapping relationship information between the process and the node is acquired, the mapping relationship information between the process and the node including a software component corresponding to the process, the software component including at least one port prototype;
[0091] In step S503, a service instance for the port prototype used by the process in the network domain is created according to the mapping relationship information between the communication connector on the node and the network domain and the mapping relationship information between the process and the node, and a mapping relationship between the service instance and the target communication connector on the node is created.
[0092] According to the embodiment of the present application, by creating a service instance for the port prototype used by the process in the network domain, the mapping relationship between the service instance and the target communication connector on the node can be created without manual operation in the process of configuring the communication management CM, so that the corresponding node can communicate with the service instance, without manually establishing the mapping relationship, simplifying the configuration process and improving the configuration efficiency.
[0093] The network domain can be a virtual domain. The at least one port prototype can be a plurality of groups of port prototypes, and each group of port prototypes can include a receiving port prototype and a sending port prototype.
[0094] For related examples of creating the service instance for the port prototype used by the process in the network domain in step S503, refer to the related description in step S204 in Figure 2 It should be noted that the service instance for the port prototype used by the process in the network domain can also be associated with the corresponding port prototype after the service instance is created. For examples of steps S501-S503, refer to the related description in step S205 in Figure 1 .
[0095] In a possible implementation, the method is used for configuring a communication service in an automotive open system architecture (AUTOSAR) adaptive platform.
[0096] Thus, the method can be applied to a vehicle, so that the communication management CM configuration in the AUTOSAR adaptive platform can be more efficiently implemented to apply the corresponding communication service.
[0097] The architecture of the AUTOSAR adaptive platform can refer to Figure 2 .
[0098] In a possible implementation, the method further includes creating the network domain and configuring mapping relationship information between the communication connector on the node and the network domain.
[0099] Thus, the connection between the communication connector on the node and the network domain can be established, so that the mapping relationship between the service instance in the network domain and the target communication connector can be automatically created subsequently.
[0100] The above process can refer to the related description in step S201 in Figure 2
[0101] In a possible implementation, the method further includes configuring the mapping relationship between the process and the node, and allocating a corresponding software component to the process.
[0102] Thus, the association relationship between the process and the software component can be determined, so that the mapping relationship between the service instance in the network domain and the target communication connector can be automatically created subsequently.
[0103] The above process can refer to the related description in step S203 in Figure 2
[0104] In a possible implementation, the method further includes configuring a port prototype used by the process and another process for communication in the network domain.
[0105] Thus, the association relationship between the process and the port prototype can be determined, so that the mapping relationship between the service instance in the network domain and the target communication connector can be automatically created subsequently.
[0106] The above process can refer to the related description in step S203 in Figure 2
[0107] In a possible implementation, the network domain is created, and the mapping relationship information between the communication connector on the node and the network domain is configured, including: determining the ID of the network domain; creating a service instance for the port prototype used by the process in the network domain according to the mapping relationship information between the communication connector on the node and the network domain, the mapping relationship information between the process and the node, and the mapping relationship between the service instance and the target communication connector on the node, including: in a case where the communication protocol of the service instance is a data distribution service (DDS), determining that the network domain ID associated with the service instance is the ID.
[0108] According to the embodiments of the present application, by determining the ID of the network domain, the network domain ID can be associated with the service instance in a case where the communication protocol is DDS, without manual setting, thereby simplifying the configuration process and improving the configuration efficiency.
[0109] The ID of the network domain can be the network domain identifier described above, which can be modified as needed.
[0110] The related example of creating a network domain can be referred to the related description in step S201 of Figure 6 The related example of determining the network domain ID associated with the service instance can be referred to the related description in step S204.
[0111] In a possible implementation, each communication connector is associated with an Internet Protocol (IP) address.
[0112] In this way, the node can communicate with other configured objects through the communication connector.
[0113] Figure 6 A flow chart of a mapping relationship generation method according to an embodiment of the present application is shown. As shown in Figure 2 According to the mapping relationship information between the communication connector on the node and the network domain, the mapping relationship information between the process and the node, a service instance is created for a port prototype used by the process in the network domain, and a mapping relationship between the service instance and a target communication connector on the node is created, including:
[0114] In step S601, according to the mapping relationship information between the communication connector on the node and the network domain, a first communication connector information set corresponding to the network domain is determined, and the first communication connector information set includes at least one communication connector on the node.
[0115] In step S602, according to the mapping relationship information between the service instance and the software component port prototype, a second communication connector information set corresponding to the software component port prototype is determined, and the second communication connector information set includes at least one communication connector on the target node.
[0116] In step S603, according to the first communication connector information set and the second communication connector information set, a mapping relationship between the service instance and the target communication connector is created.
[0117] According to the embodiments of the present application, by determining two communication connector information sets to determine the target communication connector, the target communication connector does not need to be manually found, the mapping relationship between the service instance and the target communication connector can be established in the configuration process, and the mapping relationship does not need to be manually established, thereby realizing the mapping of the service instance to the node, simplifying the configuration process, and improving the efficiency.
[0118] The examples of steps S601-S603 can be referred to the related description in step S205 of Figure 7 The first communication connector information set can be, for example, the ListA described above, and the second communication connector information set can be, for example, the ListB described above.
[0119] Figure 7A flow chart of a mapping relationship generation method according to an embodiment of the present application is shown. As shown in Figure 2 According to the first communication connector information set and the second communication connector information set, a mapping relationship between the service instance and the target communication connector is created, including:
[0120] Step S701, according to the intersection of the first communication connector information set and the second communication connector information set, the target communication connector is determined.
[0121] Step S702, a mapping relationship between the service instance and the target communication connector is created.
[0122] Therefore, without manual searching for the target communication connector corresponding to the service instance, the mapping relationship between the service instance and the target communication connector can be determined, so as to realize the communication between the service instance and the target node, simplify the configuration process, and improve the efficiency.
[0123] For related examples of steps S701-S702, refer to the related description in step S205 in Figure 8 The intersection of the first communication connector information set and the second communication connector information set is, for example, the intersection of ListA and ListB.
[0124] Figure 8 A structural diagram of a mapping relationship generation apparatus according to an embodiment of the present application is shown. As shown in Figure 9 The apparatus includes:
[0125] The first obtaining module 801 is configured to obtain mapping relationship information between a communication connector on a node and a network domain.
[0126] The second obtaining module 802 is configured to obtain mapping relationship information between a process and the node, the mapping relationship information between the process and the node including a software component corresponding to the process, the software component including at least one port prototype.
[0127] The creating module 803 is configured to create a service instance for a port prototype used by the process in the network domain according to the mapping relationship information between the communication connector on the node and the network domain and the mapping relationship information between the process and the node, and create a mapping relationship between the service instance and a target communication connector on the node.
[0128] According to the embodiment of the present application, by creating a service instance for a port prototype used by the process in the network domain, a mapping relationship between the service instance and the target communication connector on the node can be created without manual operation in the process of configuring a communication management (CM), so that the mapping relationship between the service instance created in the network domain and the target communication connector is established, and the corresponding node can communicate with the service instance without manually establishing the mapping relationship, thereby simplifying the configuration process and improving the configuration efficiency.
[0129] In a possible implementation, the apparatus is configured to configure a communication service in an automotive open system architecture (AUTOSAR) adaptive platform.
[0130] Therefore, the apparatus can be applied to a vehicle, and the communication management (CM) configuration in the AUTOSAR adaptive platform can be more efficiently implemented to apply the corresponding communication service.
[0131] In a possible implementation, the apparatus further includes a first configuration module configured to create the network domain and configure mapping relationship information between the communication connector on the node and the network domain.
[0132] Thus, the communication connector on the node and the network domain can be connected, and the mapping relationship between the service instance in the network domain and the target communication connector can be automatically created subsequently.
[0133] In a possible implementation, the apparatus further includes a second configuration module configured to configure a mapping relationship between the process and the node and to allocate a corresponding software component to the process.
[0134] Thus, the association relationship between the process and the software component can be determined, and the mapping relationship between the service instance in the network domain and the target communication connector can be automatically created subsequently.
[0135] In a possible implementation, the apparatus further includes a third configuration module configured to configure a port prototype used by the process and another process for communication in the network domain.
[0136] Thus, the association relationship between the process and the port prototype can be determined, and the mapping relationship between the service instance in the network domain and the target communication connector can be automatically created subsequently.
[0137] In a possible implementation, the first configuration module includes determining an ID of the network domain, and the creating module 803 includes, in a case where a communication protocol of the service instance is a data distribution service (DDS), determining a network domain ID associated with the service instance as the ID.
[0138] According to the embodiment of the present application, by determining the ID of the network domain, the network domain ID can be associated with the service instance in the case that the communication protocol is DDS, without manual setting, thereby simplifying the configuration process and improving the efficiency of configuration.
[0139] In a possible implementation, each communication connector is associated with an Internet Protocol (IP) address.
[0140] In this way, the node can communicate with other configured objects through the communication connector.
[0141] In a possible implementation, the creating module 803 includes: determining, according to the mapping relationship information between the communication connector on the node and the network domain, a first communication connector information set corresponding to the network domain, the first communication connector information set including at least one communication connector on the node; determining, according to the mapping relationship information between the service instance and the software component port prototype, a second communication connector information set corresponding to the software component port prototype, the second communication connector information set including at least one communication connector on the target node; and creating the mapping relationship between the service instance and the target communication connector according to the first communication connector information set and the second communication connector information set.
[0142] According to the embodiment of the present application, by determining two communication connector information sets to determine the target communication connector, the target communication connector does not need to be manually found, the mapping relationship between the service instance and the target communication connector can be established in the configuration process, and the mapping relationship does not need to be manually established, thereby realizing the mapping of the service instance to the node, simplifying the configuration process, and improving the efficiency.
[0143] In a possible implementation, the creating module 803 includes: determining, according to the mapping relationship information between the communication connector on the node and the network domain, a first communication connector information set corresponding to the network domain, the first communication connector information set including at least one communication connector on the node; determining, according to the mapping relationship information between the service instance and the software component port prototype, a second communication connector information set corresponding to the software component port prototype, the second communication connector information set including at least one communication connector on the target node; and creating the mapping relationship between the service instance and the target communication connector according to the first communication connector information set and the second communication connector information set.
[0144] In this way, the mapping relationship between the service instance and the target communication connector can be determined without manually finding the target communication connector corresponding to the service instance, thereby realizing the communication between the service instance and the target node, simplifying the configuration process, and improving the efficiency.
[0145] Figures 2-7 A structure diagram of a mapping relationship generation apparatus is shown according to an embodiment of the present application. The mapping relationship generation apparatus 1100 can be used to execute the above Figure 9The mapping relationship generation method shown in any one of the embodiments. For example, the mapping relationship generation apparatus can be a server, or a chip (system) or other components or assemblies that can be arranged in the server. The embodiments of the present application do not limit this.
[0146] As shown in Figure 9 The mapping relationship generation apparatus 1100 can include a processor 1101 and a transceiver 1102. Optionally, the mapping relationship generation apparatus 1100 can include a memory 1103. The processor 1101 is coupled with the transceiver 1102 and the memory 1103, for example, through a communication bus.
[0147] The various constituent components of the mapping relationship generation apparatus 1100 will be described in detail below. Figure 9 The various constituent components of the mapping relationship generation apparatus 1100 will be described in detail below.
[0148] The processor 1101 is the control center of the mapping relationship generation apparatus 1100, and can be one processor or a collective term of multiple processing elements. For example, the processor 1101 is one or more central processing units (CPUs), application specific integrated circuits (ASICs), or one or more integrated circuits configured to implement the embodiments of the present application, such as one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs).
[0149] Optionally, the processor 1101 can perform various functions of the mapping relationship generation apparatus 1100 by running or executing software programs stored in the memory 1103, and calling data stored in the memory 1103.
[0150] In a specific implementation, as an embodiment, the processor 1101 can include one or more CPUs, such as the CPU0 and CPU1 shown in Figure 9
[0151] In a possible implementation, the mapping relationship generation apparatus 1100 can also include multiple processors, such as the processor 1101 and the processor 1104 shown in Figure 9 Each of these processors can be a single-CPU or a multi-CPU. The processor here can refer to one or more communication devices, circuits, and / or processing cores for processing data (such as computer program instructions).
[0152] The transceiver 1102 is configured to communicate with other servers.
[0153] Optionally, the transceiver 1102 can include a receiver and a transmitter (not shown separately in the figure). The receiver is configured to implement the receiving function, and the transmitter is configured to implement the transmitting function. Figure 9
[0154] Optionally, the transceiver 1102 can be integrated with the processor 1101, or can exist independently and be coupled to the processor 1101 through an input / output port (not shown in the figure) of the mapping relationship generation apparatus 1100, and the embodiments of the present application are not limited thereto. Figure 9
[0155] The memory 1103 can be used to store a software program for implementing the scheme of the present application, and the processor 1101 controls the execution. The specific implementation manner can refer to the above-mentioned method embodiments, and details are not described herein.
[0156] The memory 1103 can be a read-only memory (ROM) or other types of static storage communication devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage communication devices that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage medium or other magnetic storage communication devices, or any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. It should be noted that the memory 1103 can be integrated with the processor 1101, or can exist independently and be coupled to the processor 1101 through an input / output port (not shown in the figure) of the mapping relationship generation apparatus 1100, and the embodiments of the present application are not limited thereto. Figure 9 It should be noted that the structure of the mapping relationship generation apparatus 1100 shown in the figure does not constitute a limitation on the implementation manner of the mapping relationship generation apparatus. The actual mapping relationship generation apparatus can include more or fewer components than those shown in the figure, or combine certain components, or different component arrangements.
[0157] It should be noted that the structure of the mapping relationship generation apparatus 1100 shown in the figure does not constitute a limitation on the implementation manner of the mapping relationship generation apparatus. The actual mapping relationship generation apparatus can include more or fewer components than those shown in the figure, or combine certain components, or different component arrangements.
[0158] Embodiments of the present application provide a mapping relationship generation apparatus, comprising: a processor and a memory for storing processor-executable instructions; wherein the processor is configured to implement the above method when executing the instructions.
[0159] Embodiments of the present application provide a terminal device, which can execute the above method.
[0160] Embodiments of the present application provide a non-volatile computer-readable storage medium, which stores computer program instructions, and the computer program instructions are executed by a processor to implement the above method.
[0161] Embodiments of the present application provide a computer program product, comprising computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code, when the computer-readable code is run in a processor of an electronic device, the processor in the electronic device executes the above method.
[0162] The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium can be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium include the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an electrically programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital video disc (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch cards or a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se.
[0163] Computer readable program instructions or code for carry out the operations described herein can be downloaded to respective computing / processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and / or a wireless network. The network can comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and / or edge servers. A network adaptation card or network interface in each computing / processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium in the respective computing / processing device.
[0164] Computer readable program instructions for carrying out operations of the present application can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, or any combination of source code or object code in any combination of one or more programming languages including an object oriented programming language such as Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions can execute entirely on a user's computing device, partly on the user's computing device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device or entirely on the remote computing device or server. In the latter scenario, the remote computing device can be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computing device, such as through the Internet using an Internet Service Provider. In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate array (FPGA), or programmable logic array (PLA) can execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present application.
[0165] Various aspects of the present application are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer readable program instructions.
[0166] These computer readable program instructions can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks. These computer readable program instructions can also be stored in a computer readable storage medium that can include a non-transitory computer readable storage medium that can be a computer readable storage medium having no data signals on it. The instructions can be executed by one or more processors to produce a computer-implemented process such that the instructions, which execute via one or more processors of a computer or other programmable apparatus, create means for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0167] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable data processing apparatus, or other device implement the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0168] The flow diagrams and block diagrams in the accompanying drawings show archi tectures, functional and operational architectures of possible implementations of apparatuses, systems, methods and computer program products according to the present application. In this regard, each block in the flow diagrams and block diagrams can represent a module, a segment, or a portion of instructions, which comprises one or more executable instructions for implementing the specified logical functions. In some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in some cases, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. These and other alternatives are possible.
[0169] It also is noted that each of the blocks of the flowchart, and / or combinations of blocks, can be implemented by hardware, by software including one or more computer program instructions, by firmware, or by a combination of hardware, software, and / or firmware. Also, each of the blocks of the flowchart, and / or combinations of blocks, can be implemented by one or more processors of a general purpose computer system, by one or more processors of a special purpose computer system, by one or more processors of a microprocessor system, by one or more processors of a controller or state machine, or by a combination of processors, computers, processors, or microprocessors.
[0170] Although the application has been described in connection with various embodiments, it will be understood that the application is capable of further modifications. These and other changes, along with the apparent alternatives and equivalents, fall within the scope of the claimed application. The description herein is intended to be illustrative only and is presented to enable any person skilled in the art to make and use the application. Numerous modifications and adaptations will be apparent to those skilled in the art without departing from the scope of the described application. The scope of the described application is not to be limited by the specific illustrative embodiments contained herein but only by the scope of the appended claims, which follow this disclosure.
[0171] Various embodiments of the application have been described in connection with the embodiments described above. The description is intended to be illustrative only and not exhaustive of all possible embodiments. Numerous modifications and adaptations will be apparent to those skilled in the art without departing from the scope of the described embodiments. The scope of the described embodiments is not to be limited by the specific illustrative embodiments contained herein but only by the scope of the appended claims, which follow this disclosure.
Claims
1. A mapping relationship generation method, characterized by, The method comprises: obtaining mapping relationship information between a communication connector on a node and a network domain; obtaining mapping relationship information between a process and the node, the mapping relationship information between the process and the node comprising a software component corresponding to the process, the software component comprising at least one port prototype; creating a service instance for a port prototype used by the process in the network domain, and automatically creating mapping relationship between the service instance and a target communication connector on the node according to the mapping relationship information between the communication connector on the node and the network domain, and the mapping relationship information between the process and the node; the target communication connector is connected with the network domain, and the target communication connector belongs to the communication connector on the node associated with the service instance.
2. The method of claim 1, wherein, The method further comprises: creating the network domain, and configuring the mapping relationship information between the communication connector on the node and the network domain.
3. The method of claim 1, wherein, The method further comprises: configuring the mapping relationship between the process and the node, and assigning a corresponding software component to the process.
4. The method of claim 1, wherein, The method further comprises: configuring a port prototype used by the process and another process for communication in the network domain.
5. The method of claim 2, wherein, creating the network domain, and configuring the mapping relationship information between the communication connector on the node and the network domain, comprises: determining an ID of the network domain; the creating of the service instance for the port prototype used by the process in the network domain comprises: in a case where a communication protocol of the service instance is a data distribution service (DDS), determining that a network domain ID associated with the service instance is the ID.
6. The method according to any one of claims 1 to 5, characterized in that, Each communication connector is associated with an Internet Protocol (IP) address.
7. The method according to any one of claims 1 to 5, characterized in that, The creating of the mapping relationship between the service instance and the target communication connector on the node according to the mapping relationship information between the communication connector on the node and the network domain, and the mapping relationship information between the process and the node, comprises: determining a first communication connector information set corresponding to the network domain according to the mapping relationship information between the communication connector on the node and the network domain, the first communication connector information set comprising at least one communication connector on the node; determining a second communication connector information set corresponding to the software component port prototype according to the mapping relationship information between the service instance and the software component port prototype, the second communication connector information set comprising at least one communication connector on a target node, the target node being the node associated with the service instance; creating the mapping relationship between the service instance and the target communication connector according to the first communication connector information set and the second communication connector information set.
8. The method of claim 7, wherein, The creating of the mapping relationship between the service instance and the target communication connector according to the first communication connector information set and the second communication connector information set, comprises: determining the target communication connector according to an intersection of the first communication connector information set and the second communication connector information set; creating the mapping relationship between the service instance and the target communication connector.
9. The method according to any one of claims 1 to 5, characterized in that, The method is used for configuring a communication service in an automotive open system architecture (AUTOSAR) adaptive platform.
10. A mapping relationship generating apparatus characterized by comprising: The device comprises: A first obtaining module, configured to obtain mapping relationship information between a communication connector on a node and a network domain; A second obtaining module, configured to obtain mapping relationship information between a process and the node, wherein the mapping relationship information between the process and the node comprises a software component corresponding to the process, and the software component comprises at least one port prototype; A creating module, configured to create a service instance for a port prototype used by the process in the network domain, and automatically create mapping relationship between the service instance and a target communication connector of the node according to the mapping relationship information between the communication connector on the node and the network domain and the mapping relationship information between the process and the node; The target communication connector is connected with the network domain, and the target communication connector belongs to the communication connector on the node associated with the service instance.
11. A mapping relationship generating apparatus characterized by comprising: Comprise: A processor; A memory for storing processor-executable instructions; Wherein, the processor is configured to implement the method of any one of claims 1-9 when executing the instructions.
12. A non-transitory computer readable storage medium having stored thereon computer program instructions, wherein, The computer program instructions are executed by the processor to implement the method of any one of claims 1-9.
13. A computer program product comprising computer readable code, or a non-transitory computer readable storage medium carrying computer readable code, which when run in an electronic device, a processor in the electronic device performs the method of any one of claims 1-9.
Citation Information
Patent Citations
Management system based on AUTOSAR vehicle-mounted network
CN106230605A
Network topology creation method and device, equipment and storage medium
CN111654402A