Service synchronization method and device, computer equipment, storage medium and computer program product

By obtaining and configuring the service lists of the adaptive platform and the classic platform, extracting the elements required for synchronization and creating product lines, the problem of low synchronization efficiency of the AUTOSAR platform is solved, efficient and accurate data synchronization is achieved, and the safety of the automotive electronic system is ensured. sex and consistency.

CN118612236APending Publication Date: 2024-09-06CHINA FAW CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410533090.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-29
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The synchronization efficiency between the AUTOSAR adaptive platform and the classic platform is low, which may lead to unsafe behaviors in automotive electronic systems in scenarios such as autonomous driving. The existing manual configuration method is inefficient.

Method used

By obtaining the service list that the adaptive platform interacts with the classic platform, extract the elements required for data synchronization, create the same product line, and configure the product line to achieve data synchronization, avoid manual configuration, and improve synchronization efficiency and accuracy.

Benefits of technology

Ensure data consistency between the adaptive platform and the classic platform, improve the efficiency and accuracy of data synchronization, reduce manual configuration steps, and enhance system reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118612236A
    Figure CN118612236A
Patent Text Reader

Abstract

The invention relates to a service synchronization method and device, computer equipment, a storage medium and a computer program product. The method comprises the following steps: acquiring a service list of services related to interaction between a self-adaptive platform and a classic platform; based on the service list, extracting elements required by the adaptive platform and the classic platform for data synchronization; creating a first product line and a second product line based on the extracted elements, the first product line comprising a plurality of services of the adaptive platform, and the second product line comprising a plurality of services of the classic platform; the first product line and the second product line are configured to enable data synchronization between the adaptive platform and the classic platform. By adopting the method, data synchronization between the adaptive platform and the classical platform can be realized, and the synchronization process does not involve manual configuration, so that the efficiency and accuracy of data synchronization are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of automobile software development, and in particular to a service synchronization method, apparatus, computer equipment, storage medium and computer program product. Background Art

[0002] The automotive open system architecture (AUTOSAR) is an open and standardized software architecture developed for the automotive industry. AUTOSAR mainly includes two different types of platforms: the AUTOSAR classic platform (CP) and the AUTOSAR adaptive platform (AP). Among them, AUTOSAR CP is an embedded real-time electronic control unit (ECU) standard based on the open systems and the corresponding interfaces for automotive electronics (OSEK) standard. AUTOSAR AP can use two types of interfaces: services and application programming interfaces (API). The AUTOSAR AP consists of functional clusters distributed in the service layer and the AUTOSAR adaptive platform base (AUTOSAR AP base).

[0003] If the communication or data exchange between AUTOSAR AP and AUTOSAR CP is not synchronized, some functions that rely on this data may fail or behave abnormally. For example, in an autonomous driving system, if the processing of sensor data and the sending of control instructions are not synchronized, it may cause unsafe behavior of the vehicle. Therefore, it is common to manually configure the parameters between AUTOSAR AP and AUTOSAR CP to synchronize AUTOSAR AP and AUTOSAR CP.

[0004] However, with the advent of automotive intelligence and electrification, automotive electronic computing power is getting higher and higher, memory is getting larger and larger, and electronic and electrical structures are becoming more and more complex, resulting in a large scale of AUTOSAR configuration items. The method of manually configuring to synchronize AUTOSARAP and AUTOSAR CP has the problem of low configuration efficiency. Summary of the invention

[0005] Based on this, it is necessary to provide a service synchronization method, device, computer equipment, storage medium and computer program product that can improve the synchronization efficiency between the adaptive platform and the classic platform in response to the above technical problems.

[0006] In a first aspect, the present application provides a service synchronization method, the method comprising:

[0007] Get the service list of services involved in the interaction between the adaptive platform and the classic platform;

[0008] Based on the service list, extracting elements required for data synchronization between the adaptive platform and the classic platform;

[0009] Based on the extracted elements, create the same first product line and second product line, wherein the first product line includes multiple services of the adaptive platform, and the second product line includes multiple services of the classic platform;

[0010] The first product line and the second product line are configured to synchronize data between the adaptive platform and the classic platform.

[0011] In one embodiment, obtaining a list of services interacting between the adaptive platform and the classic platform includes:

