A mapping relationship generation method and device, and a storage medium

By automatically configuring the mapping relationship between service instances and target port prototypes in the AUTOSAR adaptive platform, the problem of tedious and error-prone manual configuration is solved, and efficient and accurate Communication Management (CM) configuration is achieved.

CN117280320BActive Publication Date: 2026-11-24YINWANG INTELLIGENT TECHNOLOGIES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202280005462.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-20
Publication Date
2026-11-24
Estimated Expiration
2042-04-20

AI Technical Summary

Technical Problem

In the AUTOSAR adaptive platform, manually establishing the mapping relationship between service instances and port prototypes when configuring the Communication Management (CM) is tedious, error-prone, and inefficient.

Method used

By displaying the corresponding port prototype information in the process information, the mapping relationship between service instances and target port prototypes is automatically configured, simplifying the configuration process and improving accuracy and efficiency.

Benefits of technology

It enables efficient and accurate configuration of the Communication Management CM in the AUTOSAR adaptive platform, simplifies the configuration process, and avoids human error.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117280320B_ABST
    Figure CN117280320B_ABST
Patent Text Reader

Abstract

This application relates to a mapping relationship generation method, apparatus, and storage medium. The method includes: displaying information about one or more port prototypes corresponding to a process in the process information; and configuring the mapping relationship information between the service instance and the target port prototype in response to an operation that associates the information of a service instance with the information of the target port prototype displayed in the process information. According to embodiments of this application, by displaying information about one or more corresponding port prototypes in the process information, during the configuration of Communication Management (CM), the mapping relationship between the service instance and the target port prototype can be automatically configured directly in response to the operation that associates the information of the service instance with the information of the target port prototype displayed in the process information. This eliminates the need for manual operation, simplifies the configuration process, and improves the accuracy and efficiency of the configuration process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent vehicles, and in particular to a mapping relationship generation method, apparatus and storage medium. Background Technology

[0002] Automotive Open System Architecture (AUTOSAR) is an open and de facto standardized software architecture developed to reduce the development risks of automotive software. With the increasing application of intelligent vehicles, which integrate various auxiliary functions such as perception, control, and autonomous cruise control, cars are typical high-tech complexes. Their emergence has made cars increasingly intelligent and electronic, but it has also made their software structure increasingly complex. AUTOSAR has introduced an Adaptive Platform on top of the existing Classic Platform.

[0003] Communication management (CM) is the most important part of the AUTOSAR Adaptive Platform. In the process of configuring CM, after the communication service is instantiated, a mapping relationship between it and the port prototype needs to be established. However, this configuration process also involves mapping relationships between multiple elements such as processes, executable programs, and software components, which is quite cumbersome. Currently, the mapping relationship between each service instance and the port prototype is usually created manually, which is prone to errors and inefficient. Summary of the Invention

[0004] In view of this, a method, apparatus and storage medium for generating mapping relationships are proposed.

[0005] In a first aspect, embodiments of this application provide a mapping relationship generation method. The method includes: displaying information about one or more port prototypes corresponding to the process in the process's information; and configuring mapping relationship information between the service instance and the target port prototype in response to an operation that associates information about a service instance with the information about the target port prototype displayed in the process's information.

[0006] According to the embodiments of this application, by displaying information of one or more corresponding port prototypes in the process information, the process of configuring Communication Management (CM) can directly respond to the operation of associating the information of the service instance with the information of the target port prototype displayed in the process information, thereby completing the automatic configuration of the mapping relationship between the service instance and the target port prototype without manual operation, simplifying the configuration process and improving the accuracy and efficiency of the configuration process.

[0007] According to the first aspect, in a first possible implementation of the mapping relationship generation method, 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, configuring the mapping relationship information between the service instance and the target port prototype includes: 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, obtaining the information of the target port prototype; and, based on the information of the target port prototype, assigning one or more of the following to the service instance: a corresponding target port prototype, a software component, an executable program, or a process.

[0008] According to the embodiments of this application, by responding to the associated operation and obtaining the information of the target port prototype, the configuration of one or more of the information of the target port prototype, software component, executable program, and process in the mapping relationship information can be automatically realized, thereby simplifying the configuration process and preventing errors in the configuration process.

[0009] According to the first aspect or the first possible implementation of the first aspect, in the second possible implementation of the mapping relationship generation method, displaying one or more port prototypes corresponding to the process in the process information includes: obtaining information on one or more port prototypes used for communication on a software component, and the mapping relationship between the process and the software component; if the process has a mapping relationship with one or more port prototypes, displaying information on one or more port prototypes corresponding to the process in the process information.

[0010] According to the embodiments of this application, by obtaining the information of the port prototype on the configured software component and the mapping relationship between the process and the software component, the mapping relationship between the process and the port prototype can be determined, thereby realizing the automatic display of the port prototype information corresponding to the process in the process information, which is more efficient.

[0011] According to the second possible implementation of the first aspect, in the third possible implementation of the mapping relationship generation method, the mapping relationship between the process and the software component is determined based on the mapping relationship between the software component and the executable program, and the mapping relationship between the executable program and the process.

[0012] This allows us to determine the relationships between software components, processes, and executable programs.

[0013] According to the first aspect or the first, second or third possible implementation of the first aspect, in the fourth possible implementation of the mapping relationship generation method, the communication relationship between a process and another process is displayed through the mapping relationship between the port prototype information displayed in the information of the process and the port prototype information displayed in the information of the other process.

[0014] According to the embodiments of this application, when communication occurs between port prototypes, the mapping relationship between port prototypes in the process information is displayed, which can reflect the two processes that are actually communicating, making the communication process clearer.

[0015] According to the first aspect or the first, second, third or fourth possible implementation of the first aspect, in the fifth possible implementation of the mapping relationship generation method, the method is used for a visualization interface, the visualization interface including a graphical interface and a tabular interface.

[0016] This enables visualization of the Communication Management (CM) configuration process, making user operations more convenient and the configuration process more intuitive.

[0017] According to the fifth possible implementation of the first aspect, in the sixth possible implementation of the mapping relationship generation method, 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 the information of the service instance with the information of the target port prototype displayed in the information of the process in the graphical interface.

[0018] According to the embodiments of this application, the mapping relationship between service instances and target port prototypes can be configured in a graphical interface, making the configuration process more visual, convenient and intuitive.

[0019] According to the fifth or sixth possible implementation of the first aspect, in the seventh possible implementation of the mapping relationship generation method, 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 used to indicate the mapping relationship information between the service instance and the target port prototype in the table interface.

[0020] According to the embodiments of this application, the mapping relationship between service instances and target port prototypes can be configured in a table interface, making the configuration process more visual, convenient and intuitive.

[0021] According to the first aspect or the first, second, third, fourth, fifth, sixth or seventh possible implementation of the first aspect, in the eighth possible implementation of the mapping relationship generation method, the method is used to configure communication services in the AUTOSAR adaptive platform of the automotive open system architecture.

[0022] This allows the method to be applied to vehicles, enabling more efficient implementation of Communication Management (CM) configuration in the AUTOSAR adaptive platform to apply corresponding communication services.

[0023] Secondly, embodiments of this application provide a mapping relationship generation apparatus, which includes: a display module for displaying information of one or more port prototypes corresponding to the process in the process information; and a configuration module for configuring the mapping relationship information between the service instance and the target port prototype in response to an operation of associating the information of a service instance with the information of the target port prototype displayed in the process information.

[0024] According to the second aspect, in a first possible implementation of the mapping relationship generation device, the configuration module is configured to: obtain the target port prototype information in response to an operation that associates the information of the service instance with the target port prototype information displayed in the process information; and allocate one or more of the target port prototype, software component, executable program, and process to the service instance based on the target port prototype information.

[0025] According to the second aspect or the first possible implementation of the second aspect, in the second possible implementation of the mapping relationship generation device, the display module is configured to: acquire information on one or more port prototypes used for communication on the software component, and the mapping relationship between the process and the software component; and, if the process has a mapping relationship with one or more port prototypes, display information on one or more port prototypes corresponding to the process in the process information.

[0026] According to the second possible implementation of the second aspect, in the third possible implementation of the mapping relationship generation device, the mapping relationship between the process and the software component is determined based on the mapping relationship between the software component and the executable program, and the mapping relationship between the executable program and the process.

[0027] According to the second aspect or the first, second or third possible implementation of the second aspect, in the fourth possible implementation of the mapping relationship generation device, the communication relationship between a process and another process is displayed through the mapping relationship between the port prototype information displayed in the information of the process and the port prototype information displayed in the information of the other process.

[0028] According to the second aspect or the first, second, third or fourth possible implementation of the second aspect, in the fifth possible implementation of the mapping relationship generation device, the device is used for a visualization interface, the visualization interface including a graphical interface and a tabular interface.

[0029] According to the fifth possible implementation of the second aspect, in the sixth possible implementation of the mapping relationship generation device, 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 the information of the service instance with the information of the target port prototype displayed in the information of the process in the graphical interface.

[0030] According to the fifth or sixth possible implementation of the second aspect, in the seventh possible implementation of the mapping relationship generation device, 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 used to indicate the mapping relationship information between the service instance and the target port prototype in the table interface.

[0031] According to the second aspect or the first, second, third, fourth, fifth, sixth, or seventh possible implementation of the second aspect, in the eighth possible implementation of the mapping relationship generation device, the device is used to configure communication services in the AUTOSAR adaptive platform of the automotive open system architecture.

[0032] Thirdly, embodiments of this application provide a mapping relationship generation apparatus, the apparatus comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement one or more of the mapping relationship generation methods described in the first aspect or various possible implementations of the first aspect when executing the instructions.

[0033] Fourthly, embodiments of this application provide a non-volatile computer-readable storage medium storing computer program instructions thereon, which, when executed by a processor, implement one or more of the mapping relationship generation methods described in the first aspect or various possible implementations of the first aspect.

[0034] Fifthly, embodiments of this application provide a terminal device that can execute one or more of the mapping relationship generation methods described in the first aspect or various possible implementations of the first aspect.

[0035] Sixthly, embodiments of this application provide a computer program product including computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code. When the computer-readable code is run in an electronic device, the processor in the electronic device executes one or more of the mapping relationship generation methods described in the first aspect or various possible implementations of the first aspect.

[0036] These and other aspects of this application will become more apparent in the description of the following embodiments(s). Attached Figure Description

[0037] The accompanying drawings, which are included in and form part of this specification, illustrate exemplary embodiments, features, and aspects of this application together with the specification and serve to explain the principles of this application.

[0038] Figure 1 A schematic diagram illustrating an application scenario according to an embodiment of this application is shown.

[0039] Figure 2 A flowchart illustrating a mapping relationship generation method according to an embodiment of this application is shown.

[0040] Figure 3 A flowchart illustrating a mapping relationship generation method according to an embodiment of this application is shown.

[0041] Figure 4 A flowchart illustrating a mapping relationship generation method according to an embodiment of this application is shown.

[0042] Figure 5 This diagram illustrates an application of an embodiment of the present application to a graphical interface.

[0043] Figure 6 This diagram illustrates an application of an embodiment of the present application to a table interface.

[0044] Figure 7 A structural diagram of a mapping relationship generation apparatus according to an embodiment of this application is shown.

[0045] Figure 8 This diagram illustrates a structural diagram of a mapping relationship generation apparatus provided according to an embodiment of this application. Detailed Implementation

[0046] Various exemplary embodiments, features, and aspects of this application will now be described in detail with reference to the accompanying drawings. The same reference numerals in the drawings denote elements that have the same or similar functions. Although various aspects of the embodiments are shown in the drawings, they are not necessarily drawn to scale unless specifically indicated otherwise.

[0047] The term “exemplary” as used herein means “serving as an example, embodiment, or illustration.” Any embodiment illustrated herein as “exemplary” is not necessarily to be construed as superior to or better than other embodiments.

[0048] Furthermore, to better illustrate this application, numerous specific details are provided in the following detailed embodiments. Those skilled in the art should understand that this application can be implemented without certain specific details. In some instances, methods, means, components, and circuits well-known to those skilled in the art have not been described in detail in order to highlight the main points of this application.

[0049] Figure 1 This diagram illustrates 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 an AUTOSAR adaptive platform. Figure 1 As shown, the architecture of the AUTOSAR adaptive platform can include an application layer, a service layer, and a hardware layer. The application layer can include software for implementing application functions, such as software components (SWCs); the service layer can provide various background services for the application layer, such as communication management (CM) and core types for providing data structure definition services; the hardware layer can include various nodes, which can be automotive chips built into the vehicle, such as microcontroller units (MCUs), or domain controllers including MCUs, vehicle infotainment systems, etc.

[0050] Communication management (CM) is the most important part of the AUTOSAR Adaptive Platform. Configuring CM requires instantiating the communication service (i.e., determining the service instance) and establishing a mapping relationship between it and the port prototype. However, this configuration process also involves mapping relationships between multiple elements such as processes, executables, and software components (SWC). It is necessary to associate service instances, processes, software components, and executables. This process involves configuring many attribute items, which is quite cumbersome. Since there are constraints between the elements, manually establishing the mapping relationship is prone to errors and is inefficient.

[0051] In view of this, the mapping relationship generation method of this application displays the information of one or more corresponding port prototypes in the process information, so that in the process of configuring communication management (CM), it can directly respond to the operation of associating the information of the service instance with the information of the target port prototype displayed in the process information, thereby automatically configuring the mapping relationship between the service instance and the target port prototype, improving the accuracy and efficiency of the configuration process.

[0052] The following Figure 1 In the application scenarios shown, through Figures 2-6The mapping relationship generation method of this application embodiment will be described in detail:

[0053] Figure 2 A flowchart illustrating a mapping relationship generation method according to an embodiment of this application is shown. This method can be used with a processor that can implement, for example... Figure 1 The configuration process of the Communication Management (CM) in the architecture shown is as follows: Figure 2 As shown, the method includes:

[0054] Step S201: Display information about one or more port prototypes corresponding to the process in the process information.

[0055] Specifically, aggregate attributes can be pre-added to the attribute information corresponding to the process design. These aggregate attributes can represent information about one or more port prototypes corresponding to the process. These port prototypes can be all ports available for communication within the corresponding process. The value of the aggregate attribute can be, for example, the identifier of the corresponding port prototype. For instance, if the reference chain between port prototype, software component, executable program, and process is incomplete, the value of this aggregate attribute can be empty. If a complete and correct reference chain exists between port prototype, software component, executable program, and process, the value of this aggregate attribute can be automatically filled with the identifier of the corresponding port prototype.

[0056] Therefore, during the process design process, once the relationships between port prototypes, software components, executable programs, and processes are determined, one or more port prototype information related to the process can be automatically displayed in the process design information. For example, the corresponding aggregate attribute can be automatically filled in as the identifier of the corresponding port prototype.

[0057] For example, it can be displayed in a visual interface, as detailed below.

[0058] One way to determine the relationships between port prototypes, software components, executables, and processes can be found in [reference needed]. Figure 3 . Figure 3 A flowchart illustrating a mapping relationship generation method according to an embodiment of this application is shown. Figure 3 As shown, in one possible implementation, step S201 includes:

[0059] Step S2011: Obtain information about one or more port prototypes used for communication on the software component, as well as the mapping relationship between the process and the software component.

[0060] The port prototype used for communication on the software component SWC can be a receiving port prototype (R-Port Prototype) used to request services or data, or a sending port prototype (P-PortPrototype) used to provide services or data. One or more port prototypes can be defined on the software component, and the information obtained from the port prototype can include, for example, the port prototype's identifier.

[0061] In the above process, the port prototypes on the software components and the mapping relationship between processes and software components can be pre-configured. The configuration method can be implemented based on existing technologies, which will not be elaborated here.

[0062] In one possible implementation, the mapping relationship between a process and a software component is determined based on the mapping relationship between the software component and the executable program, and the mapping relationship between the executable program and the process.

[0063] Specifically, the mapping relationship between processes and executable programs can be determined by referencing the configured executable program information within the process's configuration information. Since the executable program can reference the configured software component information, the mapping relationship between the executable program and software components can be determined. For example, the root software component type (rootSwcType) in the executable program's configuration information can be used to identify all software components corresponding to that executable program. Therefore, based on the association between software components and executable programs, and the association between executable programs and processes, the association relationship between processes and software components can be determined.

[0064] This allows us to determine the relationships between software components, processes, and executable programs.

[0065] In the above process, the methods for configuring the executable program and the process can be implemented based on existing technologies, and this application does not impose any restrictions on them.

[0066] Step S2012: If the process has a mapping relationship with one or more port prototypes, display the information of one or more port prototypes corresponding to the process in the process information.

[0067] Specifically, based on the relationships between processes, executable programs, and software components, it can be determined whether one or more predefined port prototypes exist on the software component corresponding to the process. If predefined port prototypes exist, it can be determined that there is a mapping relationship between the process and these predefined port prototypes. In other words, if a mapping relationship exists, the association link of "port prototype-software component-executable program-process" should be complete (i.e., there is a one-to-one correspondence between the four) and meet the predetermined constraints.

[0068] According to the embodiments of this application, by obtaining the information of the port prototype on the configured software component and the mapping relationship between the process and the software component, the mapping relationship between the process and the port prototype can be determined, thereby realizing the automatic display of the port prototype information corresponding to the process in the process information, which is more efficient.

[0069] Since communication between port prototypes is essentially inter-process communication, when communication occurs between port prototypes, the information of the corresponding port prototype is displayed in the process information. The mapping relationship between port prototypes in the process can directly reflect the two processes communicating, making the communication process clearer and more understandable.

[0070] In one possible implementation, the communication relationship between the process and another process is displayed through a mapping relationship between the port prototype information displayed in the information of the process and the port prototype information displayed in the information of the other process.

[0071] This application does not limit the communication protocol used during communication; it can be a data distribution service (DDS) or a scalable service-oriented middleware over IP (SOME / IP) protocol, etc. Port prototype information on one process can indicate the corresponding sending port prototype, and port prototype information on another process can indicate the corresponding receiving port prototype. The display method can be, for example, through a visual interface, as detailed below.

[0072] In one possible implementation, this method can be used to configure communication services in the AUTOSAR adaptive platform of the automotive open system architecture.

[0073] This allows the method to be applied to vehicles, enabling more efficient implementation of Communication Management (CM) configuration in the AUTOSAR adaptive platform to apply corresponding communication services.

[0074] 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, configure the mapping relationship information between the service instance and the target port prototype.

[0075] This can be achieved by pre-adding a reference attribute to the mapping relationship configuration information between service instances and target port prototypes. This reference attribute can be used to reference 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 process information, the reference attribute in the mapping relationship configuration can reference the value of the corresponding aggregate attribute in the process design (i.e., the target port prototype information). This allows the target port prototype to be associated with the service instance, automatically populating other relevant information in the mapping relationship configuration information, thus configuring the mapping relationship information between service instances and target port prototypes.

[0076] The operation of associating the information of the service instance with the target port prototype displayed in the process information can be performed on a visual interface, as shown below.

