Vehicle configuration word modification method, device and vehicle

By constructing the configuration item association relationship of configuration words in the vehicle, verifying the legality of the configuration words to be written and then modifying them, the problem that configuration words in the prior art are easily tampered with, and improving the security of vehicle configuration words modification.

CN119046997BActive Publication Date: 2025-03-14CHENGDU CELIS TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411531262.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2025-03-14
Estimated Expiration
2044-10-30

AI Technical Summary

Technical Problem

In the prior art, when modifying vehicle configuration words through diagnostic instruments or inspection equipment, only 27 service authentication is required, resulting in the configuration words being easily tampered with by arbitrarily after the key is leaked, causing serious harm.

Method used

By pre-constructing the association relationship between configuration items of different configuration words in the vehicle, after receiving the configuration words to be written, verifying whether the configuration items satisfy the association relationship. If they are satisfied, modify them to ensure the legality and security of the configuration words.

Benefits of technology

Improve the security of vehicle configuration word modification, prevent arbitrary tampering of configuration word after key leakage, and ensure the safety of the vehicle's operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119046997B_ABST
    Figure CN119046997B_ABST
Patent Text Reader

Abstract

The present application relates to a vehicle configuration word modification method, device and vehicle, which are applied to a vehicle, wherein the vehicle includes multiple configuration words, each configuration word includes multiple configuration items and a check field constructed according to a preset rule, and the method includes: when receiving a configuration word to be written, determining a target configuration word corresponding to the configuration word to be written; wherein the configuration word to be written is used to modify the target configuration word; from a preset multiple configuration item set, determining a target configuration item set corresponding to the target configuration word, and obtaining a target association relationship between target configuration items included in the target configuration item set; when it is determined that the configuration word to be written meets a preset condition according to the target configuration item set and the target association relationship, modifying the target configuration word according to the configuration word to be written. This can improve the security of modifying the configuration word of the vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and in particular to a vehicle configuration word modification method, device and vehicle. Background Art

[0002] With the popularization and development of vehicles, vehicles can coordinate through multiple controllers (such as air-conditioning controllers, airbag controllers, body controllers, etc.) to ensure the operation of the vehicle. Among them, each controller can correspond to a configuration word, which is the data used by the controller software to distinguish different vehicle configurations. For example, the configuration word can be used to distinguish the model of the vehicle's battery pack, so that the software uses the corresponding battery efficiency MAP to calculate the battery life.

[0003] At present, since the configuration word of the controller is related to the overall operation of the vehicle, if the configuration word data needs to be changed, unreasonable changes will have serious consequences. Based on this, many car companies have not launched the function of remotely writing configuration words. If the configuration word needs to be changed due to software and hardware factors after the vehicle is launched, it can only be solved on-site by after-sales technicians, which consumes time and manpower.

[0004] Furthermore, in the prior art, there is also a function of remotely writing configuration words to a vehicle, which uses a diagnostic instrument or an electric inspection device to write the configuration words that need to be changed to a certain controller of the vehicle. However, in this method, the diagnostic instrument or the electric inspection device can change the configuration words as long as it passes the 27 service authentication of the controller. Since the algorithms of the 27 services are basically CMAC (Message Authentication Code, symmetric key block encryption algorithm), if the key is leaked, the configuration words will be arbitrarily tampered with, and there is no effective prevention measure, which will cause serious harm to the vehicle. Summary of the invention

[0005] The present application provides a vehicle configuration word modification method, device and vehicle to solve the technical problem in the prior art that when the vehicle configuration word is modified by a diagnostic instrument or an electric inspection device, the diagnostic instrument or the electric inspection device only needs to perform 27 service authentication, which leads to the configuration word being easily tampered with arbitrarily after the key is leaked, thereby causing serious harm to the vehicle.

[0006] In a first aspect, the present application provides a vehicle configuration word modification method, characterized in that it is applied to a vehicle, the vehicle includes a plurality of configuration words, each of the configuration words includes a plurality of configuration items and a check field constructed according to a preset rule, and the method includes:

[0007] In the case of receiving the configuration word to be written, determining the target configuration word corresponding to the configuration word to be written; wherein the configuration word to be written is used to modify the target configuration word;

[0008] Determine a target configuration item set corresponding to the target configuration word from a plurality of preset configuration item sets, and obtain a target association relationship between target configuration items included in the target configuration item set; wherein the target configuration item set includes at least one target configuration item included in the target configuration word and other configuration items included in other configuration words;

[0009] Determining whether the configuration word to be written meets a preset condition according to the target configuration item set and the target association relationship;

[0010] When it is determined that the configuration word to be written meets the preset condition, the target configuration word is modified according to the configuration word to be written.

[0011] As an optional implementation, the determining the target configuration word corresponding to the configuration word to be written includes:

[0012] Obtaining an identifier of the data to be written of the configuration word to be written;

[0013] According to the identifier of the data to be written, a target configuration word having a data identifier consistent with the identifier of the data to be written is determined from a plurality of configuration words of the vehicle.

[0014] As an optional implementation, each configuration word corresponds to a controller, the configuration word further includes a configuration change field, the configuration change field is used to record a set identifier, the configuration item set corresponding to the set identifier includes the configuration items included in the configuration word to which the configuration change field belongs, and the configuration items included in other configuration words, and there is an association relationship between the configuration items in the configuration item set;

[0015] After receiving the configuration word to be written, the target controller corresponding to the target configuration word determines the configuration item to be written included in the configuration word to be written, and determines the configuration item set to which the configuration item to be written belongs; and writes the set identifier of the configuration item set into the configuration change field of the target configuration word;

[0016] The step of determining, from a plurality of preset configuration item sets, a target configuration item set corresponding to the target configuration word comprises:

[0017] Obtaining a target set identifier from a configuration change field corresponding to the target configuration word;

[0018] The configuration item set corresponding to the target set identifier is determined as the target configuration item set corresponding to the target configuration word.

[0019] As an optional implementation, determining whether the configuration word to be written meets a preset condition according to the target configuration item set and the target association relationship includes:

[0020] Determine the configuration item to be written included in the configuration word to be written, and determine the target configuration item in the target configuration item set corresponding to the configuration item to be written;

[0021] Replacing the target configuration item with the configuration item to be written to obtain a new target configuration item set;

[0022] Determining whether the configuration items included in the new target configuration item set satisfy the target association relationship;

[0023] In the case where it is determined that the configuration items included in the new target configuration item set satisfy the target association relationship, determining that the configuration word to be written satisfies the preset condition;

[0024] When it is determined that the configuration items included in the new target configuration item set do not satisfy the target association relationship, it is determined that the configuration word to be written does not satisfy the preset condition.

[0025] As an optional implementation, each of the configuration words further includes a check field constructed according to a preset rule;

[0026] The step of modifying the target configuration word according to the configuration word to be written, when it is determined that the configuration word to be written satisfies the preset condition, includes:

[0027] In the case where it is determined that the configuration word to be written meets the preset condition, determining whether the check field corresponding to the configuration word to be written meets the preset rule;

[0028] If it is determined that the check field corresponding to the configuration word to be written satisfies the preset rule, the target configuration word is modified according to the configuration word to be written.

[0029] As an optional implementation, the check field of the configuration word includes multiple sub-check fields, and the check field of the configuration word is constructed according to the following preset rules:

[0030] Obtaining a data identifier of the configuration word and a diagnostic identifier of a controller corresponding to the configuration word;

