Vehicle-based file processing method and device, vehicle, equipment and medium

By clearing the cached files of the entertainment subsystem before the vehicle is powered off, the startup lag caused by cached files is solved, the startup efficiency and fluency of the entertainment subsystem is improved, and the service life of the disk is extended.

CN119149496AActive Publication Date: 2024-12-17BEIJING CO WHEELS TECH CO LTD

Patent Information

Application Number
CN202310722870.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-16
Publication Date
2024-12-17
Estimated Expiration
2043-06-16

AI Technical Summary

Technical Problem

The accumulation of cache files in the vehicle entertainment subsystem leads to startup stuttering.

Method used

When the vehicle is powered off, the vehicle powered off notification message is sent through the microcontroller unit, the preset process is called to delete the target cache file, and the control command is generated after the file is deleted, so that the system-level processing chip and the microcontroller unit enter the preset sleep state.

Benefits of technology

It improves the startup efficiency and fluency of the entertainment subsystem and extends the service life of the disk.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119149496A_ABST
    Figure CN119149496A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to a file processing method and device based on a vehicle, the vehicle, equipment and a medium, and the method comprises the steps that a whole vehicle power-off notification message is obtained, and the whole vehicle power-off notification message is sent after a micro-control unit in the vehicle detects a vehicle power-off operation; calling a preset process to determine a target cache file of the vehicle entertainment subsystem, and deleting the target cache file through the preset process; after deletion of the target cache file is completed, control instruction information is generated, a synchronous dormancy message is sent to the micro-control unit, so that the micro-control unit enters a preset dormancy state according to the synchronous dormancy message, and the control instruction information is used for controlling the system-level processing chip to enter the preset dormancy state. In the embodiment of the invention, before the vehicle is powered off, the cache file in the entertainment subsystem of the vehicle is cleared, the starting efficiency and the starting fluency of the entertainment subsystem are improved, and the service life of a disk corresponding to the entertainment subsystem is prolonged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of vehicle control technology, and in particular to a vehicle-based file processing method, device, vehicle, equipment and medium. Background Art

[0002] As vehicles become more and more popular, the functions of vehicle-based entertainment subsystems are becoming more and more diverse. Vehicle entertainment subsystems can provide services such as music playback and video playback in the vehicle.

[0003] In the related art, a disk space is provided for storing entertainment files for the vehicle's entertainment subsystem. The disk space is used to store files generated during the entertainment service process in the entertainment subsystem. When a large number of entertainment files accumulate and the disk space is insufficient, the entertainment subsystem will freeze. Summary of the invention

[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a vehicle-based file processing method, device, vehicle, equipment and medium to solve the problem of entertainment subsystem startup jamming caused by continuous accumulation of cache files in the entertainment subsystem in the prior art.

[0005] An embodiment of the present disclosure provides a vehicle-based file processing method, the method comprising the following steps: obtaining a vehicle power-off notification message, wherein the vehicle power-off notification message is sent by a microcontroller unit in the vehicle after detecting a vehicle power-off operation; calling a preset process to determine a target cache file of a vehicle entertainment subsystem, and deleting the target cache file through the preset process; after the target cache file is deleted, generating control instruction information, and sending a synchronous sleep message to the microcontroller unit, so that the microcontroller unit enters a preset sleep state according to the synchronous sleep message, and the control instruction information is used to control the system-level processing chip to enter a preset sleep state.

[0006] The disclosed embodiment also provides a vehicle-based file processing device, the device comprising: an acquisition module, used to acquire a vehicle power-off notification message, wherein the vehicle power-off notification message is sent by a microcontroller unit in the vehicle after detecting a vehicle power-off operation; a deletion processing module, used to call a preset process to determine a target cache file of a vehicle entertainment subsystem, and delete the target cache file through the preset process; a sleep control module, used to generate control instruction information after the target cache file is deleted, and send a synchronous sleep message to the microcontroller unit, so that the microcontroller unit enters a preset sleep state according to the synchronous sleep message, and the control instruction information is used to control the system-level processing chip to enter a preset sleep state.

[0007] An embodiment of the present disclosure also provides an electronic device, which includes: a processor; a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the vehicle-based file processing method provided in the embodiment of the present disclosure.

[0008] The embodiments of the present disclosure further provide a vehicle, which includes the vehicle-based file processing device or electronic device of the above embodiments.

[0009] The embodiment of the present disclosure further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the vehicle-based file processing method provided by the embodiment of the present disclosure.

[0010] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:

[0011] The vehicle-based file processing solution provided by the embodiment of the present disclosure obtains the vehicle power-off notification message sent by the microcontroller unit, wherein the vehicle power-off notification message is sent by the microcontroller unit after detecting the vehicle power-off operation, calls a preset process to determine the target cache file of the vehicle entertainment subsystem, and deletes the target cache file through the preset process, and then, after the target cache file is deleted, generates control instruction information, and sends a synchronous sleep message to the microcontroller unit, so that the microcontroller unit enters a preset sleep state according to the synchronous sleep message, and the control instruction information is used to control the system-level processing chip to enter a preset sleep state. In the embodiment of the present disclosure, before the vehicle is powered off, the cache files in the vehicle entertainment subsystem are cleared, which helps to improve the startup efficiency and startup smoothness of the entertainment subsystem and extend the disk life corresponding to the entertainment subsystem. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0013] Figure 1 A schematic block diagram of a vehicle-based functional module provided in an embodiment of the present disclosure;

