CN115437661A - Processing method and device for application configuration content - Google Patents

Processing method and device for application configuration content Download PDF

Info

Publication number
CN115437661A
CN115437661A CN202111110995.3A CN202111110995A CN115437661A CN 115437661 A CN115437661 A CN 115437661A CN 202111110995 A CN202111110995 A CN 202111110995A CN 115437661 A CN115437661 A CN 115437661A
Authority
CN
China
Prior art keywords
content
application
configuration
configuration content
marked
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111110995.3A
Other languages
Chinese (zh)
Inventor
龙飞虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing CHJ Automobile Technology Co Ltd
Original Assignee
Beijing CHJ Automobile Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing CHJ Automobile Technology Co Ltd filed Critical Beijing CHJ Automobile Technology Co Ltd
Priority to CN202111110995.3A priority Critical patent/CN115437661A/en
Publication of CN115437661A publication Critical patent/CN115437661A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a processing method and a device for application configuration content, which relate to the technical field of intelligent vehicles, and the method comprises the following steps: the method comprises the steps of obtaining a configuration content obtaining request sent by an application, obtaining configuration content corresponding to the application identifier and mark content of the configuration content in the configuration content obtaining request, and sending the configuration content to the application according to the mark content. Therefore, the application can directly acquire the configuration content from the local and is not influenced by network fluctuation, the situation that the application acquires the configuration content from a remote end is avoided, the workload of configuration content access is reduced, the efficiency of configuration content acquisition is improved, and the stability of configuration service is enhanced.

Description