[0031] Processing the data identifier and the diagnostic identifier according to a first preset rule to obtain a total check field of the configuration word;

[0032] Determining the number of sub-check fields included in the check field;

[0033] According to the quantity, the total check field is divided according to a second preset rule to obtain a plurality of sub-check fields.

[0034] As an optional implementation, the data identifier consists of a first number of bit values, and the diagnostic identifier consists of a second number of bit values;

[0035] The processing of the data identifier and the diagnostic identifier according to the first preset rule to obtain the total check field of the configuration word includes:

[0036] Obtaining the first bit value of the third quantity located at the last position in the diagnosis identifier;

[0037] Divide the data identifier into a first fourth number of second bit values, a third number of third bit values ​​after the second bit value, and a fourth number of fourth bit values ​​at the end, wherein the second bit value, the third bit value, and the fourth bit value constitute the data identifier;

[0038] Adding the first bit value and the third bit value to obtain a fifth bit value;

[0039] Adding the second bit value and the fourth bit value to obtain a sixth bit value;

[0040] Select the last third number of bit values ​​from the fifth bit value to obtain a first value;

[0041] Select the last fourth number of bit values ​​from the sixth bit value to obtain a second value;

[0042] The first value, the second value, and a preset third value are combined to obtain the total check field; the third value is a preset fifth number of bit values.

[0043] As an optional implementation, the determining whether the check field corresponding to the configuration word to be written satisfies the preset rule includes:

[0044] Obtaining a to-be-written data identifier of the to-be-written configuration word and a to-be-written diagnostic identifier of a to-be-written controller corresponding to the to-be-written configuration word;

[0045] Processing the to-be-written data identifier and the to-be-written diagnostic identifier according to the first preset rule to obtain a to-be-written total check field of the to-be-written configuration word;

[0046] According to the quantity, the total check field to be written is divided according to the second preset rule to obtain a plurality of sub-check fields to be written;

[0047] Determine whether each of the sub-check fields to be written and the sub-check field corresponding to the target configuration word meet a preset check condition;

[0048] If each of the sub-check fields to be written and the sub-check field corresponding to the target configuration word meet the preset check condition, it is determined that the check field corresponding to the configuration word to be written meets the preset rule.

[0049] As an optional implementation, the processing of the to-be-written data identifier and the to-be-written diagnostic identifier according to the first preset rule to obtain the to-be-written total check field of the to-be-written configuration word includes:

[0050] Obtain the first to-be-written bit value of the third quantity located at the last position in the to-be-written diagnostic identifier;

[0051] Divide the identifier of the data to be written into the first fourth number of second bit values ​​to be written, the third number of third bit values ​​to be written after the second bit value to be written, and the fourth number of fourth bit values ​​to be written at the end, wherein the second bit value to be written, the third bit value to be written, and the fourth bit value to be written constitute the identifier of the data to be written;

[0052] Adding the first bit value to be written and the third bit value to be written to obtain a fifth bit value to be written;

[0053] Adding the second bit value to be written and the fourth bit value to be written to obtain a sixth bit value to be written;

[0054] Select the last third number of bit values ​​from the fifth bit value to be written to obtain a first value to be written;

[0055] Select the last fourth number of bit values ​​from the sixth bit value to be written to obtain a second value to be written;

[0056] Adding a preset value to the third value to obtain a third value to be written;

[0057] The first value to be written, the second value to be written, and the third value to be written are combined to obtain the total check field to be written.

[0058] As an optional implementation, it also includes:

[0059] In the case where it is determined that the configuration word to be written does not satisfy the preset condition, determining a writing range of the target configuration word according to the target association relationship and the target configuration item set;

[0060] The configuration word to be written is updated according to the writing range to obtain a new configuration word to be written;

[0061] The target configuration word is modified according to the new configuration word to be written.

[0062] As an optional implementation, before receiving the configuration word to be written, the method further includes:

[0063] Obtain all current configuration item sets and the association relationship corresponding to each of the configuration item sets;

[0064] Determine whether all configuration items included in each of the configuration item sets satisfy the corresponding association relationship;

[0065] If there is a set of error configuration items that do not satisfy the corresponding association relationship, determining the error configuration items that do not satisfy the association relationship and the error configuration words to which the error configuration items belong from the set of error configuration items;

[0066] Outputting prompt information for prompting that the error configuration item of the error configuration word has an error.

[0067] As an optional implementation, the configuration word to be written is sent by a client connected to the vehicle, and the client sends the configuration word to be written to the vehicle after performing a preset security service authentication with a controller in the vehicle corresponding to the configuration word to be written.

[0068] In a second aspect, the present application provides a vehicle configuration word modification device, which is applied to a vehicle, wherein the vehicle includes a plurality of configuration words, each of which includes a plurality of configuration items and a check field constructed according to a preset rule, and includes:

[0069] A first determination module is used to determine a target configuration word corresponding to the configuration word to be written when receiving the configuration word to be written; wherein the configuration word to be written is used to modify the target configuration word;

[0070] A second determination module is configured to determine a target configuration item set corresponding to the target configuration word from a plurality of preset configuration item sets, and obtain a target association relationship between configuration items included in the target configuration item set; wherein the target configuration item set includes at least one target configuration item included in the target configuration word and other configuration items included in other configuration words;

[0071] A third determination module, configured to determine whether the configuration word to be written meets a preset condition according to the target configuration item set and the target association relationship;

[0072] A modification module is used to modify the target configuration word according to the configuration word to be written when it is determined that the configuration word to be written meets the preset condition.

[0073] In a third aspect, the present application provides a vehicle, comprising a processor and a memory, wherein the processor is used to execute a vehicle configuration word modification program stored in the memory to implement the vehicle configuration word modification method described in any one of the first aspects.

[0074] The technical solution provided by the embodiment of the present application is to determine, upon receiving a configuration word to be written, a target configuration word corresponding to the configuration word to be written, wherein the configuration word to be written is used to modify the target configuration word, determine a target configuration item set corresponding to the target configuration word from a plurality of preset configuration item sets, and obtain a target association relationship between configuration items included in the target configuration item set, wherein the target configuration item set includes at least one target configuration item included in the target configuration word and other configuration items included in other configuration words, determine whether the configuration word to be written satisfies a preset condition based on the target configuration item set and the target association relationship, and if it is determined that the configuration word to be written satisfies the preset condition, modify the target configuration word based on the configuration word to be written. This technical solution, because there is a certain association relationship between some configuration items of different configuration words, these configuration items express the same vehicle configuration from different dimensions. Therefore, the association relationship between the configuration items included in different configuration words can be pre-constructed. Therefore, after receiving the configuration word to be written for modifying the target configuration word, it can be verified whether the configuration items included in the configuration word to be written all satisfy the corresponding association relationship. If so, it means that the configuration word to be written is legal. Therefore, the target configuration word can be modified according to the configuration word to be written, thereby improving the security of modifying the vehicle configuration word. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

[0077] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0078] Figure 1 A flow chart of an embodiment of a method for modifying a vehicle configuration word provided in an embodiment of the present application;

[0079] Figure 2 A flowchart of another method for modifying vehicle configuration characters provided in an embodiment of the present application;

[0080] Figure 3 A flowchart of an embodiment of constructing a check field provided in an embodiment of the present application;

[0081] Figure 4 A block diagram of an embodiment of a vehicle configuration word modification device provided in an embodiment of the present application;

[0082] Figure 5 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION

[0083] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described in conjunction with the drawings in the embodiments of the present application. Obviously, the embodiments described in the text are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0084] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0085] In order to solve the technical problem in the prior art that when a vehicle's configuration words are modified by a diagnostic instrument or an electrical inspection device, the diagnostic instrument or the electrical inspection device only needs to perform 27 service authentication, which leads to the configuration words being easily tampered with arbitrarily after the key is leaked, thereby causing serious harm to the vehicle, the present application provides a vehicle configuration word modification method, device and vehicle, which can pre-build the association relationship between the configuration items included in different configuration words because there is a certain association relationship between some configuration items of different configuration words, and these configuration items express the same vehicle model configuration from different dimensions. Therefore, after receiving the configuration word to be written for modifying the target configuration word, it can first verify whether the configuration items included in the configuration word to be written all satisfy the corresponding association relationship. If satisfied, it means that the configuration word to be written is legal. Therefore, the target configuration word can be modified according to the configuration word to be written, thereby realizing a safer remote modification of the vehicle's configuration words.

[0086] The vehicle configuration word modification method provided by the present application is further explained below with reference to specific embodiments in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present invention.

[0087] See also Figure 1 , is a flow chart of an embodiment of a vehicle configuration word modification method provided in an embodiment of the present application. As an embodiment, Figure 1 The process shown can be applied to a vehicle, which may include multiple configuration words, each of which may include multiple configuration items and a check field constructed according to a preset rule. Figure 1 As shown, the process may include the following steps:

[0088] Step 101 : upon receiving a configuration word to be written, determining a target configuration word corresponding to the configuration word to be written, wherein the configuration word to be written is used to modify the target configuration word.

[0089] The configuration word to be written is a configuration word that is reset for the configuration word that needs to be modified, and relative to the configuration word that needs to be modified, it includes the modified content of the configuration word that needs to be modified. In addition, it may also include the unmodified content of the configuration word that needs to be modified. In this case, the configuration word to be written is the configuration word after the configuration word that needs to be modified is modified.

[0090] The target configuration word is the configuration word corresponding to the configuration word to be written, which may be the configuration word that needs to be modified. In the embodiment of the present application, since the configuration word to be written includes the modified content, the modification of the target configuration word can be completed through the configuration word to be written. In other words, the configuration word to be written is used to modify the target configuration word.

[0091] In the embodiment of the present application, the execution subject of the embodiment of the present application may be a vehicle, and further, may be a master controller of the vehicle. The vehicle may include multiple controllers, and the vehicle implements corresponding functions through the operation of multiple controllers, and the master controller may control the entire vehicle, including the control of the multiple controllers.

[0092] Based on this, in one embodiment, when the execution subject of the embodiment of the present application receives the configuration word to be written, it can first determine the target configuration word corresponding to the configuration word to be written, so that in subsequent steps, the target configuration word can be modified according to the configuration word to be written.

[0093] As an optional implementation, there may be a data identifier for each configuration word corresponding to each controller included in the vehicle. Based on this, after receiving the configuration word to be written, the execution subject of the embodiment of the present application may obtain the data identifier of the configuration word to be written (hereinafter referred to as the "data identifier to be written" for ease of distinction). Afterwards, based on the data identifier to be written, the target configuration word whose data identifier is consistent with the data identifier to be written may be determined from multiple configuration words of the vehicle.

[0094] In addition, the configuration word to be written can be sent by a client connected to the vehicle, and the client can be a diagnostic device of the vehicle (such as a diagnostic instrument or an electrical inspection device). Based on this, when the client detects that the target configuration word of the vehicle needs to be modified, it can generate a configuration word after modifying the target configuration word, and send the generated configuration word as the configuration word to be written to the execution subject of the embodiment of the present application.

[0095] Among them, before sending the configuration words to be written to the execution entity of the embodiment of the present application, in order to ensure the safe transmission of the configuration words to be written, the above-mentioned client may first perform a preset security service authentication on the controller corresponding to the configuration words to be written in the vehicle, and send the configuration words to be written to the vehicle after the authentication is passed.

[0096] As an exemplary implementation, the above-mentioned security service authentication may be 27 service (27 service refers to the security access service, and the security concept adopts the seed and secret key relationship) authentication. Based on this, the client may send a request instruction for the 27 service request seed to the execution subject of the embodiment of the present application. After receiving the request instruction, the execution subject of the embodiment of the present application may determine the controller that needs to modify the configuration word according to the identification information in the request (such as the diagnostic ID (Identity document) sent by the diagnostic device), and send the above-mentioned request instruction to the controller. Afterwards, the controller may return the pre-stored seed to the execution subject of the embodiment of the present application after receiving the request instruction. After receiving the seed fed back by the controller, the execution subject of the embodiment of the present application may feed back the seed to the client.

[0097] After that, the client can calculate the KEY value of the seed according to the pre-stored key and key algorithm, and send the KEY value to the execution subject of the embodiment of the present application. After receiving the KEY value, the execution subject of the embodiment of the present application will send the KEY value to the above-mentioned controller so that the controller verifies whether the KEY value is correct and feeds back the verification result to the execution subject of the embodiment of the present application.

[0098] Finally, the execution entity of the embodiment of the present application sends the received verification result to the client. When the verification result is that the verification is passed, the client can send the generated configuration word to be written to the execution entity of the embodiment of the present application.

[0099] Step 102: Determine a target configuration item set corresponding to a target configuration word from a plurality of preset configuration item sets, and obtain a target association relationship between configuration items included in the target configuration item set, wherein the target configuration item set includes at least one target configuration item included in the target configuration word and other configuration items included in other configuration words.

[0100] The above-mentioned configuration item set is a set of configuration items contained in different configuration words that are pre-constructed and are used to represent a certain feature of the vehicle. That is to say, the vehicle features represented by the configuration items in the configuration item set are consistent or have an associated relationship, but may be located in different configuration words. Therefore, the configuration items included in each configuration item set are associated with each other.

[0101] For example, with respect to the feature of the vehicle's seat layout, assuming that configuration item 1 in the air-conditioning configuration word, configuration item 2 in the body configuration word, and configuration item 3 in the airbag configuration word are all used to characterize the vehicle's seat layout, then the above configuration item 1, configuration item 2, and configuration item 3 can be classified into the same configuration item set.

[0102] The target configuration item set refers to a set consisting of at least one configuration item in the target configuration word (hereinafter referred to as the target configuration item for the sake of distinction) and other configuration items included in other configuration words. Among them, since the target configuration word includes multiple configuration items, and the configuration items included in the same configuration word mostly represent different vehicle features, the target configuration item set corresponding to the target configuration word may be multiple.

[0103] It should be noted that all configuration items contained in each configuration word may not have corresponding configuration item sets, that is, there may be no association between a single configuration item and other configuration items of the vehicle.

[0104] Furthermore, since when the target configuration word is modified, it may not be necessary to modify all target configuration items in the target configuration word, in order to save system resources, the target configuration item set here may be the configuration item set to which the target configuration item to be modified in the target configuration word belongs. In other words, if a target configuration item included in the target configuration word does not need to be modified, then the configuration item set to which the target configuration item belongs may not be used as the target configuration item set.

[0105] The above-mentioned target association relationship refers to the association relationship corresponding to the configuration items included in the target configuration item set. From the above description, it can be seen that the configuration items included in each pre-built configuration item set have an association relationship, so the target association relationship is the association relationship between the target configuration items included in the target configuration item set.

