Configuration item updating method and device, vehicle and storage medium

CN117176575BActive Publication Date: 2026-08-07GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGZHOU AUTOMOBILE GROUP CO LTD
Filing Date
2023-07-24
Publication Date
2026-08-07

AI Technical Summary

Technical Problem

[0003]但目前配置项更新效率不高

Benefits of technology

[0014] This application provides a configuration item update method, apparatus, vehicle, and computer-readable storage medium. In this application, in response to a received inspection command sent from the cloud, configuration item blocks corresponding to multiple block nodes are obtained. All configuration items included in the configuration item block corresponding to each block node are signed to obtain a target signature value corresponding to each block node. The cloud compares the target signature value corresponding to each block node with the verification signature value. The vehicle only needs to send the configuration item blocks of the block nodes whose comparison results are inconsistent to the cloud to update the corresponding backup configuration item blocks in the cloud. It does not need to send all configuration item blocks to the cloud to update all backup configuration item blocks, thus saving cloud service bandwidth and improving configuration item update efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117176575B_ABST
    Figure CN117176575B_ABST
Patent Text Reader

Abstract

The application discloses a configuration item updating method and device, a vehicle and a readable storage medium. The method comprises the following steps: in response to a received point inspection instruction sent by a cloud, obtaining configuration item blocks of each block node; signing the configuration item blocks of the block nodes to obtain target signature values of the block nodes; sending the target signature values of the plurality of block nodes to the cloud to enable the cloud to compare the target signature values of the block nodes with verification signature values and obtain a comparison result, and generating an updating request for a target block node which is inconsistent according to the comparison result; and in response to the updating request of the cloud, sending the configuration item blocks of the target block node to the cloud to enable the cloud to update backup configuration item blocks of the target block node according to the configuration item blocks of the target block node. In the application, the vehicle only needs to send configuration items in inconsistent configuration item blocks to the cloud, thereby saving the service bandwidth of the cloud and improving the updating efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle networking technology, and more specifically, to a configuration item updating method, apparatus, vehicle, and computer-readable storage medium. Background Technology

[0002] In connected vehicle applications, the cloud typically maintains a set of vehicle electronic control unit (ECU) configuration items. In order to keep the cloud configuration items consistent with the vehicle configuration items, the vehicle's ECU configuration items need to be checked regularly, and the cloud configuration items need to be updated when inconsistencies are found between the cloud and vehicle configuration items.

[0003] However, the current configuration item update efficiency is not high. Therefore, there is an urgent need for a configuration item update method to improve the update efficiency. Summary of the Invention

[0004] This application proposes a configuration item updating method, apparatus, vehicle, and computer-readable storage medium to improve the above-mentioned deficiencies.

[0005] In a first aspect, embodiments of this application provide a configuration item update method, the method comprising:

[0006] In response to a received inspection command from the cloud, the system obtains configuration item blocks corresponding to multiple sub-nodes, each configuration item block including at least one configuration item; it signs all configuration items included in the configuration item block corresponding to each sub-node to obtain a target signature value corresponding to each sub-node; it sends the target signature values ​​corresponding to the multiple sub-nodes to the cloud, so that the cloud compares the target signature value and the verification signature value corresponding to each sub-node to obtain a comparison result corresponding to each sub-node, and generates an update request for the target sub-node based on the target sub-node whose comparison result is inconsistent; the verification signature value corresponding to the sub-node is obtained by signing all configuration items in the backup configuration item block corresponding to the sub-node stored in the cloud; in response to receiving an update request returned by the cloud, the system sends the configuration item block of the target sub-node to the cloud, so that the cloud updates the backup configuration item block of the target sub-node based on the configuration item block of the target sub-node.

[0007] Secondly, embodiments of this application also provide a configuration item updating device, the device comprising:

[0008] The acquisition module is used to acquire the configuration item blocks corresponding to each of the multiple block nodes in response to the inspection command sent by the cloud, and each configuration item block includes at least one configuration item.

[0009] The signature module is used to sign all configuration items included in the configuration item block corresponding to each block node, so as to obtain the target signature value corresponding to each block node.

