Method for improving equipment stability, electronic equipment and storage medium

By monitoring and managing wireless charging status change events, and using timers to filter disconnection and reconnection caused by critical state, the problem of NFC function interference during wireless charging is solved, and the device stability and power consumption optimization are improved.

CN118972927APending Publication Date: 2024-11-15NOTHING TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411004255.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

When wireless charging of mobile terminal devices, it is easy to interfere with the NFC function, resulting in irregular disconnection and frequent changes in the NFC switch state, affecting device stability and power consumption optimization.

Method used

By monitoring the wireless charging status change event of the terminal device, obtaining status change information, and using a timer to determine whether to change the NFC state within the preset time, avoiding frequent disconnection and reconnection caused by critical state, and reducing the frequency of the NFC switch state change .

Benefits of technology

It effectively reduces the frequency of changing the NFC switch state, improves the stability of the terminal system and NFC service, and optimizes the system's standby power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972927A_ABST
    Figure CN118972927A_ABST
Patent Text Reader

Abstract

The invention discloses a method for improving equipment stability, electronic equipment and a storage medium. The method comprises the following steps: monitoring a wireless charging state change event of the terminal equipment; if the wireless charging state change event is monitored, obtaining state change information corresponding to the wireless charging state change event; determining whether to start a timer or not according to the state change information, and monitoring a wireless charging state change event in a preset time of the timer; and if the wireless charging state change event is monitored in the preset time, the near field communication state is not changed. According to the technical scheme, the change frequency of the near field communication on-off state can be reduced, so that the stability of the terminal system and the near field communication service is improved, and optimization of the standby power consumption of the system is facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application generally relates to the field of mobile terminal technology. More specifically, the present application relates to a method for improving device stability, an electronic device and a storage medium. Background Art

[0002] Since more and more mobile terminal devices are equipped with NFC function and wireless charging / wireless reverse charging function, it is easy for mobile terminal devices to interfere with NFC when performing wireless charging / wireless reverse charging. In order to avoid this problem, in the prior art, the mobile phone NFC service can monitor the status broadcast of wireless charging / wireless reverse charging, and turn off the NFC function when starting wireless charging / wireless reverse charging; when ending wireless charging / wireless reverse charging, NFC will not turn on automatically, and when the user uses NFC, it will be turned on manually. In another existing method, the mobile phone NFC service can monitor the status broadcast of wireless charging / wireless reverse charging, and when starting wireless charging / wireless reverse charging, record the current NFC switch status, and then if NFC is on, turn off the NFC function; when ending wireless charging / wireless reverse charging, restore NFC to the recorded state.

[0003] However, in actual use, the above existing methods may cause irregular disconnection and reconnection due to the mobile phone terminal device being in a critical state during wireless charging / wireless reverse charging. The reasons for this situation are various, such as some models of wireless chargers and mobile phones are not compatible, or the performance of the wireless charger is poor, or the mobile phone terminal device is in a critical position during wireless charging / wireless reverse charging, or the performance of the wireless charging coil of the mobile phone terminal device is poor, etc. In the case of irregular disconnection and reconnection during wireless charging / wireless reverse charging, a large number of status broadcasts are easily issued, resulting in frequent changes in the NFC switch state, which poses a greater risk to the device system and NFC stability.

[0004] In view of this, there is an urgent need to provide a method for improving device stability so as to reduce the frequency of changing the near field communication switch state, thereby improving the stability of the terminal system and the near field communication service, and facilitating the optimization of the system standby power consumption. Summary of the invention

[0005] In order to at least solve one or more of the technical problems mentioned above, the present application proposes a method, an electronic device and a storage medium for improving device stability in multiple aspects. The method for improving device stability can reduce the frequency of changing the NFC switch state, thereby improving the stability of the terminal system and NFC service, and is conducive to optimizing the system standby power consumption.

[0006] In a first aspect, the present application provides a method for improving device stability, comprising: monitoring a wireless charging state change event of a terminal device; if a wireless charging state change event is monitored, obtaining state change information corresponding to the wireless charging state change event; determining whether to start a timer based on the state change information and monitoring the wireless charging state change event within a preset time of the timer; if a wireless charging state change event is monitored within the preset time, not changing the near field communication state.

[0007] In some embodiments, the status change information includes starting charging and stopping charging; wherein, determining whether to start the timer according to the status change information and monitoring the wireless charging status change event within the preset time of the timer includes: if the status change information is to stop charging, starting the timer and monitoring the wireless charging status change event within the preset time.

