CN117280320A - Mapping relation generation method, device and storage medium - Google Patents

Mapping relation generation method, device and storage medium Download PDF

Info

Publication number
CN117280320A
CN117280320A CN202280005462.5A CN202280005462A CN117280320A CN 117280320 A CN117280320 A CN 117280320A CN 202280005462 A CN202280005462 A CN 202280005462A CN 117280320 A CN117280320 A CN 117280320A
Authority
CN
China
Prior art keywords
information
port
prototype
service instance
mapping relation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202280005462.5A
Other languages
Chinese (zh)
Inventor
胡勇
刘伟男
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN117280320A publication Critical patent/CN117280320A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to a mapping relation generation method, a mapping relation generation device and a storage medium. The method comprises the following steps: displaying information of one or more port prototypes corresponding to a process in the information of the process; and configuring the mapping relation information of the service instance and the target port prototype in response to the operation of associating the information of the service instance with the information of the target port prototype displayed in the information of the process. According to the embodiment of the application, the corresponding information of one or more port prototypes is displayed in the information of the process, so that the operation of associating the information of the service instance with the information of the target port prototypes displayed in the information of the process can be directly responded in the process of configuring the communication management CM, the automatic configuration of the mapping relation between the service instance and the target port prototypes can be completed, manual operation is not needed, the configuration flow is simplified, and the accuracy and the efficiency in the configuration process are improved.

Description

