Vehicle-based file processing method and device, vehicle, equipment and medium
By clearing cache files before powering off the vehicle, the lag issue caused by the accumulation of cache files in the vehicle entertainment subsystem was resolved, improving startup efficiency and extending disk lifespan.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING CO WHEELS TECH CO LTD
- Filing Date
- 2023-06-16
- Publication Date
- 2026-06-19
AI Technical Summary
The accumulation of cached files in the vehicle's entertainment subsystem leads to insufficient disk space, causing the entertainment subsystem to lag.
Before the vehicle is powered off, a vehicle power-off notification message is sent by the microcontroller unit to call a preset process to determine and delete the target cache file. After the file is deleted, control command information is generated to put the system-level processing chip and microcontroller unit into a preset sleep state.
It improves the startup efficiency and smoothness of the entertainment subsystem and extends the disk life of the entertainment subsystem.
Smart Images

Figure CN119149496B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of vehicle control technology, and in particular to a vehicle-based document processing method, apparatus, vehicle, equipment, and medium. Background Technology
[0002] As vehicles become more widespread, the functions of vehicle entertainment subsystems are becoming more diversified, providing services such as music playback and video playback within the vehicle.
[0003] In related technologies, disk space is provided for the vehicle's entertainment subsystem to store entertainment files. 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, it will cause the entertainment subsystem to lag. Summary of the Invention
[0004] In order to solve the above-mentioned technical problems, or at least partially solve the above-mentioned technical problems, this disclosure provides a vehicle-based file processing method, apparatus, vehicle, equipment and medium to solve the problem of entertainment subsystem startup lag caused by the continuous accumulation of cache files in the entertainment subsystem in the prior art.
[0005] This disclosure provides a vehicle-based file processing method, comprising the following steps: acquiring a vehicle power-down notification message, wherein the vehicle power-down notification message is sent by the microcontroller unit in the vehicle after detecting a vehicle power-down operation; invoking 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 the target cache file is deleted, generating control instruction information and sending a synchronization sleep message to the microcontroller unit, so that the microcontroller unit enters a preset sleep state according to the synchronization sleep message, wherein the control instruction information is used to control the system-level processing chip to enter the preset sleep state.
[0006] This disclosure also provides a vehicle-based file processing device, comprising: an acquisition module for acquiring a vehicle power-down notification message, wherein the vehicle power-down notification message is sent by a microcontroller unit in the vehicle after detecting a vehicle power-down operation; a deletion processing module for 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; and a hibernation control module for generating control instruction information after the target cache file is deleted and sending a synchronization hibernation message to the microcontroller unit, so that the microcontroller unit enters a preset hibernation state according to the synchronization hibernation message, wherein the control instruction information is used to control the system-level processing chip to enter the preset hibernation state.
[0007] This disclosure also provides an electronic device, the electronic device comprising: a processor; a memory for storing executable instructions of the processor; the processor being configured to read the executable instructions from the memory and execute the instructions to implement the vehicle-based file processing method provided in this disclosure.
[0008] This disclosure also provides a vehicle that includes the vehicle-based document processing device or electronic device described in the above embodiments.
[0009] This disclosure also provides a computer-readable storage medium storing a computer program for performing a vehicle-based document processing method as provided in this disclosure.
[0010] The technical solution provided in this disclosure has the following advantages compared with the prior art:
[0011] The vehicle-based file processing solution provided in this disclosure acquires a vehicle power-down notification message sent by the microcontroller unit (MCU). This notification message is sent by the MCU after detecting a vehicle power-down operation. The MCU invokes a preset process to determine the target cache file of the vehicle entertainment subsystem and deletes it. After the cache file deletion is complete, control command information is generated and a synchronization sleep message is sent to the MCU. This causes the MCU to enter a preset sleep state based on the synchronization sleep message. The control command information is used to control the system-level processing chip to enter the preset sleep state. In this embodiment, the cache files in the vehicle entertainment subsystem are cleared before the vehicle is powered off, which helps improve the startup efficiency and smoothness of the entertainment subsystem and extends the disk lifespan corresponding to the entertainment subsystem. Attached Figure Description
[0012] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent when taken in conjunction with the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote 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 this embodiment of the present disclosure;
[0014] Figure 2 A flowchart illustrating a vehicle-based document processing method provided in this embodiment of the disclosure;
[0015] Figure 3 Another schematic block diagram of a vehicle-based functional module provided in this embodiment of the present disclosure;
[0016] Figure 4 A flowchart illustrating another vehicle-based document processing method provided in this disclosure embodiment;
[0017] Figure 5 A schematic diagram of a vehicle-based document processing device provided in this embodiment of the present disclosure;
[0018] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0019] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0020] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0021] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based 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". Definitions of other terms will be given in the description below.
[0022] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0023] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0024] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0025] To address the aforementioned problems, this disclosure provides a vehicle-based file processing method, wherein, as... Figure 1 As shown, the vehicle in this embodiment includes a system-on-a-chip (SOC) and a microcontroller unit (MCU). The SOC and the MCU interact to perform relevant functions in the vehicle. For example, in this embodiment, the SOC and the MCU interact to perform file processing and vehicle hibernation.
[0026] In the embodiments of this disclosure, for ease of explanation, the focus is on the method of processing documentation on the system-level processing chip side, which is described as follows:
[0027] The method will be described below with reference to specific embodiments.
[0028] Figure 2 This is a flowchart illustrating a vehicle-based document processing method according to an embodiment of this disclosure. The method can be executed by a vehicle-based document processing device, which can be implemented in software and / or hardware, and is generally integrated into the vehicle's system-level processing chip. Figure 2 As shown, the method includes:
[0029] Step 201: Obtain the vehicle power-down notification message. The vehicle power-down notification message is sent by the microcontroller unit in the vehicle after detecting a vehicle power-down operation.
[0030] In the disclosed embodiments, based on the vehicle control principle, after the microcontroller unit detects that the user has performed a power-down operation on the vehicle, it sends a vehicle power-down notification message to the system-level processing chip. Upon receiving the notification message, the system-level processing chip performs subsequent cache file cleanup. This power-down operation could be the user triggering the vehicle's power-off button or performing a preset vehicle locking operation. In this embodiment, the system-level processing chip does not directly perform a power-down operation upon receiving the notification message. Instead, it enters a partial operating state. In this partial operating state, the system-level processing chip's power consumption exceeds a preset power consumption threshold. During this state, the chip can perform cache file cleanup operations. For example, it can identify functional modules unrelated to cache file cleanup, power down the unrelated modules, and keep the relevant modules powered on to facilitate further cache file cleanup. The relevant functional modules may include the central processing unit corresponding to the system-level processing chip, while the unrelated functional modules may include the screen module, etc.
[0031] Step 202: Invoke a preset process to determine the target cache file of the vehicle entertainment subsystem, and delete the target cache file through the preset process.
[0032] 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 target cache files from the storage device. The preset process is different in different application scenarios. A possible preset process will be illustrated in the following embodiments.
[0033] In one embodiment of this disclosure, a preset process is invoked to determine the target cache file of the vehicle entertainment subsystem. The target cache file can be understood as the entertainment cache file generated during the provision of entertainment services in the vehicle entertainment subsystem. In this embodiment, the target cache file is deleted by the preset process, thereby freeing up the disk space storing the entertainment cache control, which helps to improve the startup efficiency and startup smoothness of the entertainment subsystem.
[0034] Step 203: After the target cache file is deleted, control instruction information is generated and a synchronization sleep message is sent to the microcontroller unit so that the microcontroller unit enters a preset sleep state according to the synchronization sleep message. The control instruction information is used to control the system-level processing chip to enter the preset sleep state.
[0035] In one embodiment of this disclosure, after the target cache file is deleted, control instruction information is generated. This 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, a synchronization sleep message is also sent to the microcontroller unit before the system-level processing chip enters the preset sleep state, so that the microcontroller unit enters the preset sleep state. The preset sleep state proposed in this embodiment can be understood as a working state where the operating power consumption is less than a corresponding preset power consumption threshold. In the preset sleep state, the system-level processing chip stops providing functional services for the relevant scenario. The preset power consumption thresholds for the preset sleep states of the microcontroller unit and the system-level processing chip can be the same or different, and can be specifically calibrated according to the scenario.
[0036] It is important to emphasize that the entire 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 during file processing. Therefore, in one embodiment of this disclosure, when the system-level processing chip performs target cache file cleanup, it sends a preset delayed power-down notification message to the microcontroller unit according to a preset time interval (e.g., 1 second) and a preset communication protocol. The preset communication protocol is a pre-built communication protocol between the microcontroller unit and the system-level processing chip. For example, a postpone command message is sent to the microcontroller unit according to the preset communication protocol, ensuring that the microcontroller unit remains powered on upon receiving the preset delayed power-down notification message. The postpone command message can be understood as a delayed processing message that can be actively executed by the microcontroller unit. After receiving the postpone command message, the microcontroller unit can postpone the power-down operation to allow interaction between the microcontroller unit and 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-down notification message to the microcontroller unit.
[0037] In some possible embodiments, the microcontroller unit can maintain the power-on state for a preset delay duration after receiving a preset delayed power-off notification message each time. The preset delay duration is longer than a preset time interval. Thus, the microcontroller unit can maintain the power-on state for a preset delay duration each time it receives a preset delayed power-off notification message.
[0038] In some possible embodiments, in order to further ensure that the microcontroller is powered on when the system-level processing chip is in operation, the microcontroller can remain powered on until it receives a synchronous sleep message after receiving any preset delayed power-off notification message.
[0039] Therefore, in the vehicle-based file processing method of this embodiment, after the vehicle power-off operation is obtained, the system-level processing chip and microcontroller unit are not directly controlled to enter the power-off state. Instead, the system-level processing chip is controlled to clear the relevant cache files of the entertainment subsystem, and then the system-level processing chip and microcontroller unit are controlled to enter the preset sleep state. Thus, the relevant cache files of the entertainment subsystem are cleared in time before each vehicle power-off, which helps to improve the startup efficiency and startup smoothness of the entertainment subsystem.
[0040] In summary, the vehicle-based file processing method of this disclosure obtains a vehicle power-down notification message sent by the microcontroller unit. This notification message is sent by the microcontroller unit after detecting a vehicle power-down operation. A preset process is invoked to determine the target cache file of the vehicle entertainment subsystem, and the target cache file is deleted through the preset process. After the target cache file deletion is complete, control command information is generated, and a synchronization sleep message is sent to the microcontroller unit to cause the microcontroller unit to enter a preset sleep state. The control command information is used to control the system-level processing chip to enter the preset sleep state. In this embodiment, the cache files in the vehicle entertainment subsystem are cleared before the vehicle is powered off, which helps improve the startup efficiency and smoothness of the entertainment subsystem and extends the disk lifespan corresponding to the entertainment subsystem.
[0041] Based on the above embodiments, the methods for determining the target cache file of the vehicle entertainment subsystem by calling a preset process differ in different application scenarios. Examples are illustrated below:
[0042] In one embodiment of this disclosure, when the system-level processing chip is in a partially operational state, the central processing unit (CPU) is locked in a preset operating state. This preset operating state allows the CPU to run preset processes to perform operations such as deleting target cache files. The CPU in the system-level processing chip invokes the preset process to determine the target cache file of the vehicle entertainment subsystem and then deletes it. The preset process manages and controls the storage device in the vehicle entertainment subsystem that stores cache files. In this embodiment, the CPU invokes the preset process to read candidate cache files from the storage device and determines the target cache file that meets preset deletion conditions. Then, the preset process executes preset controller instructions to send a work notification message for the target cache file to the CPU, causing the CPU to delete the target cache file in response to the invalidation notification message.
[0043] Furthermore, after the target cache file is deleted, a preset lock release operation is performed on the central processing unit (CPU) which is in a preset working state. This allows for the generation of control instructions to control the system-level processing chip to enter a preset sleep state upon detecting the completion message of the preset lock release operation. After the preset lock release operation, the CPU is in a preset low-level state, at which point it ceases operation and cannot support operations such as the execution of preset processes.
[0044] It should be noted that the aforementioned preset process can be any process capable of managing and controlling the storage device storing cached files in the vehicle entertainment subsystem. The preset controller instruction is any pre-set instruction that can be executed by the preset process to report target cached files to be deleted to the central processing unit. For example, in this embodiment, such as Figure 3 As shown, if the preset process is the Vold process, where the Vold process is used to control the storage device of the vehicle entertainment subsystem, the Vold process is a native process of the system and can forward messages to the central processing unit. In this embodiment, after the Vold process reads the target cache file in the candidate cache file in the storage device that meets the preset deletion conditions, it executes the preset controller instruction, the Trim instruction, to send an invalid notification message to the central processing unit. The Trim instruction is a controller instruction used to inform the central processing unit which files in the disk of the entertainment subsystem are cache files that can be cleared. In this embodiment, by executing the Trim instruction, the Vold process can inform the central processing unit of the target cache file that meets the preset deletion conditions, so that the central processing unit can delete the corresponding target cache file, etc.
[0045] In one embodiment of this disclosure, a preset process can identify the file storage parameters of candidate cache files in the storage device. When the file storage parameters include the cache file type, the preset process determines the candidate cache file with the cache file type of the preset type as the target cache file. The preset type can be a pre-set file type of cache file that can be deleted. In this embodiment, the candidate cache file of a specific type is deleted, which further meets the user's personalized file cleaning needs.
[0046] In one embodiment of this disclosure, when the file storage parameters include the file generation time of the cached file, the power-on time period of the current power-on process is determined, and all candidate cached files whose generation time belongs to the power-on time period are determined as target cached files that meet the preset deletion conditions. Thus, the cached files of the entertainment subsystem generated during each power-on process are cleared in a timely manner.
[0047] In one embodiment of this disclosure, when the file storage parameter includes file storage amount, the preset deletion condition is that the file storage amount is greater than a preset storage amount threshold, wherein the preset storage amount threshold can be set according to the needs of the scenario. In some possible examples, the file storage parameter includes file storage duration, and the preset deletion condition is that the file storage duration is greater than a preset duration threshold, that is, deleting some older historical cache files, etc. In some possible examples, the remaining storage amount of the disk of the storage entertainment subsystem can also be detected, and the preset deletion condition can be determined to be met when the remaining storage amount is less than the preset storage threshold, etc.
[0048] Of course, in actual execution, after the target cache file is identified, it can also be deleted directly to achieve timely cleanup of cache files in the vehicle's entertainment subsystem.
[0049] In order to avoid prolonged vehicle power-off delay due to long deletion time of target cache files, in one embodiment of this disclosure, the file cleanup time of the target cache file can be determined. For example, the file cleanup time can be determined based on the file cleanup speed and the file size of the target cache file. When the file cleanup time exceeds a preset cleanup time threshold, the system control system-level processing chip calls a preset alternative deletion process through the central processing unit. The target cache file is deleted by the preset process and the preset alternative deletion process together, so as to reduce the file cleanup time of the target cache file. For example, the target cache file can be split into two parts, one part can be deleted by the preset process, and the other part can be deleted by the preset alternative deletion process.
[0050] To make the vehicle-based file processing process of this disclosure embodiment clearer to those skilled in the art, the following example illustrates the process in a specific application scenario. In this scenario, the vehicle power-off operation is the user's vehicle locking operation, the control unit is represented by an MCU, and the system-level processing chip is represented by a SOC. In this embodiment, a preset process acquires the target cache file through preset controller instructions. The preset process is the Vold process, and the preset controller instructions are the Trim instructions.
[0051] like Figure 4 As shown, in this embodiment, after the MCU receives the user's car locking operation, the MCU triggers the detection of the vehicle's power-off, notifying the SOC to control the entertainment subsystem to enter a partial working state. The SOC notifies the Vold process to start cleaning up the entertainment subsystem's files, controlling the SOC's central processing unit to lock in a preset working state. The SOC can send a preset delayed power-off notification message to the MCU at a preset time interval to keep the MCU powered on. After the Vold process determines the target cache file, it executes the Trim instruction to allow the central processing unit to delete the target cache file. 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, causing the central processing unit to exit the preset working state. After detecting that the target cache file has been deleted, the SOC generates control instruction information. The control instruction information is used to control the system-level processing chip to enter a preset sleep state and sends a synchronous sleep message to the microcontroller unit so that the microcontroller unit also enters a preset sleep state.
[0052] In summary, the vehicle-based file processing method of this disclosure can determine the target cache file of the vehicle's entertainment subsystem in different ways according to the needs of the scenario before the vehicle is powered off, and clear the target cache file. This helps to improve the startup efficiency and smoothness of the entertainment subsystem and extend the disk life of the corresponding entertainment subsystem.
[0053] To implement the above embodiments, this disclosure also proposes a vehicle-based document processing device.
[0054] Figure 5 This is a schematic diagram of a vehicle-based file processing device provided in an embodiment of this disclosure. The vehicle includes a system-level processing chip and a microcontroller unit. The device is applied to the system-level processing chip and can be implemented by software and / or hardware. It is generally integrated into the vehicle's system-level processing chip for vehicle-based file processing. Figure 5 As shown, the device includes: an acquisition module 510, a deletion processing module 520, and a hibernation control module 530, wherein,
[0055] The acquisition module 510 is used to acquire the vehicle power-off notification message, which is sent by the microcontroller unit in the vehicle after detecting the vehicle power-off operation.
[0056] The deletion processing module 520 is used to call a preset process to determine the target cache file of the vehicle entertainment subsystem and delete the target cache file through the preset process.
[0057] The hibernation control module 530 is used to generate control command information after the target cache file is deleted, and send a synchronous hibernation message to the microcontroller unit so that the microcontroller unit enters a preset hibernation state according to the synchronous hibernation message. The control command information is used to control the system-level processing chip to enter the preset hibernation state.
[0058] In some possible embodiments, it also includes: a central processing unit control module, for:
[0059] Before invoking a preset process to determine the target cache file of the vehicle entertainment subsystem, the central processing unit in the system control-level processing chip is locked in a preset working state.
[0060] Deletion processing module 520 is specifically used for:
[0061] The central processing unit calls a preset process to determine the target cache file of the vehicle entertainment subsystem, and then deletes the target cache file through the preset process.
[0062] In some possible embodiments, the hibernation control module 530 is used for:
[0063] After the target cache file is deleted, a preset lock release operation is performed on the central processing unit which is in a preset working state; in response to the detection of the operation completion message of the preset lock release operation, control instruction information is generated.
[0064] In some possible embodiments, it also includes: a notification module, used for:
[0065] According to a preset time interval and a preset communication protocol, a preset delayed power-down notification message is sent to the microcontroller unit so that the microcontroller unit is in a powered-on state.
[0066] In some possible embodiments, a preset process is used to manage and control the storage device storing cached files in the vehicle entertainment subsystem, and the deletion processing module 520 is specifically used for:
[0067] The central processing unit invokes a preset process to read candidate cache files from the storage device;
[0068] The target cache file that meets the preset deletion conditions is determined from the candidate cache files through a preset process;
[0069] The system executes preset controller instructions through a preset process to send an invalid 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.
[0070] In some possible embodiments, the deletion processing module 520 is specifically used for:
[0071] Identify the cache file type of the candidate cache files, and determine the candidate cache files with the preset cache file type as the target cache files that meet the preset deletion conditions.
[0072] In some possible embodiments, the deletion processing module 520 is specifically used for:
[0073] Identify the file storage parameters of candidate cache files;
[0074] When file storage parameters include file storage size, candidate cache files whose storage size is greater than a preset storage size threshold are identified as target cache files that meet preset deletion conditions, and / or,
[0075] When the file storage parameters include file storage duration, candidate cache files whose file storage duration is greater than a preset duration threshold are identified as target cache files that meet the preset deletion conditions.
[0076] The vehicle-based document processing device provided in this disclosure can execute the vehicle-based document processing method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects of executing the method.
[0077] To implement the above embodiments, this disclosure also proposes a computer program product, including a computer program / instructions, which, when executed by a processor, implements the vehicle-based file processing method in the above embodiments.
[0078] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure.
[0079] The following is a detailed reference. Figure 6 The diagram illustrates a structural schematic suitable for implementing the electronic device 600 in the embodiments of this disclosure. The electronic device 600 in the embodiments of this disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 6 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0080] like Figure 6 As shown, electronic device 600 may include a processor (e.g., central processing unit, graphics processor, etc.) 601, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 602 or a program loaded from memory 608 into random access memory (RAM) 603. RAM 603 also stores various programs and data required for the operation of electronic device 600. Processor 601, ROM 602, and RAM 603 are interconnected via bus 604. Input / output (I / O) interface 605 is also connected to bus 604.
[0081] Typically, the following devices can be connected to I / O interface 605: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 608 including, for example, magnetic tapes, hard disks, etc.; and communication devices 609. Communication device 609 allows electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6 An electronic device 600 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0082] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via 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, it performs the functions defined in the vehicle-based file processing method of embodiments of this disclosure.
[0083] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0084] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0085] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0086] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to:
[0087] The system receives a vehicle power-down notification message from the microcontroller unit (MCU). This message is sent by the MCU after detecting a vehicle power-down operation. A preset process is invoked to determine the target cache file of the vehicle entertainment subsystem, and this target cache file is then deleted. After the cache file deletion is complete, control command information is generated, and a synchronization sleep message is sent to the MCU to induce the MCU to enter a preset sleep state. This control command information is used to control the system-level processing chip to enter the preset sleep state. In this embodiment, clearing the cache file in the vehicle entertainment subsystem before power-down helps improve the startup efficiency and smoothness of the entertainment subsystem, and extends the lifespan of the corresponding disk.
[0088] Electronic devices can be programmed with computer program code in one or more programming languages or combinations thereof to perform the operations of this disclosure. These programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as "C" or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can 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 can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0089] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0090] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the units are not, in some cases, intended to limit the specific unit.
[0091] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0092] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0093] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0094] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0095] Although the subject matter has been described using language specific to structural features and / or methodological logic, 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. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A vehicle-based document processing method, characterized by, The method includes the following steps: Obtain a vehicle power-down notification message, wherein the vehicle power-down notification message is sent by the microcontroller unit in the vehicle after detecting a vehicle power-down operation; A preset process is invoked to determine the target cache file of the vehicle entertainment subsystem, and the target cache file is deleted through the preset process. After the target cache file is deleted, control instruction information is generated and a synchronization sleep message is sent to the microcontroller unit so that the microcontroller unit enters a preset sleep state according to the synchronization sleep message. The control instruction information is used to control the system-level processing chip to enter the preset sleep state.
2. The method of claim 1, wherein, Before invoking the preset process to determine the target cache file of the vehicle entertainment subsystem, the following is also included: The central processing unit in the system-level processing chip is locked in a preset working state; The step of calling a preset process to determine the target cache file of the vehicle entertainment subsystem and deleting the target cache file through the preset process includes: The central processing unit calls the preset process to determine the target cache file of the vehicle entertainment subsystem, and then deletes the target cache file through the preset process.
3. The method of claim 2, wherein, After the target cache file is deleted, 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 that is in the preset working state; In response to the detection of the operation completion message of the preset lock release operation, control command information is generated.
4. The method of claim 1, wherein, Before the target cache file deletion is complete, the following is also included: According to a preset time interval and a preset communication protocol, a preset delayed power-down notification message is sent to the microcontroller to keep the microcontroller in a powered-on state.
5. The method of claim 2, wherein, The preset process is used to manage and control the storage device storing cache files in the vehicle entertainment subsystem. The step of determining the target cache file of the vehicle entertainment subsystem by calling the preset process through the central processing unit, and deleting the target cache file through the preset process, includes: The central processing unit invokes the preset process to read candidate cache files from the storage device; The preset process determines the target cache file in the candidate cache file that meets the preset deletion conditions. The preset process executes preset controller instructions to send an invalid 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.
6. The method of claim 5, wherein, The step of determining the target cache file that meets the preset deletion conditions in the candidate cache file through the preset process includes: Identify the cache file type of the candidate cache file, and determine the candidate cache file whose cache file type is a preset type as the target cache file that meets the preset deletion conditions.
7. The method of claim 5, wherein, The step of determining the target cache file that meets the preset deletion conditions in the candidate cache file through the preset process includes: Identify the file storage parameters of the candidate cache files; When the file storage parameters include file storage size, candidate cache files whose file storage size is greater than a preset storage size threshold are determined as target cache files that meet the preset deletion conditions, and / or, When the file storage parameters include file storage duration, candidate cache files whose file storage duration is greater than a preset duration threshold are determined as target cache files that meet the preset deletion conditions.
8. A vehicle-based document processing apparatus, characterized by comprising: The device includes: The acquisition module is used to acquire the vehicle power-down notification message, wherein the vehicle power-down notification message is sent by the microcontroller unit in the vehicle after detecting the vehicle power-down operation; The deletion processing module is used to call a preset process to determine the target cache file of the vehicle entertainment subsystem, and delete the target cache file through the preset process. The hibernation control module is used to generate control command information after the target cache file is deleted, and send a synchronous hibernation message to the microcontroller unit so that the microcontroller unit enters a preset hibernation state according to the synchronous hibernation message. The control command information is used to control the system-level processing chip to enter the preset hibernation state.
9. An electronic device, comprising: The electronic device includes: processor; Memory used to store the processor's executable instructions; The processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the vehicle-based file processing method according to any one of claims 1-7.
10. A vehicle characterized by comprising: The vehicles include: The vehicle-based document processing device as described in claim 8; or the electronic device as described in claim 9.
11. A computer readable storage medium, characterized in that, The computer-readable storage medium stores a computer program for performing the vehicle-based document processing method according to any one of claims 1-7.