Startup exception processing method and device, electronic equipment and storage medium

An electronic device and exception handling technology, applied in the direction of electrical digital data processing, fault handling not based on redundancy, generation of response errors, etc., can solve problems such as cumbersome process and poor user experience, so as to improve user experience and facilitate Effects of Analysis and Repair

Pending Publication Date: 2020-03-06
REALME CHONGQING MOBILE TELECOMM CORP LTD
0 Cites 0 Cited by

AI-Extracted Technical Summary

Problems solved by technology

At present, if the electronic device is turned on abnormally during the boot process, the user needs to return th...
View more

Method used

In view of the problems referred to above, the inventor has found and proposed the boot abnormality processing method, device, electronic equipment and storage medium that the embodiment of the application provides through long-term research, by monitoring the boot process of the electronic equipment, and after monitoring Start the log capture function and capture log information when the startup is abnormal, so that the log information of the first site can be captured when the startup is abnormal, which is convenient for analysis and repair of the startup exception, and improves user experience. Wherein, the specific method for handling abnormal startup will be described in detail in the subsequent embodiments.
[0048] In some embodiments, after establishing a communication connection with the test device, the electronic device can send the captured log information to the test device, and the log information can be used to indicate that the corresponding user of the test device performs the log information Analyzing and processing, so as to analyze based on the log information of the first scene of the electronic device where the abnormal startup occurs, can improve the probability of successful repair.
[0056] In some embodiments, the short-distance wireless communication network can be searched again based on preset conditions at a preset time interval, wherein the preset time interval can be 3 minutes, 5 minutes, 10 minutes, etc., with the preset time For example, if the interval is 5 minutes, when the target short-range wireless communication network corresponding to the preset condition is not found, the electronic device can search for the short-range wireless communication network based on the preset condition every 5 minutes, so as to increase the search times The method improves the probability of searching for the target short-range wireless communication network. Further, the electronic device may preset and store a times threshold, which is used as a basis for judging the times of searching the short-distance wireless communication network based on preset conditions at preset time intervals. Therefore, in this embodiment, during the process of searching the sh...
View more

Abstract

The invention discloses a startup exception processing method and device, electronic equipment and a storage medium, and relates to the technical field of electronic equipment. The startup exception processing method is applied to the electronic equipment and comprises the steps that when the electronic equipment receives a startup instruction, state information of the electronic equipment is monitored, and when it is monitored that startup exception occurs to the electronic equipment, a log capture function is started and log information is captured. According to the startup exception processing method and device, the electronic equipment and the storage medium provided by the embodiment of the invention, the startup process of the electronic equipment is monitored; and the log capture function is started and the log information is captured when the startup exception is monitored, so that the log information of the first site can be captured when the startup exception is monitored, the startup exception is convenient to analyze and repair, and the user experience is improved.

Application Domain

Hardware monitoringNon-redundant fault processing

Technology Topic

Operating systemSoftware engineering +2

Image

  • Startup exception processing method and device, electronic equipment and storage medium
  • Startup exception processing method and device, electronic equipment and storage medium
  • Startup exception processing method and device, electronic equipment and storage medium

Examples

  • Experimental program(1)

Example Embodiment

[0018] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the drawings in the embodiments of the present application.
[0019] At present, electronic devices may have the following scenarios: when a user purchases an electronic device and tries to turn it on, the electronic device can enter the boot wizard interface normally, and the touch screen of the electronic device cannot click or slide due to various reasons, resulting in abnormal boot, requiring developers Or the tester handles the abnormal startup. Moreover, since the log of the electronic device is generally not opened by default and the electronic device has been sold, it is difficult for developers or testers to further analyze the log by obtaining the electronic device. In addition, if the cause of the abnormal startup is the screen failure, you can directly analyze and deal with the hardware manufacturer together. If the cause of the abnormal startup is a software problem, then the occurrence of the abnormal startup is often probabilistic, and there may be a good time at startup. The problem of time-destruction may not be reproduced after restarting, which will cause developers or testers to be unable to accurately obtain the cause of the abnormal startup, and it is difficult to quickly repair the electronic device.
[0020] In response to the above-mentioned problems, the inventors have discovered and proposed the startup exception handling method, device, electronic equipment, and storage medium provided by the embodiments of the present application through long-term research. The startup process of the electronic equipment is monitored, and when the startup exception is detected Start the log capture function and capture the log information, so that the log information of the first site can be captured when the boot is abnormal, which facilitates the analysis and repair of the boot exception and improves the user experience. Among them, the specific boot exception handling method will be described in detail in the subsequent embodiments.
[0021] The following describes application scenarios that can be used in the startup exception handling method provided in the embodiments of the present application.
[0022] See figure 1 , figure 1 It shows a schematic diagram of an application scenario of the startup exception handling method provided by the implementation of this application. It includes an electronic device 100, a test device 200, and a server 300. The test device 200 communicates with the electronic device 100 and the server 300 respectively to realize data interaction with the electronic device 100 and the server 300, for example, the electronic device 100 can send The log information is sent to the testing device 200, and the testing device 200 can obtain the updated firmware from the server and send the updated firmware to the electronic device 100. Of course, the electronic device 100 can also communicate with the server 300, which is not limited here. As a way, the test device 200 and the server 300 may be connected to a base station respectively, so as to realize data interaction between the test device 200 and the server 300 through the base station. Among them, the electronic device 100 and the testing device 200 may include smart phones, tablet computers, wearable electronic devices, and so on. The server 300 may include a traditional server, a cloud server, etc., which is not limited herein. In some embodiments, the number of test equipment 200 may be one or more, figure 1 The number of the test equipment 200 shown is one as an example, which is not limited here.
[0023] See figure 2 , figure 2 It shows a schematic flowchart of a method for handling a startup exception provided by an embodiment of the present application. The power-on exception processing method is used to monitor the power-on process of the electronic device, and start the log capture function and capture log information when the power-on exception is detected, so that the log of the first site can be captured when the power-on exception is detected Information, which facilitates the analysis and repair of boot exceptions, and improves user experience. In a specific embodiment, the startup exception handling method is applied to Image 6 The power-on exception processing device 400 shown and the electronic equipment 100 configured with the power-on exception processing device 400 ( Figure 7 ). The following will take an electronic device as an example to describe the specific process of this embodiment. Of course, it is understandable that the electronic device applied in this embodiment may be a smart phone, a tablet computer, a wearable electronic device, etc., which is not limited herein. The following will target figure 2 The shown process is described in detail, and the boot exception handling method may specifically include the following steps:
[0024] Step S110: The electronic device monitors the state information of the electronic device when receiving the boot instruction.
[0025] In some embodiments, the electronic device may receive a boot command, and when receiving the boot command, respond to the boot command to try to boot. Wherein, the electronic device can receive a power-on instruction triggered by a user, or can receive a power-on instruction triggered by a preset rule, etc., which is not limited here. In this embodiment, when the power-on instruction received by the electronic device is triggered by the user, the power-on instruction may be generated when the electronic device is in the shutdown state and it is detected that the user's pressing operation on the power-on button satisfies the preset condition. It can be generated when the electronic device is turned off and a peripheral (such as a charger) is detected to be inserted. When the power-on instruction received by the electronic device is triggered by a preset rule, the power-on instruction can be generated when the electronic device is off and the current time meets the preset time, or when the electronic device is off and the current location meets the preset location It can also be generated when the electronic device is turned off and the current temperature meets the preset temperature.
[0026] In some embodiments, when the electronic device receives the boot instruction and attempts to boot, the state information of the electronic device may be monitored, and based on the monitored state information of the electronic device, it may be determined whether the electronic device is abnormally turned on.
[0027] As a way, it can be determined whether the electronic device is turned on abnormally by monitoring whether its touch screen can respond to a touch operation when the electronic device is in the boot guide interface. Specifically, when it is detected that the touch screen of the electronic device can respond to touch operations when the electronic device is in the boot guide interface, it indicates that the electronic device is booted normally, and when it is detected that the touch screen of the electronic device cannot respond to touch operations when the electronic device is in the boot wizard interface, it indicates that the electronic device is abnormally booted .
[0028] As another method, it can be determined whether the electronic device is abnormally booted by monitoring whether the electronic device can jump to the desktop from the boot guide interface. Specifically, when it is monitored that the electronic device can jump to the desktop from the booting wizard interface, it indicates that the electronic device is booted normally, and when it is monitored that the electronic device cannot jump to the desktop from the booting wizard interface, it indicates that the electronic device is abnormally booted.
[0029] As another way, it can be determined whether the electronic device is abnormally booted by monitoring whether the electronic device can jump from the boot guide interface to the desktop within a preset time period. Specifically, when it is monitored that the electronic device can jump from the boot wizard interface to the desktop within the preset time, it means that the electronic device is booted normally. When it is monitored that the electronic device cannot jump from the boot wizard interface to the desktop within the preset time When, it indicates that the electronic device is turned on abnormally.
[0030] Of course, in this embodiment, the status information of the electronic device can also be monitored in other more ways, and based on the monitored status information, it is determined whether the electronic device is abnormally powered on, which will not be repeated here.
[0031] Step S120: When it is detected that the electronic device is abnormally powered on, start the log capture function and capture the log information.
[0032] In some embodiments, when it is detected that the electronic device is abnormally powered on, the log capture function of the electronic device can be activated, and the log information of the electronic device can be captured through the log capture function, so that the first time and the first on-site capture Obtaining valid log information, there is no need to destroy the site, avoid retesting or stress testing, facilitate the analysis and repair of startup exceptions, and improve user experience.
[0033] Wherein, the log information refers to information that records the system operation behavior of the electronic device. In this embodiment, the captured log information refers to the information that records the system operation behavior of the electronic device during the boot process. The log information may include text data and image data. When the log information is text data, the log information may include text data, numeric data, character data, etc., which are not limited herein. In addition, in this embodiment, after the electronic device grabs the log information, it can store the log information in the memory of the electronic device, or store the log information in the disk (hard disk) of the electronic device, which is not done here. limited. Wherein, when the log information is stored in the memory, the memory may include a shared memory (Shared Memory) created in advance by the electronic device, so that each process can write the log information to the log file through the shared memory, so that the log information is in the form of a file Output for analysis; when the log information is stored on the disk, the log information can be saved in a log file and stored on the disk, so that the log information can be output in the form of a file for analysis.
[0034] According to an embodiment of the present application, the electronic device monitors the status information of the electronic device when it receives a startup instruction, and when it detects that the electronic device has a startup exception, it activates the log capture function and captures the log information to By monitoring the boot process of the electronic device, and starting the log capture function and capturing log information when the boot abnormality is detected, the log information of the first site can be captured when the boot abnormality is detected, which is convenient for the analysis of the boot abnormality And repair to improve user experience.
[0035] See image 3 , image 3 It shows a schematic flowchart of a startup exception handling method provided by another embodiment of the present application. This method is applied to the above electronic equipment, and the following will be aimed at image 3 The shown process is described in detail, and the boot exception handling method may specifically include the following steps:
[0036] Step S210: The electronic device monitors the state information of the electronic device when receiving the boot instruction.
[0037] For the specific description of step S210, please refer to step S110, which will not be repeated here.
[0038] Step S220: When it is detected that the electronic device is abnormally powered on, search for a short-range wireless communication network based on a preset condition.
[0039] In some embodiments, the electronic device presets and stores a preset condition, and the preset condition is used as a basis for searching a short-range wireless communication network. Therefore, in this embodiment, when an abnormal startup of the electronic device is detected , You can search for short-range wireless communication networks based on preset conditions. The short-range wireless communication networks include Wi-Fi, Bluetooth, Near Field Communication NFC, and Zifeng ZigBee, which are not limited here. For example, when an abnormal startup of an electronic device is detected, WiFi can be searched based on preset conditions; when an abnormal startup of an electronic device is detected, Bluetooth can be searched based on preset conditions; when an abnormal startup of an electronic device is detected, it can be based on Search for NFC with preset conditions; when it is detected that the electronic device is abnormally powered on, ZigBee, etc. can be searched based on preset conditions, which is not limited here.
[0040] In some embodiments, the preset condition may include a designated name, and the designated name is consistent with the name of the target short-range wireless communication network. That is, the electronic device may be preset and stored with a designated name, which is used as a basis for searching for a short-range wireless communication network. Therefore, in this embodiment, when an abnormal startup of the electronic device is detected, it can be based on Search for a short-range wireless communication network by specifying a name. When searching for a short-range wireless communication network consistent with the name of the specified name, it can be determined that the target short-range wireless communication network is searched. When there is no search for the same name as the specified name In the case of a short-range wireless communication network, it can be determined that the target short-range wireless communication network has not been searched. Taking the short-range wireless communication network as WiFi as an example, when it is detected that the electronic device is abnormally turned on, the WiFi can be searched based on the specified name. When the WiFi with the same name as the specified name is searched, the WiFi can be determined as the target WiFi. When the WiFi with the same name as the specified name is not searched, it means that the target WiFi is not searched.
[0041] In some embodiments, the preset condition may include a designated password, and the designated password is consistent with the password of the target short-range wireless communication network. That is to say, the electronic device may be preset and stored with a designated password, which is used as a basis for searching for a short-range wireless communication network. Therefore, in this embodiment, when an abnormal startup of the electronic device is detected, it may be based on Specify a password to search for a short-range wireless communication network, where, when a short-range wireless communication network that matches the password of the specified password is searched, the target short-range wireless communication network can be determined to be searched, and when the password that matches the specified password is not found In the case of a short-range wireless communication network, it can be determined that the target short-range wireless communication network has not been searched. Taking the short-range wireless communication network as WiFi as an example, when it is detected that the electronic device is abnormally powered on, the WiFi can be searched based on the specified password. When the WiFi that matches the password of the specified password is searched, the WiFi can be determined as the target WiFi. When the WiFi that is consistent with the password of the specified password is not searched, it means that the target WiFi is not searched.
[0042] In some embodiments, the preset condition may include a designated name and a designated password, the designated name is consistent with the name of the target short-range wireless communication network, and the designated password is consistent with the password of the target short-range wireless communication network. That is to say, the electronic device may be preset and stored with a designated name and designated password, which are used as the basis for searching the short-distance wireless communication network. Therefore, in this embodiment, when the electronic device is detected When the power-on is abnormal, the short-range wireless communication network can be searched based on the specified name and the specified password. Among them, when the short-range wireless communication network that is consistent with the specified name and the password of the specified password is searched, the target short-range wireless communication network can be determined to be searched. Distance wireless communication network, when there is no short-distance wireless communication network that is consistent with the name of the specified name or the password of the specified password, it can be determined that the target short-distance wireless communication network is not searched. Take the short-range wireless communication network as WiFi as an example. When it is detected that the electronic device is abnormally powered on, the WiFi can be searched based on the specified name and specified password. When the WiFi with the name consistent with the specified name and the password consistent with the specified password is found , The WiFi can be determined as the target WiFi. When the WiFi with the name consistent with the specified name or the password consistent with the specified password is not searched, it means that the target WiFi is not searched.
[0043] Step S230: When the target short-range wireless communication network corresponding to the preset condition is searched, the log capture function is activated and the log information is captured.
[0044] In some embodiments, when a target short-range wireless communication network corresponding to a preset condition is searched, for example, when a short-range wireless communication network with a name consistent with a specified name is searched, when a short-range wireless communication network with a specified password is searched When a short-range wireless communication network with the same password is searched for a short-range wireless communication network that is consistent with the name of the specified name and the password of the specified password, it can indicate that the electronic device meets the trigger condition for starting the log capture function. Therefore, the electronic device can start the log capture function to capture log information in response.
[0045] Step S240: Establish a communication connection with the test equipment.
[0046] In some embodiments, the electronic device may establish a communication connection with the test device to send log information to the test device based on the communication connection with the test device. In this embodiment, the electronic device and the test device can realize a communication connection based on the above-mentioned target short-range wireless communication network, for example, realize the communication connection with the test device through the above-mentioned target WiFi, realize the communication connection with the test device through the target Bluetooth, and pass The target NFC realizes the communication connection with the test device, and the target ZigBee realizes the communication connection with the test device, etc., which are not limited here. In addition, in this embodiment, the electronic device can also communicate with the test device through other short-range wireless communication networks, for example, through other WiFi to achieve communication connection with the test device, through other Bluetooth to achieve communication connection with the test device, The communication connection with the test equipment through other NFC and the communication connection with the test equipment through other ZigBee are not limited here.
[0047] Step S250: Send the log information to the testing device, where the log information is used to instruct the testing device to analyze the log information.
[0048] In some embodiments, after establishing a communication connection with the test device, the electronic device may send the captured log information to the test device, and the log information may be used to instruct the user corresponding to the test device to analyze and process the log information. In order to analyze based on the log information of the first site of the electronic device that has abnormal startup, the probability of successful repair can be improved.
[0049] Step S260: Receive the updated firmware sent by the testing device, where the updated firmware is obtained by the testing device from the server based on the log information.
[0050] In some embodiments, after the test equipment analyzes the log information, the problem that caused the abnormal startup of the electronic device can be obtained, and it is determined whether the problem that caused the abnormal startup of the electronic device is a known problem, that is, whether the problem that caused the abnormal startup of the electronic device is determined It has happened before. When the judgment result indicates that the problem that caused the electronic device to turn on abnormally is a known problem, the electronic device can be processed based on the previous solution to the known problem. When the judgment result indicates that the electronic device When the abnormal startup of the device is not a known problem, you can search for solutions to the abnormal startup of the electronic device.
[0051] In this embodiment, the solution for the test equipment to find the abnormal startup of the electronic device is to output the updated firmware for updating the original firmware of the electronic device to solve the problem of the abnormal startup of the electronic device. Therefore, the test equipment will output different updated firmware to solve different problems for each problem that caused the abnormal startup of the electronic equipment. Of course, the updated firmware output by the test equipment can be uploaded to the server for storage, so that the electronic equipment-based Log information analysis obtains that the problem that caused the abnormal startup of the electronic device is a known problem, you can directly obtain the updated firmware corresponding to the known problem from the server, and send the updated firmware to the electronic device, thereby quickly solving the abnormal startup of the electronic device The problem.
[0052] Step S270: Update the original firmware of the electronic device based on the updated firmware.
[0053] In some embodiments, after the electronic device receives the updated firmware sent by the test device, it can update the original firmware of the electronic device based on the updated firmware to solve the problem of abnormal startup and improve user experience.
[0054] Step S280: When the target short-range wireless communication network corresponding to the preset condition is not searched, the short-range wireless communication network is searched again based on the preset condition at a preset time interval and the number of searches is recorded.
[0055] In some embodiments, when the target short-distance wireless communication network corresponding to the preset condition is not searched, for example, when the short-distance wireless communication network consistent with the specified name is not searched, when the short-distance wireless communication network with the specified name is not searched, When a short-range wireless communication network with the same passwords and passwords is specified, it can indicate that the electronic device does not meet the trigger condition for starting the log capture function. Therefore, in this embodiment, the short-range wireless communication network can be searched again based on preset conditions.
[0056] In some embodiments, the short-range wireless communication network can be searched again based on preset conditions at a preset time interval, where the preset time interval may be 3 minutes, 5 minutes, 10 minutes, etc., and the preset time interval is 5 For example, when the target short-range wireless communication network corresponding to the preset condition is not searched, the electronic device can search the short-range wireless communication network based on the preset condition every 5 minutes to improve the search by increasing the number of searches The probability of reaching the target short-range wireless communication network. Further, the electronic device may preset and store a frequency threshold, and the frequency threshold is used as a basis for determining the number of searches for the short-range wireless communication network based on preset conditions at preset time intervals. Therefore, in this embodiment, in the process of searching the short-distance wireless communication network based on preset conditions at preset time intervals, the electronic device may record the number of searches, and compare the recorded number of searches with the threshold of times to determine the search Whether the number of times reaches the number threshold.
[0057] Step S290: Stop searching the short-range wireless communication network when the number of searches reaches the threshold of the number of times.
[0058] Wherein, when the judgment result indicates that the number of searches reaches the threshold of times, it indicates that another attempt to search for the target short-range wireless communication network fails, and the search for the short-range wireless communication network may be stopped to wait for subsequent processing.
[0059] According to another embodiment of the present application, the electronic device monitors the status information of the electronic device when it receives a startup instruction, and when it detects that the electronic device has a startup exception, searches for a short-range wireless communication network based on preset conditions, When the target short-range wireless communication network corresponding to the preset condition is searched, the log capture function is started and the log information is captured. Establish a communication connection with the test device and send log information to the test device. The log information is used to instruct the test device to analyze the log information and receive the updated firmware sent by the test device. The update firmware is obtained by the test device from the server based on the log information , To update the original firmware of the electronic device based on the updated firmware. When the target short-distance wireless communication network corresponding to the preset conditions is not searched, the short-distance wireless communication network is searched again based on the preset conditions at a preset time interval and the number of searches is recorded. When the number of searches reaches the threshold, the short-distance search is stopped. Distance wireless communication network. Compared to figure 2 In the illustrated startup exception handling method, this embodiment also starts the log capture function and captures log information when the target short-range wireless communication network is searched based on preset conditions, so as to improve the intelligence of the log capture function activation. In addition, this embodiment also communicates and connects the electronic device with the test device, sends log information to the test device, and receives the updated firmware sent by the test device, so as to quickly repair the abnormal startup.
[0060] See Figure 4 , Figure 4 It shows a schematic flowchart of a startup exception handling method provided by still another embodiment of the present application. The method is applied to the above-mentioned electronic device, the electronic device includes a touch screen, the following will focus on Figure 4 The shown process is described in detail, and the boot exception handling method may specifically include the following steps:
[0061] Step S310: The electronic device monitors the state information of the touch screen when receiving the boot instruction.
[0062] In some embodiments, the electronic device includes a touch screen, and the problem of abnormal startup of the electronic device may be caused by a screen jam of the touch screen. Therefore, in this embodiment, when the electronic device receives the power-on instruction, it can monitor the status information of the touch screen to determine whether the touch screen is jammed. When it is detected that the touch screen is jammed, it indicates that the electronic device has an abnormal startup. When it is detected that there is no jamming of the touch screen, it means that the electronic device has no jamming abnormality. Among them, the electronic device can start a monitoring thread touch panl_check in the boot wizard thread to monitor the status information of the touch screen.
[0063] Step S320: When it is detected that the touch screen is jammed, search for a short-range wireless communication network based on preset conditions.
[0064] Wherein, when it is detected that the touch screen is stuck, it indicates that the electronic device is abnormally turned on, and the short-range wireless communication network can be searched based on preset conditions.
[0065] Step S330: When the target short-range wireless communication network corresponding to the preset condition is searched, the log capture function is activated and the log information is captured.
[0066] For the specific description of step S320-step S330, please refer to step S220-step S230, which will not be repeated here.
[0067] According to another embodiment of the present application, the electronic device monitors the status information of the touch screen when receiving the boot instruction, and when it detects that the touch screen is stuck, it searches for the short-range wireless communication network based on preset conditions. When the target short-range wireless communication network corresponding to the preset conditions is reached, the log capture function is activated and the log information is captured. Compared to figure 2 As shown in the startup exception handling method, this embodiment activates the log capture function and captures log information when the touch screen is detected to be stuck, so that the log information of the first site can be captured when the touch screen is stuck, which is convenient for the touch screen card. Screen analysis and repair to improve user experience. In addition, this embodiment also starts the log capture function and captures log information when the target short-range wireless communication network is searched based on the preset conditions, so as to improve the intelligence of the log capture function activation.
[0068] See Figure 5 , Figure 5 It shows a schematic flowchart of a startup exception handling method provided by another embodiment of the present application. The method is applied to the above-mentioned electronic device, the electronic device includes a touch screen, the following will focus on Figure 5 The shown process is described in detail, and the boot exception handling method may specifically include the following steps:
[0069] Step S410: The electronic device monitors the length of time that the touch screen stays on the boot guide interface when receiving the boot instruction.
[0070] In some embodiments, the electronic device includes a touch screen, and the problem of abnormal startup of the electronic device may be caused by a screen jam of the touch screen. Therefore, in this embodiment, when the electronic device receives the boot instruction, it can monitor the length of time the touch screen stays on the boot guide interface to determine whether the touch screen is stuck. When the duration threshold is set, it means that the touch screen is stuck, which means that the electronic device is abnormally turned on. When it is monitored that the time that the touch screen stays on the boot guide interface does not reach the duration threshold, it jumps to the desktop. There is no abnormal startup of the device.
[0071] Step S420: When it is detected that the duration of the touch screen staying on the boot guide interface reaches the duration threshold, search for a short-range wireless communication network based on a preset condition.
[0072] Wherein, when it is detected that the duration of the touch screen staying on the boot guide interface reaches the duration threshold, it indicates that the touch screen is stuck, that is, it indicates that the electronic device is abnormally booted, and the short-range wireless communication network can be searched based on preset conditions.
[0073] Step S430: When the target short-distance wireless communication network corresponding to the preset condition is searched, the log capture function is activated and the log information is captured.
[0074] For the detailed description of step S420-step S430, please refer to step S220-step S230, which will not be repeated here.
[0075] According to another embodiment of the present application, the electronic device monitors the length of time the touch screen stays on the boot guide interface when it receives the boot instruction, and when it is detected that the time the touch screen stays on the boot guide interface reaches the duration threshold, it is based on the prediction Set conditions to search for short-range wireless communication networks. When the target short-range wireless communication network corresponding to the preset conditions is searched, the log capture function is started and the log information is captured. Compared to figure 2 As shown in the startup exception handling method, this embodiment activates the log grab function and grabs log information when it is detected that the touch screen stays on the startup wizard interface for too long, so that the touch screen stays on the startup wizard interface for too long. The log information of the first site can be captured to facilitate the analysis and repair of the touch screen staying on the boot guide interface for too long, and improve the user experience. In addition, this embodiment also starts the log capture function and captures log information when the target short-range wireless communication network is searched based on the preset conditions, so as to improve the intelligence of the log capture function activation.
[0076] See Image 6 , Image 6 It shows a block diagram of modules of the device 200 for processing an abnormal startup according to an embodiment of the present application. The power-on exception handling device 400 is applied to the above-mentioned electronic equipment. Image 6 To illustrate with the block diagram shown, the boot exception handling device 400 includes: a status information monitoring module 410 and a log capture module 420, wherein:
[0077] The state information monitoring module 410 is configured to monitor the state information of the electronic device when the electronic device receives a power-on instruction. Further, the electronic device includes a touch screen, and the status information monitoring module 410 includes: a status information monitoring sub-module, wherein:
[0078] The status information monitoring sub-module is used for monitoring the status information of the touch screen when the electronic device receives a power-on instruction. Further, the state information monitoring submodule includes: a time monitoring unit, wherein:
[0079] The duration monitoring unit is configured to monitor the duration of the touch screen staying on the boot guide interface when the electronic device receives a boot instruction.
[0080] The log capture module 420 is configured to activate the log capture function and capture log information when it is detected that the electronic device is abnormally powered on. Further, the log capture module 420 includes: a web search sub-module and a log capture sub-module, wherein:
[0081] The network search sub-module is configured to search for a short-range wireless communication network based on preset conditions when it is detected that the electronic device is abnormally powered on. Further, the preset condition includes a designated name, the designated name is consistent with the name of the target short-range wireless communication network, and the network search submodule includes: a network search unit, wherein:
[0082] The network search unit is configured to search for a short-range wireless communication network based on the designated name when it is detected that the electronic device is abnormally turned on. Further, the preset condition further includes a designated password, and the designated password is consistent with the password of the target short-range wireless communication network, and the network search unit includes: a network search subunit, wherein:
[0083] The network search subunit is configured to search for a short-range wireless communication network based on the specified name and the specified password when it is detected that the electronic device is abnormally powered on.
[0084] The first log capture submodule is used to start the log capture function and capture log information when the target short-range wireless communication network corresponding to the preset condition is searched.
[0085] Further, the log capture module 420 further includes: a search frequency recording submodule and a search stop submodule, wherein:
[0086] The search times recording sub-module is used to search for the short-distance wireless communication network again based on the preset conditions at a preset time interval and record the search times when the target short-range wireless communication network corresponding to the preset conditions is not searched .
[0087] The stop search sub-module is configured to stop searching for the short-range wireless communication network when the number of searches reaches the threshold of times.
[0088] Further, the log capture module 420 includes:
[0089] The second log capture sub-module is used to start the log capture function and capture log information when it is detected that the touch screen is jammed. Further, the second log capture submodule includes: a log capture unit, wherein:
[0090] The log capture unit is configured to start the log capture function and capture the log information when it is detected that the duration of the touch screen staying on the boot guide interface reaches the duration threshold.
[0091] Further, the device 200 for handling abnormal power-on processing further includes: a connection establishment module, a log information sending module, an update firmware receiving module, and a firmware update module, wherein:
[0092] The connection establishment module is used to establish a communication connection with the test equipment.
[0093] The log information sending module is configured to send the log information to the testing device, and the log information is used to instruct the testing device to analyze the log information.
[0094] The updated firmware receiving module is configured to receive the updated firmware sent by the testing device, wherein the updated firmware is obtained by the testing device from the server based on the log information.
[0095] The firmware update module is used to update the original firmware of the electronic device based on the updated firmware.
[0096] Those skilled in the art can clearly understand that, for the convenience and conciseness of the description, the specific working process of the device and module described above can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
[0097] In the several embodiments provided in this application, the coupling between the modules may be electrical, mechanical or other forms of coupling.
[0098] In addition, the functional modules in the various embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or software functional modules.
[0099] See Figure 7 , Which shows a structural block diagram of an electronic device 100 provided by an embodiment of the present application. The electronic device 100 may be an electronic device capable of running application programs, such as a smart phone, a tablet computer, or an e-book. The electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, a touch screen 130, and one or more application programs, of which one or more application programs may be stored in the memory 120 and configured To be executed by one or more processors 110, one or more programs are configured to execute the methods described in the foregoing method embodiments.
[0100] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and calling data stored in the memory 120. Various functions and processing data of the electronic device 100. Optionally, the processor 110 may use at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA) Realize in the form of hardware. The processor 110 may be integrated with one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing the content to be displayed; the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented by a communication chip alone.
[0101] The memory 120 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area. The program storage area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.) , Instructions for implementing the following method embodiments, etc. The data storage area can also store data (such as phone book, audio and video data, chat record data) created by the terminal 100 during use.
[0102] The touch screen 130 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the electronic device 100. These graphical user interfaces can be composed of graphics, text, icons, numbers, videos, and any combination thereof. In an example, the touch screen 130 may be a Liquid Crystal Display (LCD) or an Organic Light-Emitting Diode (OLED), which is not limited here.
[0103] See Figure 7 , Which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable medium 500 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
[0104] The computer-readable storage medium 500 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 500 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 500 has storage space for the program code 510 for executing any method steps in the above-mentioned methods. These program codes can be read from or written into one or more computer program products. The program code 510 may be compressed in an appropriate form, for example.
[0105] In summary, the methods, devices, electronic equipment, and storage media for handling abnormal booting provided by the embodiments of the present application monitor the state information of the electronic equipment when receiving the booting instruction, and when the abnormal booting of the electronic equipment is detected, Start the log capture function and capture the log information to monitor the boot process of the electronic device, and start the log capture function and capture the log information when an abnormal boot is detected, so that the first can be captured when the boot is abnormal One-site log information facilitates the analysis and repair of startup exceptions and improves user experience.
[0106] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the application, not to limit them; although the application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: The technical solutions recorded in the foregoing embodiments are modified, or some of the technical features thereof are equivalently replaced; these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.

Similar technology patents

Video photographing control device and method, and unmanned aerial vehicle

PendingCN106027896AImprove user experience
Owner:ZEROTECH (BEIJING) INTELLIGENCE TECH CO LTD

Method and system for managing chat messages of instant message temporary session group

InactiveCN103051517AComprehensive management functionsImprove user experience
Owner:BEIJING BAIDU NETCOM SCI & TECH CO LTD

Classification and recommendation of technical efficacy words

  • Improve user experience

Method, device and equipment for displaying multiple application windows on mobile terminal

InactiveCN102968243AImprove information acquisition efficiency and ease of operationImprove user experience
Owner:SHENZHEN YUNYINGGU TECH CO LTD

Content recommending method and device based on user characteristics

ActiveCN101957834AFacilitate the dissemination of informationImprove user experience
Owner:BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products