Data processing method and device, vehicle and storage medium

By encrypting and coding the vehicle mileage data, and using the identifier data of the microcontroller unit as the basis for encryption, the problem of malicious modification of mileage data is solved, ensuring the authenticity and reliability of the data.

CN119848903APending Publication Date: 2025-04-18GUANGZHOU CHUANG RUI AUTOMOBILE ELECTRIC APPLIANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510037145.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-09
Publication Date
2025-04-18

Smart Images

  • Figure CN119848903A_ABST
    Figure CN119848903A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, and discloses a data processing method and device, a vehicle and a storage medium, and the method comprises the steps: obtaining identifier data of a micro-control unit of the vehicle; according to the identifier data, carrying out encryption processing on the driving mileage data of the vehicle to obtain driving mileage encrypted data; and encoding the mileage encrypted data, and storing an encoding result to a storage unit of the vehicle. The mileage data is encrypted based on the identifier data of the micro-control unit, so that the mileage data can be effectively prevented from being tampered, and the authenticity and reliability of the mileage data are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data processing method, device, vehicle and storage medium. Background Art

[0002] With the rapid development of intelligent and connected automobile industry, mileage data, as one of the key information of automobiles, covers important contents such as vehicle usage frequency and degree of wear and tear. For example, in car sharing services, operators need accurate mileage data to bill and evaluate vehicle conditions; in vehicle leasing business, lessors need to determine vehicle wear and tear and maintenance cycle based on mileage.

[0003] In practice, in order to raise the price of cars, unscrupulous dealers maliciously modify the vehicle's mileage data, thereby misleading consumers into believing that the vehicle has good performance. The vehicle with reduced mileage data cannot accurately reflect the vehicle's true performance, which will increase the consumption cost for consumers who purchase the vehicle and increase safety hazards during driving in the later use process. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a data processing method, device, vehicle and storage medium, which can effectively solve the problem that the mileage data of a vehicle whose mileage data has been maliciously modified cannot accurately reflect the actual performance of the vehicle.

[0005] In a first aspect, an embodiment of the present application provides a data processing method, including:

[0006] obtaining identifier data of a microcontroller unit of the vehicle;

[0007] Encrypting the mileage data of the vehicle according to the identifier data to obtain encrypted mileage data;

[0008] The mileage encrypted data is encoded, and the encoding result is stored in a storage unit of the vehicle.

[0009] In some embodiments, the step of encrypting the mileage data of the vehicle according to the identifier data to obtain encrypted mileage data includes:

[0010] extracting at least one data group from the identifier data based on the mileage data;

[0011] Based on preset rules, all the data groups and the mileage data are processed to obtain the mileage encrypted data.

[0012] In some embodiments, extracting at least one data group from the identifier data according to the mileage data includes:

[0013] Processing the mileage data to obtain length data of the mileage data;

[0014] At least one of the data groups is extracted from the identifier data according to the length data in a preset extraction manner.

[0015] In some embodiments, the processing of all the data groups and the mileage data to obtain the mileage encrypted data based on a preset rule includes:

[0016] Based on a preset rule, determining the data group corresponding to each data in the mileage data;

[0017] Performing a logical operation on each data and the corresponding data group to obtain the encrypted data corresponding to each data;

[0018] All the encrypted data are processed to obtain the mileage encrypted data.

[0019] In some embodiments, encoding the mileage encrypted data includes:

[0020] Determine the encrypted data header identifier according to the information exchange code;

[0021] Verifying the encrypted data header identifier and the mileage encrypted data to obtain a verification identifier;

[0022] An encoding result is obtained according to the encrypted data header identifier, the mileage encrypted data and the verification identifier.

[0023] In some embodiments, the data processing method further includes:

[0024] Obtaining the encoding result of the storage unit;

[0025] Decrypting the encoding result based on the identifier data to obtain the mileage data;

[0026] The mileage data is displayed on a meter of the vehicle.

[0027] In some embodiments, decrypting the encoding result based on the identifier data to obtain the mileage data includes:

