Vehicle function configuration method, electronic device, and storage medium

By decoding the vehicle's electronic inspection graphic identifier to obtain the identifier character sequence, and using the configuration strategy to determine the bit value combination of the configuration word, the problem of vehicle function configuration relying on manual maintenance is solved, and efficient and flexible vehicle function configuration is achieved.

CN122111528APending Publication Date: 2026-05-29ZHEJIANG CFMOTO POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ZHEJIANG CFMOTO POWER CO LTD
Filing Date
2024-11-29
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

In existing technologies, vehicle function configuration relies heavily on manual maintenance of configuration files, which makes it difficult to effectively cope with the diverse configuration types and high customization requirements of vehicle production environments, resulting in low configuration efficiency.

Method used

By decoding the vehicle's electronic inspection graphic identifier to obtain the identifier character sequence, and using preset configuration information and configuration strategies to determine the bit value combination of the configuration word, the automatic identification and determination of the configuration word is realized, reducing reliance on manual labor and adapting to the configuration needs of various vehicle models.

Benefits of technology

It enables accurate and rapid configuration of vehicle functions, improves configuration efficiency and flexibility, and adapts to the configuration needs of various vehicle types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122111528A_ABST
    Figure CN122111528A_ABST
Patent Text Reader

Abstract

The application provides a vehicle function configuration method, an electronic device and a storage medium. The method comprises the following steps: obtaining an identification character sequence according to an electrical inspection graphical identification of a vehicle; determining at least one byte of a configuration word used for representing the vehicle, bit positions of the at least one byte and a configuration strategy used for configuring bit values corresponding to the bit positions according to preset configuration information, wherein the configuration strategy comprises a configuration mode and a configuration condition; determining the bit values by using the configuration mode and the configuration condition according to the identification character sequence, obtaining a bit value combination of the at least one byte; determining the configuration word according to the bit value combination; and configuring the vehicle according to a function corresponding to the configuration word. By using the above method, automatic identification of the configuration word can be realized, so that the configuration efficiency of the vehicle function can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle technology, and more specifically, to a vehicle function configuration method, electronic device, and storage medium. Background Technology

[0002] In the production line of vehicles (such as motorcycles and all-terrain vehicles), it is often necessary to configure the functions of the vehicle through configuration words.

[0003] In related technologies, the configuration word for a vehicle is determined based on the vehicle model's configuration file. This method relies heavily on manual maintenance of the configuration file, making it difficult to effectively handle vehicle production environments with diverse configurations and high customization requirements. If the configuration file is not updated in a timely manner, it will affect the efficiency of configuring vehicle functions. Summary of the Invention

[0004] To overcome at least one of the aforementioned problems, this application discloses a vehicle function configuration method, electronic device, and storage medium, which can achieve automated recognition of configuration words and improve the configuration efficiency of vehicle functions.

[0005] On one hand, this application provides a vehicle function configuration method, the method comprising: obtaining an identification character sequence based on the vehicle's electronic inspection graphic identifier; determining at least one byte for representing the vehicle's configuration word, the bit position of the at least one byte, and a configuration strategy for configuring the bit value corresponding to the bit position based on preset configuration information, wherein the configuration strategy includes a configuration method and configuration conditions; determining the bit value based on the identification character sequence and using the configuration method and configuration conditions to obtain a combination of bit values ​​for the at least one byte; determining the configuration word based on the combination of bit values; and configuring the vehicle according to the function corresponding to the configuration word.

[0006] In some embodiments of this application, the identification character sequence is obtained by decoding the electronic inspection graphic identifier, and the identification character sequence includes: the vehicle identification number of the vehicle, the regulatory code that the vehicle needs to comply with, and the component code of the vehicle.

[0007] In some embodiments of this application, if the configuration conditions include a first character position, determining the bit value based on the identifier character sequence, using the configuration method and the configuration conditions, includes: determining the bit value as the identifier character located at the first character position in the identifier character sequence.

[0008] In some embodiments of this application, the bit value is a first bit information or a second bit information. If the configuration conditions include the first character position and the first check character, determining the bit value based on the identifier character sequence, using the configuration method and the configuration conditions, includes: determining the bit value from the first bit information or the second bit information based on the matching result between the identifier character located at the first character position in the identifier character sequence and the first check character.

[0009] In some embodiments of this application, determining the bit value from the first bit information or the second bit information based on the matching result between the identifier character located at the first character position in the identifier character sequence and the first check character includes: if the matching result is that the identifier character located at the first character position matches the first check character, the bit value is determined to be the first bit information; if the matching result is that the identifier character located at the first character position does not match the first check character, the bit value is determined to be the second bit information.

[0010] In some embodiments of this application, if the configuration conditions include a logical expression, and the logical expression includes multiple sub-expressions with logical relationships, each sub-expression including a second check character and a second character position, determining the bit value based on the identifier character sequence, using the configuration method and the configuration conditions includes: determining whether the identifier character located at each second character position in the identifier character sequence matches the corresponding second check character based on the logical relationship; if the identifier character located at each second character position matches the corresponding second check character, the bit value is determined to be the first bit information; if at least one identifier character located at a second character position does not match the corresponding second check character, the bit value is determined to be the second bit information.

[0011] In some embodiments of this application, the configuration word includes reserved bytes, and the method further includes: determining the second bit information as the bit value of the reserved bytes.

[0012] In some embodiments of this application, configuring the vehicle according to the function corresponding to the configuration word includes: activating the function corresponding to the configuration word on the controller of the vehicle.

[0013] On the other hand, this application provides an electronic device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic device implements the vehicle function configuration method described above.

[0014] On the other hand, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor of an electronic device, implements the vehicle function configuration method. In the vehicle function configuration method provided in this application embodiment, since the electronic inspection graphic identifier is a graphical representation of the vehicle configuration, decoding the electronic inspection graphic identifier can obtain an identifier character sequence representing the vehicle configuration. Based on the identifier character sequence, using the configuration method and configuration conditions, at least one byte of bit value combination is determined, thereby determining the configuration word. This enables automated identification and determination of the configuration word, reducing reliance on manual configuration. The method of determining the corresponding configuration word based on the vehicle's electronic inspection graphic identifier is not limited by vehicle type, thus adapting to the configuration needs of multiple vehicle models. Based on the function corresponding to the configuration word, the vehicle can be configured accurately and quickly, thereby improving the configuration efficiency of vehicle functions. Furthermore, since the preset configuration information can be personalized, the configuration flexibility of vehicle functions can be improved. Attached Figure Description

[0015] Figure 1 This is a flowchart of a vehicle function configuration method provided in an embodiment of this application.

[0016] Figure 2 This is a schematic diagram of an identification character sequence provided in an embodiment of this application.

[0017] Figure 3 This is a schematic diagram of preset configuration information provided in an embodiment of this application.

[0018] Figure 4 This is a schematic diagram of preset configuration information provided in another embodiment of this application.

[0019] Figure 5 This is a schematic diagram of preset configuration information provided in another embodiment of this application.

[0020] Figure 6 This is a flowchart of a method for determining bit values ​​provided in an embodiment of this application.

[0021] Figure 7 This is a flowchart of a method for determining bit values ​​provided in another embodiment of this application.

[0022] Figure 8 This is a structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0023] It should be noted that in this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and drawings of this application are used to distinguish similar objects, not to describe a specific order or sequence.

[0024] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner. Unless otherwise specified, the following embodiments and features described herein can be combined with each other.

[0025] This application provides a vehicle function configuration method that enables automated recognition of configuration words, thereby improving the configuration efficiency of vehicle functions.

[0026] The vehicle function configuration method can be applied to one or more electronic devices. These electronic devices can be servers, industrial control computers, computers, mobile phones, laptops, in-vehicle equipment, etc. The server can be a cloud server or a server cluster; this application does not limit the type of electronic device.

[0027] like Figure 1 The diagram shown is a flowchart of a vehicle function configuration method according to an embodiment of this application. Depending on different needs, the order of the steps in this flowchart can be adjusted according to actual requirements, and some steps can be omitted. The vehicle function configuration method is applied to electronic devices, such as… Figure 8 The electronic device 10 shown. Specifically, the vehicle function configuration method provided in this embodiment includes: Step S11: Obtain the identification character sequence based on the vehicle's electronic inspection graphic identifier.

[0028] In some embodiments of this application, the vehicle may be a motorcycle, an all-terrain vehicle, etc., and this application does not limit the type of vehicle. The electronic inspection graphic identifier can be represented in various forms, including but not limited to QR codes and barcodes. For example, when the electronic inspection graphic identifier is represented in the form of a QR code, it can be called an electronic inspection QR code. Electronic devices can scan the location corresponding to the electronic inspection graphic identifier in the vehicle using a scanner or similar device to obtain the vehicle's electronic inspection graphic identifier. The electronic inspection graphic identifier can be used for off-line electronic inspection of the vehicle.

[0029] In some embodiments of this application, the identification character sequence can be obtained by decoding the electronic inspection graphic identifier, and this application does not limit the decoding method. The identification character sequence includes: the vehicle identification number (VIN), the regulatory codes that the vehicle needs to comply with, and the vehicle's component codes.

[0030] The Vehicle Identification Number (VIN) consists of 17 characters and includes information such as the manufacturer, model year, model, body type, engine type, model variant, and assembly plant. Regulatory codes can be codes or identifiers representing the laws and regulations that a vehicle must comply with at various stages of production, sales, and use. Component codes are unique codes used to identify vehicle parts and can consist of a series of letters and numbers.

[0031] This application does not limit the length of the identification character sequence. The examples of the composition of the identification character sequence above are merely illustrative and are not limited to practical applications. For example, if it is necessary to distinguish whether a vehicle is equipped with cruise control, a corresponding number of identifiers (e.g., numbers or letters) can be added after the part number.

[0032] like Figure 2 The diagram shown is a schematic representation of an identifier character sequence provided in an embodiment of this application. Figure 2 In the identification character sequence, the first to fourth characters correspond to the vehicle identification number. The first character can indicate the manufacturer, the second character can indicate the model year, the third character can indicate the model, the fourth character can indicate the body type, the fifth character corresponds to the regulation code, and the sixth to 59th characters correspond to the component code.

[0033] In this embodiment, since the manufacturer, model year, model, and body type can already indicate the vehicle's identity characteristics and distinguish it from other vehicles, it is not necessary to use all 17 digits of the vehicle identification number as identification characters. By using the part of the vehicle identification number that can indicate the vehicle's identity characteristics as the identification characters corresponding to the vehicle identification number in the identification character sequence, the amount of computation in the vehicle function configuration process can be reduced.

[0034] Step S12: Based on the preset configuration information, determine at least one byte (Byte) for representing the configuration word of the vehicle, at least one bit (Bit) of the configuration word, and the configuration strategy for configuring the bit value corresponding to the bit, wherein the configuration strategy includes configuration method and configuration conditions.

[0035] In some embodiments of this application, the electronic device can provide a user interface that displays various controls (e.g., buttons, text boxes, drop-down lists, etc.). Users can select and input preset configuration information through these controls. For example, the user interface can display buttons corresponding to bytes and bits, and the byte and bit position of the byte representing the configuration word can be determined by the user clicking the corresponding button. The user interface can display multiple configuration methods using drop-down lists, and the configuration method for the bit value corresponding to the bit position can be determined by the user's selection operation in the drop-down list. Configuration conditions can be obtained by the user inputting them in the corresponding text box.

[0036] The number of bytes used to represent a configuration word can be one or more, and this application does not limit the number of bytes used to represent a configuration word. For example, a configuration word can be represented by 16 bytes of hexadecimal values, such as 0x0, 0x1, 0x2, and 0x3, where 0x0 can be converted to binary value 00, 0x1 to binary value 01, 0x2 to binary value 10, and 0x3 to binary value 11. Since each byte includes 8 bits corresponding to the bit value, a configuration word represented by 16 bytes can represent 16 * 8 = 128 vehicle configurations.

[0037] For example, as shown in Table 1, there is an example of a configuration word provided in an embodiment of this application.

[0038] Table 1. Configuration Words The configuration word shown in Table 1 is represented using 16 bytes. Table 1 lists the vehicle configuration represented by the bit value corresponding to each bit of byte 0 of the 16 bytes, while the remaining bytes 1 to 15 are reserved bytes. In the configuration word shown in Table 1, bit 7 of byte 0 is used to indicate whether the vehicle includes an anti-lock braking system (ABS), bit 6 of byte 0 is used to indicate the vehicle's factory language, bit 5 of byte 0 is used to indicate the vehicle's application (APP) version, bit 4 of byte 0 is reserved, bit 3 of byte 0 is used to indicate the vehicle's over-the-air (OTA) platform, bit 2 of byte 0 is used to indicate the vehicle's software upgrade control, and bits 0 and 1 of byte 0 are used to indicate the vehicle's tire specifications.

