Wireless charging method and electronic device
By adding overcurrent protection detection during the wireless charging process of the auxiliary device, the problems of low charging efficiency and excessive power extraction caused by poor contact between the auxiliary device and the tablet are solved, thus improving the user experience.
Patent Information
- Application Number
- CN202410942496.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2026-08-04
- Estimated Expiration
- 2044-07-12
AI Technical Summary
Poor contact between the auxiliary device and the tablet can lead to low wireless charging efficiency and excessive draining of the tablet's power, affecting battery life and even causing abnormal restarts.
Overcurrent protection detection is added during the wireless charging process of auxiliary devices. By detecting the overcurrent protection signal and the power status, the charging process is controlled to prevent excessive power extraction.
It effectively prevents auxiliary devices from excessively draining the tablet's power, ensuring the tablet's battery life and user experience.
Smart Images

Figure CN120749928B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of auxiliary device charging technology, specifically to a wireless charging method and electronic device. Background Technology
[0002] With the continuous development of technology, tablet computers have become an essential electronic device in daily life. To make using tablet computers more convenient, auxiliary devices such as tablet keyboards or styluses are often used to assist in their use. Furthermore, to reduce the inconvenience of charging auxiliary devices separately, they can be wirelessly charged by the tablet when they are near it. Tablet computers typically contain magnetic sensors, and auxiliary devices also contain corresponding magnets for detection. When the auxiliary device approaches the tablet and the magnetic sensor detects a preset magnetic field strength, it is determined that the auxiliary device is in place, and wireless charging begins; otherwise, it is determined that the auxiliary device has been removed.
[0003] When the auxiliary device and the tablet make poor contact (e.g., the auxiliary device doesn't latch properly), the tablet can still wirelessly charge the auxiliary device because the magnetic sensor can detect a preset magnetic field strength, indicating that the auxiliary device is in place. However, because the electromagnetic coil in the auxiliary device is far from the electromagnetic coil in the tablet, the wireless charging efficiency for the auxiliary device is low, and it excessively drains the tablet's power, affecting its battery life. In severe cases, it can even cause the tablet to restart abnormally.
[0004] Therefore, a new solution is urgently needed to address the aforementioned problems. Summary of the Invention
[0005] This application provides a wireless charging method and an electronic device. By adding overcurrent protection detection during the charging process of the auxiliary device, charging to the auxiliary device is stopped when an abnormality occurs during the charging process of the auxiliary device. This prevents the auxiliary device from excessively draining the power of the electronic device, ensuring the battery life of the electronic device and improving the user experience.
[0006] Firstly, a wireless charging method is provided for use with electronic devices. The electronic device and an auxiliary device are wirelessly connected. When the auxiliary device is within a preset distance range of the electronic device, the auxiliary device is in a present state. When the auxiliary device is not within the preset distance range of the electronic device, the auxiliary device is in a removed state.
[0007] The wireless charging method includes: charging the auxiliary device when it is in place; stopping charging the auxiliary device when an overcurrent protection signal is detected during charging, wherein the overcurrent protection signal indicates that the charging voltage during the charging process between the electronic device and the auxiliary device is greater than a preset voltage; and charging the auxiliary device when it is still in place, its battery level is lower than a first preset level, and the electronic device's battery level exceeds a second preset level. Otherwise, charging the auxiliary device is not performed.
[0008] In this embodiment, the presence of the auxiliary device is first determined. If the auxiliary device is present, it is pre-charged. Otherwise, no charging is performed. Next, an overcurrent protection signal is detected. If an overcurrent protection signal is detected, charging of the auxiliary device is stopped to prevent overloading of the electronic device. Otherwise, charging continues for a preset duration. Then, the presence of the auxiliary device, its current battery level, and the current battery level of the electronic device are determined again. If the auxiliary device is still present, its battery level is lower than a first preset level, and the electronic device's battery level exceeds a second preset level, charging of the auxiliary device is performed. Otherwise, no charging is performed.
[0009] It should be understood that when the auxiliary device's battery level is lower than the first preset value, it means that the auxiliary device's battery level is already low and it is difficult to maintain a working state for a long time. An external power source is urgently needed to charge the auxiliary device.
[0010] It should be understood that when the battery level of an electronic device exceeds the second preset battery level, it means that the electronic device has remaining battery power to charge auxiliary devices while maintaining its own operating state.
[0011] In conjunction with the first aspect, in some implementations of the first aspect, charging the auxiliary device when the auxiliary device is in an in-situ state includes: charging the auxiliary device for a preset duration when the auxiliary device is in an in-situ state.
[0012] It should be understood that the purpose of first charging the auxiliary equipment for a preset time is to prevent the auxiliary equipment from running out of power and failing to start. After charging for the preset time, it can be ensured that the auxiliary equipment has enough power to support short-term operation.
[0013] Optionally, the preset duration can be one minute, two minutes, or three minutes, etc.
[0014] In conjunction with the first aspect, in some implementations of the first aspect, during the charging process of the auxiliary device, the following cyclic steps are included: when an overcurrent protection signal is detected during the charging process of the auxiliary device, charging of the auxiliary device is stopped. When the auxiliary device is still in place, the battery level of the auxiliary device is lower than a first preset battery level, and the battery level of the electronic device exceeds a second preset battery level, charging of the auxiliary device is performed; otherwise, charging of the auxiliary device is not performed.
[0015] It should be understood that by repeating the above steps during the charging process of the electronic device to the auxiliary device, it is possible to continuously determine whether an overcurrent protection signal is detected during the wireless charging process. When an overcurrent protection signal is detected, charging to the auxiliary device is stopped, thereby preventing the auxiliary device from excessively draining the electronic device's power and protecting the electronic device's power.
[0016] In conjunction with the first aspect, in some implementations of the first aspect, after an overcurrent protection signal is detected during the charging of the auxiliary device, the method further includes:
[0017] When an overcurrent protection signal is received after the first preset number of times, a prompt pop-up window will be displayed. The prompt pop-up window is used to remind the user of poor contact.
[0018] In this implementation, it is also possible to detect whether an overcurrent protection signal of the first preset number is received. When an overcurrent protection signal of the first preset number is received, it indicates that the auxiliary device is in a state of poor contact. A prompt pop-up window is then displayed to remind the user that the auxiliary device has poor contact and that the position of the auxiliary device needs to be adjusted as soon as possible.
[0019] In conjunction with the first aspect, in some implementations of the first aspect, when the auxiliary device is still in place, the battery level of the auxiliary device is lower than the first preset battery level, and the battery level of the electronic device exceeds the second preset battery level, after charging the auxiliary device, the method further includes: stopping charging the auxiliary device when a foreign object detection signal is received from the auxiliary device.
[0020] In this implementation, it is also possible to detect whether a foreign object detection signal is received from the auxiliary device. When a foreign object detection signal is received, it indicates that there is a foreign object between the auxiliary device and the electronic device or that there is an abnormality in their relative positions, and charging of the auxiliary device is stopped.
[0021] In conjunction with the first aspect, in some implementations of the first aspect, when a foreign object detection signal output by the auxiliary device is received, the following is included: when a foreign object detection signal of a second preset number of times is received from the auxiliary device, charging of the auxiliary device is stopped.
[0022] In this implementation, it is also possible to detect whether a foreign object detection signal of the second preset number of times is received from the auxiliary device. When a foreign object detection signal of the second preset number of times is received, it indicates that there is a foreign object between the auxiliary device and the electronic device or that there is an abnormality in their relative position, which affects the wireless charging efficiency, and then charging to the auxiliary device is stopped.
[0023] In conjunction with the first aspect, in some implementations of the first aspect, after charging the auxiliary device when the auxiliary device is in a present state, the method further includes: charging the auxiliary device when the battery level of the auxiliary device is lower than a first preset battery level and the battery level of the electronic device exceeds a second preset battery level; otherwise, not charging the auxiliary device.
[0024] In this implementation, when the electronic device is charging the auxiliary device, if the power level of the auxiliary device is detected to be lower than the first preset power level and the power level of the electronic device exceeds the second preset power level, the electronic device can charge the auxiliary device. This ensures that the electronic device can maintain its operation and that the auxiliary device can be charged by the electronic device when its power level is low.
[0025] In conjunction with the first aspect, in certain implementations of the first aspect, the electronic device and the auxiliary device are in a wireless connection state, including: the electronic device transmitting an Internet Packet Explorer message to the auxiliary device, the Internet Packet Explorer message carrying a wireless charging protocol; the electronic device receiving an acknowledgment message returned by the auxiliary device based on the Internet Packet Explorer message; and the electronic device establishing a wireless charging connection with the auxiliary device based on the wireless charging protocol.
[0026] In this implementation, when a wireless connection needs to be established between the electronic device and the auxiliary device, the electronic device first sends an Internet Packet Explorer message to the auxiliary device, and the auxiliary device returns an acknowledgment message based on the Internet Packet Explorer information. Finally, the electronic device establishes a wireless charging connection with the auxiliary device based on the acknowledgment message and the wireless charging protocol, so that the electronic device can charge the auxiliary device.
[0027] In conjunction with the first aspect, in some implementations of the first aspect, before an overcurrent protection signal is detected during the charging of the auxiliary device, the method further includes: establishing a Bluetooth connection between the electronic device and the auxiliary device; and the auxiliary device reporting its current battery level to the electronic device.
[0028] In this implementation, after the electronic device starts charging the auxiliary device, the electronic device can also establish a Bluetooth connection with the auxiliary device, so that the auxiliary device can report its current battery level to the electronic device via Bluetooth.
[0029] In a second aspect, an electronic device is provided, the electronic device comprising: one or more processors, and a memory; the memory being coupled to the one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, wherein the one or more processors invoke the computer instructions to cause the electronic device to perform the method.
[0030] It should be understood that the extensions, limitations, explanations and descriptions of the relevant content in the first aspect above also apply to the same content in the second aspect.
[0031] Thirdly, a chip system is provided, the chip system being applied to an electronic device, the chip system including one or more processors, the one or more processors being configured to invoke computer instructions to cause the electronic device to perform the method.
[0032] Fourthly, a computer-readable storage medium is provided, the computer-readable storage medium including instructions that, when executed on an electronic device, cause the electronic device to perform the method.
[0033] Fifthly, a computer program product is provided, the computer program product comprising: computer program code, which, when executed by an electronic device, causes the electronic device to perform any of the wireless charging methods in the first aspect.
[0034] It should be understood that the wireless charging method provided in this application does not require any changes to or will not affect other detection mechanisms of the electronic device, and the wireless charging method provided in this application has little impact on the original functions of the electronic device. Attached Figure Description
[0035] Figure 1 This is a schematic diagram illustrating a scenario where an electronic device wirelessly charges an auxiliary device according to an embodiment of this application.
[0036] Figure 2 This is a schematic diagram illustrating a scenario where an electronic device wirelessly charges an auxiliary device, according to another embodiment of this application.
[0037] Figure 3 This is a schematic diagram illustrating a scenario where an electronic device wirelessly charges an auxiliary device, according to another embodiment of this application.
[0038] Figure 4 This is a circuit diagram illustrating wireless charging of an auxiliary device by an electronic device according to an embodiment of this application.
[0039] Figure 5 This is a schematic diagram illustrating a scenario where the electronic device and auxiliary device provided in an embodiment of this application fail to properly engage.
[0040] Figure 6 This is a schematic diagram illustrating another scenario of poor fastening between electronic and auxiliary equipment provided in this application embodiment;
[0041] Figure 7 This is a flowchart illustrating a wireless charging method provided in an embodiment of this application;
[0042] Figure 8 This is a flowchart illustrating another wireless charging method provided in this application embodiment;
[0043] Figure 9 This is a flowchart illustrating another wireless charging method provided in this application embodiment;
[0044] Figure 10 This is a flowchart illustrating another wireless charging method provided in this application embodiment;
[0045] Figure 11 This is a flowchart illustrating another wireless charging method provided in this application embodiment;
[0046] Figure 12 This is a flowchart illustrating another wireless charging method provided in this application embodiment;
[0047] Figure 13 This is a schematic diagram of the structure of a software system for an electronic device provided in an embodiment of this application;
[0048] Figure 14 This is a hardware system for an electronic device provided in an embodiment of this application;
[0049] Figure 15 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0050] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.
[0051] 1. Overcurrent protection (COP)
[0052] In the field of electronic equipment technology, overcurrent protection refers to a circuit protection mechanism that executes corresponding protective actions (e.g., tripping a circuit breaker) when the measured current in a circuit exceeds the allowable value, thereby protecting the circuit and equipment from damage. For example, in a high-power DC regulated power supply, when the load current exceeds the rated operating range of the power supply—for instance, due to a phase-to-phase short circuit fault in the power grid, an abnormal increase in load, or a decrease in insulation level—the current will become excessive, easily leading to overheating or burnout of equipment or circuit components, and even causing serious accidents. In such cases, if the power supply is equipped with overcurrent protection, when the current exceeds the preset safety limit, the protection circuit will automatically cut off the current through a current relay to avoid damage or danger.
[0053] 2. Foreign Object Detection (FOD)
[0054] In the field of electronic device technology, foreign object detection (FOD) is a technical detection method used in wireless charging to prevent excessive temperature rise of the system due to accidental objects. Specifically, wired charging generally requires a physical connection to function, while wireless charging connects two independent objects using a magnetic field. Therefore, foreign objects may be present in the charging path. If the foreign object is a conductor such as metal, an induced electromotive force will inevitably be generated in the alternating magnetic field, forming an induced current inside the conductor. The conductor then acts as a resistor carrying this induced current, generating high heat, affecting wireless charging efficiency, and potentially causing damage. Therefore, FOD technology is needed to detect foreign objects during the wireless charging process to protect the system.
[0055] 3. Digital ping
[0056] In the field of electronic equipment technology, digital ping refers to a network connectivity testing function. By using digital ping, one can check whether a device at a specified address is reachable and test the connectivity of the link. Digital ping is based on the Internet Control Message Protocol (ICMP): after the source sends an ICMP echo request (ECHO-REQUEST) message to the destination, it determines the reachability of the destination by whether it receives an ICMP echo reply (ECHO-REPLY) message. For reachable destinations, the link quality is further determined by the number of messages sent, the number of response messages received, and the round-trip time of the digital ping process.
[0057] The above is a brief introduction to the terms used in the embodiments of this application, and will not be repeated below.
[0058] The following is combined Figures 1 to 3This section provides a brief overview of specific application scenarios for wireless charging of auxiliary devices by electronic devices.
[0059] For example, in this embodiment of the application, when the auxiliary device 20 is within a preset distance range of the electronic device 10, for example, when the auxiliary device 20 is embedded in a preset position of the electronic device 10, the electronic device 10 can determine that the auxiliary device 20 is in place, and thus the electronic device 10 can wirelessly charge the auxiliary device 20. When the auxiliary device 20 is not within the preset distance range of the electronic device 10, for example, when the auxiliary device 20 is far away from the electronic device 10, the electronic device 10 can determine that the auxiliary device 20 is removed, and thus the electronic device 10 stops wirelessly charging the auxiliary device 20.
[0060] This application does not specifically limit the type of electronic device 10. In some embodiments, electronic device 10 may be a mobile phone, wearable device (e.g., smart bracelet, smartwatch, earphone, etc.), tablet computer, laptop computer, handheld computer, ultra-mobile personal computer (UMPC), cellular phone, personal digital assistant (PDA), augmented reality (AR) / virtual reality (VR) device, or other Internet of Things (IoT) device, and may also be a television, large screen, printer, projector, etc. This application also does not specifically limit the auxiliary device 20. In some embodiments, auxiliary device 20 may be a tablet keyboard, stylus, etc.
[0061] Figure 1 This is a schematic diagram illustrating a scenario in which an electronic device, according to an embodiment of this application, wirelessly charges an auxiliary device.
[0062] For example, the electronic device 10 (e.g., a tablet computer) may include a magnetic sensor, an electromagnetic transmitting coil, and a magnet, while the auxiliary device 20 (e.g., a first tablet keyboard) may include a magnet and an electromagnetic receiving coil. When the auxiliary device 20 approaches or is attracted to the electronic device 10, and the magnetic sensor within the electronic device 10 detects a preset magnetic field strength, the electronic device 10 can determine that the auxiliary device 20 is in place and thus begin wirelessly charging the auxiliary device 20. Figure 1 As shown in (a) in the figure.
[0063] When the auxiliary device 20 is far away from the electronic device 10 and the magnetic sensing device inside the electronic device 10 does not detect the preset magnetic field strength, the electronic device 10 can determine that the auxiliary device 20 is in a removed state, and thus stop wirelessly charging the auxiliary device 20. Figure 1 As shown in (b) of the diagram.
[0064] Figure 2 This is a schematic diagram illustrating a scenario where an electronic device wirelessly charges an auxiliary device, according to another embodiment of this application.
[0065] For example, in this embodiment of the application, the electronic device 10 (e.g., a tablet computer) may be equipped with a magnetic sensor and an electromagnetic transmitting coil, and the auxiliary device 20 (e.g., a second tablet keyboard) may be equipped with a magnet and an electromagnetic receiving coil. When the auxiliary device 20 approaches the electronic device 10 and the magnetic sensor in the electronic device 10 detects a preset magnetic field strength, the electronic device 10 can determine that the auxiliary device 20 is in place, and thus begin wireless charging of the auxiliary device 20, such as... Figure 2 As shown in (a) in the figure.
[0066] When the auxiliary device 20 is far away from the electronic device 10 and the magnetic sensing device inside the electronic device 10 does not detect the preset magnetic field strength, the electronic device 10 can determine that the auxiliary device 20 is in a removed state, and thus stop wirelessly charging the auxiliary device 20. Figure 2 As shown in (b) of the diagram.
[0067] Figure 3 This is a schematic diagram illustrating a scenario where an electronic device wirelessly charges an auxiliary device, according to another embodiment of this application.
[0068] For example, in this embodiment of the application, the electronic device 10 (e.g., a tablet computer) may be equipped with a magnetic sensor and an electromagnetic transmitting coil, and the auxiliary device 20 (e.g., a stylus) may be equipped with a magnet and an electromagnetic receiving coil. When the auxiliary device 20 approaches the electronic device 10 and the magnetic sensor in the electronic device 10 detects a preset magnetic field strength, the electronic device 10 can determine that the auxiliary device 20 is in place, and thus begin wireless charging of the auxiliary device 20. Figure 3 As shown in (a) in the figure.
[0069] When the auxiliary device 20 is far away from the electronic device 10 and the magnetic sensing device inside the electronic device 10 does not detect the preset magnetic field strength, the electronic device 10 can determine that the auxiliary device 20 is in a removed state, and thus stop wirelessly charging the auxiliary device 20. Figure 3 As shown in (b) of the diagram.
[0070] For ease of understanding, the following embodiments use a tablet computer as the electronic device 10 and a tablet keyboard as the auxiliary device 20 as examples for illustrative purposes.
[0071] The following is combined Figure 4 This paper provides a brief introduction to the circuit structure for wireless charging of auxiliary devices by electronic devices.
[0072] Figure 4 This is a circuit diagram illustrating how an electronic device wirelessly charges an auxiliary device according to an embodiment of this application.
[0073] like Figure 4 As shown, exemplarily, in this embodiment of the application, the electronic device 10 includes a boost circuit 101, a wireless charging transmitter chip 102, and a transmitter coil 103. The wireless charging transmitter chip 102 is connected to both the boost circuit 101 and the resonant transmitter coil 103. The boost circuit 101 is used to boost the electrical energy stored in the battery of the electronic device 10 and send it to the wireless charging transmitter chip 102. For example, the boost circuit 101 can be a boost circuit. The wireless charging transmitter chip 102 is used to transmit the boosted voltage to the resonant transmitter coil 103. For example, the wireless charging transmitter chip 102 can be a wireless charging TX IC. The resonant transmitter coil 103 is used to convert the boosted voltage into magnetic field energy.
[0074] The auxiliary device 20 includes a resonant receiving coil 201, a wireless charging receiving chip 202, and an auxiliary device control system 203. The wireless charging receiving chip 202 is connected to both the resonant receiving coil 201 and the auxiliary device control system 203. The resonant receiving coil 201 converts the magnetic field energy generated by the resonant transmitting coil 103 into voltage. The wireless charging receiving chip 202 receives the voltage and transmits it to the auxiliary device control system 203, which then performs corresponding operations based on the voltage.
[0075] The following is combined Figures 5 to 6 This article provides a brief overview of the issue of poor engagement during wireless charging of auxiliary devices by electronic devices.
[0076] Figure 5 This is a schematic diagram illustrating a scenario where the electronic device and auxiliary device provided in this application fail to properly engage.
[0077] like Figure 5 As shown, exemplarily, in this embodiment of the application, the electronic device 10 is a tablet computer, and the auxiliary device 20 is a tablet keyboard capable of wireless charging. The auxiliary device 20 includes a keyboard module 204 and a wireless charging module 205. The keyboard module 204 is connected to the wireless charging module 205. The keyboard module 204 is used to input information to the electronic device 10 after establishing a wireless connection with the electronic device 10. The wireless charging module 205 is used to receive the electrical energy wirelessly transmitted by the electronic device 10 during the wireless charging process.
[0078] It should be understood that when the electronic device 10 wirelessly charges the auxiliary device 20, the electronic device 10 can be magnetically attached to the wireless charging module 205.
[0079] For example, the electronic device 10 is generally equipped with a magnetic sensing device and a magnet, and the auxiliary device 20 is also equipped with a magnet for detection. When the auxiliary device 20 is close to the electronic device 10 and the magnetic sensing device detects a preset magnetic field strength, it is determined that the auxiliary device 20 is in place and wireless charging is performed on the auxiliary device 20; otherwise, it is determined that the auxiliary device 20 is removed and charging of the auxiliary device 20 stops.
[0080] For example, the electronic device 10 may include a body 100 and a shooting component 104. The electronic device 10 generally has a protruding shooting component 104 on the side away from the display screen. Therefore, the wireless charging module 205 can generally be provided with a groove at the corresponding position to accommodate the shooting component 104.
[0081] However, when the electronic device 10 and the auxiliary device 20 are not properly engaged, for example, if the camera component 104 of the electronic device 10 is not embedded in the corresponding groove of the wireless charging module 205, the magnetic sensor inside the electronic device 10 can detect the preset magnetic field strength and determine that the auxiliary device 20 is in place, thus wireless charging will still be performed on the auxiliary device 20. However, because the resonant electromagnetic coil inside the auxiliary device 20 is far from the resonant electromagnetic coil inside the electronic device 10, the wireless charging efficiency of the auxiliary device 20 is low, and it will over-drain the power of the electronic device 10, affecting the battery life of the electronic device 10. In severe cases, over-draining the power can also cause the electronic device 10 to restart abnormally, resulting in a poor user experience.
[0082] Figure 6 This is a schematic diagram illustrating another scenario where the electronic device and auxiliary device provided in this application fail to properly engage.
[0083] like Figure 6 As shown, exemplarily, in this embodiment of the application, the electronic device 10 is a tablet computer, and the auxiliary device 20 is another tablet keyboard capable of wireless charging. The auxiliary device 20 includes a keyboard module 204, a wireless charging module 205, and multiple protruding protective corners 206. The keyboard module 204 is connected to the wireless charging module 205 and is used to input information to the electronic device 10 after establishing a wireless connection with it. The wireless charging module 205 is used to receive power wirelessly transmitted by the electronic device 10 during the wireless charging process. The protective corners 206 are used to fix and protect the electronic device 10. When the electronic device 10 needs to wirelessly charge the auxiliary device 20, the auxiliary device 20 can be clipped into the multiple protective corners 206.
[0084] For example, the electronic device 10 is generally equipped with a magnetic sensing device and a magnet, and the auxiliary device 20 is also equipped with a magnet for detection. When the auxiliary device 20 is close to the electronic device 10 and the magnetic sensing device detects a preset magnetic field strength, it is determined that the auxiliary device 20 is in place and wireless charging is performed on the auxiliary device 20; otherwise, it is determined that the auxiliary device 20 is removed and charging of the auxiliary device 20 stops.
[0085] For example, the electronic device 10 may include a body 100 and a camera component 104. The body 100 is generally provided with a protruding camera component 104 on the side away from the display screen. Therefore, the wireless charging module 205 may generally be provided with a groove at the corresponding position to accommodate the camera component 104.
[0086] However, when the electronic device 10 and the auxiliary device 20 do not engage properly, for example, if the electronic device 10 is not fully engaged in the protective corner 206, the magnetic sensor inside the electronic device 10 can detect the preset magnetic field strength and determine that the auxiliary device 20 is in place, thus wireless charging will still be performed on the auxiliary device 20. However, because the resonant electromagnetic coil inside the auxiliary device 20 is far from the resonant electromagnetic coil inside the electronic device 10, the wireless charging efficiency for the auxiliary device 20 is low, and it will over-drain the power of the electronic device 10, affecting the battery life of the electronic device 10. In severe cases, over-draining the power can even cause the electronic device 10 to restart abnormally, resulting in a poor user experience.
[0087] In view of this, in order to solve the problem of poor engagement between the electronic device 10 and the auxiliary device 20 in the embodiments of this application, which leads to excessive draining of power from the electronic device 10, this application provides a wireless charging method. By adding overcurrent protection detection during the wireless charging process of the auxiliary device 20, charging to the auxiliary device 20 is stopped when an abnormality occurs during the charging process of the auxiliary device 20, so that the auxiliary device 20 will not excessively drain the power from the electronic device 10, ensuring the battery life of the electronic device 10 and improving the user experience.
[0088] Furthermore, the wireless charging method provided in this application does not require any changes and will not affect the normal application programs of electronic devices. The wireless charging method provided in this application has minimal impact on the original functions of electronic devices.
[0089] The following is combined Figures 7 to 12 The following section provides a detailed introduction to the scheme of adding overcurrent protection detection during the charging process of electronic device 10 and auxiliary device 20.
[0090] Figure 7 This is a flowchart illustrating a wireless charging method provided in an embodiment of this application.
[0091] like Figure 7 As shown, exemplarily, in one embodiment provided in this application, the electronic device 10 and the auxiliary device 20 are in a wireless connection state. When the auxiliary device 20 (e.g., a tablet keyboard or stylus) is attached to or near the electronic device 10 (e.g., a tablet computer), the charging method 700 of the auxiliary device 20 may include the following steps:
[0092] S701. The electronic device detects whether the auxiliary device is in a present state. When the auxiliary device is in a present state, the electronic device charges the auxiliary device for a preset duration. Otherwise, the electronic device determines that the auxiliary device is in a removed state.
[0093] It should be noted that electronic devices generally use internal magnetic sensors to determine whether the magnet inside the auxiliary device is in place. When the magnet is within a preset distance range of the magnetic sensor, the auxiliary device is confirmed to be in place. Conversely, when the magnet is far away from the preset distance range, the auxiliary device is confirmed to be in a removed state.
[0094] It should be noted that the preset duration can be a short pre-set time period, such as one minute, two minutes, or three minutes. This is mainly used for electronic devices to charge auxiliary devices before they report their power levels, preventing auxiliary devices from failing to start due to low power levels before reporting their power levels.
[0095] S702. During the charging process of the electronic device to the auxiliary device, the electronic device detects whether it receives an overcurrent protection signal (i.e., an OCP signal). If an overcurrent protection signal is received, the electronic device stops charging the auxiliary device. Otherwise, it continues to charge the auxiliary device for a preset time.
[0096] It should be understood that, to prevent the auxiliary device from over-drawing the electrical energy stored in the electronic device during wireless charging, an overcurrent protection detection voltage can be set within the electronic device. When the charging voltage of the electronic device during wireless charging exceeds a preset voltage, an overcurrent protection signal will be generated, causing the electronic device to stop charging the auxiliary device and protect the electrical energy stored in the electronic device. The preset voltage can be the rated voltage of the electronic device during wireless charging. When the voltage of the electronic device during wireless charging does not exceed the preset voltage, the charging process will continue for a preset duration until the preset charging time for the auxiliary device is completed.
[0097] S703. The electronic device checks again whether the auxiliary device is in place. If the auxiliary device is in place, it proceeds to the next step. Otherwise, it determines that the auxiliary device is in a removed state.
[0098] It should be noted that the determination of the auxiliary equipment's in-situ status mainly addresses situations where the auxiliary or electronic equipment may shift during use. For example, if the auxiliary or electronic equipment shifts, changing its misalignment from a state of poor engagement to a state of proper engagement or disengagement, different charging steps can be performed accordingly.
[0099] S704. The electronic device detects whether the auxiliary device's battery level is lower than a first preset battery level. If the auxiliary device's battery level is lower than the first preset battery level, the next step is performed. Otherwise, charging the auxiliary device is stopped.
[0100] It should be understood that the first preset battery level can be the recharging threshold for the auxiliary device. For example, the minimum charging level, 10% or 15%, etc. When the auxiliary device's battery level is lower than the recharging threshold, it means that the auxiliary device's battery level is low and it needs to be charged by the electronic device. Alternatively, when the auxiliary device's battery level is not lower than the recharging threshold, it means that the auxiliary device's battery level is high and it does not need to be charged by the electronic device for the time being.
[0101] S705. The electronic device detects whether its battery level exceeds a second preset level. If the battery level exceeds the second preset level, it charges the auxiliary device. Otherwise, it stops charging the auxiliary device.
[0102] It should be understood that before an electronic device charges an auxiliary device, its own battery level should be checked to ensure it exceeds a second preset limit, such as 50% or 60%. In other words, the electronic device must first ensure its own battery level is sufficient to maintain normal operation. Only if there is remaining battery power can it charge the auxiliary device; otherwise, charging should be stopped.
[0103] Figure 8 This is a flowchart illustrating another wireless charging method provided in this application embodiment.
[0104] like Figure 8 As shown, exemplarily, in one embodiment provided in this application, a charging method 700 for an auxiliary device 20 is provided. It should be noted that the embodiments of this application are similar to... Figure 7 The difference between the charging method 700 for the auxiliary device 20 shown is:
[0105] During the charging process of the auxiliary device, the following steps are repeated:
[0106] S702. During the charging process of the auxiliary device, the electronic device detects whether it receives an overcurrent protection signal (i.e., an OCP signal). If an overcurrent protection signal is received, the electronic device stops charging the auxiliary device. Otherwise, it continues to charge the auxiliary device for a preset time.
[0107] It should be understood that, to prevent the auxiliary device from over-drawing the electrical energy stored in the electronic device during wireless charging, an overcurrent protection detection voltage can be set within the electronic device. When the charging voltage of the electronic device during wireless charging exceeds a preset voltage, an overcurrent protection signal will be generated, causing the electronic device to stop charging the auxiliary device and protect the electrical energy stored in the electronic device. The preset voltage can be the rated voltage of the electronic device during wireless charging. Conversely, when the voltage of the electronic device during wireless charging does not exceed the preset voltage, the charging process will continue for a preset duration until the preset charging time for the auxiliary device is completed.
[0108] S703. The electronic device checks again whether the auxiliary device is in place. If the auxiliary device is in place, it proceeds to the next step. Otherwise, it determines that the auxiliary device is in a removed state.
[0109] It should be noted that the determination of the auxiliary equipment's in-situ status mainly addresses situations where the auxiliary or electronic equipment may shift during use. For example, if the auxiliary or electronic equipment shifts, changing its misalignment from a state of poor engagement to a state of proper engagement or disengagement, different charging steps can be performed accordingly.
[0110] S704. The electronic device detects whether the auxiliary device's battery level is lower than a first preset battery level. If the auxiliary device's battery level is lower than the first preset battery level, the next step is performed. Otherwise, charging the auxiliary device is stopped.
[0111] It should be understood that the first preset battery level can be the recharging threshold for the auxiliary device. For example, the minimum charging level, 10% or 15%, etc. When the auxiliary device's battery level is lower than the recharging threshold, it means that the auxiliary device's battery level is low and it needs to be charged by the electronic device. Alternatively, when the auxiliary device's battery level is not lower than the recharging threshold, it means that the auxiliary device's battery level is high and it does not need to be charged by the electronic device for the time being.
[0112] S705. The electronic device detects whether its battery level exceeds a second preset level. If the battery level exceeds the second preset level, it charges the auxiliary device. Otherwise, it stops charging the auxiliary device.
[0113] It should be understood that before an electronic device charges an auxiliary device, its own battery level should be checked to ensure it exceeds a second preset limit, such as 50% or 60%. In other words, the electronic device must first ensure its own battery level is sufficient to maintain normal operation. Only if there is remaining battery power can it charge the auxiliary device; otherwise, charging should be stopped.
[0114] It should be understood that, in the embodiments of this application, other specific implementations of the charging method 700 for the auxiliary device 20 can be referred to the above description. Figure 7 The details of its introduction will not be repeated here.
[0115] Figure 9 This is a flowchart illustrating another wireless charging method provided in this application embodiment.
[0116] like Figure 9 As shown, exemplarily, in one embodiment provided in this application, the electronic device 10 and the auxiliary device 20 are in a wireless connection state. When the auxiliary device 20 (e.g., a tablet keyboard or stylus) is attached to or near the electronic device 10 (e.g., a tablet computer), the charging method 700 of the auxiliary device 20 may include the following steps:
[0117] S701. The electronic device detects whether the auxiliary device is in a present state. When the auxiliary device is in a present state, the electronic device charges the auxiliary device for a preset duration. Otherwise, the electronic device determines that the auxiliary device is in a removed state.
[0118] It should be noted that electronic devices generally use internal magnetic sensors to determine whether the magnet inside the auxiliary device is in place. When the magnet is within a preset distance range of the magnetic sensor, the auxiliary device is confirmed to be in place. Conversely, when the magnet is far away from the preset distance range, the auxiliary device is confirmed to be in a removed state.
[0119] It should be noted that the preset duration can be a short pre-set time period, such as one minute, two minutes, or three minutes. This is mainly used for electronic devices to charge auxiliary devices before they report their power levels, preventing auxiliary devices from failing to start due to low power levels before reporting their power levels.
[0120] S702. During the charging process of the electronic device to the auxiliary device, the electronic device detects whether it receives an overcurrent protection signal (i.e., an OCP signal). If an overcurrent protection signal is received, the electronic device stops charging the auxiliary device. Otherwise, it continues to charge the auxiliary device for a preset time.
[0121] It should be understood that, to prevent the auxiliary device from over-drawing the electrical energy stored in the electronic device during wireless charging, an overcurrent protection detection voltage can be set within the electronic device. When the charging voltage of the electronic device during wireless charging exceeds a preset voltage, an overcurrent protection signal will be generated, causing the electronic device to stop charging the auxiliary device and protect the electrical energy stored within it. The preset voltage can be the rated voltage of the electronic device during wireless charging. When the charging voltage of the electronic device during wireless charging is not greater than the preset voltage, the charging process will continue for a preset duration until the preset charging time for the auxiliary device is completed.
[0122] S703. The electronic device checks again whether the auxiliary device is in place. If the auxiliary device is in place, it proceeds to the next step. Otherwise, it determines that the auxiliary device is in a removed state.
[0123] It should be noted that the determination of the auxiliary equipment's in-situ status mainly addresses situations where the auxiliary or electronic equipment may shift during use. For example, if the auxiliary or electronic equipment shifts, changing its misalignment from a state of poor engagement to a state of proper engagement or disengagement, different charging steps can be performed accordingly.
[0124] S704. The electronic device detects whether the auxiliary device's battery level is lower than a first preset battery level. If the auxiliary device's battery level is lower than the first preset battery level, the next step is performed. Otherwise, charging the auxiliary device is stopped.
[0125] It should be understood that the first preset battery level can be the recharging threshold for the auxiliary device, such as the minimum charging level, 10% or 15%, etc. When the auxiliary device's battery level is lower than the recharging threshold, it means that the auxiliary device's battery level is low and it needs to be charged by the electronic device. Alternatively, when the auxiliary device's battery level is not lower than the recharging threshold, it means that the auxiliary device's battery level is high and it does not need to be charged by the electronic device for the time being.
[0126] S705. The electronic device detects whether its battery level exceeds a second preset level. If the battery level exceeds the second preset level, it charges the auxiliary device. Otherwise, it stops charging the auxiliary device.
[0127] It should be understood that before an electronic device charges an auxiliary device, its own battery level should be checked to ensure it exceeds a second preset limit, such as 50% or 60%. In other words, the electronic device must first ensure its own battery level is sufficient to maintain normal operation. Only if there is remaining battery power can it charge the auxiliary device; otherwise, charging should be stopped.
[0128] S706. The electronic device detects whether it has received an overcurrent protection signal for a first preset number of times. If the electronic device receives an overcurrent protection signal for the first preset number of times, a prompt pop-up window is displayed. Otherwise, proceed to the next step.
[0129] It should be noted that when the electronic device receives the overcurrent protection signal for the first preset number of times, it indicates that the auxiliary device and the electronic device are in a state of poor engagement. The electronic device will display a prompt pop-up window to remind the user that the auxiliary device and the electronic device are not properly engaged and that the engagement status of the auxiliary device and the electronic device needs to be adjusted in time to prevent the auxiliary device from excessively drawing the electrical energy stored in the electronic device.
[0130] For example, a poor contact alert signal can be a pop-up notification event.
[0131] For example, the first preset number of times can be M times. Where M is a positive integer ≥ 1.
[0132] It should be understood that the electronic device can also detect whether a first preset number of in-situ checks have been performed, or simultaneously detect whether a first preset number of overcurrent protection signals have been received and whether a first preset number of in-situ checks have been performed. If so, a poor contact warning signal is output. Otherwise, the next step is performed.
[0133] Figure 10 This is a flowchart illustrating another wireless charging method provided in this application embodiment.
[0134] like Figure 10 As shown, exemplarily, in one embodiment provided in this application, the electronic device 10 and the auxiliary device 20 are in a wireless connection state. When the auxiliary device 20 (e.g., a tablet keyboard or stylus) is attached to or near the electronic device 10 (e.g., a tablet computer), the charging method 700 of the auxiliary device 20 may include the following steps:
[0135] S701. The electronic device detects whether the auxiliary device is in a present state. When the auxiliary device is in a present state, the electronic device charges the auxiliary device for a preset duration. Otherwise, the electronic device determines that the auxiliary device is in a removed state.
[0136] It should be noted that electronic devices generally use internal magnetic sensors to determine whether the magnet inside the auxiliary device is in place. When the magnet is within a preset distance range of the magnetic sensor, the auxiliary device is confirmed to be in place. Conversely, when the magnet is far away from the preset distance range, the auxiliary device is confirmed to be in a removed state.
[0137] It should be noted that the preset duration can be a short pre-set time period, such as one minute, two minutes, or three minutes. This is mainly used for electronic devices to charge auxiliary devices before they report their power levels, preventing auxiliary devices from failing to start due to low power levels before reporting their power levels.
[0138] S702. During the charging process of the electronic device to the auxiliary device, the electronic device detects whether it receives an overcurrent protection signal (i.e., an OCP signal). If an overcurrent protection signal is received, the electronic device stops charging the auxiliary device. Otherwise, it continues to charge the auxiliary device for a preset time.
[0139] It should be understood that, to prevent the auxiliary device from over-drawing the electrical energy stored in the electronic device during wireless charging, an overcurrent protection detection voltage can be set within the electronic device. When the charging voltage of the electronic device during wireless charging exceeds a preset voltage, an overcurrent protection signal will be generated, causing the electronic device to stop charging the auxiliary device and protect the electrical energy stored within it. The preset voltage can be the rated voltage of the electronic device during wireless charging. When the charging voltage of the electronic device during wireless charging does not exceed the preset voltage, the charging process will continue for a preset duration until the preset charging time for the auxiliary device is completed.
[0140] S703. The electronic device checks again whether the auxiliary device is in place. If the auxiliary device is in place, it proceeds to the next step. Otherwise, it determines that the auxiliary device is in a removed state.
[0141] It should be noted that the determination of the auxiliary equipment's in-situ status mainly addresses situations where the auxiliary or electronic equipment may shift during use. For example, if the auxiliary or electronic equipment shifts, changing its misalignment from a state of poor engagement to a state of proper engagement or disengagement, different charging steps can be performed accordingly.
[0142] S704. The electronic device detects whether the auxiliary device's battery level is lower than a first preset battery level. If the auxiliary device's battery level is lower than the first preset battery level, the next step is performed. Otherwise, charging the auxiliary device is stopped.
[0143] It should be understood that the first preset battery level can be the recharging threshold for the auxiliary device, such as the minimum charging level, 10% or 15%, etc. When the auxiliary device's battery level is lower than the recharging threshold, it means that the auxiliary device's battery level is low and it needs to be charged by the electronic device. Alternatively, when the auxiliary device's battery level is not lower than the recharging threshold, it means that the auxiliary device's battery level is high and it does not need to be charged by the electronic device for the time being.
[0144] S705. The electronic device detects whether its battery level exceeds a second preset level. If the battery level exceeds the second preset level, it charges the auxiliary device. Otherwise, it stops charging the auxiliary device.
[0145] It should be understood that before an electronic device charges an auxiliary device, it should also check whether the electronic device's battery level exceeds a second preset level. That is, it should check whether the electronic device's current battery level is higher than the second preset value, for example, whether the electronic device's battery level exceeds 50% or 60%. In other words, the electronic device should first ensure that its own battery level is sufficient to maintain normal operation. Only if there is still battery power remaining can it charge the auxiliary device; otherwise, charging the auxiliary device should be stopped.
[0146] S707. The electronic device detects whether it has received a foreign object detection signal (FOD signal) for a second preset number of times. If it receives the foreign object detection signal for a second preset number of times, the electronic device stops charging the auxiliary device. Otherwise, it proceeds to the next step.
[0147] It should be noted that the foreign object detection signal is used to detect overload and overheating situations that occur during the charging process of electronic devices to auxiliary devices. The trigger voltage of the foreign object detection signal is generally lower than the trigger voltage of the overcurrent protection signal. Therefore, by using the foreign object detection signal, smaller overload voltages can be detected.
[0148] For example, when the electronic device receives a foreign object detection signal for a second preset number of times, it indicates that the auxiliary device and the electronic device are in a state of poor engagement. The electronic device stops charging the auxiliary device to prevent the poor engagement between the auxiliary device and the electronic device from excessively draining the electrical energy stored in the electronic device.
[0149] For example, the second preset number of times can be N times. Where N is a positive integer ≥ 1.
[0150] Figure 11 This is a flowchart illustrating another wireless charging method provided in this application embodiment.
[0151] like Figure 11 As shown, by way of example, in one embodiment provided in this application, a charging method 700 for an auxiliary device 20 is provided.
[0152] It should be noted that the embodiments of this application are different from those of the previous ones. Figure 7 The difference between the charging method 700 for the auxiliary device 20 shown is:
[0153] Charging auxiliary devices for a preset duration includes:
[0154] S7011. Establish a wireless connection between electronic devices and auxiliary devices.
[0155] It should be understood that the wireless connection in the embodiments of this application generally refers to the communication connection between wireless charging protocols. Exemplarily, it may include the following steps:
[0156] S70111. Electronic devices transmit Internet Packet Explorer messages (i.e., digital ping messages) to auxiliary devices.
[0157] It should be noted that the digital ping (Packet Internet Groper) message carries the wireless charging protocol.
[0158] For example, in the embodiments of this application, when the electronic device finds the corresponding auxiliary device, for example, it can find the auxiliary device to be connected from multiple selectable auxiliary devices in the device connection interface, and first send a digital ping message to the auxiliary device in anticipation of connection.
[0159] S70112. The electronic device receives an acknowledgment message returned by the auxiliary device based on the Digital Internet Packet Explorer message.
[0160] It should be noted that when the auxiliary device receives a digital ping message sent by the electronic device, it can generate an acknowledgment message based on the digital ping message and send it to the electronic device.
[0161] S70113. Electronic devices establish a wireless charging connection with auxiliary devices based on a wireless charging protocol.
[0162] It should be understood that when an electronic device receives a confirmation message from an auxiliary device, it can establish a wireless charging connection with the auxiliary device based on the wireless charging protocol.
[0163] For example, in this embodiment of the application, after the auxiliary device establishes a wireless charging connection with the electronic device, a pop-up window can be displayed on the screen of the electronic device.
[0164] S7012, Preset charging time for electronic devices before reporting power levels to auxiliary devices.
[0165] It should be noted that, in this embodiment of the application, in order to prevent the auxiliary device from having too low a power level or being unable to start before the power level is reported, the auxiliary device can be temporarily charged for a preset duration.
[0166] It should be understood that the preset charging time is generally short, such as one minute, two minutes, or three minutes.
[0167] Exemplary examples in this application embodiment may also include:
[0168] S7013. A Bluetooth connection is established between the electronic device and the auxiliary device so that the auxiliary device can report the current battery level to the electronic device.
[0169] It should be noted that once a wireless charging connection is established between the electronic device and the auxiliary device, a Bluetooth connection can be established. This Bluetooth connection allows the auxiliary device to report its current battery level to the electronic device, enabling the electronic device to determine the subsequent charging plan.
[0170] It should be understood that, in the embodiments of this application, other specific implementations of the charging method 700 for the auxiliary device 20 can be referred to the above description. Figure 7 The details of its introduction will not be repeated here.
[0171] Figure 12 This is a flowchart illustrating another wireless charging method provided in this application embodiment.
[0172] like Figure 12 As shown, by way of example, in one embodiment provided in this application, a charging method 700 for an auxiliary device 20 is provided.
[0173] It should be noted that the embodiments of this application are different from those of the previous ones. Figure 7 The difference between the charging method 700 for the auxiliary device 20 shown is:
[0174] When the auxiliary device is in the in-situ state, after the electronic device charges the auxiliary device for a preset duration in S701, the following steps may also be included:
[0175] S704. The electronic device detects whether the auxiliary device's battery level is lower than a first preset battery level. If the auxiliary device's battery level is lower than the first preset battery level, the next step is performed. Otherwise, charging the auxiliary device is stopped.
[0176] It should be understood that the first preset battery level can be the recharging threshold for the auxiliary device, such as the minimum charging level, 10% or 15%, etc. When the auxiliary device's battery level is lower than the recharging threshold, it means that the auxiliary device's battery level is low and it needs to be charged by the electronic device. Alternatively, when the auxiliary device's battery level is not lower than the recharging threshold, it means that the auxiliary device's battery level is high and it does not need to be charged by the electronic device for the time being.
[0177] S705. The electronic device detects whether its battery level exceeds a second preset level. If the battery level exceeds the second preset level, it charges the auxiliary device. Otherwise, it stops charging the auxiliary device.
[0178] It should be understood that before an electronic device charges an auxiliary device, it should also check whether the electronic device's battery level exceeds a second preset level. That is, it should check whether the electronic device's current battery level is higher than the second preset value, for example, whether the electronic device's battery level exceeds 50% or 60%. In other words, the electronic device should first ensure that its own battery level is sufficient to maintain normal operation. Only if there is still battery power remaining can it charge the auxiliary device; otherwise, charging the auxiliary device should be stopped.
[0179] It should be understood that, in the embodiments of this application, other specific implementations of the charging method 700 for the auxiliary device 20 can be referred to the above description. Figure 7 The details of its introduction will not be repeated here.
[0180] The above text combined Figures 1 to 12 This application describes several wireless charging methods and applicable scenarios in various embodiments provided in this application. The following will combine... Figures 13 to 15This application describes in detail the software system, hardware system, and chip system of the electronic device to which this application applies. It should be understood that the software system, hardware system, and chip system in the embodiments of this application can execute the various methods described in the foregoing embodiments of this application; that is, the specific working processes of the various products described below can be referred to the corresponding processes in the foregoing method embodiments.
[0181] Figure 13 This is a schematic diagram of the structure of a software system for an electronic device provided in an embodiment of this application.
[0182] This electronic device can be Figures 1 to 6 The electronic device shown. (As shown in the image) Figure 13 As shown, this software system can be divided into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the software system is divided into five layers, from top to bottom: application layer, application framework layer, system library layer, hardware abstraction layer (HAL), and kernel layer.
[0183] The application layer can include a series of application packages. For example, the application layer can include applications such as a camera app and a gallery app (applications can be simply referred to as apps).
[0184] In this embodiment, the application layer may further include a context-aware module, a business logic processing module, and a business presentation module. The context-aware module, business logic processing module, and business presentation module may be independent apps, or they may be integrated into different apps, or they may be integrated into the same app; this application does not impose any limitations.
[0185] The context-aware module, which operates either residently or in low-power mode, has the ability to perceive external facts or the environment. It can detect relevant events and obtain event statuses from other applications at the application layer, application framework layer, system layer, or kernel layer via an application programming interface (API). Examples of its functions include detecting Bluetooth connections, network connections, monitoring user SMS messages, and customizing timers. In this embodiment, the main function of the context-aware module is to monitor whether an auxiliary device (e.g., a tablet keyboard or stylus) is magnetically attached to the electronic device, whether the auxiliary device is removed, and whether an interrupt event occurs indicating that charging of the auxiliary device has stopped. The context-aware module can then notify the business logic processing module of the monitored information.
[0186] The business logic processing module has business logic processing capabilities. It is used to perform data processing or logical judgment based on the information monitored by the context awareness module and preset logic algorithms to determine the wireless charging status of the auxiliary device. For example, when the auxiliary device is attached to the electronic device, the business logic processing module determines whether the auxiliary device is in place, whether the auxiliary device has established a wireless charging connection with the electronic device, and starts wireless charging of the auxiliary device, and also determines whether an overcharge protection signal is detected.
[0187] The specific judgment process will be described in detail below.
[0188] The business presentation module is used to display pop-up messages on the screen of electronic devices, based on instructions from the business logic processing module, indicating that the auxiliary device is being charged, the auxiliary device's power level, and whether the auxiliary device is not properly secured.
[0189] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications within the application layer. The application framework layer includes some predefined functions. It may include a call manager, window manager, content provider, view system, resource manager, notification manager, activity manager, etc., but this embodiment does not impose any limitations on these.
[0190] Content providers enable applications to access data from other applications (such as a contacts database) or share their own data. Content providers store and retrieve data, making that data accessible to applications. This data can include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
[0191] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0192] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, a notification manager can be used to announce that a smart privacy call has been initiated. Alternatively, it can be used to notify users of download completion or message alerts. The notification manager can also appear as an icon or scrolling text bar in the top status bar, such as notifications from background applications, or as a dialog box on the screen. Examples include displaying text messages in the status bar, emitting alert sounds, vibrating electronic devices, and flashing indicator lights.
[0193] For example, when the electronic device detects that the auxiliary device has been attached to a preset area of the electronic device, the electronic device begins to wirelessly charge the auxiliary device and displays a pop-up window on the screen indicating that wireless charging of the auxiliary device has begun. This information disappears automatically after a short pause.
[0194] For example, the Android runtime is responsible for the scheduling and management of the Android system. The Android runtime includes the core libraries and the virtual machine. The core libraries consist of two parts: one part contains the functionalities that the Java language needs to call, and the other part is the core Android library itself. The application layer and application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0195] The system library layer can include multiple functional modules. Examples include: a surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), and 2D graphics engines (e.g., SGL). The surface manager manages the display subsystem and provides the fusion of 2D and 3D layers for multiple applications. The system library layer, also known as the native layer, native service layer, or native framework layer, is a native code platform library that provides native services and link libraries for hardware operations to upper layers.
[0196] The HAL layer is a wrapper around Linux kernel drivers, providing interfaces to the upper layers and shielding them from the implementation details of the lower-level hardware.
[0197] For example, the HAL layer may include display HAL, sensor HAL, wireless charging HAL, etc.
[0198] The kernel layer is the layer between hardware and software. The kernel layer includes at least the display driver, sensor driver, and wireless charging driver.
[0199] It should be noted that although the embodiments of this application are described using the Android system as an example, the basic principles are also applicable to electronic devices based on operating systems such as iOS or Windows.
[0200] The wireless charging method provided in this application can be implemented by the aforementioned electronic device (such as a tablet computer or mobile phone), or by a functional module and / or functional entity in the electronic device that can implement the wireless charging method. Furthermore, the solution in this application can be implemented by hardware and / or software. The specific implementation can be determined according to actual usage requirements, and this application does not impose any limitations.
[0201] Figure 14 This is a hardware system for an electronic device provided in an embodiment of this application.
[0202] The electronic device can be used to implement the processing steps corresponding to the electronic device in the wireless charging method described in the above method embodiments.
[0203] In this embodiment of the application, the electronic device 10 can be, in addition to being, Figure 1 The mobile phone shown can also be a tablet computer, smart screen, wearable electronic device, in-vehicle electronic device, augmented reality device, virtual reality (VR) device, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), or other devices with screen mirroring functionality. This application embodiment does not impose any restrictions on the specific type of electronic device 10. By adding overcurrent protection detection during the charging process of the auxiliary device 20, charging to the auxiliary device 20 stops when an abnormality occurs during charging. This prevents the auxiliary device 20 from excessively draining the power of the electronic device 10, ensuring the battery life of the electronic device 10 and improving the user experience.
[0204] Electronic device 10 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, a first antenna 1, a second antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a magnetic sensor 180A, which is the aforementioned magnetically sensitive device.
[0205] It should be noted that the structure shown in this hardware system does not constitute a specific limitation on the electronic device. In other embodiments of this application, the electronic device may include more or fewer components than those shown in the hardware system, or the electronic device may include a combination of certain components shown in the hardware system, or the electronic device may include sub-components of certain components shown in the hardware system. The components shown in the hardware system may be implemented in hardware, software, or a combination of software and hardware.
[0206] Processor 110 may include one or more processing units. For example, processor 110 may include at least one of the following processing units: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and neural network processing unit (NPU). These different processing units may be independent devices or integrated devices. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.
[0207] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0208] The connection relationships between the modules shown in this hardware system are merely illustrative and do not constitute a limitation on the connection relationships between the modules of the electronic device. Optionally, the modules of the electronic device may also adopt a combination of various connection methods described in the above embodiments.
[0209] The charging management module 140 receives power from the charger. While charging the battery 142, the charging management module 140 can also power electronic devices via the power management module 141. The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and powers the processor 110, internal memory 121, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (e.g., leakage current, impedance). Optionally, the power management module 141 can be located within the processor 110, or the power management module 141 and the charging management module 140 can be located in the same device.
[0210] For example, in this embodiment of the application, the electronic device 10 supports the magnetic attraction of an auxiliary device 20 (e.g., a tablet keyboard or stylus) to a preset area of the electronic device 10. When the magnetic sensor detects that the auxiliary device 20 is attracted to the electronic device 10, the electronic device can determine that the auxiliary device 20 is in place through the processor 110. When the auxiliary device 20 is in place, the processor 110 controls the charging management module 140 (e.g., a charging chip) to charge the auxiliary device 20; and the processor 110 controls the charging management module 140 to continue or stop charging the auxiliary device 20 based on whether the magnetic sensor reports an event of the auxiliary device 20 being removed and whether the charging management module 140 receives an interruption event indicating that charging has stopped.
[0211] The wireless communication function of the electronic device can be implemented through devices such as antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization.
[0212] Mobile communication module 150 can provide wireless communication solutions for use in electronic devices, such as at least one of the following: second generation (2G) th Generation 2G mobile communication solutions, third generation (3G) th Generation 3G mobile communication solutions, fourth generation (4G) th 5G mobile communication solutions, fifth generation (5G) th Generation 5G mobile communication solutions.
[0213] The modem processor may include a modulator and a demodulator. The modulator modulates a low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates a received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through audio devices (e.g., speaker 170A, receiver 170B) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.
[0214] Similar to the mobile communication module 150, the wireless communication module 160 can also provide wireless communication solutions for use in electronic devices, such as at least one of the following: wireless local area networks (WLAN), Bluetooth (BT), Bluetooth Low Energy (BLE), ultra-wideband (UWB), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technology.
[0215] In some embodiments, the antenna 1 of the electronic device is coupled to the mobile communication module 150, and the antenna 2 of the electronic device is coupled to the wireless communication module 160, enabling the electronic device to communicate with the network and other electronic devices via wireless communication technology.
[0216] The external storage interface 120 can be used to connect an external memory card, such as a secure digital (SD) card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
[0217] Internal memory 121 can be used to store computer executable program code, which includes instructions. Internal memory 121 may include a program storage area and a data storage area.
[0218] In some embodiments, when the auxiliary device 20 is attached to the electronic device 10, the magnetic sensor 180A is used to detect whether the auxiliary device 20 is within a preset distance range of the electronic device 10. When the auxiliary device 20 is within the preset distance range of the electronic device 10, the magnetic sensor 180A reports to the processor 110 that the auxiliary device 20 is in a present state; otherwise, the magnetic sensor 180A reports to the processor 110 that the auxiliary device 20 is in a removed state.
[0219] Button 190 includes a power button and volume buttons. Button 190 can be a mechanical button or a touch button. The electronic device can receive button input signals and realize functions related to the button input signals.
[0220] Figure 15 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0221] Figure 15 The dashed lines indicate that the unit or module is optional, and the electronic device 10 can be used to implement the wireless charging method described in the above method embodiments.
[0222] The electronic device 10 includes one or more processors 110, which can support the implementation of the methods in the method embodiments. The processor 110 can be a general-purpose processor or a special-purpose processor. For example, the processor 110 can be a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, such as discrete gates, transistor logic devices, or discrete hardware components.
[0223] The processor 110 can be used to control the electronic device 10, execute software programs, and process data from the software programs. The electronic device 10 may also include a communication unit 905 for inputting (receiving) and outputting (transmitting) signals.
[0224] For example, electronic device 10 can be a chip, and communication unit 905 can be the input and / or output circuit of the chip, or communication unit 905 can be the communication interface of the chip, which can be a component of electronic device or other electronic device. As another example, electronic device 10 can be an electronic device, and communication unit 905 can be the transceiver of that electronic device, or communication unit 905 can be the transceiver circuit of that electronic device.
[0225] The electronic device 10 may include one or more memories 902, which store a program 904. The program 904 can be executed by the processor 110 to generate instructions 903, causing the processor 110 to execute the wireless charging method described in the above method embodiments according to the instructions 903.
[0226] Optionally, the memory 902 may also store data. Optionally, the processor 110 may also read the data stored in the memory 902, which may be stored at the same memory address as the program 904, or the data may be stored at a different memory address than the program 904.
[0227] The processor 110 and memory 902 can be configured separately or integrated together; for example, integrated on a system-on-chip (SOC) of an electronic device.
[0228] For example, the memory 902 can be used to store the relevant program 904 of the wireless charging method provided in the embodiments of this application, and the processor 110 can be used to call the relevant program 904 of the wireless charging method stored in the memory 902 during an upgrade to execute the wireless charging method of the embodiments of this application. For example, by adding overcurrent protection detection during the charging process of the auxiliary device, charging to the auxiliary device is stopped when an abnormality occurs during the charging process of the auxiliary device, so that the auxiliary device will not over-drain the power of the electronic device, ensuring the battery life of the electronic device and improving the user experience.
[0229] This application also provides a computer program product that, when executed by processor 110, implements the wireless charging method described in any of the method embodiments of this application.
[0230] The computer program product can be stored in memory 902, for example, program 904. Program 904 is finally converted into an executable object file that can be executed by processor 110 after processing such as preprocessing, compilation, assembly and linking.
[0231] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a computer, implements the wireless charging method described in any of the method embodiments of this application. The computer program may be a high-level language program or an executable object program.
[0232] Optionally, the computer-readable storage medium is, for example, memory 902. Memory 902 can be volatile memory or non-volatile memory, or memory 902 can include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which serves as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0233] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process and technical effects of the above-described apparatus and equipment can be referred to the corresponding processes and technical effects in the foregoing method embodiments, and will not be repeated here.
[0234] In the several embodiments provided in this application, the systems, apparatuses, and methods disclosed can be implemented in other ways. For example, some features of the method embodiments described above can be ignored or not performed. The apparatus embodiments described above are merely illustrative; the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Multiple units or components can be combined or integrated into another system. Furthermore, the coupling between units or components can be direct coupling or indirect coupling, including electrical, mechanical, or other forms of connection.
[0235] It should be understood that in the various embodiments of this application, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0236] Furthermore, the terms "system" and "network" are often used interchangeably in this paper. The term "and / or" in this paper merely describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. Additionally, the character " / " in this paper generally indicates that the preceding and following related objects have an "or" relationship.
[0237] In summary, the above description is merely a preferred embodiment of the technical solution of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A wireless charging method, characterized in that, This invention is applied to electronic devices, where the electronic devices and auxiliary devices are in a wireless connection state; the auxiliary device is a detachable accessory of the electronic device, and when the auxiliary device is attached to a preset position of the electronic device by magnetic attraction, the auxiliary device is in a present state. The wireless charging method includes: When the auxiliary device is in the in-situ state, charge the auxiliary device; When an overcurrent protection signal is detected during the charging process of the auxiliary device, charging of the auxiliary device is stopped. The overcurrent protection signal is used to indicate that the charging voltage between the electronic device and the auxiliary device is greater than a preset voltage due to an abnormal coupling state. After charging is stopped, if the auxiliary device is still in the in-situ state, the battery level of the auxiliary device is lower than a first preset battery level, and the battery level of the electronic device exceeds a second preset battery level, then charging of the auxiliary device is resumed; otherwise, the charging stop state is maintained.
2. The wireless charging method according to claim 1, characterized in that, The step of charging the auxiliary device when the auxiliary device is in the in-situ state includes: When the auxiliary device is in the in-situ state, charge the auxiliary device for a preset duration.
3. The wireless charging method according to claim 1 or 2, characterized in that, The following are the cyclical steps during the charging process of the auxiliary equipment: When an overcurrent protection signal is detected during the charging process of the auxiliary device, charging of the auxiliary device is stopped; when the auxiliary device is still in the in-situ state, the battery level of the auxiliary device is lower than the first preset battery level, and the battery level of the electronic device exceeds the second preset battery level, charging of the auxiliary device is started. Conversely, the auxiliary device will not be charged.
4. The wireless charging method according to claim 1 or 2, characterized in that, After an overcurrent protection signal is detected during the charging process of the auxiliary device, the method further includes: When an overcurrent protection signal is detected after a first preset number of times, a prompt pop-up window is displayed; the prompt pop-up window is used to remind the user of poor contact.
5. The wireless charging method according to claim 1 or 2, characterized in that, After charging the auxiliary device when it is still in the in-situ state, the battery level of the auxiliary device is lower than a first preset battery level, and the battery level of the electronic device exceeds a second preset battery level, the method further includes: When a foreign object detection signal is received from the auxiliary device, charging to the auxiliary device is stopped; the foreign object detection signal is used to indicate the presence of a foreign object in the wireless charging process between the auxiliary device and the electronic device.
6. The wireless charging method according to claim 5, characterized in that, The step of receiving a foreign object detection signal output by the auxiliary device includes: When the auxiliary device receives a foreign object detection signal for the second preset number of times, charging of the auxiliary device is stopped.
7. The wireless charging method according to claim 1 or 2, characterized in that, When the auxiliary device is in the in-situ state, after charging the auxiliary device, the process further includes: When the battery level of the auxiliary device is lower than a first preset battery level and the battery level of the electronic device exceeds a second preset battery level, the auxiliary device is charged; otherwise, the auxiliary device is not charged.
8. The wireless charging method according to claim 1 or 2, characterized in that, The electronic device and the auxiliary device are in a wireless connection state, including: The electronic device transmits an Internet Packet Explorer message to the auxiliary device, the Internet Packet Explorer message carrying a wireless charging protocol; The electronic device receives a confirmation message returned by the auxiliary device based on the Internet Packet Explorer message; The electronic device establishes a wireless charging connection with the auxiliary device based on the wireless charging protocol.
9. The wireless charging method according to claim 1 or 2, characterized in that, Before the overcurrent protection signal is detected during the charging process of the auxiliary device, the method further includes: A Bluetooth connection is established between the electronic device and the auxiliary device; The auxiliary device reports the current battery level to the electronic device.
10. An electronic device, characterized in that, The electronic device includes: one or more processors, and memory; The memory is coupled to the one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, the one or more processors invoking the computer instructions to cause the electronic device to perform the method as described in any one of claims 1 to 9.
11. A chip system, characterized in that, The chip system is applied to an electronic device, the chip system including one or more processors, the one or more processors being used to invoke computer instructions to cause the electronic device to perform the method as described in any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 9.