[0010] The sending module is used to send the target signature values ​​corresponding to each of the plurality of block nodes to the cloud, so that the cloud compares the target signature value and the verification signature value corresponding to each of the block nodes to obtain the comparison result corresponding to each of the block nodes, and generates an update request for the target block node based on the target block node whose comparison result is inconsistent; the verification signature value corresponding to the block node is obtained by signing all the configuration items in the backup configuration item block corresponding to the block node stored in the cloud;

[0011] The determination module is used to send the configuration item blocks of the target block node to the cloud in response to receiving an update request from the cloud, so that the cloud updates the backup configuration item blocks of the target block node according to the configuration item blocks of the target block node.

[0012] Thirdly, embodiments of this application also provide a vehicle, characterized in that the vehicle includes: one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to perform the above-described methods.

[0013] Fourthly, embodiments of this application also provide a computer-readable storage medium storing processor-executable program code, which, when executed by the processor, causes the processor to perform the above-described method.

[0014] This application provides a configuration item update method, apparatus, vehicle, and computer-readable storage medium. In this application, in response to a received inspection command sent from the cloud, configuration item blocks corresponding to multiple block nodes are obtained. All configuration items included in the configuration item block corresponding to each block node are signed to obtain a target signature value corresponding to each block node. The cloud compares the target signature value corresponding to each block node with the verification signature value. The vehicle only needs to send the configuration item blocks of the block nodes whose comparison results are inconsistent to the cloud to update the corresponding backup configuration item blocks in the cloud. It does not need to send all configuration item blocks to the cloud to update all backup configuration item blocks, thus saving cloud service bandwidth and improving configuration item update efficiency.

[0015] Other features and advantages of the embodiments of this application will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing the embodiments of this application. The objects and other advantages of the embodiments of this application may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 A schematic diagram of a vehicle hardware environment applicable to embodiments of this application is shown.

[0018] Figure 2 A flowchart of a configuration item update method according to an embodiment of this application is shown.

[0019] Figure 3 This illustration shows a schematic diagram of the relationship between a service to be activated and a configuration item in an embodiment of this application.

[0020] Figure 4 A flowchart of a configuration item update method according to yet another embodiment of this application is shown.

[0021] Figure 5 A schematic diagram illustrating the relationship between a vehicle and configuration items in an embodiment of this application is shown.

[0022] Figure 6 A schematic diagram of a hash ring according to an embodiment of this application is shown.

[0023] Figure 7 An application flowchart of a configuration item update method according to an embodiment of this application.

[0024] Figure 8 A structural block diagram of a configuration item updating device according to an embodiment of this application is shown. Detailed Implementation

[0025] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, and not all of them. The components of the embodiments of the present application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the present application. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without inventive effort are within the scope of protection of the present application.

[0026] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0027] Please see Figure 1 , Figure 1 A schematic diagram of a vehicle hardware environment applicable to an embodiment of this application is shown. The vehicle 100 includes a processor 110 and a memory 111.

[0028] The processor 110 may be a microcontroller unit (MCU) with a built-in memory 111 containing a program that can execute the contents of the following embodiments, and the processor 110 may execute the program stored in the memory 111.

[0029] The processor 110 may include one or more processors. The processor 110 connects to various parts of the vehicle 100 through various interfaces and lines, and performs various functions of the vehicle 100 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 111, and calling data stored in the memory 111.

[0030] The memory 111 may include random access memory (RAM) or read-only memory (ROM). The memory 111 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 111 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described below.

[0031] Please see Figure 2 , Figure 2 A flowchart of a configuration item update method according to an embodiment of this application is shown, for a vehicle, the method comprising:

[0032] S201. In response to the inspection command sent by the cloud, obtain the configuration item blocks corresponding to each of the multiple block nodes.

[0033] Each configuration item block includes at least one configuration item. A configuration item refers to all items included in the configuration management scope, and can be a name, software version, hardware number, etc. Inspection commands are used by vehicles to report the target signature values ​​of multiple block nodes. Inspection commands can be periodically sent to vehicles from the cloud.

[0034] In some implementations, the number of block nodes can be determined based on the number of configuration items. After determining the block nodes, multiple configuration items can be divided into blocks corresponding to each node based on the block nodes. The block nodes can be virtual nodes.

[0035] S202. Sign all configuration items included in the configuration item block corresponding to each block node to obtain the target signature value corresponding to each block node.

[0036] The target signature value is the value obtained by signing the information of all configuration items included in the configuration item block corresponding to each block node. In other words, it is the value obtained by signing the did data stored in the configuration item block corresponding to each block node. It is used as the anti-tampering identifier of the current configuration item block and is equivalent to the digest of the configuration item block content. The target signature value can be the hash value of the information of all configuration items included in each configuration item block. The data identifier did represents an object (e.g., intake valve position) or a collection of multiple objects.

[0037] S203. Send the target signature values ​​corresponding to each of the multiple block nodes to the cloud so that the cloud can compare the target signature value and the verification signature value corresponding to each block node, obtain the comparison result corresponding to each block node, and generate an update request for the target block node for inconsistent target block nodes based on the comparison result.

[0038] The verification signature value corresponding to the block node is obtained by signing all the configuration items in the backup configuration item block corresponding to the block node stored in the cloud.

[0039] The verification signature value is the value obtained by signing the information of all configuration items included in the backup configuration item block corresponding to each block node in the cloud. In other words, it is the value obtained by signing the did data stored in the backup configuration item block corresponding to each block node in the cloud. It is used as the anti-tampering identifier of the current backup configuration item block, which is equivalent to the digest of the backup configuration item block content. The verification signature value can be the hash value of the information of all configuration items included in each backup configuration item block.

[0040] In some implementations, the cloud-based backup configuration item blocks correspond one-to-one with the vehicle's configuration item blocks, and the configuration items included in the corresponding vehicle configuration item blocks also correspond one-to-one with those included in the cloud-based backup configuration item blocks. The cloud-based backup configuration item blocks and the vehicle's configuration item blocks follow the same block segmentation rules. Initially, the vehicle's configuration item blocks and the cloud-based backup configuration item blocks are completely identical, and the configuration items included in the vehicle's configuration item blocks and the cloud-based backup configuration item blocks are also completely identical.

[0041] The target signature value of the vehicle's configuration item block represents the vehicle's configuration item block and the corresponding block node. The verification signature value of the cloud-based configuration item block represents the cloud-based backup configuration item block and the corresponding block node. By comparing the target signature value and the verification signature value, it can be determined whether the configuration item block and its corresponding backup configuration item block are consistent, that is, whether the content of the vehicle's configuration item block has changed.

[0042] If there are target block nodes with inconsistent comparison results, the cloud can generate an update request for the target block node based on the target block node with inconsistent comparison results. The content of the update request can be the content of the configuration item block corresponding to the target block node, or it can be an identifier that can represent the target block node.

[0043] If no target block node with inconsistent comparison results exists, the cloud may not send any requests to the vehicle, and the vehicle may wait to receive the next inspection instruction from the cloud. Alternatively, the cloud may send relevant information about consistent comparison results to the vehicle.

[0044] S204. In response to receiving an update request from the cloud, the configuration item blocks of the target block node are sent to the cloud so that the cloud updates the backup configuration item blocks of the target block node according to the configuration item blocks of the target block node.

[0045] In some implementations, updating the backup configuration item block of the target block node based on the configuration item block of the target block node can be achieved by having the cloud replace each configuration item in the backup configuration item block of the target block node with each configuration item in the configuration item block of the target block node, or by having the cloud replace inconsistent configuration items in the backup configuration item block of the target block node with the configuration items in the configuration item block of the target block node that correspond to the inconsistent configuration items.

[0046] In some implementations, in response to the activation operation of the service to be activated, an activation request is sent to the cloud, so that the cloud compares the configuration items to be verified corresponding to the service to be activated with the configuration items corresponding to the configuration items to be verified in the updated configuration item set, obtains the activation comparison result, and obtains an activation instruction if the activation comparison result is consistent; the updated configuration item set includes the updated backup configuration item block corresponding to the target block node and the backup configuration item blocks corresponding to the other block nodes excluding the target block node among the multiple block nodes; in response to the activation instruction returned by the cloud, the service to be activated is activated.

[0047] The service to be activated can be software to be activated, or it can be a function to be activated in already activated software, such as intelligent driving function.

[0048] like Figure 3 As shown, each service to be activated corresponds to multiple electronic control units (ECUs), and each ECU corresponds to multiple configuration items.

[0049] In some implementations, the cloud can obtain an activation comparison result by comparing the configuration item to be verified corresponding to the service to be activated with the configuration item corresponding to the configuration item in the updated configuration item set, and obtain an activation instruction if the activation comparison result is consistent. This can be achieved by the cloud searching for the configuration item corresponding to the service to be activated in the cloud, comparing the configuration item corresponding to the service to be activated with the configuration item corresponding to the configuration item in the cloud, obtaining an activation comparison result, and obtaining an activation instruction if the activation comparison result is consistent.

[0050] Specifically, finding the configuration item corresponding to the unverified configuration item for the service to be activated based on the activation request can be done by finding the identifier of the configuration item corresponding to the identifier of the unverified configuration item. The configuration item corresponding to the identifier of the configuration item corresponding to the identifier is the configuration item corresponding to the unverified configuration item. A consistent activation comparison result means that the unverified configuration item for the service to be activated and its corresponding configuration item are consistent.

[0051] In this embodiment, in response to the inspection command sent by the cloud, the configuration item blocks corresponding to each of the multiple block nodes are obtained. All configuration items included in the configuration item block corresponding to each block node are signed to obtain the target signature value corresponding to each block node. The cloud compares the target signature value and the verification signature value corresponding to each block node. The vehicle only needs to send the configuration item blocks of the block nodes whose comparison results are inconsistent to the cloud to update the corresponding backup configuration item blocks in the cloud. It is not necessary to send all configuration item blocks to the cloud to update all backup configuration item blocks, which saves cloud service bandwidth and improves configuration item update efficiency.

[0052] Please see Figure 4 , Figure 4 A flowchart of a configuration item update method according to another embodiment of this application is shown, for a vehicle, the method comprising:

[0053] S301. Obtain multiple target electronic control units in the vehicle and the configuration items corresponding to each target electronic control unit.

[0054] The Electronic Control Unit (ECU) is a control device composed of integrated circuits used to perform a series of functions such as data analysis, processing, and transmission. It is also known as an electronic control unit, automotive electronic control unit, integrated circuit control unit, or multiplexer. The target ECU is an ECU selected from all the ECUs in the vehicle based on business requirements. That is, the target ECU can be all the ECUs in the vehicle, or it can be a subset of them. When business requirements change, the target ECU may also change accordingly.

[0055] like Figure 5 As shown, each vehicle corresponds to multiple electronic control units (ECUs), and each ECU corresponds to multiple configuration items.

[0056] S302. Determine the configuration item hash value corresponding to each configuration item for each target electronic control unit.

[0057] Hash, also known as hashing, refers to transforming an input of arbitrary length (also called a pre-image) into a fixed-length output using a hash algorithm. This output is the hash value. Hash values ​​compress messages or data into digests, reducing the data size and fixing the data format.

[0058] In some implementations, S302 may include: for each target electronic control unit, concatenating the identifier of the target electronic control unit and the identifier of each configuration item corresponding to the target electronic control unit to obtain a concatenated identifier corresponding to each configuration item corresponding to the target electronic control unit; performing a hash operation on the concatenated identifier corresponding to each configuration item corresponding to each target electronic control unit to obtain a configuration item hash value corresponding to each configuration item corresponding to each target electronic control unit.

[0059] The identifier of the target electronic control unit can be its ID, and the identifier of a configuration item under the target electronic control unit can be its ID. For example, if the ID of a target electronic control unit is ECU_ID_2, and the ID of a configuration item under that target electronic control unit is ID_3, then the concatenated identifier corresponding to that configuration item under the target electronic control unit is ECU_ID_2+ID_3.

[0060] S303, Determine multiple block nodes.

[0061] In some implementations, S304 may include: determining multiple block nodes based on the number of multiple target electronic control units and the number of configuration items corresponding to each target electronic control unit.

[0062] In some implementations, multiple sub-nodes can be determined by setting a threshold for the number of configuration items corresponding to the target electronic control unit for each sub-node, and then calculating the quotient of the total number of configuration items corresponding to multiple target electronic control units and the threshold. Alternatively, multiple sub-nodes can be obtained by evenly distributing the configuration items corresponding to multiple target electronic control units.

[0063] S304. Based on the hash value of each block node and the configuration item hash value of each configuration item, the configuration items corresponding to multiple target electronic control units are divided into configuration item blocks corresponding to each block node.

[0064] After obtaining the hash values ​​of the block nodes and the configuration item hash values ​​of each configuration item, these hash values ​​are mapped onto the same hash ring. Based on the hash ring, the configuration items corresponding to multiple target electronic control units can be divided into multiple configuration item blocks corresponding to each block node. The number of configuration items included in each configuration item block can be the same or different. The hash ring is a virtual ring that organizes the entire hash value space in a clockwise direction.

[0065] In some implementations, S304 may include: determining the label values ​​of each of the multiple block nodes; performing a hash operation on the label value of each block node to obtain the hash value of each block node; obtaining the configuration item hash value that matches the hash value of each block node as the associated configuration item hash value corresponding to each block node; obtaining and summarizing the configuration items corresponding to each associated configuration item hash value of each block node to obtain the configuration item block corresponding to each block node.

[0066] The label value is a randomly assigned value used to calculate the hash value of the block node and map it to the hash ring. Each block node corresponds to a label value, each block node corresponds to a configuration item block, and each label value corresponds to a configuration item block.

[0067] In some implementations, obtaining the configuration item hash value that matches the hash value of each block node, and using it as the associated configuration item hash value for each block node, may include: constructing an initial hash ring based on the hash value of each block node; mapping each configuration item hash value to the initial hash ring to obtain a hash ring; for each block node, obtaining the configuration item hash value on the hash ring that lies between the block node and its corresponding target adjacent block node, and using it as the associated configuration item hash value for the block node. The target adjacent block node refers to the block node adjacent to the block node in the target direction. The target direction can be clockwise.

[0068] In some implementations, a consistent hashing algorithm can be used to map the hash value of the block node to the hash values ​​of multiple configuration items on the same hash ring. The configuration item hash value is then matched with the hash value of the block node in the target direction on the hash ring to obtain the associated configuration item hash value corresponding to the block node.

[0069] Among them, the consistent hashing algorithm transforms the ordinary linear hash space into a ring-shaped hash space, where each cache space is a node on the ring, and data is generally stored in the first node on the ring found in a clockwise direction.

[0070] like Figure 6 As shown, Figure 6 The circle in the image is a hash ring. Figure 4 The circles on the hash ring represent block nodes. Figure 6 The triangles on the hash ring represent configuration items.

[0071] After obtaining the hash value of the associated configuration item corresponding to the block node, the configuration item corresponding to each of the hash values ​​of the associated configuration items of each block node is summarized to obtain the configuration item block corresponding to each block node.

[0072] If a new target electronic control unit is added to the multiple target electronic control units in the vehicle, multiple block nodes can be re-determined based on the number of the new target electronic control units and the number of configuration items corresponding to each target electronic control unit, the hash ring can be reconstructed, and the configuration item blocks can be re-determined.

[0073] In other implementations, if a new target electronic control unit is added to the multiple target electronic control units in the vehicle, the configuration item hash value corresponding to the new target electronic control unit can be directly mapped to the original hash ring, and the corresponding configuration item block can be updated.

[0074] If a target electronic control unit is removed from multiple target electronic control units in a vehicle, multiple block nodes can be re-determined based on the number of removed target electronic control units and the number of configuration items corresponding to each target electronic control unit, the hash ring can be reconstructed, and the configuration item blocks can be re-determined.

[0075] In other implementations, if a target electronic control unit is removed from multiple target electronic control units in a vehicle, the configuration item hash value of the removed target electronic control unit can be directly deleted from the original hash ring, and the corresponding configuration item block can be updated.

[0076] In addition, while the vehicle is building the hash ring, the cloud is also building the cloud hash ring simultaneously. The method for building the cloud hash ring in the cloud is the same as that in the vehicle. When the vehicle rebuilds or updates the hash ring, the cloud also rebuilds or updates the cloud hash ring simultaneously.

[0077] S305. In response to the inspection command sent by the cloud, obtain the configuration item blocks corresponding to each of the multiple block nodes, each configuration item block including at least one configuration item; sign all the configuration items included in the configuration item block corresponding to each block node to obtain the target signature value corresponding to each block node.

[0078] S306. Send the target signature values ​​corresponding to each of the multiple block nodes to the cloud so that the cloud can compare the target signature value and the verification signature value corresponding to each block node, obtain the comparison result corresponding to each block node, and generate an update request for the target block node for inconsistent target block nodes based on the comparison result.

[0079] The descriptions of S305-S306 are the same as those of S201-S203 above, and will not be repeated here.

[0080] S307. In response to receiving an update request from the cloud, the configuration item blocks of the target block node are sent to the cloud so that the cloud updates the backup configuration item blocks of the target block node according to the configuration item blocks of the target block node.

[0081] The update request returned by the cloud can be the tag value of the target block node.

[0082] In some implementations, in response to receiving the tag value of the target block node returned by the cloud, the configuration item block corresponding to the target block node is searched in the hash ring according to the tag value, and the configuration item block of the target block node is sent to the cloud so that the cloud updates the backup configuration item block of the target block node according to the configuration item block of the target block node.

[0083] The other descriptions of S306 are the same as those in S204 above, and will not be repeated here.

[0084] The configuration item update process in this embodiment is as follows: Figure 7 As shown, the cloud and vehicle synchronously calculate the number of block nodes; assign label values ​​to block nodes; calculate the hash value of the label value and map the hash value of the block node onto a hash ring; calculate the configuration item hash value of the configuration item and map the configuration item hash value onto a hash ring; determine the configuration item block based on the hash value of the block node on the hash ring and the configuration item hash value; calculate the target signature value and verification signature value corresponding to each block node; the vehicle reports the target signature value corresponding to the block node; the cloud compares the target signature value and the verification signature value and filters out the target signature values ​​that are inconsistent with the verification signature value; the vehicle reports the configuration item block corresponding to the inconsistent target signature value; the cloud updates the corresponding backup configuration item block based on the configuration item block corresponding to the inconsistent signature value reported by the vehicle.

[0085] In this embodiment, multiple target electronic control units (ECUs) in the vehicle and their corresponding configuration items are obtained. The hash value of each configuration item corresponding to each target ECU is determined; the hash value is equivalent to a summary of the configuration item. Multiple block nodes are identified. Based on the hash value of each block node and the configuration item hash value of each configuration item, the configuration items corresponding to the multiple target ECUs are divided into configuration item blocks corresponding to each block node, improving the efficiency of configuration item division. Simultaneously, the vehicle only needs to send the configuration item blocks of block nodes where the comparison results are inconsistent to the cloud to update the corresponding backup configuration item blocks in the cloud. It does not need to send all configuration item blocks to the cloud to update all backup configuration item blocks, saving cloud service bandwidth and improving configuration item update efficiency.

[0086] See appendix Figure 8 , Figure 8 This illustration shows a structural block diagram of a configuration item updating device according to an embodiment of this application, for a vehicle. The device 400 includes:

[0087] The acquisition module 401 is used to acquire the configuration item blocks corresponding to each of the multiple block nodes in response to the inspection command sent by the cloud, and each configuration item block includes at least one configuration item.

[0088] The signature module 402 is used to sign all the configuration items included in the configuration item block corresponding to each block node, so as to obtain the target signature value corresponding to each block node.

[0089] The sending module 403 is used to send the target signature values ​​corresponding to multiple block nodes to the cloud, so that the cloud can compare the target signature value and the verification signature value corresponding to each block node, obtain the comparison result corresponding to each block node, and generate an update request for the target block node based on the inconsistent comparison results; the verification signature value corresponding to the block node is obtained by signing all the configuration items in the backup configuration item block corresponding to the block node stored in the cloud.

[0090] The determination module 404 is used to respond to the update request returned by the cloud by sending the configuration item blocks of the target block node to the cloud, so that the cloud can update the backup configuration item blocks of the target block node according to the configuration item blocks of the target block node.

[0091] Optionally, the acquisition module 401 is further configured to acquire multiple target electronic control units in the vehicle and configuration items corresponding to each target electronic control unit; determine the configuration item hash value corresponding to each configuration item corresponding to each target electronic control unit; determine multiple block nodes; and divide the configuration items corresponding to the multiple target electronic control units into configuration item blocks corresponding to each block node according to the hash value of each block node and the configuration item hash value of each configuration item.

[0092] Optionally, the acquisition module 401 is further configured to determine the label values ​​of each of the multiple block nodes; perform a hash operation on the label value of each block node to obtain the hash value of each block node; acquire the configuration item hash value that matches the hash value of each block node as the associated configuration item hash value corresponding to each block node; acquire and summarize the configuration items corresponding to each associated configuration item hash value of each block node to obtain the configuration item block corresponding to each block node.

[0093] Optionally, the acquisition module 401 is further configured to construct an initial hash ring based on the hash value of each block node; map each configuration item hash value to the initial hash ring to obtain a hash ring; and for each block node, acquire the configuration item hash value on the hash ring that is located between the block node and the target adjacent block node corresponding to the block node, as the associated configuration item hash value corresponding to the block node, wherein the target adjacent block node corresponding to the block node refers to the block node that is adjacent to the block node in the target direction.

[0094] Optionally, the acquisition module 401 is also used to determine multiple block nodes based on the number of multiple target electronic control units and the number of configuration items corresponding to each target electronic control unit.

[0095] Optionally, the acquisition module 401 is further configured to, for each target electronic control unit, concatenate the identifier of the target electronic control unit and the identifier of each configuration item corresponding to the target electronic control unit to obtain the concatenated identifier corresponding to each configuration item corresponding to the target electronic control unit; and perform a hash operation on the concatenated identifier corresponding to each configuration item corresponding to each target electronic control unit to obtain the configuration item hash value corresponding to each configuration item corresponding to each target electronic control unit.

[0096] Optionally, the determining module 404 is further configured to, in response to the activation operation of the service to be activated, send an activation request to the cloud, so that the cloud compares the configuration items to be verified corresponding to the service to be activated and the configuration items corresponding to the configuration items to be verified in the updated configuration item set according to the activation request, obtains the activation comparison result, and obtains an activation instruction if the activation comparison result is consistent; the updated configuration item set includes the updated backup configuration item block corresponding to the target block node and the backup configuration item blocks corresponding to the other block nodes excluding the target block node among the multiple block nodes; and activates the service to be activated in response to the activation instruction returned by the cloud.

[0097] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0098] Furthermore, the functions in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated module can be implemented in hardware or as a software functional module.

[0099] On the other hand, this application also provides a computer-readable storage medium storing program code that can be called by a processor to execute the methods described in the above method embodiments.

[0100] Computer-readable storage media can be electronic storage devices such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or a cluster of ROMs. Optionally, computer-readable storage media include non-transitory computer-readable storage media. The computer-readable storage medium has storage space for program code that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code can be compressed, for example, in a suitable form.

[0101] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for updating configuration items, characterized in that, For use in a vehicle, the method includes: In response to the inspection command sent by the cloud, the configuration item blocks corresponding to each of the multiple block nodes are obtained, and each configuration item block includes at least one configuration item; Sign all configuration items included in the configuration item block corresponding to each block node to obtain the target signature value corresponding to each block node; The target signature values ​​corresponding to each of the multiple segment nodes are sent to the cloud, so that the cloud compares the target signature value and the verification signature value corresponding to each segment node to obtain the comparison result corresponding to each segment node, and generates an update request for the target segment node based on the inconsistency of the comparison result; the verification signature value corresponding to the segment node is obtained by signing all the configuration items in the backup configuration item segment corresponding to the segment node stored in the cloud. In response to receiving an update request from the cloud, the configuration items of the target segment node are sent to the cloud in segments, so that the cloud updates the backup configuration item segments of the target segment node according to the configuration item segments of the target segment node.

2. The method according to claim 1, characterized in that, Before obtaining the configuration item blocks corresponding to each of the multiple block nodes in response to the inspection command sent by the cloud, the method further includes: Acquire multiple target electronic control units in the vehicle and the configuration items corresponding to each target electronic control unit; Determine the configuration item hash value corresponding to each configuration item for each of the target electronic control units; Identify multiple block nodes; Based on the hash value of each block node and the hash value of each configuration item, the configuration items corresponding to the multiple target electronic control units are divided into configuration item blocks corresponding to each block node.

3. The method according to claim 2, characterized in that, The step of dividing the configuration items corresponding to the multiple target electronic control units into configuration item blocks corresponding to each block node based on the hash value of each block node and the configuration item hash value of each configuration item includes: Determine the label value of each of the multiple block nodes; Perform a hash operation on the tag value of each block node to obtain the hash value of each block node; Obtain the configuration item hash value that matches the hash value of each of the block nodes, and use it as the associated configuration item hash value corresponding to each of the block nodes; Obtain and summarize the configuration items corresponding to the hash values ​​of each associated configuration item of each block node to obtain the configuration item block corresponding to each block node.

4. The method according to claim 3, characterized in that, The step of obtaining the configuration item hash value that matches the hash value of each of the block nodes, and using it as the associated configuration item hash value corresponding to each of the block nodes, includes: Construct an initial hash ring based on the hash value of each of the block nodes; Map each configuration item's hash value to the initial hash ring to obtain the hash ring; For each block node, the hash value of the configuration item located between the block node and the target adjacent block node corresponding to the block node on the hash ring is obtained as the hash value of the associated configuration item corresponding to the block node. The target adjacent block node corresponding to the block node refers to the block node that is adjacent to the block node in the target direction.

5. The method according to claim 2, characterized in that, The determination of multiple block nodes includes: Multiple block nodes are determined based on the number of the multiple target electronic control units and the number of configuration items corresponding to each target electronic control unit.

6. The method according to claim 2, characterized in that, Determining the configuration item hash value corresponding to each configuration item for each target electronic control unit includes: For each target electronic control unit, the identifier of the target electronic control unit and the identifier of each configuration item corresponding to the target electronic control unit are concatenated to obtain the concatenated identifier corresponding to each configuration item of the target electronic control unit; A hash operation is performed on the concatenation identifier corresponding to each configuration item of each target electronic control unit to obtain the configuration item hash value corresponding to each configuration item of each target electronic control unit.

7. The method according to claim 1, characterized in that, In response to receiving an update request from the cloud, the method further includes sending the configuration item blocks of the target block node to the cloud so that the cloud updates the backup configuration item blocks of the target block node according to the configuration item blocks of the target block node. In response to the activation operation of the service to be activated, an activation request is sent to the cloud, so that the cloud compares the configuration items to be verified corresponding to the service to be activated and the configuration items corresponding to the configuration items to be verified in the updated configuration item set according to the activation request, and obtains the activation comparison result. If the activation comparison result is consistent, an activation instruction is obtained. The updated configuration item set includes the updated backup configuration item block corresponding to the target block node and the backup configuration item blocks corresponding to the other block nodes among the multiple block nodes excluding the target block node. In response to the activation command returned from the cloud, the service to be activated is activated.

8. A configuration item updating device, characterized in that, The device includes: The acquisition module is used to acquire the configuration item blocks corresponding to each of the multiple block nodes in response to the inspection command sent by the cloud, and each configuration item block includes at least one configuration item. The signature module is used to sign all configuration items included in the configuration item block corresponding to each block node, so as to obtain the target signature value corresponding to each block node. The sending module is used to send the target signature values ​​corresponding to each of the plurality of block nodes to the cloud, so that the cloud compares the target signature value and the verification signature value corresponding to each of the block nodes to obtain the comparison result corresponding to each of the block nodes, and generates an update request for the target block node based on the target block node whose comparison result is inconsistent; the verification signature value corresponding to the block node is obtained by signing all the configuration items in the backup configuration item block corresponding to the block node stored in the cloud; The determination module is used to send the configuration item blocks of the target block node to the cloud in response to receiving an update request from the cloud, so that the cloud updates the backup configuration item blocks of the target block node according to the configuration item blocks of the target block node.

9. A vehicle, characterized in that, The vehicles include: One or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications being configured to perform the method as described in claim 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores processor-executable program code, which, when executed by the processor, causes the processor to perform the method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Data transmission method and device, vehicle and storage medium

    CN115225706A

  • Selective transmission of system log data for mobile platforms

    US20210067428A1