Vehicle system starting control method, device and equipment and storage medium
By obtaining the data blocks to be initialized in the new energy vehicle system, the data pollution is processed according to the preset strategy to ensure that the system starts normally when data is contaminated, which solves the problem of initialization failure caused by data pollution in the NVM module and improves system reliability and data integrity. sex.
Patent Information
- Application Number
- CN202410838453.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Data contamination of the NVM module in new energy vehicles causes the entire block to fail to initialize, resulting in data loss, affecting the normal operation of the system, and reducing system reliability and user experience.
When the vehicle system starts, the data block to be initialized is obtained, and the data verification result is determined based on the preset data verification strategy and verification results. If the data is contaminated, the preset callback strategy is used to process the contaminated data to ensure that the system can start normally.
In the case of data pollution in the NVM module, the data block is successfully initialized to improve system reliability and data integrity, ensuring that the system can still work normally despite data pollution.
Smart Images

Figure CN118708249A
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control technology, and in particular to a vehicle system startup control method, device, equipment and storage medium. Background Art
[0002] The contamination of NVM module data in new energy vehicles will cause the entire block initialization to fail, resulting in a large amount of data loss, which in turn affects the normal operation of the system. In this case, the system may experience problems such as data inability to read or write, reduced system reliability, and decreased user experience. Therefore, how to ensure that the system can still work normally when data contamination occurs has become an urgent problem to be solved. Summary of the invention
[0003] The main purpose of this application is to provide a vehicle system startup control method, device, equipment and storage medium, aiming to solve the technical problem of how to ensure that the system can still work normally when data pollution occurs.
[0004] To achieve the above objectives, the present application proposes a vehicle system startup control method, the vehicle system startup control method comprising:
[0005] When the target vehicle is in a startup state, obtaining a data block to be initialized;
[0006] Determine a data verification result according to a preset data verification strategy and the data block to be initialized;
[0007] When the data verification result is a data contamination result, determining a data callback result according to the preset data verification strategy, the preset data callback strategy, and the target contamination data corresponding to the data contamination result;
[0008] The vehicle system is controlled to start according to the data callback result.
[0009] In one embodiment, determining the data verification result according to the preset data verification strategy and the data block to be initialized includes:
[0010] Determine the corresponding data check value according to the preset data check strategy and the data block to be initialized;
[0011] Comparing the data check value with an initial check value corresponding to the data block to be initialized to obtain a check value comparison result;
[0012] The data verification result is determined according to the verification value comparison result.
[0013] In one embodiment, determining the data callback result according to the preset data verification strategy, the preset data callback strategy and the target contaminated data corresponding to the data contamination result includes:
[0014] Determine the type of contaminated data according to a preset data callback strategy and target contaminated data corresponding to the data contamination result;
[0015] Determine corresponding target callback data according to the type of contaminated data;
[0016] A data callback result is determined according to the target callback data and the preset data verification strategy.
[0017] In one embodiment, determining corresponding target callback data according to the type of polluted data includes:
[0018] When the contaminated data type is a configuration parameter data type, determining the factory setting data as the target callback data;
[0019] When the pollution data type is a vehicle status data type, determining the target mirror data as target callback data;
[0020] When the polluted data type is a security-associated data type, the target redundant data is determined to be the target callback data.
[0021] In one embodiment, determining the data callback result according to the target callback data and a preset data verification strategy includes:
[0022] Determine a callback verification value according to the target callback data and a preset data verification strategy;
[0023] Compare the data check value with the callback check value to obtain a target comparison result;
[0024] The data callback result is determined according to the target comparison result.
[0025] In one embodiment, controlling the vehicle system to start according to the data callback result includes:
[0026] When the data callback result is a callback success result, controlling the vehicle system to start;
[0027] When the data callback result is a callback failure result, recording the polluted data page header address and continuing to initialize the vehicle system data;
[0028] When the data initialization of the vehicle system is completed, the vehicle system is started.
[0029] In one embodiment, when the data initialization of the vehicle system is completed, after starting the vehicle system, the method further includes:
[0030] Determine a pollution data information set according to a plurality of pollution data page header addresses;
[0031] Analyzing the polluted data information set to determine the cause of data pollution;
[0032] A data protection strategy is generated according to the cause of data pollution.
[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle system startup control device, the vehicle system startup control device comprising:
[0034] An acquisition module, used for acquiring a data block to be initialized when the target vehicle is in a startup state;
[0035] A verification module, used to determine a data verification result according to a preset data verification strategy and the data block to be initialized;
[0036] A callback module, used for determining a data callback result according to a preset data callback strategy and target contaminated data corresponding to the data contamination result when the data verification result is a data contamination result;
[0037] The starting module is used to control the vehicle system to start according to the data callback result.
[0038] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle system startup control device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the vehicle system startup control method described above.
[0039] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the vehicle system startup control method described above are implemented.
[0040] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the vehicle system startup control method described above are implemented.
[0041] The present application obtains the data block to be initialized when the target vehicle is in the startup state; determines the data verification result according to the preset data verification strategy and the data block to be initialized; when the data verification result is a data contamination result, determines the data callback result according to the preset data verification strategy, the preset data callback strategy and the target contaminated data corresponding to the data contamination result; and controls the vehicle system to start according to the data callback result. The above method can realize the successful initialization of the data block when processing data contamination in the NVM module, thereby improving the reliability and data integrity of the system and ensuring that the system can still work normally when data contamination occurs. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0044] Figure 1 A flow chart of the first embodiment of the vehicle system startup control method of the present application;
[0045] Figure 2 A schematic diagram of a data structure provided for the first embodiment of the vehicle system startup control method of the present application;
[0046] Figure 3 A schematic diagram of a data callback process provided in Embodiment 1 of the vehicle system startup control method of the present application;
[0047] Figure 4 A flow chart of the second embodiment of the vehicle system startup control method of the present application;
[0048] Figure 5 A schematic diagram of NVM space configuration provided for the second embodiment of the vehicle system startup control method of the present application;
[0049] Figure 6 This is a schematic diagram of the module structure of the vehicle system startup control device according to an embodiment of the present application;
[0050] Figure 7 This is a schematic diagram of the device structure of the hardware operating environment involved in the vehicle system startup control method in the embodiment of the present application.
[0051] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0052] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0053] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0054] The main solution of the embodiment of the present application is: when the target vehicle is in a startup state, obtaining a data block to be initialized; determining a data verification result according to a preset data verification strategy and the data block to be initialized; when the data verification result is a data contamination result, determining a data callback result according to the preset data verification strategy, the preset data callback strategy and the target contamination data corresponding to the data contamination result; and controlling the vehicle system to start according to the data callback result.
[0055] The contamination of NVM module data in new energy vehicles will cause the entire block initialization to fail, resulting in a large amount of data loss, which in turn affects the normal operation of the system. In this case, the system may experience problems such as data inability to read or write, reduced system reliability, and decreased user experience. Therefore, how to ensure that the system can still work normally when data contamination occurs has become an urgent problem to be solved.
[0056] The present application obtains the data block to be initialized when the target vehicle is in the startup state; determines the data verification result according to the preset data verification strategy and the data block to be initialized; when the data verification result is a data contamination result, determines the data callback result according to the preset data verification strategy, the preset data callback strategy and the target contaminated data corresponding to the data contamination result; and controls the vehicle system to start according to the data callback result. The above method can realize the successful initialization of the data block when processing data contamination in the NVM module, thereby improving the reliability and data integrity of the system and ensuring that the system can still work normally when data contamination occurs.
[0057] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a vehicle system startup control device capable of realizing the above functions, etc. The following takes the vehicle system startup control device as an example of the execution subject to illustrate this embodiment and the following embodiments.
[0058] Based on this, the embodiment of the present application provides a vehicle system startup control method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the vehicle system startup control method of the present application.
[0059] In this embodiment, the vehicle system startup control method includes steps S10 to S40:
[0060] Step S10, when the target vehicle is in a startup state, obtaining a data block to be initialized;
[0061] It should be noted that the general initialization mechanism uses CRC check to verify data. If CRC fails, it is considered that the data is wrong / contaminated. At this time, the entire block is marked as untrustworthy and initialization fails. There are also solutions that use ECC error correction code verification, which has data proofreading capabilities within a certain range. The ECC solution fails to initialize the block when the proofreading fails. The underlying hardware structure of the NVM module is EEPROM or FLASH, which generally uses the data page as the minimum operation unit for erasing and writing. Several pages form a block for storing data. The data structure is as follows: Figure 2 As shown in the figure, the presence of polluted data in a data page causes the block to fail to initialize, and other normal data pages in the block cannot be accessed, resulting in normal data loss.
[0062] It should be noted that this embodiment uses CRC check for verification. The difference from the general method is that data errors in this embodiment will not cause the block initialization process to be interrupted at this point and return an initialization error. The fault is handled by configuring an error handling callback function. The result of the callback function processing does not affect the initialization process. If the processing is successful, the initialization continues. If the processing fails, the data page header address where the contaminated data is located is recorded and initialization continues.
[0063] It can be understood that the data blocks to be initialized refer to the data blocks in the vehicle system that need to be initialized, including configuration parameter data, vehicle status data, and safety-related data.
[0064] In a specific implementation, when the target vehicle is in a startup state, it indicates that the data stored in the vehicle system needs to be initialized, thereby determining the data blocks that need to be initialized in the vehicle system.
[0065] Step S20, determining a data verification result according to a preset data verification strategy and the data block to be initialized;
[0066] It can be understood that the preset data verification strategy refers to a strategy for verifying whether the data is contaminated. For example, the preset data verification strategy is CRC verification or ECC error correction code verification, and the data verification result includes a data contamination result and a data normal result.
[0067] In a specific implementation, this embodiment verifies the data blocks that need to be initialized in the vehicle-mounted system by means of CRC verification, generates a CRC verification code by encoding the data, and then attaches the verification code to the original data for transmission or storage. When the receiving end or reading the data, the received complete data (including the CRC verification code) is decoded using the same generating polynomial, a CRC value is calculated again, and then the calculated CRC value is compared with the received CRC verification code. If the two match, it is considered that no error occurred in the data during transmission or storage; if they do not match, it means that the data may be damaged, and then the verification result of whether there is contaminated data is obtained.
[0068] In a feasible implementation, step S20 may include steps A21 to A23:
[0069] Step A21, determining a corresponding data check value according to a preset data check strategy and the data block to be initialized;
[0070] It can be understood that the data check value refers to the CRC check value corresponding to each data page in the data block to be initialized during initialization.
[0071] In a specific implementation, the check value of each data page in the data block to be initialized is calculated according to a preset CRC check method to obtain the CRC check value corresponding to each data page in the data block to be initialized, and then it is determined whether there is contaminated data based on the calculated check value.
[0072] Step A22, comparing the data check value with the initial check value corresponding to the data block to be initialized, to obtain a check value comparison result;
[0073] It can be understood that the initial check value refers to the check value of each data page in the data block to be initialized, and the check value comparison result includes the result of consistent check values or different check values. The check value comparison result is used to determine whether there is contaminated data.
[0074] In a specific implementation, the check value of each data page in the data block to be initialized is compared with the check value corresponding to each data page in the data block to be initialized during initialization to obtain a comparison result of whether the check value of each data page in the data block to be initialized is consistent with the check value corresponding to each data page in the data block to be initialized during initialization.
[0075] Step A23, determining the data verification result according to the verification value comparison result.
[0076] In a specific implementation, when the check value of each data page in the data block to be initialized is consistent with the check value corresponding to each data page in the data block to be initialized during initialization, it indicates that there is no contaminated data in the data block to be initialized, and the data verification result is a normal data result; when the check value of each data page in the data block to be initialized is inconsistent with the check value corresponding to each data page in the data block to be initialized during initialization, it indicates that there is contaminated data in the data block to be initialized, and the data verification result is a data contamination result.
[0077] Step S30, when the data verification result is a data contamination result, determining a data callback result according to the preset data verification strategy, the preset data callback strategy and the target contamination data corresponding to the data contamination result;
[0078] It is understandable that the preset data callback strategy refers to a pre-set strategy for handling polluted data, for example, by configuring an error handling callback function to handle the fault. The result of the callback function processing does not affect the initialization process. If the processing is successful, the initialization continues. If the processing fails, the data page header address where the polluted data is located is recorded and the initialization continues, including the callback success result and the callback failure result.
[0079] In a specific implementation, when the data verification result is a data contamination result, it indicates that there is contaminated data in the data block to be initialized. The contaminated data is callback processed according to a pre-set strategy for processing contaminated data, and then the data callback is verified to be successful through a pre-set data verification method, thereby obtaining a result of whether the data callback is successful, that is, a callback success result or a callback failure result.
[0080] It should be noted that if Figure 3 As shown, this embodiment handles the fault by configuring an error handling callback function. The result of the callback function processing does not affect the initialization process. If the processing is successful, the initialization continues. If the processing fails, the first address of the data page where the contaminated data is located is recorded and the initialization continues. When the callback function restores the data to normal data, it returns a successful processing. If the data cannot be restored, it returns a failure and records the data page address. The recovery mechanism is to overwrite the erroneous data with redundant storage.
[0081] Step S40: controlling the vehicle system to start according to the data callback result.
[0082] It can be understood that in this embodiment, data errors will not cause the block initialization process to be interrupted at this point and return an initialization error, that is, when there is contaminated data, the initialization process will not be interrupted, ensuring that the vehicle system starts normally.
[0083] In a feasible implementation, step S40 may include steps A41 to A43:
[0084] Step A41, when the data callback result is a callback success result, controlling the vehicle system to start;
[0085] It can be understood that when the data callback result is a successful callback result, it indicates that the polluted data has been processed by data callback, that is, the erroneous data has been successfully overwritten by redundantly stored data. At this time, the vehicle system can be started normally.
[0086] Step A42, when the data callback result is a callback failure result, record the polluted data page header address and continue to initialize the vehicle system data;
[0087] It can be understood that the polluted data page header address refers to the address where the beginning of the polluted data is located.
[0088] In a specific implementation, when the data callback result is a callback failure result, it indicates that the erroneous data cannot be overwritten by redundantly storing data. At this time, the address of the beginning of the contaminated data is recorded, and the data of the vehicle system continues to be initialized, ensuring that the system can still work normally when data contamination occurs.
[0089] Step A43, when the data initialization of the vehicle system is completed, start the vehicle system.
[0090] It can be understood that after determining the address of the beginning position of the recorded pollution data, the vehicle system data continues to be initialized, and when the initialization of the vehicle system data is completed, the vehicle system is started normally.
[0091] In a feasible implementation manner, step S40 may include steps B41 to B43:
[0092] Step B41, determining a polluted data information set according to a plurality of polluted data page header addresses;
[0093] It can be understood that the pollution data information set refers to an address set consisting of the first addresses of each pollution data page.
[0094] In a specific implementation, the pollution data page header addresses recorded in the process of initializing the vehicle system data are aggregated, that is, an address set consisting of the pollution data page header addresses is obtained.
[0095] Step B42, analyzing the polluted data information set to determine the cause of data pollution;
[0096] It can be understood that the data pollution reason refers to the reason why the data is polluted.
[0097] In a specific implementation, the cause of data pollution is analyzed through an address set consisting of the header addresses of each polluted data page to obtain the cause of data pollution. For example, the structure of the data is checked to confirm whether the data format meets expectations, such as whether there are missing fields, extra characters, unreasonable value ranges, etc., and the polluted data is compared with normal data samples to find abnormal values or inconsistencies and determine whether it is caused by data entry errors, transmission errors or storage damage.
[0098] Step B43: Generate a data protection strategy based on the cause of data pollution.
[0099] It is understandable that after the cause of the data contamination is determined, when the vehicle is powered on again, other normal data is processed according to the cause of the data contamination to avoid contamination of the normal data.
[0100] It should be noted that the data stored in NVM can be roughly divided into the following four categories. According to their source and importance, different methods are designed for data recovery. Configuration parameter data: This type of data includes vehicle configuration parameters, such as seat adjustment, audio settings, display interface preferences, etc. These parameters are usually set by the user and need to remain persistent when the vehicle is started. This type of data is necessary for vehicle initialization, but its change will not cause irreversible consequences. Backup data does not require actual data. The factory settings written in the storage space can be used temporarily as backup data to ensure that the user's vehicle starts normally; the NVM module may store fault codes, error logs, and diagnostic information during vehicle operation. These data are very important for vehicle maintenance and troubleshooting, so they need to be retained after the vehicle is powered off. This type of data requires high accuracy in the use scenario, and no data recovery is performed; vehicle status data: The NVM module may store status data of various vehicle systems, such as battery status, vehicle speed, mileage, etc. These data are very important for vehicle control and monitoring, and need to be able to be quickly restored after the vehicle is powered off. This type of data requires accuracy, so the mirror data needs to be dynamically saved in the NVM storage space; Safety-related data: This type of data includes the vehicle's safety configuration, anti-theft settings, anti-lock braking system (ABS) parameters, etc. This data is critical to the safety of the vehicle and needs to be available at all times when the vehicle is started. This type of data is relatively complex and the backup method needs to be selected based on the actual situation.
[0101] To summarize, data exists in three different states: 1. Data that does not affect vehicle functions but requires professional means to restore to ensure credibility is not considered in the recovery mechanism and will not be processed; 2. Data that affects vehicle functions but can be overwritten with other reasonable parameters can be restored by writing factory configuration data in the storage space; 3. Data that affects vehicle functions and has high credibility requirements can be restored by configuring redundant images in the NVM space.
[0102] This embodiment obtains the data block to be initialized when the target vehicle is in the startup state; determines the data verification result according to the preset data verification strategy and the data block to be initialized; when the data verification result is a data contamination result, determines the data callback result according to the preset data verification strategy, the preset data callback strategy and the target contaminated data corresponding to the data contamination result; and controls the vehicle system to start according to the data callback result. The above method realizes that the data block can still be successfully initialized when the data contamination is processed in the NVM module, thereby improving the reliability and data integrity of the system and ensuring that the system can still work normally when data contamination occurs.
[0103] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 4 , step S30 in the vehicle system startup control method further includes steps S31 to S33:
[0104] Step S31, determining the type of polluted data according to a preset data callback strategy and target polluted data corresponding to the data pollution result;
[0105] It can be understood that the types of polluted data include configuration parameter data, vehicle status data, safety-related data, etc.
[0106] In a specific implementation, the corresponding pollution data type is determined according to a preset data callback strategy and pollution data. For example, when the pollution data is seat adjustment data, the seat adjustment data is determined to be configuration parameter data through a preset data callback strategy.
[0107] Step S32, determining corresponding target callback data according to the type of contaminated data;
[0108] It can be understood that the target callback data refers to redundant coverage data.
[0109] In the specific implementation, the data stored in NVM can be roughly divided into the following four categories. According to its source and importance, different methods are designed for data recovery. Configuration parameter data: This type of data includes vehicle configuration parameters, such as seat adjustment, audio settings, display interface preferences, etc. These parameters are usually set by the user and need to be persistent when the vehicle is started. This type of data is necessary for vehicle initialization, but its change will not cause irreversible consequences. Backup data does not require actual data. The factory settings written in the storage space can be used temporarily as backup data to ensure that the user's vehicle starts normally; the NVM module may store fault codes, error logs, and diagnostic information during vehicle operation. These data are very important for vehicle maintenance and troubleshooting, so they need to be retained after the vehicle is powered off. This type of data requires high accuracy in the use scenario, and no data recovery is performed; vehicle status data: The NVM module may store status data of various vehicle systems, such as battery status, vehicle speed, mileage, etc. These data are very important for vehicle control and monitoring, and need to be able to be quickly restored after the vehicle is powered off. This type of data requires accuracy, so the mirror data needs to be dynamically saved in the NVM storage space; Safety-related data: This type of data includes the vehicle's safety configuration, anti-theft settings, anti-lock braking system (ABS) parameters, etc. This data is critical to the safety of the vehicle and needs to be available at all times when the vehicle is started. This type of data is relatively complex and the backup method needs to be selected based on the actual situation.
[0110] In summary, data exists in three different states: 1. Data that does not affect vehicle functions but requires professional means to restore to ensure credibility is not considered in the recovery mechanism and will not be processed; 2. Data that affects vehicle functions but can be overwritten with other reasonable parameters can be restored by writing factory configuration data in the storage space; 3. Data that affects vehicle functions and has high credibility requirements can be restored by configuring redundant images in the NVM space.
[0111] In a feasible implementation, step S32 may include steps A321 to A323:
[0112] Step A321, when the contaminated data type is a configuration parameter data type, determining the factory setting data as the target callback data;
[0113] It can be understood that the factory setting data refers to the factory settings written as backup data.
[0114] In specific implementations. Configuration parameter data: This type of data includes vehicle configuration parameters, such as seat adjustment, audio settings, display interface preferences, etc. These parameters are usually set by the user and need to be persistent when the vehicle is started. This type of data is necessary for vehicle initialization, but its change will not cause irreversible consequences. Backup data does not require actual data. The factory settings written in the storage space can be used temporarily as backup data to ensure that the user's vehicle starts normally.
[0115] Step A322, when the pollution data type is a vehicle status data type, determining the target mirror data as target callback data;
[0116] It is understandable that the target image data refers to the data dynamically stored in the storage space.
[0117] In specific implementations, vehicle status data: The NVM module may store status data of various vehicle systems, such as battery status, vehicle speed, mileage, etc. These data are very important for vehicle control and monitoring and need to be able to be quickly restored after the vehicle loses power. Such data requires accuracy, so the mirror data needs to be dynamically saved in the NVM storage space.
[0118] Step A323, when the polluted data type is a security-associated data type, determining that the target redundant data is the target callback data.
[0119] It can be understood that the target redundant data refers to backup data selected according to actual conditions.
[0120] In specific implementation, safety-related data: This type of data includes the vehicle's safety configuration, anti-theft settings, anti-lock braking system (ABS) parameters, etc. This data is critical to the safety of the vehicle and needs to be available at all times when the vehicle is started. This type of data is relatively complex and requires a backup method to be selected based on actual conditions.
[0121] Step S33: determining a data callback result according to the target callback data and the preset data verification strategy.
[0122] It can be understood that the target callback data refers to the data after the polluted data is called back.
[0123] In a specific implementation, the data after the polluted data is called back is checked according to a preset data verification method, and the data callback result is determined according to the successful data verification result or the data verification failure result, that is, whether the redundant data covers the successful polluted data result.
[0124] In a feasible implementation, step S33 may include steps A331 to A333:
[0125] Step A331, determining a callback verification value according to the target callback data and a preset data verification strategy;
[0126] It can be understood that the callback check value refers to the check value corresponding to the data after the callback.
[0127] In a specific implementation, the check value of the callback data is calculated by a CRC check method to obtain a callback check value, and the callback check value is used to determine whether the redundant data successfully covers the contaminated data.
[0128] Step A332, comparing the data check value with the callback check value to obtain a target comparison result;
[0129] It can be understood that the check values corresponding to each data page in the data block to be initialized during initialization are compared with the check values corresponding to the data after the callback, and then the target comparison result is determined based on whether the check values corresponding to each data page in the data block to be initialized during initialization are consistent with the check values corresponding to the data after the callback.
[0130] Step A333, determining a data callback result according to the target comparison result.
[0131] It can be understood that, when the check value corresponding to each data page in the data block to be initialized during initialization is consistent with the check value corresponding to the data after callback, it indicates that the redundant storage data successfully covers the contaminated data, that is, the data callback result is data callback success; when the check value corresponding to each data page in the data block to be initialized during initialization is inconsistent with the check value corresponding to the data after callback, it indicates that the redundant storage data fails to cover the contaminated data, that is, the data callback result is data callback failure.
[0132] It should be noted that if Figure 5 As shown, there are two partitions in the system space of the vehicle-side hardware, which store the current version and the previous version of the system respectively, and the two systems share the same storage space. When no configuration is made, the block addresses of the two versions are the same as the previous version by default. The second type of data (data that affects the vehicle function but can be overwritten with other reasonable parameters, the factory configuration data can be written in the storage space to restore this part of the data) can be configured through the address of NVM during version upgrades, so that the configuration data of the previous version can be retained as a redundant image when the upgraded version is running. The redundant image of the third type of data (data that affects the vehicle function and has high credibility requirements, and redundant images are configured in the NVM space for recovery) must be configured in the NVM block of the currently running system to maintain its timeliness. By design, it can be opened up in a separate block or configured in a block different from the source data.
[0133] This embodiment determines the type of polluted data according to the preset data callback strategy and the target polluted data corresponding to the data pollution result; determines the corresponding target callback data according to the polluted data type; and determines the data callback result according to the target callback data and the preset data verification strategy. By recovering and repairing a small amount of polluted data, data damage and loss caused by data block initialization failure are reduced, and the integrity of key data stored in the NVM is protected.
[0134] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the vehicle system startup control method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0135] This application also provides a vehicle system startup control device, please refer to Figure 6 , the vehicle system startup control device comprises:
[0136] The acquisition module 10 is used to acquire the data block to be initialized when the target vehicle is in the startup state;
[0137] A verification module 20, configured to determine a data verification result according to a preset data verification strategy and the data block to be initialized;
[0138] A callback module 30, configured to determine a data callback result according to a preset data callback strategy and target contaminated data corresponding to the data contamination result when the data verification result is a data contamination result;
[0139] The starting module 40 is used to control the vehicle system to start according to the data callback result.
[0140] Optionally, the verification module 20 is further used to:
[0141] Determine the corresponding data check value according to the preset data check strategy and the data block to be initialized;
[0142] Comparing the data check value with an initial check value corresponding to the data block to be initialized to obtain a check value comparison result;
[0143] The data verification result is determined according to the verification value comparison result.
[0144] Optionally, the callback module 30 is further used to:
[0145] Determine the type of contaminated data according to a preset data callback strategy and target contaminated data corresponding to the data contamination result;
[0146] Determine corresponding target callback data according to the type of contaminated data;
[0147] A data callback result is determined according to the target callback data and the preset data verification strategy.
[0148] Optionally, the callback module 30 is further used to:
[0149] When the contaminated data type is a configuration parameter data type, determining the factory setting data as the target callback data;
[0150] When the pollution data type is a vehicle status data type, determining the target mirror data as target callback data;
[0151] When the polluted data type is a security-associated data type, the target redundant data is determined to be the target callback data.
[0152] Optionally, the callback module 30 is further used to:
[0153] Determine a callback verification value according to the target callback data and a preset data verification strategy;
[0154] Compare the data check value with the callback check value to obtain a target comparison result;
[0155] The data callback result is determined according to the target comparison result.
[0156] Optionally, the startup module 40 is further used to:
[0157] When the data callback result is a callback success result, controlling the vehicle system to start;
[0158] When the data callback result is a callback failure result, recording the polluted data page header address and continuing to initialize the vehicle system data;
[0159] When the data initialization of the vehicle system is completed, the vehicle system is started.
[0160] Optionally, the startup module 40 is further used to:
[0161] Determine a pollution data information set according to multiple pollution data page header addresses;
[0162] Analyzing the polluted data information set to determine the cause of data pollution;
[0163] A data protection strategy is generated according to the data pollution cause.
[0164] The vehicle system startup control device provided by the present application adopts the vehicle system startup control method in the above embodiment, which can solve the technical problem of how to ensure that the system can still work normally when data pollution occurs. Compared with the prior art, the beneficial effects of the vehicle system startup control device provided by the present application are the same as the beneficial effects of the vehicle system startup control method provided by the above embodiment, and the other technical features in the vehicle system startup control device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0165] The present application provides a vehicle system startup control device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the vehicle system startup control method in the above-mentioned embodiment one.
[0166] Reference below Figure 7 , which shows a schematic diagram of the structure of a vehicle system startup control device suitable for implementing an embodiment of the present application. The vehicle system startup control device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The vehicle system startup control device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0167] like Figure 7As shown, the vehicle system startup control device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the vehicle system startup control device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the vehicle system startup control device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a vehicle system startup control device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0168] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0169] The vehicle system startup control device provided by the present application adopts the vehicle system startup control method in the above embodiment, which can solve the technical problem of how to ensure that the system can still work normally when data pollution occurs. Compared with the prior art, the beneficial effects of the vehicle system startup control device provided by the present application are the same as the beneficial effects of the vehicle system startup control method provided by the above embodiment, and the other technical features in the vehicle system startup control device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0170] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0171] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0172] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, the computer-readable program instructions being used to execute the vehicle system startup control method in the above-mentioned embodiment.
[0173] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0174] The computer-readable storage medium may be included in the vehicle system startup control device; or may exist independently without being assembled into the vehicle system startup control device.
[0175] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the vehicle system startup control device, the vehicle system startup control device: when the target vehicle is in a startup state, obtains a data block to be initialized; determines a data verification result according to a preset data verification strategy and the data block to be initialized; when the data verification result is a data contamination result, determines a data callback result according to the preset data verification strategy, the preset data callback strategy and the target contamination data corresponding to the data contamination result; and controls the vehicle system to start according to the data callback result.
[0176] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0177] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0178] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0179] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned vehicle system startup control method, and can solve the technical problem of how to ensure that the system can still work normally when data pollution occurs. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the vehicle system startup control method provided by the above-mentioned embodiment, and will not be repeated here.
[0180] The present application also provides a computer program product, including a computer program, which implements the steps of the vehicle system startup control method as described above when executed by a processor.
[0181] The computer program product provided by the present application can solve the technical problem of how to ensure that the system can still work normally when data pollution occurs. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the vehicle system startup control method provided by the above embodiment, which will not be repeated here.
[0182] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A vehicle system startup control method, characterized in that: The vehicle system startup control method comprises: When the target vehicle is in a startup state, obtaining a data block to be initialized; Determine a data verification result according to a preset data verification strategy and the data block to be initialized; When the data verification result is a data contamination result, determining a data callback result according to the preset data verification strategy, the preset data callback strategy, and the target contamination data corresponding to the data contamination result; The vehicle system is controlled to start according to the data callback result.
2. The method according to claim 1, characterized in that The step of determining the data verification result according to the preset data verification strategy and the data block to be initialized includes: Determine the corresponding data check value according to the preset data check strategy and the data block to be initialized; Comparing the data check value with an initial check value corresponding to the data block to be initialized to obtain a check value comparison result; The data verification result is determined according to the verification value comparison result.
3. The method according to claim 1, characterized in that The determining the data callback result according to the preset data verification strategy, the preset data callback strategy and the target contaminated data corresponding to the data contamination result includes: Determine the type of contaminated data according to a preset data callback strategy and target contaminated data corresponding to the data contamination result; Determine corresponding target callback data according to the type of contaminated data; A data callback result is determined according to the target callback data and the preset data verification strategy.
4. The method according to claim 3, characterized in that The determining corresponding target callback data according to the type of polluted data includes: When the contaminated data type is a configuration parameter data type, determining the factory setting data as the target callback data; When the pollution data type is a vehicle status data type, determining the target mirror data as target callback data; When the polluted data type is a security-associated data type, the target redundant data is determined to be the target callback data.
5. The method according to claim 3, characterized in that The determining of the data callback result according to the target callback data and a preset data verification strategy includes: Determine a callback verification value according to the target callback data and a preset data verification strategy; Compare the data check value with the callback check value to obtain a target comparison result; The data callback result is determined according to the target comparison result.
6. The method according to claim 1, characterized in that The controlling the vehicle system to start according to the data callback result includes: When the data callback result is a callback success result, controlling the vehicle system to start; When the data callback result is a callback failure result, recording the polluted data page header address and continuing to initialize the vehicle system data; When the data initialization of the vehicle system is completed, the vehicle system is started.
7. The method according to claim 6, characterized in that When the data initialization of the vehicle system is completed and the vehicle system is started, the method further includes: Determine a pollution data information set according to a plurality of pollution data page header addresses; Analyzing the polluted data information set to determine the cause of data pollution; A data protection strategy is generated according to the cause of data pollution.
8. A vehicle system startup control device, characterized in that: The device comprises: An acquisition module, used for acquiring a data block to be initialized when the target vehicle is in a startup state; A verification module, used to determine a data verification result according to a preset data verification strategy and the data block to be initialized; A callback module, used for determining a data callback result according to a preset data callback strategy and target contaminated data corresponding to the data contamination result when the data verification result is a data contamination result; The starting module is used to control the vehicle system to start according to the data callback result.
9. A vehicle system startup control device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the vehicle system startup control method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the vehicle system startup control method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
NVM-based data integrity protection method, system, device and storage medium
CN110348245A
Control method for NVM (Non-Volatile Memory) data fault diagnosis and processing
CN117008571A
Intelligent cabin vehicle data read-write method, device and equipment and storage medium
CN117008832A
Cited By
Vehicle data processing method and device, storage medium and electronic equipment
CN119902714A
