Vehicle data storage method and device, vehicle and computer storage medium

By determining the working conditions and data storage process based on power mode and network management information in the central domain control unit of the smart car, the challenge of synchronization and backup of the energy consumption data of smart car is solved, and the complete and accurate storage of data is achieved, and the normal operation and maintenance of the vehicle is supported.

CN119851367APending Publication Date: 2025-04-18ROX MOTOR TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411997158.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

There are challenges in the synchronization and backup of energy consumption data generated by smart cars during work, resulting in data loss and inaccurate recording, affecting the operation, diagnosis and maintenance of the vehicle.

Method used

By determining the current working condition of the vehicle based on the power mode information and network management information in the central domain control unit, and matching it with the preset working condition, the target working condition and the corresponding data storage process are determined, and the data to be stored is then obtained and stored in the target memory.

Benefits of technology

It is of great value to ensure that the data is stored in the target memory under different working conditions of the vehicle, thereby ensuring that the vehicle operation data can be obtained completely and accurately during the vehicle operation, diagnosis and maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119851367A_ABST
    Figure CN119851367A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle data storage method and device, a vehicle and a computer storage medium. The method comprises the following steps: determining the current working condition of the vehicle according to power supply mode information and network management information; matching the current working condition with a plurality of preset working conditions to determine a target working condition; determining a data storage process corresponding to the target working condition according to the target working condition; according to a data storage process corresponding to the target working condition, to-be-stored data is obtained, the to-be-stored data is stored in a target memory, and the target memory is determined based on the data storage process. According to the embodiment of the invention, the data can be ensured to be stored under different working conditions of the vehicle, so that the data in the running process of the vehicle can be completely and accurately obtained in the subsequent running, diagnosis and maintenance processes of the vehicle, and the method has important value for normal running and maintenance of the vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the advancement of science and technology and the development of the economy, smart cars have gradually become popular as an important means of transportation and have become an indispensable part of people's daily lives.

[0003] Smart cars generate a lot of energy consumption data during operation, such as total mileage, total driving time, and pure electric driving mileage, etc. These energy consumption data are crucial for vehicle operation, diagnosis, and maintenance.

[0004] Therefore, the synchronization and backup of vehicle energy consumption data has become one of the important challenges faced by relevant technicians. Summary of the invention

[0005] The embodiments of the present application provide a vehicle data storage method, device, vehicle and computer storage medium, which can realize synchronization and backup of vehicle data.

[0006] In a first aspect, an embodiment of the present application provides a vehicle data storage method, which is applied to a central domain control unit, and the method includes: determining the current operating condition of the vehicle based on power mode information and network management information; matching the current operating condition with multiple preset operating conditions to determine the target operating condition; determining the data storage process corresponding to the target operating condition based on the target operating condition; acquiring the data to be stored according to the data storage process corresponding to the target operating condition, and storing the data to be stored in the target memory, wherein the target memory is determined based on the data storage process.

[0007] In one embodiment, the data storage process corresponding to the power-on switching condition includes: determining first data to be stored based on first data obtained from the first controller, second data obtained from the second memory, and first historical data obtained from the first memory, and storing the first data to be stored in the first memory; the data storage process corresponding to the driving condition includes: determining second data to be stored based on temporary data obtained from the first controller, and storing the second data to be stored in the second memory.

[0008] In one embodiment, the target operating condition includes a power-on switching condition; obtaining data to be stored according to a data storage process corresponding to the target operating condition, and storing the data to be stored in a target memory, including: obtaining first data from a first controller; obtaining second data from a second memory; obtaining first historical data from the first memory; when it is determined that the data difference between the first historical data and the first data satisfies a preset synchronization condition, judging whether the difference between the first data and the second data satisfies the preset synchronization condition, and if so, using the first data as the first data to be stored, and storing the first data to be stored in the first memory and the second memory; if not, using the second data as the first data to be stored, and storing the first data to be stored in the first memory.

[0009] In one embodiment, the first data includes multiple data of different dimensions; the data of different dimensions include at least total vehicle mileage data, total driving time data, vehicle identification code and pure electric driving mileage data; after obtaining the first data from the first controller, the method also includes: performing validity verification on multiple data of different dimensions according to a preset priority order.

[0010] In one embodiment, the method further includes: acquiring target data from the first memory; and sending the data to be stored to the first controller.

[0011] In one embodiment, the target operating condition includes a driving operating condition; obtaining the data to be stored according to the data storage process corresponding to the target operating condition, and storing the data to be stored in the target memory, including: receiving temporary data; performing validity verification on the temporary data; and when it is determined that the temporary data verification has passed, storing the temporary data as second data to be stored in the second memory.

[0012] In one embodiment, after determining that the temporary data verification has passed, storing the temporary data as third data in the second memory, the method also includes: obtaining the third data from the second memory when determining that the vehicle has switched to a power-off condition; obtaining the second historical storage data from the first memory; and storing the third data in the first memory when determining that the difference between the third data and the second historical storage data meets a preset synchronization condition.