[0028] Decoding the encoding result to obtain the mileage encrypted data;

[0029] The preset rule is adopted to process the mileage encrypted data according to the identifier data to obtain the mileage data.

[0030] In a second aspect, an embodiment of the present application provides a data processing device, including a collection module, an encryption module and a processing module;

[0031] The acquisition module is used to obtain identifier data of the micro control unit of the vehicle;

[0032] The encryption module is used to encrypt the mileage data of the vehicle according to the identifier data to obtain encrypted mileage data;

[0033] The processing module is used to encode the mileage encrypted data and store the encoding result in a storage unit of the vehicle.

[0034] In a third aspect, an embodiment of the present application provides a vehicle, comprising a processor and a memory, wherein the memory stores a computer program, and the processor is used to execute the computer program to implement the above-mentioned data processing method.

[0035] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which implements the above-mentioned data processing method when executed on a processor.

[0036] The embodiments of the present application have the following beneficial effects:

[0037] This application uses the unique identifier data of the microcontroller unit MCU as the basic element of data encryption to encrypt the mileage data, effectively preventing unscrupulous vendors from tampering with the mileage data of the storage unit through simple hardware copying, and deceiving consumers through the modified mileage data. The data processing method of this application can effectively prevent the mileage data from being tampered with, and ensure the authenticity and reliability of the mileage data. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0039] Figure 1 A flow chart showing a data processing method according to an embodiment of the present application is shown;

[0040] Figure 2 A structural diagram of identifier data in an embodiment of the present application is shown;

[0041] Figure 3 A flow chart showing the method of obtaining encrypted mileage data in an embodiment of the present application is shown;

[0042] Figure 4 A schematic diagram showing encryption of mileage data in an embodiment of the present application is shown;

[0043] Figure 5 A schematic diagram showing the encoding result of the mileage encryption data in an embodiment of the present application is shown;

[0044] Figure 6 A schematic diagram of a process for decrypting and obtaining mileage data in an embodiment of the present application is shown;

[0045] Figure 7 A schematic diagram showing decryption of mileage data in the implementation of the present application is shown;

[0046] Figure 8 A structural schematic diagram of a data processing device according to an embodiment of the present application is shown.

[0047] Description of main component symbols:

[0048] 10-acquisition module; 20-encryption module; 30-processing module. DETAILED DESCRIPTION

[0049] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0050] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0051] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and cannot be understood as indicating or implying relative importance.

[0052] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.

[0053] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0054] In view of the fact that the current mileage data is vulnerable to attack and tampering during storage and transmission, this application proposes to use encryption technology to ensure the security and integrity of mileage data to adapt to the reliable development of digital services in the automotive industry.

[0055] The data processing method is described below in conjunction with some specific embodiments.

[0056] Figure 1 A flow chart of a data processing method according to an embodiment of the present application is shown. Exemplarily, the data processing method includes the following steps:

[0057] S100, obtaining identifier data of a micro control unit of a vehicle.

[0058] In the microcontroller (MCU) environment, the MCU's identifier (Universally Unique Identifier, UUID) can provide additional security for mileage data due to its uniqueness. Therefore, the unique identifier data is used as the basic element for data encryption. The identifier data is stored in the FLASH address preset by the microcontroller, and the unique identifier data can be obtained by reading the preset FLASH address.

[0059] In this embodiment, the identifier data includes multiple data groups, each data group corresponds to a byte content. For example, the identifier data is composed of four groups of four-byte data, where each byte content is a data group, that is, 4x4 bytes, a total of 16 bytes content, each byte content is 0-255. Figure 2 As shown, the 16 data groups of identifier data are ID1, ID2, ID3, ..., ID 15 、ID 16 .

[0060] S200, encrypting the mileage data of the vehicle according to the identifier data to obtain encrypted mileage data.

[0061] The mileage data is calculated by integrating the vehicle speed, and the display accuracy of the mileage data is 1m / bit. For example, the value of the mileage data is 62375, or 54894, where the value 62375 represents 62.375km, and the value 54894 represents 54.894km.

