Vehicle data processing method, apparatus and device

By parsing data segments and modifying addresses in the Hex file, the problem of write failures caused by misaligned Hex file addresses was solved, achieving more efficient and accurate data writing.

CN116431579BActive Publication Date: 2026-06-30GUOQI INTELLIGENT CONTROL (CHONGQING) TECH CO LTD +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUOQI INTELLIGENT CONTROL (CHONGQING) TECH CO LTD
Filing Date
2023-04-17
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

In existing technologies, misaligned Hex file addresses cause vehicle data writing to fail, and existing methods are inefficient and have low accuracy.

Method used

By reading the Hex file, parsing the data segments, identifying and changing data addresses that do not meet the preset address identification conditions, performing position movement and update processing, and generating the target file.

Benefits of technology

It improves the accuracy and efficiency of Hex file rewriting, ensuring that data can be correctly written to the storage device and avoiding write failures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116431579B_ABST
    Figure CN116431579B_ABST
Patent Text Reader

Abstract

This application provides a vehicle data processing method, apparatus, and device. The method includes: reading a file to be processed and performing data parsing processing on the file to be processed to determine each data segment in the file to be processed; wherein each data segment includes vehicle execution data and a data address; identifying a target data segment in the file to be processed, performing data modification processing on the data address in each target data segment to obtain a modified data address; and performing position shift processing on the vehicle execution data of the corresponding target data segment according to the modified data address to generate an updated target data segment, wherein the target data segment is a data segment in the file to be processed whose data address does not meet a preset address identification condition; and performing file update processing on the file to be processed according to the updated target data segment to generate a target file. This process improves the accuracy and efficiency of Hex file rewriting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a vehicle data processing method, apparatus, and device. Background Technology

[0002] Hex files are currently the most commonly used executable files in the automotive electronics industry. After being read by the internal storage of the microcontroller unit (MCU), the Hex file enables vehicle control. However, many compilers for MCU chips generate Hex files with address misalignment. Due to the characteristics of storage devices, if the addresses are misaligned, the data at that address cannot be written to the storage device, leading to failure in the vehicle's data writing process.

[0003] In existing technologies, address alignment issues are handled by using a hexadecimal viewer (Hexview) software or by manually modifying the Hex file through calculation.

[0004] However, both methods have limitations in the existing technology. Using Hexview software and manually modifying Hex files through calculations are inefficient and have low accuracy. Summary of the Invention

[0005] This application provides a vehicle data processing method, apparatus, and device to solve the problems of low efficiency and low accuracy in manually modifying Hex files.

[0006] In a first aspect, this application provides a vehicle data processing method, the method comprising:

[0007] The file to be processed is read, and the file is parsed to determine the data segments in the file. The file to be processed includes N data segments, where N is a positive integer greater than zero. Each data segment includes vehicle execution data and a data address.

[0008] Identify the target data segment in the file to be processed, perform data modification processing on the data address in each target data segment to obtain the modified data address; and perform position movement processing on the vehicle execution data of the corresponding target data segment according to the modified data address to generate an updated target data segment, wherein the target data segment is the data segment in the file to be processed whose data address does not meet the preset address identification conditions.

[0009] Based on the updated target data segment, the file to be processed is updated to generate the target file.

[0010] In one optional implementation, the data address includes the starting extended address of the corresponding vehicle execution data and the starting extended linear address of the corresponding vehicle execution data; identifying the target data segment in the file to be processed, performing data modification processing on the data address in each target data segment to obtain the modified data address; and performing position shift processing on the vehicle execution data of the corresponding target data segment according to the modified data address to generate an updated target data segment, including:

[0011] The starting address of the corresponding data segment is determined based on the starting extended address and the starting extended linear address in each data segment.

[0012] If the starting address of the data does not meet the preset address recognition conditions, then the data segment is determined to be the target data segment. The preset address recognition conditions are used to determine whether the data address can be recognized by the preset storage device.

[0013] Based on the preset processing logic, the starting extended linear address of the target data segment is processed to change the data, and the corresponding data alignment address of the target data segment is generated.

