Data processing method, device and readable storage medium of vehicle

By determining the fault level and storing the operating data within the sampling period when the motor controller fails, the problem of insufficient data integrity in electric drive system faults is solved, improving the accuracy and efficiency of fault analysis and ensuring driving safety and manufacturer reputation.

CN122176819APending Publication Date: 2026-06-09VOYAH AUTOMOBILE TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
VOYAH AUTOMOBILE TECH CO LTD
Filing Date
2026-02-03
Publication Date
2026-06-09

AI Technical Summary

Technical Problem

In existing technologies, the integrity of fault data during fault diagnosis of electric drive systems is low, which makes fault analysis difficult and affects driving safety and manufacturer reputation.

Method used

When the motor controller first fails, the fault level is determined. If the fault level is higher than the preset level, the operating data of the motor controller during the sampling period is acquired and stored in the designated partition of the fault memory to ensure data integrity.

Benefits of technology

By ensuring the integrity of fault data, the accuracy and efficiency of fault analysis are improved, and the impact of electric drive system failures on driving safety and manufacturer reputation is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122176819A_ABST
    Figure CN122176819A_ABST
Patent Text Reader

Abstract

This application discloses a vehicle data processing method, apparatus, and readable storage medium, relating to the field of new energy vehicle technology. The vehicle data processing method includes: determining the fault level of the motor controller when it first fails; if the fault level is greater than a preset level, acquiring first operating data of the motor controller within a sampling period based on the time of the fault occurrence, where the time of the fault occurrence belongs to the sampling period; partitioning the fault memory to determine a first partition; and storing the first operating data in the first partition. This application improves the data integrity of stored fault data when a vehicle malfunctions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of new energy vehicle technology, and in particular to a data processing method, apparatus and readable storage medium for a vehicle. Background Technology

[0002] The electric drive system is one of the core systems of new energy vehicles. Due to the complexity of its operating environment, electric drive failures occur frequently. Serious failures in the electric drive system can range from limiting the vehicle's speed and power to complete power loss and breakdown. Such serious failures pose a significant threat to driver safety and severely damage the manufacturer's reputation. Furthermore, because the electric drive system is a high-voltage system, serious failures are often accompanied by severe hardware problems such as burst pipes and damaged drive boards. Analyzing the fault symptoms remains a major challenge and pain point. Although electric drives possess diagnostic and freeze-frame functions, current fault diagnosis methods can only retrieve fault information, and freeze frames can store limited information with long processing times. Therefore, existing vehicle data processing methods suffer from technical problems such as low fault data integrity. Summary of the Invention

[0003] This application provides a vehicle data processing method, apparatus, and readable storage medium to address technical problems such as low integrity of fault data in the prior art.

[0004] A first aspect of this application provides a data processing method for a vehicle, the vehicle including a motor controller and a fault memory, the method comprising: In the event of the motor controller failing for the first time, determine the fault level of the motor controller; When the fault level is greater than the preset level, the first operating data of the motor controller during the sampling period is obtained based on the time of fault occurrence of the motor controller, and the time of fault occurrence belongs to the sampling period. The faulty memory is partitioned to determine the first partition within the faulty memory. Store the first running data in the first partition.

[0005] In this embodiment, the vehicle data processing method determines the fault level of the motor controller when the motor controller fails for the first time. If the fault level is greater than a preset level, the method acquires the first operating data of the motor controller within the sampling period. Since the sampling period includes the time when the fault occurs, the data integrity of the first operating data is guaranteed.

[0006] A second aspect of this application provides a data processing apparatus for a vehicle, the vehicle including a motor controller and a fault memory, the apparatus comprising: The determination unit is used to determine the fault level of the motor controller when the motor controller fails for the first time. The sampling unit is used to acquire the first operating data of the motor controller within the sampling period based on the time of the fault occurrence of the motor controller when the fault level is greater than the preset level. The time of the fault occurrence belongs to the sampling period. The processing unit is used to partition the fault memory and determine the first partition in the fault memory; A storage unit is used to store the first running data in the first partition.

[0007] In this embodiment, the vehicle data processing device determines the fault level of the motor controller when the motor controller fails for the first time. If the fault level is greater than a preset level, it acquires the first operating data of the motor controller within the sampling period. Since the sampling period includes the time when the fault occurs, the data integrity of the first operating data is guaranteed.

[0008] A third aspect of this application provides another vehicle data processing apparatus, including a processor and a memory. The memory stores a computer program, which, when executed by the processor, implements the steps of the vehicle data processing method as described in any of the above embodiments. Therefore, this vehicle data processing apparatus possesses all the beneficial effects of the vehicle data processing method in any of the above embodiments, and will not be elaborated further here.

[0009] A fourth aspect of this application provides a readable storage medium storing a program or instructions that, when executed by a processor, implement the steps of the vehicle data processing method as described in any of the above embodiments. Therefore, this readable storage medium possesses all the beneficial effects of the vehicle data processing method in any of the above embodiments, which will not be elaborated further here. Attached Figure Description

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

[0011] Figure 1 A flowchart illustrating the vehicle data processing method provided in this application embodiment; Figure 2 Functional block diagram of the vehicle data processing device provided in the embodiments of this application; Figure 3 This is a structural block diagram of a vehicle data processing device provided in an embodiment of this application. Detailed Implementation

[0012] To better understand the technical solutions provided in the embodiments of this specification, the technical solutions of the embodiments of this specification will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the embodiments of this specification and the specific features in the embodiments are detailed descriptions of the technical solutions of the embodiments of this specification, rather than limitations on the technical solutions of this specification. In the absence of conflict, the embodiments of this specification and the technical features in the embodiments can be combined with each other.

[0013] In this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, without necessarily requiring or implying any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element. The term "two or more" includes two or more cases.

[0014] In some embodiments, such as Figure 1 As shown, an embodiment of this application provides a vehicle data processing method, including: Step S101: In the case of the motor controller failing for the first time, determine the fault level of the motor controller; Step S102: Under the condition that the fault level is greater than the preset level, based on the time of the fault occurrence of the motor controller, the first operating data of the motor controller during the sampling period is obtained. Step S103: Perform partitioning on the fault memory to determine the first partition in the fault memory; Step S104: Store the first running data in the first partition.

[0015] In this embodiment, a vehicle data processing method is proposed, wherein the vehicle includes a motor controller and a fault memory, the motor controller being a control device for the vehicle drive motor, and the fault memory being a storage device for storing vehicle fault information.

[0016] For example, the drive motor is the core power source of a vehicle, responsible for converting electrical energy into mechanical energy to drive the vehicle, while also recovering braking energy. During vehicle operation, the motor controller is used to control the drive motor in real time.

[0017] For example, during the use of motor controllers, serious malfunctions can occur due to equipment aging, unsuitable temperatures, or unreasonable hardware design. The most serious malfunction can damage the power module of the motor controller, resulting in anything from limited power or limpness in the entire vehicle to complete breakdown. There are many reasons for power module damage, such as overvoltage avalanche failure, overcurrent breakdown, and severe overheating. Moreover, when problems occur, it is often not a single fault, but a chain reaction that causes other faults to follow.

[0018] For example, the fault memory can be specifically a semiconductor memory, which has advantages such as high speed, large capacity and low cost.

[0019] When a motor controller fails for the first time, it is necessary to determine the fault level of the motor controller, which indicates the severity of the fault.

[0020] For example, the fault level can be specifically classified as a Level 1 fault, a Level 2 fault, or a Level 3 fault.

[0021] Level 3 faults are specifically defined as safety-related errors that may have a significant impact on the vehicle, requiring the vehicle to be stopped immediately.

[0022] Level 2 faults are specifically those errors that require immediate attention at a vehicle repair shop.

[0023] Level 1 faults are those that do not require immediate repair at a vehicle repair shop and can be addressed during vehicle maintenance.

[0024] For example, in the event of a Level 3 severe fault, the motor controller will activate its automatic waveform recording function to record key data before and after the first severe fault occurs, including but not limited to: system status, input and output signals, control commands, sensor data, etc. The motor controller will only be powered down after the data has been stored. This key data can be used to determine the cause of the motor controller failure.

[0025] Obtain the preset level, where the preset level is the threshold for determining the degree of fault in the motor controller.

[0026] For example, the preset level can be specifically a level two fault.

[0027] For example, if the fault level is greater than a preset level, it can be determined that the motor controller has a fault that endangers vehicle safety and requires immediate repair.

[0028] For example, if the fault level is less than or equal to a preset level, the fault in the motor controller can be determined to be a fault that does not require immediate repair.