[0106] In the embodiment of the present application, all configuration items included in the vehicle can be classified and combined in advance according to the vehicle characteristics represented by the configuration items, so as to obtain multiple configuration item sets, and build the association relationship between all configuration items included in each configuration item set. Afterwards, the configuration item sets and the association relationship corresponding to each configuration item set can be stored.

[0107] For example, suppose there are three controllers corresponding to the configuration words A, B, and C respectively, and their configuration items are A1, A2, ...; B1, B2, ...; C1, C2, ...; among them, A1, B2, B3, and C2 all represent the configuration of the power configuration, A1 (0: front drive, 1: rear drive, 2: four-wheel drive); B2 (0: no motor, 1: single motor on the front axle, 2; dual motors on the front axle); B3 (0: no motor, 1: single motor on the rear axle, 2; dual motors on the rear axle); C2: (1: single motor drive on the front axle, 2: dual motor drive on the front axle, 3: single motor drive on the rear axle, 4: dual motor drive on the rear axle, 5: four-wheel front single motor and rear dual motor drive, 6: four-wheel front dual motor and rear dual motor drive, 7: four-wheel front single motor and rear single motor drive, 8: four-wheel front dual motor and rear single motor drive).

[0108] Based on this, there is a correlation between the elements of the set of the above four configuration items {A1, B2, B3, C2}, which can be expressed as a functional relationship C2=F(A1, B2, B3). When this functional relationship is not satisfied, it means that a vehicle model has two power configurations, which is definitely wrong, and thus the error of the configuration word can also be detected.

[0109] Extending to the whole vehicle, the configuration items that express a whole vehicle configuration word in the configuration word of each controller can be grouped into a set, and the association relationship between the various quantities in this set can be established. In this way, sets and associations can be established. By detecting these multiple associations, the configuration of each controller of the whole vehicle can be detected.

[0110] For another example, assuming that the configuration items of the vehicle seat layout are (0x0: 4 seat, front 2 + rear 2; 0x1: 5 seat, front 2 + rear 3; 0x2: 6 seat, 2+2+2; 0x3: 7 seat, 2+3+2), the configuration word of the air conditioning controller will use configuration item A1 (0x0: 4 seat, front 2 + rear 2; 0x1: 5 seat, front 2 + rear 3; 0x2: 6 seat, 2+2+2; 0x3: 7 seat, 2+3+2), the body controller will use configuration item B2 (0x1: 4 seat, front 2 + rear 2; 0x2: 5 seat, front 2 + rear 3; 0x3: 6 seat, 2+2+2; 0x4: 7 seat, 2+3+2), and the airbag controller will use configuration item C3 (0x2: 4 seat, front 2 + rear 2; 0x1: 5 seat, front 2 + rear 3; 0x2: 6 seat, 2+2+2; 0x3: 7 seat, 2+3+2). seat, 2+2+2; 0x4: 7 seat, 2+3+2).

[0111] Based on this, configuration item A1, configuration item B2, and configuration item C3 are classified into a configuration item set, and the association relationship corresponding to the configuration item set can be constructed as follows: Number of seats = A1+4=B2+3={C3+2 (C3=2), C3+4 (C3=1); C3+3 (C3=3 or C3=4)}.

[0112] Based on this, after determining the target configuration word corresponding to the configuration word to be written, the execution subject of the embodiment of the present application can determine the target configuration item set corresponding to the target configuration word from multiple preset configuration item sets, and obtain the target association relationship between the target configuration items included in the target configuration item set.

[0113] As an optional implementation, when the above-mentioned target configuration item set is a configuration item set to which the configuration item to be modified in the target configuration word belongs, each configuration word may further include a configuration change field, which is used to record a set identifier, and the configuration item set corresponding to the set identifier includes the configuration items contained in the configuration word to which the above-mentioned configuration change field belongs, as well as the configuration items included in other configuration words, and the configuration items in the configuration item set are associated. In other words, the above-mentioned configuration change field is used to record part or all of the configuration item sets corresponding to the configuration word to which it belongs. Furthermore, the configuration change field may record the target set identifier of the target configuration item set to which the configuration item currently to be modified belongs. The above-mentioned set identifier may be numbers, letters, symbols, or any combination of the three, and the embodiments of the present application do not impose any restrictions on this.

[0114] Wherein, each configuration word may correspond to a controller, and the above-mentioned target configuration word corresponds to a target controller. After receiving the configuration word to be written, the target controller may determine the configuration item to be written included in the configuration word to be written (the configuration item to be written is the configuration item that needs to be modified in the target configuration word), and determine the configuration item set where the configuration item to be written is located. Afterwards, the set identifier of the configuration item set where the configuration item to be written is located may be written into the configuration change field of the target configuration word.

[0115] Based on this, when the execution subject of the embodiment of the present application determines the target configuration item set corresponding to the target configuration word from the preset multiple configuration item sets, it can obtain the target set identifier of the current record from the configuration change field corresponding to the target configuration word. Afterwards, the configuration item set corresponding to the target set identifier can be determined as the target configuration item set corresponding to the target configuration word.

[0116] As another optional implementation, when the target configuration item set is the set of all configuration items corresponding to the target configuration word, each configuration word may include a set identification field, and the set identification field is used to record the set identification corresponding to the configuration item set corresponding to the configuration word.

[0117] Optionally, the above-mentioned set identification field may include the set identification of all configuration item sets corresponding to the configuration word.

[0118] Optionally, the above-mentioned set identification field may include the set identification of some configuration item sets with higher priorities corresponding to the configuration word.

[0119] Based on this, when determining the target configuration item set corresponding to the target configuration word, the execution subject of the embodiment of the present application can directly obtain all set identifiers included in the set identifier field of the target configuration word, and determine the configuration item set corresponding to the set identifier as the target configuration item set.

[0120] As another optional implementation, the configuration word may also include both the configuration change field and the set identifier field. Based on this, the execution subject of the embodiment of the present application may simultaneously obtain all the set identifiers included in the above two fields, and determine the configuration item set corresponding to each set identifier as the target configuration item set.

[0121] In addition, in order to ensure the accuracy of each configuration item set and the corresponding association relationship, the execution subject of the embodiment of the present application may first obtain all current configuration item sets and the association relationship corresponding to each configuration item set before receiving the configuration word to be written.

[0122] Afterwards, it may be determined whether all configuration items included in each of the above configuration item sets satisfy the corresponding association relationship.

[0123] Optionally, if it is determined that all configuration items included in each configuration item set satisfy the corresponding association relationship, it means that the configuration item set and the corresponding association relationship are relatively accurate, and the configuration items included in each configuration word are also correct.

[0124] Optionally, if it is determined that there is a set of configuration items that do not satisfy the corresponding association relationship (hereinafter referred to as the error configuration item set for ease of description), the error configuration item that does not satisfy the association relationship and the error configuration word to which the error configuration item belongs can be determined from the error configuration item set.

[0125] Afterwards, a prompt message for prompting that an erroneous configuration item of an erroneous configuration word is erroneous may be output, so that a technician can correct the erroneous configuration item in time.

[0126] Step 103: Determine whether the configuration word to be written meets a preset condition according to the above target configuration item set and the target association relationship.

[0127] Step 104: When it is determined that the configuration word to be written meets the above preset condition, modify the target configuration word according to the configuration word to be written.

[0128] The following is a unified description of step 103 and step 104:

[0129] The above-mentioned preset conditions are used to characterize the writing conditions that the configuration words to be written need to meet. Only when the configuration words to be written meet the preset conditions can the execution subject of the embodiment of the present application write the configuration words to be written into the vehicle.

[0130] In the embodiment of the present application, since a plurality of different configuration item sets are pre-set, and the association relationship between the configuration items included in each configuration item set is constructed, when the configuration items included in the configuration word are modified, the modified configuration items should also satisfy the corresponding association relationship, otherwise it means that the vehicle characteristics represented by the modified configuration items are inconsistent, and the modified configuration items are wrong. For example, the configuration item before the modification represents that the vehicle has six seats, and the configuration item after the modification represents that the vehicle has seven seats. In the configuration item set to which the configuration item belongs, it can be known from other configuration items that the model of the vehicle does not have seven seats, so the modified configuration item is wrong.

[0131] Based on this, the execution subject of the embodiment of the present application can determine whether the configuration word to be written meets the preset condition according to the determined target configuration item set and the target association relationship.

[0132] As an optional implementation, the execution subject of the embodiment of the present application may determine the configuration items to be written included in the configuration word to be written, and determine the target configuration items in the target configuration item set corresponding to the configuration items to be written.

[0133] Afterwards, the target configuration item may be replaced with the configuration item to be written, thereby obtaining a new target configuration item set, and determining whether all configuration items included in the new target configuration item set satisfy the corresponding target association relationship.

[0134] Optionally, when it is determined that the configuration items included in the new target configuration item set satisfy the target association relationship, it may be determined that the configuration word to be written satisfies a preset condition.

[0135] Furthermore, when it is determined that the configuration word to be written meets a preset condition, the execution subject of the embodiment of the present application may modify the target configuration word according to the configuration word to be written.

[0136] As an exemplary implementation, when the configuration word to be written includes all configuration items of the target configuration word, the execution subject of the embodiment of the present application may directly replace the target configuration word with the configuration word to be written.

[0137] As another exemplary implementation, when the configuration word to be written includes some configuration items of the target configuration word, the execution subject of the embodiment of the present application may modify some configuration items of the target configuration word according to the configuration word to be written.

[0138] On the contrary, when it is determined that the configuration items included in the new target configuration item set do not satisfy the above target association relationship, it can be determined that the configuration word to be written does not satisfy the preset condition.

[0139] Furthermore, when it is determined that the configuration word to be written does not meet the preset conditions, the execution subject of the embodiment of the present application may send a write failure message to the client that sent the configuration word to be written, and reject the client's write request within a preset time period (for example, 48 hours).

[0140] Furthermore, the execution subject of the embodiment of the present application can determine the writing range of the target configuration word according to the target association relationship and the target configuration item set. The writing range here refers to the modification range of the configuration items to be written included in the configuration word to be written.

[0141] For example, the vehicle's seat massage configuration item set is detected to have a problem. The seat massage configuration is related to the rain light sensor configuration. Only models with rain light sensors have second-row seat massage. Assume that the rain light sensor configuration item is detected without a problem, and the rain light sensor configuration item is configured as None. Then the seat massage configuration item value for second-row seat massage is an illegal value domain, and other values ​​are legal value domains (that is, the write range of the seat massage configuration item).

[0142] Based on this, the execution subject of the embodiment of the present application can update the configuration word to be written according to the write range, obtain a new configuration word to be written, and modify the target configuration word according to the new configuration word to be written.

[0143] In addition, after determining the write range of the target configuration word, the execution subject of the embodiment of the present application can also output prompt information for indicating that the configuration word to be written does not meet the modification requirements, and output the write range so that the client or technician can modify the configuration word to be written according to the write range.

[0144] The technical solution provided by the embodiment of the present application is to determine, upon receiving a configuration word to be written, a target configuration word corresponding to the configuration word to be written, wherein the configuration word to be written is used to modify the target configuration word, determine a target configuration item set corresponding to the target configuration word from a plurality of preset configuration item sets, and obtain a target association relationship between configuration items included in the target configuration item set, wherein the target configuration item set includes at least one target configuration item included in the target configuration word and other configuration items included in other configuration words, determine whether the configuration word to be written satisfies a preset condition based on the target configuration item set and the target association relationship, and if it is determined that the configuration word to be written satisfies the preset condition, modify the target configuration word based on the configuration word to be written. This technical solution, because there is a certain association relationship between some configuration items of different configuration words, these configuration items express the same vehicle configuration from different dimensions. Therefore, the association relationship between the configuration items included in different configuration words can be pre-constructed. Therefore, after receiving the configuration word to be written for modifying the target configuration word, it can be verified whether the configuration items included in the configuration word to be written all satisfy the corresponding association relationship. If so, it means that the configuration word to be written is legal. Therefore, the target configuration word can be modified according to the configuration word to be written, thereby improving the security of modifying the vehicle configuration word.

[0145] See also Figure 2 , which is a flow chart of another embodiment of a vehicle configuration word modification method provided in an embodiment of the present application. Figure 2 The process shown in Figure 1 Based on the process shown, it describes how to further verify the configuration word to be written, so as to modify the target configuration word according to the configuration word to be written, when the configuration word to be written meets the preset conditions and each configuration word also includes a check field constructed according to the preset rules. Figure 2 As shown, the process may include the following steps:

[0146] Step 201, when it is determined that the configuration word to be written meets the preset conditions, determine whether the check field corresponding to the configuration word to be written meets the preset rules, if so, execute step 202; if not, execute step 203.

[0147] Step 202: modify the target configuration word according to the configuration word to be written.

[0148] Step 203: outputting a prompt message for prompting that the configuration word to be written fails, and not receiving the configuration word to be written within a preset time period.

[0149] The following is a unified description of steps 201 to 203:

[0150] The above-mentioned check field is a pre-constructed field used to check whether the configuration word is correct. Optionally, when the check field of the configuration word meets the preset rules, it means that the configuration word is correct; when the check field of the configuration word does not meet the preset rules, it means that the configuration word is inaccurate.

[0151] In this embodiment, the above-mentioned check field can be used to check the configuration word to be written. When the check field of the configuration word to be written meets the preset rules for constructing the check field of the target configuration word, it means that the configuration word to be written is a configuration word modified for the target configuration word, and it can be determined that the configuration word to be written is correct.

[0152] In one embodiment, since not all configuration items included in each configuration word have a corresponding configuration item set, that is, the target configuration word may have a separate configuration item that has no association with other configuration items of the vehicle. Therefore, in order to protect such configuration items that have no association, the execution subject of the embodiment of the present application may first construct a check field for each configuration word according to a preset rule. Then, when a configuration word to be written that is modified for the target configuration word is received, after determining that the configuration word to be written meets the preset conditions through step 103, it may be determined whether the check field corresponding to the configuration word to be written meets the preset rules, thereby achieving further verification of the configuration word to be written.

[0153] As an optional implementation, the above check field may include multiple sub-check fields based on Figure 1 The configuration word shown in the figure includes multiple configuration items and configuration change fields. In this implementation, the structure of the above configuration word can be shown in Table 1 below:

[0154] Table 1

[0155]

[0156] As can be seen from Table 1, the check field 1 and the check field 2 are sub-check fields of the configuration word. In addition, the data identifier of the configuration word may be composed of two bytes in hexadecimal, with a total of 16 bits.

[0157] Based on this, the check field of the above configuration word can be Figure 3 The preset rules for the process shown are constructed in Figure 3 , is a flow chart of an embodiment of constructing a check field provided in an embodiment of the present application. Figure 3 As shown, the process may include the following steps:

[0158] Step 301: Obtain a data identifier of a configuration word and a diagnostic identifier of a controller corresponding to the configuration word.

[0159] The above-mentioned data identifier refers to a data identifier used to uniquely identify a configuration word, that is, each configuration word corresponds to a unique data identifier. The data identifier can be composed of two hexadecimal bytes (16 bits) as shown in Table 1, or three bytes, or other numbers of bytes. The embodiments of the present application do not impose any restrictions on this.

[0160] The above-mentioned diagnostic identifier refers to the identifier corresponding to each controller when diagnosing the vehicle's controller. Each controller may correspond to a unique diagnostic identifier. The above-mentioned diagnostic identifier may be composed of 12 bits or other numbers of bits. The embodiment of the present application does not impose any restrictions on this.

[0161] In an embodiment of the present application, in order to construct a check field for each configuration word, the execution entity of the embodiment of the present application can obtain the data identifier of each configuration word and the diagnostic identifier of the controller corresponding to the configuration word, so as to construct the check field of the configuration word based on the data identifier and the diagnostic identifier in subsequent steps.

[0162] Step 302: Process the data identifier and the diagnosis identifier according to a first preset rule to obtain a total check field of the configuration word.

[0163] Step 303: Determine the number of sub-check fields included in the check field of the configuration word.

[0164] Step 304: Divide the total check field according to the number and a second preset rule to obtain a plurality of sub-check fields.

[0165] The following is a unified description of steps 302 to 304:

[0166] The above-mentioned total check field refers to the total check field corresponding to the configuration word constructed according to the first preset rule, which may be the sum of multiple sub-check fields.

[0167] In one embodiment, the execution subject of the embodiment of the present application may process the above data identifier and the diagnostic identifier according to the first preset rule to obtain a total check field corresponding to a configuration word. Afterwards, the above total check field may be divided into multiple sub-check fields according to the number of sub-check fields included in the configuration word.

[0168] As an optional implementation, the above-mentioned data identifier may be composed of a first number of bit values, and the above-mentioned diagnostic identifier may be composed of a second number of bit values. Based on this, when the execution subject of the embodiment of the present application processes the data identifier and the diagnostic identifier according to the first preset rule, it can obtain the first bit value of the third number located at the end of the diagnostic identifier and divide the data identifier. Among them, since the first N bit values ​​of the diagnostic identifier are the same for each controller, the first bit value of the third number located at the end can be selected. For example, when the diagnostic identifier is a 12-bit value, the first 4 bit values ​​of the diagnostic identifier are the same for each controller, so the following 8 bit values ​​are selected.

[0169] Optionally, the data identifier can be divided into the second bit value of the first fourth quantity, the third bit value of the third quantity after the second bit value, and the fourth bit value of the fourth quantity at the end. The second bit value, the third bit value, and the fourth bit value constitute the data identifier. The third quantity and the fourth quantity are both positive integers greater than 1, which may be the same or different, and the embodiment of the present application does not limit this.

[0170] For example, assuming that the above data identifier includes 16 bit values, then according to the above division rule, the data identifier can be divided into the first 4 bit values, the middle 8 bit values, and the last 4 bit values.

[0171] After completing the above value selection, the execution entity of the embodiment of the present application may add the first bit value and the third bit value to obtain the fifth bit value, and add the second bit value and the fourth bit value to obtain the sixth bit value.

[0172] Afterwards, since the length of the check field should not be too long, the last third number of bit values ​​can be selected from the fifth bit value to obtain the first value, and the last fourth number of bit values ​​can be selected from the sixth bit value to obtain the second value.

[0173] Finally, the first value, the second value, and the preset third value can be combined to obtain the total check field. Among them, the above-mentioned third value can be a preset fifth number of bit values, which can be a serial number (for example, 0 to 15 in a cycle) used to characterize the sequence number of the current check field. It should be noted that the number of bits of the third value can be the fifth number, that is, the same as the number of the last bits selected from the above-mentioned sixth bit value, or it can be other numbers, such as 5 bits or 6 bits, etc., and the embodiment of the present application does not limit this.

[0174] For example, the configuration word of the controller has a DID (data identifier), which is generally two bytes. In addition, the controller also has its own unique diagnostic ID. Here we use the diagnostic feedback ID (the diagnostic ID is a pair, one request and one reply). The diagnostic ID is 12 bits. Because the first 4 bits of the diagnostic ID are the same for each controller, the following 8 bits are selected. Then select the middle 8 bits of the 16 bits of the configuration word DID, add the 8 bits of the diagnostic ID, and get an 8-bit or 9-bit binary number. Only the following 8 bits are left to get the number S1.

[0175] Add the first 4 bits and the last 4 bits of the configuration word DID to get the last 4 bits to get the number S2. In addition, add a 4-bit number S3 representing the serial number (0 to 15 in a cycle), so that S1, S2, S3 are sequentially combined to get the total checksum field S of the configuration word.

[0176] As an optional implementation, when the total check field is divided according to the number of sub-check fields and the second preset rule, it can be divided randomly or evenly, and the embodiment of the present application does not limit this. For example, if the number is 2 and the total check field includes 8 bit values, then the 8 bit values ​​can be randomly divided into two groups, for example, the first 3 are one group and the last 5 are one group, or the 8 bit values ​​can be evenly divided into two groups, that is, the first 4 are one group and the last 4 are one group.

[0177] Afterwards, the multiple bit values ​​obtained by division can be allocated to each sub-check field in sequence.

[0178] This completes the Figure 3 Description of the process shown.

[0179] based on Figure 3 The check field constructed by the process shown in the figure, when the execution subject of the embodiment of the present application determines whether the check field corresponding to the configuration word to be written satisfies the above preset rules, it can be Figure 3 The process shown constructs the check field to be written of the configuration word to be written, and compares the two. Optionally, if the difference between the two is within a preset range, it can be determined that the check field corresponding to the configuration word to be written meets the above preset rule.

[0180] As an optional implementation, the data identifier to be written of the configuration word to be written and the diagnostic identifier to be written of the controller to be written corresponding to the configuration word to be written can be obtained. Figure 3 The first preset rule shown processes the identifier of the data to be written and the diagnostic identifier to be written to obtain the total check field to be written of the configuration word to be written.

[0181] As an exemplary embodiment, the third quantity of first bit values ​​to be written located at the last position in the diagnostic identifier to be written can be obtained, and the data identifier to be written can be divided into the first fourth quantity of second bit values ​​to be written, the third quantity of third bit values ​​to be written after the second bit value to be written, and the fourth quantity of fourth bit values ​​to be written located at the last position, wherein the second bit value to be written, the third bit value to be written, and the fourth bit value to be written constitute the data identifier to be written.

[0182] After completing the above selection of bit values, the first bit value to be written and the third bit value to be written can be added to obtain the fifth bit value to be written, and the second bit value to be written and the fourth bit value to be written can be added to obtain the sixth bit value to be written.

[0183] Afterwards, the last third number of bit values ​​can be selected from the fifth bit value to be written to obtain the first value to be written, and the last fourth number of bit values ​​can be selected from the sixth bit value to be written to obtain the second value to be written.

[0184] After that, in order to verify the check field more accurately, according to Figure 3 As can be seen from the flow description, the third value is a serial number of, for example, 0 to 15 cycles, so the third value can be increased by a preset value (for example, 1) to obtain a third value to be written. For example, if the third value is 0001, then adding 1 to the third value will result in 0010.

