[go: up one dir, main page]

CN119496815B - Method and apparatus for dynamically loading service channels and instances based on the AutosAP platform - Google Patents

Method and apparatus for dynamically loading service channels and instances based on the AutosAP platform

Info

Publication number
CN119496815B
CN119496815B CN202411470125.0A CN202411470125A CN119496815B CN 119496815 B CN119496815 B CN 119496815B CN 202411470125 A CN202411470125 A CN 202411470125A CN 119496815 B CN119496815 B CN 119496815B
Authority
CN
China
Prior art keywords
service
accessed
shared memory
file
configuration file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202411470125.0A
Other languages
Chinese (zh)
Other versions
CN119496815A (en
Inventor
梁伟
龙政方
周雄
陈镖
王世通
赵福炜
边策
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Selis Phoenix Intelligent Innovation Technology Co ltd
Original Assignee
Chongqing Selis Phoenix Intelligent Innovation Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Selis Phoenix Intelligent Innovation Technology Co ltd filed Critical Chongqing Selis Phoenix Intelligent Innovation Technology Co ltd
Priority to CN202411470125.0A priority Critical patent/CN119496815B/en
Publication of CN119496815A publication Critical patent/CN119496815A/en
Application granted granted Critical
Publication of CN119496815B publication Critical patent/CN119496815B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请涉及一种基于AutosraAP平台动态加载服务的通道和实例的方法和装置,其特征在于,所述方法包括:通过文件加载程序将待访问服务的配置文件加载到共享内存的内存库中,其中,所述待访问服务存在于AutosraAP平台中,所述配置文件包括所述待访问服务的通信通道和服务实例;在检测到自适应应用需要创建服务或发现服务时,从所述内存库中读取所述配置文件,其中,所述自适应应用是能够根据用户需求和环境动态调整功能和性能的应用程序;将所述配置文件传递给所述自适应应用,以使所述自适应应用采用所述配置文件创建服务或发现服务。本申请简化项目发布部署流程。

This application relates to a method and apparatus for dynamically loading service channels and instances based on the AutosraAP platform. The method includes: loading a configuration file of a service to be accessed into a shared memory library using a file loader, wherein the service to be accessed exists in the AutosraAP platform, and the configuration file includes the communication channel and service instance of the service to be accessed; reading the configuration file from the memory library when an adaptive application is detected to need to create or discover a service, wherein the adaptive application is an application capable of dynamically adjusting its functions and performance according to user needs and the environment; and passing the configuration file to the adaptive application so that the adaptive application can use the configuration file to create or discover a service. This application simplifies the project deployment process.

Description

Method and device for dynamically loading channels and instances of services based on AutosarAP platform
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for dynamically loading channels and instances of services based on AutosarAP platforms.
Background
With the continuous development of automobile intellectualization and functional diversification, information interaction between ECUs (Electronic Control Unit, electronic control units) and between applications is increasingly frequent, and especially after advanced application scenes such as automatic driving and the like are added, the dynamic interaction of a large amount of data causes communication pressure to shake and increase. AutoSar AP (Automotive Profile) employs a service oriented architecture (SOA, service Oriented Architecture) designed specifically for high performance computing and communications to meet the communications requirements of modern automotive smart ECU.
When integrating someip, dds, ipc and other communication protocols, the AP software developer adopts a unified interface to realize service provision and service consumption of the SOA so as to achieve different channel protocols of the butt-joint bottom layer. Wherein the service consumer discovers the service using method FIND SERVICE and the service provider creates the service using method CREATE SERVICE, both interfaces retain the same communication protocol and service instance (endpoint contains ip and port information). In the actual process of developing the adaptive application (Apache APISIX, adaptive application), each service of the platform must specify channels and instances within the code when creating the service and discovering the service, which are hard coded into the adaptive application. If the service is migrated to other channel protocols, the adaptive application program code must be modified to be recompiled and then burned to the board to run, so that the flow of project release and deployment can be increased.
Disclosure of Invention
The application provides a method and a device for dynamically loading channels and instances of services based on AutosarAP platforms, which are used for solving the problem of complex project release and deployment processes.
In a first aspect, the application provides a method for dynamically loading channels and instances of services based on AutosarAP platforms, which comprises the steps of loading configuration files of services to be accessed into a memory bank of a shared memory through a file loading program, wherein the services to be accessed exist in the AutosarAP platforms, the configuration files comprise communication channels and service instances of the services to be accessed, reading the configuration files from the memory bank when an adaptive application is detected to need to create services or discover services, wherein the adaptive application is an application program capable of dynamically adjusting functions and performances according to user requirements and environments, and transmitting the configuration files to the adaptive application so that the adaptive application can use the configuration files to create the services or discover the services.
Optionally, loading the configuration files of the service to be accessed into the memory bank of the shared memory through the file loading program comprises the steps of respectively distributing a shared memory segment for the configuration files of each service to be accessed in the memory bank, wherein the configuration files of different services to be accessed are different, loading the configuration files of each service to be accessed into the corresponding shared memory segment through the file loading program, and reading the configuration files from the memory bank comprises the steps of determining a target shared memory segment corresponding to a target access service and reading the target configuration files of the target access service from the target shared memory segment.
Optionally, loading the configuration files of the service to be accessed into a memory bank of the shared memory through a file loading program comprises the steps of distributing the same shared memory section for the configuration files of a plurality of services to be accessed in the memory bank, wherein the configuration files of different services to be accessed are different, loading the configuration files of the plurality of services to be accessed into the same shared memory section through the file loading program, and reading the configuration files from the memory bank comprises the steps of reading the configuration files of all the services to be accessed from the shared memory section, and searching the target configuration files of the target access service in a traversal data mode through the adaptive application.
Optionally, allocating the same shared memory segment for the configuration files of the plurality of services to be accessed in the repository comprises reading the configuration files of the plurality of services to be accessed from a set position through the file loader and converting the configuration files into a set file format, creating a topic message through Publisher constructors, calling a set function and allocating the same shared memory segment for the configuration files in the repository based on the topic message.
Optionally, loading the configuration files of the plurality of services to be accessed into the same shared memory segment through the file loading program includes calling Publisher a method to transfer the configuration files of the configuration file format, converting the configuration files from the configuration file format to a data structure suitable for storing in the repository, and calling a writing method to write the configuration files of the converted format into the shared memory segment.
Optionally, reading configuration files of all services to be accessed from the shared memory segment, searching the target configuration files of the target access service by the adaptive application in a traversing data mode, wherein the method comprises the steps of obtaining a topic parameter and a callback function which are transmitted by the adaptive application, wherein the topic parameter is used for determining an address of the shared memory segment subscribed by the topic, the callback function is used for obtaining the configuration files in the shared memory segment, returning the address of the shared memory segment to the adaptive application according to the topic parameter, obtaining the configuration files of all services to be accessed from the address of the shared memory segment, calling the callback function, transmitting the configuration files to the adaptive application, traversing the configuration files of all services to be accessed by the adaptive application, and searching the configuration files of the target access service.
Optionally, returning the address of the shared memory segment to the adaptive application according to the topic parameter includes determining a memory segment address to be searched according to the topic parameter, determining whether the memory segment address exists in the memory bank, and returning the memory segment address to the adaptive application if the memory segment address exists.
The application provides a device for dynamically loading channels and instances of services based on a AutosarAP platform, which comprises a loading module and a transmitting module, wherein the loading module is used for loading configuration files of services to be accessed into a memory bank of a shared memory through a file loading program, the services to be accessed exist in the AutosarAP platform, the configuration files comprise communication channels and service instances of the services to be accessed, the reading module is used for reading the configuration files from the memory bank when the self-adaptive application needs to create services or discover services, the self-adaptive application is an application program capable of dynamically adjusting functions and performances according to user requirements and environments, and the transmitting module is used for transmitting the configuration files to the self-adaptive application so that the self-adaptive application can use the configuration files to create the services or discover the services.
In a third aspect, the application provides an electronic device comprising at least one communication interface, at least one bus coupled to the at least one communication interface, at least one processor coupled to the at least one bus, and at least one memory coupled to the at least one bus.
In a fourth aspect, the present application also provides a computer storage medium storing computer executable instructions for performing the method of the present application for dynamically loading channels and instances of a service based on the AutosarAP platform.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the advantages that the communication channel and the service instance of the service to be accessed are loaded into the memory bank of the shared memory through the file loading program, so that the communication channel and the service instance can be directly read from the memory bank when the self-adaptive application needs to create the service or discover the service, even if the communication channel and the service instance are changed, the configuration file is only required to be replaced, the communication channel and the service instance in the memory bank can be kept in the latest state, the code of the self-adaptive application does not need to be compiled again, the process of issuing and deploying the project is reduced, and the process of issuing and deploying the project is simplified.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which the figures of the drawings are not to be taken in a limiting sense, unless otherwise indicated.
FIG. 1 is a flowchart of a method for dynamically loading channels and instances of services based on AutosarAP platforms according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a system architecture of a channel and an instance of a dynamic loading service based on AutosarAP platforms according to an embodiment of the present application;
Fig. 3 is a signaling diagram of implementing access to a shared memory segment based on topic according to an embodiment of the present application;
fig. 4 is a signaling diagram of subscribing shared memory data by an adaptive application according to an embodiment of the present application;
FIG. 5 is a schematic flow chart of service creation according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a service registration and discovery process according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a device structure of a channel and an instance of a dynamic loading service based on AutosarAP platforms according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The following disclosure provides many different embodiments, or examples, for implementing different structures of the invention. In order to simplify the present disclosure, components and arrangements of specific examples are described below. They are, of course, merely examples and are not intended to limit the invention. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed.
The application provides a method for dynamically loading channels and instances of a service based on AutosarAP platform, which can be applied to an electronic control unit and is used for shortening the time for issuing items, as shown in figure 1, and comprises the following contents.
Step 101, loading a configuration file of a service to be accessed into a memory bank of a shared memory through a file loading program, wherein the service to be accessed exists in a AutosarAP platform, and the configuration file comprises a communication channel and a service instance of the service to be accessed;
102, reading a configuration file from a memory library when detecting that an adaptive application needs to create a service or discover the service, wherein the adaptive application is an application program capable of dynamically adjusting functions and performances according to user requirements and environments;
and step 103, transmitting the configuration file to the adaptive application so that the adaptive application adopts the configuration file to create the service or discover the service.
Generally, accessing a service requires specifying the communication channel and instance id of the service. The code indicates the accessed instance and channel to discover or create the service before the adaptive application creates or consumes the service. Therefore, the channel and the instance are hard coded into the program, and once the channel and the instance of the service are changed, the self-adaptive application must be recompiled and then burnt on the board to run, so that the problems of increasing the project release and deployment flow and replacing the normal running program, and carrying unpredictable factors in the re-release program can increase the running risk are brought.
Based on the above problems, the present application provides a system architecture schematic diagram of a service channel and an instance dynamically loaded on the AutosarAP platform, as shown in fig. 2, the service channel and the service instance to be accessed are loaded into a repository of a shared memory through a file loader, so that when a self-adaptive application needs to create a service or discover the service, the self-adaptive application can directly read the service channel and the service instance from the repository, even if the service channel and the service instance are changed, only a configuration file needs to be replaced, the service channel and the service instance in the repository can keep the latest state, the code of the self-adaptive application does not need to be recompiled, the flow of project release deployment is reduced, and the project release deployment flow is simplified.
In addition, the application does not need to adjust the original written program, avoids uncontrollable risks caused by replacing the program, and improves the running stability of the system.
Optionally, the file loader not only can automatically load the communication channel and the service instance into the memory bank at preset time intervals, but also can monitor any change of the communication channel and the service instance in real time and update the data in the memory bank in real time, and the mechanism ensures that the system can respond to the change of the underlying service quickly.
Optionally, the service to be accessed in the embodiment of the present application is AutosarAP (Automotive Profile) service, which is a standardized software architecture for automotive applications, and is specifically aimed at efficient communication between automotive electronic control units, for example, the service to be accessed is access to millimeter-level microwaves or access to radar waves.
Optionally, the adaptive application (Adaptive Application) in the embodiment of the present application is an application program capable of dynamically adjusting its functions and performances according to the needs and environments of the user, and can intelligently allocate system resources according to the network conditions and device performances of the user, so as to improve the performance and response speed of the application.
When the configuration files are loaded into the repository of the shared memory, the memory segments in the repository need to be allocated for the configuration files, which comprises two embodiments, namely, one embodiment configures the same shared memory segment for all the configuration files, the other embodiment configures one shared memory segment for different configuration files respectively, and the following adaptive application searches the target configuration files of the target access service in different ways for the two cases.
The first embodiment includes the following steps.
Step 1, respectively distributing a shared memory segment for each configuration file of the service to be accessed in a memory bank, wherein the configuration files of different services to be accessed are different;
step 2, loading the configuration file of each service to be accessed into the corresponding shared memory section through a file loading program;
And step 3, determining a target shared memory segment corresponding to the target access service, and reading a target configuration file of the target access service from the target shared memory segment.
Each service to be accessed corresponds to a configuration file, and for each service to be accessed, the system allocates a separate shared memory segment for the configuration file, which means that the configuration information of each service is stored in a unique memory area completely isolated from other services. By the method, configuration files among different services are not mixed or covered, potential problems caused by data collision are greatly reduced, and each service can be ensured to have a stable and safe running environment and is not influenced by other services.
After the allocation of the shared memory segments is completed, the system uses a special file loader to load the configuration file of each service to be accessed into its corresponding shared memory segment. This loading process is automated and ensures that the configuration file is placed correctly in the predetermined location. In addition, since the configuration file of each service is stored in the exclusive shared memory section, even under the condition of high concurrency, the quick access of the data can be ensured, thereby improving the overall performance of the system.
When the system needs to access a specific service, it first determines the target shared memory segment corresponding to the target access service. This process typically involves parsing of service identifiers (e.g., service names, IDs, etc.) to pinpoint the correct shared memory segment. Once the target shared memory segment is determined, the system can directly read the target configuration file for the target access service therefrom. Because the configuration file of each service to be accessed is stored in the independent memory segment, the process is efficient and safe, and delay or error possibly occurring in data retrieval is effectively avoided.
By implementing the strategy, the system not only realizes effective management and quick access to configuration files of different services to be accessed, but also greatly enhances the security and manageability of data. The configuration files of each service to be accessed are strictly isolated in the respective memory section, so that not only can data conflict among different services be prevented, but also the fault checking and maintenance work can be simplified.
The second embodiment includes the following steps.
Step 1, distributing the same shared memory segment for configuration files of a plurality of services to be accessed in a memory bank, wherein the configuration files of different services to be accessed are different;
Step 2, loading configuration files of a plurality of services to be accessed into the same shared memory section through a file loading program;
And 3, reading configuration files of all the services to be accessed from the shared memory segment, and searching target configuration files of the target access service in a data traversing mode through the self-adaptive application.
The system allocates the same shared memory segment for a plurality of configuration files of the service to be accessed. Although the configuration files of these services are different, they are stored in the same memory area in a centralized manner, which not only effectively saves memory resources, but also simplifies the complexity of memory management. Through centralized storage, memory fragments can be reduced, and the memory utilization rate is improved, so that the system is more efficient and flexible in processing a large number of services.
The file loader is responsible for loading configuration files of a plurality of services to be accessed into the same shared memory segment. This loading process needs to ensure the accuracy and integrity of the data, i.e. the configuration file of each service to be accessed must be placed correctly in the specified memory location. The file loader ensures that the loading of the configuration files in a multi-service environment is both fast and reliable through efficient algorithms and mechanisms. In addition, centralized loading is convenient for unified management and updating of configuration files, and maintainability of the system is further improved.
When a specific target access service needs to be accessed, the adaptive application reads configuration files of all the services to be accessed from the shared memory segment. Then, the target configuration file of the target access service is quickly searched in a data traversing mode. This process relies on the powerful processing power of the adaptive application to be able to efficiently screen out the desired piece from a large number of profiles. By the method, the retrieval speed of the configuration file is increased, and the consistency and accuracy of the data are ensured.
In the two embodiments, the independent memory segment policy emphasizes data isolation and security, and is suitable for application scenarios with high requirements on stability and reliability. The shared memory segment strategy highlights the resource sharing and response speed, and is suitable for service scenes sensitive to memory resources or needing quick deployment. The most appropriate strategy can be selected according to the service requirements and resource conditions to achieve the best performance and efficiency of the system. Whichever policy is chosen, effective shared memory management is critical to ensure stable operation and efficient response of the system.
In a second embodiment, the file loader enables access to the shared memory segment based on topic publishing and subscription, and then the adaptive application subscribes to topics in the shared memory segment.
In a second embodiment, the specific content in step 1 includes reading, by a file loader, a plurality of configuration files of the service to be accessed from a set location, converting the configuration files into a set file format, creating a topic message by means of a Publisher constructor, calling the set function, and allocating the same shared memory segment to the configuration files in the repository based on the topic message.
FIG. 3 is a signaling diagram for implementing access to shared memory segments based on topic, and Publisher, topic, memory may be packaged in FIG. 3 to provide file loader calls for dynamic libraries in the repository. The file loader is responsible for reading a json format configuration file which contains communication channels and instances corresponding to different services to be accessed. For example, the configuration file contains deployment information of two services to be accessed, KEY MANAGEMENT SERVICE and Update Service, which use IPC:1 and IPC:2 channel instances, respectively.
The file loader converts these json formatted files into a settings file format, such as a settings file format of map format (std:: map < std:: string >), which allows the system to process and store configuration data more efficiently. After the file loader has completed the data format conversion, publisher constructors create a topic message named "map_message" that is designed to carry critical information about the configuration file for efficient management and access in the repository. The file loader then calls the create_memory_segment function, which allocates a shared memory segment according to the topic message, which will be used to store the format-converted configuration file, to which the step of configuring the shared memory segment for the configuration file is completed.
In a second embodiment, the specific content in step 2 includes calling Publisher a method to transfer a configuration file in a configuration file format, converting the configuration file from the configuration file format to a data structure suitable for storing in a repository, and calling a writing method to write the configuration file in the converted format into the shared memory segment.
As shown in FIG. 3, the file loader calls Publisher a method, takes the converted map message as a parameter, and in the method, data is firstly converted into a data structure which accords with the data stored in the shared memory, and then calls the write method to store the data in the shared memory segment which is created based on topic before, so that the data storage mode not only improves the response speed and the data processing capacity of the system, but also enhances the expandability and the flexibility of the system.
In order to improve modularization and reusability, the related functions of Publisher, topic and memory can be packaged into a dynamic library, so that a file loader can call an interface in the library when needed, the logic for sharing memory management is not required to be repeatedly realized, the development process is simplified, and the maintainability of codes is improved.
The overall flow steps of fig. 3 are as follows.
1) And reading the json configuration file.
The file loader first reads a specified json configuration file that contains communication channels and instances corresponding to different services to be accessed. The data in the configuration file is converted into a message in the format of std:: map < std: string, std:: string >, which is convenient for subsequent processing and storage.
2) A shared memory segment is created.
In the construction function Publisher, a topmessage named "map_message" is created first, then the create_memory_segment function is called, and a shared memory segment is allocated to the configuration file according to the topmessage, which ensures that data can be shared safely and efficiently among multiple processes.
3) And issuing the message to the shared memory.
The file loader then invokes the method Publisher and passes in the previously read and converted map message as a parameter. In the method, firstly, a map-format file is converted into a data structure suitable for being stored in a shared memory, and after conversion is completed, a write method is called to write a configuration file into a shared memory segment.
4) The shared memory is refreshed periodically.
The file loader is designed to run periodically, considering that json profiles may be updated at any time. In each run, it will re-read the configuration file and update the configuration file in the shared memory segment. In this way, it is ensured that the data in the shared memory segment always reflects the current service deployment state, and in order to achieve this, a timer or thread loop may be used to periodically check the modification time of the file and perform a corresponding update.
In a second embodiment, the specific content in the step 3 includes obtaining a topic parameter and a callback function which are transmitted by the adaptive application, returning an address of a shared memory segment to the adaptive application according to the topic parameter, wherein the topic parameter is used for determining the address of the shared memory segment subscribed by the topic, the callback function is used for obtaining configuration files of all services to be accessed from the address of the shared memory segment, calling the callback function to send the configuration files to the adaptive application, traversing the configuration files of all the services to be accessed by the adaptive application, and searching the configuration files of the target access service.
The self-adaptive application transmits a topic parameter and a callback function to the system, wherein the topic parameter is used for determining the address of the shared memory segment subscribed by the topic, and the callback function is used for acquiring the configuration file in the shared memory segment.
The system performs corresponding logic processing to determine the address of the shared memory segment to be searched according to the received topic parameter, the step involves resolving the topic parameter to accurately match to the corresponding memory location, and then the system needs to check whether the address of the memory segment does exist in the memory bank. If so, this address information is returned to the adaptive application, otherwise, if not, it may be necessary to trigger an error handling procedure or return specific error information to the caller.
Once the adaptive application has obtained the correct address of the shared memory segment, it initiates the topic information that is used to request the callback function that was passed in before the system call to pass all the configuration files read to the adaptive application.
The self-adaptive application traverses the received configuration files of all the services to be accessed, and identifies the target configuration files of the target access service. The process is realized based on keyword searching, regular expression matching and other technologies, and the final purpose is to precisely locate the required files from a plurality of configuration files.
Fig. 4 is a signaling diagram of the subscription of the adaptive application to the shared memory data, including the following steps.
1) And calling a subscniber method to acquire data.
In an adaptive application, the subscnber constructor accepts two parameters, a topic parameter and a callback function.
Topic parameter this parameter is used to find the shared memory segment. By calling the create memory segment function, the system checks whether the shared memory segment corresponding to the topic parameter already exists. If the function exists, the function returns the address of the shared memory segment for subsequent data reading, and if the function does not exist, an exception may be thrown or an error code may be returned to prompt the user to perform corresponding processing.
Callback function, which is used to obtain data from shared memory segment. Through this mechanism, the subscore can pass the found profile to the adaptive application.
1) The shared memory address is obtained.
And the system calls a subscore method to acquire the topic parameter and the callback function which are transmitted by the data self-adaptive application, then calls a create_memory_segment function to determine whether the shared memory segment created by the topic exists, and if so, determines that the subscription is completed.
2) And executing the callback function.
The self-adaptive application initiates topic information, and the system adopts a callback function to package and send all the configuration files read from the shared memory segment to the self-adaptive application. The execution of the callback function not only returns the data, but may also perform some additional logic in the process, such as data parsing, format conversion, etc., to facilitate subsequent processing.
3) Traversing and processing the returned data.
The self-adaptive application receives all the configuration files and traverses and analyzes the configuration files, so that the communication channels and the instance information of the target access service are extracted.
In the application, the communication channel and the instance information of the service to be accessed are distributed to the memory bank in a configurable mode in a topic mode, and the self-adaptive application can subscribe the topic to acquire the communication channel and the instance information from the memory bank. When the communication channel and the instance information are changed, only the json file needs to be changed, the file loader can read the json file and release the json file to the shared memory at intervals, the self-adaptive application subscribes to topic to acquire the latest channel and instance of the target access service, and the self-adaptive application does not need to be recompiled, so that the new channel and instance can be dynamically loaded.
The adaptive application receives the communication channel and instance information of the target access service, and can deliver the content to the service provider and the service consumer, the service consumer discovers the service by using the method FIND SERVICE, and the service provider creates the service by using the method CREATE SERVICE, and the creation and discovery of the service are described in detail below.
The AP service is first introduced.
Services in the AP are provided and consumed in processes, and the processes are uniformly managed by an em execution management module (running on one process of the AP platform) of the AP platform. The SOA service interfaces are divided into three types in total, including method, event, field.
The Method comprises the steps that a client can call an interface in a service, the client is triggered to call once and run once, and the service is passively received.
The Event is that the server can periodically inform the client, and the client is informed by actively triggering the local Event of the server.
Field includes Set, get, notifier modes, can be Set (Set), can be read (Get), and can be notified (Notifier). When the server triggers and changes data, notification (Notifier) is performed. The client may alter (Set) or read (Get) the data.
Fig. 5 is a schematic flow chart of service creation, including the following four steps.
The first step, the AP service matrix mainly configures information related to services and communication protocols, wherein the information is configured as follows, a communication channel adopted by the services (comprising a someip, dds and ipc) and parameter configuration related to the communication channel protocols are configured, the someip and the dds are used for cross-ECU communication, dds is used for high-load transmission data, the ipc is used for ECU internal communication, the interface under the services is indicated to be of which type (method, event or field), the access parameters of each interface are indicated, the implementation mode of each interface is indicated, the data type of the access parameters of the interfaces is defined, and the communication behavior definition of the services is mainly used for reflecting the interaction relation of each service among or in the ECU.
In the second step, the AP service matrix imports Mainfest the configuration tool, and the Mainfest configuration tool combines the configuration information in the first step, and configures the process resource allocation, the process lifecycle management, the access rights, and the like running on the AP platform to generate a ARMXML file.
Thirdly, the code generating tool generates configuration information related to the platform, skeleton codes and proxy codes of the service according to the imported armxml files.
And fourthly, integrating the business process, namely the self-adaptive application as required, enabling the proxy code of the service to be called by the consumer to initiate access to the service, and enabling the provider to call the skeleton code of the service to realize the service.
Fig. 6 is a schematic flow chart of service registration and discovery, including five steps as shown in fig.
① The service provider registers to the service registry of the ECU1 by providing instance ids (deployment information binding the service, including event, field, method interface information under the service, ip and port information of ECU, etc.), channels (employed communication protocol someip, dds, ipc).
The service consumer sends the instance id and the channel to the service registry of the ECU2 indicating that it needs to find a certain service.
② The service registration center of the ECU2 determines whether the present ECU provides the searched service. If not, the service registry of the ECU2 will send a multicast message to the service registry of the ECU1, and if so, directly back to the service consumer.
③ The service registry of the ECU1 receives the multicast message sent by the service registry of the ECU2, and discovers that the service is provided in the ECU1, and then the service registry of the ECU1 replies a unicast message (carrying ip and port information for providing the service).
④ The service registry of the ECU2 receives the unicast message and forwards it to the service consumer in the ECU 2.
⑤ The service consumer of the ECU2 takes in ip and port providing the service and establishes a connection directly with the service provider of the ECU 1.
The application provides a AutosarAP overall flow step of service creation and discovery, comprising the following steps.
And 1, realizing access to the repository in a publish and subscribe mode based on topic.
1) And reading the json configuration file.
The file loader first reads a specified json configuration file that contains communication channels and instances corresponding to different services to be accessed. The data in the configuration file is converted into a message in the format of std:: map < std: string, std:: string >, which is convenient for subsequent processing and storage.
2) A shared memory segment is created.
In the constructor Publisher, a topmessage named "map_message" is created first, then the create_memory_segment function is called, and a shared memory segment is allocated to the configuration file according to the topmessage.
3) And issuing the message to the shared memory.
The file loader then invokes the method Publisher and passes in the previously read and converted map message as a parameter. Within this method, a map-formatted file is first converted into a data structure suitable for storage in shared memory. After the conversion is completed, a write method is called to write the configuration file into the shared memory segment.
And 2, self-adapting application subscribes to the configuration files in the repository.
1) The shared memory address is obtained.
And the system calls a subscore method to acquire the data self-adaptive application incoming topic parameter and a callback function, and the system calls a create_memory_segment function to determine whether a shared memory segment created by topic exists or not, and if so, determines that subscription is completed.
2) And executing the callback function.
And calling a Subscriber method to acquire data, and then initiating the topic information by the self-adaptive application, wherein the topic information carries a callback function, and the callback function of the system packages and sends all the configuration files read from the shared memory section to the self-adaptive application. The execution of the callback function not only returns the data, but may also perform some additional logic in the process, such as data parsing, format conversion, etc., to facilitate subsequent processing.
3) Traversing and processing the returned data.
The self-adaptive application receives all the configuration files and traverses and analyzes the configuration files, so that the communication channels and the instance information of the target access service are extracted.
And 3, the service creator creates the service by using the method CREATE SERVICE.
And 4, registering the service by the service creator and the service consumer, and discovering the service by the service consumer by using the method FIND SERVICE.
Based on the same technical concept, the application provides a device for dynamically loading channels and instances of services based on AutosarAP platforms, as shown in fig. 7, the device comprises:
The loading module 701 is configured to load, by using a file loader, a configuration file of a service to be accessed into a memory bank of the shared memory, where the service to be accessed exists in the AutosarAP platform, and the configuration file includes a communication channel and a service instance of the service to be accessed;
The reading module 702 is configured to read a configuration file from a memory bank when it is detected that the adaptive application needs to create a service or discover a service, where the adaptive application is an application program capable of dynamically adjusting functions and performances according to a user requirement and an environment;
a delivery module 703, configured to deliver the configuration file to the adaptive application, so that the adaptive application uses the configuration file to create a service or discover a service.
Optionally, the loading module 701 is configured to allocate a shared memory segment to each configuration file of the service to be accessed in the repository, where the configuration files of different services to be accessed are different;
the reading module 702 is configured to determine a target shared memory segment corresponding to the target access service, and read a target configuration file of the target access service from the target shared memory segment.
Optionally, the loading module 701 is configured to load the configuration files of the service to be accessed into a memory bank of the shared memory through a file loading program, where the allocation of the same shared memory segment to the configuration files of the plurality of services to be accessed is performed in the memory bank, and the configuration files of different services to be accessed are different;
the reading module 702 is configured to read configuration files of all services to be accessed from the shared memory segment, and search, by using the adaptive application, a target configuration file of a target access service in a manner of traversing data.
Optionally, the loading module 701 is configured to:
reading configuration files of a plurality of services to be accessed from a set position through a file loading program, and converting the configuration files into a set file format;
creating a topic message by Publisher constructors;
and calling a setting function and distributing the same shared memory segment in the repository for the configuration file based on the topic message.
Optionally, the loading module 701 is configured to:
calling Publisher a method to transfer a configuration file with a set file format;
converting the configuration file from a configuration file format to a data structure suitable for storing in a repository;
and calling a writing method to write the configuration file with the converted format into the shared memory segment.
Optionally, the reading module 702 is configured to:
The method comprises the steps of obtaining a topic parameter and a callback function which are transmitted by the self-adaptive application, wherein the topic parameter is used for determining an address of a shared memory segment subscribed by the topic, and the callback function is used for obtaining a configuration file in the shared memory segment;
Returning the address of the shared memory segment to the self-adaptive application according to the topic parameter;
acquiring configuration files of all services to be accessed from addresses of the shared memory segment, and calling a callback function to send the configuration files to the self-adaptive application;
traversing all the configuration files of the service to be accessed through the self-adaptive application, and searching out the configuration files of the target access service.
Optionally, the reading module 702 is configured to:
determining the address of the memory segment to be searched according to the topic parameter;
judging whether a memory segment address exists in a memory bank or not;
If so, returning the memory segment address to the adaptive application.
As shown in fig. 8, an embodiment of the present application provides an electronic device, which includes a processor 801, a communication interface 802, a memory 803, and a communication bus 804, where the processor 801, the communication interface 802, and the memory 803 complete communication with each other through the communication bus 804.
A memory 803 for storing a computer program.
In one embodiment of the present application, the processor 801 is configured to implement the method for dynamically loading channels and instances of services based on AutosarAP platforms provided in any of the foregoing method embodiments when executing a program stored on the memory 803, where the method includes:
The method comprises the steps of loading a configuration file of a service to be accessed into a memory library of a shared memory through a file loading program, wherein the service to be accessed exists in a AutosarAP platform, the configuration file comprises a communication channel and a service instance of the service to be accessed, reading the configuration file from the memory library when the self-adaptive application is detected to need to create the service or discover the service, wherein the self-adaptive application is an application program capable of dynamically adjusting functions and performances according to user requirements and environments, and transmitting the configuration file to the self-adaptive application so that the self-adaptive application can use the configuration file to create the service or discover the service.
Optionally, loading the configuration files of the service to be accessed into the memory bank of the shared memory through the file loading program comprises the steps of respectively distributing a shared memory segment for the configuration files of each service to be accessed in the memory bank, wherein the configuration files of different services to be accessed are different, loading the configuration files of each service to be accessed into the corresponding shared memory segment through the file loading program, and reading the configuration files from the memory bank comprises the steps of determining a target shared memory segment corresponding to the target access service and reading the target configuration files of the target access service from the target shared memory segment.
Optionally, loading the configuration files of the service to be accessed into a memory bank of the shared memory through the file loading program comprises the steps of distributing the same shared memory section for the configuration files of the service to be accessed in the memory bank, wherein the configuration files of different services to be accessed are different, loading the configuration files of the service to be accessed into the same shared memory section through the file loading program, and reading the configuration files from the memory bank comprises the steps of reading the configuration files of all the services to be accessed from the shared memory section and searching the target configuration files of the target access service in a traversal data mode through the adaptive application.
Optionally, allocating the same shared memory segment to the configuration files of the plurality of services to be accessed in the repository includes reading the configuration files of the plurality of services to be accessed from the set location by a file loader and converting the configuration files to a set file format, creating a topic message by a Publisher constructor, calling the set function and allocating the same shared memory segment to the configuration files in the repository based on the topic message.
Optionally, loading the configuration files of the plurality of services to be accessed into the same shared memory segment through the file loading program comprises calling Publisher a method to transfer the configuration files with the configuration file format, converting the configuration files from the configuration file format into a data structure suitable for being stored in a memory bank, and calling a writing method to write the configuration files with the converted format into the shared memory segment.
The method comprises the steps of obtaining a topic parameter and a callback function which are transmitted by an adaptive application, wherein the topic parameter is used for determining an address of a shared memory segment subscribed by the topic, the callback function is used for obtaining the configuration file in the shared memory segment, returning the address of the shared memory segment to the adaptive application according to the topic parameter, obtaining the configuration file of all the services to be accessed from the address of the shared memory segment, calling the callback function to send the configuration file to the adaptive application, traversing the configuration file of all the services to be accessed by the adaptive application, and finding the configuration file of the target access service.
Optionally, returning the address of the shared memory segment to the adaptive application according to the topic parameter includes determining the address of the memory segment to be searched according to the topic parameter, determining whether the address of the memory segment exists in the memory bank, and returning the address of the memory segment to the adaptive application if the address of the memory segment exists.
The embodiment of the application also provides a computer readable storage medium, on which a computer program is stored, the computer program implementing the steps of the method for dynamically loading channels and instances of services based on AutosarAP platforms provided in any one of the method embodiments described above when executed by a processor.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
From the above description of embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus a general purpose hardware platform, or may be implemented by hardware. Based on such understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the related art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the method described in the respective embodiments or some parts of the embodiments.
It is to be understood that the terminology used herein is for the purpose of describing particular example embodiments only, and is not intended to be limiting. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The terms "comprises," "comprising," "includes," "including," and "having" are inclusive and therefore specify the presence of stated features, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, elements, components, and/or groups thereof. The method steps, processes, and operations described herein are not to be construed as necessarily requiring their performance in the particular order described or illustrated, unless an order of performance is explicitly stated. It should also be appreciated that additional or alternative steps may be used.
The foregoing is only a specific embodiment of the invention to enable those skilled in the art to understand or practice the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1.一种基于AutosarAP平台动态加载服务的通道和实例的方法,其特征在于,所述方法包括:1. A method for dynamically loading service channels and instances based on the AutosarAP platform, characterized in that the method includes: 通过文件加载程序将待访问服务的配置文件加载到共享内存的内存库中,其中,所述待访问服务存在于AutosarAP平台中,所述配置文件包括所述待访问服务的通信通道和服务实例;The configuration file of the service to be accessed is loaded into the shared memory library through a file loader. The service to be accessed exists in the AutosarAP platform, and the configuration file includes the communication channel and service instance of the service to be accessed. 在检测到自适应应用需要创建服务或发现服务时,从所述内存库中读取所述配置文件,其中,所述自适应应用是能够根据用户需求和环境动态调整功能和性能的应用程序;When it is detected that the adaptive application needs to create or discover services, the configuration file is read from the memory library, wherein the adaptive application is an application that can dynamically adjust its functions and performance according to user needs and environment; 将所述配置文件传递给所述自适应应用,以使所述自适应应用采用所述配置文件创建服务或发现服务。The configuration file is passed to the adaptive application so that the adaptive application can use the configuration file to create or discover services. 2.根据权利要求1所述的方法,其特征在于,2. The method according to claim 1, characterized in that, 通过文件加载程序将待访问服务的配置文件加载到共享内存的内存库中包括:在所述内存库中为每个待访问服务的配置文件分别分配一个共享内存段,其中,不同待访问服务的配置文件不同;通过所述文件加载程序将每个待访问服务的配置文件加载到对应的共享内存段中;Loading the configuration file of the service to be accessed into the shared memory library via the file loader includes: allocating a shared memory segment in the memory library for each configuration file of the service to be accessed, wherein the configuration files of different services to be accessed are different; and loading the configuration file of each service to be accessed into the corresponding shared memory segment via the file loader. 从所述内存库中读取所述配置文件包括:确定目标访问服务对应的目标共享内存段,并从所述目标共享内存段中读取所述目标访问服务的目标配置文件。Reading the configuration file from the memory library includes: determining the target shared memory segment corresponding to the target access service, and reading the target configuration file of the target access service from the target shared memory segment. 3.根据权利要求1所述的方法,其特征在于,3. The method according to claim 1, characterized in that, 通过文件加载程序将待访问服务的配置文件加载到共享内存的内存库中包括:在所述内存库中为多个待访问服务的配置文件分配同一个共享内存段,其中,不同待访问服务的配置文件不同;通过所述文件加载程序将多个待访问服务的配置文件加载到所述同一个共享内存段中;Loading the configuration files of the services to be accessed into the shared memory library via the file loader includes: allocating the same shared memory segment for the configuration files of multiple services to be accessed in the memory library, wherein the configuration files of different services to be accessed are different; and loading the configuration files of multiple services to be accessed into the same shared memory segment via the file loader. 从所述内存库中读取所述配置文件包括:从所述共享内存段中读取全部待访问服务的配置文件,并通过所述自适应应用采用遍历数据的方式查找目标访问服务的目标配置文件。Reading the configuration file from the memory library includes: reading all configuration files of the services to be accessed from the shared memory segment, and using the adaptive application to search for the target configuration file of the target access service by traversing the data. 4.根据权利要求3所述的方法,其特征在于,在所述内存库中为多个待访问服务的配置文件分配同一个共享内存段包括:4. The method according to claim 3, characterized in that allocating the same shared memory segment for configuration files of multiple services to be accessed in the memory library includes: 通过所述文件加载程序从设定位置读取多个待访问服务的配置文件,并将所述配置文件转化为设定文件格式;The file loader reads configuration files of multiple services to be accessed from a set location and converts the configuration files into a set file format. 通过Publisher构造函数创建topic消息;Create topic messages using the Publisher constructor; 调用设定函数并基于所述topic消息为所述配置文件在所述内存库中分配同一个共享内存段。The configuration function is invoked, and based on the topic message, the same shared memory segment is allocated in the memory library for the configuration file. 5.根据权利要求4所述的方法,其特征在于,通过所述文件加载程序将多个待访问服务的配置文件加载到所述同一个共享内存段中包括:5. The method according to claim 4, characterized in that loading the configuration files of multiple services to be accessed into the same shared memory segment by the file loader includes: 调用Publisher方法传入所述设定文件格式的配置文件;Call the Publisher method and pass in the configuration file specifying the file format; 将所述配置文件从所述设定文件格式转换为适合存入所述内存库的数据结构;Convert the configuration file from the specified file format into a data structure suitable for storage in the memory library; 调用写入方法将转换格式后的配置文件写入所述共享内存段。The write method is called to write the converted configuration file to the shared memory segment. 6.根据权利要求3所述的方法,其特征在于,从所述共享内存段中读取全部待访问服务的配置文件,并通过所述自适应应用采用遍历数据的方式查找目标访问服务的目标配置文件包括:6. The method according to claim 3, characterized in that, reading all configuration files of the services to be accessed from the shared memory segment, and searching for the target configuration file of the target access service by traversing the data through the adaptive application, includes: 获取所述自适应应用传入的topic参数和回调函数,其中,所述topic参数用于确定topic订阅的共享内存段的地址,所述回调函数用于获取所述共享内存段中的配置文件;Obtain the topic parameter and callback function passed in by the adaptive application, wherein the topic parameter is used to determine the address of the shared memory segment subscribed to by the topic, and the callback function is used to obtain the configuration file in the shared memory segment; 依据所述topic参数回传所述共享内存段的地址至所述自适应应用;The address of the shared memory segment is returned to the adaptive application based on the topic parameter; 从所述共享内存段的地址中获取全部待访问服务的配置文件,并调用所述回调函数将所述配置文件发送给所述自适应应用;Obtain the configuration files of all services to be accessed from the address of the shared memory segment, and call the callback function to send the configuration files to the adaptive application; 通过所述自适应应用遍历所述全部待访问服务的配置文件,并查找出目标访问服务的配置文件。The adaptive application iterates through the configuration files of all services to be accessed and finds the configuration file of the target service. 7.根据权利要求6所述的方法,其特征在于,依据所述topic参数回传所述共享内存段的地址至所述自适应应用包括:7. The method according to claim 6, characterized in that, returning the address of the shared memory segment to the adaptive application based on the topic parameter comprises: 根据所述topic参数确定待查找的内存段地址;The memory segment address to be searched is determined based on the topic parameter; 判断所述内存库中是否存在所述内存段地址;Determine whether the memory segment address exists in the memory library; 若存在,则返回所述内存段地址至所述自适应应用。If it exists, the memory segment address is returned to the adaptive application. 8.一种基于AutosarAP平台动态加载服务的通道和实例的装置,其特征在于,所述装置包括:8. An apparatus for dynamically loading service channels and instances based on the AutosarAP platform, characterized in that the apparatus comprises: 加载模块,用于通过文件加载程序将待访问服务的配置文件加载到共享内存的内存库中,其中,所述待访问服务存在于AutosarAP平台中,所述配置文件包括所述待访问服务的通信通道和服务实例;The loading module is used to load the configuration file of the service to be accessed into the memory library of shared memory through a file loader, wherein the service to be accessed exists in the AutosarAP platform, and the configuration file includes the communication channel and service instance of the service to be accessed. 读取模块,用于在检测到自适应应用需要创建服务或发现服务时,从所述内存库中读取所述配置文件,其中,所述自适应应用是能够根据用户需求和环境动态调整功能和性能的应用程序;The reading module is used to read the configuration file from the memory library when it is detected that the adaptive application needs to create a service or discover a service, wherein the adaptive application is an application that can dynamically adjust its functions and performance according to user needs and environment; 传递模块,用于将所述配置文件传递给所述自适应应用,以使所述自适应应用采用所述配置文件创建服务或发现服务。A delivery module is used to pass the configuration file to the adaptive application so that the adaptive application can use the configuration file to create a service or discover a service. 9.一种电子设备,其特征在于,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;9. An electronic device, characterized in that it comprises a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; 存储器,用于存放计算机程序;Memory, used to store computer programs; 处理器,用于执行存储器上所存放的程序时,实现权利要求1-7任一所述的方法。A processor, when executing a program stored in memory, implements the method described in any one of claims 1-7. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-7任一所述的方法。10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, which, when executed by a processor, implements the method according to any one of claims 1-7.
CN202411470125.0A 2024-10-21 2024-10-21 Method and apparatus for dynamically loading service channels and instances based on the AutosAP platform Active CN119496815B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411470125.0A CN119496815B (en) 2024-10-21 2024-10-21 Method and apparatus for dynamically loading service channels and instances based on the AutosAP platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411470125.0A CN119496815B (en) 2024-10-21 2024-10-21 Method and apparatus for dynamically loading service channels and instances based on the AutosAP platform