[0012] Identifying a first service deployed on the adaptive platform and a second service deployed on the classic platform;

[0013] Determining, from the first service and the second service, a target service involved in the interaction between the adaptive platform and the classic platform;

[0014] A service list is generated based on the target service.

[0015] In one embodiment, extracting elements required for data synchronization between the adaptive platform and the classic platform based on the service list includes:

[0016] importing the service list into an automated development tool;

[0017] The elements required for data synchronization between the adaptive platform and the classic platform are generated through the automatic development tool based on the imported service list.

[0018] In one embodiment, configuring the first product line and the second product line to synchronize data between the adaptive platform and the classic platform includes:

[0019] configuring the first product line to obtain a first configuration file;

[0020] configuring the second product line to obtain a second configuration file;

[0021] The first configuration file and the second configuration file are compared, and the first product line and / or the second product line are adjusted according to the comparison result until the matching degree between the first configuration file and the second configuration file meets a preset matching degree, so as to synchronize the data between the adaptive platform and the classic platform.

[0022] In one embodiment, configuring the first product line to obtain a first configuration file includes:

[0023] Convert the data types of the elements corresponding to the first product line, and input the converted elements into the first engineering space;

[0024] The attributes of the element after the data type conversion are configured in the first engineering space, and a first configuration file is exported through the first engineering space.

[0025] In one embodiment, configuring the second product line to obtain a second configuration file includes:

[0026] Input the elements corresponding to the second product line into a second engineering space, configure the attributes of the elements corresponding to the second product line in the second engineering space, and export a second configuration file through the second engineering space.

[0027] In a second aspect, the present application also provides a service synchronization device. The device includes:

[0028] The service acquisition module is used to obtain the service list of services involved in the interaction between the adaptive platform and the classic platform;

[0029] An element extraction module, used for extracting elements required for data synchronization between the adaptive platform and the classic platform based on the service list;

[0030] A product line creation module, configured to create a first product line and a second product line based on the extracted elements, wherein the first product line includes a plurality of services of the adaptive platform, and the second product line includes a plurality of services of the classic platform;

[0031] A synchronization module is used to configure the first product line and the second product line to synchronize data between the adaptive platform and the classic platform.

[0032] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the above service synchronization method are implemented.

[0033] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the steps of the above service synchronization method when executed by a processor.

[0034] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the above service synchronization method are implemented.

[0035] The above-mentioned service synchronization method, device, computer equipment, storage medium and computer program product obtain a service list of services involved in the interaction between the adaptive platform and the classic platform. Based on the service list, the services that need to be synchronized can be identified, and the elements required for data synchronization between the adaptive platform and the classic platform can be extracted. Through the elements, it can be determined which data needs to be synchronized from one platform to another, as well as the frequency, timing, specific rules and strategies of synchronization, that is, the elements contain the key elements for realizing data synchronization between the adaptive platform and the classic platform. Further, based on the extracted synchronization elements, two identical first product lines and second product lines are created. Since the creation of the product lines is based on the same elements, which are the key elements required for data synchronization, the efficiency of data synchronization can be ensured. At the same time, by creating two identical product lines, the data between the adaptive platform and the classic platform can be ensured to be consistent. Regardless of which platform the data is synchronized from to another platform, the accuracy and integrity of the data can be ensured. Furthermore, the first product line and the second product line are configured to realize data synchronization between the adaptive platform and the classic platform. The above configuration process does not involve manual configuration, thereby improving the efficiency and accuracy of data synchronization. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 An application environment diagram of a service synchronization method in an embodiment;

[0037] Figure 2 A schematic diagram of a service synchronization method in one embodiment;

[0038] Figure 3 is a structural block diagram of a service synchronization device in one embodiment;

[0039] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0041] With the continuous development of automobile electrification and intelligent networking, it is necessary to develop an architecture SOA (Service-Oriented Architecture) that is not signal-oriented but service-oriented. It can reduce the coupling between modules and systems, and use clearly defined interfaces for interaction between software modules and modular components. This can effectively reduce the dependency between modules, extend the module life cycle, increase the interaction between modules, enhance the software expansion capability, reduce enterprise software development and integration investment, and provide a new automotive electronic and electrical architecture design route.