[0077] According to the embodiments of this application, by displaying information of one or more corresponding port prototypes in the process information, the process of configuring Communication Management (CM) can directly respond to the operation of associating the information of the service instance with the information of the target port prototype displayed in the process information, thereby completing the automatic configuration of the mapping relationship between the service instance and the target port prototype without manual operation, simplifying the configuration process and improving the accuracy and efficiency of the configuration process.

[0078] For details regarding the configuration information for the automatic filling of service instances and target port prototypes, and other related information, please refer to [link to configuration information]. Figure 4 , Figure 4 A flowchart illustrating a mapping relationship generation method according to an embodiment of this application is shown. In one possible implementation, such as Figure 4 As shown, step S202 includes:

[0079] Step S2021: 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, obtain the information of the target port prototype.

[0080] In response to the above association operation, the reference attribute can be made to reference the target port prototype information in the above aggregate attribute in the mapping relationship configuration between the service instance and the target port prototype, so the target port prototype information referenced in the reference attribute can be obtained.

[0081] Step S2022: Based on the information of the target port prototype, assign one or more of the following to the service instance: a target port prototype, a software component, an executable program, or a process.

[0082] Assigning one or more of the target port prototype, software component, executable program, and process to the service instance can be done during the process of configuring the mapping relationship between the service instance and the target port prototype, by filling in the configuration information related to the target port prototype, software component, executable program, and process. Based on the obtained target port prototype information, configuration items related to the target port prototype can be filled in. Since the target port prototype information is obtained through aggregate attributes in the process design referenced by the reference attribute, the process corresponding to the target port prototype can be determined, and the configuration items related to the process can be filled in. The association relationship with the executable program and software component can also be obtained through the configuration information corresponding to the process, thereby allowing the configuration items related to the executable program and software component to be filled in. This enables the automatic configuration of the mapping relationship information between the service instance and the target port prototype.

[0083] According to the embodiments of this application, by responding to the associated operation and obtaining the information of the target port prototype, the configuration of one or more of the information of the target port prototype, software component, executable program, and process in the mapping relationship information can be automatically realized, thereby simplifying the configuration process and preventing errors in the configuration process.

[0084] In one possible implementation, the method can be used for a visual interface, which may include a graphical interface, a tabular interface, or other types of visual interfaces.

[0085] This enables visualization of the Communication Management (CM) configuration process, making user operations more convenient and the configuration process more intuitive.

[0086] The following is passed Figure 5 and Figure 6 Taking this as an example, the configuration process for the mapping relationship between service instances and target port prototypes in both graphical and tabular interfaces will be described in detail.

[0087] Figure 5 This diagram illustrates an application of an embodiment of the present application to a graphical user interface. For example... Figure 5As shown, taking the configuration of the mapping relationship between service instances and target port prototypes on the receiving end as an example, R-service instance (required service instance) and R-port prototype in the diagram can identify the service instance and port prototype on the receiving end, while P-service instance (provided service instance) can identify the service instance on the sending end. The relationships between software components, executable programs, and processes can be represented by lines in the diagram. For example, software components are associated with executable program 1, and executable program is associated with process 1; software components are associated with executable program 2, and executable program 2 is associated with process 2; and executable program 2 is associated with process 3.

[0088] The process information displays information about one or more port prototypes corresponding to the process. As shown in the figure, the associated port prototypes can be displayed near the box corresponding to the process. That is, the aggregate attributes added in the process design can be displayed in the box indicating the port prototype near the process. As shown in the figure, as an R-port prototype on a software component, and the software component has 3 complete reference chains ("R-port prototype, software component, executable program 1, process 1", "R-port prototype, software component, executable program 2, process 2", "R-port prototype, software component, executable program 2, process 3"), therefore, the associated R-port prototypes can be displayed on process 1, process 2, and process 3 respectively.

[0089] In one possible implementation, step S202, which associates the information of the service instance with the information of the target port prototype displayed in the process information, includes connecting the information of the service instance with the information of the target port prototype displayed in the process information in the graphical interface.

[0090] Operations that associate the information of a service instance with the target port prototype displayed in the process information, such as connecting an R-service instance to the R-port prototype on process 1, and connecting an R-service instance to the R-port prototype on process 3, can be found in [reference needed]. Figure 5 The corresponding lines are "Mapping 1" and "Mapping 2".

[0091] In the graphical interface, for example, after connecting the R-service instance to the R-port prototype on process 1, step S202 can be executed in response to the connection operation to complete the mapping relationship between the R-service instance and the R-port prototype.

[0092] In one possible implementation, the communication relationships between processes can also be displayed more intuitively in the graphical interface through connections between aggregated attributes (i.e., port prototypes within a process). For example, the communication relationship between process 1 on the R-service instance and the process on the P-service instance can be displayed through connections between the R-port prototype of process 1 and the P-port prototype of the process on the P-service instance.

[0093] It should be noted that in the graphical interface, the relationships between information can also be displayed in ways other than connecting lines, as long as the relationships are presented in a visual way.

