WO2023065218A1 - 一种映射关系生成方法、装置和存储介质 - Google Patents
一种映射关系生成方法、装置和存储介质 Download PDFInfo
- Publication number
- WO2023065218A1 WO2023065218A1 PCT/CN2021/125308 CN2021125308W WO2023065218A1 WO 2023065218 A1 WO2023065218 A1 WO 2023065218A1 CN 2021125308 W CN2021125308 W CN 2021125308W WO 2023065218 A1 WO2023065218 A1 WO 2023065218A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- mapping relationship
- communication connector
- node
- network domain
- service instance
- Prior art date
Links
- 238000013507 mapping Methods 0.000 title claims abstract description 223
- 238000000034 method Methods 0.000 title claims abstract description 216
- 238000003860 storage Methods 0.000 title claims abstract description 29
- 238000004891 communication Methods 0.000 claims abstract description 258
- 230000008569 process Effects 0.000 claims abstract description 139
- 230000003044 adaptive effect Effects 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 13
- 238000010586 diagram Methods 0.000 description 20
- 238000012545 processing Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 11
- 238000007726 management method Methods 0.000 description 10
- 238000013461 design Methods 0.000 description 8
- 241001134453 Lista Species 0.000 description 4
- 238000009826 distribution Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000003068 static effect Effects 0.000 description 4
- 238000003491 array Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 229910052802 copper Inorganic materials 0.000 description 1
- 239000010949 copper Substances 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000007667 floating Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 238000012367 process mapping Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery or management of network topologies
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
Definitions
- the present application relates to the field of smart cars, and in particular to a method, device and storage medium for generating a mapping relationship.
- Automotive open system architecture (automotive open system architecture, AUTOSAR) is an open and de facto standardized software architecture developed to reduce the risk of automotive software development. With the gradual application of smart cars, cars that integrate various auxiliary functions such as perception, regulation and control, and automatic cruise are typical high-tech complexes. Its appearance makes cars more and more intelligent and electronic, and also makes The software structure of the car is becoming more and more complex. AUTOSAR launched the Adaptive Platform on the original Classic Platform.
- communication management (communication management, CM) is the top priority of AUTOSAR Adaptive Platform.
- CM communication management
- it is usually for Manually establishing the mapping relationship for each instance one by one is cumbersome and inefficient.
- an embodiment of the present application provides a method for generating a mapping relationship, the method comprising: acquiring information about a mapping relationship between a communication connector on a node and a network domain; acquiring information about a mapping relationship between a process and the node, The mapping relationship information between the process and the node includes the software component corresponding to the process, and the software component includes at least one port prototype; 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, create a service instance for the port prototype used by the process in the network domain, and create a connection between the service instance and the target communication connector on the node Mapping relations.
- the communication management can be configured In the process of CM, the mapping relationship between the service instance created in the network domain and the target communication connector can be established without manual operation, so that the corresponding node can communicate with the service instance. There is no need to manually establish the mapping relationship, which simplifies the configuration process , improving the configuration efficiency.
- the method further includes: creating the network domain, and configuring the mapping between the communication connector on the node and the network domain relationship information.
- 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.
- the method further includes: configuring the link between the process and the node mapping relationship, and assign corresponding software components to the process.
- 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.
- the method further includes: configuring the process to communicate with another Prototype of the port used by processes to communicate in the network domain.
- 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.
- the network domain is created and configured on the node
- the mapping relationship information between the communication connector of the communication connector and the network domain including: determining the ID of the network domain; according to the mapping relationship information between the communication connector on the node and the network domain, the process and the node Mapping relationship information between, create a service instance for the port prototype used by the process in the network domain, and create a mapping relationship between the service instance node and the target communication connector, including: in the When the communication protocol of the service instance is the data distribution service DDS, it is determined that the network domain ID associated with the service instance is the ID.
- the network domain ID can be associated with the service instance without manual setting, thereby simplifying the configuration process and improving configuration efficiency.
- each communication connection The server is associated with an Internet protocol IP address.
- a sixth possible implementation of the mapping relationship generating method Create 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 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: determining the first corresponding to the network domain according to the mapping relationship information between the communication connector on the node and the network domain A communication connector information set, the first communication connector information set includes at least one communication connector on the node; according to the mapping relationship information between the service instance and the software component port prototype, determine the corresponding port prototype of the software component A second communication connector information set, the second communication connector information set includes at least one communication connector on the target node; according to the first communication connector information set and the second communication connector information set, determine the The mapping relationship between the service instance and the target communication connector.
- mapping relationship between the service instance and the target communication connector can be established during the configuration process, and there is no need to The mapping relationship is manually established to realize the mapping from service instances to nodes, which simplifies the configuration process and improves efficiency.
- mapping relationship generation method according to the first communication connector information set and the second communication connector information set , creating a mapping relationship between the service instance and the target communication connector, including: determining the target communication connector according to the intersection of the first communication connector information set and the second communication connector information set; Create a mapping relationship between the service instance and the target communication connector.
- mapping relationship between the service instance and the target communication connector can be determined without manually searching for 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 efficiency.
- the method is used to configure communication services in the Automotive Open System Architecture AUTOSAR Adaptive Platform.
- the method can be applied to vehicles, so that the communication management CM configuration can be more efficiently implemented in the AUTOSAR adaptive platform to apply corresponding communication services.
- an embodiment of the present application provides a device for generating a mapping relationship, the device comprising: a first acquisition module, configured to acquire mapping relationship information between a communication connector on a node and a network domain; a second acquisition module, configured to Obtaining the mapping relationship information between the process and the node, the mapping relationship information between the process and the node includes the software component corresponding to the process, and the software component includes at least one port prototype; creating a module, using Based on 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, create a service for the port prototype used by the process in the network domain instance, and create a mapping relationship between the service instance and the target communication connector on the node.
- the device further includes: a first configuration module, configured to create the network domain and configure the communication connector on the node Mapping relationship information with the network domain.
- the device further includes: a second configuration module, configured to configure the process Mapping relationship with the node, and assign corresponding software components to the process.
- the device further includes: a third configuration module configured to A port prototype used by the process to communicate with another process in the network domain is configured.
- the first configuration module includes: determining the network Domain ID; the creation module includes: when the communication protocol of the service instance is DDS, determining that the ID of the network domain associated with the service instance is the ID.
- each communication connection The server is associated with an Internet protocol IP address.
- the creation module includes: according to the mapping relationship information between the communication connector on the node and the network domain, determine the first communication connector information set corresponding to the network domain, the first communication connector information set includes at least one The communication connector on the node; according to the mapping relationship information between the service instance and the software component port prototype, determine the second communication connector information set corresponding to the software component port prototype, and the second communication connector information set includes the target At least one communication connector on the node; create a 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.
- mapping relationship generation device according to the first communication connector information set and the second communication connector information set , creating a mapping relationship between the service instance and the target communication connector, including: determining the target communication connector according to the intersection of the first communication connector information set and the second communication connector information set; Create a mapping relationship between the service instance and the target communication connector.
- the device is used to configure communication services in the AUTOSAR Adaptive Platform of the Automotive Open System Architecture.
- an embodiment of the present application provides a device for generating a mapping relationship, the device comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions
- the embodiments of the present application provide a non-volatile computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above-mentioned first aspect or the first aspect can be realized One or several mapping relationship generation methods in various possible implementation manners.
- the embodiments of the present application provide a terminal device, which can execute the method for generating a mapping relationship in one or more of the above-mentioned first aspect or multiple possible implementation manners of the first aspect.
- the embodiments of the present application provide a computer program product, including computer readable codes, or a non-volatile computer readable storage medium bearing computer readable codes, when the computer readable codes are stored in an electronic
- the processor in the electronic device executes the method for generating a mapping relationship in the first aspect or in one or more possible implementation manners of the first aspect.
- Fig. 1 shows a schematic diagram of an application scenario according to an embodiment of the present application.
- Fig. 2 shows a flowchart of a method for generating a mapping relationship according to an embodiment of the present application.
- Fig. 3 shows a schematic diagram of creating a service instance in a network domain according to an embodiment of the present application.
- Fig. 4 shows a schematic diagram of determining a mapping relationship according to an embodiment of the present application.
- Fig. 5 shows a flowchart of a method for generating a mapping relationship according to an embodiment of the present application.
- Fig. 6 shows a flowchart of a method for generating a mapping relationship according to an embodiment of the present application.
- Fig. 7 shows a flowchart of a method for generating a mapping relationship according to an embodiment of the present application.
- Fig. 8 shows a structural diagram of an apparatus for generating a mapping relationship according to an embodiment of the present application.
- Fig. 9 shows a structural diagram of an apparatus for generating a mapping relationship according to an embodiment of the present application.
- Fig. 1 shows a schematic diagram of an application scenario according to an embodiment of the present application.
- the mapping relationship generation method of the present application can be used in the process of configuring communication management on the AUTOSAR adaptive platform.
- the architecture of AUTOSAR adaptive platform can include application layer, service layer and hardware layer.
- the application layer can include software for implementing application functions, such as software components (software component, 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 (core types);
- the hardware layer may include each node, and the node may be a vehicle chip built in the vehicle, such as a microcontroller unit (MCU), or a domain controller including an MCU and a vehicle.
- MCU microcontroller unit
- the process of configuring the CM it is usually necessary to instantiate the communication service in the CM, that is, after determining the service instance (service instance), establish a series of mapping relationships for it, so as to realize the establishment of service instances and nodes on the hardware layer (which can be called machine) mapping relationship, so that the software component SWC in the application layer can apply the communication service corresponding to the service instance.
- the mapping relationship is manually established for each service instance one by one, the process will be very cumbersome.
- mapping relationship generation method of the present application create a service instance in the network domain, determine the mapping relationship between the network domain and the communication connector (connector) on each node (equivalent to establishing the mapping relationship between the service instance and the node), Therefore, a series of mapping relationships can be established in the process of configuring the CM, and finally the mapping between service instances and target communication connectors can be realized without manual operation, which improves the efficiency in the configuration process.
- mapping relationship generation method of the embodiment of the present application is introduced in detail through FIGS. 2-7:
- Fig. 2 shows a flowchart of a method for generating a mapping relationship according to an embodiment of the present application. As shown in Figure 2, the method can be used in a processor, and the method includes:
- Step S201 creating a network domain.
- the network domain may be a virtual network domain.
- the communication protocol bound to the service interface deployment is a data distribution service (data distribution service, DDS), for each created network domain, a default domain identifier ( domain ID).
- DDS data distribution service
- Step S202 configuring a node.
- the process of configuring the nodes may include: configuring an ethernet cluster.
- network configurations of the Ethernet such as IP addresses and subnet masks, may be defined.
- the Ethernet cluster can also include: configuring the node design (machine design).
- machine design you can define the Ethernet communication connector on the node (the communication connector above) , realize the association between the node and the communication connector, and each communication connector on the node can assign an IP address to it, so as to realize the communication between the node and other network domains, service instances, etc.
- Corresponding different communication connectors can be defined for different communication protocols.
- Service discovery IP can also be defined, so that its IP address can be determined when accessing the corresponding service.
- mapping relationship between the network domain and the communication connectors on each node can be established.
- a network domain can establish a mapping relationship with multiple nodes, and in the process, for each node, a communication connector on the node can be selected to establish a mapping relationship with the network domain.
- Step S203 configuring an application.
- the process of configuring the application may include: configuring the software component type, for example, defining the objects and attributes of the software component. It is also possible to define a receiving port prototype (R-Port Prototype) for requesting services or data on a software component, and a sending port prototype (P-Port Prototype) for providing services or data.
- R-Port Prototype receiving port prototype
- P-Port Prototype sending port prototype
- configuring the software component type it can also include: configuring the executable program (executable).
- configuring the executable program you can refer to the relevant information of the configured software component type, so that the executable program and the software component SWC can be realized. association.
- the executable program may also include: configuring a process design (process design), and when configuring the process design, relevant information of the configured executable program may be referenced.
- process design process design
- relevant information of the configured executable program may be referenced.
- configuring the process design it can also include: configuring the process (process).
- the configuring process the related information of the configured executable program and the related information of the process design can be referenced, so that the process and the executable program can be realized. associated.
- mapping relationship between the process and the node can be established, and the mapping relationship between the process and the software component can be obtained according to the association relationship between the software component, the executable program, and the process, so as to realize the allocation of the corresponding software for the process components.
- Step S204 creating a service instance in the network domain.
- the network domain may be the network domain created in step S201.
- service instances in the process of creating service instances, after configuring the application, create corresponding service instances for software component port prototypes (for example, create service instances for P port prototypes and R port prototypes respectively ), so as to establish the mapping relationship between software component port prototype and service instance. Then, according to the above-mentioned mapping relationship between processes and nodes, service instances can be associated with configured nodes.
- software component port prototypes for example, create service instances for P port prototypes and R port prototypes respectively
- FIG. 3 shows a schematic diagram of creating a service instance in a network domain according to an embodiment of the present application.
- a network domain identifier may be defaulted, for example, 30 (the network domain identifier can be modified).
- Multiple service instances can be created in the network domain, such as service instance A, service instance B, service instance C, and service instance D in the figure.
- the domain ID (domain ID) attribute of each service instance that can be created in the network domain can be set as the default network domain ID of the network domain, without manual repeated configuration.
- the attribute of network domain identifiers in service instances A, B, C, and D in the same network domain may be set to 30. Therefore, the configuration of the attribute corresponding to the network domain identifier in the service instance can be realized.
- some other attributes of the service instance may also be automatically configured, which is not limited in this application.
- Step S205 determining the mapping relationship between service instances and nodes.
- Determining the mapping relationship between the service instance and the node is actually to realize the communication between the node and the service instance, so it is actually determining the mapping relationship between the service instance and the target communication connector on the node.
- the mapping relationship between the service instance and the target communication connector can be realized through one of the following implementation manners.
- FIG. 4 shows a schematic diagram of determining a mapping relationship according to an embodiment of the present application.
- the solid-line connection arrows in the figure may indicate that the two parties of the connection have established a mapping relationship.
- 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
- the connection arrow between network domain 1 and communication connector C can indicate the mapping between network domain 1 and node B.
- the mapping relationship of the communication connector can indicate the mapping relationship between network domain 1 and node B.
- a set ListA of communication connectors can be obtained, which includes communication connector B and communication connector C, corresponding to node A respectively and the communication connector on B for connection to network domain 1.
- the P-port prototype and the R-port prototype can correspond to the software component port prototypes P-port Prototype and R-port Prototype respectively, and the connection arrows between the P-port prototype and the R-port prototype and the service instance can indicate the above-mentioned determined service instance
- the mapping relationship with the port prototype of the software component Since in step S203, the association relationship between the software component, the executable program, and the process is determined, by obtaining the mapping relationship between the process and the node, the relationship between the software component, the executable program, and the process and the node can be realized. relationship.
- association relationship between service instance A and a software component corresponding to a 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 service can be obtained
- service instance for example, service instance A
- software component port prototype so that the service can be obtained
- the corresponding target communication connector can be found, the mapping relationship between the service instance and the target communication connector can be established, and the CM configuration process can be completed.
- the user does not need to manually search, compare, and configure, which improves the efficiency of the configuration process. .
- step S201-step S205 can be performed on a visual interface, such as displayed in a graph, a table, etc., and the user can operate on the visual interface to modify the configured content.
- a visual interface such as displayed in a graph, a table, etc.
- the user can operate on the visual interface to modify the configured content.
- the graph shown in Figure 4 there is no existing connecting arrow in the initial graph in Figure 4, and the user can establish a connecting arrow in the initial graph to determine the corresponding mapping relationship between the two.
- the connecting arrow established by the user can be found in Figure 4.
- the configuration result of the CM may be displayed in a visual manner such as text, image, or video.
- the properties of objects configured during the configuration process (such as service instances, nodes, etc.) and established mapping relationships can be displayed in a domain view (or domain-specific CM channel view, etc.), and objects and Its attributes, and the connection lines between objects represent the mapping relationship established in the configuration process.
- step S201 the definition of the basic data type (data type), the configuration of the service interface (service interface), and the configuration of the deployment of the service interface can be completed before step S201.
- the process of defining basic data types can be implemented by using services in core types, such as integer (int), floating point (float) and so on.
- the communication mode required by the service can be defined, and for each communication mode, for example, events (events), methods (methods) and fields (fields) are defined therein. It is also possible to determine the data type required by each communication mode (for example, corresponding to the above-mentioned basic data type).
- the bound communication protocol can also be a communication protocol such as IP-based scalable service-oriented middleware (scalable service-oriented middleware over IP, SOME/IP).
- step S205 and step S204 may be reversed.
- Fig. 5 shows a flowchart of a method for generating a mapping relationship according to an embodiment of the present application. This method can be used in the processor, as shown in Figure 5, the method includes:
- Step S501 obtaining the mapping relationship information between the communication connector on the node and the network domain
- Step S502 obtaining mapping relationship information between a process and the node, the mapping relationship information between the process and the node includes a software component corresponding to the process, and the software component includes at least one port prototype;
- Step S503 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 is the port prototype used by the process in the network domain Create a service instance, and create a mapping relationship between the service instance and the target communication connector on the node.
- the communication management can be configured In the process of CM, the mapping relationship between the service instance created in the network domain and the target communication connector can be established without manual operation, so that the corresponding node can communicate with the service instance. There is no need to manually establish the mapping relationship, which simplifies the configuration process , improving the configuration efficiency.
- the network domain may be a virtual domain.
- the at least one port prototype may be multiple groups of port prototypes, and each group of port prototypes may include a receiving port prototype and a sending port prototype.
- step S503 For related examples of creating a service instance for the port prototype used by the process in the network domain in step S503, refer to the relevant description in step S204 in FIG. 2 . It should be noted that the port prototype used by the process in the network domain Create a service instance, or associate the service instance with the corresponding port prototype after creating the service instance. For an example of step S501-step S503, refer to the relevant description in step S205 in FIG. 2 .
- the method is used to configure communication services in the AUTOSAR adaptive platform of the automotive open system architecture.
- the method can be applied to vehicles, so that the communication management CM configuration can be more efficiently implemented in the AUTOSAR adaptive platform to apply corresponding communication services.
- the method further includes: creating the network domain, and configuring mapping relationship information between the communication connector on the node and the network domain.
- 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.
- step S201 in FIG. 2 For the above process, refer to the relevant description in step S201 in FIG. 2 .
- the method further includes: configuring a mapping relationship between the process and the node, and allocating corresponding software components to the process.
- 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.
- step S203 in FIG. 2 For the above process, refer to the relevant description in step S203 in FIG. 2 .
- the method further includes: configuring a port prototype used by the process to communicate with another process in the network domain.
- 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.
- step S203 in FIG. 2 For the above process, refer to the relevant description in step S203 in FIG. 2 .
- creating the network domain and configuring the mapping relationship information between the communication connector on the node and the network domain includes: determining the ID of the network domain; The mapping relationship information between the communication connector of the communication connector and the network domain, the mapping relationship information between the process and the node, create a service instance for the port prototype used by the process in the network domain, and create the The mapping relationship between the service instance and the target communication connector on the node includes: when the communication protocol of the service instance is DDS, determining that the network domain ID associated with the service instance is the ID.
- the network domain ID can be associated with the service instance without manual setting, thereby simplifying the configuration process and improving configuration efficiency.
- the ID of the network domain may be the above-mentioned network domain identifier, and the ID may be modified as required.
- step S201 For a related example of creating a network domain, refer to the relevant description in step S201 in FIG. 2 .
- step S204 For a relevant example of determining the network domain ID associated with the service instance, reference may be made to relevant descriptions in step S204.
- each communication connector is associated with an Internet protocol IP address.
- Fig. 6 shows a flowchart of a method for generating a mapping relationship according to an embodiment of the present application.
- the mapping relationship information between the communication connector on the node and the network domain is used by the process in the network domain
- the port prototype creates a service instance, and creates a mapping relationship between the service instance and the target communication connector on the node, including:
- Step S601 according to the mapping relationship information between the communication connector on the node and the network domain, determine a first communication connector information set corresponding to the network domain, the first communication connector information set includes at least one of the nodes communication connector on the
- Step S602 according to the mapping relationship information between the service instance and the software component port prototype, determine the second communication connector information set corresponding to the software component port prototype, the second communication connector information set includes at least one communication link on the target node Connector;
- Step S603 Create a 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.
- mapping relationship between the service instance and the target communication connector can be established during the configuration process, and there is no need to The mapping relationship is manually established to realize the mapping from service instances to nodes, which simplifies the configuration process and improves efficiency.
- step S601-step S603 refer to the related description in step S205 in FIG. 2, wherein the first communication connector information set may be, for example, the above-mentioned ListA, and the second communication connector information set may be, for example, the above-mentioned ListB.
- Fig. 7 shows a flowchart of a method for generating a mapping relationship according to an embodiment of the present application. As shown in Figure 7, according to the first communication connector information set and the second communication connector information set, create the mapping relationship between the service instance and the target communication connector, including:
- Step S701 determining the target communication connector according to the intersection of the first communication connector information set and the second communication connector information set;
- Step S702 creating a mapping relationship between the service instance and the target communication connector.
- mapping relationship between the service instance and the target communication connector can be determined without manually searching for 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 efficiency.
- step S701-step S702 refer to the relevant description in step S205 in FIG. 2 .
- 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.
- Fig. 8 shows a structural diagram of an apparatus for generating a mapping relationship according to an embodiment of the present application. As shown in Figure 8, the device includes:
- the first acquiring module 801 is configured to acquire the mapping relationship information between the communication connector on the node and the network domain;
- the second acquiring module 802 is configured to acquire mapping relationship information between a process and the node, the mapping relationship information between the process and the node includes a software component corresponding to the process, and the software component includes at least one port prototype;
- the creation module 803 is configured to, 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, use the process in the network domain for the process Create a service instance of the port prototype, and create a mapping relationship between the service instance and the target communication connector on the node.
- the communication management can be configured In the process of CM, the mapping relationship between the service instance created in the network domain and the target communication connector can be established without manual operation, so that the corresponding node can communicate with the service instance. There is no need to manually establish the mapping relationship, which simplifies the configuration process , improving the configuration efficiency.
- the device is used to configure communication services in the AUTOSAR adaptive platform of the automotive open system architecture.
- the device can be applied to vehicles, so that the communication management CM configuration can be more efficiently implemented in the AUTOSAR adaptive platform to apply corresponding communication services.
- the device 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.
- 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.
- the apparatus further includes: a second configuration module, configured to configure a mapping relationship between the process and the node, and allocate corresponding software components to the process.
- 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.
- the device further includes: a third configuration module, configured to configure a port prototype used by the process to communicate with another process in the network domain.
- 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.
- the first configuration module includes: determining the ID of the network domain; the creating module 803 includes: when the communication protocol of the service instance is the data distribution service DDS, determining The network domain ID associated with the service instance is the ID.
- the network domain ID can be associated with the service instance without manual setting, thereby simplifying the configuration process and improving configuration efficiency.
- each communication connector is associated with an Internet protocol IP address.
- the creating module 803 includes: determining the 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 includes at least one communication connector on the node; according to the mapping relationship information between the service instance and the software component port prototype, determine the second communication connector information set corresponding to the software component port prototype , the second communication connector information set includes at least one communication connector on the target node; according to the first communication connector information set and the second communication connector information set, create the service instance to communicate with the target Connector mapping relationship.
- mapping relationship between the service instance and the target communication connector can be established during the configuration process, and there is no need to The mapping relationship is manually established to realize the mapping from service instances to nodes, which simplifies the configuration process and improves efficiency.
- creating a 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 includes: according to the determine the target communication connector through the intersection of the first communication connector information set and the second communication connector information set; create a mapping relationship between the service instance and the target communication connector.
- mapping relationship between the service instance and the target communication connector can be determined without manually searching for 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 efficiency.
- FIG. 9 shows a structural diagram of an apparatus for generating a mapping relationship provided according to an embodiment of the present application.
- the mapping relationship generating apparatus 1100 may be used to execute the mapping relationship generating method shown in any one of the foregoing FIGS. 2-7 .
- the mapping relationship generation device may be a server, or a chip (system) or other components or components that may be arranged inside the server. This embodiment of the present application does not limit it.
- an apparatus 1100 for generating a mapping relationship may include a processor 1101 and a transceiver 1102 .
- the mapping relationship generation apparatus 1100 may include a memory 1103 .
- the processor 1101 is coupled with the transceiver 1102 and the memory 1103, such as may be connected through a communication bus.
- mapping relationship generating apparatus 1100 The components of the mapping relationship generating apparatus 1100 will be specifically introduced below in conjunction with FIG. 9 .
- the above-mentioned processor 1101 is the control center of the mapping relation generating apparatus 1100, and may be one processor, or may be a general term for multiple processing elements.
- the processor 1101 is one or more central processing units (central processing unit, CPU), may also be a specific integrated circuit (application specific integrated circuit, ASIC), or is configured to implement one or more An integrated circuit, for example: one or more microprocessors (digital signal processor, DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA).
- the processor 1101 may execute various functions of the mapping relationship generating apparatus 1100 by running or executing a software program stored in the memory 1103 and calling data stored in the memory 1103 .
- the processor 1101 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG. 9 .
- the mapping relationship generating apparatus 1100 may also include multiple processors, such as processor 1101 and processor 1104 shown in FIG. 9 .
- processors can be a single-core processor (single-CPU) or a multi-core processor (multi-CPU).
- a processor herein may refer to one or more communication devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
- the above-mentioned transceiver 1102 is used for communication with other servers.
- the transceiver 1102 may include a receiver and a transmitter (not separately shown in FIG. 9 ). Wherein, the receiver is used to realize the receiving function, and the transmitter is used to realize the sending function.
- the transceiver 1102 may be integrated with the processor 1101, or may exist independently, and be coupled to the processor 1101 through an input/output port (not shown in FIG. 9 ) of the mapping relationship generating device 1100.
- the implementation of the present application Examples are not limited to this.
- the above-mentioned memory 1103 can be used to store the software program that implements the solution of the present application, and the execution is controlled by the processor 1101.
- the specific implementation can refer to the above-mentioned method embodiment, and details are not repeated here.
- the memory 1103 can be a read-only memory (read-only memory, ROM) or other types of static storage communication devices that can store static information and instructions, or a random access memory (random access memory, RAM) that can store information and instructions
- Other types of dynamic storage communication devices can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical discs Storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage communication devices, or can be used to carry or store desired programs in the form of instructions or data structures code and any other medium that can be accessed by a computer, without limitation.
- the memory 1103 can be integrated with the processor 1101, or can exist independently, and is coupled with the processor 1101 through the input/output port (not shown in FIG. 9 ) of the mapping relationship generation device 1100. Examples are not limited to this.
- mapping relationship generating device 1100 shown in FIG. 9 does not constitute a limitation on the implementation of the mapping relationship generating device, and the actual mapping relationship generating device may include more or less than shown in the figure. components, or combinations of certain components, or different arrangements of components.
- An embodiment of the present application provides an apparatus for generating a mapping relationship, including: a processor and a memory for storing instructions executable by the processor; wherein the processor is configured to implement the above method when executing the instructions.
- Embodiments of the present application provide a terminal device, and the terminal device can execute the foregoing method.
- An embodiment of the present application provides a non-volatile computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the foregoing method is realized.
- An embodiment of the present application provides a computer program product, including computer-readable codes, or a non-volatile computer-readable storage medium bearing computer-readable codes, when the computer-readable codes are stored in a processor of an electronic device When running in the electronic device, the processor in the electronic device executes the above method.
- a computer readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device.
- a computer readable storage medium may be, for example, but is not limited to, an electrical 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.
- Non-exhaustive list of computer-readable storage media include: portable computer disk, hard disk, random access memory (Random Access Memory, RAM), read only memory (Read Only Memory, ROM), erasable Electrically Programmable Read-Only-Memory (EPROM or flash memory), Static Random-Access Memory (Static Random-Access Memory, SRAM), Portable Compressed Disk Read-Only Memory (Compact Disc Read-Only Memory, CD -ROM), Digital Video Disc (DVD), memory sticks, floppy disks, mechanically encoded devices such as punched cards or raised structures in grooves with instructions stored thereon, and any suitable combination of the foregoing .
- RAM Random Access Memory
- ROM read only memory
- EPROM or flash memory erasable Electrically Programmable Read-Only-Memory
- Static Random-Access Memory SRAM
- Portable Compressed Disk Read-Only Memory Compact Disc Read-Only Memory
- CD -ROM Compact Disc Read-Only Memory
- DVD Digital Video Disc
- Computer readable program instructions or codes described herein may be downloaded from a computer readable storage medium to a respective computing/processing device, or downloaded to an external computer or external storage device over a network, such as the Internet, local area network, wide area network, and/or wireless network.
- the network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers.
- a network adapter card or a 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 each computing/processing device .
- Computer program instructions for performing the operations of the present application may be assembly instructions, instruction set architecture (Instruction Set Architecture, ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or in one or more source or object code written in any combination of programming languages, including object-oriented programming languages—such as Smalltalk, C++, etc., and conventional procedural programming languages—such as the “C” language or similar programming languages.
- Computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement.
- the remote computer can be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or it can be connected to an external computer such as use an Internet service provider to connect via the Internet).
- electronic circuits such as programmable logic circuits, field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or programmable logic arrays (Programmable Logic Array, PLA), the electronic circuit can execute computer-readable program instructions, thereby realizing various aspects of the present application.
- These computer-readable program instructions may 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 when executed by the processor of the computer or other programmable data processing apparatus , producing an apparatus for realizing the functions/actions specified in one or more blocks in the flowchart and/or block diagram.
- These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause computers, programmable data processing devices and/or other devices to work in a specific way, so that the computer-readable medium storing instructions includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks in flowcharts and/or block diagrams.
- each block in a flowchart or block diagram may represent a module, a portion of a program segment, or an instruction that includes one or more Executable instructions.
- the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved.
- each block in the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented with hardware (such as circuits or ASIC (Application Specific Integrated Circuit, application-specific integrated circuit)), or can be implemented with a combination of hardware and software, such as firmware.
- hardware such as circuits or ASIC (Application Specific Integrated Circuit, application-specific integrated circuit)
- firmware such as firmware
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
Claims (13)
- 一种映射关系生成方法,其特征在于,所述方法包括:获取节点上的通信连接器与网络域的映射关系信息;获取进程与所述节点之间的映射关系信息,所述进程与所述节点之间的映射关系信息包括所述进程对应的软件组件,所述软件组件包括至少一个端口原型;根据所述节点上的通信连接器与所述网络域的映射关系信息,所述进程与所述节点之间的映射关系信息,为所述进程在所述网络域中使用的端口原型创建服务实例,并创建所述服务实例与所述节点上的目标通信连接器的映射关系。
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:创建所述网络域,并配置所述节点上的通信连接器与所述网络域的映射关系信息。
- 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:配置所述进程与所述节点之间的映射关系,并为所述进程分配对应的软件组件。
- 根据权利要求1-3任一项所述的方法,其特征在于,所述方法还包括:配置所述进程与另一进程在所述网络域中通信使用的端口原型。
- 根据权利要求2-4任一项所述的方法,其特征在于,创建所述网络域,并配置所述节点上的通信连接器与所述网络域的映射关系信息,包括:确定所述网络域的ID;根据所述节点上的通信连接器与所述网络域的映射关系信息,所述进程与所述节点之间的映射关系信息,为所述进程在所述网络域中使用的端口原型创建服务实例,并创建所述服务实例与所述节点的目标通信连接器的映射关系,包括:在所述服务实例的通信协议为数据分发服务DDS的情况下,确定所述服务实例关联的网络域ID为所述ID。
- 根据权利要求1-5任一项所述的方法,其特征在于,每个通信连接器与一个网络互连协议IP地址相关联。
- 根据权利要求1-6任意一项所述的方法,其特征在于,根据所述节点上的通信连接器与所述网络域的映射关系信息,所述进程与所述节点之间的映射关系信息,为所述进程在所述网络域中使用的端口原型创建服务实例,并创建所述服务实例与所述节点的目标通信连接器的映射关系,包括:根据所述节点上的通信连接器与所述网络域的映射关系信息,确定所述网络域对应的第一通信连接器信息集合,第一通信连接器信息集合包括至少一个所述节点上的通信连接器;根据所述服务实例与软件组件端口原型的映射关系信息,确定所述软件组件端口原型对应的第二通信连接器信息集合,第二通信连接器信息集合包括目标节点上的至少一个通信连接器;根据所述第一通信连接器信息集合和所述第二通信连接器信息集合,创建所述服务实例和所述目标通信连接器的映射关系。
- 根据权利要求7所述的方法,其特征在于,根据所述第一通信连接器信息集合和所述第二通信连接器信息集合,创建所述服务实例和所述目标通信连接器的映射关系,包括:根据所述第一通信连接器信息集合和所述第二通信连接器信息集合的交集,确定所述目标通信连接器;创建所述服务实例和所述目标通信连接器的映射关系。
- 根据权利要求1-8任意一项所述的方法,其特征在于,所述方法用于配置汽车开放系统架构AUTOSAR自适应平台中的通信服务。
- 一种映射关系生成装置,其特征在于,所述装置包括:第一获取模块,用于获取节点上的通信连接器与网络域的映射关系信息;第二获取模块,用于获取进程与所述节点之间的映射关系信息,所述进程与所述节点之间的映射关系信息包括所述进程对应的软件组件,所述软件组件包括至少一个端口原型;创建模块,用于根据所述节点上的通信连接器与所述网络域的映射关系信息,所述进程与所述节点之间的映射关系信息,为所述进程在所述网络域中使用的端口原型创建服务实例,并创建所述服务实例与所述节点的目标通信连接器的映射关系。
- 一种映射关系生成装置,其特征在于,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令时实现权利要求1-9任意一项所述的方法。
- 一种非易失性计算机可读存储介质,其上存储有计算机程序指令,其特征在于,所述计算机程序指令被处理器执行时实现权利要求1-9中任意一项所述的方法。
- 一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理 器执行权利要求1-9中任意一项所述的方法。
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP21960968.2A EP4407447A1 (en) | 2021-10-21 | 2021-10-21 | Mapping relationship generation method and apparatus and storage medium |
CN202180007810.8A CN116324721A (zh) | 2021-10-21 | 2021-10-21 | 一种映射关系生成方法、装置和存储介质 |
PCT/CN2021/125308 WO2023065218A1 (zh) | 2021-10-21 | 2021-10-21 | 一种映射关系生成方法、装置和存储介质 |
US18/641,758 US20240275688A1 (en) | 2021-10-21 | 2024-04-22 | Mapping Relationship Generation Method and Apparatus, and Storage Medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2021/125308 WO2023065218A1 (zh) | 2021-10-21 | 2021-10-21 | 一种映射关系生成方法、装置和存储介质 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US18/641,758 Continuation US20240275688A1 (en) | 2021-10-21 | 2024-04-22 | Mapping Relationship Generation Method and Apparatus, and Storage Medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023065218A1 true WO2023065218A1 (zh) | 2023-04-27 |
Family
ID=86058674
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/125308 WO2023065218A1 (zh) | 2021-10-21 | 2021-10-21 | 一种映射关系生成方法、装置和存储介质 |
Country Status (4)
Country | Link |
---|---|
US (1) | US20240275688A1 (zh) |
EP (1) | EP4407447A1 (zh) |
CN (1) | CN116324721A (zh) |
WO (1) | WO2023065218A1 (zh) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102231107A (zh) * | 2011-06-09 | 2011-11-02 | 浙江大学 | 基于autosar的电控单元通信数据格式的自动生成方法 |
US20130124703A1 (en) * | 2011-11-11 | 2013-05-16 | Electronics And Telecommunications Research Institute | Method and apparatus for setting up gateway for autosar-based vehicle network |
KR101628694B1 (ko) * | 2014-12-15 | 2016-06-10 | 현대오트론 주식회사 | 오토사 기반 ecu의 소프트웨어 컴포넌트에 대한 플랫뷰 생성 방법 |
WO2021107179A1 (ko) * | 2019-11-27 | 2021-06-03 | 주식회사 알티스트 | Autosar 기반 응용 소프트웨어의 설정 코드 자동 생성 방법 및 장치 |
-
2021
- 2021-10-21 WO PCT/CN2021/125308 patent/WO2023065218A1/zh active Application Filing
- 2021-10-21 CN CN202180007810.8A patent/CN116324721A/zh active Pending
- 2021-10-21 EP EP21960968.2A patent/EP4407447A1/en active Pending
-
2024
- 2024-04-22 US US18/641,758 patent/US20240275688A1/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102231107A (zh) * | 2011-06-09 | 2011-11-02 | 浙江大学 | 基于autosar的电控单元通信数据格式的自动生成方法 |
US20130124703A1 (en) * | 2011-11-11 | 2013-05-16 | Electronics And Telecommunications Research Institute | Method and apparatus for setting up gateway for autosar-based vehicle network |
KR101628694B1 (ko) * | 2014-12-15 | 2016-06-10 | 현대오트론 주식회사 | 오토사 기반 ecu의 소프트웨어 컴포넌트에 대한 플랫뷰 생성 방법 |
WO2021107179A1 (ko) * | 2019-11-27 | 2021-06-03 | 주식회사 알티스트 | Autosar 기반 응용 소프트웨어의 설정 코드 자동 생성 방법 및 장치 |
Also Published As
Publication number | Publication date |
---|---|
CN116324721A (zh) | 2023-06-23 |
US20240275688A1 (en) | 2024-08-15 |
EP4407447A1 (en) | 2024-07-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104219127B (zh) | 一种虚拟网络实例的创建方法以及设备 | |
WO2019042110A1 (zh) | 一种订阅发布方法及服务器 | |
US11907749B2 (en) | RDMA with virtual address space | |
CN111857873A (zh) | 一种实现云原生容器网络的方法 | |
US11177974B2 (en) | Consistent provision of member node group information on virtual overlay network | |
KR20170073605A (ko) | 합성 파티션 함수 제공 기법 | |
US10516544B2 (en) | Extranet connectivity in LISP networks | |
US20160149846A1 (en) | Publish/subscribe messaging using message structure | |
JP7451556B2 (ja) | ネットワークに基づいたメディア処理(nbmp)におけるメディア処理機能のための構成パラメータのグラフ表現及び記述 | |
CN113079207A (zh) | 一种实现端口或网络高可用的方法、系统、终端及介质 | |
CN114157633A (zh) | 一种报文转发方法及装置 | |
US10785056B1 (en) | Sharing a subnet of a logically isolated network between client accounts of a provider network | |
CN111064786A (zh) | 账户标识管理方法及设备 | |
WO2023065218A1 (zh) | 一种映射关系生成方法、装置和存储介质 | |
CN115865921A (zh) | 一种构建容器网络的方法、系统、存储介质、电子设备 | |
WO2023283286A1 (en) | Enabling vertical application layer server for peer-to-peer media parameter negotiation | |
CN115550377A (zh) | 一种nvmf存储集群节点互联方法、装置、设备及介质 | |
CN113454966B (zh) | 一种影子设备的生成方法、设备及存储介质 | |
CN111294221A (zh) | 一种基于haproxy的网络隔离配置方法及其装置 | |
CN113691575A (zh) | 通信方法、装置及系统 | |
WO2023201558A1 (zh) | 一种映射关系生成方法、装置和存储介质 | |
US11522831B1 (en) | Increasing edge device address space while complying with a radio communication protocol | |
WO2023138032A1 (zh) | 一种地址空间推荐方法、装置及相关设备 | |
CN114979079B (zh) | 信息处理方法、装置、相关设备和存储介质 | |
WO2023212933A1 (zh) | 标识配置方法及装置、电子设备及存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21960968 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2024523777 Country of ref document: JP Kind code of ref document: A |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2021960968 Country of ref document: EP |
|
ENP | Entry into the national phase |
Ref document number: 2021960968 Country of ref document: EP Effective date: 20240423 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |