Method and device for updating configuration information

By comparing the configuration information version numbers of client devices and server devices, and sending incremental information or full information according to the differences, the problem of low efficiency in configuration information update in the existing technology is solved, and more efficient data transmission and better user experience.

CN119440562APending Publication Date: 2025-02-14BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310943601.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-28
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

When the server-side equipment updates configuration information, the existing technology can only support incremental updates or full updates alone, resulting in large network resources occupied, low transmission efficiency, and poor user experience during the configuration information update process.

Method used

By receiving the configuration information update request sent by the client device, compare the configuration information version number of the client device with the configuration information version number of the server device. If the server version number is less than the client version number, send incremental information to update; If the difference is less than the target threshold, only incremental information is sent; if the version number is the same, a prompt message means no update is required.

Benefits of technology

It improves the transmission efficiency of configuration information updates, reduces the pressure of data transmission, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119440562A_ABST
    Figure CN119440562A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a configuration information updating method and device, and relates to the technical field of data processing, and the method specifically comprises the steps: receiving a configuration information updating request sent by client equipment; the configuration information updating request carries a first version number of configuration information currently used by the client device; obtaining a second version number in response to the configuration information updating request; and if the second version number is smaller than the first version number, determining configuration information corresponding to the second version number according to a corresponding relationship between the version number and the configuration information, and sending the configuration information corresponding to the second version number to the client device. The embodiment of the invention is used for improving the efficiency of transmitting the updated configuration information and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, and in particular to a method and device for updating configuration information. Background Art

[0002] Currently, when updating the local configuration data of the client, the client device usually requests the server device to obtain the latest version of the configuration information, and then the server device sends the latest version of the configuration information to the client device.

[0003] However, in the prior art, when the server device updates the configuration information, it can only support incremental update or full update. In the case of supporting only incremental update, it is only necessary to modify or update part of the configuration information based on the original configuration information. If the full configuration information is still sent to the client device, the configuration information will occupy a large amount of network resources during the transmission process, resulting in low transmission efficiency and poor user experience. Summary of the invention

[0004] In view of this, an embodiment of the present application provides a method and apparatus for updating configuration information, which are used to improve the efficiency of transmitting updated configuration information and enhance user experience.

[0005] In a first aspect, an embodiment of the present application provides a method for updating configuration information, including:

[0006] Receiving a configuration information update request sent by a client device; the configuration information update request carries a first version number of the configuration information currently used by the client device;

[0007] In response to the configuration information update request, obtaining a second version number; the second version number is the version number of the latest version of the configuration information in the server device;

[0008] If the second version number is smaller than the first version number, the configuration information corresponding to the second version number is determined based on the correspondence between the version number and the configuration information, and the configuration information corresponding to the second version number is sent to the client device; so that the client device updates the local configuration information based on the configuration information corresponding to the second version number, and updates the version number of the local configuration information to the second version number.

[0009] As an optional implementation of the embodiment of the present application, the method further includes:

[0010] If the second version number is smaller than the first version number, and the difference between the second version number and the first version number is smaller than the target threshold, then based on the correspondence between the version number and the configuration information, obtain the incremental information of the configuration information corresponding to the second version number relative to the configuration information of the first version number, and send the incremental information to the client device; so that the client device can update the local configuration information based on the incremental information, and update the version number of the local configuration information to the second version number.

[0011] As an optional implementation of the embodiment of the present application, the method further includes:

[0012] If the second version number is equal to the first version number, a prompt message is sent to the client; the prompt message is used to prompt the client device that the configuration information does not need to be updated.

[0013] As an optional implementation of the embodiment of the present application, the method further includes:

[0014] If the second version number is smaller than the first version number, configuration information corresponding to the second version number is sent to the client device, so that the client device updates local configuration information based on the configuration information corresponding to the second version number and updates the version number of the local configuration information to the second version number.

[0015] As an optional implementation of the embodiment of the present application, before sending the incremental information to the client device, it includes:

[0016] Based on the version number sequence, obtain the difference information between the configuration information of each version number and the configuration information of the next version number;

[0017] The version number sequence includes the first version number, the second version number, and version numbers between the first version number and the second version number;

[0018] The differential information is merged to obtain the incremental information.

[0019] Construct and save the corresponding relationship between the incremental information and the version number change corresponding to the incremental information.

[0020] As an optional implementation of the embodiment of the present application, the method further includes:

[0021] When the number of the change correspondence relationships reaches a preset number, the change correspondence relationships are deleted according to the storage time.

[0022] As an optional implementation of the embodiment of the present application, the configuration information includes at least one configuration file, each configuration file is provided with a corresponding identifier and a threshold value corresponding to the identifier; the method further includes:

[0023] Each time a processing operation is performed on the at least one configuration file, the threshold corresponding to the identifier is updated once; the processing operation includes: a adding operation, an updating operation, and a deleting operation;

[0024] For the configuration files with the same identifier, when the configuration files are updated each time, the threshold corresponding to the last update operation is retained;

[0025] For the configuration files with the same identifier, when the configuration files are updated and newly added each time, the threshold corresponding to the newly added operation is retained;

[0026] For the configuration files with the same identifier, each time the configuration files are updated, added, or deleted, the threshold corresponding to the deletion operation is retained.

[0027] In a second aspect, an embodiment of the present application provides a device for updating configuration information, including:

[0028] A receiving unit, configured to receive a configuration information update request sent by a client device; the configuration information update request carries a first version number of the configuration information currently used by the client device;

[0029] A response unit, configured to obtain a second version number in response to the configuration information update request; the second version number is the version number of the latest version of the configuration information in the server device;

[0030] a sending unit, configured to determine, when the second version number is smaller than the first version number, the configuration information corresponding to the second version number according to the correspondence between the version number and the configuration information, and send the configuration information corresponding to the second version number to the client device; so that the client device updates the local configuration information based on the configuration information corresponding to the second version number, and updates the version number of the local configuration information to the second version number;

[0031] The sending unit is also used to, when the second version number is smaller than the first version number and the difference between the second version number and the first version number is smaller than a target threshold, obtain incremental information of the configuration information corresponding to the second version number relative to the configuration information of the first version number based on the correspondence between the version number and the configuration information, and send the incremental information to the client device; so that the client device can update the local configuration information based on the incremental information and update the version number of the local configuration information to the second version number.

[0032] As an optional implementation of the embodiment of the present application, the sending unit is also used to send a prompt message to the client if the second version number is equal to the first version number; the prompt message is used to prompt that the configuration information of the client device does not need to be updated.

[0033] As an optional implementation of the embodiment of the present application, the sending unit is also used to send configuration information corresponding to the second version number to the client device if the second version number is smaller than the first version number, so that the client device can update local configuration information based on the configuration information corresponding to the second version number, and update the version number of the local configuration information to the second version number.

[0034] As an optional implementation of the embodiment of the present application, the sending unit is specifically used to obtain differential information between configuration information of each version number and configuration information of the next version number based on a version number sequence; wherein the version number sequence includes the first version number, the second version number, and a version number between the first version number and the second version number; merging the differential information to obtain the incremental information; constructing and saving a change correspondence between the incremental information and the version number change corresponding to the incremental information.

[0035] As an optional implementation of the embodiment of the present application, the sending unit is also used to delete the change correspondence according to the storage time when the number of the change correspondence reaches a preset number.

[0036] As an optional implementation manner of the embodiment of the present application, the configuration information includes at least one configuration file, each configuration file is provided with a corresponding identifier and a threshold value corresponding to the identifier; the sending unit is further used to: each time a processing operation is performed on the at least one configuration file, the threshold value corresponding to the identifier is updated once; the processing operation includes: a new operation, an update operation, and a deletion operation; for the configuration files with the same identifier, each time the configuration files are updated, the threshold value corresponding to the last update operation is retained; for the configuration files with the same identifier, each time the configuration files are updated and added, the threshold value corresponding to the new addition operation is retained; for the configuration files with the same identifier, each time the configuration files are updated, added, and deleted, the threshold value corresponding to the deletion operation is retained.

[0037] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to enable the electronic device to implement the method for updating configuration information described in any of the above embodiments when executing the computer program.

[0038] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a computing device, the computing device implements the method for updating configuration information described in any of the above embodiments.

[0039] In a fifth aspect, an embodiment of the present application provides a vehicle, comprising: the device for updating configuration information described in the second aspect or the electronic device described in the third aspect.

[0040] The method for updating configuration information provided in the embodiment of the present application is specifically as follows: receiving a configuration information update request sent by a client device; the configuration information update request carries a first version number of the configuration information currently used by the client device; in response to the configuration information update request, obtaining a second version number; the second version number is the version number of the latest version of the configuration information in the server device; if the second version number is smaller than the first version number, determining the configuration information corresponding to the second version number based on the correspondence between the version number and the configuration information, and sending the configuration information corresponding to the second version number to the client device; so that the client device updates the local configuration information based on the configuration information corresponding to the second version number, and updates the version number of the local configuration information to the second version number. The present application compares the version number of the configuration information of the client device with the version number of the configuration information of the server device, and then obtains the configuration information corresponding to the version number according to the correspondence between the version number and the configuration information. Therefore, the present application can send the corresponding configuration information to the client device according to the difference in configuration information between the version numbers, solving the problem that only incremental updates or full updates can be made separately in the prior art. Therefore, the embodiment of the present application can send the configuration information corresponding to the version number according to the client device's demand for configuration information, and then, when the configuration information of the server device is not updated much, only incremental information is sent, which reduces the pressure of data transmission and improves transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0043] Figure 1 A schematic diagram of a configuration information updating method provided in an embodiment of the present application;

[0044] Figure 2 One of the step flow charts of the method for updating configuration information provided in an embodiment of the present application;

[0045] Figure 3 A second flowchart of the method for updating configuration information provided in an embodiment of the present application;

[0046] Figure 4 A flowchart of a method for updating configuration information provided in an embodiment of the present application;

[0047] Figure 5 A schematic diagram of the structure of a device for updating configuration information provided in an embodiment of the present application;

[0048] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0049] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0050] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0051] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way. In addition, in the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more.

[0052] It should be noted that, in this article, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0053] The client device in the embodiment of the present application can be various terminal devices such as vehicles, mobile phones, tablet computers, desktop computers, etc., and the server device can be a cluster or multiple clusters, which can include one or more types of servers. Figure 1 As shown, it is an architectural diagram of a method for updating configuration information provided in an embodiment of the present application, wherein the client device 100 takes a vehicle as an example, and the client device 100 communicates data with the server device 200 through a variety of communication methods, allowing the client device 100 to communicate and connect through a local area network (LAN), a wireless local area network (WLAN) and other networks.

[0054] Based on the above content, the embodiment of the present application provides a method for updating configuration information. Figure 2 As shown, the configuration information updating method includes the following steps S201-S204:

[0055] S201: Receive a configuration information update request sent by a client device.

[0056] The configuration information update request carries the first version number of the configuration information currently used by the client device.

[0057] In some embodiments, when the client device needs to update local configuration information, it can send the configuration information update request to the corresponding server device; when sending the configuration information update request, the client device will also obtain the version number of the configuration information currently used by the client device, and send the version number of the configuration information currently used by the client device to the corresponding server device. After the server device receives the configuration update request of the client device, the configuration information update method will perform the following steps S202-S204:

[0058] S202: In response to the configuration information update request, obtain a second version number.

[0059] The second version number is the version number of the latest version of the configuration information in the server device.

[0060] In some embodiments, after receiving the configuration update request, the server device will immediately determine the version number of the latest configuration information of the current server device for comparison with the version number currently used by the client to determine the status of the configuration information currently used by the client device.

[0061] S203. If the second version number is smaller than the first version number, the configuration information corresponding to the second version number is determined according to the correspondence between the version number and the configuration information, and the configuration information corresponding to the second version number is sent to the client device, so that the client device updates the local configuration information based on the configuration information corresponding to the second version number, and updates the version number of the local configuration information to the second version number.

[0062] In some embodiments, after obtaining a first version number of the configuration information of the client device and a second version number of the latest configuration information of the server device, the size relationship between the first version number and the second version number is determined. When the second version number is smaller than the first version number, the difference between the second version number and the first version number is greater than a target threshold. Exemplarily, the target threshold may be 5; indicating that the configuration information currently used by the client device and the latest configuration information of the server device differ by more than 5 versions of configuration information. Therefore, the current configuration information of the client device is significantly different from the latest configuration information of the server. The latest configuration information of the server device, i.e., the configuration information corresponding to the second version number, is directly sent to the client device.

[0063] After receiving the configuration information corresponding to the second version number, the client device will update the local configuration information according to the configuration information corresponding to the second version number, and update the version number of the local configuration information to the second version number for use next time the configuration update request is sent.

[0064] The method for updating configuration information provided in the embodiment of the present application is specifically as follows: receiving a configuration information update request sent by a client device; the configuration information update request carries a first version number of the configuration information currently used by the client device; in response to the configuration information update request, obtaining a second version number; the second version number is the version number of the latest version of the configuration information in the server device; if the second version number is smaller than the first version number, determining the configuration information corresponding to the second version number based on the correspondence between the version number and the configuration information, and sending the configuration information corresponding to the second version number to the client device; so that the client device updates the local configuration information based on the configuration information corresponding to the second version number, and updates the version number of the local configuration information to the second version number. The present application compares the version number of the configuration information of the client device with the version number of the configuration information of the server device, and then obtains the configuration information corresponding to the version number according to the correspondence between the version number and the configuration information. Therefore, the present application can send the corresponding configuration information to the client device according to the difference in configuration information between the version numbers, solving the problem that only incremental updates or full updates can be made separately in the prior art. Therefore, the embodiment of the present application can send the configuration information corresponding to the version number according to the client device's demand for configuration information, and then, when the configuration information of the server device is not updated much, only incremental information is sent, which reduces the pressure of data transmission and improves transmission efficiency.

[0065] As an extension and refinement of the above embodiment, the present application embodiment provides a method for updating configuration information, referring to Figure 3 As shown, the configuration information updating method includes the following steps S301-S306:

[0066] S301: Receive a configuration information update request sent by a client device.

[0067] The configuration information update request carries the first version number of the configuration information currently used by the client device.

[0068] Before the above step S301 (receiving a configuration information update request sent by a client device), after the server device obtains the new version of the configuration information, it first generates a version number corresponding to the new version of the configuration information. For example, the version number of the latest configuration information of the current server device is 4. At this time, after obtaining the new version of the configuration information, the server device sets the version number of the new version of the configuration information to 5; and saves the correspondence between the version number and the corresponding configuration information.

[0069] It should be noted that the number of corresponding relationships in the correspondence table is fixed and will not increase with the version number of the configuration information. For example, the correspondence variant can only store 10 pairs of corresponding relationships. When new configuration information and the corresponding version number need to be stored, the version number with the smallest version number in the correspondence table and its corresponding configuration information need to be deleted to obtain a blank position in the correspondence table for storing the latest version number and the configuration information corresponding to the latest version number.

[0070] S302: In response to the configuration information update request, obtain a second version number.

[0071] The second version number is the version number of the latest version of the configuration information in the server device.

[0072] S303. If the second version number is smaller than the first version number, the configuration information corresponding to the second version number is determined based on the correspondence between the version number and the configuration information, and the configuration information corresponding to the second version number is sent to the client device; so that the client device updates the local configuration information based on the configuration information corresponding to the second version number, and updates the version number of the local configuration information to the second version number.

[0073] In some embodiments, when the server device sends configuration information of the corresponding version number to the client device, if the configuration information is larger than the preset data volume, for example, when the preset data volume is set to 100 megabytes (M), and the configuration information is larger than 100M, the configuration information can be compressed to obtain compressed configuration information to reduce the resources occupied by the server device to send data to the client device. After receiving the compressed configuration information, the client will perform corresponding decompression processing, decompress the compressed configuration information, restore the original configuration information, and then update the local configuration information.

[0074] The compression and decompression processing of the configuration information may be based on any compression algorithm in the prior art, such as the LZ77 compression and decompression algorithm, the ppmd compression and decompression algorithm, and the like.

[0075] S304. If the second version number is smaller than the first version number, and the difference between the second version number and the first version number is smaller than the target threshold, then based on the correspondence between the version number and the configuration information, obtain the incremental information of the configuration information corresponding to the second version number relative to the configuration information of the first version number, and send the incremental information to the client device.

[0076] Among them, the client device is used to update local configuration information based on the incremental information, and update the version number of the local configuration information to the second version number; the incremental information includes incremental information of the configuration information corresponding to the second version number relative to the configuration information of the first version number.

[0077] In some embodiments, when the second version number is smaller than the first version number, the difference between the second version number and the first version number is smaller than a target threshold value. Exemplarily, the target threshold value may be 5. This indicates that the configuration information currently used by the client device and the latest configuration information of the server device differ by less than 5 versions. Therefore, the current configuration information of the client device is slightly different from the latest configuration information of the server. Then, the incremental information of the configuration information corresponding to the second version number relative to the configuration information of the first version number is obtained, and the incremental information is sent to the client device.

[0078] After receiving the incremental information, the client device will update the corresponding configuration file with the local configuration information according to the incremental information, and update the version number of the local configuration information to the second version number so that it can be used next time when sending the configuration update request.

[0079] In the above step S304, the method for obtaining the incremental information may include the following steps 1 and 2:

[0080] Step 1: Based on the version number sequence, obtain the difference information between the configuration information of each version number and the configuration information of the next version number.

[0081] The version number sequence includes the first version number, the second version number, and version numbers between the first version number and the second version number.

[0082] Exemplarily, when the version number of the configuration information currently used by the client device is 2, and the version number of the latest configuration information of the server device is 5, it is necessary to obtain the configuration information corresponding to version numbers 2, 3, 4, and 5 respectively, and then first obtain the difference information A between the configuration information corresponding to version numbers 2 and 3, obtain the difference information B between the configuration information corresponding to version numbers 3 and 4, and obtain the difference information C between the configuration information corresponding to version numbers 4 and 5.

[0083] Step 2: merge the difference information to obtain the incremental information.

[0084] In combination with the above embodiment, when the acquired difference information includes: difference information A, difference information B and difference information C, the difference information A, difference information B and difference information C are merged to generate the incremental information.

[0085] Step 3: Construct and save the corresponding relationship between the incremental information and the version number change corresponding to the incremental information.

[0086] In some embodiments, after the incremental information is generated, it is also necessary to construct and save the change correspondence between the incremental information and the version number change corresponding to the incremental information. Exemplarily, a change correspondence table can be constructed, and the change correspondence obtained according to the incremental information and the version number change corresponding to the incremental information can be saved in the change correspondence table; so that when other client devices have the same configuration information update requirements, they can directly obtain the corresponding incremental information, thereby improving transmission efficiency.

[0087] It should be noted that the configuration information updating method also includes the following steps:

[0088] When the number of the change correspondence relationships reaches a preset number, the change correspondence relationships are deleted according to the storage time.

[0089] In combination with the embodiment described in step 3 above, when the number of correspondences between the changes in the version number in the change correspondence table and the incremental information reaches a preset number, the corresponding correspondences in the change correspondence table are deleted according to the storage time. Specifically, the correspondences with the earliest storage time can be deleted to reduce resource usage and facilitate subsequent use.

[0090] S305: If the second version number is equal to the first version number, send a prompt message to the client.

[0091] The prompt message is used to prompt that the configuration information of the client device does not need to be updated.