[0042] The development of SOA is inseparable from the use of the AUTOSAR platform. The AUTOSAR (Automotive Open System Architecture) platform is used for the development of automotive electronic control systems. AUTOSAR is an open and standardized software architecture developed for the automotive industry. AUTOSAR mainly includes two different types of platforms: the AUTOSAR classic platform (CP) and the AUTOSAR adaptive platform (AP).

[0043] Among them, AUTOSAR CP is an embedded real-time electronic control unit (ECU) standard based on the open systems and the corresponding interfaces for automotive electronics (OSEK) standard. The architecture of the AUTOSAR CP includes an application layer running on a microcontroller, a runtime environment (RTE) layer, and a BSW layer. Among them, the application layer is basically independent of the hardware, and the software components of the application layer communicate with each other through the RTE layer, and the software components also need to access the BSW through the RTE.

[0044] AUTOSAR AP can use two types of interfaces: services and application programming interface (API). The AUTOSAR AP consists of functional clusters distributed in the service layer and the AUTOSAR adaptive platform base (AUTOSAR AP base).

[0045] If the communication or data exchange between AUTOSAR AP and AUTOSAR CP is not synchronized, some functions that rely on this data may fail or behave abnormally. For example, in an autonomous driving system, if the processing of sensor data and the sending of control instructions are not synchronized, it may cause unsafe behavior of the vehicle. Therefore, it is common to manually configure the parameters between AUTOSAR AP and AUTOSAR CP to synchronize AUTOSAR AP and AUTOSAR CP.

[0046] However, with the advent of automotive intelligence and electrification, automotive electronic computing power is getting higher and higher, memory is getting larger and larger, and electronic and electrical structures are becoming more and more complex, resulting in a large scale of AUTOSAR configuration items. The method of manually configuring to synchronize AUTOSARAP and AUTOSAR CP has the problem of low configuration efficiency.

[0047] The service synchronization method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the vehicle controller 102 includes the Automotive Open System Architecture (AUTOSAR), wherein AUTOSAR mainly includes two different types of platforms: an adaptive platform 104 and a classic platform 106. The vehicle controller 102 obtains a service list of services involved in the interaction between the adaptive platform 104 and the classic platform 106; based on the service list, the vehicle controller 102 extracts the elements required for data synchronization between the adaptive platform 104 and the classic platform 106; based on the extracted elements, the vehicle controller 102 creates a first product line and a second product line, the first product line includes multiple services of the adaptive platform 104, and the second product line includes multiple services of the classic platform 106; the vehicle controller 102 configures the first product line and the second product line to synchronize data between the adaptive platform 104 and the classic platform 106.

[0048] In one embodiment, Figure 2 As shown, a service synchronization method is provided, which is applied to Figure 1 The vehicle controller in the example is used to illustrate, including the following steps:

[0049] Step 202: Obtain a service list of services involved in the interaction between the adaptive platform and the classic platform.

[0050] The services involved in the interaction between the adaptive platform (AP) and the classic platform (CP) refer to the communication and coordination functions they provide between the automotive network and software components. These services ensure the seamless interaction of different components and network layers, thereby supporting the overall functionality of the automotive electronic system.

[0051] The service list refers to multiple services involved in the interaction between the adaptive platform and the classic platform. For example, the service list includes detailed information such as the service name, function, and interface.

[0052] In some embodiments, the services involved in the interaction between the adaptive platform and the classic platform include but are not limited to:

[0053] (1) Communication Services. For example, BSD (Broadcast Stream Driver): supports data broadcasting in the vehicle network. MTD (Message Timing Distribution): provides message timing distribution services to ensure that messages are sent at the scheduled time. PDU (Protocol Data Unit): manages data conversion between different network protocols. RPC (Remote Procedure Call): supports remote procedure calls between different software components.

[0054] (2) Middleware Services. For example, the ECU (Electronic Control Unit) abstraction layer: provides abstraction of the underlying ECU hardware, making software development more independent of hardware. Data services: provide access to and management of vehicle data, such as vehicle status, sensor data, etc.

[0055] (3) Basic Services. For example, time management: provides time synchronization and timestamp services. Memory management: manages the memory allocation and release of software components. Object memory management: is specifically used to manage object memory in real-time operating systems.