Processing method and device for application configuration content
Technical Field
The present application relates to the field of intelligent vehicle technologies, and in particular, to a method and an apparatus for processing application configuration content.
Background
In order to enhance user experience, more and more applications are used in vehicle-mounted terminals, currently, each vehicle-mounted application independently and synchronously applies respective configuration content from a cloud server through a network, independent development, joint debugging and testing exist, a large amount of repeated work content such as access and debugging exist, and when the network is in an unstable state, whether the configuration content can be acquired cannot be guaranteed.
Disclosure of Invention
The present application is directed to solving, at least to some extent, one of the technical problems in the related art.
To this end, an object of the present application is to provide a processing method for application configuration content.
A second object of the present application is to provide a processing apparatus for configuring content by using the same.
The third purpose of this application lies in providing a vehicle-mounted center control system.
A fourth object of the present application is to propose a vehicle.
A fifth object of the present application is to propose an electronic device.
A sixth object of the present application is to propose a computer-readable storage medium.
In order to achieve the above object, an embodiment of a first aspect of the present application provides a method for processing application configuration content, including: acquiring a configuration content acquisition request sent by an application, wherein the configuration content acquisition request comprises an identifier of the application; acquiring configuration content corresponding to the application identifier and mark content of the configuration content; and sending the configuration content to the application according to the mark content.
According to an embodiment of the application, the sending the configuration content to the application according to the markup content includes: if the marked content is the configuration content to be verified, sending the configuration content to be verified, which is the marked content, to the application; if the configuration content with the mark content to be checked does not exist but the configuration content with the mark content available exists, the configuration content with the mark content available is sent to the application; and if the configuration content with the marked content to be checked does not exist and the configuration content with the marked content available does not exist, sending prompt information without the configuration content to the application.
According to an embodiment of the present application, before the obtaining a configuration content obtaining request sent by an obtaining application, the method further includes: acquiring configuration updating information from a cloud server, wherein the configuration updating information comprises an application identifier and configuration content updated by the application; storing the identifier of the application and the updated configuration content of the application, and marking the mark content of the updated configuration content of the application as to-be-checked; obtaining a verification result of the configuration content updated by the application; if the verification result is available, marking the marked content of the configuration content after the application update as available; and if the verification result is unavailable, marking the marked content of the configuration content after the application updating as unavailable.
According to an embodiment of the present application, said marking the marked content of the configuration content after the application update as to-be-checked includes: if the configuration content corresponding to the application identifier and the marked content to be checked exists, deleting the configuration content corresponding to the application identifier and the marked content to be checked, and marking the updated configuration content of the application as the configuration content to be checked; and if the configuration content corresponding to the application identifier and marked as the configuration content to be verified does not exist, marking the configuration content updated by the application as the configuration content to be verified.
According to an embodiment of the present application, said marking the marked content of the application-updated configuration content as available includes: if the configuration content corresponding to the application identifier and available in the mark content exists, deleting the configuration content corresponding to the application identifier and available in the mark content, and marking the mark content of the configuration content updated by the application as available; and if no configuration content which corresponds to the identification of the application and is available is existed, marking the marking content of the configuration content after the application is updated as available.
According to an embodiment of the present application, said marking the marked content of the application-updated configuration content as unavailable includes: if the configuration content corresponding to the application identifier and the marked content is unavailable exists, deleting the configuration content corresponding to the application identifier and the marked content is unavailable, and marking the marked content of the configuration content updated by the application as unavailable; if no configuration content corresponding to the identification of the application and the mark content is unavailable exists, marking the mark content of the configuration content updated by the application as unavailable.
According to an embodiment of the present application, the method for processing application configuration content further includes: and sending the checking result to the cloud server.
In order to achieve the above object, a second aspect of the present application provides a processing apparatus for applying configuration content, including: a first obtaining module, configured to obtain a configuration content obtaining request sent by an application, where the configuration content obtaining request includes an identifier of the application; a second obtaining module, configured to obtain configuration content corresponding to the identifier of the application and tag content of the configuration content; and the sending module is used for sending the configuration content to the application according to the marking content.
According to an embodiment of the present application, the sending module is specifically configured to: if the marked content is the configuration content to be verified, sending the configuration content to be verified, which is the marked content, to the application; if the configuration content with the marked content as the to-be-verified configuration content does not exist but the configuration content with the marked content as the available configuration content exists, the configuration content with the marked content as the available configuration content is sent to the application; and if the configuration content with the marked content to be checked does not exist and the configuration content with the marked content available does not exist, sending prompt information without the configuration content to the application.
According to an embodiment of the application, the processing device further comprises: the third acquisition module is used for acquiring configuration updating information from the cloud server, wherein the configuration updating information comprises an application identifier and configuration content updated by the application; the first marking module is used for storing the identification of the application and the updated configuration content of the application and marking the marking content of the updated configuration content of the application as to-be-checked; a fourth obtaining module, configured to obtain a verification result of the configuration content updated by the application; a second marking module, configured to mark the marking content of the configuration content updated by the application as available if the verification result is available; and a third marking module, configured to mark the marked content of the configuration content after the application update as unavailable if the verification result is unavailable.
According to an embodiment of the present application, the first marking module is specifically configured to: if the configuration content corresponding to the application identifier and the marked content to be checked exists, deleting the configuration content corresponding to the application identifier and the marked content to be checked, and marking the updated configuration content of the application as the configuration content to be checked; and if the configuration content corresponding to the application identifier and marked as the configuration content to be verified does not exist, marking the configuration content updated by the application as the configuration content to be verified.
According to an embodiment of the present application, the second marking module is specifically configured to: if the configuration content corresponding to the application identifier and available in the mark content exists, deleting the configuration content corresponding to the application identifier and available in the mark content, and marking the mark content of the configuration content updated by the application as available; and if no configuration content which corresponds to the identification of the application and is available is existed, marking the marking content of the configuration content after the application is updated as available.
According to an embodiment of the present application, the third marking module is specifically configured to: if the configuration content corresponding to the application identifier and the marked content is unavailable exists, deleting the configuration content corresponding to the application identifier and the marked content is unavailable, and marking the marked content of the configuration content updated by the application as unavailable; if the configuration content corresponding to the identification of the application does not exist and the mark content is unavailable, marking the mark content of the configuration content updated by the application as unavailable.
According to an embodiment of the present application, the sending module is further configured to: and sending the checking result to the cloud server.
In order to achieve the above object, an embodiment of a third aspect of the present application provides an on-vehicle center control system, including: a plurality of applications and a processing apparatus for configuring content by an application as described in embodiments of the second aspect of the present application.
To achieve the above object, a fourth aspect of the present application provides a vehicle, including: the vehicle-mounted center control system according to the third aspect of the present application.
To achieve the above object, an embodiment of a fifth aspect of the present application provides an electronic device, including: the application configuration content processing method comprises the following steps of storing a program, storing the program in a memory, storing the program in the memory, and executing the program on a processor, wherein the processor realizes the processing method of the application configuration content according to the embodiment of the first aspect of the application when executing the program.
To achieve the above object, a sixth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a processing method of application configuration content as described in the first aspect of the present application.
Drawings
FIG. 1 is a flow chart illustrating a method of processing application configuration content according to an exemplary embodiment of the present application;
FIG. 2 is a flow chart illustrating another method of processing application configuration content according to an exemplary embodiment of the present application;
FIG. 3 is a flow chart illustrating another method of processing application configuration content according to an exemplary embodiment of the present application;
FIG. 4 is a block diagram illustrating an apparatus for processing application configuration content according to an exemplary embodiment of the present application;
FIG. 5 is a schematic structural diagram of an on-board central control system according to an exemplary embodiment of the present application;
FIG. 6 is a schematic illustration of a vehicle according to an exemplary embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
Fig. 1 is a flowchart illustrating a processing method of application configuration content according to an exemplary embodiment of the present application, where the processing method of application configuration content includes the following steps, as shown in fig. 1:
s101, a configuration content acquisition request sent by an application is acquired, and the configuration content acquisition request comprises an application identifier.
Optionally, when the application is started in response to an operation (for example, a click operation or a voice instruction) of the user on the application or in response to an instruction of a Head Unit (HU), the application needs to acquire corresponding configuration content, and load the application program according to the configuration content. The application may send a configuration content obtaining request to a server or a cloud server, etc. where configuration content corresponding to the application is stored, so as to obtain configuration information of relevant content such as initialization, interface, storage, etc. of the application.
The processing method of the application configuration content can be executed by the processing device of the application configuration content provided by the embodiment of the application, and the processing device of the application configuration content can be arranged in the vehicle-mounted central control system to provide configuration service for the application, so that the vehicle-mounted application can acquire the corresponding configuration content only by interacting with the vehicle-mounted central control system, the access workload caused by acquiring the configuration content from a cloud end is reduced, meanwhile, the configuration content required by the application can be acquired more quickly, and the configuration service can be provided for the application in a network-free state.
In the embodiment of the present application, the configuration content obtaining request sent by the application may specifically include, but is not limited to, an identifier (Identity document, abbreviated as ID) of the application, and the like.
S102, configuration content corresponding to the application identification and mark content of the configuration content are obtained.
In the embodiment of the present application, the configuration content corresponding to the identifier of the application and the tag content corresponding to the configuration content may be acquired from the local storage according to the identifier of the application acquired in step S101. The configuration content may be configuration content that is obtained from a cloud in advance and stored locally, and the configuration content is marked during storage to generate a marked content of the configuration content, for example, whether the configuration content is verified or usable or not may be marked to obtain the marked content: to be verified, available or unavailable.
It is understood that the configuration content may be in the form of an HTML file, a CSS file, a JavaScript script file, a text, a picture, and the like, and after the corresponding configuration content is obtained, the correctness of the configuration content is checked, and if the configuration content is correct, the configuration content may be considered to be available, otherwise, the configuration content may not be available.
S103, the configuration content is sent to the application according to the mark content.
Specifically, the configuration content to be verified or the configuration content available for the marked content is sent to the application according to the marked content acquired in step S102. Optionally, when there is no configuration content with the marked content to be verified and no configuration content with the marked content available, a "no configuration" feedback may be sent to the application.
In the embodiment of the application, a configuration content acquisition request sent by an application is firstly acquired, the configuration content acquisition request comprises an application identifier, then configuration content corresponding to the application identifier and mark content of the configuration content are acquired, and the configuration content is sent to the application according to the mark content. Therefore, the application can directly acquire the configuration content from the local and is not influenced by network fluctuation, the situation that the application acquires the configuration content from a remote end is avoided, the workload of configuration content access is reduced, the efficiency of configuration content acquisition is improved, and the stability of configuration service is enhanced.
Based on the above embodiment, under one application identifier, the configuration content may be locally stored in three different versions at most according to whether the configuration content passes the application verification and the verification result, that is: the marked content is the configuration content to be verified, the configuration content marked as available and the configuration content marked as unavailable, and each configuration content is unique in version.
In the above embodiment, step S103 "sending configuration content to application according to the mark content" can be further explained by the following three cases:
the first condition is as follows: and if the marked content is the configuration content to be verified, sending the configuration content to be verified, which is the marked content, to the application.
In the embodiment of the application, if the configuration content obtained according to the application identifier has the configuration content to be verified as the mark content, the configuration content to be verified as the mark content is sent to the application.
For example, the configuration content to be verified may be the configuration content obtained from the cloud after application update, the configuration content is not subjected to application verification for a while, and the corresponding marked content is marked as the configuration content to be verified.
Case two: and if the configuration content with the marked content as the configuration content to be verified does not exist but the configuration content with the marked content as the available configuration content exists, sending the configuration content with the marked content as the available configuration content to the application.
In the embodiment of the application, if the configuration content to be checked does not have the mark content, the mark content is searched for as the available configuration content, and if the configuration content to be checked does not have the mark content, the configuration content with the mark content as the available configuration content is sent to the application.
For example, the configuration content marked as available may be configuration content that is deemed to be correct after application verification, and the marked content of the configuration content is marked as available.
And a third situation: and if the marker content is not the configuration content to be verified and the marker content is not the available configuration content, sending prompt information of the non-configuration content to the application.
In the embodiment of the application, if the configuration content obtained according to the application identifier does not have the configuration content with the mark content to be checked and the configuration content with the mark content available, no configuration content is sent, and the prompt message of the non-configuration content is sent to the application.
For example, when there is no configuration content corresponding to the identifier of the application in the local storage or there is configuration content for which the marker content is unavailable, prompt information of no configuration content is sent to the application. The configuration content marked as unavailable is incorrect configuration content which is determined to have errors such as content or format after application verification, and the marked content of the configuration content is marked as unavailable.
In the embodiment of the application, the marked content is preferentially sent to the application as the configuration content to be verified, if the marked content does not exist as the configuration content to be verified, the marked content is available, and if the configuration content of the two versions does not exist, the prompt message of the unconfigured content is sent to the application. Therefore, the unavailable configuration content can be prevented from being sent to the application, so that the configuration content acquired by the application is all available versions under the condition that no new configuration content is issued, and the reliability of the configuration service is enhanced.
In specific implementation, configuration content of an application can be continuously updated based on upgrade optimization of the application, updated configuration information is uploaded to a cloud server, and the updated configuration information of different applications can be cached in a local storage device through interaction with a cloud, so that the application can obtain corresponding configuration content from the local by sending a configuration content obtaining request.
On the basis of the above embodiment, as shown in fig. 2, the processing method for application configuration content according to the embodiment of the present application, before the step S101 "acquiring a configuration content acquisition request sent by an application", further includes the following steps:
s201, configuration updating information is obtained from the cloud server, and the configuration updating information comprises an application identifier and configuration content after application updating.
As a possible implementation manner, the configuration update information may be actively acquired from the cloud server by sending an acquisition request and the like; as another possible implementation manner, after the configuration content is updated, the cloud server issues the updated configuration content, that is: the configuration update information may be obtained through pushing of the cloud server, where the configuration update information includes, but is not limited to, an identifier of an application and configuration content after the application is updated.
S202, storing the application identifier and the application updated configuration content, and marking the marking content of the application updated configuration content as to-be-checked.
Specifically, the identifier of the application and the configuration content after the application update in the configuration update information obtained in step S201 are stored, for example, in a local disk. And if the configuration content after the application update is not subjected to the application verification, marking the mark content of the configuration content after the application update as to-be-verified.
S203, obtaining the verification result of the configuration content after the application is updated.
In the embodiment of the application, after the configuration content updated by the application is obtained, the configuration content is verified, and a verification result of the configuration content updated by the application is fed back, so that a verification result of the configuration content updated by the application can be obtained.
For example, based on the monitor-callback mechanism, when the configuration content after application update is acquired from the cloud, a notification of configuration content update is issued to the application that has registered the monitor-callback, and the configuration content after application update (which may also be expressed as the configuration content to be verified marked in step S202) is carried for callback, so that the application verifies the configuration content after application update.
And S204, if the verification result is available, marking the marking content of the configuration content after the application updating as available.
Specifically, if the check result obtained in step S203 for the configuration content updated by the application is available, it indicates that the configuration content has no error, and if the configuration content is the correct configuration content, the flag content of the configuration content updated by the application is marked as available.
And S205, if the verification result is unavailable, marking the marking content of the configuration content after the application updating as unavailable.
Specifically, if the check result of the updated configuration content obtained in step S203 is unavailable, it indicates that the configuration content is in error, and if the configuration content is incorrect, the flag content of the updated configuration content is marked as unavailable.
In the embodiment of the application, configuration update information is firstly obtained from a cloud server, the configuration update information comprises an application identifier and configuration content updated by the application, the application identifier and the configuration content updated by the application are then stored, a mark content of the configuration content updated by the application is marked to be checked, a check result of the configuration content updated by the application is obtained, if the check result is available, the mark content of the configuration content updated by the application is marked to be available, and if the check result is unavailable, the mark content of the configuration content updated by the application is marked to be unavailable. Therefore, the marked content of the updated configuration content acquired from the cloud server is marked according to whether the updated configuration content passes the application verification and the verification result, so that the configuration content can be sent to the application according to the marked content when a configuration content acquisition request sent by the application is received. According to the embodiment of the Application, the intermediate configuration service is established between the cloud server and the Application, when the interactive Interface of the cloud server, namely an Application Programming Interface (API for short), is adjusted, only the Interface and the debugging with the configuration service are needed, the Application is not needed to be separately in butt joint with the cloud server for debugging, repeated development and debugging work brought by adjustment of the API parameters of the interactive Interface of the cloud server is reduced, and the influence of network instability on the Application to obtain the configuration content is avoided by locally caching the configuration content.
In the above embodiment, the step S202 "mark the mark content of the configuration content after the application update as to-be-checked" can be further explained according to the following two cases:
the first condition is as follows: if the configuration content corresponding to the application identifier and marked as the configuration content to be verified exists, deleting the configuration content corresponding to the application identifier and marked as the configuration content to be verified, and marking the configuration content updated by the application as the configuration content to be verified.
As a feasible implementation manner, after the configuration update information is obtained from the cloud server, whether the configuration content corresponding to the application identifier and having the mark content to be checked exists in the local storage is searched according to the application identifier in the configuration update information, if the configuration content exists, the mark content is deleted as the configuration content to be checked, and the configuration content after the application update is marked as the configuration content to be checked, so that the version of the configuration content in the state to be checked in the local storage is updated, so that the application can obtain the configuration content of the latest version when obtaining the configuration content, that is: applying the updated configuration content.
And a second condition: and if the configuration content which corresponds to the application identifier and is marked as the configuration content to be verified does not exist, marking the configuration content updated by the application as the configuration content to be verified.
As a feasible implementation manner, after the configuration update information is acquired from the cloud server, whether the configuration content corresponding to the application identifier and marked as to-be-verified exists in the local storage is searched according to the application identifier in the configuration update information, and if not, the configuration content after the application update is marked as to-be-verified, so that when the configuration content is sent to the application according to the marked content, the configuration content after the application update, the marked content of which is not to-be-verified, can be sent to the application.
In the embodiment of the application, whether the mark content corresponding to the application identifier is the configuration content to be checked is found according to the application identifier in the configuration updating information, if so, the configuration content is deleted, the configuration content after the application updating is stored, the mark content is marked to be checked, and if not, the mark content of the configuration content after the application updating is directly marked to be checked. Therefore, only the unique and latest version of configuration content is reserved for the marking content in the local storage in the state to be checked.
In the above embodiment, the step S204 "mark the mark content of the configuration content after the update as available" can be further explained according to the following two cases.
The first condition is as follows: and if the configuration content corresponding to the application identifier and available in the marking content exists, deleting the configuration content corresponding to the application identifier and available in the marking content, and marking the marking content of the configuration content updated by the application as available.
Case two: and if the configuration content corresponding to the identification of the application and the marking content is available does not exist, marking the marking content of the configuration content updated by the application as available.
Specifically, according to the obtained verification result of the configuration content updated by the application (based on the above embodiment, it may also be referred to as the configuration content to be verified), if the verification result is available, it is searched in the local storage whether there is a configuration content corresponding to the identifier of the application and the flag content is available, if so, the configuration content is deleted, the flag content of the configuration content updated by the application (based on the above embodiment, it may also be referred to as the configuration content to be verified) is marked as available, and if not, the flag content of the configuration content updated by the application (based on the above embodiment, it may also be referred to as the configuration content to be verified) is directly marked as available and then stored.
In the embodiment of the application, when a verification result that the application verifies the configuration content to be verified as available is obtained, whether the configuration content to be verified corresponding to the identifier of the application exists is searched according to the identifier of the application, if yes, the configuration content is deleted, the identifier content of the configuration content updated by the application (the identifier content is the configuration content to be verified) is marked as available, and if not, the identifier content of the configuration content updated by the application (the identifier content is the configuration content to be verified) is directly marked as available. Therefore, the updating of the mark content of the configuration content according to the verification result is realized, and only the unique and latest version of the configuration content is reserved in the state that the mark content in the local storage is available.
In the above embodiment, the step S204 "mark the mark content of the updated configuration content as unavailable" can be further explained according to the following two cases:
the first condition is as follows: and if the configuration content corresponding to the application identifier and marked as unavailable exists, deleting the configuration content corresponding to the application identifier and marked as unavailable, and marking the marked content of the updated configuration content as unavailable.
Case two: and if the configuration content corresponding to the identification of the application and marked as unavailable does not exist, marking the marked content of the updated configuration content of the application as unavailable.
The steps and methods for marking the marking content of the configuration content after the application update as unavailable in the embodiment of the present application are similar to those in the above embodiment, and are not described again here.
In the embodiment of the application, when it is acquired that the result of the verification that the application is the configuration content to be verified is unavailable, first, whether the configuration content corresponding to the identifier of the application is unavailable is found according to the identifier of the application, if so, the configuration content is deleted, the tag content of the configuration content updated by the application (the tag content is the configuration content to be verified) is marked as unavailable, and if not, the tag content of the configuration content updated by the application (the tag content is the configuration content to be verified) is directly marked as unavailable. Therefore, the updating of the marking content of the configuration content according to the verification result is realized, and only the unique and latest version of the configuration content is reserved in the state that the marking content in the local storage is unavailable.
Further, on the basis of the embodiment shown in fig. 2, the method for processing the application configuration content of the present application may further include: and sending the verification result to a cloud server.
Specifically, the obtained verification result of the configuration content updated by the application can be sent to the cloud server, so that the cloud server marks the configuration content updated by the application according to the verification result, and the application operator can update and upload the unavailable configuration content again.
In order to more clearly describe the processing method of the application configuration content according to the embodiment of the present application, the following description is made in detail with reference to fig. 3. Fig. 3 is an overall flowchart illustrating a processing method of application configuration content according to an exemplary embodiment of the present application.
As shown in fig. 3, when the updated configuration content is uploaded by the cloud server, the configuration content processing method according to the embodiment of the present application may specifically include the following steps:
s301, configuration updating information is obtained from the cloud server, and the configuration updating information comprises an application identifier and configuration content after application updating.
S302, judging whether the configuration content which corresponds to the application identifier and is marked as the content to be verified exists according to the application identifier. If yes, step S303 is executed, and if not, step S304 is executed.
S303, deleting the configuration content which corresponds to the application identifier and is marked as the content to be verified.
S304, marking the configuration content after the application updating as to-be-checked.
S305, obtaining a verification result of the configuration content after the application is updated.
If the verification result is available, step S306 is executed, and if the verification result is unavailable, step S309 is executed.
S306, judging whether the configuration content which corresponds to the application identifier and is marked as available exists.
If yes, step S307 is executed, and if not, step S308 is executed.
S307, deleting the configuration content which corresponds to the application identifier and is available in the mark content, and marking the mark content of the configuration content updated by the application as available. Step S312 is performed.
S308, marking the mark content of the configuration content after the updating is applied as available. Step S312 is performed.
S309, judging whether configuration content which corresponds to the application identifier and marks the content as unavailable exists.
If yes, step S310 is executed, and if not, step S311 is executed.
S310, deleting the configuration content which corresponds to the application identifier and marks the content as unavailable, and marking the mark content of the configuration content updated by the application as unavailable. Step S312 is performed.
S311, mark the mark content of the configuration content after the update is applied as unavailable. Step S312 is performed.
And S312, sending the verification result to a cloud server.
S313, the configuration content acquisition request sent by the application is acquired.
S314, obtaining the configuration content corresponding to the application identification and the mark content of the configuration content.
And S315, transmitting the configuration content to the application according to the mark content.
Fig. 4 is a block diagram illustrating an apparatus for processing application configuration content according to an exemplary embodiment of the present application, where as shown in fig. 4, the apparatus 400 for processing application configuration content includes: a first obtaining module 401, a second obtaining module 402 and a sending module 403.
The first obtaining module 401 is configured to obtain a configuration content obtaining request sent by an application, where the configuration content obtaining request includes an identifier of the application.
A second obtaining module 402, configured to obtain configuration content corresponding to the identifier of the application and mark content of the configuration content.
A sending module 403, configured to send the configuration content to the application according to the marked content.
In this embodiment of the application, the sending module 403 may specifically be configured to: if the marked content is the configuration content to be verified, sending the marked content which is the configuration content to be verified to the application; if the configuration content with the marked content as the to-be-verified configuration content does not exist but the configuration content with the marked content as the available configuration content exists, the configuration content with the marked content as the available configuration content is sent to the application; and if the marker content is not the configuration content to be verified and the marker content is not the available configuration content, sending prompt information of the non-configuration content to the application.
In this embodiment of the present application, the processing apparatus 400 for applying configuration content further includes: the third acquisition module is used for acquiring configuration updating information from the cloud server, wherein the configuration updating information comprises an application identifier and configuration content after application updating; the first marking module is used for storing the application identifier and the configuration content after application updating, and marking the marking content of the configuration content after application updating as to-be-checked; the fourth obtaining module is used for obtaining a verification result of the configuration content after the application is updated; the second marking module is used for marking the marking content of the configuration content after the application updating as available if the verification result is available; and the third marking module is used for marking the marking content of the configuration content after the updated application is applied as unavailable if the verification result is unavailable.
In this embodiment of the present application, the first marking module may be specifically configured to: if the configuration content corresponding to the application identifier and marked as the configuration content to be verified exists, deleting the configuration content corresponding to the application identifier and marked as the configuration content to be verified, and marking the configuration content updated by the application as the configuration content to be verified; and if the configuration content which corresponds to the application identifier and is marked as the configuration content to be verified does not exist, marking the configuration content updated by the application as the configuration content to be verified.
In this embodiment, the second marking module may be specifically configured to: if the configuration content corresponding to the application identifier and marked as available exists, deleting the configuration content corresponding to the application identifier and marked as available, and marking the marked content of the configuration content updated by the application as available; and if the configuration content corresponding to the identification of the application and available in the marking content does not exist, marking the marking content of the configuration content after the application is updated as available.
In this embodiment, the third marking module may be specifically configured to: if the configuration content corresponding to the application identifier and marked as unavailable exists, deleting the configuration content corresponding to the application identifier and marked as unavailable, and marking the marked content of the configuration content updated by the application as unavailable; and if the configuration content corresponding to the identification of the application and marked as unavailable does not exist, marking the marked content of the updated configuration content of the application as unavailable.
In this embodiment of the application, the sending module 403 may be further configured to: and sending the verification result to a cloud server.
It should be noted that the above explanation of the embodiment of the processing method for application configuration content is also applicable to the processing apparatus for application configuration content in the embodiment of the present application, and the specific process is not described herein again.
In the embodiment of the application, a configuration content acquisition request sent by an application is firstly acquired, the configuration content acquisition request comprises an application identifier, then configuration content corresponding to the application identifier and mark content of the configuration content are acquired, and the configuration content is sent to the application according to the mark content. Therefore, the application can directly acquire the configuration content from the local and is not influenced by network fluctuation, the situation that the application acquires the configuration content from a remote end is avoided, the workload of configuration content access is reduced, the efficiency of configuration content acquisition is improved, and the stability of configuration service is enhanced.
In order to implement the foregoing embodiment, an embodiment of the present application further provides an on-board central control system 500, as shown in fig. 5, where the on-board central control system 500 includes: the plurality of applications 501 and the application configuration content processing apparatus 400 as shown in the above embodiments.
In order to implement the foregoing embodiment, the embodiment of the present application further provides a vehicle 600, as shown in fig. 6, where the vehicle 600 may specifically include: the vehicle-mounted center control system 500 according to the above embodiment.
In order to implement the foregoing embodiment, an embodiment of the present application further provides an electronic device 700, as shown in fig. 7, where the electronic device 700 specifically includes: the memory 701, the processor 702, and the computer program stored in the memory 701 and capable of running on the processor 702, when the processor 702 executes the program, the processing method of the application configuration content as shown in the above embodiments is implemented.
In order to implement the foregoing embodiments, the present application also proposes a computer-readable storage medium, on which a computer program is stored, the program being executed by a processor to implement the processing method of the application configuration content as shown in the foregoing embodiments. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In the description of the present specification, reference to the description of "one embodiment," "some embodiments," "an example," "a specific example," or "some examples" or the like means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (18)