[0014] Figure 2 A schematic flow chart of a vehicle-based file processing method provided in an embodiment of the present disclosure;

[0015] Figure 3 A schematic block diagram of another vehicle-based functional module provided in an embodiment of the present disclosure;

[0016] Figure 4 A flowchart of another vehicle-based file processing method provided by an embodiment of the present disclosure;

[0017] Figure 5 A schematic diagram of the structure of a vehicle-based file processing device provided in an embodiment of the present disclosure;

[0018] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0019] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain 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 construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0020] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0021] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0022] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0023] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0024] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0025] In order to solve the above problems, the present disclosure provides a vehicle-based file processing method, wherein: Figure 1 As shown, the vehicle of the embodiment of the present disclosure includes a system on a chip (SOC) and a microcontroller unit (MCU), wherein the system on a chip and the microcontroller unit interact to complete relevant functions in the vehicle. For example, in this embodiment, the system on a chip and the microcontroller unit interact to complete file processing and vehicle hibernation.

[0026] In the embodiments of the present disclosure, for the convenience of description, the file processing method is described focusing on the system-level processing chip side, as follows:

[0027] The method is introduced below in conjunction with specific embodiments.

[0028] Figure 2 The present invention provides a flow chart of a vehicle-based file processing method provided by an embodiment of the present invention. The method can be executed by a vehicle-based file processing device, wherein the device can be implemented by software and / or hardware, and can generally be integrated into a system-level processing chip of a vehicle. Figure 2 As shown, the method includes:

[0029] Step 201, obtaining a vehicle power-off notification message, wherein the vehicle power-off notification message is sent by a micro control unit in the vehicle after detecting a vehicle power-off operation.

[0030] In the disclosed embodiment, based on the whole vehicle control principle, after the microcontroller unit obtains and detects that the user performs a power-off operation on the vehicle, it sends a whole vehicle power-off notification message to the system-level processing chip. After obtaining the whole vehicle power-off notification message, the system-level processing chip performs subsequent cache file cleaning processing, wherein the above-mentioned power-off operation can be that the user triggers the vehicle's power off button, or the user performs a preset vehicle lock operation, etc. That is, in this embodiment, after receiving the whole vehicle power-off notification message, the system-level processing chip does not directly perform the power-off processing, but enters a partial working state, wherein the operating power consumption of the system-level processing chip in the partial working state is greater than the preset operating power consumption threshold, and the system-level processing chip in the partial working state can perform relevant cache file cleaning operations, such as identifying functional modules that are not related to cleaning cache files, and performing power-off processing on irrelevant functional modules, and maintaining the power-on state for relevant functional modules, so as to further clean up cache files, wherein the relevant functional modules may include a central processing unit corresponding to the system-level processing chip, and the irrelevant functional modules may include a screen module, etc.

[0031] Step 202 , calling a preset process to determine a target cache file of the vehicle entertainment subsystem, and deleting the target cache file through the preset process.

[0032] Among them, the preset process is a pre-set process for deleting target cache files. The preset process can manage and control the storage device that stores cache files in the vehicle entertainment subsystem. Thus, the preset process can read the storage device to determine the relevant target cache files, etc. In different application scenarios, the preset process is different. A possible preset process will be exemplified in the embodiments below.

[0033] In one embodiment of the present disclosure, a preset process is called to determine a target cache file of a vehicle entertainment subsystem. The target cache file can be understood as an entertainment cache file generated in the process of providing entertainment services in the vehicle entertainment subsystem. In this embodiment, the target cache file is deleted through a preset process, thereby freeing up disk space for storing entertainment cache controls, which helps to improve the startup efficiency and startup smoothness of the entertainment subsystem.

[0034] Step 203, after the target cache file is deleted, generate control instruction information, and send a synchronous sleep message to the micro control unit, so that the micro control unit enters a preset sleep state according to the synchronous sleep message. The control instruction information is used to control the system-level processing chip to enter a preset sleep state.

[0035] In one embodiment of the present disclosure, after the target cache file is deleted, control instruction information is generated, and the control instruction information is used to control the system-level processing chip to enter a preset sleep state. In order to control the microcontroller unit to enter the preset sleep state, before the system-level processing chip enters the preset sleep state, a synchronous sleep message is also sent to the microcontroller unit to make the microcontroller unit enter the preset sleep state. Among them, the preset sleep state proposed in this embodiment can be understood as a working state in which the operating power consumption is less than the corresponding preset power consumption threshold. In the preset sleep state, the system-level processing chip stops providing functional services in the relevant scene, and the preset power consumption thresholds of the preset sleep states corresponding to the microcontroller unit and the system-level processing chip can be the same or different, and can be specifically calibrated according to the scene.

[0036] It should be emphasized that the whole vehicle including the system-level processing chip and the microcontroller unit relies on the interaction between the system-level processing chip and the microcontroller unit in the process of executing file processing. Therefore, in one embodiment of the present disclosure, when the system-level processing chip executes the target cache file cleaning, a preset delayed power-off notification message is sent to the microcontroller unit according to a preset time interval (such as 1 second) and a preset communication protocol, wherein the preset communication protocol is a pre-built communication protocol between the microcontroller unit and the system-level processing chip. For example, a postpone instruction message is sent to the microcontroller unit according to the preset communication protocol, so that the microcontroller unit is always in a powered-on state when receiving the preset delayed power-off notification message, wherein the postpone instruction message can be understood as a delayed processing message that can be actively executed by the microcontroller unit. When the microcontroller unit receives the postpone instruction message, the power-off operation can be postponed so that the microcontroller unit can interact with the system-level processing chip. In this embodiment, after the target cache file is deleted, the system-level processing chip stops sending the preset delayed power-off notification message to the microcontroller unit.

[0037] Among them, in some possible embodiments, the microcontroller unit can remain in the power-on state according to a preset delay duration each time after receiving a preset delayed power-off notification message, wherein the preset delay duration is greater than the preset time interval. Thus, each time the microcontroller unit receives a preset delayed power-off notification message, it can delay the preset delay duration to remain in the power-on state.

[0038] In some possible embodiments, in order to further ensure that the microcontroller unit is in a powered-on state when the system-level processing chip is in a working state, the microcontroller unit can always remain in a powered-on state upon receiving any preset delayed power-off notification message until a synchronous sleep message is received.

[0039] Therefore, in the vehicle-based file processing method of the disclosed embodiment, after the vehicle power-off operation is acquired, the system-level processing chip and the microcontroller unit are not directly controlled to enter the power-off state. Instead, after the system-level processing chip clears the relevant cache files of the entertainment subsystem, the system-level processing chip and the microcontroller unit enter a preset sleep state. Thus, the relevant cache files of the entertainment subsystem are cleared in time before each vehicle power-off, so as to improve the startup efficiency and startup smoothness of the entertainment subsystem.