[0056] (4) Security Services. For example, encryption: providing data encryption and decryption services to ensure the security of communications. Authentication: implementing identity verification of the communicating parties.

[0057] (5) Configuration and Management Services. For example, component management: managing the configuration and lifecycle of AUTOSAR components. Network management: managing the configuration and topology of the vehicle network.

[0058] Specifically, the vehicle controller determines the interaction requirements between the adaptive platform and the classic platform, and lists all the services involved according to the requirements, including the service name, function, interface, etc. The vehicle controller summarizes the listed services to obtain a service list.

[0059] Step 204: extracting elements required for data synchronization between the adaptive platform and the classic platform based on the service list.

[0060] Among them, the service in the embodiment of the present application is a set of functional interfaces provided in the AUTOSAR platform, which provides interfaces for performing specific tasks, such as communication, data management, configuration, etc., and can be called by other components or services.

[0061] Elements refer to specific data structures or parameters defined in services, which are used for data transmission and synchronization. Generally, elements refer to specific information items involved in the data synchronization process, such as data tables, fields, data formats, synchronization logic, etc. Elements can be used to determine which data needs to be synchronized from one platform to another, as well as the frequency, timing, and specific rule strategies (including data format, transmission method, verification rules, etc.) of synchronization. For example, the services of the adaptive platform (AP) are deployed on the TDA4 chip in the high-performance automated driving assistance system (High-Performance Advanced Driver Assistance System, referred to as HAD), and the services of the classic platform (CP) are deployed in the floating-point processor TC397. The service list is used to interactively design the services deployed in HAD TDA4 and the services in TC397 to realize service modeling for interaction between AP and CP. For example, through the automated AP CP synchronous interaction modeling technology, the service is sent by CP in TC397, and the AP side reception needs to be realized in TDA4.

[0062] It should be noted that services provide functions by defining elements. Elements are part of the service interface. Services implement specific functions by operating these elements. Generally, services use multiple elements to transmit data or perform operations, and elements are the basis for service operations.

[0063] Specifically, the vehicle controller analyzes each service in the service list and identifies which services need data synchronization. For each service that needs synchronization, the vehicle controller determines the specific requirements for data synchronization, such as data source, data target, data conversion rules, etc. The vehicle controller extracts elements related to data synchronization in the service list, such as parameters, table structure, fields, and other information.

[0064] Step 206: Create the same first product line and second product line based on the extracted elements, the first product line is applied to the adaptive platform, and the second product line is applied to the classic platform.

[0065] Among them, the first product line and the second product line refer to the two data synchronization channels established between the adaptive platform and the classic platform, which are responsible for synchronizing data from the source platform to the target platform.

[0066] It should be noted that the first product line and the second product line are both generated based on the same elements. Therefore, the first product line and the second product line have the same data processing and synchronization capabilities, but the first product line is used for AP modeling and the second product line is used for CP modeling.

[0067] Specifically, the vehicle controller determines the requirements and goals of the first product line and the second product line based on the extracted data synchronization elements. Based on the demand analysis, the vehicle controller begins to design and build the overall architecture of the first product line and the second product line, and effectively integrates the extracted elements into the first product line and the second product line, and ensures that the first product line and the second product line have the functions required for data synchronization.

[0068] In some embodiments, the vehicle controller may also create two identical first product lines and second product lines through an automatic development tool (such as PREEVISION). Specifically, the extracted elements are imported into the automatic development tool, and the automatic development tool builds the overall framework of the first product line and the second product line according to the modeling requirements of the AP and the CP, and associates the extracted elements with the first product line and the second product line respectively, to obtain two identical product lines.

[0069] Step 208: configure the first product line and the second product line to synchronize data between the adaptive platform and the classic platform.

[0070] Configuration refers to various settings for the first product line and the second product line of data synchronization, such as synchronization frequency, data conversion rules, error handling mechanism, etc. The purpose of configuration is to enable the adaptive platform and the classic platform to exchange data effectively. The configuration process may involve operations such as interface docking and data format conversion.

[0071] Specifically, the vehicle controller configures the first product line and the second product line in detail according to the service list and data synchronization elements. The vehicle controller sets appropriate synchronization strategies, including real-time synchronization or batch synchronization, and data conflict resolution strategies. The vehicle controller deploys and applies the configurations of the corresponding product lines on the adaptive platform and the classic platform, respectively, to ensure that the adaptive platform and the classic platform can work correctly and maintain synchronization.

[0072] In the above service synchronization method, a service list of services involved in the interaction between the adaptive platform and the classic platform is obtained. Based on the service list, the services that need to be synchronized can be identified, and the elements required for data synchronization between the adaptive platform and the classic platform can be extracted. Through the elements, it can be determined which data needs to be synchronized from one platform to another, as well as the frequency, timing, specific rules and strategies of synchronization, that is, the elements contain the key elements for realizing data synchronization between the adaptive platform and the classic platform. Further, based on the extracted synchronization elements, two identical first product lines and second product lines are created. Since the creation of the product lines is based on the same elements, which are the key elements required for data synchronization, the efficiency of data synchronization can be ensured. At the same time, by creating two identical product lines, the data between the adaptive platform and the classic platform can be ensured to be consistent. Regardless of which platform the data is synchronized from to another platform, the accuracy and integrity of the data can be ensured. Furthermore, the first product line and the second product line are configured to realize data synchronization between the adaptive platform and the classic platform. The above configuration process does not involve manual configuration, thereby improving the efficiency and accuracy of data synchronization.

[0073] In one embodiment, a service list interacting between the adaptive platform and the classic platform is obtained, including:

[0074] Identify a first service deployed on the adaptive platform and a second service deployed on the classic platform; determine a target service involved in the interaction between the adaptive platform and the classic platform from the first service and the second service; and generate a service list based on the target service.

[0075] The process of identifying the first service and the second service may be achieved through monitoring, log analysis, user feedback or manual inspection.

[0076] The target service refers to analyzing the interaction request between the first service and the second service to find out the target service for their mutual communication.

[0077] Specifically, the vehicle controller identifies the first service deployed on the adaptive platform and the second service deployed on the classic platform through monitoring, log analysis, user feedback or manual inspection; the vehicle controller captures and analyzes the interface call requests of the first service and the second service to find out the communication relationship between them; according to the interaction request, a service dependency graph is constructed to show the call relationship between the services; through the service dependency graph, the target service involved in the interaction between the first service and the second service is determined. The vehicle controller collects relevant information of the target service, such as name, address, interface, etc. The vehicle controller creates a service list based on the collected service information.

[0078] In this embodiment, by identifying and determining the target service and generating a service list, the services on the adaptive platform and the classic platform can be managed more systematically and orderly, which helps to avoid confusion and omission of services and improve the efficiency and accuracy of service management.

[0079] In one embodiment, based on the service list, elements required for data synchronization between the adaptive platform and the classic platform are extracted, including:

[0080] Import the service list into the automatic development tool; through the automatic development tool, based on the imported service list, generate the elements required for data synchronization between the adaptive platform and the classic platform.

[0081] Among them, the automatic development tool is an automated software tool that is used to automatically generate corresponding codes, configurations or other development products based on input specifications or requirements. For example, the automatic development tool can be the PREEVISION model, which is a new model-based electronic / electric architecture (EEA) development tool.

[0082] Specifically, the vehicle controller imports the service list into the automatic development tool, and the automatic development tool analyzes the properties, interfaces and communication requirements of each service according to the imported service list. Based on the analysis results of the service list, the automatic development tool generates the elements required for data synchronization.

[0083] In this embodiment, the automatic development tool can ensure the consistency of the generated data synchronization elements, thereby ensuring the accuracy and reliability of data synchronization between different platforms.

[0084] In one embodiment, configuring the first product line and the second product line to synchronize data between the adaptive platform and the classic platform includes:

[0085] The first product line is configured to obtain a first configuration file; the second product line is configured to obtain a second configuration file; the first configuration file is compared with the second configuration file, and the first product line and / or the second product line is adjusted according to the comparison result until the matching degree between the first configuration file and the second configuration file meets the preset matching degree, so as to synchronize the data between the adaptive platform and the classic platform.

[0086] The configuration file refers to a file that records the configuration information of the product line, which usually contains configuration parameters, setting values, etc. The configuration process can be executed in an automatic development tool. The file format of the configuration file can be an Arxml format file. Arxml (or ARXML) is a file format used to describe the architecture of automotive electronic systems and is commonly used in the automotive industry. It is used to describe the components in the system, the relationships between them, and configuration parameters, etc.

