Data processing method and device, electronic equipment and computer readable medium

By generating and transmitting configuration files in the vehicle computer system, the problem of mismatch between the service provider and the service caller version is solved, reducing development workload and improving version upgrade speed and user experience.

CN120276788APending Publication Date: 2025-07-08GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510020865.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-06
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

In the vehicle computer system, in the face of the problem of mismatch between the service provider and the service caller version, the existing technology solves it through hard coding, resulting in a large workload for developers.

Method used

Provide a data processing method, which sends vehicle configuration information to the cloud in response to vehicle configuration updates, generates configuration files in the cloud and sends them to the vehicle terminal. The vehicle terminal performs service discovery, invokes, broadcasts and provides operations based on the configuration files to achieve service version matching. Developers only need to design configuration files and do not need to write professional tools to generate interface code.

Benefits of technology

It reduces the workload of developers, improves the speed and efficiency of version upgrades, ensures successful service calls, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120276788A_ABST
    Figure CN120276788A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device, electronic equipment and a computer readable medium, and belongs to the technical field of vehicle infotainment systems, and the method comprises the steps: responding to a triggering operation of vehicle configuration updating, and sending vehicle configuration information to a cloud, the vehicle configuration information comprising software configuration information and hardware configuration information; a configuration file sent by the cloud is received, the configuration file is determined according to the vehicle configuration information under the condition that the cloud determines that the vehicle configuration information is updated, and the configuration file comprises a mapping relation between an operating system service interface and a service-oriented architecture service interface; the mapping relation between the service-oriented architecture service interface and the hardware service interface is determined; and performing at least one operation of service discovery, service calling, service broadcasting and service providing based on the configuration file. Developers only need to design the configuration file, and do not need to write arxml and generate interface codes with professional tools, so that the workload of the developers is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of in-vehicle systems, and more specifically, to a data processing method, apparatus, electronic device, and computer-readable medium. Background Art

[0002] In an in-vehicle system, in the face of the problem of version mismatch between service providers and service callers, the adopted solution is to solve the version mismatch problem through hard coding, which imposes a very heavy workload on developers. Summary of the Invention

[0003] This application proposes a data processing method, apparatus, electronic device, and computer-readable medium to improve the above defects.

[0004] In a first aspect, this application provides a data processing method applied to a vehicle terminal. The method includes: in response to a trigger operation for vehicle configuration update, sending vehicle configuration information to the cloud, where the vehicle configuration information includes software configuration information and hardware configuration information; receiving a configuration file sent by the cloud, where the configuration file is a configuration file determined by the cloud according to the vehicle configuration information when it is determined that the vehicle configuration information has been updated, and the configuration file includes the mapping relationship between the operating system service interface and the service-oriented architecture service interface, and the mapping relationship between the service-oriented architecture service interface and the hardware service interface; performing at least one of service discovery, service invocation, service broadcast, and service provision based on the configuration file.

[0005] Optionally, for a possible implementation, the performing at least one of service discovery, service invocation, service broadcast, and service provision based on the configuration file includes: determining a corresponding first reference service based on the obtained reference task, where the first reference service is a service of the operating system; determining a second reference service corresponding to the first reference service according to the configuration file, where the second reference service is a service in the service-oriented architecture; determining whether the registration information of the second reference service can be found in the service registry; if the registration information of the second reference service can be found in the service registry, determining that the discovery of the second reference service is successful; if the registration information of the second reference service cannot be found in the service registry, determining that the discovery of the second reference service fails.

[0006] Optionally, for a possible implementation, performing at least one of service discovery, service invocation, service broadcast, and service provision based on the configuration file includes: in response to a request to execute a target task, determining a corresponding first target service based on the target task, where the first target service is a service in the operating system; determining a second target service corresponding to the first target service based on the configuration file, where the second target service is a service in the service-oriented architecture; determining a target hardware service corresponding to the second target service based on the configuration file, where the target hardware service is a service in the hardware service; determining whether there is a communication channel between the second target service interface and the target hardware service interface; if there is a communication channel between the second target service interface and the target hardware service interface, then invoking the second target service to execute the target task.

[0007] Optionally, for a possible implementation, determining whether there is a communication channel between the second target service interface and the target hardware service interface includes: determining a target hardware device based on the target hardware service; determining whether the target hardware device is available; if the target hardware device is available, then determining whether there is a communication channel between the second target service interface and the target hardware service interface; if there is no communication channel between the second target service interface and the target hardware service interface, then determining that the invocation of the second target service fails.

[0008] In a second aspect, the present application provides a data processing method, which is applied to the cloud and includes: obtaining vehicle configuration information sent by the vehicle end, where the vehicle configuration information includes software configuration information and hardware configuration information; determining whether the vehicle configuration information has been updated; if it has been updated, then generating a corresponding configuration file based on the vehicle configuration information, where the configuration file includes the mapping relationship between the operating system service interface and the service-oriented architecture service interface, and the mapping relationship between the service-oriented architecture service interface and the hardware service interface; sending the configuration file to the vehicle end, and the vehicle end is used to perform at least one of service discovery, service invocation, service broadcast, and service provision based on the configuration file when receiving the configuration file sent by the cloud.