[0014] Based on the data alignment address, the vehicle execution data of the corresponding target data segment is processed to move the data position, and an updated target data segment is generated.

[0015] In one optional implementation, the data segment further includes data length information of vehicle execution data; data position shifting processing is performed on the vehicle execution data of the corresponding target data segment according to the data alignment address to generate an updated target data segment, including:

[0016] Based on the data alignment address and data start address of the target data segment, determine the position offset of the corresponding vehicle's executed data;

[0017] Based on the position offset and the data length information corresponding to the vehicle execution data, the vehicle execution data is moved to generate an updated target data segment.

[0018] In one optional implementation, the data segment further includes verification information corresponding to the vehicle's execution data; generating the updated target data segment includes:

[0019] Based on the vehicle execution data after data alignment and position shifting, regenerate and replace the verification information of the corresponding target data segment;

[0020] The target data segment is filled with data based on the position offset to generate the updated target data segment.

[0021] In one optional implementation, the file to be processed is updated based on the target data segment after the update process to generate a target file, including:

[0022] Based on the updated target data segment and the data segment whose starting address meets the preset address recognition conditions, the file to be processed is updated to generate the target file corresponding to the file to be processed.

[0023] In one optional implementation, the method further includes:

[0024] In response to a user command on a preset interface, the file to be processed is read according to the storage location indicated by the user command; wherein the user command is used to indicate the storage location of the file to be processed.

[0025] In one optional implementation, the method further includes:

[0026] The target file is displayed in response to a user's trigger command on a preset interface; wherein the trigger command is used to instruct the display of the target file.

[0027] Secondly, this application provides a vehicle data processing device, the device comprising:

[0028] The first processing unit is used to read the file to be processed and perform data parsing processing on the file to be processed to determine each data segment in the file to be processed; wherein, the file to be processed includes N data segments, where N is a positive integer greater than zero, and each data segment includes vehicle execution data and data address;

[0029] The second processing unit is used to identify target data segments in the file to be processed, perform data modification processing on the data address in each target data segment to obtain the modified data address; and perform position movement processing on the vehicle execution data of the corresponding target data segment according to the modified data address to generate an updated target data segment, wherein the target data segment is a data segment in the file to be processed whose data address does not meet the preset address identification conditions.

[0030] The third processing unit is used to perform file update processing on the file to be processed based on the target data segment after update processing, and generate the target file.

[0031] Thirdly, this application provides an electronic device, including a memory and a processor;

[0032] The memory is used to store computer programs;

[0033] The processor is configured to read the computer program stored in the memory and execute the vehicle data processing method as described in the first aspect according to the computer program in the memory.

[0034] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the vehicle data processing method as described in the first aspect.

[0035] The vehicle data processing method, apparatus, and device provided in this application, through the following steps: reading a file to be processed and performing data parsing processing on the file to be processed to determine each data segment in the file to be processed; wherein each data segment includes vehicle execution data and a data address; identifying a target data segment in the file to be processed, performing data modification processing on the data address in each target data segment to obtain a modified data address; and performing position shift processing on the vehicle execution data of the corresponding target data segment according to the modified data address to generate an updated target data segment, wherein the target data segment is a data segment in the file to be processed whose data address does not meet a preset address identification condition; and performing file update processing on the file to be processed according to the updated target data segment to generate a target file. This process improves the accuracy and efficiency of Hex file rewriting. Attached Figure Description

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

[0037] Figure 1 A flowchart illustrating a vehicle data processing method provided in this application embodiment;

[0038] Figure 2 A flowchart illustrating another vehicle data processing method provided in this application embodiment;

[0039] Figure 3 This is a schematic diagram of the structure of a vehicle data processing device provided in an embodiment of this application;

[0040] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0041] Figure 5 This is a block diagram of an electronic device provided in an embodiment of this application.