[0062] In this embodiment, in order to more clearly and accurately describe the encryption process, the mileage data is 62375 as an example for detailed description. The process of encrypting the mileage data of the vehicle according to the identifier data to obtain the mileage encrypted data is as follows: Figure 3 As shown, including:

[0063] S210: extract at least one data group from the identifier data according to the mileage data.

[0064] In this embodiment, the length data of the mileage data is first determined, for example, the length data of the mileage data 62375 is 5. Then, according to the length data, at least one data group is extracted from the identifier data in a preset extraction method, and the number of the data groups corresponds to the length data.

[0065] In one embodiment, the multiple data groups extracted are continuous, and can be extracted from the beginning, from a certain group in the middle, or from the end. For example, the multiple data groups extracted from the beginning are ID1, ID2, ID3, ID4, and ID5; the multiple data groups extracted from a certain position in the middle are ID8, ID9, and ID10. 10 、ID 11 、ID 12 ; Multiple data groups extracted from the head end are ID 11 、ID 12 、ID 13 、ID 14 、ID 15 .

[0066] In another embodiment, the multiple data groups extracted are arranged at intervals, and each extracted data group is separated by at least one unextracted data group. Of course, the extraction can also be started from the head end or from the tail end. For example, the multiple data groups extracted from the head end are ID1, ID3, ID5, ID7, ID9, or ID2, ID5, ID8, ID9. 11 、ID 14 ; The multiple data groups extracted from the head end are ID7, ID9, ID 11 、ID 13 、ID 15 , or ID6, ID8, ID 10 、ID 12 、ID14 .

[0067] S220, based on preset rules, all data groups and mileage data are processed to obtain mileage encrypted data.

[0068] In this embodiment, based on preset rules, the data group corresponding to each data in the mileage data is first determined; then each data and its corresponding data group are subjected to an XOR logic operation to obtain encrypted data; and the mileage encrypted data is obtained based on all the encrypted data.

[0069] The preset rule is that each data group arranged in the first arrangement order has a corresponding mapping relationship with each data in the mileage data arranged in the second arrangement order. For example, the preset rule is that each data in the mileage data corresponds to each data group in reverse order. Figure 4 As shown, the extracted data groups are ID1, ID2, ID3, ID4, and ID5. Data 6 in the mileage data corresponds to data group ID5, data 2 in the mileage data corresponds to data group ID4, data 3 in the mileage data corresponds to data group ID3, data 7 in the mileage data corresponds to data group ID2, and data 5 in the mileage data corresponds to data group ID1. According to the preset reverse correspondence rule, the data group corresponding to each data in the mileage data can be determined.

[0070] Perform an XOR logic operation on each data and its corresponding data group to obtain the encrypted data corresponding to each data. For example, data 6 in the mileage data is subjected to an XOR logic operation with data group ID5 to obtain encrypted data X6, data 2 in the mileage data is subjected to an XOR logic operation with data group ID4 to obtain encrypted data X2, data 3 in the mileage data is subjected to an XOR logic operation with data group ID3 to obtain encrypted data X3, data 7 in the mileage data is subjected to an XOR logic operation with data group ID2 to obtain encrypted data X7, and data 5 in the mileage data is subjected to an XOR logic operation with data group ID1 to obtain encrypted data X5. Therefore, all the encrypted data obtained are X6, X2, X3, X7, and X5 in sequence.

[0071] Based on all the encrypted data X6, X2, X3, X7, and X5, the encrypted mileage data is X6X2X3X7X5.

[0072] In this embodiment, the logical operation using XOR is simpler and more efficient, which can not only keep the original data length consistent, but also does not increase the storage space. Of course, symmetric encryption algorithms can be used, such as DES, 3DES, AES, Blowfish, Towfish, etc., but the above encryption algorithms will increase the data storage length.

