Control method, device and electronic equipment
By detecting abnormal situations in electronic devices and switching to high-power consumption state for processing, the problem of abnormal situations in low-power consumption state is solved, ensuring normal operation and rapid response of the equipment.
Patent Information
- Application Number
- CN202010763562.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-31
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2040-12-20
AI Technical Summary
Electronic devices in low-power consumption are prone to application abnormalities or network connection abnormalities, resulting in failure to operate normally.
When the electronic device is in a low-power state, switch to the high-power state to handle the abnormality after detecting an abnormality, including network connection repair and application diagnostics and repairs, and switch back to the low-power state after normal recovery.
It ensures the normal operation and rapid response of electronic equipment under low power consumption, and solves the problem of handling abnormal situations under low power consumption.
Smart Images

Figure CN111930222B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a control method, device and electronic equipment. Background Art
[0002] With the introduction of the concept of low carbon and environmental protection, the low power consumption of electronic devices has become a common concern in the industry. In related technologies, electronic devices in low power consumption states often have application anomalies or network connection anomalies, which can easily lead to the electronic devices in low power consumption states being unable to operate normally. Summary of the invention
[0003] In order to solve the above technical problems, the embodiments of the present application hope to provide a control method, device and electronic device.
[0004] To achieve the above purpose, the technical solution of this application is implemented as follows:
[0005] A control method, the method comprising:
[0006] When the electronic device is in the first working mode and it is determined that an abnormal situation exists, controlling the electronic device to switch to the second working mode to process the abnormal situation in the second working mode;
[0007] When it is determined that the electronic device has returned to normal, controlling the electronic device to switch back to the first working mode;
[0008] The power consumption and / or available system resources of the electronic device in the first working mode are smaller than the power consumption and / or available system resources of the electronic device in the second working mode.
[0009] Optionally, when the electronic device is in the first working mode and it is determined that an abnormal situation exists, controlling the electronic device to switch to the second working mode to process the abnormal situation in the second working mode includes:
[0010] When the electronic device is in the first working mode and it is determined that its network connection is abnormal, control the electronic device to switch to the second working mode to repair the network connection in the second working mode; or,
[0011] When the electronic device is in a first working mode and a first application running in the first working mode is abnormal, controlling the electronic device to switch to a second working mode to process the first application in the second working mode; or,
[0012] When the electronic device is in the first working mode and it is determined that its target hardware component is abnormal, the electronic device is controlled to switch to the second working mode to process the target hardware component in the second working mode.
[0013] Optionally, when the electronic device is in the first working mode and it is determined that the network connection thereof is abnormal, controlling the electronic device to switch to the second working mode includes:
[0014] When it is determined based on the network status monitoring data of the second application that the network connection of the electronic device is abnormal, controlling the electronic device to switch to the second working mode through the second application, wherein the second application is an application that can run in the first working mode and the second working mode; or,
[0015] When the network connection of the electronic device is determined to be abnormal based on the communication volume of the electronic device within a preset time period, the electronic device is controlled to switch to the second working mode through a third application, wherein the third application is an application that can run in the first working mode and the second working mode.
[0016] Optionally, repairing the network connection in the second working mode includes:
[0017] Repairing the network connection by using the second application or the third application in the second working mode; or,
[0018] The network connection is repaired by running a fourth application, wherein the fourth application is an application for repairing the network connection, and the fourth application can only be run in the second working mode.
[0019] Optionally, when it is determined that the electronic device is restored to normal, controlling the electronic device to switch back to the first working mode includes:
[0020] When it is determined based on the network status monitoring data or the communication volume that the network connection has returned to normal,
[0021] Controlling the electronic device to switch back to the first working mode through the second application or the third application, or,
[0022] After the fourth application hands over the control of the network connection to the second application or the third application, the electronic device is controlled by the second application or the third application to switch back to the first working mode.
[0023] Optionally, processing the first application in the second working mode includes:
[0024] In the second working mode, the first application diagnoses and repairs itself; or,
[0025] Diagnose and repair the first application by running a fifth application, wherein the fifth application is an application capable of diagnosing and repairing abnormal conditions of the electronic device, and the fifth application can only be run in the second working mode; or,
[0026] The process information of the first application is cleaned up through the fifth application, and a new first application process is created, wherein the fifth application is an application capable of diagnosing and repairing abnormal conditions of electronic equipment, and the fifth application can only run in the second working mode.
[0027] Optionally, when it is determined that the electronic device is restored to normal, controlling the electronic device to switch back to the first working mode includes:
[0028] When it is determined that the first application is restored to normal, controlling the electronic device to switch back to the first working mode through the first application; or,
[0029] After a first application process is newly created, the electronic device is controlled to switch back to the first working mode through the newly created first application process.
[0030] Optionally, when the electronic device is in the first working mode and it is determined that the target hardware component thereof is abnormal, controlling the electronic device to switch to the second working mode includes:
[0031] When abnormal usage data of the target hardware component is monitored, the electronic device is controlled to switch to the second working mode through the sixth application, wherein the sixth application is an application for monitoring the operating status of the target hardware component of the electronic device, and the sixth application is an application that can run in the first working mode and the second working mode.
[0032] A control device, the control device comprising: a first switching module and a second switching module;
[0033] The first switching module is used to control the electronic device to switch to the second working mode when the electronic device is in the first working mode and determines that an abnormal situation exists, so as to process the abnormal situation in the second working mode;
[0034] The second switching module is used to control the electronic device to switch back to the first working mode when it is determined that the electronic device has returned to normal;
[0035] The power consumption and / or available system resources of the electronic device in the first working mode are smaller than the power consumption and / or available system resources of the electronic device in the second working mode.
[0036] An electronic device, comprising: a processor, a memory and a communication bus;
[0037] The communication bus is used to realize the communication connection between the processor and the memory;
[0038] The processor is used to execute the program of the control method in the memory to implement the following steps:
[0039] When the electronic device is in the first working mode and it is determined that an abnormal situation exists, controlling the electronic device to switch to the second working mode to process the abnormal situation in the second working mode;
[0040] When it is determined that the electronic device has returned to normal, controlling the electronic device to switch back to the first working mode;
[0041] The power consumption and / or available system resources of the electronic device in the first working mode are smaller than the power consumption and / or available system resources of the electronic device in the second working mode.
[0042] A computer-readable storage medium having one or more programs, wherein the one or more programs can be executed by one or more processors to implement the steps of the above control method.
[0043] The control method, device and electronic device provided in the embodiments of the present application control the electronic device to switch to the second working mode when the electronic device is in the first working mode and it is determined that an abnormal situation exists, so as to handle the abnormal situation in the second working mode; when it is determined that the electronic device has returned to normal, the electronic device is controlled to switch back to the first working mode; wherein the power consumption and / or the system resources that can be used by the electronic device in the first working mode are less than the power consumption and / or the system resources that can be used in the second working mode; in this way, by switching the first working mode in which the abnormal situation exists to the second working mode, and handling the abnormal situation in the second working mode, and when it is determined that the abnormal situation has returned to normal, switching back to the first working mode, the abnormal situation existing in the electronic device in the low power consumption state is resolved, thereby ensuring the normal operation of the electronic device in the low power consumption state and the rapid response to related events. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A flow chart of a control method provided in an embodiment of the present application;
[0045] Figure 2 A flow chart of another control method provided in an embodiment of the present application;
[0046] Figure 3 A flow chart of another control method provided in an embodiment of the present application;
[0047] Figure 4 A flow chart of another control method provided in an embodiment of the present application;
[0048] Figure 5 A schematic diagram of the structure of a control device provided in an embodiment of the present application;
[0049] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0051] It should be understood that the "embodiments of the present application" or "the aforementioned embodiments" mentioned throughout the specification mean that specific features, structures or characteristics related to the embodiments are included in at least one embodiment of the present application. Therefore, "in the embodiments of the present application" or "in the aforementioned embodiments" appearing throughout the specification do 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 the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each 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 application. The above-mentioned serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments.
[0052] Unless otherwise specified, the electronic device performs any step in the embodiments of the present application, and the processor of the electronic device may perform the step. It is also worth noting that the embodiments of the present application do not limit the order in which the electronic device performs the following steps. In addition, the methods used to process data in different embodiments may be the same method or different methods. It should also be noted that any step in the embodiments of the present application can be independently executed by the electronic device, that is, when the electronic device executes any step in the following embodiments, it may not rely on the execution of other steps.
[0053] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0054] The present application provides a control method, which is applied to electronic equipment, such as Figure 1 As shown, the method comprises the following steps:
[0055] Step 101: When the electronic device is in the first working mode and it is determined that an abnormal situation exists, control the electronic device to switch to the second working mode to process the abnormal situation in the second working mode.
[0056] In an embodiment of the present application, the electronic device may be any device with data processing capabilities; in a feasible implementation, the electronic device may be a device having but not limited to two different working modes; wherein the working mode may be a working mode in a broad sense, such as: standby mode, shutdown mode, normal working mode, low power consumption mode, high energy consumption mode, or office mode, entertainment mode, mobile phone mode; the working mode may also be different working modes configured by the electronic device for different users, or different operating systems, etc.
[0057] In a feasible implementation, the first working mode is a low power consumption working mode, and the second working mode is a normal working mode.
[0058] In another feasible implementation, when the first working mode is the modern standby (MS) mode, wherein the MS mode is a form of PC sleep, the internal components of a personal computer (PC) in the MS mode are in a low power state. In such a low power standby state, if the PC wants to resume execution, the PC components will quickly return to the working state; wherein, the MS mode, which can also be called the MS state, provides users with the same power consumption control method on the computer as on a smartphone, and can achieve the user experience of "immediately turn on" and "immediately turn off"; further, when the PC is in the MS state, the PC will enter the sleep state of "S0 low power idle model". At this time, the PC is still in the network state, and except for applications such as music playback, reminders and notifications, most applications are in a suspended state. You only need to press any key to log in to the computer and enter the working state, that is, the second working mode.
[0059] It should be noted that there are two states of PC in MS state. One is Connected Standby (CS) state, which means that the PC is still connected to the Internet when it is asleep, such as receiving emails. After the PC enters CS, it can still receive emails in the background, and you can see new emails immediately after waking up; the other is Disconnected Standby (DS) state, which means it is disconnected from the Internet when it is asleep.
[0060] In an embodiment of the present application, the abnormal situation may be but is not limited to the following abnormal situations that exist when the electronic device is in the first working mode: hardware component abnormality, application abnormality, simultaneous abnormality of hardware components and applications, and network connection abnormality; wherein the application in the application abnormality may be application software or system software within the electronic device.
[0061] It should be noted that the abnormal situation may be determined by self-detection within the electronic device, or may be detected by specific application software.
[0062] In an embodiment of the present application, an electronic device in a first working mode and with an abnormal situation can be controlled by an OS (operating system), a related application or a related device to switch to a second working mode, and at the same time, the abnormal situation existing in the first working mode of the electronic device can be processed in the second working mode.
[0063] In an embodiment of the present application, handling abnormal situations in the second working mode may be diagnosing, repairing or reporting abnormal situations existing in the electronic device; wherein, corresponding to the abnormal situations mentioned above, such as: application abnormalities can be diagnosed and repaired, hardware component abnormalities can be reported to the relevant platform, and network abnormalities can be repaired, etc.
[0064] Step 102: When it is determined that the electronic device has returned to normal, control the electronic device to switch back to the first working mode.
[0065] The power consumption and / or available system resources of the electronic device in the first working mode are smaller than the power consumption and / or available system resources of the electronic device in the second working mode.
[0066] In an embodiment of the present application, when an application inside the electronic device that can normally operate in the second operating mode monitors that the relevant abnormal situation has returned to normal, the relevant application or relevant device controls the electronic device to switch back to the first operating mode.
[0067] It should be noted that the power consumption and / or system resources that can be used by an electronic device in any working mode may be the power consumption and / or system resources that can be used by the electronic device itself within a predetermined period of time, wherein the system resources may be resources within the electronic device, or may be system network resources occupied by the electronic device when it is in a network connected state.
[0068] In the embodiment of the present application, system resources include but are not limited to the following resources, such as: central processing unit (CPU), sound card, display, I / O interface, network card and various drivers inside electronic equipment.
[0069] In a feasible implementation manner, the power consumption and available system resources of the electronic device in the first working mode are both smaller than the power consumption and available system resources of the electronic device in the second working mode.
[0070] In another feasible implementation, the power consumption of the electronic device in the first operating mode is less than the power consumption of the electronic device in the second operating mode.
[0071] In yet another possible real-time approach, the system resources that the electronic device can use in the first operating mode are smaller than the system resources that it can use in the second operating mode.
[0072] In the embodiment of the present application, the electronic device switches between the first working mode and the second working mode based on a specific situation or automatically according to a preset strategy.
[0073] The control method provided in the embodiment of the present application controls the electronic device to switch to the second working mode when the electronic device is in the first working mode and it is determined that an abnormal situation exists, so as to process the abnormal situation in the second working mode; when it is determined that the electronic device has returned to normal, the electronic device is controlled to switch back to the first working mode; wherein the power consumption and / or the system resources that can be used by the electronic device in the first working mode are less than the power consumption and / or the system resources that can be used by the electronic device in the second working mode; in this way, by switching the first working mode where the abnormal situation exists to the second working mode, and processing the abnormal situation in the second working mode, and when it is determined that the abnormal situation has returned to normal, switching back to the first working mode, the abnormal situation existing in the electronic device in the low power consumption state is resolved, thereby ensuring the normal operation of the electronic device in the low power consumption state and the rapid response to related events.
[0074] Based on the above embodiment, in a feasible implementation manner, the electronic device may implement step 101 by way of step A1:
[0075] Step A1: When the electronic device is in the first working mode and it is determined that its network connection is abnormal, control the electronic device to switch to the second working mode to repair the network connection in the second working mode.
[0076] In other embodiments of the present application, whether the network connection is abnormal can be determined by determining the number of heartbeat messages received by the electronic device within a predetermined time, wherein the network connection abnormality can be determined when the number of heartbeat messages received within the predetermined time does not match a preset threshold; the network connection abnormality can also be determined by detecting the flow of uplink data and downlink data of the electronic device when the network is connected. If there is only uplink data but no downlink data, it means that the network connection status of the electronic device is abnormal.
[0077] In an embodiment of the present application, the electronic device can detect whether there is an abnormality in the network connection status of the electronic device through an application that can operate normally in the first working mode; the electronic device can also send connection information to the server through the application that can operate normally in the first working mode, wherein the server and the electronic device communicate through the network, and when no feedback information sent by the server for the connection information is received, it is determined that the network connection is abnormal; and the electronic device can also repair the network through an application for repairing the network connection, and the application can operate in the second working mode.
[0078] In another feasible implementation manner, the electronic device may also implement step A2 when executing step 101:
[0079] Step A2: When the electronic device is in the first working mode and the first application running in the first working mode is abnormal, control the electronic device to switch to the second working mode to process the first application in the second working mode.
[0080] In the embodiment of the present application, the first application can be an application program of any operating system, and the operating system can be but not limited to Windows operating system, Linux operating system or Android operating system, etc. The specific Windows operating system can be but not limited to Windows 8 operating system, Windows 10 operating system, etc.
[0081] In a feasible implementation, the first application may be an application in the Windows 10 operating system, specifically a Win 32 application, wherein the application may be system software or application software. It should be noted that the Win 32 application may be an application in the Windows 10 operating system.
[0082] In other embodiments of the present application, the first application may be one or more applications running inside the electronic device. The first application may specifically be but is not limited to the following applications, such as: a drawing application, a word processing application, an email application, a game application, a website creation application, a web browsing application, a digital music player application, a digital video player application, etc.
[0083] Among them, the first application anomaly may be that the first application occurs anomaly during the startup phase, such as when the number of consecutive restarts of the first application within a preset time is greater than a preset number, the first application is determined to be abnormal; the first application anomaly may also be that the first application occurs anomaly during operation, such as when web page drawing appears to be stuck, clicks on search have no response, uploading or downloading data is stuck, etc., the first application is determined to be abnormal.
[0084] In the embodiment of the present application, processing the first application in the second working mode may be diagnosing and repairing the first application, or reporting its problem and re-downloading and updating the first application.
[0085] In another feasible implementation manner, when the electronic device executes step 101, it can also be implemented by way of step A3:
[0086] Step A3: When the electronic device is in the first working mode and determines that its target hardware component is abnormal, control the electronic device to switch to the second working mode to process the target hardware component in the second working mode.
[0087] In other embodiments of the present application, the target hardware component anomaly may be a usage data anomaly of the target component; in a feasible implementation manner, the target hardware component anomaly may be a usage data anomaly of a network card inside the electronic device, wherein the usage data anomaly of the network card may be that the usage data of the network card is less than a preset threshold.
[0088] Based on the above embodiments, the present application provides a control method, such as Figure 2 As shown, the method comprises the following steps:
[0089] Step 201: When the electronic device is in the first working mode and determines that its network connection is abnormal, the electronic device controls the electronic device to switch to the second working mode to repair the network connection in the second working mode.
[0090] In a feasible implementation, when the electronic device controls the electronic device to switch to the second working mode when the electronic device is in the first working mode and determines that its network connection is abnormal in step 201, the electronic device can also be implemented by following the steps 201a or 201b:
[0091] Step 201a: When the electronic device determines that the network connection of the electronic device is abnormal based on the network status monitoring data of the second application, the electronic device controls the electronic device to switch to the second working mode through the second application.
[0092] The second application is an application that can run in the first working mode and the second working mode.
[0093] In an embodiment of the present application, the network status monitoring data of the second application can be obtained by monitoring the network card status inside the electronic device, that is, monitoring the operating data of the network card, or it can be obtained by monitoring the uplink data and downlink data traffic of the electronic device when it is connected to the network.
[0094] In an embodiment of the present application, when it is determined that the network connection is abnormal, the second application switches the working mode of the electronic device from the first working mode to the second working mode; in a feasible implementation method, when the first working mode is a low power consumption mode and the second working mode is a normal working mode, the second application can be an application with a wake-up function, that is, the wake-up application switches the electronic device from the low power consumption mode to the normal working mode; wherein the wake-up application is used to maintain the network connection and maintain the heartbeat when the electronic device is in the low power consumption mode, and when a problem or abnormal situation occurs in the network, waking up the electronic device is to control the electronic device to switch to the second working mode.
[0095] Step 201b: When the electronic device determines that its network connection is abnormal based on the communication volume of the electronic device within a preset time period, the electronic device controls the electronic device to switch to the second working mode through a third application.
[0096] Among them, the third application is an application that can run in the first working mode and the second working mode.
[0097] In an embodiment of the present application, the communication volume within the preset time period can be determined by the communication data between a third application that can be run in the first working mode and its corresponding server. Furthermore, when the data flow between a specific application, i.e., the third application and its corresponding server, does not meet the preset regulations, it is determined that the network connection is abnormal. The communication volume within the preset time period can also be determined by the communication data between all applications that can be run in the first working mode and their corresponding servers, i.e., when all flow data generated by all applications inside the electronic device in the first working mode within the preset time period does not meet the preset regulations, it is determined that the network connection is abnormal.
[0098] It should be noted that the communication volume of the electronic device within the preset time can be the amount of data generated by the information interaction between the application running inside the electronic device and the server when the electronic device is in the first working mode, wherein the application and the number of applications are not limited in this application.
[0099] Accordingly, when the electronic device performs the repair of the network connection in the second working mode in step 201, it can be implemented by the following steps 201c or 201d:
[0100] Step 201c: The electronic device repairs the network connection in the second working mode through the second application or the third application.
[0101] In an embodiment of the present application, an application inside the electronic device that can operate normally in both the first working mode and the second working mode, that is, the second application or the third application mentioned above, can handle the network anomaly that occurs. In other words, it can diagnose the network anomaly accordingly and repair the network connection.
[0102] In a feasible implementation, the second application or the third application can be an application of any operating system, or can be a background task of the Windows Universal Application Platform (Universal Windows Platform, UWP) in the Windows 10 operating system, used to repair the network connection in the second working mode.
[0103] It should be noted that UWP means universal application, which can be used on computers, mobile phones or other devices, so users do not need to design different software for different platforms.
[0104] In another feasible implementation, the second application or the third application may be an application such as a computer manager or an application manager.
[0105] Step 201d: The electronic device repairs the network connection by running the fourth application.
[0106] The fourth application may be an application of any operating system, and the fourth application is an application for repairing network connection, and the fourth application can only run in the second working mode.
[0107] In an embodiment of the present application, the electronic device repairs the network through a specific application for repairing network connections, namely a fourth application; in a feasible implementation method, the electronic device may use the fourth application to repair the network or continuously try to connect to the network until the network is normal or the connection is normal.
[0108] Step 202: When the electronic device is determined to be restored to normal, the electronic device is controlled to switch back to the first working mode.
[0109] The power consumption and / or available system resources of the electronic device in the first working mode are smaller than the power consumption and / or available system resources of the electronic device in the second working mode.
[0110] In a feasible implementation, when the electronic device determines that the electronic device has returned to normal, when the electronic device controls the electronic device to switch back to the first working mode, the electronic device can perform step 202 by the following 202a or step 202b:
[0111] Step 202a: When the electronic device determines that the network connection has returned to normal based on the network status monitoring data or the communication volume, the electronic device controls the electronic device to switch back to the first working mode through the second application or the third application.
[0112] In an embodiment of the present application, the electronic device determines that the network connection has returned to normal when it monitors that the network status monitoring data is normal or the communication volume is normal, wherein the network status monitoring data is normal or the communication volume is normal can be that the network status monitoring data meets preset requirements or the communication volume meets preset requirements, or the data flow of the network status monitoring data within a predetermined time period meets a preset threshold, or the data flow of the communication volume within a predetermined time period meets the preset threshold.
[0113] Among them, the electronic device realizes the switching of working modes through the second application or the third application, that is, the electronic device in the first working mode is switched to the second working mode through the second application or the third application, and the electronic device in the second working mode can be switched to the first working mode at the same time; wherein the second application or the third application can establish a network connection with the server and maintain the network connection to control the electronic device to switch back to the first working mode from a working mode different from the first working mode.
[0114] Step 202b: After the fourth application hands over the control of the network connection to the second application or the third application, the electronic device controls the second application or the third application to switch back to the first working mode.
[0115] In an embodiment of the present application, the electronic device continuously attempts to repair the network and connect to the server through the fourth application in the second working mode until the connection is normal. After the fourth application transfers the control of the network connection to the second application or the third application, the second application or the third application maintains the network connection, and the electronic device switches back to the first working mode from the second working mode based on the second application or the third application. The electronic device enters the first working mode again, and the second application or the third application continues to establish a communication link with the server for communication, and continues to maintain the network connection and maintain the heartbeat, etc.; wherein, the control of the network connection can be the management authority of the network connection in the electronic device.
[0116] In a feasible implementation, the fourth application may be an application such as a computer manager or an application manager running in the second mode, which has control over the network connection.
[0117] It should be noted that, for the description of the same steps and the same contents in this embodiment as those in other embodiments, reference can be made to the description in other embodiments and will not be repeated here.
[0118] The control method provided in the embodiment of the present application solves the abnormal situation existing in the electronic device in the low power consumption state by switching the first working mode with network connection abnormality to the second working mode, and processing the abnormal situation in the second working mode, and switching back to the first working mode when it is determined that the abnormal situation has returned to normal, thereby ensuring the normal operation of the electronic device in the low power consumption state and the rapid response to related events.
[0119] Based on the above embodiments, the present application provides a control method, such as Figure 3 As shown, the method comprises the following steps:
[0120] Step 301: When the electronic device is in a first working mode and a first application running in the first working mode is abnormal, the electronic device is controlled to switch to a second working mode to process the first application in the second working mode.
[0121] In a feasible implementation, when the electronic device processes the first application in the second working mode in step 301, it can be implemented by the following steps 301a, 301b or 301c:
[0122] Step 301a: The electronic device diagnoses and repairs itself in the second working mode through the first application.
[0123] In an embodiment of the present application, the electronic device can switch the working mode through the first application, that is, after switching from the first working mode to the second working mode, the first application can diagnose and repair its own abnormal conditions.
[0124] Step 301b: The electronic device diagnoses and repairs the first application by running the fifth application.
[0125] The fifth application may be an application program of any operating system, and the fifth application is an application capable of diagnosing and repairing abnormal conditions of electronic equipment, and the fifth application can only run in the second working mode.
[0126] In another feasible implementation, the fifth application may be an application such as a computer manager or an application manager.
[0127] In an embodiment of the present application, the first application can also be diagnosed and repaired by a fifth application that can run in the second working mode and can diagnose and repair abnormal conditions; wherein, when the first working mode is in a low power consumption state, related repair applications such as the fifth application are in a dormant state, and when the electronic device is switched to the second working mode, the fifth application is woken up to repair the related abnormal conditions.
[0128] Step 301c: The electronic device cleans up the process information of the first application through the fifth application, and creates a new first application process.
[0129] Among them, the fifth application is an application that can diagnose and repair abnormal conditions of electronic equipment, and the fifth application can only run in the second working mode.
[0130] In the embodiment of the present application, when the original process information of the first application is abnormal, the electronic device can also replace the original process information of the first application by re-establishing a first application process.
[0131] Step 302: When the electronic device is determined to be restored to normal, control the electronic device to switch back to the first working mode.
[0132] The power consumption and / or available system resources of the electronic device in the first working mode are smaller than the power consumption and / or available system resources of the electronic device in the second working mode.
[0133] In a feasible implementation, when the electronic device determines that the state has been restored to normal, controlling the electronic device to switch back to the first working mode, that is, when the electronic device executes step 302, can be implemented by the following 302a or step 302b:
[0134] Step 302a: When the electronic device determines that the first application has been repaired to normal, the electronic device controls the electronic device to switch back to the first working mode through the first application.
[0135] In an embodiment of the present application, after determining that the first application capable of running in the first working mode is repaired normally, the electronic device switches the working mode from the second working mode to the first working mode through the first application.
[0136] In another feasible implementation, the electronic device may also implement step 302 by the following 302b:
[0137] Step 302b: After creating a new first application process, the electronic device controls the electronic device to switch back to the first working mode through the newly created first application process.
[0138] In an embodiment of the present application, the electronic device is controlled to switch from the second working mode to the first working mode through the updated, i.e., newly created, first application.
[0139] It should be noted that, for the description of the same steps and the same contents in this embodiment as those in other embodiments, reference can be made to the description in other embodiments and will not be repeated here.
[0140] The control method provided in the embodiment of the present application solves the abnormal situation existing in the electronic device in the low power consumption state by switching the first working mode in which the first application abnormality exists to the second working mode, and processing the abnormal situation in the second working mode, and switching back to the first working mode when it is determined that the abnormal situation has returned to normal, thereby ensuring the normal operation of the electronic device in the low power consumption state and the rapid response to related events.
[0141] Based on the above embodiments, the present application provides a control method, such as Figure 4 As shown, the method comprises the following steps:
[0142] Step 401: When the electronic device is in the first working mode and determines that its target hardware component is abnormal, the electronic device controls the electronic device to switch to the second working mode to process the target hardware component in the second working mode.
[0143] In a feasible implementation, when the electronic device is in the first working mode and determines that its target hardware component is abnormal in step 401, controlling the electronic device to switch to the second working mode can be implemented by the following steps 401a:
[0144] Step 401a: When the electronic device detects that the usage data of the target hardware component is abnormal, the electronic device controls the electronic device to switch to the second working mode through the sixth application.
[0145] Among them, the sixth application is an application for monitoring the operating status of the target hardware components of the electronic device, and the sixth application is an application that can run in the first working mode and the second working mode.
[0146] In an embodiment of the present application, the sixth application may be an application of any operating system, and the sixth application may be an application with a monitoring function that can always run normally inside the electronic device. In a feasible implementation method, the sixth application may monitor the abnormal usage data of the network card of the electronic device, report the abnormal condition and control the working mode of the electronic device to switch; wherein, the target hardware component of the electronic device may be the firmware part of the electronic device such as the network card, graphics card, sound card, etc., and the present application does not impose any limitation on the target firmware part of the electronic device.
[0147] In an embodiment of the present application, the sixth application can be an application with a data sniffing function, which is used to view and capture the content of network data packets, that is, it can be a network packet analysis software, which is used to directly exchange data packets with the network card to obtain the operating status of the network; in a feasible implementation method, the network card can be monitored by the network packet analysis software to determine whether the usage data of the network card is abnormal.
[0148] Step 402: When the electronic device is determined to be restored to normal, the electronic device is controlled to switch back to the first working mode.
[0149] The power consumption and / or available system resources of the electronic device in the first working mode are smaller than the power consumption and / or available system resources of the electronic device in the second working mode.
[0150] It should be noted that, for the description of the same steps and the same contents in this embodiment as those in other embodiments, reference can be made to the description in other embodiments and will not be repeated here.
[0151] The control method provided in the embodiment of the present application solves the abnormal situation existing in the electronic device in the low power consumption state by switching the first working mode in which the target hardware abnormality exists to the second working mode, and processing the abnormal situation in the second working mode, and switching back to the first working mode when it is determined that the abnormal situation has returned to normal, thereby ensuring the normal operation of the electronic device in the low power consumption state and the rapid response to related events.
[0152] Based on the above embodiments, the embodiments of the present application further provide a control device 5, which can be applied to Figures 1 to 4 In a control method provided in a corresponding embodiment, referring to Figure 5 As shown, the control device 5 may include: a first switching module 51 and a second switching module 52, wherein:
[0153] A first switching module 51 is used to control the electronic device to switch to the second working mode when the electronic device is in the first working mode and determines that an abnormal situation exists, so as to process the abnormal situation in the second working mode;
[0154] The second switching module 51 is used to control the electronic device to switch back to the first working mode when it is determined that the electronic device has returned to normal;
[0155] The power consumption and / or available system resources of the electronic device in the first working mode are smaller than the power consumption and / or available system resources of the electronic device in the second working mode.
[0156] In other embodiments of the present application, the first switching module 51 is further used to control the electronic device to switch to the second working mode when the electronic device is in the first working mode and determines that its network connection is abnormal, so as to repair the network connection in the second working mode; or,
[0157] When the electronic device is in the first working mode and the first application running in the first working mode is abnormal, controlling the electronic device to switch to the second working mode to process the first application in the second working mode; or,
[0158] When the electronic device is in the first working mode and determines that its target hardware component is abnormal, the electronic device is controlled to switch to the second working mode to process the target hardware component in the second working mode.
[0159] In other embodiments of the present application, the first switching module 51 is further used to control the electronic device to switch to the second working mode through the second application when it is determined that the network connection of the electronic device is abnormal based on the network status monitoring data of the second application, wherein the second application is an application that can run in the first working mode and the second working mode; or,
[0160] When the network connection of the electronic device is determined to be abnormal based on the communication volume of the electronic device within a preset time period, the electronic device is controlled to switch to the second working mode through a third application, wherein the third application is an application that can run in the first working mode and the second working mode.
[0161] In other embodiments of the present application, the first switching module 51 is further configured to repair the network connection in the second working mode through the second application or the third application; or,
[0162] The network connection is repaired by running a fourth application, wherein the fourth application is an application for repairing the network connection, and the fourth application can only be run in the second working mode.
[0163] In other embodiments of the present application, the second switching module 52 is further configured to, when it is determined based on the network status monitoring data or the communication volume that the network connection has returned to normal,
[0164] Control the electronic device to switch back to the first working mode through the second application or the third application, or,
[0165] After the fourth application hands over the control of the network connection to the second application or the third application, the electronic device is controlled by the second application or the third application to switch back to the first working mode.
[0166] In other embodiments of the present application, the first switching module 51 is further configured to diagnose and repair itself through the first application in the second working mode; or,
[0167] Diagnose and repair the first application by running a fifth application, wherein the fifth application is an application capable of diagnosing and repairing abnormal conditions of the electronic device, and the fifth application can only be run in the second working mode; or,
[0168] The process information of the first application is cleaned up through the fifth application, and a new first application process is created, wherein the fifth application is an application capable of diagnosing and repairing abnormal conditions of electronic equipment, and the fifth application can only run in the second working mode.
[0169] In other embodiments of the present application, the second switching module 52 is further configured to control the electronic device to switch back to the first working mode through the first application when it is determined that the first application is restored to normal; or,
[0170] After a first application process is newly created, the electronic device is controlled to switch back to the first working mode through the newly created first application process.
[0171] In other embodiments of the present application, the first switching module 51 is also used to control the electronic device to switch to the second working mode through the sixth application when the usage data of the target hardware component is monitored to be abnormal, wherein the sixth application is an application for monitoring the operating status of the target hardware component of the electronic device, and the sixth application is an application that can run in the first working mode and the second working mode.
[0172] It should be noted that the specific implementation process of the steps executed by each module in this embodiment can be referred to Figures 1 to 4 The implementation process of the control method provided in the corresponding embodiment will not be repeated here.
[0173] The control device provided in the embodiment of the present application solves the abnormal situation existing in the electronic device in the low power consumption state by switching the first working mode in the presence of an abnormal situation to the second working mode, and processing the abnormal situation in the second working mode, and switching back to the first working mode when it is determined that the abnormal situation has returned to normal, thereby ensuring the normal operation of the electronic device in the low power consumption state and a rapid response to related events.
[0174] Based on the above embodiments, the embodiments of the present application further provide an electronic device 6, which can be applied to Figures 1 to 4 In a control method provided in a corresponding embodiment, referring to Figure 6 As shown, the electronic device 6 may include: a processor 61, a memory 62 and a communication bus 63, wherein:
[0175] The communication bus 63 is used to realize the communication connection between the processor 61 and the memory 62 .
[0176] The processor 61 is used to execute the program of the control method stored in the memory 62 to implement the following steps:
[0177] When the electronic device is in the first working mode and it is determined that an abnormal situation exists, controlling the electronic device to switch to the second working mode to process the abnormal situation in the second working mode;
[0178] When it is determined that the state has returned to normal, controlling the electronic device to switch back to the first working mode;
[0179] The power consumption and / or available system resources of the electronic device in the first working mode are smaller than the power consumption and / or available system resources of the electronic device in the second working mode.
[0180] In other embodiments of the present application, the processor 61 is used to execute the following steps stored in the memory 62: when the electronic device is in the first working mode and it is determined that an abnormal situation exists, the electronic device is controlled to switch to the second working mode to process the abnormal situation in the second working mode.
[0181] When the electronic device is in the first working mode and it is determined that its network connection is abnormal, controlling the electronic device to switch to the second working mode to repair the network connection in the second working mode; or,
[0182] When the electronic device is in the first working mode and the first application running in the first working mode is abnormal, controlling the electronic device to switch to the second working mode to process the first application in the second working mode; or,
[0183] When the electronic device is in the first working mode and determines that its target hardware component is abnormal, the electronic device is controlled to switch to the second working mode to process the target hardware component in the second working mode.
[0184] In other embodiments of the present application, the processor 61 is used to execute the following steps stored in the memory 62: when the electronic device is in the first working mode and determines that its network connection is abnormal, the electronic device is controlled to switch to the second working mode:
[0185] When it is determined based on the network status monitoring data of the second application that the network connection of the electronic device is abnormal, controlling the electronic device to switch to the second working mode through the second application, wherein the second application is an application that can run in the first working mode and the second working mode; or,
[0186] When the network connection of the electronic device is determined to be abnormal based on the communication volume of the electronic device within a preset time period, the electronic device is controlled to switch to the second working mode through a third application, wherein the third application is an application that can run in the first working mode and the second working mode.
[0187] In other embodiments of the present application, the processor 61 is used to execute the repair of the network connection in the second working mode stored in the memory 62, and can also implement the following steps:
[0188] Repairing the network connection in the second working mode by the second application or the third application; or,
[0189] The network connection is repaired by running a fourth application, wherein the fourth application is an application for repairing the network connection, and the fourth application can only be run in the second working mode.
[0190] In other embodiments of the present application, the processor 61 is used to execute the control stored in the memory 62 to control the electronic device to switch back to the first working mode when it is determined that the electronic device has returned to normal, and can also implement the following steps:
[0191] When the network connection is determined to be restored to normal based on the network status monitoring data or communication volume,
[0192] Control the electronic device to switch back to the first working mode through the second application or the third application, or,
[0193] After the fourth application hands over the control of the network connection to the second application or the third application, the electronic device is controlled by the second application or the third application to switch back to the first working mode.
[0194] In other embodiments of the present application, the processor 61 is used to execute the processing of the first application in the second working mode stored in the memory 62, and can also implement the following steps:
[0195] In the second working mode, the first application diagnoses and repairs itself; or,
[0196] Diagnose and repair the first application by running a fifth application, wherein the fifth application is an application capable of diagnosing and repairing abnormal conditions of the electronic device, and the fifth application can only be run in the second working mode; or,
[0197] The process information of the first application is cleaned up through the fifth application, and a new first application process is created, wherein the fifth application is an application capable of diagnosing and repairing abnormal conditions of electronic equipment, and the fifth application can only run in the second working mode.
[0198] In other embodiments of the present application, the processor 61 is used to execute the control stored in the memory 62 to control the electronic device to switch back to the first working mode when it is determined that the electronic device has returned to normal, and can also implement the following steps:
[0199] When it is determined that the first application is restored to normal, controlling the electronic device to switch back to the first working mode through the first application; or,
[0200] After a first application process is newly created, the electronic device is controlled to switch back to the first working mode through the newly created first application process.
[0201] In other embodiments of the present application, the processor 61 is used to execute the following steps stored in the memory 62: when the electronic device is in the first working mode and determines that its target hardware component is abnormal, the electronic device is controlled to switch to the second working mode:
[0202] When abnormal usage data of the target hardware component is monitored, the electronic device is switched to the second working mode through the sixth application, wherein the sixth application is an application for monitoring the operating status of the target hardware component of the electronic device, and the sixth application is an application that can run in the first working mode and the second working mode.
[0203] It should be noted that the specific implementation process of the steps executed by the processor in this embodiment can refer to Figures 1 to 4 The implementation process of the control method provided in the corresponding embodiment will not be repeated here.
[0204] The electronic device provided in the embodiment of the present application solves the abnormal situation existing in the electronic device in the low power consumption state by switching the first working mode in the presence of an abnormal situation to the second working mode, and processing the abnormal situation in the second working mode, and switching back to the first working mode when it is determined that the abnormal situation has returned to normal, thereby ensuring the normal operation of the electronic device in the low power consumption state and a rapid response to related events.
[0205] Based on the foregoing embodiments, the embodiments of the present application provide a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the following. Figures 1 to 4 The corresponding embodiments provide steps of the control method.
[0206] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0207] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0208] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0209] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0210] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. A control method, comprising: When the electronic device is in the first working mode and it is determined that an abnormal situation exists, controlling the electronic device to switch to the second working mode to process the abnormal situation in the second working mode; When it is determined that the electronic device has returned to normal, controlling the electronic device to switch back to the first working mode; The power consumption and / or available system resources of the electronic device in the first working mode are less than the power consumption and / or available system resources of the electronic device in the second working mode; When the electronic device is in the first working mode and it is determined that an abnormal situation exists, controlling the electronic device to switch to the second working mode to process the abnormal situation in the second working mode includes: If the electronic device is in the first working mode, and its network connection is determined to be abnormal based on the network status monitoring data of the second application or the communication volume of the electronic device within a preset time period, the electronic device is controlled to switch to the second working mode through a third application to repair the network connection in the second working mode; wherein the third application is an application that can run in both the first working mode and the second working mode.
2. The method according to claim 1, wherein: When the electronic device is in the first working mode and it is determined that an abnormal situation exists, controlling the electronic device to switch to the second working mode to process the abnormal situation in the second working mode, further comprising: When the electronic device is in a first working mode and a first application running in the first working mode is abnormal, controlling the electronic device to switch to a second working mode to process the first application in the second working mode; or, When the electronic device is in the first working mode and it is determined that its target hardware component is abnormal, the electronic device is controlled to switch to the second working mode to process the target hardware component in the second working mode.
3. The method according to claim 2, wherein: Repairing the network connection in the second working mode includes: Repairing the network connection by using the second application or the third application in the second working mode; or, The network connection is repaired by running a fourth application, wherein the fourth application is an application for repairing the network connection, and the fourth application can only be run in the second working mode.
4. The method according to claim 3, wherein: When it is determined that the electronic device is restored to normal, controlling the electronic device to switch back to the first working mode includes: When it is determined based on the network status monitoring data or the communication volume that the network connection has returned to normal, Controlling the electronic device to switch back to the first working mode through the second application or the third application, or, After the fourth application hands over the control of the network connection to the second application or the third application, the electronic device is controlled by the second application or the third application to switch back to the first working mode.
5. The method according to claim 2, wherein: Processing the first application in the second working mode includes: In the second working mode, the first application diagnoses and repairs itself; or, Diagnose and repair the first application by running a fifth application, wherein the fifth application is an application capable of diagnosing and repairing abnormal conditions of the electronic device, and the fifth application can only be run in the second working mode; or, The process information of the first application is cleaned up through the fifth application, and a new first application process is created, wherein the fifth application is an application capable of diagnosing and repairing abnormal conditions of electronic equipment, and the fifth application can only run in the second working mode.
6. The method according to claim 5, wherein: When it is determined that the electronic device is restored to normal, controlling the electronic device to switch back to the first working mode includes: When it is determined that the first application is restored to normal, controlling the electronic device to switch back to the first working mode through the first application; or, After a first application process is newly created, the electronic device is controlled to switch back to the first working mode through the newly created first application process.
7. The method according to claim 2, wherein: When the electronic device is in the first working mode and its target hardware component is determined to be abnormal, controlling the electronic device to switch to the second working mode includes: When abnormal usage data of the target hardware component is monitored, the electronic device is controlled to switch to the second working mode through the sixth application, wherein the sixth application is an application for monitoring the operating status of the target hardware component of the electronic device, and the sixth application is an application that can run in the first working mode and the second working mode.
8. A control device, wherein: The control device comprises: a first switching module and a second switching module; The first switching module is used to control the electronic device to switch to the second working mode when the electronic device is in the first working mode and determines that there is an abnormal situation, so as to handle the abnormal situation in the second working mode; and is also used to control the electronic device to switch to the second working mode through a third application when the electronic device is in the first working mode and determines that its network connection is abnormal based on the network status monitoring data of the second application or the communication volume of the electronic device in a preset time period, so as to repair the network connection in the second working mode; wherein the third application is an application that can run in the first working mode and the second working mode; The second switching module is used to control the electronic device to switch back to the first working mode when it is determined that the electronic device has returned to normal; The power consumption and / or available system resources of the electronic device in the first working mode are smaller than the power consumption and / or available system resources of the electronic device in the second working mode.
9. An electronic device, wherein: The electronic device comprises: a processor, a memory and a communication bus; The communication bus is used to realize the communication connection between the processor and the memory; The processor is used to execute the program of the control method in the memory to implement the following steps: When the electronic device is in the first working mode and it is determined that an abnormal situation exists, the electronic device is controlled to switch to the second working mode to handle the abnormal situation in the second working mode; when the electronic device is in the first working mode and it is determined that an abnormal situation exists, the electronic device is controlled to switch to the second working mode to handle the abnormal situation in the second working mode, including: if the electronic device is in the first working mode, based on the network status monitoring data of the second application or the communication volume of the electronic device in a preset time period, when it is determined that its network connection is abnormal, the electronic device is controlled to switch to the second working mode through a third application to repair the network connection in the second working mode; wherein the third application is an application that can run in the first working mode and the second working mode. When it is determined that the electronic device has returned to normal, controlling the electronic device to switch back to the first working mode; The power consumption and / or available system resources of the electronic device in the first working mode are smaller than the power consumption and / or available system resources of the electronic device in the second working mode.
Citation Information
Patent Citations
Information processing method and electronic equipment
CN108446010A
Electronic apparatus and control method of electronic apparatus
JP2012128624A
Managing network wake-up commands
US20170108912A1
Method, apparatus for processing power consumption of an application programme, calculation device and machine readable storage medium
WO2017198025A1
Mobile broadband device and power saving method therefor, and storage medium
WO2018000828A1