[0029] When the fault level is greater than the preset level, the sampling period corresponding to the motor controller is determined based on the fault occurrence time of the motor controller, where the fault occurrence time is part of the sampling period.

[0030] For example, the sampling period includes the time when the fault occurs, covering both the time before and after the fault. Since data before a serious fault is more important for problem analysis, the sampling period covers the time before the fault occurs, ensuring the integrity of the sampling period's duration.

[0031] Acquire the first operating data of the motor controller during the sampling period, wherein the first operating data is the operating data of the motor controller during the sampling period.

[0032] For example, since the sampling period can cover the time before and after the fault, the first running data can also cover the running data before and after the fault, ensuring the integrity of the first running data and providing complete data support for subsequent fault diagnosis.

[0033] The fault memory is partitioned to determine the first partition in the fault memory and the first running data is stored in the first partition, wherein the first partition is the designated partition for storing the data corresponding to the first fault.

[0034] For example, the line selection method can be used to divide the first partition in the faulty memory. The line selection method directly uses the high-order address lines as chip select signals. It has the characteristics of simple wiring but possible address overlap, and is suitable for small-scale storage.

[0035] For example, a full decoding method can be used to divide the fault memory into a first partition. The full decoding method uses all the high-order address bits as the chip select signal, which has the characteristics of continuous address without overlap, but the decoding circuit is complex.

[0036] For example, a partial decoding method can be used to divide the fault memory into a first partition. The partial decoding method uses the high-order address part as the chip select signal. It has the advantages of possible address overlap, but the circuit is simpler than full decoding.

[0037] It should be noted that, under the condition that the fault level is greater than the preset level, this embodiment determines the sampling period that includes the time when the fault occurs, and obtains the first operating data of the motor controller within the sampling period. This ensures that the first operating data can cover the operating data before and after the fault occurs, thereby ensuring the integrity of the first operating data and providing complete data support for subsequent fault diagnosis.

[0038] In this embodiment, the vehicle data processing method determines the fault level of the motor controller when the motor controller fails for the first time. If the fault level is greater than a preset level, the method acquires the first operating data of the motor controller within the sampling period. Since the sampling period includes the time when the fault occurs, the data integrity of the first operating data is guaranteed.

[0039] In some embodiments, this application provides a vehicle data processing method that, based on the time of a motor controller failure, acquires first operating data of the motor controller during a sampling period, including: Based on the time of the fault occurrence, the sampling start time and sampling end time are determined, with the time of the fault occurrence falling between the sampling start time and the sampling end time. Based on the start time of sampling and the time of fault occurrence, determine the period before the fault, and based on the time of fault occurrence and the end time of sampling, determine the period after the fault. Acquire the pre-fault data of the motor controller during the period before the fault, and acquire the post-fault data of the motor controller during the period after the fault.

[0040] In this embodiment, the sampling period includes a pre-fault period and a post-fault period, and the first operating data includes pre-fault data and post-fault data. The pre-fault period is the period before the fault occurs, the post-fault period is the period after the fault occurs, the pre-fault data is the operating data before the fault occurs, and the post-fault data is the operating data after the fault occurs.

[0041] For example, the pre-fault period and the post-fault period are consecutive periods, and the connection point between the pre-fault period and the post-fault period is the time when the fault occurs.

[0042] For example, the pre-fault period can be specifically 150 sampling periods, the post-fault period can be specifically 50 sampling periods, and the sampling period can be specifically 10ms.

[0043] Based on the time of the fault occurrence, the sampling start time and sampling end time are determined, where the sampling start time is the beginning of the sampling and the sampling end time is the end of the sampling. The time of the fault occurrence is between the sampling start time and the sampling end time.

[0044] For example, the motor controller continuously outputs operating data during operation. The sampling start time is the time when the motor controller starts capturing the output operating data, and the sampling end time is the time when the motor controller stops capturing the output operating data.

[0045] Based on the start time of sampling and the time of the fault occurrence, the pre-fault period is determined, and based on the time of the fault occurrence and the end time of sampling, the post-fault period is determined.

[0046] Acquire the pre-fault data of the motor controller during the period before the fault, and acquire the post-fault data of the motor controller during the period after the fault.

[0047] For example, if the period before the fault is 150 sampling periods, the data before the fault is obtained for the 150 sampling periods before the fault.

[0048] For example, if the post-fault period is 50 sampling periods, the post-fault data for 50 sampling periods after the fault is obtained.

[0049] In some embodiments, this application provides a vehicle data processing method, which stores first operating data in a first partition, including: Obtain the first storage address and standard data structure of the first partition; The data structure of the first running data is converted into a standard data structure so that the first running data is updated to standardized data. Based on the first storage address, standardized data is stored in the first partition.

[0050] In this embodiment, the first storage address and standard data structure of the first partition are obtained, wherein the first storage address is the storage address in the first partition, and the standard data structure is a set data structure.

[0051] For example, the standard data structure is a table data structure, which uses an aligned structure to improve data access efficiency.

[0052] The data structure of the first running data is converted into a standard data structure so that the first running data is updated to standardized data, where standardized data is data with a unified structure.

[0053] For example, standardized data has a uniform data structure and is easy to write and read.

[0054] Based on the first storage address, standardized data is stored in the first partition.

[0055] In some embodiments of this application, a vehicle data processing method is provided, which, after storing first operating data in a first partition, further includes: In the event that the motor controller fails again, acquire the second operating data of the motor controller during the sampling period; Given that the fault memory includes a first partition, determine the second partition in the fault memory; Store the second running data in the second partition.

[0056] In this embodiment, if the motor controller fails again, the second operating data of the motor controller during the sampling period is obtained, wherein the second operating data is the operating data when the motor controller fails again.

[0057] For example, since the sampling period can cover the time before and after the fault, the second operating data can also cover the operating data before and after the fault, ensuring the integrity of the second operating data and providing complete data support for subsequent fault diagnosis.

[0058] Given that the fault memory includes a first partition, a second partition in the fault memory is determined, and the second operating data is stored in the second partition, wherein the second partition is used to store the operating data when the motor controller experiences the latest fault.

[0059] For example, the storage space of the faulty memory can be divided equally to obtain a first partition and a second partition.

[0060] In some embodiments, this application provides a vehicle data processing method that stores second operating data in a second partition, including: Obtain the second storage address and standard data structure of the second partition; The data structure of the second running data is converted into a standard data structure so that the second running data is updated to standardized data. Based on the second storage address, standardized data is stored in the second partition.

[0061] In this embodiment, the second storage address and standard data structure of the second partition are obtained, wherein the second storage address is the storage address in the second partition, and the standard data structure is a set data structure.

[0062] For example, the standard data structure is a table data structure, which uses an aligned structure to improve data access efficiency.

[0063] The data structure of the second running data is converted into a standard data structure so that the second running data is updated to standardized data.

[0064] For example, standardized data has a uniform data structure and is easy to write and read.

[0065] Based on the second storage address, standardized data is stored in the second partition.

[0066] In some embodiments of this application, a vehicle data processing method is provided, which, after storing the second operating data in a second partition, further includes: In the event that the motor controller fails again, acquire the third operating data of the motor controller during the sampling period; After clearing the data inside the second partition, the third runtime data is stored in the second partition.

[0067] In this embodiment, if the motor controller fails again, the third operating data of the motor controller during the sampling period is obtained, wherein the third operating data is the operating data when the motor controller failed most recently.

[0068] For example, since the sampling period can cover the time before and after the fault, the third operating data can also cover the operating data before and after the fault, ensuring the integrity of the third operating data and providing complete data support for subsequent fault diagnosis.

[0069] After clearing the data inside the second partition, the third runtime data is stored in the second partition.

[0070] For example, the second partition is used to store the operational data of the latest failure.

[0071] For example, a fault memory can write faults to non-volatile memory. The fault memory needs to ensure that it can store two sets of data, namely a first partition and a second partition.

[0072] The first partition needs to be stored according to the principle of first-to-first-triggered. When multiple serious failures occur at the same time, the critical data of the first level 3 failure will be stored. That is, once the failure matures, it will no longer be replaced by the data of other failures.

[0073] The fault storage data in the second partition is updated in real time. In the event of any level 3 fault, the fault storage data in the second partition will be flushed. That is, the fault storage data recorded in the second partition is always the latest fault data at the time of the serious fault.

[0074] In some embodiments of this application, a vehicle data processing method is provided, which, after storing first operating data in a first partition, further includes: Get the first storage address of the first partition; Based on the first storage address, read the first running data in the first partition.