[0073] S300, encoding the mileage encryption data, and storing the encoding result in a storage unit of the vehicle.

[0074] In this embodiment, the "VG" of the American Standard Code for Information Interchange (ASCII) is used as the encrypted data header identifier, that is, the header identifier of the storage unit; the mileage encrypted data is used as the storage body, and the encrypted data header identifier and the mileage encrypted data are subjected to CRC16 verification to obtain a CRC verification identifier, and the CRC verification identifier is used as the tail of the storage unit; finally, the encrypted data header identifier VG is located at the head, and the mileage encrypted data is located at D0, D1, D2, ..., D 30 , D 31 , CRC checksum marks CRC_L and CRC_H are located at the end, and the result is as follows Figure 5 The encoding result is shown. Of course, other verification algorithms can also be used, such as CRC8, CRC32, SHA256, MD5, etc.

[0075] S400, obtaining the encoding result of the storage unit.

[0076] In this embodiment, the encoding result is obtained by reading the storage unit, such as VG, X6X2X3X7X5, and CRC.

[0077] S500, decrypting the encoding result according to the identifier data to obtain the mileage data.

[0078] In this embodiment, Figure 6 As shown, the process of decrypting the encoding result according to the identifier data to obtain the mileage data includes:

[0079] S510, decoding the encoding result to obtain mileage encrypted data.

[0080] For example, the reliability of the encoding result is first verified by a verification code, and after the verification is passed, the mileage encrypted data is obtained through the interface.

[0081] S520, using a preset rule, and processing the mileage encrypted data according to the identifier data to obtain mileage data.

[0082] The preset rules in this step are the same as the preset rules of the encryption process. Only by using the same preset rules can the decrypted mileage data be guaranteed to be the same as the original mileage data, so as to ensure the reliability of the decryption result.

[0083] In this embodiment, based on preset rules, the data group corresponding to each encrypted data in the mileage encrypted data is determined; each encrypted data and its corresponding data group are logically operated to obtain the data corresponding to each encrypted data; all data are processed to obtain the mileage data.

[0084] For example, Figure 7 As shown, based on the same reverse correspondence rule, the first encrypted data X6 in the mileage encrypted data is subjected to an XOR logic operation with the data group ID5 to obtain data 6, the second encrypted data X2 in the mileage encrypted data is subjected to an XOR logic operation with the data group ID4 to obtain data 2, the third encrypted data X3 in the mileage encrypted data is subjected to an XOR logic operation with the data group ID3 to obtain data 3, the fourth encrypted data X7 in the mileage encrypted data is subjected to an XOR logic operation with the data group ID2 to obtain data 7, and the fifth data X5 in the mileage encrypted data is subjected to an XOR logic operation with the data group ID1 to obtain data 5. Therefore, all the data obtained are 6, 2, 3, 7, and 5 in sequence. Finally, all the data are combined in order to obtain the mileage data 62375.

[0085] S600, displaying the mileage data on a vehicle instrument panel.

[0086] In this embodiment, the vehicle's mileage data is correctly displayed on the vehicle's instrument panel after the encryption and decryption process, so that the driver, operator, etc. can accurately understand the vehicle's condition.

[0087] The data processing method of this embodiment uses the unique identifier data of the microcontroller unit as the basic element, and the encrypted mileage data is stored in the storage unit of the own vehicle, and no communication transmission is performed. Therefore, the encrypted mileage data can only be normally displayed in the instrument of the own vehicle (own MCU), and cannot be normally displayed in the instruments of other vehicles (other MCUs). This is because the unique identifier data of the MCU is used, and the identifier data of other vehicles (other MCUs) is different from the identifier data of the own vehicle (own MCU). Therefore, the mileage data of the own vehicle (own MCU) cannot be restored, thereby preventing the storage medium on the instrument from being copied to other instruments for cracking, thereby ensuring the authenticity and reliability of the mileage data.