[0009] Optionally, for a possible implementation, sending the configuration file to the vehicle end includes: determining whether the historical configuration file before the update of the vehicle configuration information is the same as the configuration file; if the historical configuration file before the update of the vehicle configuration information is different from the configuration file, then sending the configuration file to the target vehicle.

[0010] In a third aspect, the present application further provides a data processing device, which is applied to the vehicle end and includes: a sending unit, configured to send vehicle configuration information to the cloud in response to a trigger operation for vehicle configuration update, where the vehicle configuration information includes software configuration information and hardware configuration information; a receiving unit, configured to receive a configuration file sent by the cloud, where the configuration file is a configuration file determined by the cloud according to the vehicle configuration information when it is determined that the vehicle configuration information has been updated, and the configuration file includes the mapping relationship between the operating system service interface and the service-oriented architecture service interface, and the mapping relationship between the service-oriented architecture service interface and the hardware service interface; an execution unit, configured to perform at least one of service discovery, service invocation, service broadcast, and service provision based on the configuration file.

[0011] In a fourth aspect, the present application further provides a data processing device, which is applied to the cloud and includes: an obtaining unit, configured to obtain an adaptive module upgrade request sent by the vehicle end, where the adaptive module upgrade request includes vehicle configuration information, and the vehicle configuration information includes operating system software configuration information and hardware configuration information; a judging unit, configured to judge whether the vehicle configuration information has been updated; a generating unit, configured to, if it has been updated, generate a corresponding configuration file based on the vehicle configuration information, where the configuration file includes the mapping relationship between the operating system service interface and the service-oriented architecture service interface, and the mapping relationship between the service-oriented architecture service interface and the hardware service interface; a file sending unit, configured to send the configuration file to the vehicle end, and the vehicle end is configured to perform at least one of service discovery, service invocation, service broadcast, and service provision based on the configuration file received from the cloud.

[0012] In a fifth aspect, the present application further provides an electronic device, including: one or more processors; a memory; one or more application programs, where the one or more application programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more application programs are configured to execute the foregoing method.

[0013] In a sixth aspect, the present application further provides a computer-readable medium, where the readable storage medium stores program code executable by a processor, and when the program code is executed by the processor, the processor is caused to execute the foregoing method.

[0014] In a seventh aspect, the present application further provides a computer program product, including computer programs / instructions, characterized in that when the computer programs / instructions are executed by a processor, the foregoing method is implemented.

[0015] The present application proposes a data processing method. In response to a trigger operation for vehicle configuration update, vehicle configuration information is sent to the cloud, where the vehicle configuration information includes software configuration information and hardware configuration information. A configuration file is received, which is a configuration file determined by the cloud based on the vehicle configuration information when it is determined that the vehicle configuration information has been updated. The configuration file includes the mapping relationship between the operating system service interface and the service-oriented architecture service interface, and the mapping relationship between the service-oriented architecture service interface and the hardware service interface. At least one operation among service discovery, service call, service broadcast, and service provision is performed based on the configuration file. This can solve the problem of version mismatch between the service caller and the service provider. On the one hand, developers only need to design the configuration file, rather than writing arxml and generating interface code with professional tools, reducing the workload of developers. On the other hand, the data volume of the configuration file in the present application is small, and the speed of transmitting the configuration file is also fast, enabling more rapid version upgrade.

[0016] Other features and advantages of the present application will be described in the subsequent specification. Moreover, some of them will become apparent from the specification or be understood by implementing the present application. The objectives and other advantages of the present application can be achieved and obtained through the structures specifically pointed out in the written specification, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0018] Figure 1 It shows a system block diagram for implementing the data processing method provided by an embodiment of the present application; Figure 2 It shows a method flowchart for data processing provided by an embodiment of the present application; Figure 3 It shows a method flowchart for a data processing method provided by another embodiment of the present application; Figure 4 It shows a method flowchart for a data processing method provided by still another embodiment of the present application; Figure 5 It shows a method flowchart for a data processing method provided by still another embodiment of the present application; Figure 6 It shows a method flowchart for a data processing method provided by still another embodiment of the present application; Figure 7The method flow chart of the data processing method provided by still another embodiment of the present application is shown; Figure 8 The structural block diagram of the data processing device provided by the embodiment of the present application is shown; Figure 9 The structural block diagram of the data processing device provided by another embodiment of the present application is shown; Figure 10 The structural block diagram of the electronic device provided by the embodiment of the present application is shown; Figure 11 The structural block diagram of the computer-readable storage medium provided by the embodiment of the present application is shown; Figure 12 The structural block diagram of the computer program product provided by the embodiment of the present application is shown. Detailed implementation manners

[0019] In order to enable those skilled in the art of the present technology to better understand the solution of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Usually, the components of the embodiments of the present application described and shown in the accompanying 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 accompanying drawings is not intended to limit the scope of the present application to be protected, but only represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present application.

[0020] It should be noted that: similar reference numerals and letters indicate similar items in the following drawings. Therefore, 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 the present application, the terms "first", "second", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.

[0021] It should be noted that the vehicle-end operating system controls the hardware through a service-oriented architecture (SOA). The operating system is connected to the service-oriented architecture through a service interface, and the service-oriented architecture is connected to the hardware through a hardware service interface. When the operating system or the hardware configuration is upgraded and the corresponding service-oriented architecture is not updated, the original service interface may fail to be called. Therefore, it is necessary to perform service version adaptation.