[0185] Finally, the first value to be written, the second value to be written, and the third value to be written may be combined to obtain the total check field to be written.

[0186] This completes the construction of the total check field.

[0187] Afterwards, since the configuration word to be written is a modified configuration word of the target configuration word, the number of sub-check fields it includes is the same. Based on this, the total check field to be written can be divided directly according to the number of target configuration words and the second preset rule to obtain multiple sub-check fields to be written.

[0188] Afterwards, it can be determined whether each sub-check field to be written satisfies a preset check condition with the sub-check field corresponding to the target configuration word. The preset check condition here is used to indicate that the difference between the sub-check field of the configuration word to be written and the sub-check field corresponding to the target configuration word is within a preset range.

[0189] Finally, if it is determined that each sub-check field to be written and the sub-check field corresponding to the target configuration word meet the above preset check conditions, it can be determined that the check field corresponding to the configuration word to be written meets the preset rule.

[0190] Further, when it is determined that the check field corresponding to the configuration word to be written meets the preset rule, the target configuration word can be modified directly according to the configuration word to be written. As for how to modify it specifically, please refer to the process shown in step 104, which will not be described in detail here.

[0191] Optionally, when it is determined that the check field corresponding to the configuration word to be written does not meet the preset rules, a prompt message can be output to indicate that the writing of the configuration word to be written has failed, and no configuration word to be written will be received within a preset time period (for example, within 48 hours).

[0192] The technical solution provided by the embodiment of the present application determines whether the check field corresponding to the configuration word to be written satisfies the preset rules when it is determined that the configuration word to be written satisfies the preset conditions. If so, the target configuration word is modified according to the configuration word to be written; if not, a prompt message for prompting that the writing of the configuration word to be written fails is output, and the configuration word to be written is no longer received within a preset time period. This technical solution constructs the check field of the configuration word, and after the configuration item to be written of the configuration word to be connected satisfies the verification of the association relationship, further verifies whether the check field corresponding to the configuration word to be written satisfies the preset rules, thereby further verifying the configuration word to be written, realizing double verification of the configuration word to be written, and thus ensuring the security of modifying the target configuration word.

[0193] See also Figure 4 , is a block diagram of an embodiment of a vehicle configuration word modification device provided by an embodiment of the present application. As an embodiment, the device can be applied to a vehicle, and the vehicle may include multiple configuration words, each configuration word includes multiple configuration items and a check field constructed according to a preset rule. Figure 4 As shown, the device may include:

[0194] A first determination module 41 is used to determine a target configuration word corresponding to the configuration word to be written when receiving the configuration word to be written; wherein the configuration word to be written is used to modify the target configuration word;

[0195] A second determining module 42 is configured to determine a target configuration item set corresponding to the target configuration word from a plurality of preset configuration item sets, and obtain a target association relationship between configuration items included in the target configuration item set; wherein the target configuration item set includes at least one target configuration item included in the target configuration word and other configuration items included in other configuration words;

[0196] A third determination module 43, configured to determine whether the configuration word to be written meets a preset condition according to the target configuration item set and the target association relationship;

[0197] The modification module 44 is configured to modify the target configuration word according to the configuration word to be written if it is determined that the configuration word to be written meets the preset condition.

[0198] like Figure 5 As shown, it is a schematic diagram of the structure of a vehicle provided in an embodiment of the present application, including a processor 51, a communication interface 52, a memory 53 and a communication bus 54, wherein the processor 51, the communication interface 52, and the memory 53 communicate with each other through the communication bus 54.

[0199] A memory 53, for storing computer programs;

[0200] In one embodiment of the present application, the processor 51 is used to execute the program stored in the memory 53 to implement the vehicle configuration word modification method provided by any of the above method embodiments, including:

[0201] In the case of receiving the configuration word to be written, determining the target configuration word corresponding to the configuration word to be written; wherein the configuration word to be written is used to modify the target configuration word;

[0202] Determine a target configuration item set corresponding to the target configuration word from a plurality of preset configuration item sets, and obtain a target association relationship between target configuration items included in the target configuration item set; wherein the target configuration item set includes at least one target configuration item included in the target configuration word and other configuration items included in other configuration words;

[0203] Determining whether the configuration word to be written meets a preset condition according to the target configuration item set and the target association relationship;

[0204] When it is determined that the configuration word to be written meets the preset condition, the target configuration word is modified according to the configuration word to be written.

[0205] An embodiment of the present application also provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the vehicle configuration word modification method provided in any of the aforementioned method embodiments are implemented.

[0206] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0207] Through the text of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution, in essence or in other words, the part that contributes to the relevant technology, can be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0208] It should be understood that the terms used in the text are only for the purpose of the specific example implementation of the text, and are not intended to be limited. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used in the text can also be represented to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of the stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or their combinations. The method steps, processes, and operations of the text in the text are not interpreted as necessarily requiring them to be performed in the specific order of the text or description, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps can be used.

[0209] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for modifying a vehicle configuration word, characterized in that: Applied to a vehicle, the vehicle includes a plurality of configuration words, each of the configuration words includes a plurality of configuration items and a check field constructed according to a preset rule, the method includes: In the case of receiving the configuration word to be written, determining the target configuration word corresponding to the configuration word to be written; wherein the configuration word to be written is used to modify the target configuration word; Determine a target configuration item set corresponding to the target configuration word from a plurality of preset configuration item sets, and obtain a target association relationship between target configuration items included in the target configuration item set; wherein the target configuration item set includes at least one target configuration item included in the target configuration word and other configuration items included in other configuration words, and the target configuration item set is one or more; the configuration item set is obtained by classifying and combining all configuration items included in the vehicle according to vehicle features represented by the configuration items in advance, and the association relationship of each of the configuration item sets is a functional relationship between all configuration items included in the configuration item set; Determining whether the configuration word to be written meets a preset condition according to the target configuration item set and the target association relationship; In the case where it is determined that the configuration word to be written meets the preset condition, modifying the target configuration word according to the configuration word to be written includes: In the case where it is determined that the configuration word to be written meets the preset condition, determining whether the check field corresponding to the configuration word to be written meets the preset rule; If it is determined that the check field corresponding to the configuration word to be written satisfies the preset rule, the target configuration word is modified according to the configuration word to be written, wherein the check field of the configuration word is constructed based on the data identifier of the configuration word and the diagnostic identifier of the controller corresponding to the configuration word.

2. The method according to claim 1, characterized in that The determining of the target configuration word corresponding to the configuration word to be written includes: Obtaining an identifier of the data to be written of the configuration word to be written; According to the identifier of the data to be written, a target configuration word having a data identifier consistent with the identifier of the data to be written is determined from a plurality of configuration words of the vehicle.

3. The method according to claim 1, characterized in that Each configuration word corresponds to a controller, and the configuration word also includes a configuration change field, the configuration change field is used to record a set identifier, and the configuration item set corresponding to the set identifier includes the configuration items included in the configuration word to which the configuration change field belongs, and the configuration items included in other configuration words, and there is an association relationship between the configuration items in the configuration item set; After receiving the configuration word to be written, the target controller corresponding to the target configuration word determines the configuration item to be written included in the configuration word to be written, and determines the configuration item set to which the configuration item to be written belongs; and writes the set identifier of the configuration item set into the configuration change field of the target configuration word; The step of determining, from a plurality of preset configuration item sets, a target configuration item set corresponding to the target configuration word comprises: Obtaining a target set identifier from a configuration change field corresponding to the target configuration word; The configuration item set corresponding to the target set identifier is determined as the target configuration item set corresponding to the target configuration word.