[0039] For example, if the 7th bit of the 0th byte is 0x0, it indicates that the vehicle does not have ABS brakes; if the 7th bit of the 0th byte is 0x1, it indicates that the vehicle includes ABS brakes. If the 6th bit of the 0th byte is 0x0, it indicates that the vehicle's factory language is Chinese; if the 6th bit of the 0th byte is 0x1, it indicates that the vehicle's factory language is English. If the 5th bit of the 0th byte is 0x0, it indicates that the vehicle's APP version is a domestic APP; if the 5th bit of the 0th byte is 0x1, it indicates that the vehicle's APP version is an overseas APP. If the 3rd bit of the 0th byte is 0x0, it indicates that the vehicle's OTA platform is OTA1.0; if the 3rd bit of the 0th byte is 0x1, it indicates that the vehicle's OTA platform is OTA2.0. If the second bit of the 0th byte is 0x0, it indicates that the vehicle's software version can only be upgraded, not downgraded. If the second bit of the 0th byte is 0x1, it indicates that there are no restrictions on upgrading the vehicle's software version. If both the 0th and 1st bits of the 0th byte are 0x0, it indicates that the vehicle's tire size is 26 inches. If both the 0th and 1st bits of the 0th byte are 0x1, it indicates that the vehicle's tire size is 27 inches. If both the 1st and 2nd bits of the 0th byte are 0x2, it indicates that the vehicle's tire size is 28 inches. If both the 1st and 2nd bits of the 0th byte are 0x3, it indicates that the vehicle's tire size is 30 inches. The above examples of configuration and function represented by configuration words are for illustrative purposes only, and are not limited to these in actual applications.

[0040] In some embodiments of this application, the bit value is either a first bit information or a second bit information, wherein the first bit information can be 1 and the second bit information can be 0.

[0041] In some embodiments of this application, the configuration method is used as a basis for indicating bit values. Exemplarily, the configuration method may include, but is not limited to: graphic identification codes, conditional graphic identification codes, and multi-conditional graphic identification codes. For example, if the graphic identification code is in the form of a QR code, the configuration method could be an electronic inspection QR code; a conditional graphic identification code could be a conditional electronic inspection QR code; or a multi-conditional graphic identification code could be a multi-conditional electronic inspection QR code.

[0042] In some embodiments of this application, the configuration conditions correspond to the configuration methods. The configuration conditions corresponding to the configuration methods exemplified above will be described below.

[0043] For example, if the configuration method is a graphic identification code, the configuration conditions may include a first character position, which is used to indicate one or more identification characters in the identification character sequence. For instance, if the configuration method is an electronic inspection QR code, the first character position may be the electronic inspection QR code position.

[0044] For example, such as Figure 3 The diagram shown is a schematic representation of preset configuration information provided in an embodiment of this application. According to... Figure 3 The preset configuration information shown indicates that the byte used to represent the configuration word is the 0th byte, the bit is the 7th bit, the configuration method is an electronic inspection QR code, and the position of the electronic inspection QR code is 36. Figure 3 The preset configuration information indicated that the bit value corresponding to the 7th bit of the 0th byte of the configuration word is determined by the 36th bit of the identifier character in the identifier character sequence corresponding to the electronic inspection QR code. Continuing with the above embodiment, the bit value corresponding to the 7th bit of the 0th byte of the configuration word is used to indicate whether the vehicle includes an ABS brake. Therefore, whether the vehicle includes an ABS brake can be determined by the 36th bit of the identifier character sequence corresponding to the electronic inspection QR code.

[0045] For example, in cases where multiple bit values ​​are needed to represent multiple possibilities of a vehicle configuration (e.g., tire size), a conditional graphic identifier configuration method can be used to configure the configuration word. If the configuration method is a conditional graphic identifier, the configuration conditions may include a first character position and a first check character. The first check character is used to verify the identifier character indicated by the first character position. There may be one or more first check characters, and this application does not limit the number of first check characters.

[0046] For example, if the QR code position 21 indicates the tire specifications of the vehicle, as shown in Table 2, this is an example of the preset configuration information provided in an embodiment of this application.

[0047] Table 2. Preset Configuration Information In Table 2, the first check character for tire size 26 is H, for tire size 27 is J, for tire size 28 is K, for tire size 29 is L, and for tire size 30 is M.

[0048] For example, if the configuration is a conditional electronic inspection QR code, the first verification character can be used as a judgment condition to determine whether the bit value is 1. For example, such as Figure 4 The diagram shown is a schematic representation of preset configuration information provided in another embodiment of this application. According to... Figure 4The preset configuration information shown indicates that the byte used to represent the configuration word is the 0th byte, the bit position is the 0th and 1st bit, the configuration method is a conditional electronic inspection QR code, the electronic inspection QR code position is 21, the judgment condition corresponding to the 0th bit position is the first verification character J,M, and the judgment condition corresponding to the 1st bit position is the first verification character K,M. Figure 4 The preset configuration information shown indicates whether the bit values ​​corresponding to the 0th and 1st bits of the 0th byte of the configuration word are 1. This is determined by matching the 21st bit of the identifier character in the identifier character sequence corresponding to the electronic inspection QR code with the corresponding first check character. Continuing with the above embodiment, the bit values ​​corresponding to the 0th and 1st bits of the 0th byte of the configuration word are used to represent the vehicle's tire specifications. Therefore, the vehicle's tire specifications can be determined by matching the identifier character at the first character position in the identifier character sequence corresponding to the electronic inspection QR code with the corresponding first check character.