[0094] According to the embodiments of this application, the mapping relationship between service instances and target port prototypes can be configured in a graphical interface, making the configuration process more visual, convenient and intuitive.

[0095] Figure 6 This diagram illustrates an application of an embodiment of the present application to a table interface. Figure 6 As shown in (a), the process design configuration information table in the table interface may include information such as category, checksum, short name, executable program, timestamp, and universally unique identifier (UUID). This information can be configured based on existing technologies, and this application does not impose any limitations on it. Based on the above information, the aforementioned aggregate attribute can be added to the process design configuration information table, as shown in the figure. This aggregate attribute can be called PortsInProcess, and its value can include the identifiers of each port prototype associated with the process. In one possible implementation, if the reference chain between port prototype, software component, executable program, and process is complete and correct, the value of PortsInProcess can be automatically populated with the identifiers of each port prototype associated with the process during the process design configuration process.

[0096] like Figure 6As shown in (b), the configuration information table for the mapping between service instances and target port prototypes in the table interface may include category, checksum, abbreviation, enable log trace, log trace port ID, process, service instance, port prototype, timestamp, and universally unique identifier (UUID). Based on the above information, the aforementioned reference attribute can be added to the configuration information table for service instances and target port prototypes, as shown in the figure. This reference attribute can be called Process Port, and its value can be the value referenced in PortsInProcess.

[0097] In one possible implementation, step S202, which associates the information of the service instance with the information of the target port prototype displayed in the process information, includes filling the information of the target port prototype into a table in the table interface that indicates the mapping relationship between the service instance and the target port prototype.

[0098] Specifically, the target port prototype information is filled into a table that indicates the mapping relationship between service instances and target port prototypes. This can be done in a format such as... Figure 6 In the configuration information table shown in (b), fill in the identifier corresponding to the target port prototype in PortsInProcess into Process Port so that Process Port can reference the value in PortsInProcess.

[0099] In the table interface, after filling in the identifier corresponding to the target port prototype in PortsInProcess into Process Port, steps S2021-S2022 can be executed. Based on the reference chain relationship between the corresponding target port prototype, software component, executable program, and process, the table will be automatically filled in, as shown below. Figure 6 (b) shows the configuration table information, including information such as process, service instance, and port prototype, to complete the configuration of the mapping relationship between the service instance and the target port prototype. Figure 6 In (b), information such as category, checksum, abbreviation name, enable log tracing, log tracing port identifier, timestamp, and UUID can be configured based on existing technologies, and this application does not impose any restrictions on this.

[0100] According to the embodiments of this application, the mapping relationship between service instances and target port prototypes can be configured in a table interface, making the configuration process more visual, convenient and intuitive.

[0101] Figure 7 A structural diagram of a mapping relationship generation apparatus according to an embodiment of this application is shown. Figure 7 As shown, the device includes:

[0102] Display module 701 is used to display information about one or more port prototypes corresponding to the process in the process information;

[0103] Configuration module 702 is configured to configure the mapping relationship information between the service instance and the target port prototype in response to an operation that associates the information of the service instance with the information of the target port prototype displayed in the process information.

[0104] According to the embodiments of this application, by displaying information of one or more corresponding port prototypes in the process information, the process of configuring Communication Management (CM) can directly respond to the operation of associating the information of the service instance with the information of the target port prototype displayed in the process information, thereby completing the automatic configuration of the mapping relationship between the service instance and the target port prototype without manual operation, simplifying the configuration process and improving the accuracy and efficiency of the configuration process.

[0105] In one possible implementation, the device is used to configure communication services in the AUTOSAR adaptive platform of the automotive open system architecture.

[0106] This allows the device to be applied to vehicles, enabling more efficient implementation of Communication Management (CM) configuration within the AUTOSAR adaptive platform to apply corresponding communication services.

[0107] In one possible implementation, the display module 701 is configured to: acquire information about one or more port prototypes used for communication on the software component, and the mapping relationship between the process and the software component; and, if the process has a mapping relationship with one or more port prototypes, display information about one or more port prototypes corresponding to the process in the process information.

[0108] According to the embodiments of this application, by obtaining the information of the port prototype on the configured software component and the mapping relationship between the process and the software component, the mapping relationship between the process and the port prototype can be determined, thereby realizing the automatic display of the port prototype information corresponding to the process in the process information, which is more efficient.

[0109] In one possible implementation, the mapping relationship between a process and a software component is determined based on the mapping relationship between the software component and the executable program, and the mapping relationship between the executable program and the process.

[0110] This allows us to determine the relationships between software components, processes, and executable programs.

[0111] In one possible implementation, the communication relationship between a process and another process is displayed through a mapping relationship between the port prototype information displayed in the information of the process and the port prototype information displayed in the information of the other process.

[0112] According to the embodiments of this application, when communication occurs between port prototypes, the mapping relationship between port prototypes in the process information is displayed, which can reflect the two processes that are actually communicating, making the communication process clearer.

