Fault processing method and device, electronic equipment and storage medium
By monitoring and migrating processor tasks, reducing the working frequency, and using software layer optimization to solve electronic equipment hardware failures, efficient and automated fault handling is achieved, which solves the problem of unstable operation caused by hardware failures, reduces maintenance costs and improves user experience. experience.
Patent Information
- Application Number
- CN202410139441.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-31
- Publication Date
- 2024-09-03
AI Technical Summary
Hardware failures in electronic devices lead to unstable operation and affect user experience. Existing technical processing is time-consuming and labor-intensive and requires high professional skills, making it difficult to solve it automatically and intelligently.
By monitoring the running status of the processor, migrating abnormal tasks to other processors and reducing the working frequency of the processor, the software layer is used to optimize and automatically handle hardware faults, record fault information and report it.
It improves the efficiency and success rate of troubleshooting, reduces maintenance costs, solves hardware failures without the user's awareness, and improves the reliability and stability of the equipment.
Smart Images

Figure CN118585359A
Abstract
Description
Technical Field
[0001] The present disclosure relates to, but is not limited to, the technical field of fault handling, and in particular to a fault handling method and device, an electronic device, and a storage medium. Background Art
[0002] With the rapid development of science and technology, electronic devices are playing an increasingly important role in people's lives and work. However, due to the increasing complexity of electronic devices and the complex use environment, their processors may run unstably due to various reasons such as excessive task load, insufficient intelligence of task scheduling algorithms or improper optimization, resulting in hardware failures in electronic devices from time to time, which brings many inconveniences to users and greatly affects the user experience. Summary of the invention
[0003] In view of this, the embodiments of the present disclosure at least provide a fault handling method and device, an electronic device, and a storage medium.
[0004] In a first aspect, an embodiment of the present disclosure provides a fault handling method, the method comprising:
[0005] In response to a hardware failure in the electronic device, determining an operating state of a first processor currently supporting the operation of the hardware;
[0006] In response to the operating status indicating that the first processor operates abnormally, the execution task of the first processor is migrated to a second processor other than the first processor among the multiple processors, so as to support the operation of the hardware through the second processor.
[0007] In some embodiments, the method further comprises:
[0008] In response to the difference in the probability of the first processor operating at a target frequency within a preset time period being greater than a preset probability difference threshold, it is determined that the first processor is operating abnormally; wherein the target frequency is a frequency greater than a preset frequency threshold.
[0009] In some embodiments, migrating the execution task of the first processor to a second processor other than the first processor among the multiple processors includes:
[0010] The task status information and task data corresponding to the execution task of the first processor are migrated to the second processor.
[0011] In some embodiments, the method further comprises:
[0012] Determine a target processor with the lowest utilization rate among the second processors other than the first processor;
[0013] The step of migrating the execution task of the first processor to a second processor other than the first processor among the multiple processors comprises:
[0014] Migrate the execution task of the first processor to the target processor.
[0015] In some embodiments, the method further comprises:
[0016] In response to the operating status indicating that the first processor operates abnormally, the operating frequency of the first processor is reduced.
[0017] In some embodiments, the method further comprises:
[0018] storing the fault information of the hardware in a fault log;
[0019] The step of reducing the operating frequency of the first processor in response to the operating status indicating that the first processor operates abnormally includes:
[0020] In response to the operating status indicating that the first processor operates abnormally, the operating frequency of the first processor is reduced based on the fault log.
[0021] In some embodiments, the method further comprises:
[0022] In response to the operating status indicating that the first processor is operating abnormally, the device identification of the hardware and a fault identification indicating the hardware fault are reported to a server. In some embodiments, the electronic device includes a vehicle, and the hardware includes an IVI screen.
[0023] In a second aspect, an embodiment of the present disclosure provides a fault handling device, the device comprising:
[0024] A first determination module, configured to determine, in response to a hardware failure in the electronic device, an operation state of a first processor currently supporting the operation of the hardware;
[0025] The migration module is configured to migrate the execution task of the first processor to a second processor other than the first processor among the multiple processors in response to the operating status indicating that the first processor operates abnormally, so as to support the operation of the hardware through the second processor.
[0026] In some embodiments, the apparatus further comprises:
[0027] The second determination module is configured to determine that the first processor is operating abnormally in response to the difference in the probability of the first processor operating at a target frequency within a preset time period being greater than a preset probability difference threshold; wherein the target frequency is a frequency greater than a preset frequency threshold.
[0028] In some embodiments, the migration module is further configured to migrate task status information and task data corresponding to the execution task of the first processor to the second processor.
[0029] In some embodiments, the apparatus further comprises:
[0030] A third determining module is configured to determine a target processor with the lowest utilization rate among the second processors other than the first processor;
[0031] The migration module is further configured to migrate the execution task of the first processor to the target processor.
[0032] In some embodiments, the apparatus further comprises:
[0033] The frequency reduction module is configured to reduce the operating frequency of the first processor in response to the operating status indicating that the first processor operates abnormally.
[0034] In some embodiments, the apparatus further comprises:
[0035] A log storage module, configured to store the fault information of the hardware in a fault log;
[0036] The frequency reduction module is further configured to reduce the operating frequency of the first processor based on the fault log in response to the operating status indicating that the first processor operates abnormally.
[0037] In some embodiments, the apparatus further comprises:
[0038] The fault reporting module is configured to report the device identifier of the hardware and the fault identifier representing the hardware fault to the server in response to the running status representing that the first processor runs abnormally.
[0039] In some embodiments, the electronic device includes a vehicle and the hardware includes an IVI screen.
[0040] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
[0041] a processor; a memory for storing instructions executable by the processor;
[0042] The processor is configured to execute the method described in the first aspect.
[0043] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which implements the method described in the first aspect when executed by a processor.
[0044] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0045] In the embodiment of the present disclosure, after the vehicle captures a hardware fault in an electronic device, it determines the operating state of the first processor that currently supports the hardware operation, thereby migrating the execution task of the abnormal first processor to the second processor in a normal state, and the second processor continues to execute the task of the first processor. Compared with the traditional hardware fault handling method, which is time-consuming and labor-intensive and requires relatively high professional capabilities, the embodiment of the present disclosure utilizes the optimization of the software layer to automatically and intelligently solve the hardware failure problem in the electronic device, greatly improving the efficiency and success rate of fault handling, reducing maintenance costs, and solving the hardware failure problem of the electronic device without the customer's perception. It should be understood that the above general description and the detailed description below are merely exemplary and explanatory and do not limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used to illustrate the technical solutions of the present disclosure together with the specification.
[0047] Figure 1A A flowchart of a fault handling method provided in an embodiment of the present disclosure is shown in FIG1 ;
[0048] Figure 1B A schematic diagram of a fault handling method provided in an embodiment of the present disclosure Figure 2 ;
[0049] Figure 2 An example flowchart of a fault handling method provided in an embodiment of the present disclosure;
[0050] Figure 3 A schematic diagram of a method for troubleshooting an IVI screen in a vehicle provided by an embodiment of the present disclosure;
[0051] Figure 4 A schematic diagram of a fault handling device provided in an embodiment of the present disclosure;
[0052] Figure 5 A hardware entity schematic diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the technical solutions of the present disclosure are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting the present disclosure. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.
[0054] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0055] The terms "first / second / third" involved in the present disclosure are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first / second / third" can be interchanged with the specific order or sequence where permitted, so that the embodiments of the present disclosure described herein can be implemented in an order other than that illustrated or described herein.
[0056] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing the present disclosure and are not intended to limit the present disclosure.
[0057] Usually, electronic devices commonly used in life include vehicles, mobile phones, computers, televisions, etc. Hardware failure in electronic devices refers to damage or performance problems of physical components in the device. Hardware failure usually causes problems such as device failure to work properly, performance degradation, data loss or system crash. Excessive frequency of failures will cause great trouble to users' lives. Therefore, it is very necessary to adopt appropriate fault handling methods to reduce the frequency of failures and effectively improve the reliability and stability of equipment.
[0058] For example, relevant technicians found that during the vehicle startup process, the dual screens of the in-vehicle infotainment system (IVI) (including the instrument screen and the central control screen) went black and then restarted. After preliminary analysis, it was found that the cause of the failure was that the IVI dual screens needed to process multiple tasks at the same time, which required high performance and stability of the processor. When the vehicle processor was overloaded or the task scheduling algorithm was not smart enough, the operation of its high-performance core would become very unstable, resulting in errors such as the crash of the display driver of the IVI dual screen, and the black screen phenomenon. If this unstable state persists, it may also cause more serious problems in the system, such as freezing or restarting or even restart failure.
[0059] In this regard, the present disclosure provides a fault handling method. Figure 1A This is a flowchart of a fault handling method provided by an embodiment of the present disclosure, such as Figure 1A As shown, the method comprises the following steps:
[0060] S11, in response to a hardware failure in the electronic device, determining an operating state of a first processor currently supporting the operation of the hardware;
[0061] S12: In response to the operating status indicating that the first processor operates abnormally, migrate the execution task of the first processor to a second processor other than the first processor among the multiple processors, so as to support the operation of the hardware through the second processor.
[0062] The processor is a core component in an electronic device, responsible for executing instructions and processing data, and supporting the normal operation of the hardware. With the development and progress of technology, in order to meet the diverse and complex application needs of users, most electronic devices are equipped with multiple processors to improve the functional complexity, performance, efficiency, reliability and stability of the electronic devices. The fault handling method in this embodiment is also applied to electronic devices including multiple processors. For ease of description, the embodiment of the present disclosure is described by taking a vehicle as an example.
[0063] In step S11, the vehicle determines the operating state of the first processor that currently supports the hardware operation in response to its own hardware failure, wherein the hardware of the electronic device includes a display screen, a speaker, a camera, a memory, etc. The hardware failure may be a hardware failure or loss of control, for example, a black screen failure of the display screen, abnormal speaker sound, no camera image output, or a blurred and distorted output image, etc.
[0064] In the disclosed embodiment, hardware failures of electronic devices can be captured by a monitoring program Hypervisor in the system. Hypervisor is an intermediate software layer running between the basic physical server and the operating system. It can access all physical devices on the server including disks and memories, and can capture abnormal conditions of the underlying hardware.
[0065] After a hardware failure occurs in the vehicle, the working state of the first processor in the system is determined. The processor includes a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), etc. The operating state of the first processor refers to the state of the processor that supports the operation of the hardware when executing instructions and completing tasks. In the embodiment of the present disclosure, the operating state of the processor may include a normal state and an abnormal state. The normal operating state of the processor means that the various registers, caches and other resources of the processor are in normal use and no abnormal conditions occur; the abnormal operating state of the processor means that some resources of the processor may be occupied or abnormalities occur, and the state of the processor may change, such as entering a different operating mode, changing the context environment, etc. The above abnormal state may be caused by excessive task load or the task scheduling algorithm is not intelligent enough or improperly optimized.
[0066] Since the functions and data information of electronic equipment hardware are usually controlled by a processor, if the processor fails or is in an abnormal state, it may cause the hardware to not work properly, thereby causing problems presented by hardware failure. Therefore, in the embodiment of the present disclosure, determining the operating status of the processor helps to determine the cause of the hardware failure so that the vehicle can select the correct repair strategy.
[0067] In step S12, in response to the operation status characterizing that the first processor is operating abnormally, the vehicle migrates the execution task of the first processor to a second processor other than the first processor among the multiple processors, so as to support the operation of the hardware through the second processor. The electronic device includes multiple processors, and the second processor refers to a target processor selected after excluding the first processor in an abnormal state from the multiple processors.
[0068] In the disclosed embodiment, when migrating the tasks of the processor, the vehicle can adopt a hot migration method. Without shutting down the first processor, the execution task information of the first processor that is executing the task is saved, and then migrated from the first processor to the second processor, and the execution task is quickly restored to the second processor to continue running smoothly. In this process, the hardware does not need to be restarted, and the user will not notice any difference.
[0069] It should be noted that, in the embodiment of the present disclosure, when the first processor is operating normally, there is no need to migrate the execution tasks of the first processor.
[0070] In traditional hardware troubleshooting methods, a comprehensive analysis can be conducted based on the fault phenomenon combined with circuit schematics, work flow diagrams and other information. The fault location can be determined by using tools such as multimeters to measure parameters such as voltage, current, resistance and other parameters of suspected faulty components. However, this method requires deep professional knowledge and rich experience.
[0071] It is understandable that in the embodiment of the present disclosure, after capturing the hardware fault in the electronic device, the vehicle determines the operating state of the first processor that currently supports the hardware operation, thereby migrating the execution task of the abnormal first processor to the second processor in a normal state, and the second processor continues to execute the task of the first processor. Compared with the traditional hardware fault handling method, which is time-consuming and labor-intensive and requires relatively high professional capabilities, the embodiment of the present disclosure uses the optimization of the software layer to automatically and intelligently solve the hardware fault problem in the electronic device, greatly improving the efficiency and success rate of fault handling, reducing maintenance costs, and solving the hardware fault problem of the electronic device without the customer's perception.
[0072] In some embodiments, the vehicle determines that the first processor is operating abnormally in response to the probability that the first processor operates at a target frequency within a preset time period differing by more than a preset probability difference threshold; wherein the target frequency is a frequency greater than a preset frequency threshold.
[0073] As mentioned above, when the processor is in an abnormal state, its operation will become unstable, resulting in program errors or abnormal behavior. The unstable operation of the processor is specifically manifested as a sudden and discontinuous change in the ratio or probability of the processor running at the highest frequency within a certain time range under high load.
[0074] In the disclosed embodiment, a probability-based calculation method provides an objective standard, and the condition that the probability of the first processor operating at the target frequency within a preset time length is greater than the preset probability difference threshold is used to measure whether the operating state of the processor is normal, wherein the target frequency is greater than the preset frequency threshold, and the target frequency, preset time length, and preset probability can all be set according to actual needs. When the probability of the first processor operating at the target frequency (such as the highest frequency) within a preset time length is greater than the preset probability difference threshold, the operating state of the first processor is determined to be abnormal, otherwise the operating state is normal. This method of measuring the operating state of the first processor makes the standard for determining the abnormal operation of the processor more concrete, so that the abnormal judgment has a clear threshold and standard, which helps to promptly discover abnormal situations and proceed to the next step of processing.
[0075] It can be understood that in the embodiment of the present disclosure, the vehicle determines that the first processor is operating abnormally in response to the probability that the difference in the probability of the first processor operating at the target frequency within a preset time period is greater than a preset probability difference threshold, so that the determination of the processor operating abnormality is not affected by human factors or subjective judgment, thereby improving the accuracy of the determination result.
[0076] In some embodiments, migrating the execution task of the first processor to a second processor other than the first processor among the multiple processors includes:
[0077] The task status information and task data corresponding to the execution task of the first processor are migrated to the second processor.
[0078] In an embodiment of the present disclosure, the vehicle migrates the task status information and task data corresponding to the execution task of the first processor to the second processor. When performing a hot migration operation, the task status information and task data of the entire first processor are migrated, wherein the task status information refers to the current status information of the task running on the processor, such as the task's running status, priority, execution time, etc. This information can help the operating system better manage tasks and schedule and migrate tasks when necessary; task data refers to the data used by the tasks running on the processor, which may be stored in memory, hard disk or other storage devices. Therefore, when the first processor is hot migrated, both the task status information and the task data need to be completely migrated to the second processor.
[0079] It can be understood that the embodiment of the present disclosure migrates the task status information and task data corresponding to the execution task of the first processor to the second processor through hot migration, so that the second server can quickly restore the execution task of the first processor based on the corresponding task status information and task data, so that each execution task can continue to run smoothly.
[0080] In some embodiments, the vehicle determines a target processor having the lowest utilization rate among each second processor other than the first processor;
[0081] The step of migrating the execution task of the first processor to a second processor other than the first processor among the multiple processors comprises:
[0082] The vehicle migrates the execution task of the first processor to the target processor.
[0083] In the disclosed embodiment, the vehicle determines the processor with the lowest utilization rate among the second processors other than the first processor as the target processor for the hot migration operation, wherein the utilization rate of the processor refers to the proportion of the time that the processor executes tasks within a period of time to the total time, and the utilization rate of the processor reflects the busyness of the processor. Different second processors have different utilization rates among the second processors. The higher the utilization rate, the busier the processor; the lower the utilization rate, the relatively idle processor. The processor with low utilization rate has a low load and does not have high-intensity computing or processing tasks. Therefore, using the second processor with the lowest utilization rate among all the second processors as the target processor for the hot migration operation helps the execution task of the first processor to continue to be executed efficiently and accurately.
[0084] In the disclosed embodiment, the vehicle migrates the execution task of the first processor to the target processor with the lowest utilization, which can not only minimize the impact on the running tasks, but also better balance the system load and improve resource utilization, thereby improving the performance and efficiency of the entire system. If a high-loaded second processor is selected for hot migration, it may cause task execution delay or failure, thereby affecting user experience and system performance.
[0085] It can be understood that the embodiment of the present disclosure can balance the system load, improve resource utilization, reduce the impact on running tasks, and thus ensure the stability and reliability of the system by migrating the execution tasks of the first processor to the target processor with the lowest utilization.
[0086] In some embodiments, the vehicle reduces the operating frequency of the first processor in response to the operating status indicating that the first processor operates abnormally. Figure 1B This is a fault handling method flow provided by the embodiment of the present disclosure Figure 2 .
[0087] During the practice, the technicians reproduced the IVI dual-screen black screen failure phenomenon during the startup process of the above-mentioned vehicle computer through further stress testing, and found that the frequency of the vehicle computer processor can be reduced by one level (for example, the processor reduces the main frequency by 10%, where the main frequency is reduced from 1.3GHz to 1.17GHz) to avoid the above-mentioned high-performance core operation probability jump problem.
[0088] like Figure 1B As shown, in the embodiment of the present disclosure, the vehicle responds to the operating state of the processor characterizing that the first processor is operating abnormally, and after migrating the execution task on the first processor, the operating frequency of the first processor is also reduced. The processor needs to consume a large amount of computing resources to process tasks under normal conditions. When the processor is abnormal, it will not be able to keep up with the processing speed of the tasks to be executed, which may trigger a series of chain reactions and cause other hardware to also become abnormal. Reducing its operating frequency can reduce the computing burden of the processor, thereby reducing the overall load so that the first processor can return to a normal working state, and subsequent execution tasks can proceed smoothly. After processing in this way, the above-mentioned hardware failure will no longer be triggered.
[0089] It can be understood that the embodiment of the present disclosure reduces the operating frequency of the first processor so that the first processor can operate normally again after the frequency reduction, thereby fundamentally solving the above-mentioned hardware failure problem, reducing the risk of recurrence of the failure, and the performance of the electronic device is not affected.
[0090] In some embodiments, the vehicle stores the fault information of the hardware in a fault log;
[0091] The step of reducing the operating frequency of the first processor in response to the operating status indicating that the first processor operates abnormally includes:
[0092] In response to the operating status indicating that the first processor operates abnormally, the vehicle reduces the operating frequency of the first processor based on the fault log.
[0093] In the disclosed embodiment, the vehicle stores hardware fault information in a fault log. On the one hand, when a hardware exception occurs, the vehicle will store the hardware fault information captured by the Hypervisor in the fault log; on the other hand, the abnormality check service in the system will also scan the processor and store the abnormality log of the scanned processor in the fault log. Because the hardware fault information captured by the Hypervisor may not cover all abnormal situations, the processor abnormality log can provide more detailed abnormality information, including the specific abnormality type, occurrence time, code execution before and after the abnormality, etc., to help more fully understand the abnormal situation.
[0094] In the disclosed embodiment, the vehicle responds to the running state characterization that the first processor is running abnormally, and reduces the operating frequency of the first processor based on the above fault log. The above log is stored on the vehicle IVI, and informs the IVI virtual machine that the hardware processor is in an abnormal running state. The IVI virtual machine drives the BSP (Board Support Package) program to reduce the frequency of the first processor, wherein the BSP is a software support package that matches the hardware board, which provides a series of interface functions to adjust the running state of the processor. In this embodiment, the adjustment of the processor frequency can be achieved by calling the function of adjusting the processor operating frequency provided by the BSP through the operating system or application. Because the system Hypervisor cannot communicate directly with the BSP in the vehicle system after capturing the hardware fault, this embodiment stores the log on the vehicle, and the hardware fault log can provide specific information about the hardware status, including the time and cause of the fault and the related processor status, etc., to drive the BSP to reduce the frequency of the first processor.
[0095] It can be understood that the embodiment of the present disclosure reduces the operating frequency of the first processor based on the hardware fault log. By analyzing the specific information in the log, the BSP can intelligently and timely adjust the operating frequency of the processor to reduce the burden of the faulty hardware and prevent further damage.
[0096] In some embodiments, in response to the operating status indicating that the first processor operates abnormally, the vehicle reports the device identifier of the hardware and the fault identifier indicating the hardware fault to the server.
[0097] In this embodiment, the vehicle responds to the running state characterizing the abnormal operation of the first processor, and through the method of tracking, a tracking monitoring point is set in the system, and the tracking data containing at least the hardware device identification and the fault identification characterizing the hardware failure is reported to the server. Relevant demand personnel can obtain a lot of useful information through the tracking data. For example, the manufacturer can export the report data on the server and use technical means to generate a data portrait of the hardware failure to trace the vehicle with the hardware failure type; the probability of the hardware problem can also be counted based on the report data, and detailed error information feedback can be provided to the hardware manufacturer, which will help improve the stability of the next generation of products.
[0098] It can be understood that the embodiment of the present disclosure reports data including at least the device identification of the hardware and the fault identification characterizing the hardware fault to the server, which can provide a large amount of real and effective hardware fault data, helping relevant demand personnel to better optimize the product, improve product stability, and improve user experience.
[0099] In some embodiments, the electronic device includes a vehicle and the hardware includes an IVI screen.
[0100] As mentioned above, commonly used electronic devices include vehicles, mobile phones, computers, televisions, etc. The hardware in electronic devices refers to the physical components in the devices. In the embodiments of the present disclosure, the electronic devices include vehicles, and the hardware includes IVI screens.
[0101] Figure 2 FIG. 1 is a flow chart of an example of a method for troubleshooting an IVI screen in a vehicle provided by an embodiment of the present disclosure, such as Figure 2 As shown, the following steps are included:
[0102] S21. Capture hardware failure data.
[0103] In the embodiment of the present disclosure, the vehicle capturing hardware fault data may refer to capturing fault data of an IVI screen, and an IVI screen failure is a hardware failure in the embodiment of the present disclosure.
[0104] S22. Determine whether the hardware is abnormal based on the CPU operation probability jump situation. If not, execute step S25; if so, execute step S24.
[0105] In the disclosed embodiment, the CPU is a processor supporting the current abnormal IVI operation. The operating state of the CPU can be judged according to the current CPU operating probability jump situation, that is, whether the difference in the probability of the current CPU operating at the target frequency within a preset time length is greater than a preset probability difference threshold. When the result is no, the current CPU is in a normal state, and step S25 is executed; when the result is yes, the current CPU is in an abnormal operating state, and step 24 is executed.
[0106] S23. The abnormality check service scans the CPU.
[0107] The anomaly check service is a mechanism for detecting and handling anomalies, monitoring the operating status of the system, detecting and recording abnormal events. In the embodiment of the present disclosure, the anomaly check service can be used to obtain the abnormal working log of the current CPU.
[0108] S24. Store the abnormal information in the log.
[0109] In the disclosed embodiment, the vehicle stores the fault information of the IVI screen in a fault log, which includes the hardware fault data captured in step S21 and / or the CPU work log data scanned by the abnormality inspection service in step S23.
[0110] S25. Eliminate abnormal CPUs and hot migrate execution tasks to other CPUs.
[0111] In the disclosed embodiment, the vehicle excludes the abnormal CPU, selects other CPUs as the target CPU, migrates the task status information and task data corresponding to the execution task of the current abnormal CPU to the target CPU, and the target CPU resumes the task according to the task status information and task data corresponding to the execution task and continues to run. The vehicle can also select the CPU with the lowest utilization rate from other CPUs as the target CPU.
[0112] S26, IVI screen starts normally.
[0113] After the tasks on the abnormal CPU are migrated to other CPUs to continue normal operation, the IVI screen black screen problem has been solved and can be started normally.
[0114] S27. Reduce the main frequency of the abnormal CPU.
[0115] In the disclosed embodiment, after the current CPU of the vehicle operates abnormally, based on the fault log stored in step S24, the vehicle drives the BSP to reduce the operating frequency of the current CPU.
[0116] S28. Notify the background to report the buried data.
[0117] In the embodiment of the present disclosure, when the current CPU of the vehicle is in an abnormal operating state, the vehicle obtains point-of-sight data that includes at least a hardware device identifier and a fault identifier that characterizes a hardware fault in a point-of-sight manner, and reports the point-of-sight to the server.
[0118] It can be understood that in the embodiments of the present disclosure, after capturing the IVI screen fault in the vehicle, the vehicle determines the operating status of the CPU currently supporting the operation of the hardware. When the current CPU is in abnormal operation, the task status information and task data corresponding to the execution task of the current CPU are migrated to other non-abnormal CPUs, and the frequency of the first processor is reduced based on the fault log. The entire process can be used to solve IVI dual-screen faults in the vehicle, such as black screen and restart after black screen. The problem of IVI black screen is quickly handled without the user noticing, and the problem of IVI screen black screen and restart after black screen is solved. The buried data is also reported to provide data support for subsequent analysis of hardware abnormality problems for relevant demand personnel.
[0119] Figure 3 FIG. 1 is a schematic diagram of a method for troubleshooting an IVI screen in a vehicle provided by an embodiment of the present disclosure. Figure 3 As shown, multiple processors can be configured in the vehicle. The abnormal operation of the first processor of the vehicle will trigger the hardware failure of the IVI screen; the monitoring program hypervisor captures the exception and stores the fault information, and hot migrates the task status information and task data corresponding to the execution task of the abnormal processor to other processors with normal operation status to continue running, while the IVI continues to run without being affected, and the IVI dual screen will not appear black; the Android system of the vehicle reduces the frequency of the first processor through the fault log file stored on the IVI, and the IVI screen will no longer be black after restarting; after handling the IVI screen failure, the vehicle will upload the buried data to notify the background server.
[0120] It is understandable that in the disclosed embodiment, after an exception occurs in the first processor, the Hypervisor monitoring program and the vehicle IVI end process the first processor, migrate the execution tasks of the abnormal first processor to other processors that are running normally, and reduce the frequency of the first processor so that it can run normally again. The entire process is optimized at the software layer, and the problem of IVI black screen is quickly handled without the user noticing, which fundamentally and thoroughly solves the problem of IVI screen black screen and restart after black screen, and also reduces the frequency of such failures.
[0121] Figure 4 A schematic diagram of a fault handling device provided in an embodiment of the present disclosure is shown in FIG. Figure 4 As shown, the fault handling device 400 includes:
[0122] A first determination module 401 is configured to determine, in response to a hardware failure in the electronic device, an operation state of a first processor currently supporting the operation of the hardware;
[0123] The migration module 402 is configured to migrate the execution task of the first processor to a second processor other than the first processor among the multiple processors in response to the operating status indicating that the first processor operates abnormally, so as to support the operation of the hardware through the second processor.
[0124] In some embodiments, the apparatus further comprises:
[0125] The second determination module is configured to determine that the first processor is operating abnormally in response to the difference in the probability of the first processor operating at a target frequency within a preset time period being greater than a preset probability difference threshold; wherein the target frequency is a frequency greater than a preset frequency threshold.
[0126] In some embodiments, the migration module 402 is further configured to migrate task state information and task data corresponding to the execution task of the first processor to the second processor.
[0127] In some embodiments, the apparatus further comprises:
[0128] A third determining module is configured to determine a target processor with the lowest utilization rate among the second processors other than the first processor;
[0129] The migration module 402 is further configured to migrate the execution task of the first processor to the target processor.
[0130] In some embodiments, the apparatus further comprises:
[0131] The frequency reduction module is configured to reduce the operating frequency of the first processor in response to the operating status indicating that the first processor operates abnormally.
[0132] In some embodiments, the apparatus further comprises:
[0133] A log storage module, configured to store the fault information of the hardware in a fault log;
[0134] The frequency reduction module 402 is further configured to reduce the operating frequency of the first processor based on the fault log in response to the operating status indicating that the first processor operates abnormally.
[0135] In some embodiments, the apparatus further comprises:
[0136] The fault reporting module is configured to report the device identification of the hardware and the fault identification indicating the hardware fault to the server in response to the operating state indicating that the first processor is operating abnormally. In some embodiments, the electronic device includes a vehicle, and the hardware includes an IVI screen.
[0137] Figure 5 A schematic diagram of a vehicle hardware entity provided by an embodiment of the present disclosure, such as Figure 5 As shown, the hardware entity of the vehicle 500 includes: a processor 501, a communication interface 502 and a memory 503, wherein:
[0138] Processor 501 generally controls the overall operation of computer device 500 .
[0139] The communication interface 502 enables the computer device to communicate with other terminals or servers through a network.
[0140] The memory 503 is configured to store instructions and applications executable by the processor 501, and can also cache data to be processed or processed by the processor 501 and each module in the computer device 500 (for example, image data, audio data, voice communication data, and video communication data), which can be implemented by flash memory (FLASH) or random access memory (Random Access Memory, RAM). Data can be transmitted between the processor 501, the communication interface 502 and the memory 503 through the bus 504. Among them, the processor 501 is used to execute some or all steps in the above-mentioned vehicle operation control method.
[0141] Correspondingly, an embodiment of the present disclosure provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, part or all of the steps in the above method are implemented.
[0142] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present disclosure. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. In addition, in the various embodiments of the present disclosure, the size of the serial numbers of the above-mentioned steps / processes does not mean the order of execution. The execution order of each step / process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure. The serial numbers of the embodiments of the present disclosure are for description only and do not represent the advantages and disadvantages of the embodiments.
[0143] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0144] In the several embodiments provided in the present disclosure, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the 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 can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0145] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; 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 present embodiment.
[0146] In addition, all functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may be separately configured as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0147] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0148] Alternatively, if the above-mentioned integrated unit of the present disclosure is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0149] The above is only an embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A fault handling method, characterized in that: Applied to an electronic device including multiple processors, the method comprises: In response to a hardware failure in the electronic device, determining an operating state of a first processor currently supporting the operation of the hardware; In response to the operating status indicating that the first processor operates abnormally, the execution task of the first processor is migrated to a second processor other than the first processor among the multiple processors, so as to support the operation of the hardware through the second processor.
2. The method according to claim 1, characterized in that: The method further comprises: In response to the difference in the probability of the first processor operating at a target frequency within a preset time period being greater than a preset probability difference threshold, it is determined that the first processor is operating abnormally; wherein the target frequency is a frequency greater than a preset frequency threshold.
3. The method according to claim 1, characterized in that The step of migrating the execution task of the first processor to a second processor other than the first processor among the multiple processors comprises: The task status information and task data corresponding to the execution task of the first processor are migrated to the second processor.
4. The method according to claim 1, characterized in that The method further comprises: Determine a target processor with the lowest utilization rate among the second processors other than the first processor; The step of migrating the execution task of the first processor to a second processor other than the first processor among the multiple processors comprises: Migrate the execution task of the first processor to the target processor.
5. The method according to claim 1, characterized in that The method further comprises: In response to the operating status indicating that the first processor operates abnormally, the operating frequency of the first processor is reduced.
6. The method according to claim 5, characterized in that The method further comprises: storing the fault information of the hardware in a fault log; The step of reducing the operating frequency of the first processor in response to the operating status indicating that the first processor operates abnormally includes: In response to the operating status indicating that the first processor operates abnormally, the operating frequency of the first processor is reduced based on the fault log.
7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: In response to the operating status indicating that the first processor operates abnormally, the device identifier of the hardware and a fault identifier indicating the hardware fault are reported to a server.
8. The method according to any one of claims 1 to 6, characterized in that The electronic device includes a vehicle, and the hardware includes an IVI screen.
9. A fault handling device, characterized in that: Applied to an electronic device including multiple processors, the device includes: a determination module configured to determine, in response to a hardware failure in the electronic device, an operating state of a first processor currently supporting the operation of the hardware; The migration module is configured to migrate the execution task of the first processor to a second processor other than the first processor among the multiple processors in response to the operating status indicating that the first processor operates abnormally, so as to support the operation of the hardware through the second processor.
10. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method as claimed in any one of claims 1 to 8.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