[0049] In another embodiment of this application, if the configuration method is a multi-condition graphic identifier code, the configuration conditions may include logical expressions. Each logical expression includes multiple sub-expressions with logical relationships. Each sub-expression includes a second check character and a second character position. The second character position is used to indicate one identifier character in the identifier character sequence, and the second check character is used to check the identifier character indicated by the second character position. Specifically, the second character position indicates one or more identifier characters in the identifier character sequence, and the second check character can be used to check the identifier character indicated by the second character position.

[0050] For example, the logical expression can be set according to the following rule: (P1,n1,n2,…&P2,n1,n2,…&Pn,n1,n2,…)|(P1,n1,n2,…&P2,n1,n2,n3,…&Pn,n1,n2,…). Here, P represents the position of the second character, n represents the second check character, and if there are multiple second check characters, they can be separated by commas. & represents AND logic, and | represents OR logic.

[0051] For example, if the configuration is a multi-condition electronic inspection QR code, a logical expression can be used as a judgment condition to determine whether the bit value is 1. For example... Figure 5 The diagram shown is a schematic representation of preset configuration information provided in another embodiment of this application. According to... Figure 5The preset configuration information shown indicates that the byte used to represent the configuration word is the 4th byte, the bit is the 0th bit, and the configuration method is a multi-condition electronic inspection QR code. The judgment condition is the logical expression (28,1&66,1)|(28,0&66,0), where the logical expression (28,1&66,1)|(28,0&66,0) includes 4 sub-expressions. The first sub-expression includes the second character position 28 and the second check character 1, the second sub-expression includes the second character position 66 and the second check character 1, the third sub-expression includes the second character position 28 and the second check character 0, and the fourth sub-expression includes the second character position 66 and the second check character 0. Figure 5 The preset configuration information shown indicates whether the bit value corresponding to the 0th bit of the 4th byte of the configuration word is 1. This is determined by the matching result of the identifier character at the second character position in the identifier character sequence corresponding to the electronic inspection QR code in the logical expression and the corresponding second verification character.

[0052] Step S13: Based on the identifier character sequence, determine the bit value using the configuration method and configuration conditions to obtain the bit value combination of the at least one byte.

[0053] In some embodiments of this application, if the configuration conditions include a first character position, the electronic device determines the bit value based on the identifier character sequence, using the configuration method and configuration conditions, including: determining the bit value as the identifier character located at the first character position in the identifier character sequence.

[0054] For example, following the above embodiments, if Figure 3 The preset configuration information indicates that the bit value corresponding to the 7th bit of the 0th byte of the configuration word is determined by the 36th bit of the identifier character in the identifier character sequence corresponding to the electronic inspection QR code. The electronic device can determine the 36th bit of the identifier character in the identifier character sequence corresponding to the electronic inspection QR code as the bit value corresponding to the 7th bit of the 0th byte.

[0055] In this embodiment, by determining the bit value as the identifier character located at the first character position in the identifier character sequence, the bit value can be quickly determined.

[0056] In some embodiments of this application, when the configuration conditions include a first character position and a first check character, and when the configuration conditions include a logical expression, the logical expression includes multiple sub-expressions with logical relationships, and each sub-expression includes a second check character and a second character position, the method for the electronic device to determine the bit value will be described in detail below.

[0057] In other embodiments of this application, the configuration word includes reserved bytes, and the electronic device can determine the second bit information as the bit value of the reserved bytes.

[0058] For example, following the above embodiment, if the first to the 15th bytes are all reserved bytes, the bit value corresponding to the bit position of the first to the 15th bytes can be determined to be 0.

[0059] Step S14: Determine the configuration word based on the bit value combination.

[0060] In some embodiments of this application, the electronic device may determine a combination of bit values ​​as a configuration word.

[0061] Step S15: Configure the vehicle according to the function corresponding to the configuration word. In some embodiments of this application, the electronic device can configure the vehicle according to the function corresponding to the configuration word, including: activating the function / configuration corresponding to the configuration word on the vehicle's controller.

[0062] The vehicle's controller can be an Electronic Control Unit (ECU). Activating the function / configuration corresponding to the configuration word on the vehicle's controller can be achieved by writing the configuration word into the controller.