Publications (2)

Publication Number Publication Date
CN119496815A CN119496815A (en) 2025-02-21
CN119496815B true CN119496815B (en) 2025-11-18

Family

ID=94625580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411470125.0A Active CN119496815B (en) 2024-10-21 2024-10-21 Method and apparatus for dynamically loading service channels and instances based on the AutosAP platform

Country Status (1)

Country Link
CN (1) CN119496815B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114980083A (en) * 2022-05-25 2022-08-30 中国第一汽车股份有限公司 Secure communication method based on self-adaptive application and server
CN116233214A (en) * 2023-02-22 2023-06-06 重庆长安汽车股份有限公司 Method, system, vehicle and storage medium for in-vehicle application to access network service

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102605171B1 (en) * 2021-08-06 2023-11-24 주식회사 팝콘사 Device and method for dynamic service-oriented communication between vehicle applications in an autosar adaptive platform
CN118277117A (en) * 2022-12-30 2024-07-02 毫末智行科技有限公司 Inter-process communication method, device, electronic device and storage medium
CN118250203A (en) * 2024-03-05 2024-06-25 拙盾智驾技术(上海)有限公司 Adaptive AUTOSAR middleware protocol conformance fuzzy test method
CN118210453A (en) * 2024-03-29 2024-06-18 重庆赛力斯凤凰智创科技有限公司 A data processing method, device, medium and equipment based on AUTOSAR
CN118689669A (en) * 2024-06-04 2024-09-24 东软睿驰汽车技术(沈阳)有限公司 A service discovery method and ECU based on shared memory
CN118708205A (en) * 2024-06-26 2024-09-27 中国第一汽车股份有限公司 Dynamic configuration update method, system, electronic device and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114980083A (en) * 2022-05-25 2022-08-30 中国第一汽车股份有限公司 Secure communication method based on self-adaptive application and server
CN116233214A (en) * 2023-02-22 2023-06-06 重庆长安汽车股份有限公司 Method, system, vehicle and storage medium for in-vehicle application to access network service