[0022] In the technical solution of the in-vehicle system based on the service-oriented architecture for the in-vehicle Android system, the Android in-vehicle terminal often implements SOA service discovery and invocation through hard coding. When the service invoker and the service provider do not coordinate and synchronize the upgrade, there will be a problem that the invoker shows that the service is available, but the actual call cannot be successfully made. Facing the problem of version mismatch between the service provider and the service invoker, using the hard coding method to solve the version mismatch problem requires writing arxml and generating interface codes with professional tools, and then carrying out integrated development, which involves a very large workload for developers.

[0023] It should be noted that the service invoker and the service provider are relative. For example, when invoking the SOA service interface through the service interface of the operating system, the service invoker is the operating system at this time, and the service provider is the SOA service architecture. For example, when invoking the hardware service interface through the SOA service interface, the service invoker is the SOA service interface at this time, and the service provider is the hardware service.

[0024] Therefore, in the embodiments of the present application, a data processing method, device, electronic device, and computer-readable medium are provided. When the operating system or hardware configuration of the vehicle end is updated, the updated information will be synchronized to the cloud. The cloud generates a matching configuration file based on the updated information and the vehicle information. The configuration file includes the mapping relationship between the operating system service interface and the service-oriented architecture service interface, and the mapping relationship between the service-oriented architecture service interface and the hardware service interface. The cloud sends this configuration file to the corresponding vehicle end, and the vehicle end can perform at least one of service discovery, service invocation, service broadcast, and service provision based on the obtained configuration file, realizing the version matching between the service invoker and the service provider. Developers only need to design the configuration file, rather than writing arxml and generating interface codes with professional tools, reducing the workload of developers and can solve or partially solve the above problems.

[0025] It should be noted that, please refer to Figure 1 , which shows the system block diagram of the data processing method of the present application, including the in-vehicle system of the vehicle end 20 and the processing system of the cloud end 10.

[0026] The in-vehicle system includes an operating system, a service-oriented architecture, a hardware configuration, and an adaptive module 21. Among them, the adaptive module is used to automatically call the service interface of the service provider according to the call interface of the service invoker, and service provision, service invocation, service broadcast, and service discovery can be realized based on the adaptive module.

[0027] The processing system in the cloud includes a vehicle information database 11, an operating system service library 12, and an SOA service library 13. Among them, the vehicle information database records information such as the model type of each vehicle on the platform, vehicle hardware configuration, vehicle software configuration, etc., as well as the vehicle identification code of each vehicle. The operating system service library contains all operating system function services supported by the platform, as well as the relationships between vehicle hardware configuration, service-oriented architecture services, and vehicle model software versions; the SOA service library contains all service-oriented architecture service interface information supported by the platform.

[0028] Taking the Android operating system as an example, the Android service library contains all Android function services supported by the platform and the relationships between vehicle hardware configuration, SOA services, and vehicle model software versions; the SOA service library contains all SOA service interface information supported by the platform.

[0029] Please refer to Figure 2 , which shows a flowchart of a data processing method provided by an embodiment of the present application, applied to the vehicle side. This method specifically includes steps S110 to S120.

[0030] Step S110: In response to a trigger operation for vehicle configuration update, send vehicle configuration information to the cloud, where the vehicle configuration information includes software configuration information and hardware configuration information.

[0031] It should be noted that the software configuration information includes the configuration information of the operating system and the version information of each application program based on the operating system. The hardware configuration information represents the configuration of the vehicle's hardware devices. An update of at least one of the operating system version, application program version, and hardware configuration version is determined as a vehicle configuration information update. Specifically, the situations of software configuration information change include: uploading the initial version after the vehicle leaves the factory, over-the-air (OTA) updating the software version after the vehicle leaves the factory, and offline software version upgrade after vehicle after-sales service, etc. The situations of hardware configuration change include: uploading the initial configuration after the vehicle leaves the factory and optional configuration change after vehicle after-sales service, etc.

[0032] It can be understood that updating the software configuration information or hardware configuration of the vehicle is generally operated by professional staff in a dedicated vehicle enterprise site. And after the professional staff updates the vehicle configuration information, they will upload the vehicle configuration information to the cloud. It is also possible for the driver to update the software version or hardware configuration on the vehicle side and upload the updated vehicle configuration information to the cloud.

[0033] If the staff or user triggers a vehicle software configuration update or hardware configuration update, after the vehicle obtains this trigger information and in response to the trigger operation of the vehicle configuration information, it sends the vehicle configuration information to the cloud.

[0034] Step S120: Receive the configuration file sent by the cloud. The configuration file is determined by the cloud based on the vehicle configuration information when it is determined that the vehicle configuration information has been updated. The configuration file includes the mapping relationship between the operating system service interface and the service-oriented architecture service interface, and the mapping relationship between the service-oriented architecture service interface and the hardware service interface.

[0035] It should be noted that the cloud stores data of different versions of the vehicle. The cloud can determine whether the vehicle configuration information of the vehicle has been updated based on the vehicle configuration information uploaded by the vehicle terminal. If it is determined that the vehicle configuration information has been updated, a configuration file is determined according to the vehicle configuration information and the determined configuration file is sent to the vehicle terminal. The configuration file includes the mapping relationship between the operating system service interface and the service-oriented architecture service interface, and the mapping relationship between the service-oriented architecture service interface and the hardware service interface.