[0087] Match refers to a measure of how similar or consistent two profiles are.

[0088] Specifically, the automatic development tool clarifies the target functions, performance requirements, etc. of the first product line and the second product line, and provides guidance for configuration. The automatic development tool selects the parameters and settings that need to be configured according to the requirements. The automatic development tool makes specific adjustments and settings based on the selected parameters and settings. The automatic development tool records the results of the adjustments and settings into a file to form a first configuration file and a second configuration file. The automatic development tool parses the first configuration file and the second configuration file respectively, extracts the configuration parameters and setting values ​​therein, compares the two parsed configuration data, finds out the differences, similarities and potential conflicts therein, and generates a comparison report or result set based on the comparative analysis, recording the similarities and differences between the two configuration files in detail. The automatic development tool adjusts the relevant parameters and settings of the first or second product line based on the differences and conflicts in the comparison results, and repeats the configuration and comparison process until the matching degree of the two configuration files reaches the preset standard.

[0089] In this embodiment, by using a unified configuration file, the configurations of multiple product lines can be uniformly managed, thus avoiding configuration confusion and conflicts; by comparing two configuration files and adjusting them, the configuration consistency between product lines can be ensured, thus avoiding problems caused by inconsistent configurations.

[0090] In one embodiment, configuring a first product line to obtain a first configuration file includes:

[0091] The data types of elements corresponding to the first product line are converted, and the elements after the data type conversion are input into the first engineering space; the properties of the elements after the data type conversion are configured in the first engineering space, and the first configuration file is exported through the first engineering space.

[0092] Data type conversion refers to the process of converting data from one data type to another, such as converting a string to an integer or converting the date format from YYYY-MM-DD to DD / MM / YYYY. Since the first product line is applied to AP modeling and the data in the first product line comes from different sensors and modules, a unified data type conversion is required to ensure the accuracy and consistency of the data. The second product line is applied to CP modeling, and the data in the second product line may have been preprocessed and converted, so there is no need for additional data type conversion in the second product line.

[0093] The first engineering space refers to the workspace in the automated development tool used to develop and configure a specific product line.

[0094] Attributes refer to the characteristics or parameters of an object and are used to describe the characteristics or behaviors of the object.

[0095] Specifically, the automatic development tool identifies which elements need to be converted to data types, and selects an appropriate data type conversion method based on the target data type and the original data type. For example, use the int() function in Python to convert a string to an integer. The automatic development tool uses the selected conversion method to convert the element from the original data type to the target data type. The automatic development tool starts or opens an engineering space or development environment related to the first product line. The automatic development tool imports the elements that have undergone data type conversion into the first engineering space, and the automatic development tool determines which attributes need to be configured or adjusted to meet the needs of the first product line, which may include setting values, parameter ranges, default values, etc. The automatic development tool assigns appropriate values ​​or settings to each attribute. These values ​​should be based on the target application, business rules, or other relevant requirements. The automatic development tool selects appropriate export options, such as export format, file name, and path, and uses the export function of the first engineering space to export the configured elements and their attributes as one or more first configuration files.

[0096] In this embodiment, the required code and configuration can be quickly generated through automatic development tools and configuration files, reducing the time for manual writing and debugging and improving development efficiency; by using a unified configuration file, the configurations of multiple product lines can be uniformly managed, avoiding configuration confusion and conflicts.

[0097] In one embodiment, configuring the second product line to obtain a second configuration file includes:

[0098] The elements corresponding to the second product line are input into the second engineering space, and the attributes of the elements corresponding to the second product line are configured in the second engineering space, and the second configuration file is exported through the second engineering space.

[0099] The second engineering space refers to a workspace in the automatic development tool used to develop and configure a specific product line. The first engineering space and the second engineering space belong to different workspaces.

[0100] Attributes refer to the characteristics or parameters of an object and are used to describe the characteristics or behaviors of the object.