[0075] In this embodiment, the first storage address of the first partition is obtained, and the first running data in the first partition is read based on the first storage address.

[0076] For example, after data storage, the stored data can be retrieved remotely or on-site based on the DID (Decentralized Identity) defined for each data point.

[0077] For example, the data format in the fault memory is shown in Table 1.

[0078] Table 1

[0079] In some embodiments, such as Figure 2 As shown, an embodiment of this application provides a vehicle data processing device 200, including: The determination unit 202 is used to determine the fault level of the motor controller when the motor controller fails for the first time. The sampling unit 204 is used to acquire the first operating data of the motor controller within the sampling period based on the time of the fault occurrence of the motor controller when the fault level is greater than the preset level. The time of the fault occurrence belongs to the sampling period. Processing unit 206 is used to perform partitioning processing on the fault memory and determine the first partition in the fault memory; Storage unit 208 is used to store the first running data in the first partition.

[0080] In this embodiment, the vehicle data processing device 200 determines the fault level of the motor controller when the motor controller fails for the first time. If the fault level is greater than a preset level, it acquires the first operating data of the motor controller within the sampling period. Since the sampling period includes the time when the fault occurs, the data integrity of the first operating data is guaranteed.

[0081] In some embodiments of this application, a vehicle data processing device 200 and a sampling unit 204 are provided, which are further used for: Based on the time of the fault occurrence, the sampling start time and sampling end time are determined, with the time of the fault occurrence falling between the sampling start time and the sampling end time. Based on the start time of sampling and the time of fault occurrence, determine the period before the fault, and based on the time of fault occurrence and the end time of sampling, determine the period after the fault. Acquire the pre-fault data of the motor controller during the period before the fault, and acquire the post-fault data of the motor controller during the period after the fault.

[0082] In some embodiments of this application, a vehicle data processing device 200 and a storage unit 208 are provided, which are further used for: Obtain the first storage address and standard data structure of the first partition; The data structure of the first running data is converted into a standard data structure so that the first running data is updated to standardized data. Based on the first storage address, standardized data is stored in the first partition.

[0083] In some embodiments of this application, a vehicle data processing device 200 is provided, further comprising a second processing unit, the second processing unit being configured to: In the event that the motor controller fails again, acquire the second operating data of the motor controller during the sampling period; Given that the fault memory includes a first partition, determine the second partition in the fault memory; Store the second running data in the second partition.

[0084] In some embodiments of this application, a vehicle data processing device 200 is provided, further comprising a third processing unit, the third processing unit being configured to: Obtain the second storage address and standard data structure of the second partition; The data structure of the second running data is converted into a standard data structure so that the second running data is updated to standardized data. Based on the second storage address, standardized data is stored in the second partition.

[0085] In some embodiments of this application, a vehicle data processing device 200 is provided, further comprising a third processing unit, the third processing unit being configured to: In the event that the motor controller fails again, acquire the third operating data of the motor controller during the sampling period; After clearing the data inside the second partition, the third runtime data is stored in the second partition.

[0086] In some embodiments of this application, a vehicle data processing device 200 is provided, further comprising a fifth processing unit, the fifth processing unit being configured to: Get the first storage address of the first partition; Based on the first storage address, read the first running data in the first partition.

[0087] In some embodiments, such as Figure 3As shown, a vehicle data processing device 300 is proposed. The vehicle data processing device 300 includes a processor 302 and a memory 304. The memory 304 stores a computer program, which, when executed by the processor 302, implements the steps of the vehicle data processing method as described in any of the above embodiments. Therefore, the vehicle data processing device 300 possesses all the beneficial effects of the vehicle data processing method in any of the above embodiments, which will not be elaborated further here.

[0088] In some embodiments, a readable storage medium is provided having a program stored thereon, which, when executed by a processor, implements the steps of the vehicle data processing method as described in any of the above embodiments, and thus has all the beneficial technical effects of the vehicle data processing method described in any of the above embodiments.

[0089] It should be noted that the descriptions of each embodiment in the above embodiments have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0090] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-readable program code.

[0091] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded computer, or other programmable vehicle data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable vehicle data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0092] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable vehicle's data processing equipment to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1The function specified in one or more boxes.