[0113] In one possible implementation, the configuration module 702 is configured to: obtain the target port prototype information in response to an operation that associates the information of the service instance with the target port prototype information displayed in the process information; and allocate one or more of the target port prototype, software component, executable program, and process to the service instance based on the target port prototype information.

[0114] According to the embodiments of this application, by responding to the associated operation and obtaining the information of the target port prototype, the configuration of one or more of the information of the target port prototype, software component, executable program, and process in the mapping relationship information can be automatically realized, thereby simplifying the configuration process and preventing errors in the configuration process.

[0115] In one possible implementation, the device is used for a visual interface, which includes a graphical interface and a tabular interface.

[0116] This enables visualization of the Communication Management (CM) configuration process, making user operations more convenient and the configuration process more intuitive.

[0117] In one possible implementation, the operation of associating the information of the service instance with the information of the target port prototype displayed in the process information includes connecting the information of the service instance with the information of the target port prototype displayed in the process information in the graphical interface.

[0118] According to the embodiments of this application, the mapping relationship between service instances and target port prototypes can be configured in a graphical interface, making the configuration process more visual, convenient and intuitive.

[0119] In one possible implementation, the operation of associating the information of the service instance with the information of the target port prototype displayed in the process information includes filling the information of the target port prototype into a table in the table interface that indicates the mapping relationship between the service instance and the target port prototype.

[0120] According to the embodiments of this application, the mapping relationship between service instances and target port prototypes can be configured in a table interface, making the configuration process more visual, convenient and intuitive.

[0121] Figure 8 This diagram illustrates a structural diagram of a mapping relationship generation apparatus according to an embodiment of the present application. The mapping relationship generation apparatus 1100 can be used to perform the above-described... Figures 2-6 The mapping relationship generation method shown in any one of the embodiments. For example, the mapping relationship generation device can be a server, or a chip (system) or other component or part that can be set inside the server. The embodiments of this application do not limit this.

[0122] like Figure 8 As shown, the mapping relationship generation device 1100 may include a processor 1101 and a transceiver 1102. Optionally, the mapping relationship generation device 1100 may include a memory 1103. The processor 1101 is coupled to the transceiver 1102 and the memory 1103, for example, they can be connected via a communication bus.

[0123] The following is combined Figure 8 The various components of the mapping relationship generation device 1100 will be described in detail.

[0124] The processor 1101 described above is the control center of the mapping relationship generation device 1100. It can be a single processor or a collective term for multiple processing elements. For example, the processor 1101 can be one or more central processing units (CPUs), application-specific integrated circuits (ASICs), or one or more integrated circuits configured to implement the embodiments of this application, such as one or more digital signal processors (DSPs), or one or more field-programmable gate arrays (FPGAs).

[0125] Optionally, the processor 1101 can perform various functions of the mapping relationship generation device 1100 by running or executing software programs stored in the memory 1103 and calling data stored in the memory 1103.

[0126] In a specific implementation, as one example, the processor 1101 may include one or more CPUs, for example... Figure 8 CPU0 and CPU1 are shown in the diagram.

[0127] In one possible implementation, the mapping generation device 1100 may also include multiple processors, for example... Figure 8 The processors 1101 and 1104 shown are illustrated. Each of these processors can be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). Here, "processor" can refer to one or more communication devices, circuits, and / or processing cores used to process data (e.g., computer program instructions).

[0128] The transceiver 1102 described above is used for communication with other servers.

[0129] Optionally, transceiver 1102 may include a receiver and a transmitter. Figure 8 (Not shown separately). The receiver is used to implement the receiving function, and the transmitter is used to implement the sending function.

[0130] Optionally, the transceiver 1102 can be integrated with the processor 1101 or exist independently, and the input / output ports of the device 1100 can be generated through a mapping relationship. Figure 8 (Not shown in the image) is coupled to processor 1101, but this embodiment of the application does not limit this.

[0131] The aforementioned memory 1103 can be used to store software programs that execute the scheme of this application, and the processor 1101 controls the execution. For specific implementation methods, please refer to the above method embodiments, which will not be repeated here.

[0132] The memory 1103 can be a read-only memory (ROM) or other type of static storage communication device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage communication device capable of storing information and instructions, or it can be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage communication device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. It should be noted that the memory 1103 can be integrated with the processor 1101 or exist independently, and the input / output ports of the device 1100 are generated through a mapping relationship. Figure 8(Not shown in the image) is coupled to processor 1101, but this embodiment of the application does not limit this.

[0133] It should be noted that, Figure 8 The structure of the mapping relationship generation device 1100 shown does not constitute a limitation on the implementation of the mapping relationship generation device. The actual mapping relationship generation device may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0134] Embodiments of this application provide a mapping relationship generation apparatus, including: a processor and a memory for storing processor-executable instructions; wherein the processor is configured to implement the above method when executing the instructions.