[0036] Therefore, if the vehicle terminal receives the configuration file sent by the cloud, it can obtain the mapping relationship between the operating system service interface and the service-oriented architecture service interface, and the mapping relationship between the service-oriented architecture service interface and the hardware service interface according to the configuration file.

[0037] Step S130: Perform at least one of service discovery, service invocation, service broadcast, and service provision based on the configuration file.

[0038] After receiving the configuration file, the vehicle terminal parses and reads the configuration file, and combines with the adaptive module of the vehicle terminal to implement at least one of service discovery, service invocation, service broadcast, and service provision.

[0039] It should be noted that the adaptive module is used to automatically call the service interface of the service provider according to the call interface of the service caller. For example, when the application program calls the adaptive module through the operating system service interface, the adaptive module automatically converts to call the service-oriented architecture service interface corresponding to the service interface. When the service-oriented architecture service interface calls the adaptive module, the adaptive module automatically converts to call the hardware service interface corresponding to the service interface, and calling the hardware service interface is used to control the corresponding hardware device to perform corresponding tasks.

[0040] Specifically, service discovery refers to the process in which a service caller can identify and locate available services when needed. Service invocation refers to the direct interaction between a service caller and a service provider. The service caller uses the service by sending a request and receiving a response. Service broadcast refers to the service provider notifying other service callers in the network of the existence, status, or change information of its service. Service provision refers to the service provider creating and exposing one or more services for other service callers to use.

[0041] In one implementation scenario, when the vehicle detects a trigger operation for updating the vehicle configuration information, it sends the configuration information to the cloud in response to the trigger operation of the vehicle configuration information. When the vehicle terminal receives the configuration file sent by the cloud, it performs at least one of service discovery, service invocation, service broadcast, and service provision based on the configuration file.

[0042] This application proposes a data processing method. In response to a trigger operation for vehicle configuration update, it sends vehicle configuration information to the cloud, where the vehicle configuration information includes software configuration information and hardware configuration information; it receives a configuration file sent by the cloud, and the configuration file is a configuration file determined by the cloud based on the vehicle configuration information when it determines that the vehicle configuration information has been updated. The configuration file includes the mapping relationship between the operating system service interface and the service-oriented architecture service interface, and the mapping relationship between the service-oriented architecture service interface and the hardware service interface; it performs at least one of service discovery, service invocation, service broadcast, and service provision based on the configuration file. This can solve the problem of version mismatch between the service invoker and the service provider. On the one hand, developers only need to design the configuration file, rather than using professional tools to write arxml and generate interface code, reducing the workload of developers. On the other hand, the data volume of the configuration file in this application is small, and the speed of transmitting the configuration file is also fast, enabling more rapid version upgrade.

[0043] Furthermore, the configuration file also includes the mapping method between the operating system service interface and the service-oriented architecture service interface, and the mapping method between the service-oriented architecture service interface and the hardware service interface. After the adaptive module reads the configuration file, it can correctly invoke the corresponding service interface based on the mapping method of the service interface.

[0044] Please refer to Figure 3 , which shows a flowchart of a data processing method provided by an embodiment of this application, applied to the vehicle terminal. This method specifically includes steps S210 to S270.

[0045] Step S210: In response to a trigger operation for vehicle configuration update, send vehicle configuration information to the cloud, where the vehicle configuration information includes software configuration information and hardware configuration information.

[0046] Step S220: Receive the configuration file sent by the cloud, and the configuration file is a configuration file determined by the cloud based on the vehicle configuration information when it determines that the vehicle configuration information has been updated. The configuration file includes the mapping relationship between the operating system service interface and the service-oriented architecture service interface, and the mapping relationship between the service-oriented architecture service interface and the hardware service interface.

[0047] Among them, steps S210 and S220 have been introduced in detail in the foregoing embodiments, and will not be elaborated here.

[0048] Step S230: Determine a corresponding first reference service based on the obtained reference task, where the first reference service is a service of the operating system.

[0049] It should be noted that the corresponding first reference service can be determined based on the reference task and the operating system. Exemplarily, if the reference task is seat heating, the operating system can determine the corresponding service of the operating system based on the seat heating task.

[0050] Step S240: Determine a second reference service corresponding to the first reference service according to the configuration file, where the second reference service is a service in the service-oriented architecture.

[0051] It should be known that the configuration file includes the mapping relationship between the operating system service interface and the service-oriented architecture service interface. Therefore, the second reference service corresponding to the first reference service can be determined according to the configuration file.

[0052] Step S250: Determine whether the registration information of the second reference service can be found in the service registry.

[0053] It should be noted that when establishing the mapping relationship of each service interface of the SOA, service registration will be performed, that is, the information of the service will be recorded in the service registry. Therefore, it can be judged whether the SOA service can be found by searching the service registry.

[0054] Step S260: If the registration information of the second reference service can be found in the service registry, it is determined that the discovery of the second reference service is successful.

[0055] If the registration information of the second reference service can be found in the service registry, it is determined that the discovery of the second reference service is successful, and then the second reference service interface can be directly called subsequently.

[0056] Step S270: If the registration information of the second reference service cannot be found in the service registry, it is determined that the discovery of the second reference service fails.