[0093] These computer program instructions can also be loaded onto a computer or other programmable vehicle data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0094] This application also provides a computer program product, which includes computer software instructions that, when executed on a processing device, cause the processing device to execute a process of a vehicle data processing method.

[0095] A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).

[0096] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0097] In the several embodiments provided in this application, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or indirect coupling or communication connection between devices or units, and may be electrical, mechanical, or other forms.

[0098] The units described as separate components may or may not be physically separate. The components shown as units 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 units can be selected to achieve the purpose of this embodiment according to actual needs.

[0099] Furthermore, the functional units 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 as a software functional unit.

[0100] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

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

[0102] Although preferred embodiments have been described in this specification, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this specification.

[0103] Obviously, those skilled in the art can make various modifications and variations to this specification without departing from its spirit and scope. Therefore, if such modifications and variations fall within the scope of the claims and their equivalents, this specification is also intended to include such modifications and variations.

Claims

1. A vehicle data processing method, characterized in that, The vehicle includes a motor controller and a fault memory, and the method includes: In the event of the motor controller failing for the first time, the fault level of the motor controller is determined. When the fault level is greater than a preset level, the first operating data of the motor controller during the sampling period is obtained based on the fault occurrence time of the motor controller, wherein the fault occurrence time belongs to the sampling period. The fault memory is partitioned to determine the first partition in the fault memory; The first running data is stored in the first partition.

2. The method according to claim 1, characterized in that, The sampling period includes a pre-fault period and a post-fault period. The first operating data includes pre-fault data and post-fault data. The step of obtaining the first operating data of the motor controller within the sampling period based on the fault occurrence time of the motor controller includes: Based on the time of the fault occurrence, the sampling start time and sampling end time are determined, wherein the time of the fault occurrence is between the sampling start time and the sampling end time; Based on the sampling start time and the fault occurrence time, the pre-fault period is determined, and based on the fault occurrence time and the sampling end time, the post-fault period is determined. The pre-fault data of the motor controller during the pre-fault period is obtained, and the post-fault data of the motor controller during the post-fault period is obtained.

3. The method according to claim 1, characterized in that, The step of storing the first runtime data in the first partition includes: Obtain the first storage address and standard data structure of the first partition; The data structure of the first running data is converted into the standard data structure so that the first running data is updated to standardized data. Based on the first storage address, the standardized data is stored in the first partition.

4. The method according to claim 1, characterized in that, After storing the first runtime data in the first partition, the method further includes: In the event that the motor controller malfunctions again, the second operating data of the motor controller during the sampling period shall be acquired; Given that the fault memory includes a first partition, determine the second partition in the fault memory; The second runtime data is stored in the second partition.

5. The method according to claim 4, characterized in that, The step of storing the second runtime data in the second partition includes: Obtain the second storage address and standard data structure of the second partition; The data structure of the second running data is converted into the standard data structure so that the second running data is updated to standardized data. Based on the second storage address, the standardized data is stored in the second partition.

6. The method according to claim 4, characterized in that, After storing the second runtime data in the second partition, the method further includes: In the event that the motor controller malfunctions again, the third operating data of the motor controller during the sampling period shall be acquired; After clearing the data inside the second partition, the third runtime data is stored in the second partition.

7. The method according to any one of claims 1 to 6, characterized in that, After storing the first runtime data in the first partition, the method further includes: Obtain the first storage address of the first partition; Based on the first storage address, read the first running data from the first partition.

8. A vehicle data processing device, characterized in that, The vehicle includes a motor controller and a fault memory, and the device includes: A determining unit is used to determine the fault level of the motor controller when the motor controller fails for the first time. The sampling unit is used to acquire the first operating data of the motor controller during the sampling period based on the time of the fault occurrence of the motor controller when the fault level is greater than a preset level. The time of the fault occurrence belongs to the sampling period. The processing unit is used to perform partitioning processing on the fault memory and determine the first partition in the fault memory; A storage unit is used to store the first running data in the first partition.

9. A data processing device for a vehicle, characterized in that, include: processor; A memory, in which programs or instructions are stored, wherein a processor, when executing programs or instructions in the memory, implements the steps of the vehicle data processing method as described in any one of claims 1 to 7.

10. A readable storage medium, characterized in that, A program or instructions are stored on a readable storage medium, which, when executed by a processor, implement the steps of the data processing method for a vehicle as described in any one of claims 1 to 7.