[0063] In the vehicle function configuration method provided in this application embodiment, since the electronic inspection graphic identifier is a graphical representation of the vehicle configuration, decoding the electronic inspection graphic identifier can obtain an identifier character sequence representing the vehicle configuration. Based on the identifier character sequence, using the configuration method and configuration conditions, at least one byte of bit value combination is determined, thereby determining the configuration word. This enables automated recognition of the configuration word, reducing reliance on manual configuration. The method of determining the corresponding configuration word based on the vehicle's electronic inspection graphic identifier is not limited by vehicle type, thus adapting to the configuration needs of multiple vehicle models. Based on the function corresponding to the configuration word, the vehicle can be configured accurately and quickly, thereby improving the configuration efficiency of vehicle functions. Furthermore, since the preset configuration information can be personalized, the configuration flexibility of vehicle functions can be improved.

[0064] In some embodiments of this application, if the configuration conditions include a first character position and a first check character, the electronic device can determine the bit value from the first bit information or the second bit information based on the matching result between the identifier character located at the first character position in the identifier character sequence and the first check character. For example... Figure 6 The diagram shows a flowchart of a bit value determination method provided in an embodiment of this application, including the following steps: Step S131: Determine whether the identifier character located at the first character position in the identifier character sequence matches the first check character.

[0065] In some embodiments of this application, a match between the identifier character at the first character position and the first verification character may mean that the identifier character at the first character position and the first verification character are the same, while a mismatch between the identifier character at the first character position and the first verification character may mean that the identifier character at the first character position and the first verification character are different.

[0066] In this embodiment, if the identifier character at the first character position matches the first verification character, step S132 is executed; if the identifier character at the first character position does not match the first verification character, step S133 is executed.

[0067] Step S132: Determine the bit value as the first bit information.

[0068] For example, following the above embodiments, if Figure 4 The preset configuration information shown indicates whether the bit values ​​corresponding to the 0th and 1st bits of the 0th byte of the configuration word are 1. This is determined by matching the 21st bit of the identifier character in the identifier character sequence corresponding to the electronic verification QR code with the corresponding first check character. Therefore, when the 21st bit of the identifier character sequence is J or M, the bit value corresponding to the 0th bit of the 0th byte of the configuration word is 1. When the 21st bit of the identifier character sequence is K or M, the bit value corresponding to the 1st bit of the 0th byte of the configuration word is 1.

[0069] According to Table 2, since the first check character J corresponds to a 27-inch tire and the first check character M corresponds to a 30-inch tire, the bit value corresponding to the 0th bit of the 0th byte of the configuration word is 1 when the identification character sequence indicates that the vehicle is equipped with 27-inch or 30-inch tires. Since the first check character K corresponds to a 28-inch tire and the first check character M corresponds to a 30-inch tire, the bit value corresponding to the 1st bit of the 0th byte of the configuration word is 1 when the identification character sequence indicates that the vehicle is equipped with 28-inch or 30-inch tires.

[0070] Step S133: Determine the bit value as the second bit information.

[0071] For example, continuing with the above embodiment, when the 21st identifier character in the identifier character sequence is not J or M, the bit value corresponding to the 0th bit of the 0th byte of the configuration word is 0. When the 21st identifier character in the identifier character sequence is not K or M, the bit value corresponding to the 1st bit of the 0th byte of the configuration word is 0. According to Table 2, since the first check character J corresponds to a 27-inch tire and the first check character M corresponds to a 30-inch tire, the bit value corresponding to the 0th bit of the 0th byte of the configuration word is 0 when the identifier character sequence indicates that the vehicle is not equipped with 27-inch or 30-inch tires. Since the first check character K corresponds to a 28-inch tire and the first check character M corresponds to a 30-inch tire, the bit value corresponding to the 1st bit of the 0th byte of the configuration word is 0 when the identifier character sequence indicates that the vehicle is not equipped with 28-inch or 30-inch tires.

[0072] In this embodiment, based on the matching result between the identifier character located at the first character position in the identifier character sequence and the first verification character, the bit value is determined from the first bit information or the second bit information. Through the verification mechanism, the configuration flexibility and security of the configuration word can be improved.

[0073] In some embodiments of this application, if the configuration conditions include a logical expression, and the logical expression includes multiple sub-expressions with logical relationships, each sub-expression including a second check character and a second character position, the electronic device can determine the bit value from the first bit information or the second bit information based on the matching result between the identifier character located at each second character position in the identifier character sequence and the corresponding second check character in the logical expression. For example... Figure 7 The diagram shown is a flowchart of a method for determining bit values ​​according to another embodiment of this application, including the following steps: Step S134: Based on the logical relationship, determine whether the identifier character located at each second character position in the identifier character sequence matches the corresponding second check character.