[0057] If the registration information of the second reference service cannot be found in the service registry, it is determined that the discovery of the second reference service fails, indicating that the second reference service interface cannot be directly called.

[0058] It should be noted that the reference task can be triggered by the user. When the user triggers the reference task, it means that the user wants to execute the reference task. Based on the configuration file, the first reference service and the second reference service corresponding to the reference task are determined. Before calling the second reference service, it is necessary to discover the second reference service. If the service discovery fails, it means that the reference task cannot be executed temporarily. If the service discovery is successful, it means that the second reference service can be further called.

[0059] Furthermore, the reference task can be determined by the operating system. The implementation scenario of service discovery in this application can be the process of vehicle startup, that is, during the vehicle startup process, it is judged whether the second reference service corresponding to the reference task is successfully discovered, and the result of service discovery is fed back to the vehicle terminal. That is, after the vehicle startup is completed, the user can know which second reference services corresponding to the reference tasks are successfully discovered and which second reference services corresponding to the reference tasks are discovered to fail. In other words, the user can know which tasks will fail to execute.

[0060] In the existing in-vehicle system, there is a problem that the service provider displays that the service is available, but actually it cannot be successfully called. In the view of the user, a certain function can be realized. After initiating an execution instruction, the in-vehicle system has no response, and the user doesn't know where the problem lies, which gives the user a bad experience.

[0061] However, this application can perform service discovery on each service during the vehicle startup process, mark the services with discovery failures and feedback them to the user. When the user opens the corresponding application, the user can clearly know which functions can be used and which functions cannot be used, and thus there will be no confusion, improving the user experience.

[0062] Please refer to Figure 4 , which shows a flowchart of a data processing method provided by an embodiment of this application and is applied to the vehicle terminal. This method specifically includes steps S310 to S370.

[0063] Step S310: In response to a trigger operation for vehicle configuration update, send vehicle configuration information to the cloud, where the vehicle configuration information includes software configuration information and hardware configuration information.

[0064] Step S320: Receive a configuration file sent by the cloud. The configuration file is a configuration file determined by the cloud according to the vehicle configuration information when it determines that the vehicle configuration information has been updated. The configuration file includes the mapping relationship between the operating system service interface and the service-oriented architecture service interface, and the mapping relationship between the service-oriented architecture service interface and the hardware service interface.

[0065] Among them, steps S310 and S320 have been introduced in detail in the foregoing embodiments and will not be elaborated here.

[0066] Step S330: In response to a request to execute a target task, determine a corresponding first target service based on the target task, where the first target service is a service in the operating system.

[0067] It should be noted that the target task represents a task that the user wants to execute. When the user triggers the execution of the target task, the vehicle end responds to the request to execute the target task and determines the corresponding first target service based on the target task. Specifically, the operating system of the vehicle end can determine the corresponding first target service according to the target task.

[0068] Step S340: Determine a second target service corresponding to the first target service based on the configuration file, where the second target service is a service in the service-oriented architecture.

[0069] It should be known that the configuration file includes the mapping relationship between the operating system service interface and the service-oriented architecture service interface. Therefore, the second target service corresponding to the first target service can be determined according to the configuration file.

[0070] Step S350: Determine a target hardware service corresponding to the second target service based on the configuration file, where the target hardware service is a service in the hardware service.

[0071] The configuration file includes the mapping relationship between the service-oriented architecture service interface and the hardware service interface, and the target hardware service corresponding to the second target service can be determined based on the configuration file.

[0072] Step S360: Determine whether there is a communication channel between the second target service interface and the target hardware service interface.

[0073] It should be noted that when the hardware configuration is updated, the service-oriented architecture service interface and the hardware interface service interface may change. The change means that there is no communication channel between the service-oriented architecture service interface and the hardware interface service interface. In other words, the versions of the service provider and the service invoker do not match. Therefore, before executing the target task, it is necessary to determine whether there is a communication channel between the service-oriented architecture service interface and the hardware interface service interface.

[0074] Step S370: If there is a communication channel between the second target service interface and the target hardware service interface, then call the second target service to execute the target task.

[0075] If there is a communication channel between the second target service and the target hardware service interface, then the target hardware service can be called to execute the target task based on the adaptive module.

[0076] If the second target service and the target hardware service interface do not have a communication channel, the target task cannot be directly executed by invoking the target hardware service. The communication channel between the second target service and the target hardware service can be established through Find Service, and then the target task can be executed after the communication channel is established.

[0077] Please refer to Figure 5 , which shows a flowchart of a data processing method provided by an embodiment of the present application, applied to the vehicle side. The method specifically includes steps S410 to S4100.

[0078] Step S410: In response to a trigger operation for vehicle configuration update, send vehicle configuration information to the cloud. The vehicle configuration information includes software configuration information and hardware configuration information.

[0079] Step S420: Receive a configuration file sent by the cloud. The configuration file is a configuration file determined by the cloud according to the vehicle configuration information when it is determined that the vehicle configuration information has been updated. The configuration file includes the mapping relationship between the operating system service interface and the service-oriented architecture service interface, and the mapping relationship between the service-oriented architecture service interface and the hardware service interface.

[0080] Step S430: In response to a request to execute a target task, determine a corresponding first target service based on the target task. The first target service is a service in the operating system.