[0088] Figure 8A structural schematic diagram of a data processing device of an embodiment of the present application is shown. Exemplarily, the data processing device includes a collection module 10, an encryption module 20 and a processing module 30; the collection module 10 is used to obtain the identifier data of the micro control unit of the vehicle; the encryption module 20 is used to encrypt the mileage data of the vehicle according to the identifier data to obtain the mileage encrypted data; the processing module 30 is used to encode the mileage encrypted data and store the encoding result in the storage unit of the vehicle.

[0089] It can be understood that the device of this embodiment corresponds to the data processing method of the above embodiment, and the options in the above embodiment are also applicable to this embodiment, so they will not be described repeatedly here.

[0090] The present application also provides a vehicle. Exemplarily, the vehicle includes a processor and a memory, wherein the memory stores a computer program, and the processor runs the computer program, thereby enabling the vehicle to execute the functions of the various modules in the above-mentioned data processing method or the above-mentioned data processing device.

[0091] Among them, the processor can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU) and a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or at least one of other programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present application.

[0092] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc. The memory is used to store a computer program, and the processor may execute the computer program accordingly after receiving an execution instruction.

[0093] The present application also provides a computer-readable storage medium for storing the computer program used in the above-mentioned vehicle. For example, the computer-readable storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0094] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of boxes in the structure diagram and / or the flow diagram, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0095] In addition, the functional modules or units in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0096] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.

[0097] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A data processing method, characterized in that: include: obtaining identifier data of a microcontroller unit of the vehicle; Encrypting the mileage data of the vehicle according to the identifier data to obtain encrypted mileage data; The mileage encrypted data is encoded, and the encoding result is stored in a storage unit of the vehicle.

2. The data processing method according to claim 1, characterized in that: The step of encrypting the mileage data of the vehicle according to the identifier data to obtain encrypted mileage data includes: extracting at least one data group from the identifier data based on the mileage data; Based on preset rules, all the data groups and the mileage data are processed to obtain the mileage encrypted data.

3. The data processing method according to claim 2, characterized in that: The step of extracting at least one data group from the identifier data according to the mileage data comprises: Processing the mileage data to obtain length data of the mileage data; At least one of the data groups is extracted from the identifier data according to the length data in a preset extraction manner.

4. The data processing method according to claim 2, characterized in that: The step of processing all the data groups and the mileage data based on a preset rule to obtain the mileage encrypted data includes: Based on a preset rule, determining the data group corresponding to each data in the mileage data; Performing a logical operation on each data and the corresponding data group to obtain the encrypted data corresponding to each data; All the encrypted data are processed to obtain the mileage encrypted data.

5. The data processing method according to claim 1, characterized in that: The step of encoding the mileage encrypted data comprises: Determine the encrypted data header identifier according to the information exchange code; Verifying the encrypted data header identifier and the mileage encrypted data to obtain a verification identifier; An encoding result is obtained according to the encrypted data header identifier, the mileage encrypted data and the verification identifier.

6. The data processing method according to claim 2, characterized in that: Also includes: Acquire the encoding result of the storage unit; Decrypting the encoding result based on the identifier data to obtain the mileage data; The mileage data is displayed on a meter of the vehicle.

7. The data processing method according to claim 6, characterized in that: The decrypting the encoding result based on the identifier data to obtain the mileage data includes: Decoding the encoding result to obtain the mileage encrypted data; The preset rule is adopted to process the mileage encrypted data according to the identifier data to obtain the mileage data.

8. A data processing device, characterized in that: It includes acquisition module, encryption module and processing module; The acquisition module is used to obtain identifier data of the micro control unit of the vehicle; The encryption module is used to encrypt the mileage data of the vehicle according to the identifier data to obtain encrypted mileage data; The processing module is used to encode the mileage encrypted data and store the encoding result in a storage unit of the vehicle.

9. A vehicle, characterized in that: The vehicle comprises a processor and a memory, wherein the memory stores a computer program, and the processor is configured to execute the computer program to implement the data processing method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer program stores a computer program, which, when executed on a processor, implements the data processing method according to any one of claims 1 to 7.