[0101] Specifically, the automatic development tool starts or opens an engineering space or development environment associated with the second product line. The automatic development tool imports the elements of the second product line into the second engineering space, and the automatic development tool determines which attributes need to be configured or adjusted to meet the needs of the second product line, which may include setting values, parameter ranges, default values, etc. The automatic development tool assigns appropriate values ​​or settings to each attribute. These values ​​should be based on the target application, business rules, or other relevant requirements. The automatic development tool selects appropriate export options, such as export format, file name, and path, and uses the export function of the second engineering space to export the configured elements and their attributes as one or more second configuration files.

[0102] In this embodiment, the required code and configuration can be quickly generated through automatic development tools and configuration files, reducing the time for manual writing and debugging and improving development efficiency; by using a unified configuration file, the configurations of multiple product lines can be uniformly managed, avoiding configuration confusion and conflicts.

[0103] In a detailed embodiment, a service synchronization method includes the following steps:

[0104] 1. Identify a first service deployed on the adaptive platform and a second service deployed on the classic platform;

[0105] 2. Determine, from the first service and the second service, a target service involved in the interaction between the adaptive platform and the classic platform;

[0106] 3. Generate a service list based on the target service.

[0107] 4. Import the service list into the automatic development tool;

[0108] 5. Through automatic development tools, based on the imported service list, generate the elements required for data synchronization between the adaptive platform and the classic platform.

[0109] 6. Based on the extracted elements, create the same first product line and second product line, where the first product line includes multiple services of the adaptive platform and the second product line includes multiple services of the classic platform;

[0110] 7. Convert the data types of the elements corresponding to the first product line, and input the converted elements into the first engineering space;

[0111] 8. Configure the attributes of the element after the data type conversion in the first project space, and export the first configuration file through the first project space.

[0112] 9. Input the elements corresponding to the second product line into the second engineering space, configure the attributes of the elements corresponding to the second product line in the second engineering space, and export the second configuration file through the second engineering space.

[0113] 10. Compare the first configuration file with the second configuration file, and adjust the first product line and / or the second product line according to the comparison result until the matching degree between the first configuration file and the second configuration file meets the preset matching degree, so as to synchronize the data between the adaptive platform and the classic platform.

[0114] In this embodiment, a service list of services involved in the interaction between the adaptive platform and the classic platform is obtained. Based on the service list, the services that need to be synchronized can be identified, and the elements required for data synchronization between the adaptive platform and the classic platform can be extracted. Through the elements, it can be determined which data needs to be synchronized from one platform to another, as well as the frequency, timing, specific rules and strategies of synchronization, that is, the elements contain the key elements for realizing data synchronization between the adaptive platform and the classic platform. Further, based on the extracted synchronization elements, two identical first product lines and second product lines are created. Since the creation of the product lines is based on the same elements, which are the key elements required for data synchronization, the efficiency of data synchronization can be ensured. At the same time, by creating two identical product lines, the data between the adaptive platform and the classic platform can be ensured to be consistent. Regardless of which platform the data is synchronized from to another platform, the accuracy and integrity of the data can be ensured. Furthermore, the first product line and the second product line are configured to realize data synchronization between the adaptive platform and the classic platform, thereby improving the efficiency and accuracy of data synchronization.

[0115] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0116] Based on the same inventive concept, the embodiment of the present application also provides a service synchronization device for implementing the service synchronization method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more service synchronization device embodiments provided below can refer to the limitations on the service synchronization method above, and will not be repeated here.

[0117] In one embodiment, Figure 3 As shown, a service synchronization device is provided, comprising:

[0118] A service acquisition module 301 is used to acquire a service list of services involved in the interaction between the adaptive platform and the classic platform;

[0119] An element extraction module 302 is used to extract elements required for data synchronization between the adaptive platform and the classic platform based on the service list;

[0120] A product line creation module 303, for creating a first product line and a second product line that are identical based on the extracted elements, wherein the first product line includes multiple services of the adaptive platform, and the second product line includes multiple services of the classic platform;

[0121] The synchronization module 304 is used to configure the first product line and the second product line to synchronize data between the adaptive platform and the classic platform.

[0122] In one of the embodiments, the service acquisition module 301 is also used to identify a first service deployed on the adaptive platform and a second service deployed on the classic platform; determine a target service involved in the interaction between the adaptive platform and the classic platform from the first service and the second service; and generate a service list based on the target service.