[0081] Step S440: Determine a second target service corresponding to the first target service based on the configuration file. The second target service is a service of the service-oriented architecture.

[0082] Step S450: Determine a target hardware service corresponding to the second target service based on the configuration file. The target hardware service is a service in the hardware service.

[0083] Among them, steps S410 and S450 have been introduced in detail in the foregoing embodiments and will not be elaborated here.

[0084] Step S460: Determine a target hardware device according to the target hardware service.

[0085] It should be noted that the manufacturer of the hardware device will provide the hardware device and the corresponding hardware service. Therefore, the target hardware device can be determined according to the target hardware service.

[0086] Step S470: Determine whether the target hardware device is available.

[0087] It should be noted that when the hardware configuration is updated, some hardware may be added or some hardware may be removed. Therefore, before invoking the second target service, it is necessary to determine whether the target hardware device is available.

[0088] Step S480: If the target hardware device is available, determine whether there is a communication channel between the second target service interface and the target hardware service interface.

[0089] If the target hardware device is available, indicating that the hardware condition for executing the target task is available, then determine whether there is a communication channel between the second target service interface and the target hardware service interface.

[0090] Step S490: If the hardware device is not available, determine that the target service call fails.

[0091] If the hardware device is not available, indicating that the hardware condition for executing the target task is not available, then determine that the target service call fails.

[0092] Step S4100: If there is a communication channel between the second target service interface and the target hardware service interface, then invoke the second target service to execute the target task.

[0093] Among them, step S4100 has been introduced in detail in the foregoing embodiments and will not be elaborated here.

[0094] Please refer to Figure 6 , which shows a flowchart of a data processing method provided by an embodiment of the present application, applied to the cloud. The method specifically includes steps S510 to S540.

[0095] Step S510: Obtain vehicle configuration information sent by the vehicle terminal, where the vehicle configuration information includes software configuration information and hardware configuration information.

[0096] The cloud obtains the vehicle configuration information sent by the vehicle terminal and maintains the vehicle configuration information of the vehicle. The vehicle configuration information includes operating system information and hardware configuration information.

[0097] Step S520: Determine whether the vehicle configuration information has been updated.

[0098] The cloud can determine whether the vehicle configuration information of the vehicle has been updated based on the obtained vehicle configuration information and the historical vehicle configuration information of the vehicle.

[0099] Step S530: If it has been updated, then generate a corresponding configuration file based on the vehicle configuration information. The configuration file includes the mapping relationship between the operating system service interface and the service-oriented architecture service interface, and the mapping relationship between the service-oriented architecture service interface and the hardware service interface.

[0100] If the cloud confirms that the vehicle configuration information has been updated, a configuration file is generated based on the vehicle configuration information.

[0101] Step S540: Send the configuration file to the vehicle terminal, where the vehicle terminal is used to perform at least one of service discovery, service invocation, service broadcasting, and service provision based on the configuration file when receiving the configuration file sent by the cloud.

[0102] The cloud sends the configuration file to the corresponding vehicle terminal according to the vehicle identification code of the vehicle terminal.

[0103] Please refer to Figure 7 , which shows a flowchart of a data processing method provided by an embodiment of the present application and is applied to the cloud. This method specifically includes steps S610 to S650.

[0104] Step S610: Obtain the vehicle configuration information sent by the vehicle terminal, where the vehicle configuration information includes software configuration information and hardware configuration information.

[0105] Step S620: Determine whether the vehicle configuration information has been updated.

[0106] Step S630: If it has been updated, generate a corresponding configuration file based on the vehicle configuration information. The configuration file includes the mapping relationship between the operating system service interface and the service-oriented architecture service interface, and the mapping relationship between the service-oriented architecture service interface and the hardware service interface.

[0107] Among them, steps S610 and S630 have been introduced in detail in the foregoing embodiments and will not be elaborated here.

[0108] Step S640: Determine whether the historical configuration file before the update of the vehicle configuration information is the same as the configuration file.

[0109] It should be noted that there is a situation where the vehicle configuration information is updated, but the generated configuration file remains unchanged. In this case, the configuration file may not be sent to the vehicle terminal. Therefore, it is necessary to determine whether the historical configuration file before the update of the vehicle configuration information is the same as the configuration file.

[0110] Step S650: If the historical configuration file before the update of the vehicle configuration information is different from the configuration file, send the configuration file to the target vehicle.

[0111] If the historical configuration file before the update of the vehicle configuration information is different from the configuration file, send the configuration file to the target vehicle.

[0112] If the historical configuration file before the vehicle configuration information is updated is the same as the configuration file, the configuration file will not be sent to the target vehicle.

[0113] Please refer to Figure 8 , which shows a structural block diagram of a data processing device 500 provided by an embodiment of the present application. The data processing device 500 includes: a sending unit 510, a receiving unit 520, and an execution unit 530.

[0114] The sending unit 510 is configured to send vehicle configuration information to the cloud in response to a trigger operation for vehicle configuration update. The vehicle configuration information includes software configuration information and hardware configuration information.

[0115] The receiving unit 520 is configured to receive a configuration file sent by the cloud. The configuration file is a configuration file determined by the cloud based on the vehicle configuration information when it is determined that the vehicle configuration information has been updated. The configuration file includes the mapping relationship between the operating system service interface and the service-oriented architecture service interface, and the mapping relationship between the service-oriented architecture service interface and the hardware service interface.