[0008] In some embodiments, determining whether to start a timer according to the state change information and monitoring the wireless charging state change event within a preset time of the timer includes: if the state change information is to start charging, not starting the timer.

[0009] In some embodiments, after not starting the timer, the method further includes: acquiring the near field communication state; if the near field communication state is an on state, determining the on state as the near field communication initial state; and changing the near field communication state to an off state.

[0010] In some embodiments, after starting the timer and monitoring the wireless charging state change event within a preset time, the method further includes: if no wireless charging state change event is monitored within the preset time, reading the near field communication initial state and changing the near field communication state to the near field communication initial state.

[0011] In some embodiments, the state change information also includes other states, and the other states are states other than starting charging and stopping charging; wherein, after obtaining the state change information corresponding to the wireless charging state change event, the method also includes: if the state change information is other states, executing the step of monitoring the wireless charging state change event of the terminal device.

[0012] In some embodiments, after the near field communication state is not changed, the method further includes: resetting the timer; and re-executing the step of monitoring the wireless charging state change event within the preset time of the timer.

[0013] In some embodiments, monitoring a wireless charging state change event of a terminal device includes: monitoring a wireless charging state change event via a near field communication service.

[0014] In a second aspect, the present application provides an electronic device, comprising: a processor; and a memory, on which is stored a program code for improving device stability, and when the program code is executed by the processor, the electronic device implements the method as described above.

[0015] In a third aspect, the present application provides a non-transitory machine-readable storage medium having stored thereon a program code for improving device stability, and when the program code is executed by a processor, the method described above can be implemented.

[0016] The technical solution provided by this application may have the following beneficial effects:

[0017] The method, electronic device and storage medium for improving device stability provided by the present application monitor the wireless charging state change event of the terminal device. If a wireless charging state change event is detected, the state change information corresponding to the wireless charging state change event is obtained. Then, according to the state change information, it is determined whether to start the timer and monitor the wireless charging state change event during the preset time of the timer, so as to determine whether the terminal device is disconnected and reconnected due to being in a critical state. Furthermore, if a wireless charging state change event is detected during the preset time, it means that the terminal device is not disconnected and reconnected, and the near-field communication state is not changed, thereby avoiding frequent changes in the near-field communication switch state.

[0018] In general, the present application can reduce the frequency of changing the near-field communication switch state, thereby improving the stability of the terminal system and the near-field communication service, and is conducive to optimizing the system standby power consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become easy to understand. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:

[0020] Figure 1 An exemplary flow chart showing a method for improving device stability according to some embodiments of the present application is shown;

[0021] Figure 2 An exemplary flow chart showing a method for improving device stability according to other embodiments of the present application is shown;

[0022] Figure 3 An exemplary flow chart showing a method for improving device stability according to some further embodiments of the present application is shown;

[0023] Figure 4An exemplary flow chart showing a method for improving device stability according to yet other embodiments of the present application;

[0024] Figure 5 A schematic diagram of the structure of an electronic device shown in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. For the simplicity and clarity of the description, the figure marks may be repeated in the drawings to indicate corresponding or similar elements when deemed appropriate. In addition, the present application sets forth many specific details in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein may be practiced without these specific details. In other cases, well-known methods, processes, and components are not described in detail to avoid blurring the embodiments described herein. Moreover, the description should not be regarded as limiting the scope of the embodiments described herein. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.

[0026] It should be understood that the possible terms "first" or "second" etc. in the claims, specifications and drawings disclosed in this application are used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the specification and claims of this application indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections.

[0027] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in this application specification and claims, unless the context clearly indicates otherwise, the singular forms of "a", "an" and "the" are intended to include plural forms. It should also be further understood that the term "and / or" used in this application specification and claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0028] As used in this specification and claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0029] As more and more mobile terminal devices are equipped with NFC and wireless charging / wireless reverse charging functions, mobile terminal devices are prone to mutual interference with NFC when performing wireless charging / wireless reverse charging. In the existing methods to solve the mutual interference between wireless charging / wireless reverse charging and NFC, the mobile terminal device may be in a critical state during wireless charging / wireless reverse charging, resulting in irregular disconnection and reconnection, which may easily cause a large number of status broadcasts to be sent, resulting in frequent changes in the NFC switch state, posing a greater risk to the device system and NFC stability.

[0030] In view of this, there is an urgent need to provide a method for improving device stability so as to reduce the frequency of changing the near field communication switch state, thereby improving the stability of the terminal system and the near field communication service, and facilitating the optimization of the system standby power consumption.

