Data processing method and device for scene card
By selecting data to clean or compressing the processing of scene card backup data based on the remaining capacity of the data storage space, the system resource pressure caused by scene card data backup is solved, and the utilization rate of storage space and system stability are improved.
Patent Information
- Application Number
- CN202411038786.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
As the number of scene cards increases, the backup data in the non-volatile storage space continues to accumulate, resulting in an increase in system resource pressure and affecting the stable operation of the system.
By obtaining the remaining storage capacity of the data storage space, select the appropriate processing method: if it is data cleaning, clean the backup data of the low-value scene card according to the preset rules; if it is data compression, compress the backup data of all scene card. to free up storage space.
It effectively avoids the use of invalid resources, improves the storage capacity of data storage space, improves the utilization rate of storage space, prevents system resource pressure, and ensures stable operation of the system.
Smart Images

Figure CN118885122A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automobile technology, and in particular to a method and device for processing data of a scene card. Background Art
[0002] Scenario choreography technology is to pre-compile scenario cards corresponding to various vehicle functions in the Software Development Kit (SDK). These scenario cards contain key elements such as the scenario description of the vehicle function, the trigger conditions for activating the scenario card, the execution conditions of the scenario card, the execution action, and the functional logic of the execution action. The SDK can activate the scenario card according to the trigger conditions defined in the scenario card, and execute the scenario card according to other elements, thereby realizing the corresponding vehicle function.
[0003] At present, in order to prevent the accidental loss of the operating parameters of the scene card or the vehicle missing the trigger condition detection of the scene card in the sleep state, resulting in the vehicle being unable to immediately and effectively execute the scene card to realize the vehicle function after being reawakened, the current practice is to back up the relevant data of the scene card, including operating parameters and trigger conditions, in a non-volatile storage space when the vehicle is powered on.
[0004] In this way, after the vehicle is reawakened, it can immediately and effectively execute the scene card to realize the corresponding vehicle function according to the backed-up operating parameters and trigger conditions. However, as the number of scene cards increases, the backed-up data in the non-volatile storage space will continue to accumulate, which may affect the stable operation of the system. Summary of the invention
[0005] In view of the above problems, the present invention provides a scene card data processing method and device, the main purpose of which is to solve the current problem of backing up scene card data. As the number of scene cards increases, the backed up data in the storage space will continue to accumulate, which may increase the pressure on system resources.
[0006] In order to solve the above technical problems, the present invention proposes the following solutions:
[0007] In a first aspect, the present invention provides a method for processing scene card data, the method comprising:
[0008] Get the remaining storage capacity of the data storage space of the scene card;
[0009] Determine a processing method for the scene card backup data in the data storage space according to the remaining storage capacity, the processing method comprising data cleaning and data compression;
[0010] If it is data cleaning, determining and cleaning the low-value scene card backup data in the data storage space according to a preset determination rule;
[0011] If it is data compression, the scene card backup data in the data storage space is compressed.
[0012] In a second aspect, the present invention provides a data processing device for a scene card, the device comprising:
[0013] A capacity acquisition unit, used to acquire the remaining storage capacity of the data storage space of the scene card;
[0014] a method determination unit, configured to determine a processing method for the scene card backup data in the data storage space according to the remaining storage capacity acquired by the capacity acquisition unit, wherein the processing method includes data cleaning and data compression;
[0015] a first processing unit, configured to determine and clean up the low-value scene card backup data in the data storage space according to a preset determination rule if the processing method determined by the method determination unit is data cleaning;
[0016] The second processing unit is configured to compress the scene card backup data in the data storage space if the processing method determined by the method determination unit is data compression.
[0017] In order to achieve the above object, according to a third aspect of the present invention, a storage medium is provided, the storage medium comprising a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the scene card data processing method of the first aspect.
[0018] In order to achieve the above object, according to a fourth aspect of the present invention, a processor is provided, the processor being used to run a program, wherein the program executes the scene card data processing method of the first aspect when running.
[0019] By means of the above technical scheme, a data processing method and device for a scene card provided by the present invention can first obtain the remaining storage capacity of the data storage space for storing scene card data, and then select a suitable processing method for scene card backup data according to the remaining storage capacity. If the determined data processing method is data cleaning, the scene card backup data with lower value in the data storage space, that is, the low-value scene card backup data, is screened out according to the preset determination rules, so as to avoid invalid resource occupation and improve the storage capacity of the data storage space. On the contrary, if the selected data processing method is data compression, all scene card backup data can be compressed so as to expand the storage capacity of the data storage space as much as possible while maintaining data integrity. Compared with the prior art, after the data backup is completed, the present invention does not retain all data, causing the data to accumulate continuously, but processes the data accordingly according to the remaining storage capacity, so as to improve the utilization rate of the storage space and avoid affecting the stable operation of the system.
[0020] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0022] Figure 1 A flow chart of a data processing method for a scene card provided by an embodiment of the present invention is shown;
[0023] Figure 2 A flow chart of another method for processing data of a scene card provided by an embodiment of the present invention is shown;
[0024] Figure 3 A block diagram showing a data processing device for a scene card provided by an embodiment of the present invention;
[0025] Figure 4 A block diagram showing the composition of another scene card data processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0026] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0027] With the increase in the number of scene cards, the current data backup method will cause the scene card backup data in the non-volatile storage space to continue to accumulate, which may increase the pressure on system resources. After research, the inventor proposed a data processing method for scene cards, which optimizes storage management according to the remaining storage capacity of the data storage space. Specifically, a suitable data processing method can be selected according to the remaining storage capacity. When the selected data processing method is data cleaning, the low-value scene card backup data in the data storage space can be determined and cleared according to the preset determination rules, thereby reducing the occupation of invalid resources and increasing the remaining storage capacity of the storage space. On the other hand, if the data processing method adopted is data compression, a compression operation can be performed on all scene card backup data in the storage space to maximize the capacity of the data storage space while ensuring data integrity.
[0028] The scene card data processing method of the present invention is implemented by an auxiliary module in the vehicle system. The auxiliary module can be located in any module (such as a microcontroller) on the vehicle, and has real-time bus communication capabilities and non-volatile storage functions. The auxiliary module can communicate and interact with the scene arrangement software development kit (Software Development Kit, SDK) running in the vehicle system, that is, the main module (such as the scene arrangement SDK in the cockpit domain controller) according to the communication bus or communication link.
[0029] Staff can pre-arrange multiple scene cards in the main module and define the scene card information to realize various vehicle functions. The scene card information includes key elements such as the scene description of the vehicle function trigger, the trigger conditions for activating the scene card, the execution conditions of the scene card, the execution action, and the functional logic of the execution action.
[0030] Exemplary information in the "Go Home" scenario card may include:
[0031] Scenario description: "Provide users with a comfortable and relaxing journey home at the end of their evening commute."
[0032] Trigger condition: "When the GPS detects that the vehicle is less than 5 kilometers from the preset home address."
[0033] Execution condition: "If the temperature inside the vehicle is above the set comfort threshold and the music player is not in use."
[0034] Action: "Automatically lower the temperature in the car to 22°C, play soft background music, and display navigation directions to your home address."
[0035] Functional logic: "Start the air conditioning system first, and then start the music playback after the temperature drops to the preset value."
[0036] When the scene card is defined and the vehicle is in the awake state, the main module can automatically identify which scene card data needs to be backed up according to actual needs; or the staff can pre-specify the scene card data that needs to be backed up. Then, the main module can send a backup request to the auxiliary module, requesting the auxiliary module to perform the backup operation of the scene card data.
[0037] The backed-up scene card data may be all the information in the scene card information, including trigger conditions and other operating parameters (such as the execution conditions, execution actions and functional logic of the execution actions of the scene card), or may be part of the scene card data, such as trigger conditions and part of the operating parameters.
[0038] After the auxiliary module receives the backup request from the main module, it will check whether the scene card data to be backed up already exists in the data storage space. If the data already exists, the auxiliary module will use the latest scene card data provided by the main module to update the corresponding data in the storage space; if the data does not exist yet, the auxiliary module will allocate new storage space for the scene card to store the backup data.
[0039] In addition, when the main module requests to store the scene card data, it sets a data identifier for each scene card that is requested to be backed up. Therefore, when the vehicle is reawakened and the main module is started, the main module can identify which scene cards have requested to be backed up through these data identifiers. Subsequently, the main module will send a data call request to the auxiliary module to obtain the pre-stored scene card data, and execute the scene card based on this data to achieve the corresponding vehicle function. After receiving the data call request, the auxiliary module will verify whether there is a corresponding scene card data storage record based on the data identifier. If there is no record, the auxiliary module will notify the main module that there is no available data; if the record exists, the auxiliary module will transmit the corresponding scene card data back to the main module.
[0040] In this process, two situations need to be specially considered. One is whether the trigger condition of the scene card occurs during the power-off period of the vehicle. If it does occur during the power-off period, the auxiliary module can monitor the occurrence of the trigger condition in real time through the preset communication bus, and compare the monitored trigger condition with the trigger condition in the scene card data backed up in the data storage space. Once the match is successful, the auxiliary module will temporarily record the trigger condition. When the main module of the vehicle is powered on, the auxiliary module will pass the recorded trigger condition to the main module. After receiving the trigger condition, the main module will activate the corresponding scene card. Subsequently, the main module will send a call request for the operating parameters to the auxiliary module to obtain other information in the backup data of the scene card except the trigger condition, that is, the operating parameters. In this way, after the main module starts the scene card according to the trigger condition, it can execute the scene card according to the operating parameters, thereby realizing the corresponding vehicle function.
[0041] Another is: when the trigger condition of the scene card occurs after the main module of the vehicle wakes up, the main module can detect the trigger condition by itself. However, due to the vehicle experiencing a cold start or other process interruption, other operating parameters of the scene card may be lost. In this case, when the vehicle runs to a scene card with a data identifier added and needs to be backed up according to the trigger condition, the main module can issue a data call request to the auxiliary module to obtain the pre-stored scene card data. Subsequently, the main module will execute the scene card based on this data to complete the corresponding vehicle function.
[0042] In addition, the trigger conditions and other operating parameters in the scene card data can be stored in the same location of the data storage space, or they can be stored in modules. That is, an area dedicated to storing the scene card trigger conditions and an area for storing the operating parameters can be set separately, and each area will be equipped with a corresponding scene card data identifier for easy identification and calling.
[0043] In addition, if the trigger conditions and other operating parameters are stored separately, the main module will need to send backup requests to the auxiliary module for these two types of data. After receiving these requests, the auxiliary module will perform corresponding backup operations on the trigger conditions and other operating parameters respectively.
[0044] In addition, the auxiliary module can also back up the data of different scene cards in the same location, using data identifiers for description, or back up in different locations.
[0045] Finally, if the main module needs to cancel the subscription of the scene card or delete the backup data of the scene card, whether it is a trigger condition or other backup operating parameters, it can send a data clearing request to the auxiliary module according to the previous backup process. This request is intended to allow the auxiliary module to release the storage space occupied by the scene card. After receiving the clearing request, the auxiliary module will check whether the backup data requested to be cleared has been processed. If the data has been cleared, the auxiliary module will not take any action. If the data has not been cleared, the auxiliary module will perform the data clearing operation, thereby freeing up data storage space and increasing storage capacity.
[0046] In addition, if the main module does not send a request to clear data or unsubscribe from the scene card, then as the number of scene cards increases, it will continue to request data backup from the auxiliary module, which may cause pressure on the data storage space of the auxiliary module. Therefore, the auxiliary module has the function of automatically processing the backed-up scene card data according to its own logic to manage the use of storage space, for example, it can be the method in the following embodiment; it can also be based on its own needs to choose whether to delete the relevant data in the data storage space after the main module calls the relevant data.
[0047] It should be pointed out that the scene cards mentioned in the present invention specifically refer to scene cards related to non-critical functions of the vehicle, such as playing music, turning on the air conditioner, etc. Since these scene cards correspond to non-essential functions, you can decide whether to cancel the subscription or delete the related backup data according to actual needs to free up data storage space, and this operation will not affect the safe driving of the vehicle. Relatively speaking, for those scene cards related to vehicle safety functions, a safer data storage method will be adopted, such as storage on a cloud server, to ensure that the data will not be deleted by mistake and will not occupy the resources of the vehicle itself, thereby ensuring the safety performance of the vehicle.
[0048] Next, we will combine Figure 1 The data processing method of the scene card of the present invention is described. The specific execution steps are as follows: Figure 1 As shown, including:
[0049] 101. Obtain the remaining storage capacity of the data storage space of the scene card.
[0050] 102. Determine a method for processing the scene card backup data in the data storage space according to the remaining storage capacity, the processing method comprising data cleaning and data compression.
[0051] In step 101, the auxiliary module can monitor the remaining storage capacity of the data storage space in real time or according to a preset period. In addition, the remaining storage capacity can be confirmed when a sharp increase in data storage or frequent data update activities are detected, because this may indicate that the storage space is rapidly decreasing due to a large amount of data storage or data update. Such rapid consumption of storage space may affect the stable operation of the system.
[0052] Next, in step 102, the auxiliary module will adjust the storage strategy according to the monitored remaining storage capacity. The storage strategy processes the scene card backup data in the data storage space through a data processing method, with the purpose of freeing up storage space and preventing unnecessary pressure on the vehicle system. The processing method may include data cleaning and data compression.
[0053] If it is data cleaning, execute step 103; if it is data compression, execute step 104.
[0054] In addition, when determining the appropriate data processing method based on the monitored remaining storage capacity, multiple strategies can be adopted: one is to set a fixed capacity threshold instead of considering the total capacity of the data storage space. This threshold represents the minimum available capacity that the data storage space must maintain. Once the remaining storage capacity is lower than this fixed threshold, the determined data processing method is data cleaning; if the remaining storage capacity is higher than the threshold, data compression measures are taken. When the remaining capacity is lower than the minimum available capacity, it means that the storage space will soon be insufficient to meet the demand. If data cleaning is not performed at this time, it will put pressure on system resources.
[0055] Another is: a series of dynamic thresholds can be set according to the total capacity of the data storage space, and these thresholds are expressed as a percentage of the total capacity. For example, for a total storage capacity of 1TB, the low threshold remaining capacity <20% (that is, when the remaining capacity is less than 200GB), the medium threshold is 20% ≤ remaining capacity <40%, and the high threshold is remaining capacity ≥40%. Different threshold intervals will trigger different data processing methods, for example: the low threshold interval (remaining capacity <20%) is suitable for data cleaning; the medium threshold interval (20% ≤ remaining capacity <40%) is suitable for data compression; and the high threshold interval (remaining capacity ≥40%) provides flexibility between data cleaning and data compression, and the appropriate processing method can be selected according to the specific situation.
[0056] 103. If it is data cleaning, determine and clean up the low-value scene card backup data in the data storage space according to a preset determination rule.
[0057] In this step, the preset determination rules can be used to identify low-value scene card backup data in the data storage space. These low-value data may include the following: data that has not been used after being updated or initially stored, data whose update time is far from the current time, and data with a small number of updates. Therefore, when applying the preset rules to determine the low-value data, the number of times the scene card backup data is called, the number of updates, and the update time can be comprehensively considered. In addition, these conditions can also be flexibly combined to identify low-value scene card backup data in the data storage space.
[0058] In addition, the selection of screening conditions can be flexibly adjusted according to the different situations of remaining storage capacity. When the remaining storage capacity is low, more low-value data can be screened out through fewer conditions to free up more storage space. Conversely, when the remaining storage capacity is sufficient, more screening conditions can be used to identify only less low-value data, so that less storage space can be freed up while maintaining data integrity.
[0059] 104. If data compression is used, compressing the scene card backup data in the data storage space.
[0060] In this step, you can choose to use the same compression method to compress all scene card backup data according to actual needs, which can improve compression efficiency and release storage space; or choose the most appropriate compression method according to the data type of each scene card backup data to avoid distortion or unavailability of scene card backup data due to inappropriate compression method.
[0061] In addition, when compressing the scene card backup data, you can flexibly choose to fully compress all the scene card backup data in the data storage space according to specific needs, or you can compress only a specific part of the scene card backup data.
[0062] For example, in order to significantly save storage space, all scene card backup data can be fully compressed. However, in order to maintain the quality of the original data as much as possible, only part of the data can be compressed. For example, data that is easily distorted during the compression process should be excluded from the compression operation to maintain the quality of its data.
[0063] Based on the above Figure 1 It can be seen from the implementation method that the data processing method of a scene card provided by the present invention can first obtain the remaining storage capacity of the data storage space for storing scene card data, and then select a suitable processing method for scene card backup data according to the remaining storage capacity. If the determined data processing method is data cleaning, the scene card backup data with lower value in the data storage space, that is, the low-value scene card backup data, is screened out according to the preset determination rules. This can avoid invalid resource occupation and improve the storage capacity of the data storage space. On the contrary, if the selected data processing method is data compression, all scene card backup data can be compressed so as to expand the storage capacity of the data storage space as much as possible while maintaining data integrity. Compared with the prior art, after the data backup is completed, the present invention does not retain all data, causing the data to accumulate continuously, but processes the data accordingly according to the remaining storage capacity, thereby improving the utilization rate of the storage space and avoiding affecting the stable operation of the system.
[0064] Furthermore, as a Figure 1 The embodiment shown in the figure is refined and expanded. The embodiment of the present invention also provides another scene card data processing method, such as Figure 2 As shown, the specific steps are as follows:
[0065] 201. Obtain the remaining storage capacity of the data storage space of the scene card.
[0066] Among them, the implementation method of step 201 is the same as that of step 101, and can achieve the same technical effect and solve the same technical problem, and will not be repeated here.
[0067] 202. Determine a method for processing the scene card backup data in the data storage space according to the remaining storage capacity, the processing method comprising data cleaning and data compression.
[0068] In this embodiment, a fixed preset capacity is preferably used, which represents the minimum amount of available storage space required to maintain the data storage space. When the remaining storage capacity is less than the preset capacity, the data cleaning method is executed; and when the remaining storage capacity is greater than the preset capacity, the data compression method is used to optimize the storage space. This can simplify the processing flow, improve the efficiency of data processing, and save the use of computing resources.
[0069] Among them, the minimum amount of available storage space is the storage capacity reserved in the data storage space for maintaining stable operation of the vehicle system.
[0070] 203. If it is data cleaning, determine the number of times the scene card backup data is called, the update time and the number of times the backup data is updated.
[0071] 204. Determine low-value scene card backup data in the scene card backup data according to the number of times called, the update time, and the number of times updated, and clear the low-value scene card backup data.
[0072] In step 203, it should be noted that the auxiliary module will record corresponding operation logs when storing scene card backup data, updating scene card backup data, and when scene card backup data is called by the main module, that is, the auxiliary module has data update records and data call records.
[0073] Therefore, in step 203, the auxiliary module can determine the data update information corresponding to each scene card backup data in the data update record according to the data identifier; at the same time, determine the number of times each scene card backup data is called in the data call record according to the data identifier.
[0074] The data update information includes the update information of each scene card backup data, including the update times, the time of each update and the updated scene card backup data of each update. The scene card backup data mentioned above refers to the scene card backup data of the latest update recorded in the data update information.
[0075] Exemplarily, in the data update record, the update record corresponding to the scene card with the data identifier SC1 is found, and the update information in the update record is as follows:
[0076] Update times: 3 times
[0077] Original data storage time: 10:00 on May 1, 2023;
[0078] The original stored scene card backup data: Trigger condition: 5 minutes after the vehicle is started; Execution condition: Vehicle speed is lower than 50km / h; Execution action: Play music; Function logic: Select random music in the playlist.
[0079] The first update time of the original data: May 1, 2023 11:00
[0080] The scene card backup data after the first update: Trigger condition: 5 minutes after the vehicle is started; Execution condition: Vehicle speed is lower than 50km / h; Execution action: Play a specific song in the music list; Function logic: Select a specific song in the playlist.
[0081] The second update time of the original data: May 2, 2023 12:00
[0082] The scene card backup data after the second update: Trigger condition: 6 minutes after the vehicle is started; Execution condition: Vehicle speed is lower than 50km / h; Execution action: Play a specific song in the music list; Functional logic: Select a specific song in the playlist and display the lyrics while playing.
[0083] In this example, the scene card backup data is the scene card backup data after the second update.
[0084] According to the above description, after determining the data update information corresponding to each scene card backup data in the data update record, the update time or storage time and update times corresponding to each scene card backup data can be determined according to the data update information. When updating the scene card backup data, the data identifier remains unchanged.
[0085] In addition, the above-mentioned calling times of each scene card backup data in the data calling record is determined according to the data identifier. The calling times here refers to the number of times the latest scene card backup data corresponding to the data identifier in the data update record is called by the main module.
[0086] That is, when the stored scene card backup data is replaced by the updated scene card backup data, since the update times and update contents of the scene card corresponding to the data identifier have been recorded, in the data call record, it is only necessary to record the number of times the corresponding latest scene card backup data in the data update record is called by the main module. At the same time, the number of times the corresponding historical updated scene card backup data corresponding to the data identifier is called can be deleted to save system resources.
[0087] Then, in step 204, for each scene card backup data, low-value scene card backup data in the scene card backup data may be determined and cleared according to the obtained call times, update time and update times.
[0088] Specifically, step 204 can be performed by selecting one of a variety of methods according to actual needs. These methods include:
[0089] The first method: In the scene card backup data, the target scene card backup data whose time difference between the update time and the current time exceeds the preset time difference value are screened out. The purpose of this step is to identify the scene card backup data that may become obsolete due to long-term non-update. Then, in these target scene card backup data, the designated scene card backup data whose number of calls does not exceed the preset number of calls threshold are further screened out. Since these designated scene card backup data are both obsolete and less frequently used, they can be judged as low-value data. Finally, a data cleanup operation of the designated scene card backup data can be performed to free up storage space.
[0090] The second method: First, among the scene card backup data, the target scene card backup data whose update times are less than the preset update times threshold are determined. These data may be considered relatively old due to the small number of updates. Then, among these target scene card backup data, the designated scene card backup data whose call times do not exceed the preset call times threshold are further determined. Since these designated scene card backup data have both small update times and low actual usage frequency, they can be judged as low-value data. Finally, the screened designated scene card backup data are determined as low-value scene card backup data, and are considered to be cleaned up to free up storage space.
[0091] 205. If data compression is used, compressing the scene card backup data in the data storage space.
[0092] Among them, the implementation method of step 205 is the same as that of step 104, and can achieve the same technical effect and solve the same technical problem, and will not be repeated here.
[0093] In some optional embodiments, the method further comprises:
[0094] detecting a real-time trigger condition in a preset communication bus;
[0095] matching the same target backup trigger condition in the scene card backup data in the data storage space according to the real-time trigger condition;
[0096] When the main module of the scene card executed in the vehicle is in an unsuccessful startup state, the specified processing flow is executed according to the target backup trigger condition that matches successfully.
[0097] In this step, the auxiliary module has the ability to monitor the trigger condition in real time through the preset communication bus. If the auxiliary module detects the trigger condition, it will determine whether there is a target backup trigger condition matching the detected trigger condition in the scene card backup data in the data storage space. If so, this indicates that the trigger condition detected by the auxiliary module is exactly the condition required by the main module to activate the corresponding scene card. At this point, the auxiliary module can determine whether the main module has been successfully started. If the main module has been started, the auxiliary module does not need to send the trigger condition again, because the main module may have already detected the trigger condition. If the main module is not successfully started, the auxiliary module will execute the specified processing flow.
[0098] After the main module works normally, it will continue to send a startup success signal to the auxiliary module. Therefore, when the auxiliary module determines whether the main module has been successfully started, it can monitor whether it has received a startup success signal from the main module. If the signal is received, the auxiliary module will consider that the main module has been successfully started; if the signal is not received, it is considered that the main module has not been successfully started.
[0099] The specified processing flow may be:
[0100] During the specified time period, the auxiliary module will continuously monitor whether the main module is successfully started. If the main module is successfully started within the specified time period, the auxiliary module can send the target backup trigger condition to the main module so that the main module can activate the corresponding target scene card according to the target backup trigger condition. Conversely, if the main module is not successfully started within the specified time period, this may indicate that the vehicle is in an abnormal use state, such as being powered off or having a fault. In this case, the main module does not need the target trigger condition, so the auxiliary module can clear the target backup trigger condition in the data storage space, or delete the trigger condition at the temporarily recorded location to avoid misoperation.
[0101] In addition, the parameters involved in the present invention, such as the preset time difference, preset call count threshold, preset update count threshold, preset capacity and specified time period, are not limited to specific values, but can be flexibly adjusted according to actual conditions to adapt to different application scenarios and needs.
[0102] Furthermore, as a response to the above Figure 1 In order to realize the method shown in the figure, the embodiment of the present invention also provides a scene card data processing device for processing the above Figure 1 The device embodiment corresponds to the aforementioned method embodiment. For ease of reading, this device embodiment will not repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. Figure 3 As shown, the device comprises:
[0103] The capacity acquisition unit 301 is used to acquire the remaining storage capacity of the data storage space of the scene card;
[0104] A method determination unit 302, configured to determine a method for processing the scene card backup data in the data storage space according to the remaining storage capacity obtained by the capacity acquisition unit 301, wherein the processing method includes data cleaning and data compression;
[0105] A first processing unit 303 is configured to determine and clear the low-value scene card backup data in the data storage space according to a preset determination rule if the processing method determined by the method determination unit 302 is data clearing;
[0106] The second processing unit 304 is configured to compress the scene card backup data in the data storage space if the processing method determined by the method determination unit 302 is data compression.
[0107] Furthermore, as a response to the above Figure 2 In order to realize the method shown in the figure, the embodiment of the present invention also provides another scene card data processing device for processing the above Figure 2 The device embodiment corresponds to the aforementioned method embodiment. For ease of reading, this device embodiment will not repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. Figure 4 As shown, the device comprises:
[0108] The capacity acquisition unit 301 is used to acquire the remaining storage capacity of the data storage space of the scene card;
[0109] A method determination unit 302, configured to determine a method for processing the scene card backup data in the data storage space according to the remaining storage capacity obtained by the capacity acquisition unit 301, wherein the processing method includes data cleaning and data compression;
[0110] A first processing unit 303 is configured to determine and clear the low-value scene card backup data in the data storage space according to a preset determination rule if the processing method determined by the method determination unit 302 is data clearing;
[0111] The second processing unit 304 is configured to compress the scene card backup data in the data storage space if the processing method determined by the method determination unit 302 is data compression.
[0112] In an optional implementation manner, the first processing unit 303 includes:
[0113] An information determination module 3031 is used to determine data update information corresponding to each scene card backup data in the data update record according to the data identifier of the scene card backup data, wherein the data update information includes the update number corresponding to each scene card backup data, the update time corresponding to each update, and the updated scene card backup data;
[0114] A times determination module 3032, used to determine the times each of the scene card backup data is called in the data calling record according to the data identifier;
[0115] The data determination module 3033 is used to determine the low-value scene card backup data in the scene card backup data according to the number of calls determined by the number determination module 3032, the update time and the update number determined in the data update information by the information determination module 3031;
[0116] The data clearing module 3034 is used to clear the low-value scene card backup data determined by the data determining module 3033 from the data storage space.
[0117] In an optional implementation manner, the data determination module 3033 is specifically used to:
[0118] Determining target scene card backup data in the scene card backup data, the time difference between the corresponding update time and the current time exceeding the preset time difference value;
[0119] Determining, from the target scene card backup data, the designated scene card backup data whose call count does not exceed a preset call count threshold;
[0120] The designated scene card backup data is determined as low-value scene card backup data.
[0121] In another optional implementation manner, the data determination module 3033 is specifically used to:
[0122] Determining target scene card backup data whose update times are less than a preset update times threshold value in the scene card backup data;
[0123] Determining, from the target scene card backup data, the designated scene card backup data whose call count does not exceed a preset call count threshold;
[0124] The designated scene card backup data is determined as low-value scene card backup data.
[0125] In an optional implementation manner, the method determination unit 302 includes:
[0126] A capacity determination module 3021 is used to determine whether the remaining storage capacity is less than a preset capacity, where the preset capacity is the minimum available storage space of the data storage space, and the minimum available storage space is the storage capacity reserved in the data storage space for maintaining stable operation of the vehicle system;
[0127] A first determination module 3022, configured to determine that the method for processing the scene card backup data in the data storage space is data cleaning if the determination result of the capacity determination module 3021 is yes;
[0128] The second determination module 3023 is configured to determine that the method for processing the scene card backup data in the data storage space is data compression if the determination result of the capacity determination module 3021 is no.
[0129] In an optional implementation manner, the device further includes a detection unit 305, and the detection unit 305 includes:
[0130] The detection module 3051 is used to detect the real-time trigger condition in the preset communication bus;
[0131] A matching module 3052, configured to match the same target backup trigger condition in the scene card backup data in the data storage space according to the real-time trigger condition detected by the detection module 3051;
[0132] The process execution module 3053 is used to execute a specified processing flow according to the target backup trigger condition matched successfully in the matching module 3052 when the main module of the scene card executed in the vehicle is in an unsuccessful startup state.
[0133] In an optional implementation manner, the process execution module 3053 is specifically used to:
[0134] Monitoring whether the main module is successfully started within a specified time period;
[0135] If yes, sending the target backup trigger condition to the main module, so that the main module activates the target scene card corresponding to the target backup trigger condition according to the target backup trigger condition;
[0136] If not, clearing the target backup trigger condition in the data storage space.
[0137] Furthermore, an embodiment of the present invention further provides a storage medium, wherein the storage medium is used to store a computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the above Figure 1-2 The data processing method of the scene card described in.
[0138] Furthermore, an embodiment of the present invention further provides a processor, the processor is used to run a program, wherein the program executes the above Figure 1-2 The data processing method of the scene card described in.
[0139] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0140] It is understandable that the related features in the above methods and devices can be referenced to each other. In addition, the "first", "second" and the like in the above embodiments are used to distinguish the embodiments, but do not represent the advantages and disadvantages of the embodiments.
[0141] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0142] The algorithm and display provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description of the above specific languages is for disclosing the best mode of the present invention.
[0143] In addition, the memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0144] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0145] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0146] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0147] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0148] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0149] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0150] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0151] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0152] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0153] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A data processing method for a scene card, It is characterized in that The method comprises: Get the remaining storage capacity of the data storage space of the scene card; Determine a processing method for the scene card backup data in the data storage space according to the remaining storage capacity, the processing method comprising data cleaning and data compression; If it is data cleaning, determining and cleaning the low-value scene card backup data in the data storage space according to a preset determination rule; If it is data compression, the scene card backup data in the data storage space is compressed.
2. The method according to claim 1, It is characterized in that Determining and clearing low-value scene card backup data in the data storage space according to a preset determination rule includes: Determine data update information corresponding to each scene card backup data in the data update record according to the data identifier of the scene card backup data, wherein the data update information includes the update number corresponding to each scene card backup data, the update time corresponding to each update, and the updated scene card backup data; Determining the number of times each of the scene card backup data is called in the data calling record according to the data identifier; Determine low-value scene card backup data in the scene card backup data according to the number of times called, the update time and the number of times updated; The low-value scene card backup data is cleared in the data storage space.
3. The method according to claim 2, It is characterized in that Determining low-value scene card backup data in the scene card backup data according to the number of times called, the update time, and the number of times updated, includes: Determining target scene card backup data in the scene card backup data, the time difference between the corresponding update time and the current time exceeding the preset time difference value; Determining, from the target scene card backup data, the designated scene card backup data whose call count does not exceed a preset call count threshold; The designated scene card backup data is determined as low-value scene card backup data.
4. The method according to claim 2, It is characterized in that Determining low-value scene card backup data in the scene card backup data according to the number of times called, the update time, and the number of times updated, includes: Determining target scene card backup data whose update times are less than a preset update times threshold value in the scene card backup data; Determining, from the target scene card backup data, the designated scene card backup data whose call count does not exceed a preset call count threshold; The designated scene card backup data is determined as low-value scene card backup data.
5. The method according to claim 1, It is characterized in that A method for processing scene card backup data in the data storage space according to the remaining storage capacity includes: Determining whether the remaining storage capacity is less than a preset capacity, the preset capacity being a minimum available storage space amount of the data storage space, the minimum available storage space amount being a storage capacity reserved in the data storage space for maintaining stable operation of the vehicle system; If so, determining that the method for processing the scene card backup data in the data storage space is data cleaning; If not, it is determined that the processing method of the scene card backup data in the data storage space is data compression.
6. The method according to claim 1, It is characterized in that The method further comprises: detecting a real-time trigger condition in a preset communication bus; matching the same target backup trigger condition in the scene card backup data in the data storage space according to the real-time trigger condition; When the main module of the scene card executed in the vehicle is in an unsuccessful startup state, the specified processing flow is executed according to the target backup trigger condition that matches successfully.
7. The method according to claim 6, It is characterized in that Execute the specified processing flow according to the successfully matched target backup trigger conditions, including: Monitoring whether the main module is successfully started within a specified time period; If yes, sending the target backup trigger condition to the main module, so that the main module activates the target scene card corresponding to the target backup trigger condition according to the target backup trigger condition; If not, clearing the target backup trigger condition in the data storage space.
8. A data processing device for a scene card, It is characterized in that The device comprises: A capacity acquisition unit, used to acquire the remaining storage capacity of the data storage space of the scene card; a method determination unit, configured to determine a processing method for the scene card backup data in the data storage space according to the remaining storage capacity acquired by the capacity acquisition unit, wherein the processing method includes data cleaning and data compression; a first processing unit, configured to determine and clean up the low-value scene card backup data in the data storage space according to a preset determination rule if the processing method determined by the method determination unit is data cleaning; The second processing unit is configured to compress the scene card backup data in the data storage space if the processing method determined by the method determination unit is data compression.
9. A storage medium, It is characterized in that The storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the data processing method for the scene card according to any one of claims 1 to 7.
10. A processor, It is characterized in that The processor is used to run a program, wherein the program executes the data processing method for the scene card according to any one of claims 1 to 7 when running.
Citation Information
Patent Citations
Automatic storage space arranging method and mobile terminal
CN104572113A
Efficient data caching processing method based on electronic chart
CN111159240A
Server storage space cleaning method and device, storage medium and electronic equipment
CN114706524A