[0116] The execution unit 530 is configured to perform at least one of service discovery, service invocation, service broadcast, and service provision based on the configuration file.

[0117] Further, the execution unit 530 may also be configured to determine a corresponding first reference service based on the obtained reference task. The first reference service is a service of the operating system; determine a second reference service corresponding to the first reference service according to the configuration file. The second reference service is a service in the service-oriented architecture; determine whether the registration information of the second reference service can be found in the service registry; if the registration information of the second reference service can be found in the service registry, it is determined that the discovery of the second reference service is successful; if the registration information of the second reference service cannot be found in the service registry, it is determined that the discovery of the second reference service fails.

[0118] Further, the execution unit 530 may also be configured to, in response to a request to execute a target task, determine a corresponding first target service based on the target task. The first target service is a service in the operating system; determine a second target service corresponding to the first target service based on the configuration file. The second target service is a service of the service-oriented architecture; determine a target hardware service corresponding to the second target service based on the configuration file. The target hardware service is a service in the hardware service; determine whether there is a communication channel between the second target service interface and the target hardware service interface; if there is a communication channel between the second target service interface and the target hardware service interface, call the second target service to execute the target task.

[0119] Further, the execution unit 530 can also be used to determine a target hardware device according to the target hardware service; determine whether the target hardware device is available; if the target hardware device is available, determine whether there is a communication channel between the second target service interface and the target hardware service interface; if there is no communication channel between the second target service interface and the target hardware service interface, determine that the second target service call fails.

[0120] Please refer to Figure 9 , which shows a structural block diagram of a data processing device 600 provided by an embodiment of the present application. The data processing device 600 includes: an acquisition unit 610, a judgment unit 620, a generation unit 630, and a file sending unit 640.

[0121] The acquisition unit 610 is configured to acquire an adaptive module upgrade request sent by the vehicle end. The adaptive module upgrade request includes vehicle configuration information, and the vehicle configuration information includes operating system software configuration information and hardware configuration information.

[0122] The judgment unit 620 is configured to judge whether the vehicle configuration information has been updated.

[0123] The generation unit 630 is configured to, if it has been updated, generate a corresponding configuration file based on the vehicle configuration information. The configuration file includes the mapping relationship between the operating system service interface and the service-oriented architecture service interface, and the mapping relationship between the service-oriented architecture service interface and the hardware service interface.

[0124] The file sending unit 640 is configured to send the configuration file to the vehicle end. The vehicle end is configured to perform at least one operation of service discovery, service call, service broadcast, and service provision based on the configuration file when receiving the configuration file sent by the cloud end.

[0125] Further, the file sending unit 640 can also be used to judge whether the historical configuration file before the update of the vehicle configuration information is the same as the configuration file; if the historical configuration file before the update of the vehicle configuration information is different from the configuration file, send the configuration file to the target vehicle.

[0126] 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 foregoing method embodiments, and will not be elaborated herein.

[0127] In several embodiments provided in the present application, the coupling between modules can be electrical, mechanical, or other forms of coupling.

[0128] In addition, the functional modules in the various embodiments of the present application may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.

[0129] Please refer to Figure 10 , which shows a structural block diagram of an electronic device 700 provided by an embodiment of the present application. The electronic device 700 may be a vehicle-mounted system, and the vehicle-mounted system may be arranged in a vehicle. The electronic device 700 in the present application may include one or more of the following components: a processor 711, a memory 712, and one or more application programs, wherein the processor 711 is electrically connected to the memory 712, and the one or more programs are configured to execute the methods described in the various embodiments of the foregoing test method.