[0031] The specific implementation of the present application is described in detail below with reference to the accompanying drawings.

[0032] Figure 1 An exemplary flow chart showing a method for improving device stability according to some embodiments of the present application is shown in FIG. Figure 1 , the method for improving device stability shown in the embodiment of the present application may include:

[0033] In step S101, the wireless charging state change event of the terminal device is monitored. In an embodiment of the present application, the aforementioned terminal device may be a device capable of wireless charging, such as a smart phone. Wireless charging methods may include wireless forward charging and wireless reverse charging. Among them, wireless forward charging mainly refers to the wireless transmission of power from an external power source to an electronic device; on the contrary, wireless reverse charging refers to allowing an electronic device (such as a mobile phone) to be used as a power source to provide power to other devices that support wireless charging.

[0034] The above wireless charging state change event may include but is not limited to the event that the user starts wireless charging and the event that the user stops wireless charging. It is understandable that in actual applications, the events that can cause the wireless charging state change are diverse, and the wireless charging state change event needs to be determined according to the actual application situation. This application does not impose any restrictions in this regard.

[0035] In step S102, if a wireless charging state change event is detected, the state change information corresponding to the wireless charging state change event is obtained. In the embodiment of the present application, when an event causing a change in the wireless charging state is detected, it can be further determined whether to start wireless charging or stop wireless charging, thereby obtaining the state change information corresponding to the wireless charging state change event.

[0036] In step S103, it is determined whether to start the timer according to the status change information and monitor the wireless charging status change event within the preset time of the timer. It is understandable that if the current NFC switch state is recorded when wireless charging / wireless reverse charging starts, and then if NFC is turned on, the NFC function is turned off; when the wireless charging / wireless reverse charging ends, NFC is restored to the recorded state. In this way, the switch state of NFC needs to be changed once each time the wireless charging state changes. When the terminal device is in a critical state, the wireless charging state will change frequently, causing the switch state of NFC to change frequently. In an embodiment of the present application, a timer is added to count the preset time and monitor for a longer period of time, so as to filter out the disconnection and reconnection caused by the terminal device being in a critical state.

[0037] In an embodiment of the present application, the preset time of the timer can be set to 2 seconds by way of example. It can be understood that there are various ways to set the preset time of the timer, and in actual applications it needs to be set according to actual application conditions. The present application does not impose any restrictions in this regard.

[0038] In step S104, if a wireless charging state change event is detected within the preset time, the near field communication state is not changed. It can be understood that if a wireless charging state change event is detected within the preset time, it means that there is a change in the wireless charging state in a short period of time, and there may be a non-human situation of disconnection and reconnection due to the terminal device being in a critical state. This situation needs to be filtered and the near field communication state is not changed to avoid frequent changes in the near field communication (NFC) state due to this situation.

[0039] The method, electronic device and storage medium for improving device stability provided by the present application monitor the wireless charging state change event of the terminal device. If a wireless charging state change event is detected, the state change information corresponding to the wireless charging state change event is obtained. Then, it is determined whether to start the timer based on the state change information and the wireless charging state change event is monitored during the preset time of the timer, thereby determining whether the terminal device is disconnected and reconnected due to being in a critical state. Furthermore, if a wireless charging state change event is detected during the preset time, it means that the terminal device is not disconnected and reconnected, and the near-field communication state is not changed, thereby avoiding frequent changes in the near-field communication switch state. In general, the present application can reduce the frequency of changes in the near-field communication switch state, thereby improving the stability of the terminal system and the near-field communication service, and is conducive to optimizing the system standby power consumption.

[0040] In some embodiments, the state change information includes starting charging and stopping charging. Figure 2 The processing strategies for the two state change information of starting charging and stopping charging are described in detail. Figure 2 An exemplary flow chart showing methods for improving device stability in some other embodiments of the present application is shown in FIG. Figure 2 , the method for improving device stability shown in the embodiment of the present application may include:

[0041] In step S201, if a wireless charging state change event is detected, the state change information corresponding to the wireless charging state change event is obtained. In the embodiment of the present application, the content of step S201 is substantially the same as that of step S102, and the present application will not repeat them here.

[0042] In step S202, if the state change information is to stop charging, the timer is started and the wireless charging state change event is monitored within the preset time. It is understandable that if the state change information is to stop charging, the terminal device is switched from the charging state to the stop charging state. In order to filter out the non-human situation of disconnection and reconnection caused by the terminal device being in a critical state, it is necessary to start the timer and further monitor the wireless charging state change event within the preset time.