Mapping relation generation method, device and storage medium Technical Field
The present application relates to the field of intelligent automobiles, and in particular, to a mapping relationship generating method, device and storage medium.
Background
The automobile open system architecture (automotive open system architecture, AUTOSAR) is an open and de facto standardized software architecture developed to reduce the risk of developing automobile software. Along with the gradual application of intelligent automobiles, automobiles integrating multiple auxiliary functions such as perception, regulation, automatic cruising and the like are typical high-technology complex, and the occurrence of the intelligent automobiles enables the automobiles to be more intelligent and electronic, and simultaneously enables the software structures of the automobiles to be more complex. AUTOSAR in turn developed an adaptive Platform (Adaptive Platform) on the original classical Platform.
Among them, communication management (communication management, CM) is a serious issue of AUTOSAR Adaptive Platform, in the process of configuring CM, it is necessary to build a mapping relationship with a port prototype for a communication service after the communication service is instantiated, but in this configuration process, a mapping relationship with a plurality of elements such as a process, an executable program, a software component and the like is involved, which is complex, and currently, a mapping relationship with a port prototype is usually created manually one by one for each service instance, which is easy to make mistakes and has low efficiency.
Disclosure of Invention
In view of this, a mapping relation generation method, apparatus and storage medium are provided.
In a first aspect, embodiments of the present application provide a mapping relation generating method. The method comprises the following steps: displaying information of one or more port prototypes corresponding to a process in the information of the process; and configuring the mapping relation information of the service instance and the target port prototype in response to the operation of associating the information of the service instance with the information of the target port prototype displayed in the information of the process.
According to the embodiment of the application, the corresponding information of one or more port prototypes is displayed in the information of the process, so that the operation of associating the information of the service instance with the information of the target port prototypes displayed in the information of the process can be directly responded in the process of configuring the communication management CM, the automatic configuration of the mapping relation between the service instance and the target port prototypes can be completed, manual operation is not needed, the configuration flow is simplified, and the accuracy and the efficiency in the configuration process are improved.
According to a first aspect, in a first possible implementation manner of the mapping relation generation method, in response to an operation of associating information of a service instance with information of a target port prototype displayed in information of the process, configuring mapping relation information of the service instance and the target port prototype includes: responding to the operation of associating the information of the service instance with the information of the target port prototype displayed in the information of the process, and acquiring the information of the target port prototype; and distributing one or more of corresponding target port prototypes, software components, executable programs and processes for the service instance according to the information of the target port prototypes.
According to the embodiment of the application, the information of the target port prototype is acquired in response to the association operation, so that the configuration of the information of one or more of the target port prototype, the software component, the executable program and the process in the mapping relation information can be automatically realized, the configuration flow can be simplified, and the configuration process is prevented from being in error.
In a second possible implementation manner of the mapping relation generating method according to the first aspect or the first possible implementation manner of the first aspect, displaying one or more port prototypes corresponding to a process in information of the process includes: obtaining information of one or more port prototypes used for communication on a software component and a mapping relation between the process and the software component; and displaying the information of the one or more port prototypes corresponding to the process in the information of the process when the process has the mapping relation with the one or more port prototypes.
According to the embodiment of the application, the mapping relation between the process and the port prototype can be determined by acquiring the information of the port prototype on the configured software component and the mapping relation between the process and the software component, so that the information of the port prototype corresponding to the process can be automatically displayed in the information of the process, and the efficiency is higher.
In a third possible implementation manner of the method for generating a mapping relationship according to the second possible implementation manner of the first aspect, a mapping relationship between a process and the software component is determined according to a mapping relationship between the software component and the executable program, and a mapping relationship between the executable program and the process.
Thus, the association relationship among the software components, processes, and executable programs can be determined.
In a fourth possible implementation manner of the mapping relation generating method according to the first aspect or the first or the second or the third possible implementation manner of the first aspect, the communication relation between a process and another process is displayed through a mapping relation between information of a port prototype displayed in the information of the process and information of a port prototype displayed in the information of another process.
According to the embodiment of the application, when the port prototypes are communicated, the two processes for communication can be embodied by displaying the mapping relation between the port prototypes in the information of the processes, so that the communication process is more clear.
In a fifth possible implementation manner of the mapping relation generation method according to the first aspect or the first or the second or the third or the fourth possible implementation manner of the first aspect, the method is used for a visual interface, and the visual interface includes a graphical interface and a table interface.
Therefore, the visualization of the communication management CM configuration process can be realized, so that the user operation is more convenient, and the configuration flow is more visual.
In a fifth possible implementation manner of the first aspect, in a sixth possible implementation manner of the mapping relation generating method, the operation of associating information of a service instance with information of a target port prototype displayed in information of the process includes, in the graphical interface, connecting between the information of the service instance and the information of the target port prototype displayed in the information of the process.
According to the embodiment of the application, the mapping relation configuration between the service instance and the target port prototype can be completed in the graphical interface, so that the configuration process is visualized, and the configuration process is more convenient and visual.
In a seventh possible implementation manner of the mapping relation generating method according to the fifth or sixth possible implementation manner of the first aspect, the operation of associating information of a service instance with information of a target port prototype displayed in information of the process includes filling, in the table interface, information of the target port prototype into a table indicating mapping relation information of the service instance and the target port prototype.
According to the embodiment of the application, the mapping relation configuration between the service instance and the target port prototype can be completed in the form interface, so that the configuration process is visualized, and the configuration process is more convenient and visual.
In an eighth possible implementation manner of the mapping relation generation method according to the first aspect or the first or the second or the third or the fourth or the fifth or the sixth or the seventh possible implementation manner of the first aspect, the method is used for configuring a communication service in an automotive open system architecture auto sar adaptive platform.
Therefore, the method can be applied to vehicles, so that the communication management CM configuration can be more efficiently realized in the AUTOSAR adaptive platform to apply corresponding communication services.
In a second aspect, an embodiment of the present application provides a mapping relation generating apparatus, including: the display module is used for displaying information of one or more port prototypes corresponding to the process in the information of the process; and the configuration module is used for responding to the operation of associating the information of the service instance with the information of the target port prototype displayed in the information of the process, and configuring the mapping relation information of the service instance and the target port prototype.
In a first possible implementation manner of the mapping relation generating apparatus according to the second aspect, the configuration module is configured to: responding to the operation of associating the information of the service instance with the information of the target port prototype displayed in the information of the process, and acquiring the information of the target port prototype; and distributing one or more of corresponding target port prototypes, software components, executable programs and processes for the service instance according to the information of the target port prototypes.
In a second possible implementation manner of the second aspect or the first possible implementation manner of the second aspect, the display module is configured to: acquiring information of one or more port prototypes used for communication on a software component and a mapping relation between the process and the software component; and displaying the information of the one or more port prototypes corresponding to the process in the information of the process when the process has the mapping relation with the one or more port prototypes.
In a third possible implementation manner of the mapping relation generating device according to the second possible implementation manner of the second aspect, a mapping relation between a process and the software component is determined according to a mapping relation between the software component and the executable program, and a mapping relation between the executable program and the process.
In a fourth possible implementation manner of the mapping relationship generating apparatus according to the second aspect or the first or second or third possible implementation manner of the second aspect, the communication relationship between a process and another process is displayed through a mapping relationship between information of a port prototype displayed in information of the process and information of a port prototype displayed in information of another process.
In a fifth possible implementation manner of the mapping relation generating apparatus according to the second aspect or the first or the second or the third or the fourth possible implementation manner of the second aspect, the apparatus is configured to visualize an interface, where the visualization interface includes a graphical interface and a table interface.
According to a fifth possible implementation manner of the second aspect, in a sixth possible implementation manner of the mapping relation generating device, the operation of associating information of a service instance with information of a target port prototype displayed in information of the process includes, in the graphical interface, connecting between the information of the service instance and the information of the target port prototype displayed in the information of the process.
In a seventh possible implementation manner of the mapping relation generating apparatus according to the fifth or sixth possible implementation manner of the second aspect, the operation of associating information of a service instance with information of a target port prototype displayed in information of the process includes filling, in the table interface, information of the target port prototype into a table indicating mapping relation information of the service instance and the target port prototype.
In an eighth possible implementation manner of the mapping relation generating apparatus according to the second aspect or the first or second or third or fourth or fifth or sixth or seventh possible implementation manner of the second aspect, the apparatus is configured to configure a communication service in an automotive open system architecture auto sar adaptive platform.
In a third aspect, an embodiment of the present application provides a mapping relation generating apparatus, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the mapping relation generation method of the first aspect or one or more of the plurality of possible implementations of the first aspect when executing the instructions.
In a fourth aspect, embodiments of the present application provide a non-transitory computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the mapping relation generation method of the first aspect or one or more of the possible implementations of the first aspect.
In a fifth aspect, embodiments of the present application provide a terminal device, which may perform the mapping relation generating method of the first aspect or one or several of the multiple possible implementations of the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product comprising a 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 mapping relation generation method of the first aspect or one or several of the multiple possible implementations of the first aspect.
These and other aspects of the application will be apparent from and elucidated with reference to the embodiment(s) described hereinafter.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments, features and aspects of the present application and together with the description, serve to explain the principles of the present application.
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 mapping relation generation method according to an embodiment of the present application.
Fig. 3 shows a flowchart of a mapping relation generation method according to an embodiment of the present application.
Fig. 4 shows a flowchart of a mapping relation generation method according to an embodiment of the present application.
FIG. 5 shows a schematic diagram applied to a graphical interface according to an embodiment of the present application.
FIG. 6 shows a schematic diagram applied to a form interface according to an embodiment of the present application.
Fig. 7 shows a block diagram of a mapping relation generating apparatus according to an embodiment of the present application.
Fig. 8 shows a block diagram of a mapping relation generating apparatus according to an embodiment of the present application.
Detailed Description
Various exemplary embodiments, features and aspects of the present application will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers indicate identical or functionally similar elements. Although various aspects of the embodiments are illustrated in the accompanying drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
In addition, numerous specific details are set forth in the following detailed description in order to provide a better understanding of the present application. It will be understood by those skilled in the art that the present application may be practiced without some of these specific details. In some instances, methods, means, elements, and circuits have not been described in detail as not to unnecessarily obscure the present application.
Fig. 1 shows a schematic diagram of an application scenario according to an embodiment of the present application. The mapping relation generation method can be used in the process of configuring communication management on the AUTOSAR self-adaptive platform. As shown in fig. 1, the architecture of the AUTOSAR adaptive platform may include an application layer, a service layer, and a hardware layer. The application layer may include software for implementing application functions, such as software components (software component, SWC), etc.; the service layer may provide various background services for the application layer, such as a communication management CM, a core type (core types) for providing a data structure definition service; the hardware layer may include nodes, which may be vehicle chips built in a vehicle, such as a micro control unit (microcontroller unit, MCU), or may be a domain controller including an MCU, a vehicle machine, etc.
The communication management (communication management, CM) is a serious issue of AUTOSAR Adaptive Platform, in the process of configuring CM, a mapping relationship with a port prototype needs to be established for a communication service after the communication service is instantiated, that is, a service instance (service instance) is determined, but in the process of configuring CM, a mapping relationship with a plurality of elements such as a process (process), an executable program (executable), a software component SWC and the like is also involved, and the service instance, the process, the software component, the executable program and the like need to be associated, in the process, configuration attribute items are more, and are complex, and because constraint conditions exist between the elements, if the mapping relationship is manually established, errors are easy to occur, and efficiency is low.
In view of this, the mapping relation generating method according to the embodiment of the present application displays the information of the corresponding one or more port prototypes in the information of the process, so that the operation of associating the information of the service instance with the information of the target port prototype displayed in the information of the process can be directly responded in the process of configuring the communication management CM, that is, the mapping relation between the service instance and the target port prototype can be automatically configured, and the accuracy and efficiency of the configuration process are improved.
The following describes in detail the mapping relation generating method according to the embodiment of the present application through fig. 2 to 6 under the application scenario shown in fig. 1:
fig. 2 shows a flowchart of a mapping relation generation method according to an embodiment of the present application. The method may be used for a processor that may be used to implement a configuration process of a communication management CM in an architecture as shown in fig. 1, as shown in fig. 2, the method comprising:
step S201, displaying information of one or more port prototypes corresponding to a process in information of the process.
Wherein, an aggregate attribute may be added in advance in attribute information corresponding to a process design (process design), where the aggregate attribute may represent information of one or more port prototypes corresponding to the process, and the one or more port prototypes may be all ports available for communication in the corresponding process, and a value of the aggregate attribute may be, for example, an identifier of the corresponding port prototype. For example, when the reference chain between the port prototype-software component-executable-process is incomplete, the value of the aggregate attribute may be null, and in the presence of a complete and correct reference chain between the port prototype-software component-executable-process, the value of the aggregate attribute may be automatically populated with the identity of the corresponding port prototype.
Thus, in the process of configuring the process design, under the condition that the association relationship among the port prototype, the software component, the executable program and the process is determined, one or more pieces of port prototype information with the association relationship with the process can be automatically displayed in the information of the process design, for example, the corresponding aggregation attribute is automatically filled to be the identification of the corresponding port prototype.
The manner of display may be by way of display in a visual interface, for example, see below for details.
One way of determining the association between port prototypes, software components, executable programs, processes can be seen in fig. 3. Fig. 3 shows a flowchart of a mapping relation generation method according to an embodiment of the present application. As shown in fig. 3, in one possible implementation, the step S201 includes:
in step S2011, information of one or more port prototypes used for communication on the software component and a mapping relationship between the process and the software component are obtained.
The Port Prototype used for communication on the software component SWC may be a receiving Port Prototype (R-Port Prototype) used for requesting service or data, or a transmitting Port Prototype (P-Port Prototype) used for providing service or data, one or more Port prototypes may be defined on the software component, and the information of the acquired Port prototypes may include information such as identification of the Port prototypes.
In the above process, the port prototype on the software component and the mapping relationship between the process and the software component may be preconfigured, and the configuration method may be implemented based on the prior art, which is not described in detail in this application.
In one possible implementation, the mapping relationship between a process and the software component is determined according to the mapping relationship between the software component and the executable program, and the mapping relationship between the executable program and the process.
The mapping relationship between the process and the executable program can be determined through the related information of the referenced configured executable program in the configuration information of the configured process (process). Since the related information of the configured software components can be referred to when the executable program is configured, the mapping relationship between the executable program and the software components can be determined, for example, all software components corresponding to the executable program are determined according to the root software component type (rootSwcType) in the configuration information of the executable program. Thus, based on the association of the software component with the executable program, and the association of the executable program with the process, the association relationship of the process with the software component can be determined.
Thus, the association relationship among the software components, processes, and executable programs can be determined.
In the above process, the configuration of the executable program and the configuration of the process may be implemented based on the prior art, which is not limited in this application.
In step S2012, when the process has a mapping relationship with one or more port prototypes, information of the one or more port prototypes corresponding to the process is displayed in the information of the process.
According to the association relation among the process, the executable program and the software components, whether one or more defined port prototypes exist on the software components corresponding to the process can be determined, and under the condition that the defined port prototypes exist, the mapping relation between the process and the defined port prototypes can be determined. That is, in the case of a mapping relationship, the association link of the "port prototype-software component-executable-process" should be complete (i.e., there is a one-to-one association between the four) and meet the predetermined constraint.
According to the embodiment of the application, the mapping relation between the process and the port prototype can be determined by acquiring the information of the port prototype on the configured software component and the mapping relation between the process and the software component, so that the information of the port prototype corresponding to the process can be automatically displayed in the information of the process, and the efficiency is higher.
Because the communication between the port prototypes is essentially inter-process communication, when the port prototypes are communicated, the corresponding port prototypes are displayed in the process information, and the two processes for communication can be directly reflected through the mapping relation between the port prototypes on the processes, so that the communication process is clearer.
In one possible implementation, the communication relationship between the process and another process is displayed through the mapping relationship between the information of the port prototype displayed in the information of the process and the information of the port prototype displayed in the information of the other process.
The communication protocol based in the communication process is not limited, and may be a data distribution service (data distribution service, DDS) or an IP-based communication protocol such as extensible service-oriented middleware over IP (SOME/IP). Port prototype information on one process may indicate a corresponding transmit port prototype and port prototype information on another process may indicate a corresponding receive port prototype. The manner of display may be by way of display in a visual interface, for example, see below for details.
In one possible implementation, the method may be used to configure communication services in an automotive open system architecture, AUTOSAR, adaptive platform.
Therefore, the method can be applied to vehicles, so that the communication management CM configuration can be more efficiently realized in the AUTOSAR adaptive platform to apply corresponding communication services.
Step S202, in response to the operation of associating the information of the service instance with the information of the target port prototype displayed in the information of the process, the mapping relation information of the service instance and the target port prototype is configured.
The reference attribute may be added to the mapping relationship configuration information of the service instance and the target port prototype in advance, and the reference attribute may be used to refer to the aggregate attribute added in the process design. In response to the operation of associating the information of the service instance with the information of the target port prototype displayed in the information of the process, the value in the aggregate attribute (i.e., the target port prototype information) in the process design corresponding to the reference attribute reference can be enabled to be associated with the service instance in the mapping relationship configuration relationship of the service instance and the target port prototype, so that other related information in the mapping relationship configuration information of the service instance and the target port prototype can be automatically filled, and the configuration of the mapping relationship information of the service instance and the target port prototype can be realized.
The operation of associating the information of the service instance with the information of the target port prototype displayed in the information of the process may be an operation performed on a visual interface, for example, see the following.
According to the embodiment of the application, the corresponding information of one or more port prototypes is displayed in the information of the process, so that the operation of associating the information of the service instance with the information of the target port prototypes displayed in the information of the process can be directly responded in the process of configuring the communication management CM, the automatic configuration of the mapping relation between the service instance and the target port prototypes can be completed, manual operation is not needed, the configuration flow is simplified, and the accuracy and the efficiency in the configuration process are improved.
The detailed process of the above-mentioned configuration information of the mapping relationship between the auto-filling service instance and the target port prototype may be referred to as fig. 4, and fig. 4 shows a flowchart of a mapping relationship generating method according to an embodiment of the present application. In one possible implementation, as shown in fig. 4, the step S202 includes:
step S2021, in response to an operation of associating the information of the service instance with the information of the target port prototype displayed in the information of the process, acquires the information of the target port prototype.
Wherein, in response to the above-mentioned association operation, the reference attribute can be made to reference the target port prototype information in the above-mentioned aggregate attribute in the mapping relationship configuration relationship between the service instance and the target port prototype, so that the target port prototype information referenced in the reference attribute can be obtained.
Step S2022, allocating one or more of a corresponding destination port prototype, a software component, an executable program, and a process to the service instance according to the information of the destination port prototype.
One or more of the corresponding target port prototype, the software component, the executable program and the process are allocated to the service instance, and configuration information about the target port prototype, the software component, the executable program and the process can be filled in the process of configuring mapping relation information between the service instance and the target port prototype. The configuration items related to the target port prototype can be filled according to the obtained information of the target port prototype, and the process corresponding to the target port prototype can be determined to fill the configuration items related to the process because the information of the target port prototype is obtained through referencing the aggregated attribute in the process design referenced by the attribute. The association relation between the executable program and the software component can be obtained through the configuration information corresponding to the process, so that the configuration items related to the executable program and the software component can be filled. Therefore, the automatic configuration of the mapping relation information of the service instance and the target port prototype can be realized.
According to the embodiment of the application, the information of the target port prototype is acquired in response to the association operation, so that the configuration of the information of one or more of the target port prototype, the software component, the executable program and the process in the mapping relation information can be automatically realized, the configuration flow can be simplified, and the configuration process is prevented from being in error.
In one possible implementation, the method may be used for a visual interface, which may include a graphical interface, a tabular interface, or other types of visual interfaces.
Therefore, the visualization of the communication management CM configuration process can be realized, so that the user operation is more convenient, and the configuration flow is more visual.
The following describes the mapping relation configuration flow of the service instance of the graphical interface and the table interface and the target port prototype in detail by taking fig. 5 and fig. 6 as examples.
FIG. 5 shows a schematic diagram applied to a graphical interface according to an embodiment of the present application. As shown in fig. 5, taking the mapping relationship between a service instance and a target port prototype at a receiving end as an example, in the drawing, an R-service instance (required service instance) and an R-port prototype may identify the service instance and the port prototype at the receiving end, and a P-service instance (provided service instance) may identify the service instance at the transmitting end. The association relationship among the software components, executable programs and processes can be represented by connecting lines in the figure. For example, in the figure, the software components are associated with executable program 1, executable program 2 and process 2, and executable program 2 and process 3.
The information of one or more port prototypes corresponding to the process is displayed in the information of the process, and as shown in the figure, the port prototypes associated with the process may be displayed near the box corresponding to the process, that is, the aggregate attribute added in the process design may be displayed in the box indicating the port prototypes near the process. As shown, as an R-port prototype on a software component, and the software component has 3 complete chains of references ("R-port prototype, software component, executable 1, process 1", "R-port prototype, software component, executable 2, process 2", "R-port prototype, software component, executable 2, process 3"), the R-port prototype associated therewith can be displayed on Process 1, process 2, process 3, respectively.
In a possible implementation manner, the operation of associating the information of the service instance with the information of the target port prototype displayed in the information of the process in step S202 includes, in the graphical interface, connecting between the information of the service instance and the information of the target port prototype displayed in the information of the process.
Operations of associating the information of the service instance with the information of the target port prototype displayed in the information of the process, for example, an operation of connecting the R-service instance with the R-port prototype on the process 1 and an operation of connecting the R-service instance with the R-port prototype on the process 3, can be referred to as "map 1" and "map 2" of the corresponding connections in fig. 5.
In the graphical interface, for example, after the R-service instance is connected to the R-port prototype on the process 1, step S202 may be performed in response to the connection operation, so as to complete the mapping relationship between the R-service instance and the R-port prototype.
In one possible implementation, in the graphical interface, the communication relationship between processes may also be displayed more intuitively by the connection between the aggregated properties (i.e., port prototypes in the process). For example, the communication relationship between process 1 on the R-service instance and the process on the P-service instance may be displayed by a connection between the R-port prototype on process 1 and the P-port prototype on the process on the P-service instance.
In the graphical interface, the association between the information may be displayed by a method other than the connection, so long as the association relationship is displayed in a visual manner.
According to the embodiment of the application, the mapping relation configuration between the service instance and the target port prototype can be completed in the graphical interface, so that the configuration process is visualized, and the configuration process is more convenient and visual.
FIG. 6 shows a schematic diagram applied to a form interface according to an embodiment of the present application. As shown in fig. 6 (a), in the table interface, the configuration information table of the process design may include information such as category (category), checksum (checksum), abbreviation (short name), executable program, timestamp (timestamp), universal unique identifier (universally unique identifier, UUID), etc., which may be configured based on the prior art, which is not limited in this application. The above aggregate attribute may be added to the configuration information table of the process design on the basis of the above information, and as shown in the figure, the aggregate attribute may be called a PortsInProcess, and the value of the aggregate attribute may include an identification of each port prototype associated with the process. In one possible implementation, where the reference chain between the port prototype-software component-executable-process is complete and correct, the value of the PortsInProcess may be automatically populated during the configuration process design with the identity of each port prototype associated with the process.
As shown in fig. 6 (b), in the table interface, the configuration information table of the mapping between the service instance and the target port prototype may include a category, a checksum, an abbreviation, an enabled log tracking (enables log trace), a log tracking port identification (log trace port ID), a process, a service instance, a port prototype, a timestamp (timestamp), and a universally unique identification code UUID. The above-mentioned reference attribute may be added to the configuration information table of the service instance and the target Port prototype on the basis of the above-mentioned information, and as shown in the figure, the reference attribute may be called a Process Port, and the value of the reference attribute may be a value in the referenced PortsInProcess.
In a possible implementation manner, the operation of associating the information of the service instance with the information of the target port prototype displayed in the information of the process in step S202 includes filling the information of the target port prototype into a table indicating the mapping relationship information between the service instance and the target port prototype in the table interface.
The information of the target Port prototype is filled into a table for indicating the mapping relation information of the service instance and the target Port prototype, which may be that in a configuration information table as shown in fig. 6 (b), an identifier corresponding to the target Port prototype in the PortsInProcess is filled into the Process Port, so that the Process Port may refer to a value in the PortsInProcess.
After the identifier corresponding to the target Port prototype in the portsInProcess is filled into the Process Port in the table interface, step S2021-step S2022 may be executed, and the configuration of the mapping relationship between the service instance and the target Port prototype is completed by automatically filling the configuration table information, such as the Process, the service instance, the Port prototype, etc. shown in FIG. 6 (b), according to the reference chain relationship between the corresponding target Port prototype- -the software component- -the executable program- -the Process. In fig. 6 (b), information such as category, checksum, abbreviation, log tracking enabled, log tracking port identification, timestamp, UUID, etc. may be configured based on the prior art, which is not limited in this application.
According to the embodiment of the application, the mapping relation configuration between the service instance and the target port prototype can be completed in the form interface, so that the configuration process is visualized, and the configuration process is more convenient and visual.
Fig. 7 shows a block diagram of a mapping relation generating apparatus according to an embodiment of the present application. As shown in fig. 7, the apparatus includes:
a display module 701, configured to display information of one or more port prototypes corresponding to a process in information of the process;
and the configuration module 702 is configured to configure mapping relationship information between the service instance and the target port prototype in response to an operation of associating the information of the service instance with the information of the target port prototype displayed in the information of the process.
According to the embodiment of the application, the corresponding information of one or more port prototypes is displayed in the information of the process, so that the operation of associating the information of the service instance with the information of the target port prototypes displayed in the information of the process can be directly responded in the process of configuring the communication management CM, the automatic configuration of the mapping relation between the service instance and the target port prototypes can be completed, manual operation is not needed, the configuration flow is simplified, and the accuracy and the efficiency in the configuration process are improved.
In one possible implementation, the apparatus is for configuring communication services in an automotive open system architecture, AUTOSAR, adaptive platform.
Therefore, the device can be applied to vehicles, so that the communication management CM configuration can be more efficiently realized in the AUTOSAR adaptive platform to apply corresponding communication services.
In one possible implementation, the display module 701 is configured to: acquiring information of one or more port prototypes used for communication on a software component and a mapping relation between the process and the software component; and displaying the information of the one or more port prototypes corresponding to the process in the information of the process when the process has the mapping relation with the one or more port prototypes.
According to the embodiment of the application, the mapping relation between the process and the port prototype can be determined by acquiring the information of the port prototype on the configured software component and the mapping relation between the process and the software component, so that the information of the port prototype corresponding to the process can be automatically displayed in the information of the process, and the efficiency is higher.
In one possible implementation, the mapping relationship between a process and the software component is determined according to the mapping relationship between the software component and the executable program, and the mapping relationship between the executable program and the process.
Thus, the association relationship among the software components, processes, and executable programs can be determined.
In one possible implementation, the communication relationship between the process and the other process is displayed through the mapping relationship between the information of the port prototype displayed in the information of the process and the information of the port prototype displayed in the information of the other process.
According to the embodiment of the application, when the port prototypes are communicated, the two processes for communication can be embodied by displaying the mapping relation between the port prototypes in the information of the processes, so that the communication process is more clear.
In one possible implementation, the configuration module 702 is configured to: responding to the operation of associating the information of the service instance with the information of the target port prototype displayed in the information of the process, and acquiring the information of the target port prototype; and distributing one or more of corresponding target port prototypes, software components, executable procedures and processes for the service instance according to the information of the target port prototypes.
According to the embodiment of the application, the information of the target port prototype is acquired in response to the association operation, so that the configuration of the information of one or more of the target port prototype, the software component, the executable program and the process in the mapping relation information can be automatically realized, the configuration flow can be simplified, and the configuration process is prevented from being in error.
In one possible implementation, the device is used for a visual interface, wherein the visual interface comprises a graphical interface and a table interface.
Therefore, the visualization of the communication management CM configuration process can be realized, so that the user operation is more convenient, and the configuration flow is more visual.
In one possible implementation manner, the operation of associating the information of the service instance with the information of the target port prototype displayed in the information of the process includes connecting, in the graphical interface, the information of the service instance with the information of the target port prototype displayed in the information of the process.
According to the embodiment of the application, the mapping relation configuration between the service instance and the target port prototype can be completed in the graphical interface, so that the configuration process is visualized, and the configuration process is more convenient and visual.
In one possible implementation manner, the operation of associating the information of the service instance with the information of the target port prototype displayed in the information of the process includes filling the information of the target port prototype into a table indicating the mapping relationship information of the service instance and the target port prototype in the table interface.
According to the embodiment of the application, the mapping relation configuration between the service instance and the target port prototype can be completed in the form interface, so that the configuration process is visualized, and the configuration process is more convenient and visual.
Fig. 8 shows a block diagram of a mapping relation generating apparatus according to an embodiment of the present application. The map generation apparatus 1100 may be used to perform the map generation method shown in any one of fig. 2 to 6 described above. For example, the mapping relation generating device may be a server, or may be a chip (system) or other parts or components that may be provided inside the server. The embodiments of the present application are not limited in this regard.
As shown in fig. 8, the mapping relation generating apparatus 1100 may include a processor 1101 and a transceiver 1102. Alternatively, the map generating apparatus 1100 may include the memory 1103. The processor 1101 is coupled to the transceiver 1102 and the memory 1103, as may be connected by a communication bus.
The respective constituent elements of the map generation apparatus 1100 are specifically described below with reference to fig. 8.
The processor 1101 is a control center of the map generating apparatus 1100, and may be one processor or a collective name of a plurality of processing elements. For example, the processor 1101 is one or more central processing units (central processing unit, CPU), but may also be an integrated circuit (application specific integrated circuit, ASIC), or one or more integrated circuits configured to implement embodiments of the present application, such as: one or more microprocessors (digital signal processor, DSPs), or one or more field programmable gate arrays (field programmable gate array, FPGAs).
Alternatively, the processor 1101 may perform various functions of the map generating apparatus 1100 by running or executing a software program stored in the memory 1103 and calling data stored in the memory 1103.
In a particular implementation, the processor 1101 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG. 8, as an embodiment.
In one possible implementation, the mapping relation generating apparatus 1100 may also include a plurality of processors, such as the processor 1101 and the processor 1104 shown in fig. 8. Each of these processors may 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, circuitry, and/or processing cores for processing data (e.g., computer program instructions).
The transceiver 1102 is used for communication with other servers.
Alternatively, transceiver 1102 may include a receiver and a transmitter (not separately shown in fig. 8). The receiver is used for realizing the receiving function, and the transmitter is used for realizing the transmitting function.
Alternatively, the transceiver 1102 may be integrated with the processor 1101, or may exist separately, and be coupled to the processor 1101 through an input/output port (not shown in fig. 8) of the mapping relation generating apparatus 1100, which is not limited by the embodiment of the present application.
The above-mentioned memory 1103 may be used to store a software program for executing the present application, and the processor 1101 controls the execution of the software program, and the specific implementation may refer to the above-mentioned method embodiment, which is not described herein again.
The memory 1103 may be, but is not limited to, a read-only memory (ROM) or other type of static storage communication device capable of storing static information and instructions, a random access memory (random access memory, RAM) or other type of dynamic storage communication device capable of storing information and instructions, or an electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), a compact disc (compact disc read-only memory) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage communication device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. It should be noted that, the memory 1103 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. 8) of the mapping relationship generating apparatus 1100, which is not limited in the embodiment of the present application.
The configuration of the map generating apparatus 1100 shown in fig. 8 does not constitute a limitation on the implementation of the map generating apparatus, and an actual map generating apparatus may include more or less components than those illustrated, or may combine some components, or may be a different arrangement of components.
The embodiment of the application provides a mapping relation generating device, which comprises the following components: a processor and a memory for storing processor-executable instructions; wherein the processor is configured to implement the above-described method when executing the instructions.
The embodiment of the application provides terminal equipment, which can execute the method.
Embodiments of the present application provide a non-transitory computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the above-described method.
Embodiments of the present application provide a computer program product comprising a computer readable code, or a non-transitory computer readable storage medium carrying computer readable code, which when run in a processor of an electronic device, performs the above method.
The computer readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but 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 would include the following: portable computer disk, hard disk, random Access Memory (Random Access Memory, RAM), read Only Memory (ROM), erasable programmable Read Only Memory (Electrically Programmable Read-Only-Memory, EPROM or flash Memory), static Random Access Memory (SRAM), portable compact disk Read Only Memory (Compact Disc Read-Only Memory, CD-ROM), digital versatile disk (Digital Video Disc, DVD), memory stick, floppy disk, mechanical coding devices, punch cards or in-groove protrusion structures having instructions stored thereon, and any suitable combination of the foregoing.
The computer readable program instructions or code described herein may be downloaded from a computer readable storage medium to a respective computing/processing device or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmissions, wireless transmissions, routers, firewalls, switches, gateway computers and/or edge servers. The network interface 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.
Computer program instructions for carrying out operations of the present application may be assembly instructions, instruction set architecture (Instruction Set Architecture, ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written 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" language or similar programming languages. The computer readable program instructions may be executed 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. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (Local Area Network, LAN) or a wide area network (Wide Area Network, WAN), or it may be connected to an external computer (e.g., through the internet using an internet service provider). In some embodiments, aspects of the present application are implemented by personalizing electronic circuitry, such as programmable logic circuitry, field programmable gate arrays (Field-Programmable Gate Array, FPGA), or programmable logic arrays (Programmable Logic Array, PLA), with state information of computer readable program instructions.
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.
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 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 may also be stored in a computer readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable medium having the instructions stored therein includes an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by hardware (e.g., circuits or ASICs (Application Specific Integrated Circuit, application specific integrated circuits)) which perform the corresponding functions or acts, or combinations of hardware and software, such as firmware, etc.
Although the invention is described herein in connection with various embodiments, other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed invention, from a study of the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and the "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
The embodiments of the present application have been described above, the foregoing description is exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the improvement of technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (13)

  1. A mapping relation generation method, characterized in that the method comprises:
    displaying information of one or more port prototypes corresponding to a process in the information of the process;
    and configuring the mapping relation information of the service instance and the target port prototype in response to the operation of associating the information of the service instance with the information of the target port prototype displayed in the information of the process.
  2. The method of claim 1, wherein the configuring mapping information of the service instance and the target port prototype in response to the operation of associating the information of the service instance with the information of the target port prototype displayed in the information of the process includes:
    responding to the operation of associating the information of the service instance with the information of the target port prototype displayed in the information of the process, and acquiring the information of the target port prototype;
    and distributing one or more of corresponding target port prototypes, software components, executable programs and processes for the service instance according to the information of the target port prototypes.
  3. The method according to claim 1 or 2, wherein displaying one or more port prototypes corresponding to a process in information of the process comprises:
    Acquiring information of one or more port prototypes used for communication on a software component and a mapping relation between the process and the software component;
    and displaying the information of the one or more port prototypes corresponding to the process in the information of the process when the process has the mapping relation with the one or more port prototypes.
  4. A method according to claim 3, wherein the mapping between the process and the software component is determined according to the mapping between the software component and the executable program, and the mapping between the executable program and the process.
  5. The method according to any one of claims 1 to 4, wherein the communication relationship between the process and another process is displayed by a mapping relationship between information of a port prototype displayed in the information of the process and information of a port prototype displayed in the information of another process.
  6. The method of any one of claims 1-5, wherein the method is used for a visual interface comprising a graphical interface, a tabular interface.
  7. The method of claim 6, wherein associating the information of the service instance with the information of the destination port prototype displayed in the information of the process comprises connecting, in the graphical interface, the information of the service instance with the information of the destination port prototype displayed in the information of the process.
  8. The method according to claim 6 or 7, wherein the operation of associating information of a service instance with information of a target port prototype displayed in the information of the process comprises filling, in the table interface, information of the target port prototype into a table indicating mapping relation information of the service instance and the target port prototype.
  9. The method according to any of claims 1-8, wherein the method is used for configuring communication services in an automotive open system architecture, AUTOSAR, adaptive platform.
  10. A mapping relation generating apparatus, characterized in that the apparatus comprises:
    the display module is used for displaying information of one or more port prototypes corresponding to the process in the information of the process;
    and the configuration module is used for responding to the operation of associating the information of the service instance with the information of the target port prototype displayed in the information of the process, and configuring the mapping relation information of the service instance and the target port prototype.
  11. A mapping relation generating apparatus, comprising:
    a processor;
    a memory for storing processor-executable instructions;
    Wherein the processor is configured to implement the method of any of claims 1-9 when executing the instructions.
  12. A non-transitory computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of any 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.
CN202280005462.5A 2022-04-20 2022-04-20 Mapping relation generation method, device and storage medium Pending CN117280320A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/087860 WO2023201558A1 (en) 2022-04-20 2022-04-20 Mapping relationship generation method and apparatus, and storage medium

Publications (1)

Publication Number Publication Date
CN117280320A true CN117280320A (en) 2023-12-22

Family

ID=88418923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202280005462.5A Pending CN117280320A (en) 2022-04-20 2022-04-20 Mapping relation generation method, device and storage medium

Country Status (2)

Country Link
CN (1) CN117280320A (en)
WO (1) WO2023201558A1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111130838B (en) * 2019-10-17 2023-06-16 国电南瑞科技股份有限公司 Dynamic expansion and network bandwidth limitation method and device for process-level service instance
WO2021107179A1 (en) * 2019-11-27 2021-06-03 주식회사 알티스트 Method and device for automatic generation of setting code of autosar-based application software
CN111880810B (en) * 2020-07-28 2022-12-27 苏州浪潮智能科技有限公司 Service instance deployment method and device, electronic equipment and storage medium
CN113783914A (en) * 2020-09-01 2021-12-10 北京沃东天骏信息技术有限公司 Data processing method, device and equipment

Also Published As

Publication number Publication date
WO2023201558A1 (en) 2023-10-26

Similar Documents

Publication Publication Date Title
CN107896162B (en) Deployment method and device of monitoring system, computer equipment and storage medium
CN107959582B (en) Slice instance management method and device
JP2023544130A (en) Vehicle upgrade method and device
US20220326938A1 (en) Upgrade method and apparatus
WO2019135207A1 (en) Distributed processing system and method for the provision of location based services
CN113141405B (en) Service access method, middleware system, electronic device, and storage medium
CN109586962A (en) IPv4 is upgraded to processing unit, method and the electronic equipment of the HTTPS exterior chain problem of IPv6
US20240045657A1 (en) System architecture for implementing dds communication based on autosar, communication method, and device
EP4207707A1 (en) Data transmission system, data transmission method, smart vehicle and device
CN112015489A (en) Management method, device, storage medium and system for vehicle-mounted software
CN114064091A (en) OTA (over the air) upgrade control method and device, electronic equipment and automatic driving vehicle
US20150046342A1 (en) System and method for telematics service of vehicle
CN117280320A (en) Mapping relation generation method, device and storage medium
CN108111513B (en) Data management method, device, medium and electronic equipment applied to front-end device
CN115980554A (en) Chip testing method and electronic equipment thereof
CN111351669A (en) Fault diagnosis method and device, storage medium and vehicle
US11661207B2 (en) Avionics device for the centralized computation and diffusion of the state(s) of an aircraft, related avionics assembly, method and computer program
CN113076128B (en) Method, device, electronic equipment and storage medium for robot configuration
US11228502B2 (en) Aggregation platform, requirement owner, and methods thereof
CN116186022A (en) Form processing method, form processing device, distributed form system and computer storage medium
CN116324721A (en) Mapping relation generation method, device and storage medium
CN113452536B (en) Atomic object management method and device
EP4350511A1 (en) Method and apparatus for co-simulation
CN115858206B (en) Data processing method, device, electronic equipment and storage medium
CN111176134B (en) Simulation system adaptation method, device and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination