Data acquisition method and device, vehicle and storage medium
By generating the target service configuration file in the data acquisition unit and directly acquiring the target service information from the configuration file, the problem of low data acquisition efficiency in the existing technology is solved and a more efficient data acquisition process is achieved.
Patent Information
- Application Number
- CN202411273321.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2044-09-11
AI Technical Summary
In the prior art, data acquisition efficiency is low, and it is necessary to obtain target service information of target service after receiving the data acquisition request, resulting in an increase in interaction time.
Send server messages through the data acquisition protocol stack in the data acquisition unit to generate a target service configuration file. The configuration file includes the service information of multiple services. Directly respond to the data acquisition request and obtain the target service information from the configuration file. And obtain target data based on this information.
It saves the interaction time with the service provider of the target service, improves the efficiency of the target service information, and then improves the efficiency of the target data according to the target service information.
Smart Images

Figure CN119363809A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and more specifically, to a data acquisition method, device, vehicle, and computer-readable storage medium. Background Art
[0002] In the context of software-defined vehicles, a large number of functional interactions in the vehicle are realized through services. Currently, the vehicle can respond to a data acquisition request, determine the service interface information of the service requested by the data acquisition request, and then determine the service information corresponding to the requested service through the service interface information, and then obtain the specific return value of the service through the service information as the data requested by the data acquisition request.
[0003] However, using this data acquisition method, the data acquisition efficiency is low. Summary of the invention
[0004] The present application proposes a data acquisition method, device, vehicle and computer-readable storage medium to improve data acquisition efficiency.
[0005] In a first aspect, an embodiment of the present application provides a data acquisition method, the method comprising:
[0006] In response to a data acquisition request of a data acquisition unit, target service information corresponding to a target service requested by the data acquisition request is acquired from a target service configuration file; the target service configuration file includes service information of each of a plurality of services; the target service configuration file is generated based on a server message sent by a data acquisition protocol stack in the data acquisition unit; the server message is sent to the data acquisition protocol stack by a service unit providing the plurality of services, and the server message is generated by the service unit providing the plurality of services according to the service information for the plurality of services;
[0007] According to the target service information, a payload return value corresponding to the target service is obtained from the target service unit corresponding to the target service as the target data requested by the data acquisition request, and the target data is returned to the data acquisition unit.
[0008] In a second aspect, an embodiment of the present application further provides a data acquisition device, the device comprising:
[0009] A response module, configured to respond to a data acquisition request of a data acquisition unit and obtain target service information corresponding to a target service requested by the data acquisition request from a target service configuration file; the target service configuration file includes service information of each of a plurality of services; the target service configuration file is generated based on a server message sent by a data acquisition protocol stack in the data acquisition unit; the server message is sent to the data acquisition protocol stack by a service unit providing the plurality of services, and the server message is generated by the service unit providing the plurality of services according to the service information for the plurality of services;
[0010] An acquisition module is used to acquire a payload return value corresponding to the target service from a target service unit corresponding to the target service according to the target service information as target data requested by the data acquisition request, and return the target data to the data acquisition unit.
[0011] In a third aspect, an embodiment of the present application further provides a vehicle, characterized in that the vehicle comprises: one or more processors; a memory; one or more applications, wherein one or more applications are stored in the memory and configured to be executed by one or more processors, and one or more programs are configured to execute the above method.
[0012] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores a program code executable by a processor, and when the program code is executed by the processor, the processor executes the above method.
[0013] The present application provides a data acquisition method, device, vehicle and computer-readable storage medium. In the present application, the target service configuration file includes service information of multiple services. In direct response to the data acquisition request, the target service information corresponding to the target service requested by the data acquisition request is obtained from the target service configuration file, and then the target data requested by the acquisition request is obtained according to the target service information. It is not necessary to obtain the target service information of the target service from the provider of the target service after receiving the data acquisition request, which saves the interaction time with the service provider of the target service, improves the efficiency of obtaining the target service information, and further improves the efficiency of obtaining the target data according to the target service information. In addition, the target service configuration file is generated based on the server message sent by the data acquisition protocol stack in the data acquisition unit; the server message is sent to the data acquisition protocol stack by the service unit providing multiple services, and the server message is generated by the service unit providing multiple services according to the service information for multiple services. The whole process does not require user participation, thereby realizing the process of automatically generating the target service configuration file by the vehicle, and does not require manual configuration of the target service configuration file, reducing the time consumption of manually configuring the target service configuration file, and improving the generation efficiency of the target service configuration file.
[0014] Other features and advantages of the embodiments of the present application will be described in the subsequent description, and partly become apparent from the description, or can be understood by practicing the embodiments of the present application. The purposes and other advantages of the embodiments of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0016] Figure 1 A flow chart of a data acquisition method proposed according to an embodiment of the present application is shown.
[0017] Figure 2 A schematic diagram showing a data acquisition process in an embodiment of the present application.
[0018] Figure 3 Show Figure 1 The corresponding step S110 of the embodiment is a flowchart in an embodiment.
[0019] Figure 4 A structural block diagram of a data acquisition device proposed in an embodiment of the present application is shown.
[0020] Figure 5 A structural block diagram of an electronic device provided according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0021] In order to make those skilled in the art better understand the present application scheme, the technical scheme in the present application embodiment will be clearly and completely described below in conjunction with the drawings in the present application embodiment. Obviously, the described embodiment is only a part of the present application embodiment, rather than all the embodiments. The components of the present application embodiment usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the present application for protection, but merely represents the selected embodiment of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0022] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0023] See also Figure 1 , Figure 1 A flow chart of a data acquisition method proposed according to an embodiment of the present application is shown, which is used for a vehicle, and the method includes:
[0024] S110. In response to a data acquisition request from a data acquisition unit, target service information corresponding to a target service requested by the data acquisition request is acquired from a target service configuration file.
[0025] Among them, the target service configuration file includes the service information of each of the multiple services; the target service configuration file is generated based on the server message sent by the data acquisition protocol stack in the data acquisition unit; the server message is sent to the data acquisition protocol stack by the service unit providing multiple services, and the server message is generated by the service unit providing multiple services according to the service information for the multiple services.
[0026] The service can be a SOA (Service-Oriented Architecture) service in the vehicle. The service can include services in the cabin domain, services in the intelligent driving domain, and services in the entertainment domain. The services in the cabin domain include air conditioning services, lighting services, seat services, etc. in the cabin. The services in the intelligent driving domain include automatic lane change services, automatic steering services, and automatic parking services, etc. The services in the entertainment domain include music services, video services, etc.
[0027] The service information of a service is used to describe the service attributes of the service. For example, the service information of a service may include the service instance, version, life cycle, stage of the service, service availability status and deployment information of the service; wherein, the service instance of a service refers to an instance of the service, that is, a concrete example of the service, the version of the service is the version number of the current service, the life cycle of the service refers to the entire process of creating, starting, running and ending the service, the stage of the service refers to a process in which the service is in the entire life cycle, the service availability status refers to whether the service is available, and the deployment information of the service may include the IP address and port number of the service, etc.
[0028] The unit in the vehicle used to provide the aforementioned services is referred to as a service unit, and the unit in the vehicle used to obtain data for each service is referred to as a data acquisition unit. The data acquisition unit can integrate a data acquisition application to implement the data acquisition method of the present application through the data acquisition application, that is, the data acquisition unit can serve as an execution entity to implement the data acquisition method of the present application.
[0029] In another embodiment, the vehicle can also serve as an execution subject. The vehicle integrates a data acquisition application that implements the data acquisition method of the present application, and interacts with the data acquisition unit through the data acquisition application to implement the data acquisition method of the present application.
[0030] The vehicle may be an electric vehicle or a fuel vehicle, or a sedan, SUV, bus, truck, etc. The data acquisition unit may be a central computing component in the vehicle, which is used to process and make decisions on the data collected by the vehicle.
[0031] In this embodiment, a service unit can provide at least one service, and the multiple services involved can be provided by at least one service unit. The service unit refers to a control unit in the vehicle for providing services; for example, Tbox can be a service unit, and for example, an entertainment center can be used as a service unit, and for example, an autonomous driving module can also be used as a service unit (a sub-module in the autonomous driving module can also be used as a service unit, for example, the automatic lane change sub-module is a service unit).
[0032] In this embodiment, the data acquisition unit and the service unit communicate through the data acquisition protocol stack to realize data interaction between the data acquisition unit and the service unit. The data acquisition protocol stack can be a SOME / IP protocol stack, that is, the data acquisition unit and the service unit communicate through the SOME / IP protocol. In addition, different service units can also communicate through the SOME / IP protocol, that is, different service units all have a SOME / IP protocol stack, and the service units communicate with each other through their respective SOME / IP protocol stacks.
[0033] For each service unit, the service unit can generate an information message (such as a SOMEIP SD Offer message) as a server message based on the service information of the service provided by the service unit; the server message here includes the server messages generated by all service units used to provide the aforementioned multiple services. Among them, all service units used to provide the aforementioned multiple services can periodically send the server messages to the data acquisition protocol stack in the data acquisition unit. For example, every 1 second or every 2 seconds, all service units used to provide the aforementioned multiple services generate a server message based on the service information for multiple services, and send the server message to the data acquisition protocol stack in the data acquisition unit.
[0034] After the data acquisition protocol stack obtains the server message, it can send the server message. At this time, the vehicle (or the data acquisition unit in the vehicle) receives the server message sent by the data acquisition protocol stack; extracts multiple services and their respective service information from the server message; encapsulates the multiple services and their respective service information to obtain the target service configuration file.
[0035] That is to say, the service unit for providing multiple services sends a server message for multiple services (the server message includes the server message generated by each service unit), and extracts the service information corresponding to the service from the server message, one service corresponds to one service information. After extracting each service and the service information corresponding to each service, the multiple services and the service information corresponding to the multiple services can be summarized, and the summarized results can be encapsulated to obtain the target service configuration file.
[0036] In some embodiments, the data acquisition method can be implemented through a data acquisition application, which can be deployed in a vehicle or a data acquisition unit of a vehicle. The data acquisition application can be provided with three modules: a dynamic service discovery module, a service information cache module, and a service information management module, so as to implement the data acquisition method of the present application through three modules.
[0037] Exemplarily, the dynamic service discovery module periodically (e.g., every 1s or every 2s) communicates with the SOME / IP protocol stack in the data acquisition unit (i.e., the aforementioned data acquisition protocol stack) to obtain the server message (the server message includes multiple services and service information of each of the multiple services). The SOME / IP protocol stack in the data acquisition unit can receive the server message sent by the service unit periodically (e.g., every 1s or every 2s) for multiple services, so that the dynamic service discovery module can obtain the server message from the SOME / IP protocol stack.
[0038] Afterwards, the service information caching module summarizes the service information of multiple services and multiple services in the server message into a service information list, and caches it as a service information list. Afterwards, the service information management module obtains the service information from the service information list, and encapsulates the service information obtained from the service information list as an API interface (Application Programming Interface), and obtains a service configuration file in the vsomeip.json format as the target service configuration file. The target service configuration file can provide the service information to other unit applications in the vehicle in the form of SOME / IP service.
[0039] In some embodiments, before receiving the server message sent by the data acquisition protocol stack, the method may include: in response to a target event trigger, sending a service information acquisition request to a service unit providing multiple services through the data acquisition protocol stack, so that the service unit providing multiple services returns the server message based on the service information acquisition request. The target event may include the first startup of the data acquisition application, the power-on of the vehicle, or the power-on of the data acquisition unit.
[0040] That is, when a target event occurs, the vehicle (or the vehicle's data acquisition unit) actively sends a service information acquisition request to the service unit providing multiple services through the data acquisition protocol stack. The service information acquisition request is used to request the service unit providing multiple services to return a server message.
[0041] In this embodiment, the data acquisition request can be generated based on the user's data acquisition operation for the target service, or it can be generated by the vehicle in response to a target event. The target event may refer to an event that requires obtaining data for the target service. For example, if the target service is air conditioning service, the target event may be powering on the vehicle, etc.
[0042] In some implementations, after obtaining the target service configuration file, a query interface corresponding to the target service may be obtained; and target service information corresponding to the target service may be obtained from the target service configuration file through the query interface corresponding to the target service.
[0043] In this embodiment, two types of query interfaces can be set: one SOME / IP R / R method interface for querying service information of a single service (for the sake of ease of description, this interface is referred to as the first query interface here) and one SOME / IP R / R method interface for querying service information of all services (for the sake of ease of description, this interface is referred to as the second query interface here).
[0044] When the target service is one or several services, the first query interface of each target service is called to obtain the target service information of the target service from the target service configuration file; when the target service is all services, the second query interface is called to obtain the service information of all services from the target service configuration file as the target service information.
[0045] S120. Obtain a payload return value corresponding to the target service from the target service unit corresponding to the target service according to the target service information as target data requested by the data acquisition request, and return the target data to the data acquisition unit.
[0046] The service unit providing the target service is used as the target service unit, and the vehicle or the data acquisition unit in the vehicle obtains the payload return value corresponding to the target service from the target service unit corresponding to the target service according to the target service information as the target data. If the execution subject of the data acquisition method of the present application is a vehicle, the vehicle returns the target data to the data acquisition unit. If the execution subject of the data acquisition method of the present application is the data acquisition unit, after the data acquisition unit obtains the payload return value corresponding to the target service, it can directly use the payload return value corresponding to the target service as the target data to be acquired.
[0047] In the present application, after obtaining the target service information of the target service from the target service configuration file, the target service for which SOME / IP data needs to be collected can be determined according to the target service information by calling or subscribing, and then the target service's payload return value (the format of SOME / IP data) is obtained from the target service unit corresponding to the target service as the target data requested by the data acquisition request.
[0048] After obtaining the target data, data management operations can be performed on the target data: splitting, reorganizing, storing or uploading (uploading to the cloud connected to the vehicle communication) and other operations.
[0049] Exemplarily, the data acquisition process is as follows: Figure 2 As shown, the data acquisition unit on the vehicle serves as the execution entity, and the data acquisition unit is also configured with a dynamic service discovery module, a service information storage module, a service information management module and a SOME / IP protocol stack, so as to obtain the target service configuration file through the dynamic service discovery module, the service information storage module and the service information management module, and implement the aforementioned S110-S120 data acquisition process through the generated target service configuration file.
[0050] First, service information sent by service unit 1, service unit 2, ..., service unit n for multiple services is received through the SOME / IP protocol stack; then, the dynamic service discovery module obtains the service information of the multiple services from the SOME / IP protocol stack, and the service information cache module summarizes the service information of the multiple services into a service information list and caches it as a service information list; then, the service information management module obtains the service information from the service information list and encapsulates the service information obtained from the service information list into a target service configuration file.
[0051] Afterwards, the data acquisition unit determines target service information of the target service using the target service configuration file, and then acquires target data according to the target service information.
[0052] In this embodiment, the target service configuration file includes service information of each of the multiple services, and directly responds to the data acquisition request, obtains the target service information corresponding to the target service requested by the data acquisition request from the target service configuration file, and then obtains the payload return value corresponding to the target service according to the target service information, as the target data requested by the data acquisition request. It is not necessary to obtain the target service information of the target service from the provider of the target service after receiving the data acquisition request, which saves the interaction time with the service provider of the target service, improves the efficiency of obtaining the target service information, and further improves the efficiency of obtaining the target data according to the target service information.
[0053] At the same time, the target service configuration file is generated based on the server message sent by the data acquisition protocol stack in the data acquisition unit; the server message is sent to the data acquisition protocol stack by the service unit providing multiple services, and the server message is generated by the service unit providing multiple services according to the service information for multiple services. The whole process does not require user participation, thereby realizing the process of automatic generation of the target service configuration file by the vehicle, and there is no need to manually configure the target service configuration file, which reduces the time consumption of manually configuring the target service configuration file and improves the generation efficiency of the target service configuration file.
[0054] In one embodiment, if Figure 3 As shown, step S110 may include:
[0055] S210: In response to the data acquisition request, determine whether there is target service information corresponding to the target service in an existing service configuration file.
[0056] Among them, the existing service configuration file is generated based on the existing server message sent by the data acquisition protocol stack; the existing server message is generated by a service unit providing multiple existing services and sent to the data acquisition protocol stack, and the existing server message is generated by the service unit providing multiple existing services according to service information for multiple existing services.
[0057] That is to say, before receiving the data acquisition request, there is already a service configuration file, which is used as an existing service configuration file, and a service in the existing service configuration file is used as an existing service. At this time, the existing service configuration file includes multiple existing services and service information corresponding to each of the multiple existing services.
[0058] In this embodiment, the service unit providing the existing service generates an information message as an existing server message based on the service information for the existing service, and then sends the existing service message to the data acquisition protocol stack of the data acquisition unit. Thereafter, the vehicle (or data acquisition unit) can receive the existing server message sent by the data acquisition protocol stack, and encapsulate it into a service configuration file according to the aforementioned process based on the existing server message as the existing service configuration file, and then, when receiving a data acquisition request, determine whether the target service information corresponding to the target service exists in the existing service configuration file.
[0059] S220: If the target service information corresponding to the target service exists in the existing service configuration file, obtain the existing service configuration file as the target service configuration file; and obtain the target service information corresponding to the target service from the target service configuration file.
[0060] If the target service information corresponding to the target service exists in the existing service configuration file, it means that the target service information corresponding to the target service can be obtained from the existing service configuration file. Therefore, the existing service configuration file is directly used as the target service configuration file, and then the target service information corresponding to the target service is obtained from the target service configuration file. At this time, an existing service in the existing service configuration file is a service in the target service configuration file.
[0061] S230. If the target service information corresponding to the target service does not exist in the existing service configuration file, obtain an update service message from the service unit providing the update service through the data acquisition protocol stack; update the existing service configuration file according to the update service and the service information corresponding to the update service in the update service message to obtain the target service configuration file; obtain the target service information corresponding to the target service from the target service configuration file.
[0062] The update service end message is generated by a service unit providing update service according to service information for update service.
[0063] If the target service information corresponding to the target service does not exist in the existing service configuration file, it means that the target service information corresponding to the target service cannot be obtained from the existing service configuration file. At this time, an update service message can be obtained from the service unit used to provide the update service (the update service message is an information message generated by the service unit providing the update service according to the service information for the update service). After obtaining the update service message, the update service and the service information corresponding to the update service can be extracted from the update service message, and then the update service and the service information corresponding to the update service can be added to the existing service configuration file to update the existing service configuration file and obtain the target service configuration file.
[0064] Generally speaking, all services involved in a vehicle are fixed, and the existing services in an existing service configuration file are all or part of all services involved in the vehicle. However, there is no target service information corresponding to the target service in the existing service configuration file, which means that the existing service in the existing service configuration file is only a part of all services involved in the vehicle, and the existing service configuration file at least lacks the service information of the target service. At this time, the target service can be obtained as an update service, or other services among all services involved in the vehicle except the existing services included in the existing service configuration file can be obtained as update services, and then an update service-side message can be obtained from the service unit providing the update service.
[0065] In some embodiments, if the target service information corresponding to the target service does not exist in the existing service configuration file, all services involved in the vehicle can be directly obtained as update services, and an update service message can be obtained from the service unit providing the update service, and then based on the update service message, a service configuration file is generated according to the aforementioned process, and the service configuration file is used as the target service configuration file. At this time, after obtaining the target service configuration file, the existing service configuration file can also be deleted to avoid the storage of redundant and repeated data and free up storage space.
[0066] In this embodiment, if the target service information corresponding to the target service exists in an existing service configuration file, the target service information corresponding to the target service is directly obtained from the existing service configuration file; if the target service information corresponding to the target service does not exist in the existing service configuration file, the existing service configuration file is updated to obtain the target service configuration file, and then the target service information corresponding to the target service is obtained from the target service configuration file, thereby realizing real-time update of the service information of multiple services, so as to accurately and quickly obtain the target service information of the target service.
[0067] See attached Figure 4 , Figure 4 The structure block diagram of a data acquisition device proposed in one embodiment of the present application is shown. For a vehicle, the device 800 includes:
[0068] The response module 810 is used to respond to the data acquisition request of the data acquisition unit and obtain the target service information corresponding to the target service requested by the data acquisition request from the target service configuration file; the target service configuration file includes the service information of each of the multiple services; the target service configuration file is generated based on the server message sent by the data acquisition protocol stack in the data acquisition unit; the server message is sent to the data acquisition protocol stack by the service unit providing multiple services, and the server message is generated by the service unit providing multiple services according to the service information for the multiple services;
[0069] The acquisition module 820 is used to acquire the payload return value corresponding to the target service from the target service unit corresponding to the target service according to the target service information as the target data requested by the data acquisition request, and return the target data to the data acquisition unit.
[0070] Optionally, the response module 810 is further used to receive a server message sent by the data acquisition protocol stack; extract multiple services and their respective service information from the server message; encapsulate the multiple services and their respective service information to obtain a target service configuration file.
[0071] Optionally, the response module 810 is further used to respond to the target event triggering and send a service information acquisition request to the service unit providing multiple services through the data acquisition protocol stack, so that the service unit providing multiple services returns a server message based on the service information acquisition request.
[0072] Optionally, the response module 810 is also used to determine whether there is target service information corresponding to the target service in the existing service configuration file in response to the data acquisition request; the existing service configuration file is generated based on an existing server message sent by the data acquisition protocol stack; the existing server message is generated by a service unit that provides multiple existing services and sent to the data acquisition protocol stack, and the existing server message is generated by the service unit that provides multiple existing services according to service information for multiple existing services; if the target service information corresponding to the target service exists in the existing service configuration file, the existing service configuration file is obtained as the target service configuration file; and the target service information corresponding to the target service is obtained from the target service configuration file.
[0073] Optionally, the response module 810 is also used to obtain an update service message from a service unit providing the update service through a data acquisition protocol stack if the target service information corresponding to the target service does not exist in an existing service configuration file; the update service message is generated by the service unit providing the update service according to the service information for the update service; the existing service configuration file is updated according to the update service in the update service message and the service information corresponding to the update service to obtain the target service configuration file; and the target service information corresponding to the target service is obtained from the target service configuration file.
[0074] Optionally, the response module 810 is further used to obtain a query interface corresponding to the target service; and obtain target service information corresponding to the target service from the target service configuration file through the query interface corresponding to the target service.
[0075] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0076] In addition, each function in each embodiment of the present application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated module can be implemented in the form of hardware or in the form of software function module.
[0077] In addition, each function in each embodiment of the present application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated module can be implemented in the form of hardware or in the form of software function module.
[0078] In addition, each function in each embodiment of the present application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated module can be implemented in the form of hardware or in the form of software function module.
[0079] Please refer to Figure 5 , which shows a structural block diagram of a vehicle provided according to an embodiment of the present application. The vehicle 500 in the present application may include one or more of the following components: a processor 510, a memory 520, and one or more applications. The one or more applications may be stored in the memory 520 and configured to be executed by one or more processors 510, and the one or more programs are configured to execute the method described in the aforementioned method embodiment.
[0080] The processor 510 may include one or more processing cores. The processor 510 uses various interfaces and lines to connect various parts of the entire vehicle 500, and executes various functions and processes data of the vehicle 500 by running or executing instructions, programs, code sets or instruction sets stored in the memory 520, and calling data stored in the memory 520. Optionally, the processor 510 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 510 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 510, but may be implemented separately through a communication chip.
[0081] The memory 520 may include a random access memory (RAM) or a read-only memory (ROM). The memory 520 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 520 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data created by the vehicle 500 during use (such as a phone book, audio and video data, chat record data), etc.
[0082] On the other hand, the present application also provides a computer-readable storage medium, in which program code is stored. The program code can be called by a processor to execute the method described in the above method embodiment.
[0083] The computer readable storage medium can be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a cluster of ROMs. Optionally, the computer readable storage medium includes a non-transitory computer-readable storage medium. The computer readable storage medium has storage space for program codes that execute any of the method steps in the above method. These program codes can be read from or written into one or more computer program products. The program code can be compressed, for example, in an appropriate form.
[0084] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A data acquisition method, characterized in that: The method comprises: In response to a data acquisition request of a data acquisition unit, target service information corresponding to a target service requested by the data acquisition request is acquired from a target service configuration file; the target service configuration file includes service information of each of a plurality of services; the target service configuration file is generated based on a server message sent by a data acquisition protocol stack in the data acquisition unit; the server message is sent to the data acquisition protocol stack by a service unit providing the plurality of services, and the server message is generated by the service unit providing the plurality of services according to the service information for the plurality of services; According to the target service information, a payload return value corresponding to the target service is obtained from the target service unit corresponding to the target service as the target data requested by the data acquisition request, and the target data is returned to the data acquisition unit.
2. The method according to claim 1, characterized in that Before the step of obtaining, in response to the data acquisition request of the data acquisition unit, target service information corresponding to the target service requested by the data acquisition request from the target service configuration file, the method further comprises: Receiving a server message sent by the data acquisition protocol stack; Extracting the multiple services and the service information of each of the multiple services from the server message; The multiple services and their respective service letters are encapsulated to obtain the target service configuration file.
3. The method according to claim 2, characterized in that Before receiving the server message sent by the data acquisition protocol stack, the method further includes: In response to the target event triggering, a service information acquisition request is sent to the service unit providing the multiple services through the data acquisition protocol stack, so that the service unit providing the multiple services returns the server message based on the service information acquisition request.
4. The method according to claim 1, characterized in that: The step of responding to the data acquisition request of the data acquisition unit and acquiring target service information corresponding to the target service requested by the data acquisition request from the target service configuration file includes: In response to the data acquisition request, determining whether there is target service information corresponding to the target service in an existing service configuration file; the existing service configuration file is generated based on an existing server message sent by the data acquisition protocol stack; the existing server message is generated by a service unit providing multiple existing services and sent to the data acquisition protocol stack, and the existing server message is generated by the service unit providing the multiple existing services according to service information for the multiple existing services; If the target service information corresponding to the target service exists in the existing service configuration file, obtaining the existing service configuration file as the target service configuration file; The target service information corresponding to the target service is obtained from the target service configuration file.
5. The method according to claim 4, characterized in that The step of obtaining target service information corresponding to the target service requested by the data acquisition request from the target service configuration file in response to the data acquisition request of the data acquisition unit further includes: If the target service information corresponding to the target service does not exist in the existing service configuration file, obtaining an update service end message from the service unit providing the update service through the data acquisition protocol stack; the update service end message is generated by the service unit providing the update service according to the service information for the update service; According to the update service in the update server message and the service information corresponding to the update service, the existing service configuration file is updated to obtain a target service configuration file; The target service information corresponding to the target service is obtained from the target service configuration file.
6. The method according to claim 1, characterized in that The step of acquiring target service information corresponding to the target service requested by the data acquisition request from the target service configuration file includes: Obtain the query interface corresponding to the target service; The target service information corresponding to the target service is obtained from the target service configuration file through the query interface corresponding to the target service.
7. The method according to claim 1, characterized in that The service information of the service includes the service instance, version, life cycle, stage, service availability status and deployment information of the service.
8. A data acquisition device, characterized in that: The device comprises: A response module, configured to respond to a data acquisition request of a data acquisition unit and obtain target service information corresponding to a target service requested by the data acquisition request from a target service configuration file; the target service configuration file includes service information of each of a plurality of services; the target service configuration file is generated based on a server message sent by a data acquisition protocol stack in the data acquisition unit; the server message is sent to the data acquisition protocol stack by a service unit providing the plurality of services, and the server message is generated by the service unit providing the plurality of services according to the service information for the plurality of services; An acquisition module is used to acquire a payload return value corresponding to the target service from a target service unit corresponding to the target service according to the target service information as target data requested by the data acquisition request, and return the target data to the data acquisition unit.
9. A vehicle, characterized in that: include: one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program code executable by a processor, and when the program code is executed by the processor, the processor executes the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Data generation method and device, terminal equipment and medium
CN113608518A
Data request method, device and equipment for multiple servers and storage medium
CN113709187A
Micro-service request processing method and device, equipment and medium
CN114866617A
Power meter safety terminal cover structure
KR1020250106984A