[0043] In step S203, if the state change information is to start charging, the timer is not started. It can be understood that if the state change information is to start charging, the terminal device is switched from the stop charging state to the charging state. In order to solve the problem of mutual interference between wireless charging and NFC, NFC needs to be turned off at this time. Specifically, the near field communication (NFC) state can be obtained. If the near field communication state is on, the on state record is determined as the initial state of the near field communication, and the near field communication state is changed to the off state. On the contrary, if the near field communication state is off from the beginning, no processing is required.

[0044] In step S204, if a wireless charging state change event is detected within the preset time, the near field communication state is not changed. In the embodiment of the present application, the content of step S204 is substantially the same as that of step S104, and the present application will not repeat them here.

[0045] In step S205, if no wireless charging state change event is detected within the preset time, the near field communication initial state is read, and the near field communication state is changed to the near field communication initial state. It can be understood that if no wireless charging state change event is detected within the preset time, it means that there is a change in the wireless charging state within a short period of time, and there is no non-human situation of disconnection and reconnection due to the terminal device being in a critical state. It may be that the wireless charging is actively disconnected manually. The near field communication initial state, that is, the open state, can be read, so that the near field communication state change can be restored to the open state before wireless charging.

[0046] In some embodiments, if a wireless charging state change event is detected within a preset time, the near field communication state is not changed, and the timer is further reset to continue to monitor the wireless charging state change event within the preset time of the timer. Figure 3 An exemplary flow chart showing a method for improving device stability in some other embodiments of the present application is shown in FIG. Figure 3 , the method for improving device stability shown in the embodiment of the present application may include:

[0047] In step S301, the wireless charging state change event is monitored through the near field communication service. In the embodiment of the present application, the wireless charging state change event can be monitored through the near field communication (NFC) service. Among them, the NFC service generally refers to a series of applications and services provided based on the near field communication technology, such as a device pairing service.

[0048] In step S302, if a wireless charging state change event is detected, the state change information corresponding to the wireless charging state change event is obtained. In the embodiment of the present application, the content of step S302 is substantially the same as that of step S202, and the present application will not repeat them here.

[0049] In step S303, if the state change information is other states, the step of monitoring the wireless charging state change event of the terminal device is executed. In the embodiment of the present application, the state change information may also include other states, and the other states are states other than starting charging and stopping charging. In this case, the step of monitoring the wireless charging state change event of the terminal device can be continued without any other processing.

[0050] In step S304, if the state change information is to stop charging, the timer is started and the wireless charging state change event is monitored during a preset time. In the embodiment of the present application, the content of step S304 is substantially the same as that of step S102, and the present application will not repeat them here.

[0051] In step S305, if a wireless charging state change event is detected within the preset time, the near field communication state is not changed. In the embodiment of the present application, the content of step S305 is substantially the same as that of step S104, and the present application will not repeat them here.

[0052] In step S306, the timer is reset, and the step of monitoring the wireless charging state change event within the preset time of the timer is re-executed. In the embodiment of the present application, each time a wireless charging state change event is detected within the preset time, the timer can be reset so that the timer can start timing again, and the step of monitoring the wireless charging state change event within the preset time of the timer is re-executed, so that when the terminal device is in the charging state, non-human situations of disconnection and reconnection caused by the terminal device being in a critical state can be continuously filtered.

[0053] In some embodiments, the state change information includes starting charging, stopping charging and other states, which will be described below in conjunction with Figure 4 To fully and in detail describe the subsequent processing strategies for the start of charging, stop of charging and other states detected. Figure 4 An exemplary flow chart showing a method for improving device stability according to some other embodiments of the present application is shown in FIG. Figure 2 , the method for improving device stability shown in the embodiment of the present application may include:

[0054] In step S401, a wireless charging state change event of a terminal device is monitored.

[0055] In step S402, if a wireless charging state change event is detected, the state change information corresponding to the wireless charging state change event is obtained. In the embodiment of the present application, when an event causing a change in the wireless charging state is detected, it can be further determined whether wireless charging is started or stopped, or some other state. It can be understood that the state corresponding to starting wireless charging is starting charging, and the state corresponding to stopping wireless charging is stopping charging. The states other than the above two situations are other states.