[0040] In summary, the vehicle-based file processing method of the embodiment of the present disclosure obtains the vehicle power-off notification message sent by the microcontroller unit, wherein the vehicle power-off notification message is sent by the microcontroller unit after detecting the vehicle power-off operation, calls a preset process to determine the target cache file of the vehicle entertainment subsystem, and deletes the target cache file through the preset process, and then, after the target cache file is deleted, generates control instruction information, and sends a synchronous sleep message to the microcontroller unit to make the microcontroller unit enter a preset sleep state, and the control instruction information is used to control the system-level processing chip to enter a preset sleep state. In the embodiment of the present disclosure, before the vehicle is powered off, the cache files in the vehicle entertainment subsystem are cleared, which helps to improve the startup efficiency and startup smoothness of the entertainment subsystem and extend the disk life corresponding to the entertainment subsystem.

[0041] Based on the above embodiments, in different application scenarios, the methods of determining the target cache file of the vehicle entertainment subsystem by calling the preset process are different, and examples are described as follows:

[0042] In one embodiment of the present disclosure, when the system-level processing chip is in a partial working state, the central processing unit is controlled to be locked in a preset operating state, wherein the central processing unit in the preset operating state is a preset state in which a preset process can be run to perform operations such as deleting a target cache file, and the preset process is called by the central processing unit in the system-level processing chip to determine the target cache file of the vehicle entertainment subsystem, and the target cache file is deleted by the preset process. The preset process is used to manage and control the storage device storing cache files in the vehicle entertainment subsystem. In this embodiment, the preset process is called by the central processing unit to read the candidate cache files in the storage device, and the target cache file that meets the preset deletion condition in the candidate cache file is determined, and then, the preset process executes the preset controller instruction to send a work notification message for the target cache file to the central processing unit, so that the central processing unit deletes the target cache file in the storage device in response to the invalid notification message.

[0043] Furthermore, after the target cache file is deleted, a preset lock release operation is performed on the central processing unit in the preset working state, so that in response to detecting the completion message of the preset lock release operation, control instruction information for controlling the system-level processing chip to enter the preset sleep state is generated. Among them, the central processing unit after the preset lock release operation is in a preset low-level state, at which time the central processing unit is no longer running and cannot support operations such as the running of the preset process.

[0044] It should be noted that the above-mentioned preset process can be any process that can manage and control the storage device storing cache files in the vehicle entertainment subsystem, and the preset controller instruction is any pre-set instruction that can be executed by the preset process and is used to report the target cache file to be deleted to the central processor. For example, in this embodiment, if Figure 3 As shown, if the preset process is the Vold process, wherein the Vold process is a storage device for controlling the vehicle entertainment subsystem, the Vold process is a process of the system native layer, and can forward messages to the central processing unit. In this embodiment, the Vold process can read the target cache file that meets the preset deletion condition in the candidate cache file in the storage device, and then execute the preset controller instruction as the Trim instruction to send an invalid notification message to the central processing unit, wherein the Trim instruction is a controller instruction for informing the central processing unit which files in the disk storing the entertainment sub-file are cache files that can be cleared. In this embodiment, the Vold process can inform the central processing unit of the target cache file that meets the preset deletion condition by executing the Trim instruction, so that the central processing unit can delete the corresponding target cache file, etc.

[0045] In one embodiment of the present disclosure, a preset process can identify file storage parameters of candidate cache files in a storage device. When the file storage parameters include a cache file type, the preset process determines that a candidate cache file whose cache file type is a preset type is a target cache file. The preset type may be a pre-set file type of a cache file that can be deleted, etc. In this embodiment, candidate cache files of a specific type are deleted, further meeting the user's personalized file cleaning needs.

[0046] In one embodiment of the present disclosure, when the file storage parameters include the file generation time of the cache file, the power-on time period in the current power-on process is determined, and all candidate cache files whose generation time belongs to the power-on time period are determined to be target cache files that meet the preset deletion conditions, thereby achieving timely clearing of the cache files of the entertainment subsystem generated during each power-on process.

[0047] In one embodiment of the present disclosure, when the file storage parameter includes the file storage amount, the preset deletion condition is that the file storage amount is greater than the preset storage amount threshold, wherein the preset storage amount threshold can be set according to the scene requirements. In some possible examples, the file storage parameter includes the file storage duration, and the preset deletion condition is that the file storage duration is greater than the preset duration threshold, that is, some historical cache files generated earlier are deleted, etc. In some possible examples, the remaining storage amount of the disk storing the entertainment subsystem can also be detected, and when the remaining storage amount is less than the preset storage amount threshold, it is determined that the preset deletion condition is met, etc.