[0092] In some embodiments, when the first version number of the configuration information of the client device is the same as the second version number of the latest configuration information of the server device, it means that the configuration information currently used by the client device is the latest configuration information of the server device. Therefore, the client device does not need to update the local configuration information at this time. At the same time, the server device will generate a prompt information to prompt the client device.

[0093] S306. If the second version number is smaller than the first version number, the configuration information corresponding to the second version number is sent to the client device, so that the client device updates the local configuration information based on the configuration information corresponding to the second version number, and updates the version number of the local configuration information to the second version number.

[0094] In some embodiments, when the first version number of the configuration information of the client device is greater than the second version number of the latest configuration information of the server device, it means that there is an abnormality in the configuration information currently used by the client device, or the configuration information of the current client device is already in an unavailable state. Therefore, the server device needs to send the latest configuration information to the client device so that the client device updates the local configuration information to the latest configuration information of the server device.

[0095] In some embodiments, the flowchart of the method for updating configuration information provided in the embodiment of the present application can refer to Figure 4 As shown, it includes: client device 1, client device 2, client device 3, client device 4 and server device. When the version number of the configuration information currently used by the client device is the first version number, and the version number of the latest version of the configuration information in the server device is the second version number, in client device 1, the second version number is less than the first version number and the difference between the second version number and the first version number is greater than the target threshold, then the server device sends the configuration information corresponding to the second version number to client device 1; in client device 2, the second version number is less than the first version number and the difference between the second version number and the first version number is less than the target threshold, then the server device sends incremental information to client device 2; in client device 3, when the second version number is equal to the first version number, the server device sends a prompt message to client device 3; in client device 4, when the second version number is less than the first version number, then the server device sends the configuration information corresponding to the second version number to client device 4.

[0096] As an extension and refinement of the above embodiment, the configuration information includes at least one configuration file, each configuration file is provided with a corresponding identifier and a threshold value corresponding to the identifier; the method for updating the configuration information further includes the following steps:

[0097] Step 1: Each time a processing operation is performed on the at least one configuration file, the threshold corresponding to the identifier is updated once.

[0098] The processing operations include: adding operation, updating operation and deleting operation.

[0099] Step 2: For the configuration files with the same identifier, each time the configuration files are updated, the threshold corresponding to the last update operation is retained.

[0100] Step 3: For the configuration files with the same identifier, each time the configuration files are updated and newly added, a threshold corresponding to the newly added operation is retained.

[0101] Step 4: for the configuration files with the same identifier, each time the configuration files are updated, added, or deleted, a threshold corresponding to the deletion operation is retained.

[0102] In some embodiments, the embodiments of the present application also set up a set of metalanguages ​​corresponding to the processing operations, which may include: new operations (Create, C), update operations (Update, U), and new operations (Delete, D). Each configuration file is set with a corresponding identifier and the threshold corresponding to the identifier can be implemented based on the key-value pair (Key-Value) in the prior art to avoid updating the version of the configuration information too frequently. The above method can be adopted to obtain the key-value pair; specifically, a corresponding Key is set for at least one configuration file of the configuration information, and each time a processing operation is performed on the configuration file, its threshold (Value) will be updated once. When the server device sends the configuration information corresponding to the version number to the client device, it will carry the identifier and threshold. The client device will find the corresponding configuration file according to the identifier, and can obtain the specific processing operation taken on the configuration file according to the threshold.

[0103] Therefore, when the server includes multiple processing operations on the configuration file in the configuration information of the current latest version, the threshold value (Value) corresponding to the configuration file of the same identifier (Key) can be analyzed; illustratively, when the configuration of the same version number is updated three times with file 1, three corresponding Values ​​will be obtained. At this time, only the Value corresponding to the last update needs to be retained; when the configuration of the same version number is first added and then updated with file 2, two corresponding Values ​​will be obtained. At this time, only the Value corresponding to the update operation needs to be retained; when the configuration of the same version number is first added, then updated, and finally deleted with file 3, three corresponding Values ​​will be obtained. At this time, only the Value corresponding to the deletion operation needs to be retained.