[0123] In one of the embodiments, the element extraction module 302 is further used to import the service list into the automatic development tool; through the automatic development tool, based on the imported service list, the elements required for data synchronization between the adaptive platform and the classic platform are generated.

[0124] In one embodiment, the synchronization module 304 is further used to configure the first product line to obtain a first configuration file; configure the second product line to obtain a second configuration file; compare the first configuration file with the second configuration file, and adjust the first product line and / or the second product line according to the comparison result until the matching degree between the first configuration file and the second configuration file meets the preset matching degree, so as to synchronize the data between the adaptive platform and the classic platform.

[0125] In one of the embodiments, the synchronization module 304 is also used to convert the data types of the elements corresponding to the first product line, and input the elements after the data type conversion into the first engineering space; configure the properties of the elements after the data type conversion in the first engineering space, and export the first configuration file through the first engineering space.

[0126] In one embodiment, the synchronization module 304 is further used to input the elements corresponding to the second product line into the second engineering space, configure the properties of the elements corresponding to the second product line in the second engineering space, and export the second configuration file through the second engineering space.

[0127] Each module in the above service synchronization device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0128] In one embodiment, a computer device is provided. The computer device may be a vehicle controller, and its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a service synchronization method is implemented. The display unit of the computer device is used to form a visually visible image, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.

[0129] Those skilled in the art will understand that Figure 4The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0130] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0131] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0132] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0133] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0134] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0135] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0136] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A service synchronization method, characterized in that: The method comprises: Get the service list of services involved in the interaction between the adaptive platform and the classic platform; Based on the service list, extracting elements required for data synchronization between the adaptive platform and the classic platform; Based on the extracted elements, create the same first product line and second product line, wherein the first product line includes multiple services of the adaptive platform, and the second product line includes multiple services of the classic platform; The first product line and the second product line are configured to synchronize data between the adaptive platform and the classic platform.

2. The method according to claim 1, characterized in that The method of obtaining a list of services interacting between the adaptive platform and the classic platform includes: Identifying a first service deployed on the adaptive platform and a second service deployed on the classic platform; Determining, from the first service and the second service, a target service involved in the interaction between the adaptive platform and the classic platform; A service list is generated based on the target service.

3. The method according to claim 1, characterized in that The extracting elements required for data synchronization between the adaptive platform and the classic platform based on the service list includes: importing the service list into an automated development tool; The elements required for data synchronization between the adaptive platform and the classic platform are generated through the automatic development tool based on the imported service list.

4. The method according to claim 1, characterized in that: The configuring the first product line and the second product line so as to synchronize data between the adaptive platform and the classic platform includes: configuring the first product line to obtain a first configuration file; configuring the second product line to obtain a second configuration file; The first configuration file and the second configuration file are compared, and the first product line and / or the second product line are adjusted according to the comparison result until the matching degree between the first configuration file and the second configuration file meets a preset matching degree, so as to synchronize the data between the adaptive platform and the classic platform.

5. The method according to claim 4, characterized in that The configuring the first product line to obtain a first configuration file includes: Convert the data types of the elements corresponding to the first product line, and input the converted elements into the first engineering space; The attributes of the element after the data type conversion are configured in the first engineering space, and a first configuration file is exported through the first engineering space.

6. The method according to claim 4, characterized in that The configuring the second product line to obtain a second configuration file includes: Input the elements corresponding to the second product line into a second engineering space, configure the attributes of the elements corresponding to the second product line in the second engineering space, and export a second configuration file through the second engineering space.

7. A service synchronization device, characterized in that: The device comprises: The service acquisition module is used to obtain the service list of services involved in the interaction between the adaptive platform and the classic platform; An element extraction module, used for extracting elements required for data synchronization between the adaptive platform and the classic platform based on the service list; A product line creation module, configured to create a first product line and a second product line based on the extracted elements, wherein the first product line includes a plurality of services of the adaptive platform, and the second product line includes a plurality of services of the classic platform; A synchronization module is used to configure the first product line and the second product line to synchronize data between the adaptive platform and the classic platform.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

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

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Cited By

  • Log management system based on adaptive AUTOSAR and vehicle

    CN120910010A

  • An Adaptive AUTOSAR-Based Log Management System and Vehicle

    CN120910010B