[0130] The processor 711 may include one or more processing cores. The processor 711 uses various interfaces and lines to connect various parts within the entire electronic device 700, and by running or executing instructions, programs, code sets, or instruction sets stored in the memory 712, and by calling the data stored in the memory 712, it executes various functions of the electronic device 700 and processes data. Optionally, the processor 711 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 711 may integrate one or a combination of several of a central processing unit (CPU), a graphics processing unit (GPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interface, and computer programs, etc.; the GPU is responsible for rendering and drawing the displayed content; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 711 and may be implemented separately by a communication chip. Specifically, the methods described in the foregoing embodiments may be executed by one or more processors 711.

[0131] For some embodiments, the memory 712 may include Random Access Memory (RAM), and may also include Read-Only Memory. The memory 712 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 712 may include a program storage area and a data storage area. Among them, the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing the following various method embodiments, etc. The data storage area may also store data created during the use of the electronic device 700, etc.

[0132] Please refer to Figure 11 , which shows a structural block diagram of a computer-readable medium provided by an embodiment of the present application. Program code is stored in the computer-readable medium 800, and the program code can be called by a processor to execute the methods described in the above method embodiments.

[0133] The computer-readable medium 800 may be an electronic memory such as a flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, a hard disk, or a ROM. Optionally, the computer-readable medium 800 includes a non-transitory computer-readable storage medium. The computer-readable medium 800 has a storage space for the program code 810 that executes any method step in the above methods. These program codes can be read from or written into one or more computer program products. The program code 810 may be compressed in an appropriate form, for example.

[0134] Please refer to Figure 12 , which shows a structural block diagram 900 of a computer program product provided by an embodiment of the present application. The computer program product 900 includes a computer program / instructions 910, and when the computer program / instructions 910 are executed by a processor, the steps of the above methods are implemented.

[0135] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and are not intended to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and 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 processing method, characterized in that, Applied to the vehicle end, including: In response to a trigger operation for vehicle configuration update, send vehicle configuration information to the cloud, where the vehicle configuration information includes software configuration information and hardware configuration information; Receive a configuration file sent by the cloud, where the configuration file is a configuration file determined by the cloud based on the vehicle configuration information when it determines that the vehicle configuration information has been updated, and the configuration file includes the mapping relationship between the operating system service interface and the service-oriented architecture service interface, and the mapping relationship between the service-oriented architecture service interface and the hardware service interface; Perform at least one of service discovery, service invocation, service broadcast, and service provision based on the configuration file.

2. The method according to claim 1, characterized in that, The performing at least one of service discovery, service invocation, service broadcast, and service provision based on the configuration file includes: Determine a corresponding first reference service based on the obtained reference task, where the first reference service is a service of the operating system; Determine a second reference service corresponding to the first reference service according to the configuration file, where the second reference service is a service in the service-oriented architecture; Judge whether the registration information of the second reference service can be found in the service registry; If the registration information of the second reference service can be found in the service registry, determine that the discovery of the second reference service is successful; If the registration information of the second reference service cannot be found in the service registry, determine that the discovery of the second reference service fails.

3. The method according to claim 1, characterized in that, The performing at least one of service discovery, service invocation, service broadcast, and service provision based on the configuration file includes: In response to a request to execute a target task, determine a corresponding first target service based on the target task, where the first target service is a service in the operating system; Determine a second target service corresponding to the first target service based on the configuration file, where the second target service is a service of the service-oriented architecture; Determine a target hardware service corresponding to the second target service based on the configuration file, where the target hardware service is a service in the hardware service; Judge whether there is a communication channel between the second target service interface and the target hardware service interface; If there is a communication channel between the second target service interface and the target hardware service interface, call the second target service to execute the target task.

4. The method according to claim 3, characterized in that The judging whether there is a communication channel between the second target service interface and the target hardware service interface includes: Determine a target hardware device according to the target hardware service; Judge whether the target hardware device is available; If the target hardware device is available, judge whether there is a communication channel between the second target service interface and the target hardware service interface; If there is no communication channel between the second target service interface and the target hardware service interface, determine that the invocation of the second target service fails.

5. A data processing method, characterized in that, Applied to the cloud, the method includes: Obtain the vehicle configuration information sent by the vehicle end, where the vehicle configuration information includes software configuration information and hardware configuration information; Judge whether the vehicle configuration information has been updated; If it has been updated, a corresponding configuration file is generated based on the vehicle configuration information, and the configuration file includes the mapping relationship between the operating system service interface and the service-oriented architecture service interface, and the mapping relationship between the service-oriented architecture service interface and the hardware service interface; The configuration file is sent to the vehicle terminal, and the vehicle terminal is used to perform at least one of service discovery, service invocation, service broadcast, and service provision based on the configuration file when receiving the configuration file sent by the cloud; 6. The method according to claim 5, characterized in that The sending the configuration file to the vehicle terminal includes: Judging whether the historical configuration file before the update of the vehicle configuration information is the same as the configuration file; If the historical configuration file before the update of the vehicle configuration information is different from the configuration file, the configuration file is sent to the target vehicle; 7. A data processing device, characterized in that, The device is applied to the vehicle terminal and includes: A sending unit, configured to send vehicle configuration information to the cloud in response to a trigger operation for vehicle configuration update, where the vehicle configuration information includes software configuration information and hardware configuration information; A receiving unit, configured to receive the configuration file sent by the cloud, where the configuration file is the configuration file determined by the cloud according to the vehicle configuration information when it is determined that the vehicle configuration information has been updated, and the configuration file includes the mapping relationship between the operating system service interface and the service-oriented architecture service interface, and the mapping relationship between the service-oriented architecture service interface and the hardware service interface; An execution unit, configured to perform at least one of service discovery, service invocation, service broadcast, and service provision based on the configuration file; 8. A data processing device, characterized in that, The device is applied to the cloud and includes: An obtaining unit, configured to obtain an adaptive module upgrade request sent by the vehicle terminal, where the adaptive module upgrade request includes vehicle configuration information, and the vehicle configuration information includes operating system software configuration information and hardware configuration information; A judging unit, configured to judge whether the vehicle configuration information has been updated; A generating unit, configured to generate a corresponding configuration file based on the vehicle configuration information if it has been updated, where the configuration file includes the mapping relationship between the operating system service interface and the service-oriented architecture service interface, and the mapping relationship between the service-oriented architecture service interface and the hardware service interface; A file sending unit, configured to send the configuration file to the vehicle terminal, and the vehicle terminal is used to perform at least one of service discovery, service invocation, service broadcast, and service provision based on the configuration file when receiving the configuration file sent by the cloud; 9. An electronic device, characterized in that, Includes: One or more processors; A memory; One or more applications, where the one or more applications are stored in the memory, the one or more applications are 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-6; 10. A computer-readable storage medium, characterized in that, Program code is stored in the computer-readable storage medium, and the program code can be called by the processor to execute the method according to any one of claims 1-6.

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