[0048] Of course, in the actual execution process, after the target cache file is identified, the target cache file can also be directly deleted to achieve timely cleaning of the cache files in the entertainment subsystem of the vehicle.

[0049] Among them, in order to avoid a long deletion time of the target cache file, which causes a long power-off delay of the vehicle, in one embodiment of the present disclosure, the file cleaning time of the target cache file can also be determined. For example, the file cleaning time is determined according to the file cleaning speed and the file size of the target cache file. When the file cleaning time is greater than the preset cleaning time threshold, the control system-level processing chip calls the preset alternative deletion process through the central processing unit, and deletes the target cache file together through the preset process and the preset alternative deletion process to reduce the file cleaning time of the target cache file. For example, the target cache file can be split into two parts, one part of which is deleted through the preset process, and the other part is deleted through the preset alternative deletion process, etc.

[0050] In order to make the vehicle-based file processing process of the embodiment of the present disclosure more clear to those skilled in the art, an example is given below in combination with a specific application scenario, wherein in this scenario, the vehicle power-off operation is a user's vehicle locking operation, the control unit is represented by MCU, and the system-level processing chip is represented by SOC. In this embodiment, the preset process obtains the target cache file through a preset controller instruction, wherein the preset process is the Vold process, and the preset controller instruction is the Trim instruction:

[0051] like Figure 4 As shown, in this embodiment, after the MCU obtains the user's vehicle locking operation, the MCU starts to trigger the operation of detecting the power-off of the entire vehicle, notifies the SOC to control the entertainment subsystem to enter a partial working state, and the SOC notifies the Vold process to start file cleaning of the entertainment subsystem, controls the central processing unit of the SOC to be locked in a preset working state, and the SOC can send a preset delayed power-off notification message to the MCU according to a preset time interval to make the MCU in a powered-on state. After the Vold process determines the target cache file, it executes the Trim instruction to facilitate the central processing unit to delete the target cache file, and after clearing the target cache file, the Vold process unlocks the central processing unit, and the SOC stops sending the preset delayed power-off notification message to the MCU, so that the central processing unit exits the preset working state. After detecting that the target cache file is deleted, the SOC generates control instruction information, and the control instruction information is used to control the system-level processing chip to enter a preset sleep state, and send a synchronous sleep message to the micro control unit, so that the micro control unit also enters a preset sleep state.

[0052] In summary, the vehicle-based file processing method of the disclosed embodiment can determine the target cache file of the vehicle's entertainment subsystem in different ways according to scenario requirements before the vehicle is powered off, and clear the target cache file, thereby helping to improve the startup efficiency and startup smoothness of the entertainment subsystem and extend the life of the disk corresponding to the entertainment subsystem.

[0053] In order to implement the above embodiments, the present disclosure also proposes a vehicle-based file processing device.

[0054] Figure 5 This is a schematic diagram of the structure of a vehicle-based file processing device provided by an embodiment of the present disclosure. The vehicle includes a system-level processing chip and a microcontroller unit. The device is applied to the system-level processing chip. The device can be implemented by software and / or hardware and can generally be integrated into the vehicle's system-level processing chip to perform vehicle-based file processing. Figure 5 As shown, the device includes: an acquisition module 510, a deletion processing module 520 and a sleep control module 530, wherein:

[0055] The acquisition module 510 is used to acquire a vehicle power-off notification message, wherein the vehicle power-off notification message is sent by a micro control unit in the vehicle after detecting a vehicle power-off operation;

[0056] A deletion processing module 520, used to call a preset process to determine a target cache file of the vehicle entertainment subsystem, and delete the target cache file through the preset process;

[0057] The sleep control module 530 is used to generate control instruction information after the target cache file is deleted, and send a synchronous sleep message to the micro control unit so that the micro control unit enters a preset sleep state according to the synchronous sleep message. The control instruction information is used to control the system-level processing chip to enter a preset sleep state.

[0058] In some possible embodiments, the present invention further includes: a central processing unit control module, configured to:

[0059] Before calling a preset process to determine a target cache file of a vehicle entertainment subsystem, a central processing unit in a control system-level processing chip is locked in a preset working state;

[0060] The deletion processing module 520 is specifically used for:

[0061] The target cache file of the vehicle entertainment subsystem is determined by calling a preset process through the central processing unit, and the target cache file is deleted through the preset process.

[0062] In some possible embodiments, the sleep control module 530 is used to:

[0063] After the target cache file is deleted, a preset lock release operation is performed on the central processing unit in a preset working state; and control instruction information is generated in response to a message of detecting an operation completion of the preset lock release operation.

[0064] In some possible embodiments, the present invention further includes: a notification module, configured to:

[0065] A preset delayed power-off notification message is sent to the micro control unit according to a preset time interval and a preset communication protocol, so that the micro control unit is in a power-on state.

[0066] In some possible embodiments, the preset process is used to manage and control the storage device storing cache files in the vehicle entertainment subsystem, and the deletion processing module 520 is specifically used to:

[0067] Calling a preset process to read the candidate cache file in the storage device through the central processing unit;

[0068] Determine, through a preset process, a target cache file among the candidate cache files that meets a preset deletion condition;

[0069] The preset controller instruction is executed through a preset process to send an invalidation notification message for the target cache file to the central processor, so that the central processor deletes the target cache file in the storage device in response to the invalidation notification message.

[0070] In some possible embodiments, the deletion processing module 520 is specifically configured to:

[0071] The cache file type of the candidate cache file is identified, and the candidate cache file whose cache file type is a preset type is determined to be a target cache file that meets a preset deletion condition.

[0072] In some possible embodiments, the deletion processing module 520 is specifically configured to:

[0073] identifying file storage parameters of candidate cache files;

[0074] When the file storage parameter includes the file storage amount, determining the candidate cache file whose file storage amount is greater than a preset storage amount threshold as the target cache file that meets the preset deletion condition, and / or,

[0075] When the file storage parameter includes the file storage duration, the candidate cache file whose file storage duration is greater than a preset duration threshold is determined as the target cache file that meets the preset deletion condition.

[0076] The vehicle-based file processing device provided in the embodiments of the present disclosure can execute the vehicle-based file processing method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0077] In order to implement the above embodiments, the present disclosure further proposes a computer program product, including a computer program / instruction, which implements the vehicle-based file processing method in the above embodiments when executed by a processor.

[0078] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure.

[0079] The following specific reference Figure 6 , which shows a schematic diagram of the structure of an electronic device 600 suitable for implementing the embodiment of the present disclosure. The electronic device 600 in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0080] like Figure 6 As shown, the electronic device 600 may include a processor (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a memory 608 to a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processor 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0081] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a memory 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0082] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains 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 609, or installed from a memory 608, or installed from a ROM 602. When the computer program is executed by the processor 601, the above-mentioned functions defined in the vehicle-based file processing method of the embodiment of the present disclosure are executed.

[0083] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, 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 the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0084] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0085] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0086] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:

[0087] Obtain the vehicle power-off notification message sent by the microcontroller unit, wherein the vehicle power-off notification message is sent by the microcontroller unit after detecting the vehicle power-off operation, call the preset process to determine the target cache file of the vehicle entertainment subsystem, and delete the target cache file through the preset process, and then, after the target cache file is deleted, generate control instruction information, and send a synchronous sleep message to the microcontroller unit to make the microcontroller unit enter a preset sleep state, and the control instruction information is used to control the system-level processing chip to enter a preset sleep state. In the embodiment of the present disclosure, before the vehicle is powered off, the cache files in the vehicle entertainment subsystem are cleared, which helps to improve the startup efficiency and startup smoothness of the entertainment subsystem and extend the disk life corresponding to the entertainment subsystem.

[0088] The electronic device may be written in one or more programming languages ​​or a combination thereof to write computer program code for performing the operations of the present disclosure, including but not limited to 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 via 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).

[0089] 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 disclosure. 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 implementations as replacements, 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 the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0090] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.

[0091] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0092] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 foregoing.

