System function adaptation method and device, electronic equipment and storage medium
By using service-oriented applications to establish connections with the target functional interface of the system to be adapted when the system chip platform is replaced, the problem of third-party applications need to adapt the system again is solved, which reduces the adaptation workload, reduces development costs, and improves user experience.
Patent Information
- Application Number
- CN202411763232.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-03
- Publication Date
- 2025-04-11
AI Technical Summary
When the system chip platform is replaced, third-party applications need to adapt to the system again, resulting in a repeated increase in workload and affecting the consistency of user experience.
By determining the system to be adapted and obtaining its target functional interface, using the preset service-oriented application to establish a connection relationship. After judging that the connection is successful, the third-party application is controlled to connect with the system to be adapted through the docking interface of the service-oriented application.
Reduces duplicate adaptation work, reduces development time and cost, improves development efficiency and improves user experience.
Smart Images

Figure CN119806631A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a system function adaptation method, device, electronic device and storage medium. Background Art
[0002] With the development of the Internet of Vehicles and cockpits, third-party mainstream audio and video applications are becoming more and more integrated in car computers. Many third-party applications need to respond to system steering wheel buttons, driving speed limits, dock bar adaptation and other functions.
[0003] Car companies have diverse host suppliers and platforms, but the main functions of mainstream video software are similar. Every time the system chip platform is replaced, third-party applications need to adapt to the corresponding system interface again, resulting in repeated workload. Multiple adaptations can easily affect the consistency of user experience, which needs to be solved urgently. Summary of the invention
[0004] The present application provides a system function adaptation method, device, electronic device and storage medium to solve the problem of repeated workload caused by the need for third-party applications to adapt again when the system chip platform is replaced, reduce repeated adaptation work, reduce development time and cost, improve development efficiency, and enhance user experience.
[0005] The first aspect of the present application provides a system function adaptation method, comprising the following steps:
[0006] Determine the system to be adapted;
[0007] Acquire at least one target function interface of the system to be adapted, establish a connection relationship between the at least one target function interface and a preset service-type application, and determine whether the service-type application is successfully connected to the system to be adapted;
[0008] If the service-type application is successfully connected to the system to be adapted, the third-party application is controlled to be connected to the system to be adapted through the connection interface of the service-type application.
[0009] Optionally, in some embodiments, after the service-type application is successfully connected to the system to be adapted, the following steps are included:
[0010] Determine whether a power-on command is received;
[0011] If the power-on instruction is received, the corresponding target function is responded to through the at least one target function interface.
[0012] Optionally, in some embodiments, after controlling the third-party application to dock with the system to be adapted through the docking interface of the service-type application, the following steps are included:
[0013] Determine whether a power-on command is received;
[0014] If the power-on instruction is received, the third-party application is controlled to lazily load the corresponding target function through the docking interface.
[0015] Optionally, in some embodiments, after determining whether the service-type application is successfully connected to the system to be adapted, the following steps are included:
[0016] If the service-type application fails to successfully connect to the system to be adapted, a connection relationship is re-established with the at least one target functional interface through the preset service-type application, and the number of failures is accumulated;
[0017] If the number of failures is greater than a preset threshold, an abnormal reminder instruction is generated, and an abnormal reminder is made according to the abnormal reminder instruction.
[0018] A second aspect of the present application provides a system function adaptation device, including:
[0019] A determination module, used to determine the system to be adapted;
[0020] A connection module, used to obtain at least one target function interface of the system to be adapted, establish a connection relationship with the at least one target function interface through a preset service-type application, and determine whether the service-type application is successfully connected to the system to be adapted;
[0021] The docking module is used to control the third-party application to dock with the system to be adapted through the docking interface of the service-type application when the service-type application is successfully connected with the system to be adapted.
[0022] Optionally, in some embodiments, after the service-type application is successfully connected to the system to be adapted, the docking module includes:
[0023] A first judging unit, used to judge whether a power-on instruction is received;
[0024] The response unit is used to respond to the corresponding target function through the at least one target function interface when receiving the power-on instruction.
[0025] Optionally, in some embodiments, after controlling the third-party application to dock with the system to be adapted through the docking interface of the service-type application, the docking module includes:
[0026] A second determination unit, used to determine whether a power-on instruction is received;
[0027] The control unit is used to control the third-party application to lazily load the corresponding target function through the docking interface when receiving the power-on instruction.
[0028] Optionally, in some embodiments, after determining whether the service-type application is successfully connected to the system to be adapted, the connection module includes:
[0029] a connection unit, configured to re-establish a connection relationship between the at least one target functional interface through a preset service-type application when the service-type application fails to successfully connect to the system to be adapted, and accumulate the number of failures;
[0030] The reminder unit is used to generate an abnormal reminder instruction when the number of failures is greater than a preset threshold, and to make an abnormal reminder according to the abnormal reminder instruction.
[0031] The third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the system function adaptation method as described in the above embodiment.
[0032] The fourth aspect of the present application provides a computer-readable storage medium on which a computer program is stored. The program is executed by a processor to implement the system function adaptation method as described in the above embodiment.
[0033] Therefore, by determining the system to be adapted and obtaining at least one target functional interface of the system to be adapted, a connection relationship is established between the preset service-oriented application and the at least one target functional interface, and it is determined whether the service-oriented application is successfully connected to the system to be adapted. If the service-oriented application is successfully connected to the system to be adapted, the third-party application is controlled to dock with the system to be adapted through the docking interface of the service-oriented application. Thus, the problem of repeated workload caused by the need for third-party applications to adapt the system again when the system chip platform is replaced is solved. This application can reduce repeated adaptation work, reduce development time and cost, improve development efficiency, and enhance user experience.
[0034] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0036] Figure 1 A flowchart of a system function adaptation method provided according to an embodiment of the present application;
[0037] Figure 2 A flow chart of a preset service-based application adaptation system interface provided according to an embodiment of the present application;
[0038] Figure 3 A schematic diagram of the principle of a system function adaptation method provided according to an embodiment of the present application;
[0039] Figure 4 This is a schematic diagram of the isolation logic of the Adapter platform provided according to an embodiment of the present application;
[0040] Figure 5 A schematic diagram of a third-party application connecting to an Adapter interface through aidl according to an embodiment of the present application;
[0041] Figure 6 A block diagram of a system function adaptation device provided according to an embodiment of the present application;
[0042] Figure 7 It is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0043] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0044] The following describes the system function adaptation method, device, electronic device and storage medium of the embodiment of the present application with reference to the accompanying drawings. In response to the problem mentioned in the above background technology that when the system chip platform is replaced, the third-party application needs to adapt the system again, resulting in repeated workload, the present application provides a system function adaptation method. In this method, by determining the system to be adapted and obtaining at least one target function interface of the system to be adapted, a connection relationship is established between a preset service application and at least one target function interface, and it is determined whether the service application is successfully connected to the system to be adapted. If the service application is successfully connected to the system to be adapted, the third-party application is controlled to dock with the system to be adapted through the docking interface of the service application. In this way, the problem that when the system chip platform is replaced, the third-party application needs to adapt the system again, resulting in repeated workload, is solved. The present application can reduce repeated adaptation work, reduce development time and cost, improve development efficiency, and enhance user experience.
[0045] Specifically, Figure 1 A flowchart of a system function adaptation method provided in an embodiment of the present application.
[0046] like Figure 1 As shown, the system function adaptation method includes the following steps:
[0047] In step S101, a system to be adapted is determined.
[0048] Specifically, the system to be adapted is a vehicle system. The embodiment of the present application can determine one or more systems to be adapted so as to match the system to be adapted through a preset service application.
[0049] In step S102, at least one target functional interface of the system to be adapted is obtained, a connection relationship is established between the preset service-oriented application and the at least one target functional interface, and it is determined whether the service-oriented application is successfully connected to the system to be adapted.
[0050] Among them, the preset service application is the Adapter application, which is responsible for video docking with various system platform function interfaces, such as steering wheel hard buttons, driving restrictions, vehicle speed acquisition and callback and other related interfaces.
[0051] It is understandable that a service-oriented application, namely an Adapter application, is created to serve as a bridge between third-party audio and video applications and the vehicle system platform. The service-oriented application will be responsible for handling all interface adaptation work related to the vehicle system platform, so that third-party applications can focus more on providing content and services rather than dealing with underlying system adaptation issues.
[0052] Specifically, combined Figure 2 As shown, the preset service application is responsible for video docking with the target function interface of each system platform. The target function interface can be all function interfaces or function interfaces with docking permissions. It also determines whether the service application is successfully connected to the system to be adapted by judging whether the vehicle computer is successfully bound to the preset service application.
[0053] Optionally, in some embodiments, after determining whether the service-oriented application is successfully connected to the system to be adapted, it includes: if the service-oriented application fails to successfully connect to the system to be adapted, re-establishing a connection relationship with at least one target functional interface through a preset service-oriented application, and accumulating the number of failures; if the number of failures is greater than a preset threshold, generating an abnormal reminder instruction, and performing an abnormal reminder according to the abnormal reminder instruction.
[0054] The preset threshold may be pre-set by a user, obtained through a limited number of experiments, or obtained through a limited number of computer simulations, and is not specifically limited here.
[0055] Specifically, combined Figure 2As shown, a preset threshold is set in the service application. This threshold defines the maximum number of failed attempts allowed before triggering an exception reminder. Each time a connection attempt fails, the number of failures is recorded. This can be achieved by maintaining a counter in the application and defining a retry mechanism. When the connection fails, try to connect again. You can also define an exception reminder instruction, which can be an internal notification, email, text message or any other form of notification, which is used to trigger when the number of failures exceeds the threshold. Define an exception reminder instruction, which can be an internal notification, email, text message or any other form of notification. When the number of failures exceeds the preset threshold, an exception reminder is generated according to the exception reminder instruction.
[0056] In step S103, if the service-type application is successfully connected to the system to be adapted, the third-party application is controlled to be connected to the system to be adapted through the connection interface of the service-type application.
[0057] Specifically, if the preset service application is successfully connected to the system to be adapted, the preset service application is responsible for adapting and being compatible with various platform interfaces, such as Figure 3 As shown, each time the system migrates, the preset service-oriented application is responsible for the main adaptation work, putting all the previous third-party application docking work under this application and providing an SDK interface to the outside world.
[0058] It should be noted that, combined with Figure 4 As shown, the preset service-oriented application uses flavors to isolate platforms. The difference codes of the platforms are compiled and distinguished in the form of flavors. Each flavor corresponds to a different platform, and then the system interface is jointly debugged and connected with the corresponding platform, where the common logic codes are shared and deposited.
[0059] At the same time, combined Figure 5 As shown in the figure, the preset service-oriented application provides a functional interface to the third-party application in the form of IPC cross-process in the form of AIDL. After the functional interface protocol is defined and constrained, it does not change with the chip type and platform differences. Therefore, the third-party application only needs to integrate the SDK of the application once, and then it does not need to change with the changes of the project platform, reducing the repeated docking of platform differences.
[0060] Optionally, in some embodiments, after the service-type application is successfully connected to the system to be adapted, it includes: determining whether a power-on instruction is received; if a power-on instruction is received, responding to a corresponding target function through at least one target function interface.
[0061] Specifically, the Adapter application is preloaded and automatically starts when the computer is turned on. It monitors the system's vehicle speed, driving restrictions, release control and other interface callbacks.
[0062] Optionally, in some embodiments, after controlling the third-party application to dock with the system to be adapted through the docking interface of the service application, it includes: determining whether a power-on instruction is received; if a power-on instruction is received, controlling the third-party application to lazily load the corresponding target function through the docking interface.
[0063] Specifically, the third-party interface application adopts the form of lazy loading, that is, it establishes a connection with the Adapter service after the third-party application process is started, obtains and monitors the interface information for business response, and reduces unnecessary self-starting coupling.
[0064] In summary, the embodiment of the present application adds a service-type application as an adaptation application in the vehicle system, and uses the service-type application to be responsible for the audio and video docking of various system platform functional interfaces, such as steering wheel hard buttons, driving restrictions, vehicle speed acquisition and callback and other related interfaces; and, the embodiment of the present application adapts and is compatible with various platform interfaces through the application. Each time the system is migrated, the application is responsible for the main adaptation work, and all the previous three-party application docking work is placed under the application, and an SDK interface is provided to the outside world; subsequent third-party audio and video applications only need to integrate the SDK, no matter how the system changes, the functional interface of the SDK will not change, and it only needs to be integrated once.
[0065] According to the system function adaptation method proposed in the embodiment of the present application, by determining the system to be adapted and obtaining at least one target function interface of the system to be adapted, a connection relationship is established between the preset service-type application and the at least one target function interface, and it is determined whether the service-type application is successfully connected to the system to be adapted. If the service-type application is successfully connected to the system to be adapted, the third-party application is controlled to dock with the system to be adapted through the docking interface of the service-type application. Thus, the problem of repeated workload caused by the need for third-party applications to adapt the system again when the system chip platform is replaced is solved. The present application can reduce repeated adaptation work, reduce development time and cost, improve development efficiency, and enhance user experience.
[0066] Next, the system function adaptation device proposed according to the embodiment of the present application is described with reference to the accompanying drawings.
[0067] Figure 6 It is a block diagram of a system function adaptation device according to an embodiment of the present application.
[0068] like Figure 6 As shown, the system function adaptation device 10 includes: a determination module 100 , a connection module 200 and a docking module 300 .
[0069] The determination module 100 is used to determine the system to be adapted.
[0070] The connection module 200 is used to obtain at least one target function interface of the system to be adapted, establish a connection relationship between the at least one target function interface through a preset service application, and determine whether the service application is successfully connected to the system to be adapted.
[0071] The docking module 300 is used to control the third-party application to dock with the system to be adapted through the docking interface of the service-type application when the service-type application is successfully connected with the system to be adapted.
[0072] Optionally, in some embodiments, after the service-type application is successfully connected to the system to be adapted, the docking module 300 includes: a first judgment unit and a response unit.
[0073] The first determination unit is used to determine whether a power-on instruction is received.
[0074] The response unit is used to respond to the corresponding target function through at least one target function interface when receiving the power-on instruction.
[0075] Optionally, in some embodiments, after controlling the third-party application to dock with the system to be adapted through the docking interface of the service-type application, the docking module 300 includes: a second judgment unit and a control unit.
[0076] The second determination unit is used to determine whether a power-on instruction is received.
[0077] The control unit is used to control the third-party application to lazily load the corresponding target function through the docking interface when receiving the power-on command.
[0078] Optionally, in some embodiments, after determining whether the service application is successfully connected to the system to be adapted, the connection module 200 includes: a connection unit and a reminder unit.
[0079] The connection unit is used to re-establish a connection relationship with at least one target functional interface through a preset service-type application when the service-type application fails to successfully connect with the system to be adapted, and accumulate the number of failures;
[0080] The reminder unit is used to generate an abnormal reminder instruction when the number of failures is greater than a preset threshold, and to make an abnormal reminder according to the abnormal reminder instruction.
[0081] It should be noted that the above explanation of the embodiment of the system function adaptation method is also applicable to the system function adaptation device of this embodiment, and will not be repeated here.
[0082] According to the system function adaptation device proposed in the embodiment of the present application, by determining the system to be adapted and obtaining at least one target function interface of the system to be adapted, a connection relationship is established between the preset service-type application and the at least one target function interface, and it is determined whether the service-type application is successfully connected to the system to be adapted. If the service-type application is successfully connected to the system to be adapted, the third-party application is controlled to dock with the system to be adapted through the docking interface of the service-type application. Thus, the problem of repeated workload caused by the need for third-party applications to adapt the system again when the system chip platform is replaced is solved. The present application can reduce repeated adaptation work, reduce development time and cost, improve development efficiency, and enhance user experience.
[0083] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include:
[0084] A memory 701 , a processor 702 , and a computer program stored in the memory 701 and executable on the processor 702 .
[0085] When the processor 702 executes the program, the system function adaptation method provided in the above embodiment is implemented.
[0086] Furthermore, the electronic device further comprises:
[0087] The communication interface 703 is used for communication between the memory 701 and the processor 702 .
[0088] The memory 701 is used to store computer programs that can be executed on the processor 702 .
[0089] The memory 701 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.
[0090] If the memory 701, the processor 702 and the communication interface 703 are implemented independently, the communication interface 703, the memory 701 and the processor 702 can be connected to each other through a bus and communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0091] Optionally, in a specific implementation, if the memory 701, the processor 702 and the communication interface 703 are integrated on a chip, the memory 701, the processor 702 and the communication interface 703 can communicate with each other through an internal interface.
[0092] The processor 702 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.
[0093] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the system function adaptation method as described above is implemented.
[0094] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0095] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0096] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0097] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array, a field programmable gate array, etc.
[0098] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0099] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A system function adaptation method, characterized in that: The following steps are involved: Determine the system to be adapted; Acquire at least one target function interface of the system to be adapted, establish a connection relationship between the at least one target function interface and a preset service-type application, and determine whether the service-type application is successfully connected to the system to be adapted; If the service-type application is successfully connected to the system to be adapted, the third-party application is controlled to be connected to the system to be adapted through the connection interface of the service-type application.
2. The method according to claim 1, characterized in that After the service-type application is successfully connected to the system to be adapted, the following steps are included: Determine whether a power-on command is received; If the power-on instruction is received, the corresponding target function is responded to through the at least one target function interface.
3. The method according to claim 1, characterized in that After controlling the third-party application to dock with the to-be-adapted system through the docking interface of the service-type application, the method includes: Determine whether a power-on command is received; If the power-on instruction is received, the third-party application is controlled to lazily load the corresponding target function through the docking interface.
4. The method according to claim 1, characterized in that After determining whether the service-type application is successfully connected to the system to be adapted, the method includes: If the service-type application fails to successfully connect to the system to be adapted, a connection relationship is re-established with the at least one target functional interface through the preset service-type application, and the number of failures is accumulated; If the number of failures is greater than a preset threshold, an abnormal reminder instruction is generated, and an abnormal reminder is made according to the abnormal reminder instruction.
5. A system function adaptation device, characterized in that: include: A determination module, used to determine the system to be adapted; A connection module, used to obtain at least one target function interface of the system to be adapted, establish a connection relationship with the at least one target function interface through a preset service-type application, and determine whether the service-type application is successfully connected to the system to be adapted; The docking module is used to control the third-party application to dock with the system to be adapted through the docking interface of the service-type application when the service-type application is successfully connected with the system to be adapted.
6. The device according to claim 5, characterized in that After the service-type application is successfully connected to the system to be adapted, the docking module includes: A first judging unit, used to judge whether a power-on instruction is received; The response unit is used to respond to the corresponding target function through the at least one target function interface when receiving the power-on instruction.
7. The device according to claim 5, characterized in that After controlling the third-party application to dock with the to-be-adapted system through the docking interface of the service-type application, the docking module includes: A second determination unit, used to determine whether a power-on instruction is received; The control unit is used to control the third-party application to lazily load the corresponding target function through the docking interface when receiving the power-on instruction.
8. The device according to claim 5, characterized in that After determining whether the service-type application is successfully connected to the system to be adapted, the connection module includes: a connection unit, configured to re-establish a connection relationship between the at least one target functional interface through a preset service-type application when the service-type application fails to successfully connect to the system to be adapted, and accumulate the number of failures; The reminder unit is used to generate an abnormal reminder instruction when the number of failures is greater than a preset threshold, and to make an abnormal reminder according to the abnormal reminder instruction.
9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the system function adaptation method according to any one of claims 1 to 4.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the system function adaptation method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Operation system applied to automobile electronics and realization method thereof
CN107479482A
Adapter system adapted to multiple speech recognition engines and adaptation method
CN114999481A
An embeded type middleware flatform for handheld RFID reader and handheld device loading thereof, and interlock system using thereof
KR1020100004429A