[0042] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0043] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0044] Hex files are currently the most commonly used executable files in the automotive electronics industry. Code developed by developers in an embedded development environment is compiled and linked to generate a Hex file, which is then downloaded to the MCU for execution. With the increasing electrification and intelligence of automotive electronics, software functions are constantly being added and enriched, and Over-The-Air (OTA) technology has gradually become a standard feature in automobiles. However, many compilers for MCU chips generate Hex files with address misalignment. Due to the characteristics of flash memory, if the addresses are misaligned, the data at that address cannot be written to the flash memory, causing data writing failures. It should be noted that the contents of Hex files are all hexadecimal codes; for example, 0x8030010C and 0x803000E0 are both hexadecimal. Taking the Infineon TC397 chip as an example, the address required for writing to the program flash (PFLASH) must be 32-byte aligned. For instance, 0x8030010C is not divisible by 32, so this address cannot be directly used to operate the PFLASH without 32-byte alignment. However, 0x803000E0 is divisible by 32, so this address can be directly used to operate the PFLASH. If the lower-level machine, i.e., the bootloader, handles the address misalignment problem, it will have a significant impact on the writing time and efficiency.

[0045] In one example, existing methods for aligning Hex file addresses use either Hexview software or manual calculation to modify the Hex file. Both methods have limitations and need improvement in efficiency: using Hexview software or manually modifying the Hex file can only modify one or a few lines of addresses at a time. If there are dozens or even hundreds of misaligned lines of addresses in the Hex file, this method becomes unsuitable and extremely inefficient. If manual calculation leads to incorrect address modifications, it can cause program crashes during the flashing process, which is unacceptable for automotive electronics with extremely high safety requirements.

[0046] Therefore, this application provides a vehicle data processing method to solve the above-mentioned technical problems.

[0047] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0048] Figure 1 A flowchart of a vehicle data processing method provided in an embodiment of this application is shown below. Figure 1 As shown, the method includes:

[0049] 101. Read the file to be processed and perform data parsing on the file to determine the data segments in the file to be processed; wherein, the file to be processed includes N data segments, where N is a positive integer greater than zero, and each data segment includes vehicle execution data and data address.

[0050] For example, the executing entity of this embodiment can be an electronic device, a cloud server, a terminal device, or other apparatus or device capable of executing this embodiment, and there is no limitation thereto. This embodiment is described with an electronic device as the executing entity.

[0051] The electronic device reads the file to be processed, namely the Hex file to be processed, and performs data parsing processing on the file to be processed. The parsing determines N data segments in the file to be processed, where N is a positive integer greater than zero. Each data segment includes vehicle execution data and the data address corresponding to the vehicle execution data. The vehicle execution data can be the program and data required for the vehicle MCU to run.

[0052] 102. Identify the target data segment in the file to be processed, perform data modification processing on the data address in each target data segment to obtain the modified data address; and perform position movement processing on the vehicle execution data of the corresponding target data segment according to the modified data address to generate the updated target data segment. The target data segment is the data segment in the file to be processed whose data address does not meet the preset address identification conditions.

[0053] For example, target data segments in each data segment of the file to be processed whose data addresses do not meet preset address recognition conditions are identified. For each target data segment, the data addresses corresponding to the vehicle execution data that do not meet the preset address recognition conditions are processed by data modification, such as padding or altering data addresses that cannot be recognized by the storage device, to obtain modified data addresses. This modified data addresses can be accurately identified and read. Because the data addresses have changed, the vehicle execution data corresponding to the data addresses of the target data segments must also be moved along with the modified data addresses, so that storage devices such as FLASH can accurately read the corresponding vehicle execution data based on the modified data addresses. After completing the movement processing of the vehicle execution data, the updated target data segments are generated.

[0054] 103. Based on the updated target data segment, perform file update processing on the file to be processed to generate the target file.

[0055] For example, after the target data is updated, the file to be processed also changes. Therefore, based on the updated target data segment, the file to be processed is updated to generate the target file.

[0056] In summary, the vehicle data processing method provided in this embodiment involves the following steps: reading the file to be processed and performing data parsing processing on the file to determine each data segment in the file to be processed; wherein each data segment includes vehicle execution data and data address; identifying the target data segment in the file to be processed, performing data modification processing on the data address in each target data segment to obtain the modified data address; and performing position shift processing on the vehicle execution data of the corresponding target data segment according to the modified data address to generate an updated target data segment, wherein the target data segment is the data segment in the file to be processed whose data address does not meet the preset address identification conditions; and performing file update processing on the file to be processed according to the updated target data segment to generate the target file. This process improves the accuracy and efficiency of Hex file rewriting.