1. A processing method for application configuration content is characterized by comprising the following steps:
acquiring a configuration content acquisition request sent by an application, wherein the configuration content acquisition request comprises an identifier of the application;
acquiring configuration content corresponding to the application identifier and mark content of the configuration content;
and sending the configuration content to the application according to the mark content.
2. The processing method according to claim 1, wherein the sending the configuration content to the application according to the markup content comprises:
if the marked content is the configuration content to be verified, sending the marked content to the application, wherein the marked content is the configuration content to be verified;
if the configuration content with the marked content as the to-be-verified configuration content does not exist but the configuration content with the marked content as the available configuration content exists, the configuration content with the marked content as the available configuration content is sent to the application;
and if the configuration content with the marked content to be checked does not exist and the configuration content with the marked content available does not exist, sending prompt information without the configuration content to the application.
3. The processing method according to claim 1, wherein before the obtaining the configuration content obtaining request sent by the obtaining application, the method further comprises:
acquiring configuration updating information from a cloud server, wherein the configuration updating information comprises an application identifier and configuration content updated by the application;
storing the identifier of the application and the updated configuration content of the application, and marking the mark content of the updated configuration content of the application as to-be-checked;
obtaining a verification result of the configuration content updated by the application;
if the verification result is available, marking the marked content of the configuration content after the application update as available;
and if the verification result is unavailable, marking the marked content of the configuration content after the application update as unavailable.
4. The processing method according to claim 3, wherein said marking the marked content of the configuration content after the application update as to-be-checked comprises:
if the configuration content corresponding to the application identifier and the marked content to be checked exists, deleting the configuration content corresponding to the application identifier and the marked content to be checked, and marking the updated configuration content of the application as the configuration content to be checked;
and if the configuration content corresponding to the application identifier and marked as the configuration content to be verified does not exist, marking the configuration content updated by the application as the configuration content to be verified.
5. The processing method according to claim 3, wherein said marking the marked content of the application-updated configuration content as available comprises:
if the configuration content corresponding to the application identifier and available in the mark content exists, deleting the configuration content corresponding to the application identifier and available in the mark content, and marking the mark content of the configuration content updated by the application as available;
and if no configuration content which corresponds to the identification of the application and is available is existed, marking the marking content of the configuration content after the application is updated as available.
6. The processing method according to claim 3, wherein said marking the marked content of the application-updated configuration content as unavailable comprises:
if the configuration content corresponding to the application identifier and the marked content is unavailable exists, deleting the configuration content corresponding to the application identifier and the marked content is unavailable, and marking the marked content of the configuration content updated by the application as unavailable;
if the configuration content corresponding to the identification of the application does not exist and the mark content is unavailable, marking the mark content of the configuration content updated by the application as unavailable.
7. The processing method of claim 3, further comprising:
and sending the checking result to the cloud server.
8. A processing apparatus for configuring content by an application, comprising:
a first obtaining module, configured to obtain a configuration content obtaining request sent by an application, where the configuration content obtaining request includes an identifier of the application;
a second obtaining module, configured to obtain configuration content corresponding to the identifier of the application and tag content of the configuration content;
and the sending module is used for sending the configuration content to the application according to the marking content.
9. The processing apparatus according to claim 8, wherein the sending module is specifically configured to:
if the marked content is the configuration content to be verified, sending the configuration content to be verified, which is the marked content, to the application;
if the configuration content with the marked content as the to-be-verified configuration content does not exist but the configuration content with the marked content as the available configuration content exists, the configuration content with the marked content as the available configuration content is sent to the application;
and if the configuration content with the marked content to be checked does not exist and the configuration content with the marked content available does not exist, sending prompt information without the configuration content to the application.
10. The processing apparatus as in claim 8, further comprising:
the third acquisition module is used for acquiring configuration updating information from the cloud server, wherein the configuration updating information comprises an application identifier and configuration content updated by the application;
the first marking module is used for storing the identification of the application and the updated configuration content of the application and marking the marking content of the updated configuration content of the application as to-be-checked;
a fourth obtaining module, configured to obtain a verification result of the configuration content updated by the application;
a second marking module, configured to mark the marking content of the configuration content updated by the application as available if the verification result is available;
and a third marking module, configured to mark the marking content of the configuration content after the application update as unavailable if the verification result is unavailable.
11. The processing apparatus as claimed in claim 10, wherein the first marking module is specifically configured to:
if the configuration content corresponding to the application identifier and the marked content to be checked exists, deleting the configuration content corresponding to the application identifier and the marked content to be checked, and marking the updated configuration content of the application as the configuration content to be checked;
and if the configuration content corresponding to the application identifier and marked as the configuration content to be verified does not exist, marking the configuration content updated by the application as the configuration content to be verified.
12. The processing apparatus according to claim 10, wherein the second marking module is specifically configured to:
if the configuration content corresponding to the application identifier and available in the mark content exists, deleting the configuration content corresponding to the application identifier and available in the mark content, and marking the mark content of the configuration content updated by the application as available;
and if no configuration content which corresponds to the identification of the application and is available is existed, marking the marking content of the configuration content after the application is updated as available.
13. The processing apparatus according to claim 10, wherein the third marking module is specifically configured to:
if the configuration content corresponding to the application identifier and the marked content is unavailable exists, deleting the configuration content corresponding to the application identifier and the marked content is unavailable, and marking the marked content of the configuration content updated by the application as unavailable;
if no configuration content corresponding to the identification of the application and the mark content is unavailable exists, marking the mark content of the configuration content updated by the application as unavailable.
14. The processing apparatus as claimed in claim 10, wherein the sending module is further configured to:
and sending the checking result to the cloud server.
15. A vehicle-mounted central control system is characterized by comprising: a processing apparatus for configuring content for a plurality of applications and an application as claimed in any one of claims 8 to 14.
16. A vehicle, characterized by comprising: the vehicle mounted central control system of claim 15.
17. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, the processor implementing the processing method of application configuration content according to any one of claims 1 to 7 when executing the program.
18. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of processing application configuration content according to any one of claims 1 to 7.
CN202111110995.3A 2021-09-18 2021-09-18 Processing method and device for application configuration content Pending CN115437661A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111110995.3A CN115437661A (en) 2021-09-18 2021-09-18 Processing method and device for application configuration content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111110995.3A CN115437661A (en) 2021-09-18 2021-09-18 Processing method and device for application configuration content

