Fault repair method, device and equipment for vehicle operating system
By presetting the corresponding relationship between fault codes and fault types, loading the fault repair program interface library, and promptly repairing faults in the vehicle operating system, solving the problem of functional module failures in the vehicle operating system affecting driving safety, and improving repair efficiency and safety.
Patent Information
- Application Number
- CN202011048157.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-29
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-09-29
AI Technical Summary
Functional modules in vehicle operating systems often malfunction, affecting driving safety. Existing technologies cannot repair faults in a timely manner, resulting in low repair efficiency.
By presetting the corresponding relationship between fault codes and fault types, the fault repair program interface library is loaded, the target fault code is obtained and the corresponding fault repair program is executed, the fault of the target functional module is repaired in a timely manner, and the fault code is broadcast to coordinate with other functional modules to execute the repair program. .
It realizes rapid repair of vehicle operating system faults and improves vehicle driving safety and fault handling efficiency.
Smart Images

Figure CN112181746B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of electronic technology, and in particular to a method, device and equipment for repairing a fault of an in-vehicle operating system. Background Art
[0002] There are many functional modules in the vehicle operating system. During the operation of the vehicle operating system, functional modules often fail, such as process crashes, process deadlocks, and hang-ups. Due to the particularity of the vehicle operating system, these abnormal failures are likely to affect driving safety and cause personal injury.
[0003] At present, fault repair of vehicle operating systems can only be carried out after the product enters the market and is returned due to faults. At this time, the faulty system often cannot be started or the fault problem has disappeared, thus missing the opportunity to solve the problem and resulting in inefficient fault repair. Summary of the invention
[0004] The present application provides a method, device and apparatus for repairing a vehicle-mounted operating system fault, and the technical solution is as follows:
[0005] In a first aspect, an embodiment of the present application provides a method for repairing a fault of an in-vehicle operating system, wherein the in-vehicle operating system is mounted on a fault repair device, and the in-vehicle operating system includes a plurality of functional modules for processing system data, and the method includes the steps of:
[0006] When a preset fault occurs in the target functional module, a target fault code corresponding to the preset fault is obtained;
[0007] Determine the fault type corresponding to the target fault code, and search for the target interface corresponding to the target fault repair program from a fault repair program interface library according to the corresponding relationship between the fault type and the preset fault repair program; wherein each functional module is pre-loaded with the fault repair program interface library, the fault repair program interface library includes a number of calling interfaces of preset fault repair programs, different types of faults correspond to different fault repair programs, and the fault repair program is stored in the fault repair device in the form of a piece of code;
[0008] The target functional module is controlled to call the target interface, execute the target fault repair program, and complete the repair of the fault in the target functional module.
[0009] Optionally, the method further comprises the steps of:
[0010] The target fault code is broadcasted in the vehicle operating system through the target function module, so that other function modules in the vehicle operating system except the target function module receive the target fault code, and control other function modules that are bound to the target function module to execute the target fault repair program together.
[0011] Optionally, before broadcasting the target fault code in the vehicle operating system through the target function module, the following steps are included:
[0012] Obtaining the data calling relationship between each of the functional modules;
[0013] According to the data calling relationship, the function module of the calling data is bound to the function module of the called data.
[0014] Optionally, the controlling other functional modules that are in a binding relationship with the target functional module to execute the target fault repair program together comprises the steps of:
[0015] Control the other functional modules to determine whether the fault corresponding to the target fault code is a common fault, and if so, control the other functional modules to execute the target fault repair program together.
[0016] Optionally, the controlling other functional modules that are in a binding relationship with the target functional module to execute the target fault repair program together also includes the steps of:
[0017] Control the other functional modules to determine whether the fault corresponding to the target fault code is a non-common fault. If so, control the associated functional modules of the non-common fault to search for the target interface corresponding to the target fault repair program from the program interface of the vehicle operating system, and call back the target interface to execute the target fault repair program.
[0018] Optionally, when a preset fault occurs in the target functional module, the method further comprises the steps of:
[0019] Capture the operating environment information of the current vehicle operating system;
[0020] The target fault and the current operating environment information are stored according to a preset local path.
[0021] Optionally, when a preset fault occurs in the target functional module, the method further comprises the steps of:
[0022] If the vehicle operating system is in development mode, capturing the current operating environment information of the vehicle operating system and the log document of the target functional module;
[0023] storing the target fault, the current operating environment information and the log document of the target functional module according to a preset local path;
[0024] and / or,
[0025] The target fault, the current operating environment information and the log document of the target functional module are output through the serial port of the vehicle-mounted operating system.
[0026] In a second aspect, an embodiment of the present application provides a fault recovery device for a vehicle-mounted operating system, comprising:
[0027] A first acquisition module 61 is used to acquire a target fault code corresponding to a preset fault when a preset fault occurs in a target functional module;
[0028] The second acquisition module 62 is used to determine the fault type corresponding to the target fault code, and according to the corresponding relationship between the fault type and the preset fault repair program, search the target interface corresponding to the target fault repair program from the fault repair program interface library; wherein each functional module is pre-loaded with the fault repair program interface library, the fault repair program interface library includes a plurality of calling interfaces of preset fault repair programs, different types of faults correspond to different fault repair programs, and the fault repair program is stored in the fault repair device in the form of a piece of code;
[0029] The execution control module 63 is used to control the target functional module to call the target interface, execute the target fault repair program, and complete the repair of the fault in the target functional module.
[0030] In a third aspect, an embodiment of the present application provides a device comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the fault repair method for the vehicle operating system as described in the first aspect are implemented.
[0031] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps of the fault repair method of the vehicle operating system as described in the first aspect above.
[0032] In the embodiment of the present application, by presetting different faults in the vehicle operating system, classifying the faults according to the fault codes corresponding to the faults, and preloading the fault repair program interface library in each functional module, providing a number of calling interfaces of preset fault repair programs, so that when a preset fault occurs in the target functional module, the target fault code corresponding to the preset fault can be obtained in time, and the fault type corresponding to the target fault code can be determined. Then, according to the correspondence between the fault type and the preset fault repair program, the target interface corresponding to the target fault repair program is searched from the fault repair program interface library, and the target functional module is controlled to call the target interface, execute the target fault repair program, quickly complete the repair of the fault in the target functional module, ensure the normal operation of the vehicle operating system, and thus improve the driving safety of the car.
[0033] For better understanding and implementation, the technical solution of the present application is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A flowchart of a method for repairing a vehicle operating system fault provided by an embodiment of the present application;
[0035] Figure 2 A structural diagram of the data calling relationship between the functional modules provided in one embodiment of the present application;
[0036] Figure 3 A flowchart of a method for repairing a vehicle operating system fault provided by another embodiment of the present application;
[0037] Figure 4 A schematic diagram of the flow of S104 in a method for repairing a vehicle operating system fault according to another embodiment of the present application;
[0038] Figure 5 A flowchart of a fault repair method for an in-vehicle operating system provided in other embodiments of the present application;
[0039] Figure 6 A schematic diagram of the structure of a fault recovery device for an in-vehicle operating system provided by one embodiment of the present application;
[0040] Figure 7 A schematic diagram of the structure of a fault recovery device for an in-vehicle operating system provided in one embodiment of the present application. DETAILED DESCRIPTION
[0041] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0042] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0043] It should be understood that, although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" / "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determination".
[0044] The vehicle operating system is a program system that manages and controls vehicle hardware and software resources. It is system software that can run directly on a bare computer. It can manage computer hardware, software, and data resources, realize audio and video signal processing, system time management, assisted driving and other functions, so that the car can maintain efficient and safe driving.
[0045] The vehicle operating system includes several functional modules for processing system data. These functional modules run in the vehicle operating system in the form of processes. The cooperation between the various functional modules can ensure the normal operation of the vehicle operating system.
[0046] However, in the actual use of the car, each functional module in the vehicle operating system has a certain probability of failure, such as: io read and write exceptions, file operation exceptions, communication blocking, thread blocking, resource preemption, null pointer and data stack overflow, etc. If these failures cannot be repaired in time, the normal operation of the operating system will be affected, thereby affecting the driving safety of the car. To avoid the above situation, the embodiment of the present application proposes a method for repairing the fault of the vehicle operating system.
[0047] In an optional embodiment, the executor of the fault repair method of the vehicle-mounted operating system may be a computer device equipped with the vehicle-mounted operating system, or a component in the computer device, such as a processor or a microprocessor; in another optional embodiment, the executor may be other computer devices on the car that establish a data connection with the computer device equipped with the vehicle-mounted operating system, or a component in other computer devices; in other optional embodiments, the executor may also be a remote server that establishes a network connection with the vehicle-mounted operating system.
[0048] In the embodiment of the present application, a computer device equipped with the vehicle-mounted operating system (hereinafter referred to as a fault repair device) is used as an execution subject to execute a fault repair method of the vehicle-mounted operating system.
[0049] See also Figure 1 , is a flow chart of a method for repairing a fault of an in-vehicle operating system provided by an embodiment of the present application, the method comprising the following steps:
[0050] S101: When a preset fault occurs in a target functional module, a target fault code corresponding to the preset fault is obtained.
[0051] In the embodiment of the present application, several preset faults and a fault code corresponding to each preset fault are stored in the fault repair device.
[0052] The fault code is a string of codes that identifies a preset fault, and the type of the fault code can be either a string type or a numerical type.
[0053] The several preset faults and the fault codes corresponding to each preset fault can be stored in the form of structured files, such as a two-dimensional data relationship table, etc., or in the form of unstructured files, such as XML files, etc. The specific storage form is not limited here.
[0054] Specifically, if the fault repair device monitors all functional modules, when a preset fault occurs in a target functional module, the fault repair device actively captures the preset fault and obtains a target fault code corresponding to the preset fault.
[0055] If each functional module performs self-monitoring, then when a preset fault occurs in the target functional module, a fault signal is sent to the fault repair device, and the fault repair device obtains a target fault code corresponding to the preset fault in response to the fault signal.
[0056] In an optional embodiment, the above-mentioned several preset faults and the fault code corresponding to each preset fault can also be stored in an external device that establishes a data connection with the fault repair device. When a preset fault occurs in the target functional module, the fault repair device sends the preset fault information to the external device and receives the target fault code corresponding to the preset fault from the external device.
[0057] S102: Determine the fault type corresponding to the target fault code, and search for the target interface corresponding to the target fault repair program from a fault repair program interface library according to the correspondence between the fault type and the preset fault repair program; wherein the fault repair program interface library is pre-loaded in each functional module, and the fault repair program interface library includes a number of calling interfaces of preset fault repair programs.
[0058] There is a many-to-one correspondence between fault codes and fault types. The fault repair device can determine the fault type corresponding to the target fault code based on the correspondence between the preset fault codes and fault types, and then search for the target interface corresponding to the target fault repair program from the fault repair program interface library based on the correspondence between the fault type and the preset fault repair program.
[0059] Among them, in the embodiment of the present application, the fault types include IO read and write failures, file failures, resource preemption failures, and communication failures, etc. Different types of faults correspond to different fault repair procedures, such as: process restart, thread restart, device restart, reopen file, reinitialize IPC, and import backup files or databases, etc.
[0060] The fault repair program interface library is pre-loaded in each functional module and can provide the functional module with a number of calling interfaces of preset fault repair programs.
[0061] The fault repair program is stored in the fault repair device in the form of a piece of code, and the fault repair program can be called through the calling interface provided to the functional module by the fault repair program interface library.
[0062] S103: Control the target functional module to call the target interface and execute the target fault repair program.
[0063] After the target functional module obtains the target interface, the fault repair device controls the target functional module to call the target interface and execute the target fault repair program.
[0064] In the embodiment of the present application, by presetting different faults in the vehicle operating system, classifying the faults according to the fault codes corresponding to the faults, and preloading the fault repair program interface library in each functional module, providing a number of calling interfaces of preset fault repair programs, so that when a preset fault occurs in the target functional module, the target fault code corresponding to the preset fault can be obtained in time, and the fault type corresponding to the target fault code can be determined. Then, according to the correspondence between the fault type and the preset fault repair program, the target interface corresponding to the target fault repair program is searched from the fault repair program interface library, and the target functional module is controlled to call the target interface, execute the target fault repair program, quickly complete the repair of the fault in the target functional module, ensure the normal operation of the vehicle operating system, and thus improve the driving safety of the car.
[0065] In the vehicle operating system, there is a data call relationship between the functional modules. The cooperation of several functional modules can realize a certain function of the operating system. For details, please refer to Figure 2 , which is a structural diagram of the data calling relationship between the functional modules provided in one embodiment of the present application, Figure 2 A total of 6 functional modules are shown, namely Module1 to Module6. According to the arrows, it can be understood that the data of Module6 needs to be provided to Module1 to Module5 for use. Therefore, if Module6 fails and causes data abnormality, Module1 to Module5 will also have a high probability of failure due to the need to use the data of Module6, thereby affecting the normal use of a certain function of the operating system. To solve the above problem, in another embodiment of the present application, please refer to Figure 3 On the basis of executing steps S101 to S103, the method further includes step S104, which is as follows:
[0066] S104: broadcasting the target fault code in the vehicle operating system through the target function module, so that other function modules in the vehicle operating system except the target function module receive the target fault code, and controlling other function modules that are bound to the target function module to execute the target fault repair program together.
[0067] In the event of a fault in the target functional module, the fault repair device, in addition to controlling the target functional module to call the target interface to execute the target fault repair program, also broadcasts the target fault code in the vehicle operating system through the target functional module, so that other functional modules in the vehicle operating system except the target functional module receive the target fault code, and controls other functional modules that are bound to the target functional module to execute the target fault repair program together.
[0068] Specifically, the fault repair device encapsulates the target functional module's identifier and the target fault code by controlling the target functional module, and broadcasts them to other functional modules in the form of a broadcast instruction, wherein the target functional module's identifier is used to determine which functional module issues the broadcast instruction.
[0069] Therefore, after receiving the broadcast instruction, the other functional modules are controlled to parse and obtain the identification of the target functional module and the target fault code, and determine whether there is a binding relationship with the target functional module according to the identification of the target functional module. If so, other functional modules that are bound to the target functional module are controlled to execute the target fault repair program together.
[0070] In an optional embodiment, before executing step S104, the fault repair device needs to obtain the data calling relationship between each of the functional modules, and then bind the functional module of the calling data with the functional module of the called data according to the data calling relationship.
[0071] The data call relationship is the relationship between the functional modules that have been determined in the underlying design stage of the vehicle operating system. In the embodiment of the present application, the data call relationship can be stored in the form of a data call relationship graph, which is a directed graph, and at least one data call relationship graph is stored in the fault repair device.
[0072] Specifically, the fault repair device obtains a data call relationship graph, and binds a function module of the calling data with a function module of the called data according to a connection relationship between nodes in the graph.
[0073] The binding method may be to establish a binding table for the calling relationship, wherein the binding table stores the identifier of the function module of the called data and the corresponding identifier of the function module that calls the data.
[0074] In an optional embodiment, in order to more accurately handle the fault and reduce system overhead, please refer to Figure 4 , step S104 includes S1041 to S1042, which are specifically as follows:
[0075] S1041: Control the other functional modules to determine whether the fault corresponding to the target fault code is a common fault, and if so, control the other functional modules to execute the target fault repair program together.
[0076] Faults can be divided into common faults and non-common faults during setting. Common faults are faults with a high probability of occurrence, which are faults that all other functional modules need to handle, and the interfaces will be pre-loaded in the fault repair program interface library. Non-common faults are special faults that only require specific functional modules to handle, and the interfaces will not be pre-loaded in the fault repair program interface library.
[0077] The fault repair device controls other functional modules that are bound to the target functional module to determine whether the fault corresponding to the target fault code is a common fault. If so, it controls other functional modules to search for the target interface corresponding to the target fault repair program from its own fault repair program interface library, and execute the target fault repair program together.
[0078] S1042: Control the other functional modules to determine whether the fault corresponding to the target fault code is a non-common fault. If so, control the associated functional modules of the non-common fault to search for the target interface corresponding to the target fault repair program from the program interface of the vehicle operating system, and call back the target interface to execute the target fault repair program.
[0079] Among them, the program interface of the vehicle operating system includes all the callable interfaces of the vehicle operating system, but only a part of the calling interfaces corresponding to common faults will be pre-loaded from the program interface of the vehicle operating system to the fault repair program interface library of each functional module.
[0080] Therefore, if the fault corresponding to the target fault code is a non-public fault, it is necessary to control the associated functional module of the non-public fault that has a binding relationship with the target functional module to search for the target interface corresponding to the target fault repair program from the program interface of the vehicle operating system, and call back the target interface to execute the target fault repair program.
[0081] In this embodiment, the target fault code is broadcasted in the vehicle operating system through the target function module, so that other function modules in the vehicle operating system except the target function module receive the target fault code, and control other function modules that are bound to the target function module to execute the target fault repair program together, so that when a function module fails, other function modules that are bound to it can also obtain the fault information in time and make corresponding processing quickly, which is more conducive to ensuring the normal operation of the operating system and improving the efficiency of fault handling.
[0082] In addition, since the failure of the functional modules in the vehicle operating system is usually a probabilistic failure, some random problems may occur. These problems usually cannot be reproduced in a regular manner, which may lead to quality accidents, user complaints and other problems. In order to reduce the occurrence of such situations, how to reproduce random failures becomes a difficulty in the process of functional module development and in the process of customer return machine repair. Therefore, a method for repairing a vehicle operating system failure is proposed in other embodiments of the present application, please refer to Figure 5 The method includes steps S201 to S205, wherein 201 to S203 are the same as steps S101 to S103, specifically as follows:
[0083] S201: When a preset fault occurs in a target functional module, a target fault code corresponding to the preset fault is obtained.
[0084] S202: Determine the fault type corresponding to the target fault code, and search for the target interface corresponding to the target fault repair program from a fault repair program interface library according to the correspondence between the fault type and the preset fault repair program; wherein the fault repair program interface library is pre-loaded in each functional module, and the fault repair program interface library includes several calling interfaces of preset fault repair programs.
[0085] S203: Control the target functional module to call the target interface and execute the target fault repair program.
[0086] S204: If the vehicle operating system is in development mode, capture the current operating environment information of the vehicle operating system and the log document of the target functional module.
[0087] When a preset fault occurs in the target functional module, if the vehicle-mounted system is in the development mode, the fault recovery device captures the current operating environment information of the vehicle-mounted operating system and the log document of the target functional module.
[0088] The current operating environment information includes: memory status, CPU status, FLASH status, partition read / write properties, running status of each process, process CPU share, and memory share.
[0089] The log document of the target functional module refers to the record of the operation process of the target functional module, including the event flow triggered by it, business processing flow, data access status and network access status, etc.
[0090] S205: storing the target fault, the current operating environment information and the log document of the target functional module according to a preset local path; and / or outputting the target fault, the current operating environment information and the log document of the target functional module through the serial port of the vehicle operating system.
[0091] A preset local path is stored in the vehicle operating system, pointing to the storage area of the target fault code, the current operating environment information and the log document of the target functional module.
[0092] The fault repair device can store the target fault code, the current operating environment information and the log document of the target functional module according to a preset local path, and then the developer can better reproduce the fault by calling the above information.
[0093] The fault repair device can also output the target fault code, the current operating environment information and the log file of the target functional module directly through the serial port of the vehicle operating system, which is more suitable for the development mode. The serial port of the vehicle operating system refers to the serial port of the computer device equipped with the vehicle operating system.
[0094] The fault repair device can also store the target fault, the current operating environment information and the log document of the target functional module according to a preset local path, and output the target fault, the current operating environment information and the log document of the target functional module through the serial port of the vehicle operating system.
[0095] In an optional embodiment, if the vehicle operating system is not in development mode, for example, it is in a user usage scenario, then when a preset fault occurs in the target functional module, the vehicle operating system must also capture the current operating environment information of the vehicle operating system and store the target fault and the current operating environment information according to a preset local path.
[0096] Since the user is currently using the system, it is not easy to erase and write the storage area too frequently. Therefore, less operating environment information is stored at this time, and only key memory status, process CPU usage, etc. are recorded.
[0097] In this embodiment, by storing or outputting the target fault code, current operating environment information and log documents of the target functional module through the serial port when a preset fault occurs, it is possible to capture key information in a timely manner when a probabilistic fault occurs, thereby improving the success rate of problem reproduction and reducing the occurrence of quality accidents.
[0098] See also Figure 6 , is a schematic diagram of the structure of a fault repair device for an in-vehicle operating system provided by an embodiment of the present application. The device can be implemented as all or part of the fault repair device for the in-vehicle operating system through software, hardware or a combination of both. The device 6 includes a first acquisition unit 61, a second acquisition module 62 and an execution control module 63;
[0099] A first acquisition module 61 is used to acquire a target fault code corresponding to a preset fault when a preset fault occurs in a target functional module;
[0100] The second acquisition module 62 is used to determine the fault type corresponding to the target fault code, and search for the target interface corresponding to the target fault repair program from the fault repair program interface library according to the corresponding relationship between the fault type and the preset fault repair program; wherein each functional module is pre-loaded with the fault repair program interface library, and the fault repair program interface library includes a plurality of calling interfaces of preset fault repair programs;
[0101] The execution control module 63 is used to control the target function module to call the target interface and execute the target fault repair program.
[0102] In the embodiment of the present application, by presetting different faults in the vehicle operating system, classifying the faults according to the fault codes corresponding to the faults, and preloading the fault repair program interface library in each functional module, providing a number of calling interfaces of preset fault repair programs, so that when a preset fault occurs in the target functional module, the target fault code corresponding to the preset fault can be obtained in time, and the fault type corresponding to the target fault code can be determined. Then, according to the correspondence between the fault type and the preset fault repair program, the target interface corresponding to the target fault repair program is searched from the fault repair program interface library, and the target functional module is controlled to call the target interface, execute the target fault repair program, quickly complete the repair of the fault in the target functional module, ensure the normal operation of the vehicle operating system, and thus improve the driving safety of the car.
[0103] Optionally, the device 6 further includes:
[0104] A broadcast module is used to broadcast the target fault code in the vehicle operating system through the target function module, so that other function modules in the vehicle operating system except the target function module receive the target fault code, and control other function modules that are bound to the target function module to execute the target fault repair program together.
[0105] Optionally, the device 6 further includes:
[0106] A third acquisition module is used to acquire the data call relationship between each of the functional modules;
[0107] The binding module is used to bind the function module of the calling data with the function module of the called data according to the data calling relationship.
[0108] Optionally, the broadcast module includes:
[0109] The first control module is used to control the other functional modules to determine whether the fault corresponding to the target fault code is a common fault, and if so, control the other functional modules to execute the target fault repair program together.
[0110] Optionally, the broadcast module further includes:
[0111] The second control module is used to control the other functional modules to determine whether the fault corresponding to the target fault code is a non-public fault. If so, control the associated functional module of the non-public fault to find the target interface corresponding to the target fault repair program from the program interface of the vehicle operating system, call back the target interface to execute the target fault repair program
[0112] Optionally, the device 6 further includes:
[0113] A first capture module, used to capture the operating environment information of the current vehicle operating system;
[0114] A first storage module, configured to store the target fault and the current operating environment information according to a preset local path. Optionally, the device 6 further includes:
[0115] A second capturing module is used to capture the operating environment information of the current in-vehicle operating system and the log document of the target functional module if the in-vehicle operating system is in the development mode;
[0116] A second storage module, used to store the target fault, the current operating environment information and the log document of the target functional module according to a preset local path;
[0117] and / or,
[0118] The target fault, the current operating environment information and the log document of the target functional module are output through the serial port of the vehicle-mounted operating system.
[0119] See also Figure 7 , is a schematic diagram of the structure of a device provided by an embodiment of the present application. Figure 7 As shown, the device 7 may include: a processor 70, a memory 71, and a computer program 72 stored in the memory 71 and executable on the processor 70, such as a fault repair program for an in-vehicle operating system; when the processor 70 executes the computer program 72, the steps in the above-mentioned method embodiments are implemented, such as Figure 1 Alternatively, when the processor 70 executes the computer program 72, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 6 The functions of modules 61 to 63 are shown.
[0120] Among them, the processor 70 may include one or more processing cores. The processor 70 uses various interfaces and lines to connect the various parts in the control device 7, and executes various functions and processes data of the control device 7 by running or executing instructions, programs, code sets or instruction sets stored in the memory 71, and calling the data in the memory 71. Optionally, the processor 70 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programble Logic Array, PLA). The processor 70 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the touch display; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 70, and it can be implemented by a single chip.
[0121] Among them, the memory 71 may include a random access memory (RAM) or a read-only memory (Read-Only Memory). Optionally, the memory 71 includes a non-transitory computer-readable storage medium. The memory 71 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 71 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch instructions, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 71 may also be optionally at least one storage device located away from the aforementioned processor 70.
[0122] The present application also provides a computer storage medium, which can store multiple instructions, which are suitable for the processor to load and execute the above-mentioned Figure 1 as well as Figures 3 to 5 The method steps of the embodiment shown in the figure can be found in the specific execution process. Figure 1 as well as Figures 3 to 5 The specific description of the illustrated embodiment will not be repeated here.
[0123] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0124] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0125] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0126] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0127] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0128] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0129] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc.
[0130] The present invention is not limited to the above-mentioned embodiments. If various changes or modifications to the present invention do not depart from the spirit and scope of the present invention, and if these changes and modifications fall within the scope of the claims and equivalent technologies of the present invention, the present invention is also intended to include these changes and modifications.
Claims
1. A method for repairing a fault of an in-vehicle operating system, wherein the in-vehicle operating system is mounted on a fault repair device, and the in-vehicle operating system includes a plurality of functional modules for processing system data, characterized in that: Includes steps: When a preset fault occurs in the target functional module, a target fault code corresponding to the preset fault is obtained; Determine the fault type corresponding to the target fault code, and search for the target interface corresponding to the target fault repair program from a fault repair program interface library according to the corresponding relationship between the fault type and the preset fault repair program; wherein each functional module is pre-loaded with the fault repair program interface library, the fault repair program interface library includes a number of calling interfaces of preset fault repair programs, different types of faults correspond to different fault repair programs, and the fault repair program is stored in the fault repair device in the form of a piece of code; The target functional module is controlled to call the target interface, execute the target fault repair program, and complete the repair of the fault in the target functional module.
2. The fault repair method of the vehicle-mounted operating system according to claim 1, characterized in that: Also includes the steps: The target fault code is broadcasted in the vehicle operating system through the target function module, so that other function modules in the vehicle operating system except the target function module receive the target fault code, and control other function modules that are bound to the target function module to execute the target fault repair program together.
3. The fault repair method of the vehicle-mounted operating system according to claim 2, characterized in that: Before broadcasting the target fault code in the vehicle operating system through the target function module, the method includes the following steps: Obtaining the data calling relationship between each of the functional modules; According to the data calling relationship, the function module of the calling data is bound to the function module of the called data.
4. The fault repair method of the vehicle-mounted operating system according to claim 2, characterized in that: The controlling other functional modules that are in a binding relationship with the target functional module to execute the target fault repair program together comprises the following steps: Control the other functional modules to determine whether the fault corresponding to the target fault code is a common fault, and if so, control the other functional modules to execute the target fault repair program together.
5. The fault repair method of the vehicle-mounted operating system according to claim 4, characterized in that: Also includes the steps: Control the other functional modules to determine whether the fault corresponding to the target fault code is a non-common fault. If so, control the associated functional modules of the non-common fault to search for the target interface corresponding to the target fault repair program from the program interface of the vehicle operating system, and call back the target interface to execute the target fault repair program.
6. The fault repair method of the vehicle-mounted operating system according to claim 1, characterized in that: When a preset fault occurs in the target functional module, the steps are also included: Capture the operating environment information of the current vehicle operating system; The target fault and the current operating environment information are stored according to a preset local path.
7. The fault repair method of the vehicle-mounted operating system according to claim 1, characterized in that: When a preset fault occurs in the target functional module, the steps are also included: If the vehicle operating system is in development mode, capturing the current operating environment information of the vehicle operating system and the log document of the target functional module; storing the target fault, the current operating environment information and the log document of the target functional module according to a preset local path; and / or, The target fault, the current operating environment information and the log document of the target functional module are output through the serial port of the vehicle-mounted operating system.
8. A fault recovery device for an in-vehicle operating system, wherein the in-vehicle operating system is mounted on a fault recovery device, and the in-vehicle operating system includes a plurality of functional modules for processing system data, characterized in that: include: A first acquisition module, used for acquiring a target fault code corresponding to a preset fault when a preset fault occurs in a target functional module; A second acquisition module is used to determine the fault type corresponding to the target fault code, and according to the corresponding relationship between the fault type and the preset fault repair program, search for the target interface corresponding to the target fault repair program from the fault repair program interface library; wherein each functional module is pre-loaded with the fault repair program interface library, the fault repair program interface library includes a number of calling interfaces of preset fault repair programs, different types of faults correspond to different fault repair programs, and the fault repair program is stored in the fault repair device in the form of a piece of code; The execution control module is used to control the target functional module to call the target interface, execute the target fault repair program, and complete the repair of the fault in the target functional module.
9. A fault recovery device for a vehicle-mounted operating system, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the fault repair method of the vehicle-mounted operating system as claimed in claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the fault repair method of the vehicle-mounted operating system as described in claims 1 to 7 above is implemented.
Citation Information
Patent Citations
Application program fault repairing method, device and electronic device
CN109254864A
Method, apparatus for repairing vehicle system failures, device, medium, and vehicle
CN109345658A