[0057] Figure 2 A flowchart of another vehicle data processing method provided in the embodiments of this application is shown below. Figure 2 As shown, the method includes:

[0058] 201. In response to a user command on a preset interface, read the file to be processed according to the storage location indicated by the user command; wherein, the user command is used to indicate the storage location of the file to be processed.

[0059] For example, before the storage device FLASH reads the Hex file, the data address in the Hex file is verified and rewritten to determine that the Hex file can be recognized and read by the FLASH. Therefore, the user issues a user command on the preset interface of the electronic device, indicating the storage location of the file to be processed. The electronic device responds to the user command on the preset interface, reads the file to be processed according to the storage location indicated by the user command, or obtains the file path of the file to be processed according to the pre-running program code and reads the file to be processed.

[0060] 202. Perform data parsing processing on the file to be processed to determine each data segment in the file to be processed; wherein, the file to be processed includes N data segments, where N is a positive integer greater than zero, and each data segment includes vehicle execution data and data address.

[0061] In one example, the data address includes the starting extended address of the corresponding vehicle execution data and the starting extended linear address of the corresponding vehicle execution data.

[0062] For example, the electronic device reads the file to be processed, i.e. the Hex file to be processed, and performs data parsing processing on the file to be processed. For example, based on the pre-running program code, it parses and determines N data segments in the file to be processed, where N is a positive integer greater than zero. Each data segment includes vehicle execution data and the data address corresponding to the vehicle execution data. The vehicle execution data can be the program and data required for the vehicle MCU to run. The data address includes the starting extended address of the corresponding vehicle execution data and the starting extended linear address of the corresponding vehicle execution data.

[0063] 203. Determine the starting address of the corresponding data segment based on the starting extended address and the starting extended linear address in each data segment.

[0064] For example, the starting address of the corresponding data segment is determined based on the starting extended address and the starting extended linear address in each data segment. For instance, the starting extended address and the starting extended linear address are added together to obtain the starting address of the corresponding data segment.

[0065] 204. If the starting address of the data does not meet the preset address recognition conditions, then the data segment is determined as the target data segment. The preset address recognition conditions are used to determine whether the data address can be recognized by the preset storage device.

[0066] For example, if it is determined that the calculated starting address of the data does not meet the preset address recognition conditions, that is, it cannot be recognized by the preset storage device, for example, 0x8030010C cannot be divided by 32, cannot be read or written by FLASH, then the address is considered to be unaligned, and the data segment corresponding to the starting address of the data is determined to be the target data segment.

[0067] In one example, the hex file in this application no longer has the case of non-contiguous addresses. It only handles the case of address misalignment and only performs the minimum necessary padding. It does not perform any padding between the data segments.

[0068] 205. Based on the preset processing logic, perform data modification processing on the starting extended linear address of the target data segment to generate the corresponding data alignment address of the target data segment.

[0069] For example, based on preset processing logic, such as data processing logic included in a pre-written code program, the starting extended linear address of the target data segment is processed to generate the corresponding data alignment address of the target data segment.

[0070] In one example, when the preset storage device can recognize 32-bit address bytes, the processing logic for generating the data-aligned address of the target data segment can be represented as follows:

[0071] Data alignment address = (data start address / 0x20) * 0x20

[0072] In this context, 0x20 in hexadecimal is equivalent to 32 in decimal. (starting address of data / 0x20) * 0x20 means that the starting address of data is first divided by 0x20 to obtain the corresponding quotient value. The integer part of the quotient value is retained, and then the integer part of the quotient value is multiplied by 0x20 to obtain the data alignment address.

[0073] 206. Based on the data alignment address, perform data position shifting processing on the vehicle data of the corresponding target data segment to generate the updated target data segment.

[0074] In one example, the data segment also includes data length information for the vehicle execution data; the data segment also includes verification information for the corresponding vehicle execution data; step 206 includes the following steps:

[0075] Based on the data alignment address and data start address of the target data segment, determine the position offset of the corresponding vehicle execution data; based on the position offset and the data length information corresponding to the vehicle execution data, perform position shifting processing on the vehicle execution data; based on the data alignment address and the vehicle execution data after position shifting processing, regenerate and replace the verification information of the corresponding target data segment; based on the position offset, perform data filling processing on the corresponding target data segment to generate the updated target data segment.

[0076] For example, since the data address has changed, the vehicle execution data corresponding to the data address of the target data segment must also be moved along with the changed data address. This allows storage devices, such as FLASH, to accurately read the corresponding vehicle execution data based on the changed data address. After the vehicle execution data movement is completed, an updated target data segment is generated. The vehicle execution data of the corresponding target data segment is moved according to the data alignment address. For example, based on the obtained data alignment address of the target data segment and the previous data start address, the position offset of the corresponding vehicle execution data is determined. Then, based on the position offset and the data length information corresponding to the vehicle execution data, the vehicle execution data is moved. Furthermore, based on the data alignment address and the moved vehicle execution data, the verification information of the corresponding target data segment is regenerated and replaced; data filling is performed on the corresponding target data segment based on the position offset to generate an updated target data segment.

[0077] In one example, the total data length (LEN) of the vehicle execution data in the target data segment is obtained by summing the data lengths of each vehicle execution data recorded in the target data segment. Corresponding memory space is then allocated for the target data segment. Based on the calculated position offset, the vehicle execution data in each record of this segment is placed at the corresponding position, and the gap between the original address and the new address (i.e., the data start address and the data alignment address) is padded with 0xFF. No padding is applied to any new record data less than 32 bytes. Then, a new checksum (CheckSum) is recalculated for each record based on the rearranged vehicle execution data.

[0078] 207. Based on the updated target data segment and the data segment whose starting address meets the preset address recognition conditions, update the file to be processed and generate the target file corresponding to the file to be processed.

[0079] For example, after the target data is updated, the file to be processed also changes. Therefore, based on the updated target data segments, the file to be processed is updated. For example, based on the new extended address, new extended linear address, new record data length in each segment, vehicle execution data, and checksum, the Hex file is updated. Then, combined with data segments whose data start address meets the preset address recognition conditions, the target file is generated.

[0080] 208. In response to a user's trigger command on a preset interface, display the target file; wherein the trigger command is used to instruct the display of the target file.

[0081] For example, after the Hex file processing is completed and the target file is generated, the electronic device can output a prompt message indicating that the processing is complete, and display the target file in response to a user's trigger command on a preset interface.

[0082] In summary, the vehicle data processing method provided in this embodiment, based on a preset interface, responds to user commands and performs file reading, processing, and display, improving the operability and controllability of the processing process and optimizing the user experience. By determining the data start address of the corresponding data segment based on the start extended address and start extended linear address in each data segment, and then performing data modification processing on the start extended linear address of the target data segment based on preset processing logic, a corresponding data alignment address of the target data segment is generated. Based on the data alignment address, the vehicle execution data of the corresponding target data segment is processed by moving the data position, updating and replacing the verification information of the target data segment, and filling the gaps in the target data segment to generate an updated target data segment. This process achieves accurate batch verification processing of Hex files, improving the accuracy and efficiency of Hex file rewriting.

[0083] Figure 3 This is a schematic diagram of the structure of a vehicle data processing device provided in an embodiment of this application, as shown below. Figure 3 As shown, the device includes:

[0084] The first processing unit 31 is used to read the file to be processed and perform data parsing processing on the file to be processed to determine each data segment in the file to be processed; wherein, the file to be processed includes N data segments, where N is a positive integer greater than zero, and each data segment includes vehicle execution data and data address.

[0085] The second processing unit 32 is used to identify target data segments in the file to be processed, perform data change processing on the data address in each target data segment to obtain the changed data address; and perform position movement processing on the vehicle execution data of the corresponding target data segment according to the changed data address to generate an updated target data segment, wherein the target data segment is a data segment in the file to be processed whose data address does not meet the preset address identification conditions.