[0013] In a second aspect, an embodiment of the present application provides a vehicle data storage device, which is applied to a central domain control unit, and the device includes:

[0014] A first determination module, used to determine the current working condition of the vehicle according to the power mode information and the network management information;

[0015] A second determination module is used to match the current working condition with a plurality of preset working conditions to determine the target working condition;

[0016] A third determination module is used to determine a data storage process corresponding to the target working condition according to the target working condition;

[0017] A storage module is used to obtain the data to be stored according to the data storage process corresponding to the target working condition, and store the data to be stored in the target storage, wherein the target storage is determined based on the data storage process.

[0018] In a third aspect, an embodiment of the present application provides a vehicle, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the vehicle data storage method in the first aspect or any one of the embodiments of the first aspect is implemented.

[0019] In a fourth aspect, a computer-readable storage medium is provided, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the vehicle data storage method in the first aspect or any one of the embodiments of the first aspect is implemented.

[0020] In a fifth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes a vehicle data storage method such as the first aspect or any one of the embodiments of the first aspect.

[0021] The vehicle data storage method, device, equipment and computer storage medium of the embodiment of the present application determine the current working condition of the vehicle through power mode information and network management information, and match the current working condition with multiple preset working conditions, thereby determining the target working condition and the data storage process corresponding to the target working condition, and then obtaining the data to be stored according to the target data storage process, and storing the data to be stored. It can be understood that in the embodiment of the present application, data can be stored in the target memory under different working conditions of the vehicle, thereby ensuring that the data during the operation of the vehicle can be completely and accurately obtained during the operation, diagnosis and maintenance of the subsequent vehicle, which is of great value to the normal operation and maintenance of the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0023] Figure 1 An architectural diagram of a vehicle data storage system provided by an embodiment of the present application is shown;

[0024] Figure 2 A schematic diagram showing a process flow of a vehicle data storage method provided by an embodiment of the present application is shown;

[0025] Figure 3 A schematic diagram showing a process flow of a vehicle data storage method provided by an embodiment of the present application is shown;

[0026] Figure 4 A schematic diagram of a data storage process in a power-off sleep state provided by an embodiment of the present application is shown;

[0027] Figure 5 A schematic diagram showing a process flow of a vehicle data storage method provided by an embodiment of the present application is shown;

[0028] Figure 6 A schematic diagram showing a process flow of a vehicle data storage method provided by an embodiment of the present application is shown;

[0029] Figure 7 A schematic diagram of a data storage process under a power-on condition provided by an embodiment of the present application is shown;

[0030] Figure 8 A schematic diagram showing a process flow of a vehicle data storage method provided by an embodiment of the present application

[0031] Fig. 9 A schematic diagram of a data storage process provided by an embodiment of the present application is shown

[0032] Fig.10 is a structural schematic diagram of a vehicle data storage device provided by another embodiment of the present application;

[0033] Fig.11 It is a schematic diagram of the structure of a vehicle provided in yet another embodiment of the present application. DETAILED DESCRIPTION

[0034] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0035] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0036] With the development of science and technology, smart cars are becoming more and more popular. A large amount of energy consumption data will be generated during the driving of smart cars, such as total mileage data, total driving time, and pure electric driving mileage. These energy consumption data are crucial for the operation, diagnosis and maintenance of vehicles.

[0037] Figure 1 The architecture diagram of a vehicle data storage system provided by an embodiment of the present application is shown as follows: Figure 1 As shown, a central control unit 110 (CUU) and an infotainment domain control unit (IDCU) 120 may exist in the vehicle data storage system 100, wherein the central control unit may include a first microcontroller unit (MCU) 111, a first memory 112, and a second memory 113. The first memory may be a non-volatile memory, for example, the first memory may be an electrically erasable programmable read-only memory (EEPROM); the second memory may be a volatile memory, for example, the second memory may be a random access memory (RAM). The IDCU may be used to count various energy consumption data during vehicle driving, for example, the IDCU may perform integral calculations based on the wheel number signal of the wheel to obtain the mileage of the vehicle. In addition, the central control unit and the IDCU may be connected via a controller area network (CAN) bus, so that the signal of the IDCU may be transmitted to the CCU for storage.

[0038] It can be understood that the above-mentioned RAM and EEPROM can be exemplary descriptions of volatile memory and non-volatile memory. Volatile memory can also include cache, registers, etc.; non-volatile memory can also include hard disk, solid state drive and Flash memory, etc. Therefore, the implementation of this application does not impose any restrictions on this.

[0039] However, in the related art, when the CUU stores data, the data may not be stored in the CUU because the vehicle is powered on immediately after being powered off, resulting in the loss of energy consumption data during the operation of the vehicle, causing inaccurate recording of the vehicle's energy consumption data, thereby affecting the operation, diagnosis and maintenance of the vehicle.