Publications (1)

Publication Number Publication Date
CN115437661A true CN115437661A (en) 2022-12-06

Family

ID=84271888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111110995.3A Pending CN115437661A (en) 2021-09-18 2021-09-18 Processing method and device for application configuration content

Country Status (1)

Country Link
CN (1) CN115437661A (en)

Similar Documents

Publication Publication Date Title
JP5527146B2 (en) Terminal device and program
US7940407B2 (en) Image forming apparatus, terminal apparatus and management apparatus
US20220276854A1 (en) Application Deployment Method, Apparatus, and System
CN109117168A (en) Unmanned plane firmware update, device, unmanned plane and storage medium
CN106802814B (en) Method and device for upgrading software version
US9471300B2 (en) Wireless firmware upgrades to an alarm security panel
US20070245333A1 (en) Methods and Systems for Managing Firmware
CN106027644B (en) Service verification method and system
JP2013073417A (en) Method and system for arranging object data, server device thereof, client device, and program
CN101571809A (en) Implementation method of plug-in registration and device thereof
CN105786636B (en) A kind of system repair and device
CN111949314A (en) Method and device for generating application installation package, server and storage medium
JPH04347733A (en) Computer program maintenance system
CN113037850A (en) Application program upgrading method and device, electronic equipment and storage medium
CN113282310A (en) Application management method and system, vehicle-mounted device, server and readable storage medium
CN115437661A (en) Processing method and device for application configuration content
CN110119388B (en) File reading and writing method, device, system, equipment and computer readable storage medium
CN113805933A (en) Set top box system upgrading method and device, set top box, system and storage medium
CN116743809A (en) Data simulation method, storage medium and test platform of Internet of things equipment
JP2022103451A (en) Apparatus for confirming compatibility of software and vehicle equipped therewith, method and program for confirming compatibility of software
CN113553083A (en) Program upgrading method and device for air conditioning system, air conditioning system and storage medium
JP2015121887A (en) Information processing device and control method thereof, and program
CN110825406A (en) Software upgrading method and related equipment
CN117170934A (en) Updating method, device, system, electronic equipment and storage medium
CN107783774B (en) Ticket selling interface updating method and device and computer readable storage medium

Legal Events

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