[0056] In step S403, if the state change information is to start charging, the timer is not started. It can be understood that if the state change information is to start charging, the terminal device is switched from the stop charging state to the charging state. In order to solve the problem of mutual interference between wireless charging and NFC, NFC needs to be turned off at this time, and there is no need to start the timer to monitor the wireless charging state change event within the preset time. Specifically, the near field communication (NFC) status can be obtained. If the near field communication status is on, the on state record is determined as the initial state of the near field communication, and the near field communication status is changed to the off state. On the contrary, if the near field communication state is off from the beginning, no processing is required.

[0057] In step S404, if the state change information is to stop charging, the timer is started and the wireless charging state change event is monitored within the preset time. It is understandable that if the state change information is to stop charging, the terminal device is switched from the charging state to the stop charging state. In order to filter out the non-human situation of disconnection and reconnection caused by the terminal device being in a critical state, it is necessary to start the timer and further monitor the wireless charging state change event within the preset time.

[0058] Furthermore, if no wireless charging state change event is detected within the preset time, the near-field communication initial state is read, and the near-field communication state is changed to the near-field communication initial state. It can be understood that if no wireless charging state change event is detected within the preset time, it means that there is a change in the wireless charging state within a short period of time, and there is no non-human situation of disconnection and reconnection due to the terminal device being in a critical state. It may be that the wireless charging is actively disconnected manually. The near-field communication initial state, that is, the open state, can be read, so that the near-field communication state change can be restored to the open state before wireless charging.

[0059] In addition, if a wireless charging state change event is detected within the preset time, the near field communication state will not be changed. It is understandable that if a wireless charging state change event is detected within the preset time, it means that there is a change in the wireless charging state in a short period of time. There may be a non-human situation of disconnection and reconnection due to the terminal device being in a critical state. This situation needs to be filtered and the near field communication state will not be changed to avoid frequent changes in the near field communication (NFC) state due to this situation.

[0060] In step S405, if the state change information is other states, then return to the step of monitoring the wireless charging state change event of the terminal device. In the embodiment of the present application, the state change information may also include other states, and the other states are states other than starting charging and stopping charging. In this case, continue to perform the step of monitoring the wireless charging state change event of the terminal device without any other processing.

[0061] Corresponding to the aforementioned application function implementation method embodiment, the present application also provides an electronic device for executing a method for improving device stability and corresponding embodiments.

[0062] Figure 5 FIG. 5 is a block diagram showing a hardware configuration of an electronic device 500 that can implement the method for improving device stability according to an embodiment of the present application. Figure 5 As shown, the electronic device 500 may include a processor 510 and a memory 520. Figure 5 In the electronic device 500, only the components related to this embodiment are shown. Therefore, it is obvious to those skilled in the art that the electronic device 500 may also include Figure 5 The components shown in the figure are different from the common components. For example: fixed-point arithmetic units.

[0063] The electronic device 500 may correspond to a computing device having various processing functions, for example, a function for generating a neural network, training or learning a neural network, quantizing a floating-point neural network to a fixed-point neural network, or retraining a neural network. For example, the electronic device 500 may be implemented as various types of devices, such as a personal computer (PC), a server device, a mobile device, etc.

[0064] The processor 510 controls all functions of the electronic device 500. For example, the processor 510 controls all functions of the electronic device 500 by executing a program stored in the memory 520 on the electronic device 500. The processor 510 may be implemented by a central processing unit (CPU), a graphics processing unit (GPU), an application processor (AP), an artificial intelligence processor chip (IPU), etc. provided in the electronic device 500. However, the present application is not limited thereto.

[0065] In some embodiments, the processor 510 may include an input / output (I / O) unit 511 and a computing unit 512. The I / O unit 511 may be used to receive various data, such as a wireless charging state change event of a terminal device. Exemplarily, the computing unit 512 may be used to analyze the wireless charging state change event received via the I / O unit 511, and if a wireless charging state change event is detected, obtain the state change information corresponding to the wireless charging state change event; determine whether to start the timer according to the state change information and monitor the wireless charging state change event within the preset time of the timer; if a wireless charging state change event is detected within the preset time, the near field communication state is not changed. This instruction not to change the near field communication state can be output by the I / O unit 511, for example. The output data can be provided to the memory 520 for reading and use by other devices (not shown), or can be directly provided to other devices for use.