[0086] The third processing unit 33 is used to perform file update processing on the file to be processed based on the target data segment after update processing, and generate the target file.

[0087] In one example, the data address includes the starting extended address of the corresponding vehicle execution data and the starting extended linear address of the corresponding vehicle execution data; the second processing unit 32 includes:

[0088] The first determining subunit is used to determine the data start address of the corresponding data segment based on the start extension address and start extension linear address in each data segment.

[0089] The second determining subunit is used to determine the data segment as the target data segment if the determined starting address does not meet the preset address recognition conditions. The preset address recognition conditions are used to determine whether the data address can be recognized by the preset storage device.

[0090] The first processing subunit is used to perform data modification processing on the starting extended linear address of the target data segment based on preset processing logic, and generate the corresponding data alignment address of the target data segment.

[0091] The second processing subunit is used to perform data position shifting processing on the vehicle execution data of the corresponding target data segment according to the data alignment address, and generate the updated target data segment.

[0092] In one example, the data segment also includes data length information for vehicle execution data; the second processing subunit includes:

[0093] The determination module is used to determine the position offset of the corresponding vehicle execution data based on the data alignment address and data start address of the target data segment.

[0094] The processing module is used to perform position shifting processing on the vehicle execution data based on the position offset and the data length information corresponding to the vehicle execution data, and generate the updated target data segment.

[0095] In one example, the data segment also includes verification information for the corresponding vehicle execution data; the processing module includes:

[0096] The first processing submodule is used to move the processed vehicle execution data according to the data alignment address and position, and regenerate and replace the verification information of the corresponding target data segment.

[0097] The second processing submodule is used to perform data filling processing on the corresponding target data segment according to the position offset, and generate the updated target data segment.

[0098] In one example, the third processing unit 33 is specifically used for,

[0099] Based on the updated target data segment and the data segment whose starting address meets the preset address recognition conditions, the file to be processed is updated to generate the target file corresponding to the file to be processed.

[0100] In one example, the device also includes:

[0101] The acquisition unit is used to respond to user commands on a preset interface and read the file to be processed according to the storage location indicated by the user commands; wherein, the user commands are used to indicate the storage location of the file to be processed.

[0102] In one example, the device also includes:

[0103] The display unit is used to display the target file in response to a user's trigger command on a preset interface; wherein the trigger command is used to instruct the display of the target file.

[0104] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application, such as... Figure 4 As shown, the electronic device includes: a memory 41 and a processor 42.

[0105] Memory 41 is used to store computer programs.

[0106] The processor 42 is configured to read a computer program stored in the memory and execute the vehicle data processing method of any of the above embodiments according to the computer program in the memory.

[0107] Figure 5 This is a block diagram of an electronic device provided in an embodiment of this application. The device may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0108] The device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.

[0109] Processing component 802 typically controls the overall operation of device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.

[0110] Memory 804 is configured to store various types of data to support the operation of device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0111] Power supply component 806 provides power to various components of device 800. Power supply component 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to device 800.

[0112] Multimedia component 808 includes a screen that provides an output interface between device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When device 800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0113] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when device 800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.

[0114] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0115] Sensor assembly 814 includes one or more sensors for providing state assessments of various aspects of device 800. For example, sensor assembly 814 may detect the on / off state of device 800, the relative positioning of components such as the display and keypad of device 800, changes in the position of device 800 or a component of device 800, the presence or absence of user contact with device 800, the orientation or acceleration / deceleration of device 800, and temperature changes of device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0116] Communication component 816 is configured to facilitate wired or wireless communication between device 800 and other devices. Device 800 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0117] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0118] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by a processor 820 of the device 800 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0119] This application also provides a computer program product, which includes: a computer program stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium, and the at least one processor executes the computer program to cause the electronic device to perform the solution provided in any of the above embodiments.

[0120] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.

[0121] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.

Claims