[0104] Based on the same inventive concept, as an implementation of the above method, an embodiment of the present application also provides a device for updating configuration information. This embodiment corresponds to the above method embodiment. For ease of reading, this embodiment will no longer repeat the details of the above method embodiment one by one, but it should be clear that the device for updating configuration information in this embodiment can correspond to all the contents in the above method embodiment.

[0105] The present application embodiment provides a device for updating configuration information. Figure 5 A schematic diagram of the structure of the device for updating the configuration information, such as Figure 5 As shown, the configuration information updating device 500 includes:

[0106] The receiving unit 501 is used to receive a configuration information update request sent by a client device; the configuration information update request carries a first version number of the configuration information currently used by the client device;

[0107] A response unit 502 is used to obtain a second version number in response to the configuration information update request; the second version number is the version number of the latest version of the configuration information in the server device;

[0108] A sending unit 503 is used to determine the configuration information corresponding to the second version number based on the correspondence between the version number and the configuration information when the second version number is smaller than the first version number, and send the configuration information corresponding to the second version number to the client device; so that the client device can update the local configuration information based on the configuration information corresponding to the second version number, and update the version number of the local configuration information to the second version number.

[0109] As an optional implementation of the embodiment of the present application, the sending unit 503 is also used to obtain incremental information of the configuration information corresponding to the second version number relative to the configuration information of the first version number according to the correspondence between the version number and the configuration information, and send the incremental information to the client device when the second version number is smaller than the first version number and the difference between the second version number and the first version number is smaller than the target threshold; so that the client device can update the local configuration information based on the incremental information and update the version number of the local configuration information to the second version number.

[0110] As an optional implementation of the embodiment of the present application, the sending unit 503 is also used to send a prompt message to the client if the second version number is equal to the first version number; the prompt message is used to prompt that the configuration information of the client device does not need to be updated.

[0111] As an optional implementation of the embodiment of the present application, the sending unit is also used to send configuration information corresponding to the second version number to the client device if the second version number is smaller than the first version number, so that the client device can update local configuration information based on the configuration information corresponding to the second version number, and update the version number of the local configuration information to the second version number.

[0112] As an optional implementation of the embodiment of the present application, the sending unit 503 is specifically used to obtain differential information between the configuration information of each version number and the configuration information of the next version number based on a version number sequence; wherein the version number sequence includes the first version number, the second version number, and the version number between the first version number and the second version number; merge the differential information to obtain the incremental information; store the incremental information in a change correspondence table; the change correspondence table includes the correspondence between the change of the version number and the incremental information.

[0113] As an optional implementation of the embodiment of the present application, the sending unit 503 is further used to delete the change correspondence according to the storage time when the number of the change correspondence reaches a preset number.

[0114] As an optional implementation of an embodiment of the present application, the configuration information includes at least one configuration file, each configuration file is provided with a corresponding identifier and a threshold value corresponding to the identifier; the sending unit 503 is further used for: each time a processing operation is performed on the at least one configuration file, the threshold value corresponding to the identifier is updated once; the processing operation includes: a new operation, an update operation, and a deletion operation; for the configuration files with the same identifier, each time the configuration files are updated, the threshold value corresponding to the last update operation is retained; for the configuration files with the same identifier, each time the configuration files are updated and added, the threshold value corresponding to the new addition operation is retained; for the configuration files with the same identifier, each time the configuration files are updated, added, and deleted, the threshold value corresponding to the deletion operation is retained.

[0115] Based on the same inventive concept, an embodiment of the present disclosure also provides an electronic device. Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure, such as Figure 6 As shown, the electronic device provided in this embodiment includes: a memory 601 and a processor 602, wherein the memory 601 is used to store a computer program; and the processor 602 is used to execute the audio data processing method provided in the above embodiment when executing the computer program.

[0116] Based on the same inventive concept, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the computing device implements the configuration information updating method provided in the above embodiment.