[0066] The memory 520 is hardware for storing various data processed in the electronic device 500. For example, the memory 520 can store processed data and data to be processed in the electronic device 500. The memory 520 can store data sets involved in the method process for improving device stability that has been processed or to be processed by the processor 510, such as wireless charging state change events, etc. In addition, the memory 520 can store applications, drivers, etc. to be driven by the electronic device 500. For example: the memory 520 can store various programs related to the method for improving device stability to be executed by the processor 510. The memory 520 can be a DRAM, but the present application is not limited thereto. The memory 520 can include at least one of a volatile memory or a non-volatile memory. The non-volatile memory can include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, a phase change RAM (PRAM), a magnetic RAM (MRAM), a resistive RAM (RRAM), a ferroelectric RAM (FRAM), etc. The volatile memory may include dynamic RAM (DRAM), static RAM (SRAM), synchronous DRAM (SDRAM), PRAM, MRAM, RRAM, ferroelectric RAM (FeRAM), etc. In an embodiment, the memory 520 may include at least one of a hard disk drive (HDD), a solid state drive (SSD), a high-density flash memory (CF), a secure digital (SD) card, a micro secure digital (Micro-SD) card, a mini secure digital (Mini-SD) card, an extreme digital (xD) card, caches, or a memory stick.

[0067] In summary, the specific functions implemented by the memory 520 and the processor 510 of the electronic device 500 provided in the embodiments of this specification can be explained in comparison with the aforementioned embodiments in this specification, and can achieve the technical effects of the aforementioned embodiments, and will not be repeated here.

[0068] In this embodiment, the processor 510 can be implemented in any suitable manner. For example, the processor 510 can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (such as software or firmware) executable by the (micro)processor, a logic gate, a switch, an application specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, etc.

[0069] It should also be understood that any module, unit, component, server, computer, terminal or device that executes instructions exemplified herein may include or otherwise access computer-readable media, such as storage media, computer storage media or data storage devices (removable and / or non-removable) such as disks, optical disks or tapes. Computer storage media may include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable instructions, data structures, program modules or other data.

[0070] Although multiple embodiments of the present application have been shown and described herein, it is obvious to those skilled in the art that such embodiments are provided only by way of example. Those skilled in the art can think of many changes, modifications and alternatives without departing from the thought and spirit of the present application. It should be understood that in the process of practicing the present application, various alternatives to the embodiments of the present application described herein can be adopted. The attached claims are intended to limit the scope of protection of the present application, and therefore cover equivalents or alternatives within the scope of these claims.

Claims

1. A method for improving device stability, characterized in that: include: Monitor wireless charging status change events of terminal devices; If the wireless charging state change event is detected, obtaining state change information corresponding to the wireless charging state change event; Determine whether to start a timer according to the state change information and monitor the wireless charging state change event during a preset time of the timer; If the wireless charging state change event is detected within the preset time, the near field communication state is not changed.

2. The method according to claim 1, characterized in that The state change information includes starting charging and stopping charging; wherein, determining whether to start a timer according to the state change information and monitoring the wireless charging state change event within a preset time of the timer includes: If the state change information is the stop charging, the timer is started and the wireless charging state change event is monitored during the preset time.

3. The method according to claim 2, characterized in that The step of determining whether to start a timer according to the state change information and monitoring the wireless charging state change event within a preset time of the timer includes: If the state change information is the start of charging, the timer is not started.

4. The method according to claim 3, characterized in that After not starting the timer, the method further includes: Acquiring the near field communication state; If the near field communication state is an open state, determining the open state as the near field communication initial state; The near field communication state is changed to an off state.

5. The method according to claim 4, characterized in that After starting the timer and monitoring the wireless charging state change event during the preset time, the method further includes: If the wireless charging state change event is not detected within the preset time, the near field communication initial state is read, and the near field communication state is changed to the near field communication initial state.

6. The method according to claim 2, characterized in that The state change information further includes other states, and the other states are states other than the start charging and the stop charging; wherein, after acquiring the state change information corresponding to the wireless charging state change event, the method further includes: If the state change information is the other state, the step of monitoring the wireless charging state change event of the terminal device is executed.

7. The method according to claim 1, characterized in that After the near field communication state is not changed, the method further includes: resetting the timer; The step of monitoring the wireless charging state change event within the preset time of the timer is re-executed.

8. The method according to claim 1, characterized in that The monitoring terminal device's wireless charging state change event includes: The wireless charging state change event is monitored via a near field communication service.

9. An electronic device, characterized in that: include: processor; as well as A memory having a program code for improving device stability stored therein, wherein when the program code is executed by the processor, the electronic device implements the method as claimed in any one of claims 1 to 8.

10. A non-transitory machine-readable storage medium having stored thereon a program code for improving device stability, wherein when the program code is executed by a processor, the method according to any one of claims 1 to 8 is implemented.