Also Published As

Publication number Publication date
CN119496815A (en) 2025-02-21

Similar Documents

Publication Publication Date Title
JP4297790B2 (en) Persistent key-value repository with pluggable architecture abstracting physical storage
CN113939805A (en) Method and system for interprocess communication
US20030051029A1 (en) Dynamic provisioning of sevice components in a distributed system
US20090198776A1 (en) Computer architecture and method of operation for multi-computer distributed processing with initialization of objects
CN105094922A (en) Application installation-free operation control method and device
JP7581535B2 (en) Information processing method based on IoT device, related device and storage medium
CN116805946B (en) Message request processing method, device, electronic device and storage medium
EP4425892A1 (en) Resource operating method and apparatus, electronic device, and storage medium
CN116028455A (en) A data processing method, device, storage medium and electronic equipment
CN114996750B (en) Data sharing method and device
CN108804100B (en) Method and device for creating interface element, storage medium and mobile terminal
CN113179269A (en) Internet of things-based protocol data analysis method, system, medium, and program product
CN115086166A (en) Computing system, container network configuration method, and storage medium
EP4018305B1 (en) Methods and apparatuses for providing a function as a service platform
CN113342554B (en) IO multiplexing method, medium, device and operating system
CN108496157B (en) System and method for providing runtime trace using an extended interface
EP4528482A1 (en) Micro-service migration method and apparatus, and computing device
WO2024002229A1 (en) Application management method and related device
US7039673B1 (en) Method and apparatus for dynamic command extensibility in an intelligent agent
CN119496815B (en) Method and apparatus for dynamically loading service channels and instances based on the AutosAP platform
US7721278B2 (en) Modular server architecture for multi-environment HTTP request processing
EP4414836A1 (en) Container engine, container engine implementation methods, electronic device and storage medium
CN108804101B (en) Method and device for creating interface element, storage medium and mobile terminal
CN115408166A (en) Remote communication method, device, equipment and storage medium
CN110879747B (en) Resource management method and device

Legal Events

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