Cabin host fragmented file clearing method, system and device and medium
By obtaining and converting physical key commands, the fragmented files in the cockpit host operating system are cleaned, and the system is restarted after the cleaning is completed, the problem of the cockpit host operating system cannot be started, achieving the effect of quickly solving system abnormalities.
Patent Information
- Application Number
- CN202411914202.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-04-15
AI Technical Summary
After the fragmented files in the operating system of the cockpit host will accumulate to a certain level, the operating system of the cockpit host will not be started, seriously affecting the use of the vehicle.
By obtaining physical key commands, it is converted into protocol instructions, and notifying the file service through the driver service and the virtualized operating system to clean up fragmented files, and then the system restart of the cockpit host.
It realizes that when the cockpit host operating system cannot be started, quickly clear fragmented files and restart the system, solving the problem of abnormal or inability to start the cockpit host system caused by fragmented files.
Smart Images

Figure CN119829527A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle computer systems, and in particular to a method, system, device and medium for clearing fragmented files of a cockpit host. Background Art
[0002] As the number of car cockpit functions increases, the operating system of the cockpit host is becoming more and more complex. Currently, the mainstream cockpit host operating system all uses the Android system. With the popularization of the Android operating system in cockpit hosts, the problem of system fragmentation has gradually emerged, becoming one of the important factors restricting its further development. In order to provide more personalized services or optimize specific functions, car manufacturers will conduct secondary development on the basis of the native Android system and launch their own UI interface and special applications. Although these changes have enriched user choices, they have also further increased the degree of system fragmentation.
[0003] However, when the fragmented files in the cockpit host's operating system accumulate to a certain extent, the cockpit host's operating system will be unable to start, seriously affecting the use of the vehicle. Moreover, after the cockpit host's operating system cannot start, the traditional solution of transporting the faulty vehicle to an after-sales service store and replacing the host or specific equipment is also time-consuming and laborious. Summary of the invention
[0004] In view of the shortcomings of the prior art described above, the purpose of the present invention is to provide a method, system, device and medium for clearing fragmented files of a cockpit host, which is used to solve the problem in the prior art that when fragmented files in the operating system of the cockpit host accumulate to a certain extent, the operating system of the cockpit host cannot be started, seriously affecting the use of the vehicle.
[0005] To achieve the above-mentioned purpose and other related purposes, the present invention provides a method for clearing fragmented files of a cockpit host, including: obtaining physical button instructions; converting the physical button instructions into protocol instructions; clearing fragmented files according to the protocol instructions; after the fragmented files are cleared, restarting the cockpit host system.
[0006] In one embodiment of the present invention, before obtaining the physical key instruction, it also includes: performing startup monitoring of the cockpit host; when the cockpit host cannot be started, selecting and pressing the physical key corresponding to the physical key instruction to generate the physical key instruction.
[0007] In one embodiment of the present invention, when the cockpit host cannot be started, select and press the physical key corresponding to the physical key instruction to generate a physical key instruction, including: when the cockpit host cannot be started, select and press two or more preset buttons on the steering wheel to generate a physical key instruction.
[0008] In one embodiment of the present invention, obtaining a physical key instruction includes: obtaining, through a Lin bus, a physical key instruction generated when a physical key is pressed.
[0009] In one embodiment of the present invention, fragmented files are cleaned up according to protocol instructions, including: sending the protocol instructions to a driver service; sending the protocol instructions to a virtualized operating system through the driver service; and notifying a file service to clean up fragmented files through the virtualized operating system.
[0010] In one embodiment of the present invention, the virtualized operating system notifies the file service to clean up the fragmented files, including: the virtualized operating system notifies the file service to clean up the storage area storing the fragmented files.
[0011] In one embodiment of the present invention, after the fragmented files are cleaned up, the cockpit host system is restarted, including: after the fragmented files are cleaned up through the file service, notifying the cockpit host system restart through the file service.
[0012] In order to achieve the above-mentioned purpose and other related purposes, the present invention also provides a cockpit host fragmented file clearing system, including: an acquisition module for acquiring physical key instructions; a conversion module for converting physical key instructions into protocol instructions; a cleaning module for cleaning up fragmented files according to the protocol instructions; and a restart module for restarting the cockpit host system after the fragmented files are cleaned up.
[0013] To achieve the above-mentioned purpose and other related purposes, the present invention further provides an electronic device, which includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by one or more processors, the electronic device implements the aforementioned cockpit host fragmentation file clearing method.
[0014] To achieve the above-mentioned purpose and other related purposes, the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor of a computer, the computer executes the aforementioned cockpit host fragmentation file clearing method.
[0015] As described above, a cockpit host fragmentation file clearing method, system, device and medium of the present invention have the following beneficial effects: when the cockpit host cannot start, the physical button instructions corresponding to the physical buttons are collected, converted into protocol instructions and transmitted to the driver service, forwarded to the virtualized operating system through the driver service, and the file service is notified through the virtualized operating system to perform rapid clearing of fragmented files, and the cockpit host system is restarted after the clearing is completed. Through the above-mentioned method, it is possible to quickly clear the fragmented files inside the cockpit host operating system when the cockpit host operating system cannot start, and restart the cockpit host system after the clearing is completed, which can effectively solve the problem of cockpit host system abnormality or cockpit host failure to start due to the accumulation of fragmented files on the cockpit host system. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A flowchart of a method for clearing fragmented files in a cockpit host provided in an embodiment of the present invention.
[0017] Figure 2 Shown is a schematic diagram of a cockpit host fragmented file clearing process provided by an embodiment of the present invention.
[0018] Figure 3 Shown is a structural block diagram of a cockpit host fragmented file clearing system provided by an embodiment of the present invention.
[0019] Figure 4 Shown is a structural schematic diagram of an electronic device according to an embodiment of the present invention.
[0020] Component number description
[0021] Electronic device 1; cockpit host fragmented file clearing system 11; memory 12; processor 13; acquisition module 111; conversion module 112; cleaning module 113; restart module 114. DETAILED DESCRIPTION
[0022] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0023] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0024] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.
[0025] Lin (Local Interconnect Network) bus is a low-cost serial communication network defined for automotive distributed electronic systems. It is a supplement to other automotive multi-channel networks such as the Controller Area Network (CAN) and is suitable for applications that do not have high requirements on network bandwidth, performance or fault tolerance.
[0026] In computer networks, IPCP (Internet Protocol Control Protocol) is a network control protocol used to establish and configure the Internet Protocol on a point-to-point protocol connection. IPCP is responsible for configuring, enabling, and disabling IP protocol modules at both ends of a point-to-point connection. IPCP uses the same message exchange mechanism as the link control protocol. IPCP messages will not be exchanged until PPP reaches the network layer protocol stage, and any IPCP messages received before this stage should be silently discarded.
[0027] See also Figure 1 The present invention provides a method for clearing fragmented files of a cockpit host, comprising:
[0028] Step S10: Obtain physical key instructions;
[0029] Step S20: converting the physical key command into a protocol command;
[0030] Step S30: Clean up the fragmented files according to the protocol instructions;
[0031] Step S40: After the fragmented files are cleaned up, the cockpit host system is restarted.
[0032] Through the above steps, it is not difficult to find that in the process of clearing fragmented files in the system of the cockpit host, the user can press the corresponding physical button in the cockpit host to obtain the physical button instruction for clearing the fragmented files of the cockpit host. According to the physical button instruction, it can be further converted into a protocol instruction, and the fragmented files are controlled by the protocol instruction for cleaning. And after the cleaning is completed, the cockpit host system is restarted. Through the above content, the cleaning work can be implemented when the fragmented files in the cockpit host operating system accumulate to a certain extent, so as to realize the rapid clearing of the fragmented files inside the cockpit host. By quickly clearing the fragmented files inside the cockpit host and then restarting the cockpit host system, it can also effectively solve the problem of cockpit host system abnormality or inability to start the cockpit host due to the accumulation of fragmented files in the cockpit host system.
[0033] Figure 1 A flowchart of a method for clearing fragmented files in a cockpit host in an exemplary embodiment of the present application is shown, including steps S10 to S40. Figure 1 The technical solution of this application will be described in detail.
[0034] First, execute step S10 to obtain a physical key instruction.
[0035] The acquired physical key command is generated by a physical key. Specifically, when it is necessary to clean up the fragmented files of the cockpit host, the physical key command can be obtained by pressing the physical key in the cockpit host. Furthermore, the physical key command is converted into a protocol command to realize the cleaning of the fragmented files according to the protocol command control.
[0036] Before step S10, that is, before obtaining the physical key instruction, the method further includes:
[0037] Step S001: Startup monitoring of the cockpit host;
[0038] Step S002: When the cockpit host cannot be started, select and press the physical key corresponding to the physical key instruction to generate a physical key instruction.
[0039] In this embodiment, the physical key command obtained can be generated according to the startup status of the cockpit host through the corresponding physical key. Specifically, during the startup process of the cockpit host, it can be monitored whether the cockpit host has completed the startup, and when the cockpit host has completed the startup, it means that the accumulation degree of fragmented files has not reached the set threshold, and the fragmented files can be left unprocessed. When the cockpit host cannot be started, it means that the accumulation degree of fragmented files has reached the set threshold, and the physical key command can be generated by selecting and pressing the physical key corresponding to the physical key command, and then the physical key command is obtained and further converted into a protocol command to control the cleaning of fragmented files.
[0040] In step S002, when the cockpit host cannot be started, a physical key corresponding to the physical key instruction is selected and pressed to generate a physical key instruction, including:
[0041] When the cockpit host cannot be started, choose to press two or more preset buttons on the steering wheel to generate physical button commands.
[0042] In this embodiment, during the startup monitoring process of the cockpit host, when it is detected that the cockpit host cannot be started, the selectable physical buttons can be two or more arbitrary buttons pre-set on the steering wheel. By using the two or more arbitrary buttons to press in accordance with the set rule sequence, a physical button instruction is generated after the selection and pressing is completed. The rule sequence can be to press all the preset buttons at the same time, of course, it can also be to press each preset button separately in a set time in a sequence to generate a physical button instruction.
[0043] In step S10, obtaining a physical key instruction includes:
[0044] Get the physical key command generated when pressing the physical key through the Lin bus.
[0045] In this embodiment, a communication connection can be established with a corresponding physical key by utilizing the Lin bus, so that when a pressing signal of a physical key is obtained, a physical key instruction corresponding to the physical key is obtained through the Lin bus.
[0046] Next, step S20 is executed to convert the physical key command into a protocol command.
[0047] After pressing the physical key to obtain the physical key instruction, the physical key instruction needs to be further converted into a protocol instruction, so as to clean up the fragmented files according to the protocol instruction. In this embodiment, when converting the physical key instruction into the protocol instruction, the protocol instruction can be an IPCP protocol instruction.
[0048] Next, step S30 is executed to clean up the fragmented files according to the protocol instructions.
[0049] After obtaining the protocol instructions converted from the physical button instructions, the protocol instructions can be used to further control the cleaning and deletion of the system fragmented files of the cockpit host to solve the problem of cockpit host system abnormalities or even the inability to start the cockpit host due to the accumulation of fragmented files.
[0050] In step S30, the fragmented files are cleaned up according to the protocol instructions, including:
[0051] Step S301: Send the protocol instruction to the driver service;
[0052] Step S302: Sending the protocol instruction to the virtualized operating system through the driver service;
[0053] Step S303: Notify the file service to clean up the fragmented files through the virtualized operating system.
[0054] In this embodiment, after obtaining the protocol instruction according to the physical key instruction, the protocol instruction can be further sent to the driver service, and the protocol instruction can be forwarded to the virtualized operating system (virtualized OS) through the driver service, and the file service is notified through the virtualized operating system, and all fragmented files stored in the operating system of the cockpit host (such as the Android system) are cleaned and deleted through the file service.
[0055] In step S303, the virtualized operating system notifies the file service to clean up the fragmented files, including:
[0056] The virtualized operating system notifies the file service to clean up the storage area where the fragmented files are stored.
[0057] In this embodiment, when fragmented files are cleaned up, the fragmented files are stored separately in a set storage area. Therefore, after the virtualization operating system notifies the file service according to the protocol instructions, the storage area storing the fragmented files can be cleaned up through the file service to achieve rapid cleaning of the fragmented files.
[0058] Next, step S40 is executed, and after the fragmented files are cleaned up, the cockpit host system is restarted.
[0059] After all fragmented files are cleaned and deleted according to the protocol instructions, the cockpit host system is restarted to wake up the cockpit host system.
[0060] In step S40, after the fragmented files are cleaned up, the cockpit host system is restarted, including:
[0061] After the fragmented files are cleaned up through the file service, the cockpit host is notified through the file service to restart the system.
[0062] In this embodiment, after notifying the file service through the virtualized operating system according to the protocol instruction, the file service will clean up the fragmented files, and after the fragmented files are cleaned up, the cockpit host is further notified through the file service to restart the system.
[0063] See also Figure 2 , Figure 2 In the given embodiment, the combination key includes any two or more keys on the steering wheel in the cockpit. When the cockpit host cannot start the system, by pressing the combination key, the physical key instruction generated by the combination key can be passed to the key service through the Lin bus. After the security inspection service receives the physical key instruction corresponding to the combination key, the physical key instruction is converted into an IPCP protocol instruction and passed to the driver service. After the driver service receives the IPCP protocol instruction, the IPCP protocol instruction is passed to the virtualized OS (operating system), and the virtualized OS notifies the file service after receiving the instruction. Then, the file service performs a cleanup action on the fragmented files, and cleans and deletes all fragmented files in the operating system of the cockpit host (such as the Android system). And after the cleanup is completed, the file service notifies the cockpit host to restart the system, thereby realizing the rapid removal of fragmented files inside the cockpit host, and effectively solving the problem of cockpit host system abnormality or inability to start the cockpit host due to the accumulation of fragmented files on the cockpit host system.
[0064] Please refer to 3. The present invention also provides a cockpit host fragmented file clearing system 11, including: an acquisition module 111, used to obtain physical key instructions; a conversion module 112, used to convert physical key instructions into protocol instructions; a cleaning module 113, used to clean up fragmented files according to the protocol instructions; and a restart module 114, used to restart the cockpit host system after the fragmented files are cleaned up.
[0065] In the cockpit host fragmented file clearing system 11 of the present invention, the acquisition module 111 can be used to obtain the physical key instructions corresponding to the fragmented file clearing when the system cannot be started, for example, and the conversion module 112 can convert the physical key instructions into protocol instructions. The cleaning module 113 performs the clearing of fragmented files stored in the cockpit host system according to the protocol instructions. And after the clearing is completed, the restart module 114 is used to control the system restart of the cockpit host. In the above manner, it is possible to quickly clear the fragmented files inside the cockpit host, and restart the cockpit host system after the clearing is completed, which can effectively solve the problem of cockpit host system abnormality or cockpit host failure to start due to the accumulation of fragmented files on the cockpit host system.
[0066] It should be noted that the cockpit host fragmentation file clearing system 11 provided in the above embodiment and the cockpit host fragmentation file clearing method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment, and will not be repeated here. In actual application, the cockpit host fragmentation file clearing system 11 provided in the above embodiment can allocate the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.
[0067] See also Figure 4 The electronic device 1 may include a memory 12, a processor 13 and a bus, and may also include a computer program stored in the memory 12 and executable on the processor 13, such as a cockpit host fragmentation file cleaning program.
[0068] Among them, the memory 12 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 12 can be an internal storage unit of the electronic device 1, such as a mobile hard disk of the electronic device 1. In other embodiments, the memory 12 can also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 1. Further, the memory 12 can also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 12 can not only be used to store application software and various types of data installed in the electronic device 1, such as the code for clearing fragmented files of the cockpit host, etc., but also can be used to temporarily store data that has been output or is to be output.
[0069] In some embodiments, the processor 13 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 13 is the control core (Control Unit) of the electronic device 1, and uses various interfaces and lines to connect various components of the entire electronic device 1, and executes or executes programs or modules stored in the memory 12 (such as a cockpit host fragmentation file clearing program, etc.), and calls data stored in the memory 12 to execute various functions of the electronic device 1 and process data.
[0070] The processor 13 executes the virtualized operating system and various installed applications of the electronic device 1. The processor 13 executes the applications to implement the steps in the above-mentioned cockpit host fragmentation file clearing method.
[0071] Exemplarily, the computer program may be divided into one or more modules, which are stored in the memory 12 and executed by the processor 13 to complete the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the electronic device 1. For example, the computer program may be divided into an acquisition module 111; a conversion module 112; a cleaning module 113; and a restart module 114.
[0072] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium, and the computer-readable storage medium can be non-volatile or volatile. The above-mentioned software function module is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a computer device, or a network device, etc.) or a processor to perform part of the functions of the cockpit host fragmentation file clearing method described in each embodiment of the present application.
[0073] In summary, the present invention discloses a method, system, device and medium for clearing fragmented files of a cockpit host. When the cockpit host cannot be started, the physical button instructions corresponding to the physical buttons are collected, converted into protocol instructions and transmitted to the driver service, forwarded to the virtualized operating system through the driver service, and the file service is notified through the virtualized operating system to perform rapid clearing of fragmented files, and the system of the cockpit host is restarted after the clearing is completed. Through the above-mentioned method, it is possible to quickly clear the fragmented files inside the cockpit host operating system when the operating system of the cockpit host cannot be started, and restart the cockpit host system after the clearing is completed, which can effectively solve the problem of cockpit host system abnormality or cockpit host failure to start due to the accumulation of fragmented files on the cockpit host system. Therefore, the present invention effectively overcomes various shortcomings in the prior art and has a high industrial utilization value.
[0074] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A method for clearing fragmented files of a cockpit host, characterized in that: include: Get physical button commands; Convert the physical key command into a protocol command; Cleaning up fragmented files according to the protocol instructions; After the fragmented files are cleaned up, the cockpit host system is restarted.
2. The cockpit host fragmentation file clearing method according to claim 1, characterized in that: Before getting the physical button command, it also includes: Carry out startup monitoring of cockpit host; When the cockpit host cannot be started, select and press the physical key corresponding to the physical key instruction to generate the physical key instruction.
3. The cockpit host fragmentation file clearing method according to claim 2 is characterized by: When the cockpit host cannot be started, selecting to press the physical key corresponding to the physical key instruction to generate the physical key instruction includes: When the cockpit host cannot be started, two or more preset buttons on the steering wheel are selected to be pressed to generate the physical button command.
4. The cockpit host fragmentation file clearing method according to claim 1, characterized in that: Get physical button commands, including: The physical key instruction generated when the physical key is pressed is obtained through the Lin bus.
5. The cockpit host fragmentation file clearing method according to claim 1, characterized in that: According to the protocol instructions, the fragmented files are cleaned up, including: Sending the protocol instruction to the driver service; Sending the protocol instruction to the virtualized operating system through the driver service; The virtualized operating system notifies a file service to clean up the fragmented files.
6. The cockpit host fragmentation file clearing method according to claim 5, characterized in that: Notifying the file service to clean up the fragmented files through the virtualized operating system includes: The virtualized operating system notifies the file service to clean up the storage area storing the fragmented files.
7. The cockpit host fragmentation file clearing method according to claim 1, characterized in that: After the fragmented files are cleaned up, the cockpit host system is restarted, including: After the fragmented files are cleaned up through the file service, the cockpit host is notified through the file service to restart the system.
8. A cockpit host fragmentation file clearing system, characterized in that: include: An acquisition module is used to acquire physical key commands; A conversion module, used to convert the physical key command into a protocol command; A cleaning module, used to clean up fragmented files according to the protocol instructions; as well as The restart module is used to restart the cockpit host system after the fragmented files are cleaned up.
9. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the cockpit host fragmentation file clearing method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the cockpit host fragmentation file clearing method according to any one of claims 1 to 7.