[0135] An embodiment of this application provides a terminal device that can perform the above-described method.

[0136] Embodiments of this application provide a non-volatile computer-readable storage medium storing computer program instructions thereon, which, when executed by a processor, implement the above-described method.

[0137] Embodiments of this application provide a computer program product including computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code, wherein when the computer-readable code is run in a processor of an electronic device, the processor in the electronic device performs the above-described method.

[0138] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example—but not limited to—electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), electrically programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), compact disc read-only memory (CD-ROM), digital video disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination of the foregoing.

[0139] The computer-readable program instructions or code described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. 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 network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.

[0140] The computer program instructions used to perform the operations of this application may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more 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. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuits, such as programmable logic circuits, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), are personalized by utilizing state information from computer-readable program instructions. These electronic circuits can execute computer-readable program instructions to implement various aspects of this application.

[0141] Various aspects of this 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 this application. It should 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.

[0142] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a 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, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0143] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.

[0144] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved.

[0145] It should also be noted that each block in the block diagram and / or flowchart, as well as combinations of blocks in the block diagram and / or flowchart, can be implemented using hardware (such as circuits or ASICs (Application Specific Integrated Circuits)) that performs the corresponding function or action, or using a combination of hardware and software, such as firmware.

[0146] Although the invention has been described herein in conjunction with various embodiments, those skilled in the art will understand and implement other variations of the disclosed embodiments by reviewing the accompanying drawings, disclosure, and appended claims in carrying out the claimed invention. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.

[0147] The various embodiments of this application have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or improvement of the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.

Claims

1. A mapping relationship generation method, applied in the process of configuring communication management on an AUTOSAR adaptive platform, characterized in that, The method includes: Obtain information about one or more port prototypes on a software component used for communication, as well as the mapping relationship between processes and software components, wherein the mapping relationship between processes and software components is determined based on the mapping relationship between the software component and the executable program, and the mapping relationship between the executable program and the process; If the process has a mapping relationship with one or more port prototypes, display the information of one or more port prototypes corresponding to the process in the process information; In response to the operation of associating the information of a service instance with the information of a target port prototype displayed in the information of the process, configuring the mapping relationship information between the service instance and the target port prototype includes: in response to the operation of associating the information of a service instance with the information of a target port prototype displayed in the information of the process, obtaining the information of the target port prototype; and, based on the information of the target port prototype, assigning one or more of the following to the service instance: a corresponding target port prototype, a software component, an executable program, or a process.

2. The method according to claim 1, characterized in that, The communication relationship between the process and another process is displayed through the mapping relationship between the port prototype information displayed in the information of the process and the port prototype information displayed in the information of the other process.

3. The method according to claim 1 or 2, characterized in that, The method is used for a visual interface, which includes a graphical interface and a tabular interface.

4. The method according to claim 3, characterized in 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 includes connecting the information of the service instance with the information of the target port prototype displayed in the information of the process in the graphical interface.

5. The method according to claim 3 or 4, characterized in that, The operation of associating the information of the service instance with the information of the target port prototype displayed in the process information includes filling the information of the target port prototype into a table in the table interface that indicates the mapping relationship between the service instance and the target port prototype.

6. The method according to any one of claims 1-5, characterized in that, The method is used to configure communication services in the AUTOSAR adaptive platform of the automotive open system architecture.

7. A mapping relationship generation device, applied in the process of configuring communication management on an AUTOSAR adaptive platform, characterized in that, The device includes: The display module is used to acquire information about one or more port prototypes used for communication on a software component, as well as the mapping relationship between a process and the software component. The mapping relationship between the process and the software component is determined based on the mapping relationship between the software component and the executable program, and the mapping relationship between the executable program and the process. If a process has a mapping relationship with one or more port prototypes, the information of one or more port prototypes corresponding to the process is displayed in the process information. A configuration module is configured to, in response to an operation that associates the information of a service instance with the information of a target port prototype displayed in the information of the process, configure the mapping relationship information between the service instance and the target port prototype, including: in response to an operation that associates the information of a service instance with the information of a target port prototype displayed in the information of the process, obtaining the information of the target port prototype; and, based on the information of the target port prototype, allocating one or more of the following to the service instance: a corresponding target port prototype, a software component, an executable program, or a process.

8. A mapping relationship generation device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to implement the method of any one of claims 1-6 when executing the instructions.

9. A non-volatile computer-readable storage medium storing computer program instructions thereon, characterized in that, When the computer program instructions are executed by the processor, they implement the method described in any one of claims 1-6.

10. A computer program product comprising computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code, wherein when the computer-readable code is executed in an electronic device, a processor in the electronic device performs the method of any one of claims 1-6.

Citation Information

Patent Citations

  • Method and apparatus for setting up vehicle network based on autosar

    US20120166602A1

  • Method and device for automatic generation of setting code of autosar-based application software

    WO2021107179A1