[0040] In order to solve the problems of the prior art, the embodiments of the present application provide a vehicle data storage method, device, vehicle and computer storage medium. The vehicle data storage method provided by the embodiments of the present application is first introduced below.

[0041] Figure 2 FIG. 1 is a flow chart of a vehicle data storage method provided by an embodiment of the present application. Figure 2 As shown, the vehicle data storage method includes the following steps:

[0042] S210: Determine the current working condition of the vehicle according to the power mode information and the network management information.

[0043] Exemplarily, the vehicle may include multiple power modes, and different power modes correspond to different states and / or operating conditions of the vehicle. In one example, the power mode may include a sleep mode, a standby (pre-ignition) mode, an ignition mode, and an operating mode.

[0044] For example, the network management information may be used to characterize the status of a CAN network in a vehicle.

[0045] When the vehicle is in sleep mode, the vehicle power is off and the CAN network is generally in sleep mode. When the vehicle is in standby mode, ignition mode, or running mode, the vehicle is powered on and the CAN network is generally awakened and can transmit signals.

[0046] For example, the current working condition of the vehicle can be obtained by acquiring the vehicle power status and CAN network status.

[0047] In one example, the current operating condition of the vehicle may be that the power is in sleep mode and the CAN network is in sleep mode; or, the current operating condition of the vehicle may be that the power is in sleep mode and the CAN network is not fully sleep.

[0048] Exemplarily, the MCU in the CUU may obtain the power mode information and the network management information, and determine the current working condition of the vehicle according to the power mode information and the network management information.

[0049] S220, matching the current working condition with a plurality of preset working conditions to determine a target working condition.

[0050] Exemplarily, relevant technical personnel may pre-formulate different working conditions according to different data storage requirements, wherein different working conditions include at least power status information and CAN network status information.

[0051] For example, the power state and CAN network state in the current working condition of the vehicle can be matched with each working condition in the preset working condition, and the working condition in the preset working condition that matches the current working condition is used as the target working condition.

[0052] In some optional embodiments, the multiple preset operating conditions include power-on switching conditions and operating conditions.

[0053] In one example, when it is detected that the power state is switched from the standby mode to the ignition mode, and the CAN network state is changed from the sleep state to the activated state, it can be determined that the current operating condition is the power-on switching operating condition.

[0054] In another example, when it is detected that the power state is the running mode and the CAN network state is the activated state, it can be determined that the current operating condition is the running condition.

[0055] S230. Determine a data storage process corresponding to the target operating condition according to the target operating condition.

[0056] Exemplarily, the target operating condition may be any one of a plurality of preset operating conditions, wherein the plurality of preset operating conditions include a power-on switching operating condition and an operating operating condition, and therefore, the target operating condition may be any one of the power-on switching operating condition and the operating operating condition.

[0057] Exemplarily, different target working conditions may correspond to different data storage processes.

[0058] In some optional embodiments, the data storage process corresponding to the power-on switching condition includes: determining first data to be stored based on first data obtained from the first controller, second data obtained from the second memory, and first historical data obtained from the first memory, and storing the first data to be stored in the first memory. The data storage process corresponding to the driving condition includes: determining second data to be stored based on temporary data obtained from the first controller, and storing the second data to be stored in the second memory.

[0059] S240, acquiring the data to be stored according to the data storage process corresponding to the target working condition, and storing the data to be stored in the target memory.

[0060] The target storage is determined based on the data storage process.

[0061] Exemplarily, the data to be stored may be determined according to the data storage process corresponding to the target working condition, and the data to be stored may be stored in the first memory or the second memory. The target memory may be any one of the first memory and the second memory.

[0062] In one example, the data to be stored may be stored in a non-volatile memory, such as an EEPROM. In another example, the data to be stored may be stored in a volatile memory, such as a RAM.

[0063] In the embodiment of the present application, the current working condition of the vehicle is determined through power mode information and network management information, and the current working condition is matched with multiple preset working conditions, so as to determine the target working condition and the data storage process corresponding to the target working condition, and then the data to be stored is obtained according to the target data storage process to realize data storage. It can be understood that in the embodiment of the present application, data can be stored in the target memory under different working conditions of the vehicle, so as to ensure that the data in the vehicle operation process can be completely and accurately obtained during the subsequent operation, diagnosis and maintenance of the vehicle, which is of great value for the normal operation and maintenance of the vehicle.

[0064] In order to realize data storage of power-on switching conditions, as another implementation method of the present application, the present application also provides another implementation method of the vehicle data storage method, please refer to the following embodiments for details.

[0065] Figure 3 FIG. 1 is a flow chart of a vehicle data storage method provided by an embodiment of the present application. Figure 3 As shown, the vehicle data storage method includes the following steps:

[0066] S310: Determine the current working condition of the vehicle according to the power mode information and the network management information.

[0067] S320, matching the current working condition with a plurality of preset working conditions to determine a target working condition.

[0068] S330. Determine a data storage process corresponding to the target operating condition according to the target operating condition.

[0069] Exemplarily, steps S310-S330 are consistent with steps S210-S230, and are not described in detail here. In the case where it is determined that the current operating condition of the vehicle is a power-on switching condition, it can be determined that the data storage process corresponding to the power-on switching condition is to determine the first data to be stored based on the first data obtained from the first controller, the second data obtained from the second memory, and the first historical data obtained from the first memory, and store the first data to be stored in the first memory.

[0070] S340: Acquire first data from the first controller.

[0071] Exemplarily, the first controller may be a controller for generating first data, wherein the first data may be energy consumption data.

[0072] In one example, the first controller may be an IDCU. After calculating the energy consumption data, the IDCU may broadcast the energy consumption data to a CAN bus, so that the CUU can obtain the energy consumption data through the CAN bus.

[0073] In some optional embodiments, the first data may include a plurality of data of different dimensions. Furthermore, after the first data is acquired from the first controller, validity checks may be performed on the plurality of data of different dimensions according to a preset priority order.

[0074] Exemplarily, the preset priority order can be set by a technician according to different requirements.

[0075] Exemplarily, when different data in the first data are verified in order of priority, the order of priority from high to low can be verified first, and the data of different dimensions in the first data can be verified.

[0076] In some optional embodiments, the different dimensional data may include at least total vehicle mileage data, total driving time data, vehicle identification code and pure electric driving mileage data, and the priority order of total vehicle mileage data may be set to the highest priority.

[0077] For example, technicians can also set higher priorities for data of other dimensions according to different needs, for example, the priority of the vehicle identification code can be set higher. It is understandable that the priority order of data of different dimensions in this application is only for illustrative purposes and is not specifically limited in this application.

[0078] In an embodiment of the present application, by setting the priority of each dimensional data in the first data and verifying the first data in order of priority, it is ensured that the validity of the data that the technicians believe to be relatively important can be confirmed earlier. This can improve the efficiency of data processing, reduce subsequent work delays and waste of resources due to important data errors, and provide a solid foundation for subsequent data storage.

[0079] S350: Acquire second data from the second memory.

[0080] Exemplarily, after the vehicle is powered on again, the second data in the volatile memory may be read, for example, the data currently stored in the RAM may be obtained.

[0081] S360: Acquire first historical data from the first memory.

[0082] Exemplarily, after the vehicle is powered on again, the first historical data in the non-volatile memory may be read, for example, the data currently stored in the EEPROM may be obtained.

[0083] S370: When it is determined that the data difference between the first historical data and the first data meets the preset synchronization condition, determine whether the data difference between the first data and the second data meets the preset synchronization condition, and if so, execute S380. If not, execute S390.

[0084] S380: Use the first data as first data to be stored, and store the first data to be stored in the first memory and the second memory.

[0085] S390: Use the second data as the first data to be stored, and store the first data to be stored in the first memory.

[0086] Exemplarily, when it is determined that the difference between the first historical data stored in the non-volatile memory and the first data in the first controller meets the preset synchronization condition, it can be determined whether the data difference between the first data in the first controller and the second data stored in the volatile memory meets the preset stop condition. If it is determined that the data difference between the first data in the first controller and the second data stored in the volatile memory meets the preset stop condition, step S380 can be executed, that is, the first data in the first controller is used as the first data to be stored, and the first data to be stored is stored in the first memory and the second memory respectively; if it is determined that the data difference between the first data in the first controller and the second data stored in the volatile memory does not meet the preset stop condition, step S390 can be executed, that is, the second data stored in the volatile memory is used as the first data to be stored, and the first data to be stored is stored in the first memory.

[0087] For example, Figure 4 A schematic diagram of a data storage process under a power-on condition provided by an embodiment of the present application is shown. Figure 4 As shown, first, step S401 can be executed to read the first historical data stored in the EEPROM and receive the first data sent by the IDCU, wherein the first data can be energy consumption data, and the energy consumption data includes total mileage data, VIN code, total driving time and pure electric driving mileage data. Further, step S402 is executed to check whether the first data can pass the cyclic redundancy check. If it is determined that the first data passes the cyclic redundancy check, step S403 can be executed to determine whether the total mileage data meets the preset mileage condition, for example, it can be determined whether the mileage data is greater than 500 kilometers.

[0088] Further, if it is determined that the preset mileage condition is met, step S404 may be executed, that is, whether the VIN code in the first data passes the verification. If it is determined that the VIN code in the first data passes the verification, step S405 is executed to verify whether the total mileage data is valid. If it is determined that the total mileage data is valid, step S406 is executed to synchronize the total mileage data to the RAM.

[0089] Furthermore, S407 is executed to check whether the total driving time is valid. If the total driving time is determined to be valid, step S408 is executed to store the total driving time in RAM. S409 is executed to check the pure electric mileage data. If the pure electric mileage data is determined to be valid, S410 can be executed to store the pure electric mileage data in RAM.

[0090] Further, step S411 may be executed to determine whether the power mode of the vehicle is switched from the sleep mode to the working mode, wherein the working mode includes at least the ignition mode and the running mode, and the vehicle is in the power-on state at this time, and the CAN network is awakened, and data transmission can be performed. If it is determined that the vehicle is in the working mode, S412 may be executed to determine whether the difference between the first data and the data in the EEPROM meets the preset synchronization condition. If it is determined that the difference between the first data and the data in the EEPROM meets the preset synchronization condition, S413 may be executed. If it is determined that the difference between the data in the RAM and the data in the EEPROM meets the preset synchronization condition, the data in the RAM may be stored in the EEPROM to achieve data storage.

[0091] In one example, data of different dimensions in the first data may be verified separately and stored in RAM respectively, and then the data to be stored may be stored in EEPROM through RAM.

[0092] In another example, when the data difference between the first data sent by the first controller and the RAM does not meet the preset synchronization condition, the data in the RAM may be stored in the EEPROM.

[0093] In the embodiment of the present application, after the vehicle is powered on again, the first data is obtained from the IDCU and compared with the data in the volatile memory, thereby determining the first data to be stored, and storing the first data to be stored in the non-volatile memory to achieve data synchronization. It can be understood that in the embodiment of the present application, after the vehicle is powered on, the CCU obtains the first data from the IDCU, and determines whether to re-update and store the data in the non-volatile memory in the CUU by the data stored in the volatile memory and the preset synchronization conditions. This can avoid the problem that the volatile memory is not stored in the non-volatile memory due to the power-on immediately after the vehicle is unloaded, ensuring that the energy consumption data of the vehicle can be stored in a timely and accurate manner, thereby ensuring the correctness of the data in the subsequent vehicle maintenance during the normal operation of the vehicle.

[0094] Furthermore, in order to achieve data synchronization of the IDCU, as another implementation method of the present application, the present application also provides another implementation method of the vehicle data storage method, please refer to the following embodiments for details.

[0095] Figure 5 FIG. 1 is a flow chart of a vehicle data storage method provided by an embodiment of the present application. Figure 5 As shown, the vehicle data storage method includes the following steps:

[0096] S501. Determine the current working condition of the vehicle according to the power mode information and the network management information.

[0097] S502: Match the current working condition with a plurality of preset working conditions to determine a target working condition.

[0098] S503: According to the target working condition, determine a data storage process corresponding to the target working condition.

[0099] S504: Acquire first data from the first controller.

[0100] S505: Acquire second data from the second memory.

[0101] S506: Acquire first historical data from the first memory.

[0102] S507: When it is determined that the data difference between the first historical data and the first data meets the preset synchronization condition, determine whether the data difference between the first data and the second data meets the preset synchronization condition, and if so, execute S508. If not, execute S509.

[0103] S508: Use the first data as first data to be stored, and store the first data to be stored in the first memory and the second memory.

[0104] S509: Use the second data as the first data to be stored, and store the first data to be stored in the first memory.

[0105] Exemplarily, steps S501-S509 are consistent with steps S310-S390, and will not be described in detail here.

[0106] S510: Acquire target data from the first memory.

[0107] Exemplarily, the target data may be acquired from the non-volatile memory, wherein the target data may refer to data currently stored in the first memory, ie, the non-volatile memory. For example, the target data may be data stored in an EEPROM.

[0108] Exemplarily, the target data may be first data to be stored that has been stored in the first memory.

[0109] Exemplarily, the MCU in the CUU may periodically read the data stored in the non-volatile memory. In one example, after storing the first data to be stored in the EEPROM, the MCU may periodically read the data stored in the EEPROM.

[0110] S511. Send target data to the first controller.

[0111] Exemplarily, after reading the data in the non-volatile memory, the MCU may broadcast the read data to the CAN bus, so that the first controller, ie, the IDCU, may receive the data through the CAN bus.

[0112] For example, Figure 6 A schematic diagram of a data storage process provided by an embodiment of the present application is shown. Figure 6 As shown, in step S601, the MCU in the CUU can periodically read the data in the EEPROM. Next, execute S602 to update the message to the data obtained from the EEPROM, and perform a validity check on the message. If the check is passed, step S603 can be executed to send the message to the CAN bus. Further, the IDCU can obtain the message through the CAN bus, and read and verify the data in the message. Furthermore, if the check is passed, the IDCU can determine whether the preset synchronization condition is met based on the data in the message and the data stored in itself. If it is determined that the preset synchronization condition is met, the IDCU can update its own data.

[0113] In one example, the IDCU may have a second microcontroller unit, a third memory, and a fourth memory. The third memory may be a non-volatile memory, for example, the third memory may be an electrically erasable programmable read-only memory (EEPROM); the fourth memory may be a volatile memory, for example, the fourth memory may be a random access memory (RAM). Furthermore, when the IDCU determines that the difference between the data stored in the third memory and the data in the message meets the preset synchronization condition, the data in the message may be updated to the third memory and / or the fourth memory.

[0114] In the embodiment of the present application, the MCU in the CUU broadcasts the data stored in the non-volatile memory, so that the data in the related components that interact with it can be synchronously updated. When the related components are replaced, it is ensured that they can obtain the correct historical data, thereby facilitating the replacement of components in the vehicle.

[0115] In order to realize data storage under driving conditions, as another implementation method of the present application, the present application also provides another implementation method of the vehicle data storage method, please refer to the following embodiments for details.

[0116] Figure 7 FIG. 1 is a flow chart of a vehicle data storage method provided by an embodiment of the present application. Figure 7 As shown, the vehicle data storage method includes the following steps:

[0117] S710: Determine the current operating condition of the vehicle according to the power mode information and the network management information.

[0118] S720: Match the current working condition with a plurality of preset working conditions to determine a target working condition.

[0119] S730. Determine a data storage process corresponding to the target operating condition according to the target operating condition.

[0120] Exemplarily, steps S710-S730 are consistent with steps S210-S230 and are not described in detail here. In particular, when it is determined that the current operating condition of the vehicle is a driving condition, the data storage process corresponding to the driving condition can be determined as determining the second data to be stored based on the second data obtained from the second memory, and storing the second data to be stored in the second memory.

[0121] S740: Receive temporary data.

[0122] Exemplarily, the temporary data may be temporary data sent by the IDCU via the CAN bus, wherein the temporary data may include energy consumption data to characterize data of the vehicle's driving process.

[0123] In one example, the energy consumption data includes at least total mileage data, vehicle identification number (VIN), total driving time, pure electric driving mileage, etc.

[0124] In one example, the IDCU can collect energy consumption data during vehicle driving and broadcast the energy consumption data to the CAN bus. The CUU can receive the energy consumption data sent by the IDCU through the CAN bus.

[0125] S750: Perform validity check on temporary data.

[0126] Exemplarily, after receiving the energy consumption data, the CUU may perform validity verification on the energy consumption data, thereby ensuring the validity of the data stored in the memory.

[0127] In one example, the data of various dimensions in the energy consumption data can be verified separately, and the VIN code in the energy consumption data can be verified to be consistent with the VIN code stored in the energy consumption data. Furthermore, the energy consumption data can be verified and compared by a checksum algorithm to ensure that there is no error or change in the energy consumption data during transmission.

[0128] S760: When it is determined that the temporary data verification has passed, the temporary data is stored in the second memory as second data to be stored.

[0129] Exemplarily, when it is determined that the energy consumption data verification has passed, the energy consumption data may be stored in the second memory.

[0130] In the embodiment of the present application, by receiving temporary data sent by the IDCU and performing validity verification on the temporary data, it is possible to ensure that the data stored in the volatile memory is valid data, that is, the data in the volatile memory is correct temporary data, so that the correctness of the data stored in the non-volatile memory can be guaranteed.

[0131] Furthermore, in order to realize data storage, as another implementation method of the present application, the present application also provides another implementation method of the vehicle data storage method, please refer to the following embodiments for details.

[0132] Figure 8 FIG. 1 is a flow chart of a vehicle data storage method provided by an embodiment of the present application. Figure 8 As shown, the vehicle data storage method includes the following steps:

[0133] S801. Determine the current working condition of the vehicle according to the power mode information and the network management information.

[0134] S802: Match the current working condition with a plurality of preset working conditions to determine a target working condition.

[0135] S803. According to the target working condition, determine a data storage process corresponding to the target working condition.

[0136] S804: Receive temporary data.

[0137] S805: Perform validity check on temporary data.

[0138] S806: When it is determined that the temporary data verification has passed, the temporary data is stored in the second memory as second data to be stored.

[0139] Exemplarily, steps S801-S806 are consistent with steps S710-S760, and are not described in detail here.

[0140] S807: When it is determined that the operating condition of the vehicle is switched to the power-off condition, obtain third data from the second memory.

[0141] Exemplarily, when it is detected that the vehicle power state switches from the running state or the ignition state to the sleep state, and the CAN network is in a completely sleep state, it can be determined that the current operating condition of the vehicle is the power-off condition.

[0142] Exemplarily, the third data may be read from the second memory by the MCU in the CUU, wherein the third data may be temporary data stored in the second memory, for example, the third data may be the second data to be stored that has been stored in the second memory.

[0143] In one example, the second memory may be a volatile memory, such as a RAM.

[0144] S808: Acquire second historical storage data from the first memory.

[0145] Exemplarily, the CUU may read the second historical storage data from the first memory through the MCU deployed in the CCU, wherein the second historical storage data may be the data currently stored in the first memory.

[0146] S809: When it is determined that the difference between the third data and the second historical storage data meets a preset synchronization condition, store the third data in the first memory.