4. The method according to claim 1, characterized in that The determining, according to the target configuration item set and the target association relationship, whether the configuration word to be written meets a preset condition includes: Determine the configuration item to be written included in the configuration word to be written, and determine the target configuration item in the target configuration item set corresponding to the configuration item to be written; Replacing the target configuration item with the configuration item to be written to obtain a new target configuration item set; Determining whether the configuration items included in the new target configuration item set satisfy the target association relationship; In the case where it is determined that the configuration items included in the new target configuration item set satisfy the target association relationship, determining that the configuration word to be written satisfies the preset condition; When it is determined that the configuration items included in the new target configuration item set do not satisfy the target association relationship, it is determined that the configuration word to be written does not satisfy the preset condition.

5. The method according to claim 1, characterized in that: The check field of the configuration word includes a plurality of sub-check fields, and the check field of the configuration word is constructed according to the following preset rules: Obtaining a data identifier of the configuration word and a diagnostic identifier of a controller corresponding to the configuration word; Processing the data identifier and the diagnostic identifier according to a first preset rule to obtain a total check field of the configuration word; Determining the number of sub-check fields included in the check field; According to the quantity, the total check field is divided according to a second preset rule to obtain a plurality of sub-check fields.

6. The method according to claim 5, characterized in that The data identifier is composed of a first number of bit values, and the diagnostic identifier is composed of a second number of bit values; The processing of the data identifier and the diagnostic identifier according to the first preset rule to obtain the total check field of the configuration word includes: Obtaining the first bit value of the third quantity located at the last position in the diagnosis identifier; Divide the data identifier into a first fourth number of second bit values, a third number of third bit values ​​after the second bit value, and a fourth number of fourth bit values ​​at the end, wherein the second bit value, the third bit value, and the fourth bit value constitute the data identifier; Adding the first bit value and the third bit value to obtain a fifth bit value; Adding the second bit value and the fourth bit value to obtain a sixth bit value; Select the last third number of bit values ​​from the fifth bit value to obtain a first value; Select the last fourth number of bit values ​​from the sixth bit value to obtain a second value; The first value, the second value, and a preset third value are combined to obtain the total check field; the third value is a preset fifth number of bit values.

7. The method according to claim 6, characterized in that The determining whether the check field corresponding to the configuration word to be written satisfies the preset rule includes: Obtaining a to-be-written data identifier of the to-be-written configuration word and a to-be-written diagnostic identifier of a to-be-written controller corresponding to the to-be-written configuration word; Processing the to-be-written data identifier and the to-be-written diagnostic identifier according to the first preset rule to obtain a to-be-written total check field of the to-be-written configuration word; According to the quantity, the total check field to be written is divided according to the second preset rule to obtain a plurality of sub-check fields to be written; Determine whether each of the sub-check fields to be written and the sub-check field corresponding to the target configuration word meet a preset check condition; If each of the sub-check fields to be written and the sub-check field corresponding to the target configuration word meet the preset check condition, it is determined that the check field corresponding to the configuration word to be written meets the preset rule.

8. The method according to claim 7, characterized in that The step of processing the to-be-written data identifier and the to-be-written diagnostic identifier according to the first preset rule to obtain the to-be-written total check field of the to-be-written configuration word includes: Obtain the first to-be-written bit value of the third quantity located at the last position in the to-be-written diagnostic identifier; Divide the identifier of the data to be written into the first fourth number of second bit values ​​to be written, the third number of third bit values ​​to be written after the second bit value to be written, and the fourth number of fourth bit values ​​to be written at the end, wherein the second bit value to be written, the third bit value to be written, and the fourth bit value to be written constitute the identifier of the data to be written; Adding the first bit value to be written and the third bit value to be written to obtain a fifth bit value to be written; Adding the second bit value to be written and the fourth bit value to be written to obtain a sixth bit value to be written; Select the last third number of bit values ​​from the fifth bit value to be written to obtain a first value to be written; Select the last fourth number of bit values ​​from the sixth bit value to be written to obtain a second value to be written; Adding a preset value to the third value to obtain a third value to be written; The first value to be written, the second value to be written, and the third value to be written are combined to obtain the total check field to be written.

9. The method according to claim 1, characterized in that: Also includes: In the case where it is determined that the configuration word to be written does not satisfy the preset condition, determining a writing range of the target configuration word according to the target association relationship and the target configuration item set; The configuration word to be written is updated according to the writing range to obtain a new configuration word to be written; The target configuration word is modified according to the new configuration word to be written.

10. The method according to claim 1, characterized in that Before receiving the configuration word to be written, the method further includes: Obtain all current configuration item sets and the association relationship corresponding to each of the configuration item sets; Determine whether all configuration items included in each of the configuration item sets satisfy the corresponding association relationship; If there is a set of error configuration items that do not satisfy the corresponding association relationship, determining the error configuration items that do not satisfy the association relationship and the error configuration words to which the error configuration items belong from the set of error configuration items; Outputting prompt information for prompting that the error configuration item of the error configuration word has an error.

11. The method according to claim 1, characterized in that: The configuration word to be written is sent by a client connected to the vehicle. After the client performs a preset security service authentication with a controller in the vehicle corresponding to the configuration word to be written, the client sends the configuration word to be written to the vehicle.

12. A vehicle configuration word modification device, characterized in that: Applied to a vehicle, the vehicle includes a plurality of configuration words, each of the configuration words includes a plurality of configuration items and a check field constructed according to a preset rule, the device includes: A first determination module is used to determine a target configuration word corresponding to the configuration word to be written when receiving the configuration word to be written; wherein the configuration word to be written is used to modify the target configuration word; A second determination module is used to determine a target configuration item set corresponding to the target configuration word from a plurality of preset configuration item sets, and obtain a target association relationship between configuration items included in the target configuration item set; wherein the target configuration item set includes at least one target configuration item included in the target configuration word and other configuration items included in other configuration words, and the target configuration item set is one or more; the configuration item set is obtained by classifying and combining all configuration items included in the vehicle according to vehicle features represented by the configuration items in advance, and the association relationship of each configuration item set is a functional relationship between all configuration items included in the configuration item set; A third determination module, configured to determine whether the configuration word to be written meets a preset condition according to the target configuration item set and the target association relationship; A modification module, configured to modify the target configuration word according to the configuration word to be written if it is determined that the configuration word to be written satisfies the preset condition, comprises: In the case where it is determined that the configuration word to be written meets the preset condition, determining whether the check field corresponding to the configuration word to be written meets the preset rule; If it is determined that the check field corresponding to the configuration word to be written satisfies the preset rule, the target configuration word is modified according to the configuration word to be written, wherein the check field of the configuration word is constructed by a data identifier based on the configuration word and a diagnostic identifier of the controller corresponding to the configuration word.

13. A vehicle, characterized in that: The vehicle comprises a processor and a memory, and the processor is used to execute a vehicle configuration word modification program stored in the memory to implement the vehicle configuration word modification method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • ECU marking method and device, storage medium and electronic equipment

    CN114035532A

  • Configuration treatment method and device, computer equipment and storage medium

    CN116737221A

  • Vehicle configuration word writing method, device and system

    CN117473508A