[0093] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0094] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0095] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A vehicle-based file processing method, characterized in that: The method comprises the following steps: Obtaining a vehicle power-off notification message, wherein the vehicle power-off notification message is sent by a micro control unit in the vehicle after detecting a vehicle power-off operation; Calling a preset process to determine a target cache file of a vehicle entertainment subsystem, and deleting the target cache file through the preset process; After the target cache file is deleted, control instruction information is generated, and a synchronous sleep message is sent to the micro control unit, so that the micro control unit enters a preset sleep state according to the synchronous sleep message. The control instruction information is used to control the system-level processing chip to enter a preset sleep state.

2. The method according to claim 1, characterized in that Before calling the preset process to determine the target cache file of the vehicle entertainment subsystem, the method further includes: Controlling the central processing unit in the system-level processing chip to be locked in a preset working state; The calling of a preset process to determine a target cache file of the vehicle entertainment subsystem, and deleting the target cache file through the preset process, includes: The target cache file of the vehicle entertainment subsystem is determined by calling the preset process through the central processor, and the target cache file is deleted through the preset process.

3. The method according to claim 2, characterized in that After the target cache file is deleted, the control instruction information is generated, including: After the target cache file is deleted, a preset lock release operation is performed on the central processing unit in the preset working state; In response to detecting an operation completion message of the preset lock release operation, control instruction information is generated.

4. The method according to claim 1, characterized in that Before the target cache file is deleted, the method further includes: A preset delayed power-off notification message is sent to the micro control unit according to a preset time interval and a preset communication protocol, so that the micro control unit is in a power-on state.

5. The method according to claim 2, characterized in that The preset process is used to manage and control a storage device storing cache files in the vehicle entertainment subsystem, the central processor calling the preset process to determine a target cache file of the vehicle entertainment subsystem, and deleting the target cache file through the preset process, including: Calling the preset process to read the candidate cache file in the storage device through the central processor; Determine, through the preset process, a target cache file in the candidate cache file that meets a preset deletion condition; The preset controller instruction is executed by the preset process to send an invalidation notification message for the target cache file to the central processor, so that the central processor deletes the target cache file in the storage device in response to the invalidation notification message.

6. The method according to claim 5, characterized in that Determining the target cache file that meets the preset deletion condition among the candidate files through the preset process includes: The cache file type of the candidate cache file is identified, and the candidate cache file whose cache file type is a preset type is determined to be the target cache file that meets the preset deletion condition.

7. The method according to claim 5, characterized in that Determining the target cache file that meets the preset deletion condition among the candidate cache files through the preset process includes: Identifying file storage parameters of the candidate cache file; When the file storage parameter includes a file storage amount, determining the candidate cache file whose file storage amount is greater than a preset storage amount threshold as the target cache file that meets the preset deletion condition, and / or, When the file storage parameter includes the file storage duration, the candidate cache file whose file storage duration is greater than a preset duration threshold is determined as the target cache file that meets the preset deletion condition.

8. A vehicle-based file processing device, characterized in that: The device comprises: An acquisition module, used for acquiring a vehicle power-off notification message, wherein the vehicle power-off notification message is sent by a micro control unit in the vehicle after detecting a vehicle power-off operation; A deletion processing module, used for calling a preset process to determine a target cache file of a vehicle entertainment subsystem, and deleting the target cache file through the preset process; The sleep control module is used to generate control instruction information after the target cache file is deleted, and send a synchronous sleep message to the micro control unit so that the micro control unit enters a preset sleep state according to the synchronous sleep message. The control instruction information is used to control the system-level processing chip to enter a preset sleep state.

9. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the vehicle-based file processing method described in any one of claims 1-7.

10. A vehicle, characterized in that: The vehicle comprises: The vehicle-based file processing device as claimed in claim 8; or, the electronic device as claimed in claim 9.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is used to execute the vehicle-based file processing method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Vehicle entertainment management method and device and vehicle entertainment device

    CN107872485A

  • Vehicle control device, vehicle, recording medium, and vehicle control method

    CN113543075A

  • External resource management method based on vehicle-mounted information entertainment system

    CN114564301A

  • Method and device for processing storage space of in-vehicle infotainment system and related equipment

    CN115826855A

Cited By

  • Processing method and device of target domain controller of vehicle, vehicle and medium

    CN119882532A