1. A vehicle data processing method, characterized in that, The method includes: The file to be processed is read, and the file is parsed to determine the data segments in the file. The file to be processed includes N data segments, where N is a positive integer greater than zero. Each data segment includes vehicle execution data and a data address. The process involves identifying target data segments in the file to be processed, performing data modification processing on the data addresses in each target data segment to obtain modified data addresses, and then performing position movement processing on the vehicle execution data of the corresponding target data segment based on the modified data addresses to generate updated target data segments. The target data segments are data segments in the file to be processed whose data addresses do not meet preset address identification conditions. The preset address identification conditions include that the data addresses meet preset byte alignment requirements, and the data modification processing includes aligning the data addresses based on the preset byte alignment requirements. Based on the updated target data segment, the file to be processed is updated to generate the target file.

2. The method according to claim 1, characterized in that, The data address includes the starting extended address of the corresponding vehicle execution data and the starting extended linear address of the corresponding vehicle execution data; identify the target data segment in the file to be processed, perform data modification processing on the data address in each target data segment, and obtain the modified data address; Based on the changed data address, the vehicle data in the corresponding target data segment is moved to generate an updated target data segment, including: The starting address of the corresponding data segment is determined based on the starting extended address and the starting extended linear address in each data segment. If the starting address of the data does not meet the preset address recognition conditions, then the data segment is determined to be the target data segment. The preset address recognition conditions are used to determine whether the data address is recognized by the preset storage device. Based on the preset processing logic, the starting extended linear address of the target data segment is processed to change the data, and the corresponding data alignment address of the target data segment is generated. Based on the data alignment address, the vehicle execution data of the corresponding target data segment is processed to move the data position, and an updated target data segment is generated.

3. The method according to claim 2, characterized in that, The data segment also includes data length information of vehicle execution data; based on the data alignment address, the vehicle execution data of the corresponding target data segment is shifted to generate an updated target data segment, including: Based on the data alignment address and data start address of the target data segment, determine the position offset of the corresponding vehicle's executed data; Based on the position offset and the data length information corresponding to the vehicle execution data, the vehicle execution data is moved to generate an updated target data segment.

4. The method according to claim 3, characterized in that, The data segment also includes verification information for the corresponding vehicle execution data; the generated updated target data segment includes: Based on the vehicle execution data after data alignment and position shifting, regenerate and replace the verification information of the corresponding target data segment; The target data segment is filled with data based on the position offset to generate the updated target data segment.

5. The method according to claim 4, characterized in that, Based on the updated target data segment, the file to be processed is updated to generate the target file, including... Based on the updated target data segment and the data segment whose starting address meets the preset address recognition conditions, the file to be processed is updated to generate the target file corresponding to the file to be processed.

6. The method according to any one of claims 1-5, characterized in that, The method further includes: In response to a user command on a preset interface, the file to be processed is read according to the storage location indicated by the user command; wherein the user command is used to indicate the storage location of the file to be processed.

7. The method according to claim 6, characterized in that, The method further includes: The target file is displayed in response to a user's trigger command on a preset interface; wherein the trigger command is used to instruct the display of the target file.

8. A vehicle data processing device, characterized in that, The device includes: The first processing unit is used to read the file to be processed and perform data parsing processing on the file to be processed to determine each data segment in the file to be processed; wherein, the file to be processed includes N data segments, where N is a positive integer greater than zero, and each data segment includes vehicle execution data and data address; The second processing unit is used to identify target data segments in the file to be processed, perform data modification processing on the data addresses in each target data segment to obtain modified data addresses, and perform position movement processing on the vehicle execution data of the corresponding target data segment according to the modified data addresses to generate updated target data segments. The target data segments are data segments in the file to be processed whose data addresses do not meet preset address identification conditions. The preset address identification conditions include that the data addresses meet preset byte alignment requirements, and the data modification processing includes aligning the data addresses based on the preset byte alignment requirements. The third processing unit is used to perform file update processing on the file to be processed based on the target data segment after update processing, and generate the target file.

9. An electronic device, characterized in that, Including memory and processor; The memory is used to store computer programs; The processor is configured to read the computer program stored in the memory and execute the vehicle data processing method according to any one of claims 1-7 based on the computer program in the memory.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the vehicle data processing method as described in any one of claims 1-7.