[0074] In some embodiments of this application, a match between the identifier character at each second character position and the corresponding second check character can be that the identifier character at each second character position and the corresponding second check character are the same, while a mismatch between the identifier character at each second character position and the corresponding second check character can be that the identifier character at each second character position and the corresponding second check character are different.

[0075] In this embodiment, if the identifier character located at the first character position matches the first verification character, step S135 is executed; if at least one identifier character located at the first character position does not match the first verification character, step S136 is executed.

[0076] Step S135: Determine the bit value as the first bit information.

[0077] For example, following the above embodiments, if Figure 5 The preset configuration information shown indicates whether the bit value corresponding to the 0th bit of the 4th byte of the configuration word is 1. This is determined by the matching result of the identifier character at the second character position in the identifier character sequence corresponding to the electronic inspection QR code in the logical expression and the corresponding second check character. When the 28th identifier character in the identifier character sequence is 1 and the 66th character is 1, or when the 28th identifier character in the identifier character sequence is 0 and the 66th character is 0, the bit value corresponding to the 0th bit of the 4th byte of the configuration word is 1.

[0078] For example, if the 28th bit of the identifier character sequence is 0, it indicates that the vehicle does not have a Body Control Module (BCM); if the 28th bit of the identifier character sequence is 1, it indicates that the vehicle includes a BCM; and if the 66th bit of the identifier character sequence is 0, it indicates that the vehicle's order region is domestic; if the 66th bit of the identifier character sequence is 1, it indicates that the vehicle's order region is overseas. Then the logical expression (28,1&66,1)|(28,0&66,0) can represent that when the identifier character sequence indicates that the vehicle's order region is overseas and the vehicle is equipped with a BCM, or when the order region is domestic and the vehicle is not equipped with a BCM, the bit value corresponding to the 0th bit of the 4th byte of the configuration word is 1.

[0079] Step S136: Determine the bit value as the second bit information.

[0080] For example, following the above embodiment, if the 28th and 66th identifier characters in the identifier character sequence do not match the second check character corresponding to the logical expression (28,1&66,1)|(28,0&66,0), the bit value corresponding to the 0th bit of the 4th byte of the configuration word is 0. This can be interpreted as the bit value corresponding to the 0th bit of the 4th byte of the configuration word being 0 in cases other than overseas BCM and domestic BCM.

[0081] In this embodiment, based on logical relationships, it is determined whether the identifier character located at each second character position in the identifier character sequence matches the corresponding second check character. This enables fine-grained configuration of configuration words, improving the flexibility and security of configuration.

[0082] In some embodiments of this application, the electronic device may determine the bit value of the configuration word by one or more methods listed in the above embodiments.

[0083] like Figure 8The diagram shown is a structural diagram of an electronic device provided in an embodiment of this application. Figure 8 As shown, the electronic device 10 may include a communication module 101, a memory 102, a processor 103, an input / output (I / O) interface 104, and a bus 105. The processor 103 is coupled to the communication module 101, the memory 102, and the input / output interface 104 via the bus 105.

[0084] Communication module 101 may include a wired communication module and / or a wireless communication module. The wired communication module may provide one or more wired communication solutions such as Universal Serial Bus (USB) and Controller Area Network (CAN). The wireless communication module may provide one or more wireless communication solutions such as Wireless Fidelity, Bluetooth, mobile communication networks, frequency modulation (FM), near field communication (NFC), and infrared (IR).

[0085] Memory 102 may include one or more random access memory (RAM) and one or more non-volatile memory (NVM). The RAM can be directly read and written by the processor 103, and can be used to store executable programs (e.g., machine instructions) of other running programs, as well as user and application data. The RAM may include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), etc.

[0086] Non-volatile memory can also store executable programs and user and application data, and can be pre-loaded into random access memory for direct reading and writing by the processor 103. Non-volatile memory can include disk storage devices and flash memory.

[0087] The memory 102 is used to store one or more computer programs. The one or more computer programs are configured to be executed by the processor 103. The one or more computer programs include multiple instructions that, when executed by the processor 103, can implement a vehicle function configuration method that is executed on the electronic device 10.

[0088] In other embodiments, such as Figure 8 The electronic device 10 shown also includes an external memory interface for connecting to an external memory to expand the storage capacity of the electronic device 10.

[0089] Processor 103 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.

[0090] The processor 103 provides computing and control capabilities. For example, the processor 103 is used to execute computer programs stored in the memory 102 to implement the vehicle function configuration method described above.

[0091] The input / output interface 104 is used to provide a channel for user input or output. For example, the input / output interface 104 can be used to connect various input / output devices, such as a mouse, keyboard, touch device, display screen, etc., so that users can enter information or visualize information.