[0147] Exemplarily, the preset synchronization condition may be a synchronization condition determined by a technician according to different requirements. In addition, different data synchronization conditions may correspond to data of different dimensions in the third data and the second historical data.

[0148] In one example, when there is total mileage data in both the second historical data and the third data, the preset synchronization condition can be set to determine whether the difference between the mileage value corresponding to the total mileage data in the third data and the mileage value corresponding to the total mileage data in the second historical data is greater than 10 kilometers. When it is determined whether the difference between the mileage value corresponding to the total mileage data in the third data and the mileage value corresponding to the total mileage data in the second historical data is greater than 10 kilometers, the total mileage data in the third data can be stored in the first memory.

[0149] For example, Fig. 9 A schematic diagram of a data storage process in a power-off sleep state provided by an embodiment of the present application is shown. Fig. 9 As shown, first, step S910 can be executed, that is, judging whether the vehicle is in a power-off condition. If it is determined that the vehicle is in a power-off condition, step S920 can be executed, that is, judging whether the RAM data in the CUU is updated. If it is determined that the data in the RAM is updated, step S930 is executed, that is, judging whether the difference between the data in the RAM and the data in the EEPROM meets the preset synchronization condition. If it is determined that the difference between the data in the RAM and the data in the EEPROM meets the preset synchronization condition, the invalid values ​​in the data in the RAM can be removed, and the data after the invalid values ​​are removed can be stored in the EEPROM to achieve data synchronization.

[0150] In the embodiment of the present application, when the power mode in the vehicle is in the power-off state and the CAN network state is in the dormant state, the data in the volatile memory is stored in the non-volatile memory, thereby avoiding data loss. In addition, by setting the preset synchronization condition, it is possible to ensure that the stored data avoids too many write operations to the non-volatile memory, which is beneficial to maintaining the life of the non-volatile memory.

[0151] Based on the vehicle data storage method provided in the above embodiment, the present application also provides a specific implementation of the vehicle data storage device. Please refer to the following embodiment.

[0152] See first Fig.10 The vehicle data storage device provided in the embodiment of the present application includes the following devices:

[0153] A first determination module 1001 is used to determine the current working condition of the vehicle according to the power mode information and the network management information;

[0154] The second determination module 1002 is used to match the current working condition with a plurality of preset working conditions to determine the target working condition;

[0155] The third determination module 1003 is used to determine the data storage process corresponding to the target working condition according to the target working condition;

[0156] The storage module 1004 is used to obtain the data to be stored according to the data storage process corresponding to the target working condition, and store the data to be stored in the target storage, wherein the target storage is determined based on the data storage process.

[0157] As an implementation method of the present application, multiple preset operating conditions include a power-on switching condition and a driving condition; the data storage process corresponding to the power-on switching condition includes: determining first data to be stored based on first data obtained from the first controller, second data obtained from the second memory, and first historical data obtained from the first memory, and storing the first data to be stored in the first memory; the data storage process corresponding to the driving condition includes: determining second data to be stored based on temporary data obtained from the first controller, and storing the second data to be stored in the second memory.

[0158] As an implementation method of the present application, the target operating condition includes a power-on switching condition; the storage module 1004 obtains the data to be stored in accordance with the data storage process corresponding to the target operating condition in the following manner, and stores the data to be stored in the target memory: obtains the first data from the first controller; obtains the second data from the second memory; obtains the first historical data from the first memory; when it is determined that the data difference between the first historical data and the first data meets the preset synchronization condition, determines whether the difference between the first data and the second data meets the preset synchronization condition; if so, uses the first data as the first data to be stored, and stores the first data to be stored in the first memory and the second memory; if not, uses the second data as the first data to be stored, and stores the first data to be stored in the first memory.

[0159] As an implementation method of the present application, the first data includes multiple data of different dimensions; the data of different dimensions include at least total vehicle mileage data, total driving time data, vehicle identification code and pure electric driving mileage data; after obtaining the first data from the first controller, the storage module 1004 is also used to: perform validity verification on multiple data of different dimensions according to a preset priority order.

[0160] As an implementation of the present application, the device further includes: an acquisition module, used to acquire target data from the first memory; and a sending module, used to send the target data to the first controller.

[0161] As an implementation method of the present application, the target operating condition includes a driving operating condition; the storage module 1004 obtains the data to be stored in accordance with the data storage process corresponding to the target operating condition in the following manner, and stores the data to be stored in the target memory: receiving temporary data; performing validity verification on the temporary data; and when it is determined that the temporary data verification has passed, storing the temporary data as the second data to be stored in the second memory.

[0162] As an implementation method of the present application, when it is determined that the temporary data verification has passed, after storing the temporary data as third data in the second memory, the storage module 1004 is also used to: when it is determined that the vehicle is in a power-off condition, obtain the third data from the second memory; obtain the second historical storage data from the first memory; when it is determined that the difference between the third data and the second historical storage data meets the preset synchronization condition, store the third data in the first memory.