[0117] Based on the same inventive concept, an embodiment of the present application further provides a vehicle, which includes the device for updating configuration information provided by the above embodiment or the electronic device provided by the above embodiment.

[0118] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media that include computer-usable program code.

[0119] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0120] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0121] Computer readable media include permanent and non-permanent, removable and non-removable storage media. Storage media can be implemented by any method or technology to store information, and the information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0122] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for updating configuration information, characterized in that: include: Receiving a configuration information update request sent by a client device; The configuration information update request carries the first version number of the configuration information currently used by the client device; In response to the configuration information update request, obtaining a second version number; the second version number is the version number of the latest version of the configuration information in the server device; If the second version number is smaller than the first version number, the configuration information corresponding to the second version number is determined based on the correspondence between the version number and the configuration information, and the configuration information corresponding to the second version number is sent to the client device; so that the client device updates the local configuration information based on the configuration information corresponding to the second version number, and updates the version number of the local configuration information to the second version number.

2. The method according to claim 1, characterized in that The method further comprises: If the second version number is smaller than the first version number, and the difference between the second version number and the first version number is smaller than the target threshold, then based on the correspondence between the version number and the configuration information, obtain the incremental information of the configuration information corresponding to the second version number relative to the configuration information of the first version number, and send the incremental information to the client device; so that the client device can update the local configuration information based on the incremental information, and update the version number of the local configuration information to the second version number.

3. The method according to claim 1, characterized in that The method further comprises: If the second version number is equal to the first version number, a prompt message is sent to the client; the prompt message is used to prompt the client device that the configuration information does not need to be updated.

4. The method according to claim 1, characterized in that The method further comprises: If the second version number is smaller than the first version number, configuration information corresponding to the second version number is sent to the client device, so that the client device updates local configuration information based on the configuration information corresponding to the second version number and updates the version number of the local configuration information to the second version number.

5. The method according to claim 1, characterized in that: Before sending the incremental information to the client device, the method further includes: Based on a version number sequence, obtaining difference information between configuration information of each version number and configuration information of a next version number; wherein the version number sequence includes the first version number, the second version number, and version numbers between the first version number and the second version number; Merging the difference information to obtain the incremental information; Construct and save the corresponding relationship between the incremental information and the version number change corresponding to the incremental information.

6. The method according to claim 5, characterized in that The method further comprises: When the number of the change correspondence relationships reaches a preset number, the change correspondence relationships are deleted according to the storage time.

7. The method according to claim 1, characterized in that The configuration information includes at least one configuration file, each configuration file is provided with a corresponding identifier and a threshold value corresponding to the identifier; The method further comprises: Each time a processing operation is performed on the at least one configuration file, the threshold corresponding to the identifier is updated once; the processing operation includes: a adding operation, an updating operation, and a deleting operation; For the configuration files with the same identifier, when the configuration files are updated each time, the threshold corresponding to the last update operation is retained; For the configuration files with the same identifier, when the configuration files are updated and newly added, the threshold corresponding to the newly added operation is retained; For the configuration files with the same identifier, each time the configuration files are updated, added, or deleted, the threshold corresponding to the deletion operation is retained.

8. A device for updating configuration information, characterized in that: include: A receiving unit, configured to receive a configuration information update request sent by a client device; The configuration information update request carries the first version number of the configuration information currently used by the client device; A response unit, configured to obtain a second version number in response to the configuration information update request; the second version number is the version number of the latest version of the configuration information in the server device; A sending unit is used to determine the configuration information corresponding to the second version number based on the correspondence between the version number and the configuration information when the second version number is smaller than the first version number, and send the configuration information corresponding to the second version number to the client device; so that the client device can update the local configuration information based on the configuration information corresponding to the second version number, and update the version number of the local configuration information to the second version number.

9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory is used to store a computer program; and the processor is used to enable the electronic device to implement the method for updating configuration information as described in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a computing device, the computing device implements the method for updating configuration information according to any one of claims 1 to 7.

11. A vehicle, characterized in that: include: The device for updating configuration information as described in claim 8 or the electronic device as described in claim 9.