[0092] Bus 105 is used at least to provide a channel for communication between communication modules 101, memory 102, processor 103, and input / output interface 104 in electronic device 10.

[0093] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 10. In other embodiments of this application, the electronic device 10 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0094] This application also provides a computer-readable storage medium storing a computer program, which includes program instructions. When the program instructions are executed, the method implemented can refer to the methods in the above embodiments of this application.

[0095] The computer-readable storage medium can be the internal memory of the electronic device described in the above embodiments, such as the hard disk or memory of the electronic device. Alternatively, the computer-readable storage medium can be an external storage device of the electronic device, such as a plug-in hard disk, smart media card (SMC), secure digital card (SD), flash card, etc., installed on the electronic device.

[0096] In some embodiments, a computer-readable storage medium may include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function, etc.; and the stored data area may store data created based on the use of the electronic device, etc.

[0097] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device. In other embodiments of this application, the electronic device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0098] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and other division methods may be used in actual implementation.

[0099] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0100] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional modules.

[0101] Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of this application is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be embraced within this application. No appended diagram markings in the claims should be construed as limiting the scope of the claims.

[0102] Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices described in this application may also be implemented by a single unit or device through software or hardware. The terms "first," "second," etc., are used to indicate names and do not indicate any specific order.

[0103] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application and are not intended to limit it. Although this application has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of this application without departing from the spirit and scope of the technical solutions of this application.

Claims

1. A method for configuring vehicle functions, characterized in that, The method includes: Based on the vehicle's electronic inspection graphic identifier, obtain the identifier character sequence; Based on preset configuration information, at least one byte of a configuration word representing the vehicle, bits of the at least one byte, and a configuration strategy for configuring the bit value corresponding to the bit are determined, wherein the configuration strategy includes configuration method and configuration conditions; Based on the identified character sequence, the bit value is determined using the configuration method and the configuration conditions to obtain the bit value combination of at least one byte; The configuration word is determined based on the combination of the bit values; The vehicle is configured according to the function corresponding to the configuration word.

2. The vehicle function configuration method according to claim 1, characterized in that, The identification character sequence is obtained by decoding the electronic inspection graphic identifier, and the identification character sequence includes: the vehicle identification number of the vehicle, the code of the regulations that the vehicle needs to comply with, and the component code of the vehicle.

3. The vehicle function configuration method according to claim 1, characterized in that, If the configuration conditions include a first character position, determining the bit value based on the identifier character sequence, using the configuration method and the configuration conditions, includes: The bit value is determined to be the identifier character located at the first character position in the identifier character sequence.

4. The vehicle function configuration method according to claim 3, characterized in that, The bit value is either the first bit information or the second bit information. If the configuration conditions include the first character position and the first check character, determining the bit value based on the identifier character sequence, using the configuration method and the configuration conditions, includes: The bit value is determined from the first bit information or the second bit information based on the matching result between the identifier character located at the first character position in the identifier character sequence and the first check character.

5. The vehicle function configuration method according to claim 4, characterized in that, Determining the bit value from the first bit information or the second bit information based on the matching result between the identifier character located at the first character position in the identifier character sequence and the first check character includes: If the matching result is that the identifier character located at the first character position matches the first check character, then the bit value is determined to be the first bit information; If the matching result is that the identifier character located at the first character position does not match the first check character, the bit value is determined to be the second bit information.

6. The vehicle function configuration method according to claim 4, characterized in that, If the configuration conditions include a logical expression, and the logical expression includes multiple sub-expressions with logical relationships, each sub-expression including a second check character and a second character position, then determining the bit value based on the identifier character sequence, using the configuration method and the configuration conditions, includes: Based on the logical relationship, determine whether the identifier character located at each second character position in the identifier character sequence matches the corresponding second check character; If the identifier character at each of the second character positions matches the corresponding second check character, the bit value is determined to be the first bit information; If at least one identifier character located at the second character position does not match the corresponding second check character, the bit value is determined to be the second bit information.

7. The vehicle function configuration method according to claim 4, characterized in that, The configuration word includes reserved bytes, and the method further includes: The second bit information is determined as the bit value of the reserved byte.

8. The vehicle function configuration method according to claim 1, characterized in that, The process of configuring the vehicle according to the function corresponding to the configuration word includes: Activate the function corresponding to the configuration word on the vehicle's controller.

9. An electronic device, characterized in that, The electronic device includes: Memory; A processor and a computer program stored on the memory and executable on the processor, wherein when the processor executes the computer program, the electronic device implements the vehicle function configuration method as described in any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor of an electronic device, implements the vehicle function configuration method as described in any one of claims 1 to 8.