[0163] Fig.11 A schematic diagram of the hardware structure of a vehicle provided in an embodiment of the present application is shown.

[0164] The vehicle may include a processor 1101 and a memory 1102 storing computer program instructions.

[0165] Specifically, the processor 1101 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0166] The memory 1102 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 1102 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 1102 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 1102 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 1102 is a non-volatile solid-state memory.

[0167] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.

[0168] The processor 1101 implements any one of the vehicle data storage methods in the above embodiments by reading and executing computer program instructions stored in the memory 1102 .

[0169] In one example, the vehicle may further include a communication interface 1103 and a bus 1110. Fig.11 As shown, the processor 1101, the memory 1102, and the communication interface 1103 are connected via a bus 1110 and communicate with each other.

[0170] The communication interface 1103 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0171] Bus 1110 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 1110 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.

[0172] The vehicle can execute the vehicle data storage method in the embodiment of the present application based on the power mode information and the network management information, thereby realizing the combination Figure 2 and Fig.10 A vehicle data storage method and apparatus are described.

[0173] In addition, in combination with the vehicle data storage method in the above embodiment, the embodiment of the present application can provide a computer storage medium to implement. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the vehicle data storage methods in the above embodiment is implemented.

[0174] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed, implements any one of the vehicle data storage methods in the above embodiments.

[0175] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0176] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0177] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0178] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0179] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A vehicle data storage method, characterized in that: Applied to a central domain control unit, the method comprises: Determining a current operating condition of the vehicle according to the power mode information and the network management information; Matching the current operating condition with a plurality of preset operating conditions to determine a target operating condition; According to the target operating condition, determine a data storage process corresponding to the target operating condition; The data to be stored is acquired according to the data storage process corresponding to the target working condition, and the data to be stored is stored in a target memory, wherein the target memory is determined based on the data storage process.

2. The method according to claim 1, characterized in that The plurality of preset operating conditions include a power-on switching operating condition and a driving operating condition; The data storage process corresponding to the power-on switching condition includes: determining first data to be stored based on first data obtained from the first controller, second data obtained from the second memory, and first historical data obtained from the first memory, and storing the first data to be stored in the first memory; The data storage process corresponding to the driving condition includes: determining second data to be stored based on temporary data obtained from the first controller, and storing the second data to be stored in the second memory.

3. The method according to claim 1 or 2, characterized in that: The target operating condition includes a power-on switching operating condition; The step of acquiring the data to be stored according to the data storage process corresponding to the target working condition, and storing the data to be stored in the target memory includes: Acquire first data from the first controller; Acquire second data from a second memory; Acquire first historical data from the first memory; When it is determined that the data difference between the first historical data and the first data satisfies the preset synchronization condition, determine whether the difference between the first data and the second data satisfies the preset synchronization condition; if so, use the first data as the first data to be stored, and store the first data to be stored in the first memory and the second memory; if not, use the second data as the first data to be stored, and store the first data to be stored in the first memory.

4. The method according to claim 3, characterized in that The first data includes a plurality of data of different dimensions; the data of different dimensions includes at least vehicle total mileage data, total driving time data, vehicle identification code and pure electric driving mileage data; After acquiring the first data from the first controller, the method further includes: The validity of the data of the multiple different dimensions is checked according to a preset priority order.

5. The method according to claim 3 or 4, characterized in that: The method further comprises: Acquire target data from the first memory; The target data is sent to the first controller.

6. The method according to claim 1 or 2, characterized in that: The target operating condition includes a driving operating condition; The step of acquiring the data to be stored according to the data storage process corresponding to the target working condition, and storing the data to be stored in the target memory includes: Receive temporary data; Performing validity check on the temporary data; When it is determined that the temporary data has passed the verification, the temporary data is stored in the second memory as second data to be stored.

7. The method according to claim 6, characterized in that In the case where it is determined that the temporary data has passed the verification, after storing the temporary data as second data to be stored in the second memory, the method further includes: When it is determined that the operating condition of the vehicle is switched to the power-off condition, obtaining third data from the second memory; Acquire second historical storage data from the first memory; When it is determined that the difference between the third data and the second historical storage data satisfies a preset synchronization condition, the third data is stored in the first memory.

8. A vehicle data storage device, characterized in that: Applied to a central domain control unit, the device comprises: A first determination module, configured to determine a current operating condition of the vehicle according to power mode information and network management information; A second determination module is used to match the current operating condition with a plurality of preset operating conditions to determine a target operating condition; A third determination module is used to determine a data storage process corresponding to the target operating condition according to the target operating condition; A storage module is used to obtain the data to be stored according to the data storage process corresponding to the target working condition, and store the data to be stored in a target storage, wherein the target storage is determined based on the data storage process.

9. A vehicle, characterized in that: The vehicle includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the vehicle data storage method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the vehicle data storage method according to any one of claims 1 to 7 is implemented.

11. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the vehicle data storage method as described in any one of claims 1 to 7.