Charging method and device, computer device and computer readable storage medium

By reusing NFC devices in the NFC charging mode of electronic devices to charge supporting devices, the problem of high hardware costs in traditional charging methods is solved, achieving the effect of reducing hardware costs and improving charging efficiency.

CN115663951BActive Publication Date: 2026-11-27GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211301445.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-24
Publication Date
2026-11-27
Estimated Expiration
2042-10-24

AI Technical Summary

Technical Problem

Traditional charging methods suffer from high hardware costs.

Method used

By reusing existing NFC devices in the NFC charging mode of electronic devices, the charging of supporting devices can be carried out without adding new hardware in the NFC charging mode.

Benefits of technology

It reduces the hardware cost of charging and improves charging efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115663951B_ABST
    Figure CN115663951B_ABST
Patent Text Reader

Abstract

The application relates to a charging method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: if a matched device corresponding to an electronic device satisfies a charging condition, switching a mode in which the electronic device is currently located into an NFC charging mode; and charging the matched device through the NFC charging mode and multiplexing an existing NFC device. The method can reduce the hardware cost of charging.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a charging method, apparatus, computer device, and computer-readable storage medium. Background Technology

[0002] With the development of communication technology, electronic devices can use more communication methods. These include cellular network communication, Wireless Fidelity (Wi-Fi) communication, Global Positioning System (GPS) communication, Bluetooth (BT) communication, and Near Field Communication (NFC). Among these, NFC technology is widely used in daily life, such as in subways, buses, UnionPay QuickPass, and access control systems. Traditional NFC technology not only enables near-field communication but can also be used in dedicated NFC charging docks to charge other devices.

[0003] However, traditional charging methods suffer from high hardware costs. Summary of the Invention

[0004] This application provides a charging method, apparatus, electronic device, computer-readable storage medium, and computer program product that can reduce the hardware cost of charging.

[0005] Firstly, this application provides a charging method applied to an electronic device including an NFC device. The method includes:

[0006] If the corresponding accessory device of the electronic device meets the charging conditions, the current mode of the electronic device will be switched to NFC charging mode;

[0007] The NFC charging mode reuses the existing NFC device to charge the supporting equipment.

[0008] Secondly, this application also provides a charging device for use in electronic devices including NFC devices. The device includes:

[0009] The mode switching module is further configured to switch the current mode of the electronic device to NFC charging mode if the corresponding accessory device of the electronic device meets the charging conditions.

[0010] The first charging module is used to charge the supporting device by reusing the existing NFC device through the NFC charging mode.

[0011] Thirdly, this application also provides an electronic device. The electronic device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:

[0012] If the corresponding accessory device of the electronic device meets the charging conditions, the current mode of the electronic device will be switched to NFC charging mode;

[0013] The NFC charging mode reuses the existing NFC device to charge the supporting equipment.

[0014] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:

[0015] If the corresponding accessory device of the electronic device meets the charging conditions, the current mode of the electronic device will be switched to NFC charging mode;

[0016] The NFC charging mode reuses the existing NFC device to charge the supporting equipment.

[0017] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:

[0018] If the corresponding accessory device of the electronic device meets the charging conditions, the current mode of the electronic device will be switched to NFC charging mode;

[0019] The NFC charging mode reuses the existing NFC device to charge the supporting equipment.

[0020] The aforementioned charging method, device, electronic device, computer-readable storage medium, and computer program product, if the corresponding accessory device of the electronic device meets the charging conditions, will switch the current mode of the electronic device to NFC charging mode, and reuse the existing NFC device to charge the accessory device through NFC charging mode, thereby avoiding the need to charge the accessory device through new hardware in NFC charging mode and reducing the hardware cost of charging.

[0021] This application provides another charging method, apparatus, supporting equipment, computer-readable storage medium, and computer program product, which can reduce the hardware cost of charging.

[0022] Sixthly, this application provides a charging method applied to a supporting device for an electronic device, the supporting device including an NFC device. The method includes:

[0023] If the supporting device meets the charging conditions, it receives energy sent by the electronic device in NFC charging mode for charging; wherein, the supporting device reuses its own existing NFC device for charging during the charging process.

[0024] Seventhly, this application also provides a charging device for use with supporting equipment for electronic devices, the supporting equipment including an NFC device. The device includes:

[0025] The second charging module is used to receive energy sent by the electronic device in NFC charging mode for charging if the supporting device meets the charging conditions; wherein the supporting device reuses its own existing NFC device for charging during the charging process.

[0026] Eighthly, this application also provides a supporting device. The supporting device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:

[0027] If the supporting device meets the charging conditions, it receives energy sent by the electronic device in NFC charging mode for charging; wherein, the supporting device reuses its own existing NFC device for charging during the charging process.

[0028] Ninthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:

[0029] If the supporting device meets the charging conditions, it receives energy sent by the electronic device in NFC charging mode for charging; wherein, the supporting device reuses its own existing NFC device for charging during the charging process.

[0030] Tenthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:

[0031] If the supporting device meets the charging conditions, it receives energy sent by the electronic device in NFC charging mode for charging; wherein, the supporting device reuses its own existing NFC device for charging during the charging process.

[0032] The above-mentioned charging method, device, supporting equipment, computer-readable storage medium, and computer program product, if the supporting equipment meets the charging conditions, can receive energy sent by the electronic device in NFC charging mode for charging, and the supporting equipment can reuse its own existing NFC device for charging during the charging process. Thus, the supporting equipment can realize the charging function through its own existing NFC device, avoiding the need to add a dedicated charging interface to the supporting equipment, and reducing the hardware cost of charging. Attached Figure Description

[0033] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0034] Figure 1 This is a diagram illustrating the application environment of the charging method in one embodiment;

[0035] Figure 2 Here is a flowchart of a charging method in one embodiment;

[0036] Figure 3 This is a schematic diagram of a smartphone charging a stylus via NFC in one embodiment;

[0037] Figure 4 This is a schematic diagram of near-field communication between a smartphone and a stylus in one embodiment;

[0038] Figure 5 This is a schematic diagram of near-field communication between a smartphone and a smartwatch in one embodiment;

[0039] Figure 6 This is an interface diagram containing prompt information in one embodiment;

[0040] Figure 7 This is a schematic diagram illustrating the near-field communication required between a smartphone and a smartwatch during the charging process of a stylus in one embodiment.

[0041] Figure 8 A flowchart of a charging method in another embodiment;

[0042] Figure 9 This is a structural block diagram of a charging device in one embodiment;

[0043] Figure 10 This is a structural block diagram of the charging device in another embodiment;

[0044] Figure 11 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0045] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0046] The charging method provided in this application embodiment can be applied to, for example... Figure 1 In the application environment shown, electronic device 102 includes a Near Field Communication (NFC) device. If the corresponding accessory device 104 of electronic device 102 meets the non-charging condition, electronic device 102 switches its current mode to NFC communication mode; if the accessory device 104 meets the charging condition, electronic device 102 switches its current mode to NFC charging mode; and charges accessory device 104 by reusing the existing NFC device in NFC charging mode. Electronic device 102 can be a terminal, which can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, smart cars, etc. Portable wearable devices can be smartwatches, smart bracelets, head-mounted devices, etc. Accessory device 104 is a device that works with electronic device, and can be, but is not limited to, IoT (Internet of Things) devices, styluses that work with electronic devices, various personal computers, laptops, smartphones, tablets, and portable wearable devices. IoT devices can be smart toothbrushes, smartwatches, smart bracelets, head-mounted devices, smart scales, etc.

[0047] In one embodiment, such as Figure 2 As shown, a charging method is provided, which is applied to Figure 1 Taking an electronic device as an example, this charging method includes the following steps:

[0048] Step 202: If the corresponding accessory device of the electronic device meets the charging conditions, then switch the current mode of the electronic device to NFC charging mode.

[0049] Near Field Communication (NFC) enables communication devices to exchange data when they are close to each other. It evolved from contactless radio frequency identification (RFID) and interconnection technologies. By integrating inductive card readers, inductive cards and peer-to-peer communication functions on a single NFC chip, it enables mobile terminals to realize applications such as mobile payment, electronic ticketing, access control, mobile identity recognition, and anti-counterfeiting.

[0050] The electronic device operates in two modes: NFC communication mode and NFC charging mode. NFC communication mode is the mode in which the electronic device performs near-field communication, while NFC charging mode is the mode in which the electronic device reuses existing NFC devices to charge compatible devices. The existing NFC devices in the electronic device include an NFC chip and a first antenna. The NFC chip processes NFC commands, and the first antenna is used to send and receive NFC commands, as well as transmit energy-carrying space carriers. The existing NFC devices in the electronic device can support near-field communication functions, such as reading tag cards and swiping at POS (point-of-sale) terminals.

[0051] Accessories are devices that work in conjunction with electronic devices. For example, an electronic device is a mobile phone, and accessories could be a stylus for triggering actions on the phone screen, a smartwatch, a smart bracelet, or other devices that are compatible with the phone.

[0052] Charging conditions refer to the conditions under which the accessory device is in a charging state. Charging conditions include the distance between the accessory device and the electronic device being less than or equal to the preset NFC charging distance, and / or receiving a response after sending a detection command to the accessory device.

[0053] The NFC charging distance refers to the maximum distance within which an electronic device can NFC-charge a companion device. The preset NFC charging distance can be set as needed. For example, if the NFC charging distance range for an electronic device to a companion device is 0 to 5 cm, then the preset NFC charging distance is 5 cm.

[0054] It is understandable that if the distance between the accessory device and the electronic device is less than or equal to the preset NFC charging distance, it means that the accessory device is in a charging state; if the electronic device sends a detection command to the accessory device and receives a response, it means that the distance between the accessory device and the electronic device is less than or equal to the NFC charging distance, that is, the accessory device is also in a charging state.

[0055] Optionally, the electronic device includes a Hall sensor. If the Hall voltage detected by the Hall sensor is less than a preset voltage, it indicates that the distance between the accessory device and the electronic device is greater than a preset NFC charging distance. If the Hall voltage detected by the Hall sensor is greater than or equal to the preset voltage, it indicates that the distance between the accessory device and the electronic device is less than or equal to the preset NFC charging distance.

[0056] A Hall sensor is a magnetic field sensor based on the Hall effect. The basic principle of a Hall sensor is as follows: A Hall semiconductor plate is contained within the sensor. A constant current I flows from point A to point B through the Hall semiconductor plate. When the Hall semiconductor plate is in a magnetic field environment, under the influence of the Lorentz force, the electron flow of the constant current I is deflected to one side as it passes through the Hall semiconductor plate, causing a potential difference in the cross direction (CD) of the Hall semiconductor plate. This is the so-called Hall voltage. By detecting the Hall voltage, the presence of a magnetic field can be determined.

[0057] Optionally, the accessory device may include a metal, and the distance between the metal and the Hall sensor is inversely proportional to the Hall voltage detected by the Hall sensor. It is understood that the metal in the accessory device can generate a magnetic field, thereby generating a Hall voltage. Optionally, the electronic device may also include a metal. The metal can be a magnet, etc., and is not limited thereto.

[0058] If the Hall voltage detected by the Hall sensor is greater than or equal to the preset voltage, it indicates that the distance between the accessory device and the electronic device is less than or equal to the preset NFC charging distance, and the accessory device meets the charging conditions.

[0059] Optionally, the charging conditions include receiving at least one response message after the electronic device sends at least two detection commands to the supporting device. The charging conditions may also include at least one of the following: the supporting device's battery level is lower than or equal to a first battery level threshold, the electronic device's battery level is higher than or equal to a second battery level threshold, or a user-triggered charging command; wherein the first battery level threshold is lower than the second battery level threshold.

[0060] Optionally, if the electronic device detects that the corresponding accessory device meets the charging conditions, it determines the current mode; if the current mode is not NFC charging mode, it switches the current mode to NFC charging mode; if the current mode is NFC charging mode, it does not need to switch modes.

[0061] In one embodiment, such as Figure 3 As shown, this example uses a smartphone as the electronic device and a stylus as the accessory. The smartphone includes a first antenna, metal components, and a Hall sensor; the stylus includes a magnet, a second antenna, a PCB (Printed Circuit Board), and a battery. The PCB can house circuitry and an NFC chip, which enables NFC command interaction. The metal component in the smartphone can also be a magnet, and the PCB in the stylus serves as the support for the electronic components and the carrier for their electrical interconnection.

[0062] The stylus is magnetically attached to a preset location on the smartphone, where a metal plate is attached to the inner wall of the smartphone. When the smartphone detects a Hall voltage greater than or equal to a preset voltage via a Hall sensor, it indicates that the distance between the stylus and the smartphone is less than or equal to the NFC charging distance. The stylus is then in a "positioned" state, meaning it meets the charging conditions. The smartphone switches to NFC charging mode and reuses its existing first antenna to transmit continuous, energy-carrying empty carrier waves to the stylus's second antenna. The second antenna converts the energy in the empty carrier waves into electrical energy, charging the stylus's battery. The preset location can be a recess into which the stylus can be precisely inserted.

[0063] Step 204: Charge the accessory device by reusing the existing NFC device through NFC charging mode.

[0064] It is understandable that electronic devices reuse existing NFC devices to charge companion devices via NFC charging mode. To improve charging efficiency, the power consumption of the companion device is lower than a preset power threshold. This preset power threshold can be set as needed and is typically a small value.

[0065] The above charging method, if the corresponding accessory device of the electronic device meets the charging conditions, switches the current mode of the electronic device to NFC charging mode, and reuses the existing NFC device to charge the accessory device through NFC charging mode, avoiding the need to charge the accessory device through new hardware in NFC charging mode, which can reduce the hardware cost of wireless charging.

[0066] In one embodiment, if the supporting device corresponding to the electronic device meets the charging conditions, the current mode of the electronic device is switched to NFC charging mode, including: if the supporting device corresponding to the electronic device meets the charging conditions, sending a device information request to the supporting device; obtaining the device information sent by the supporting device based on the device information request; if the device information matches the preset information, switching the current mode of the electronic device to NFC charging mode.

[0067] The equipment information for the supporting equipment may include the equipment type, equipment identification, equipment power information, and equipment charging status. The equipment identification may include, but is not limited to, the equipment name, model, and logo.

[0068] For example, if the accessory is a stylus, the accessory information may include the device type, i.e., the stylus type, the device model, etc.

[0069] Optionally, in response to a received device information request, the supporting device obtains its own device information and sends it to the electronic device. After obtaining the supporting device's device information, the electronic device matches it with stored preset information. If the device information matches the preset information, it indicates successful pairing between the supporting device and the electronic device, and the electronic device can charge the supporting device. The electronic device then switches its current mode to NFC charging mode. If the device information does not match the preset information, a matching failure message can be displayed on the screen of the electronic device.

[0070] In this embodiment, if the corresponding accessory device of the electronic device meets the charging conditions, a device information request is sent to the accessory device to obtain the device information sent by the accessory device based on the device information request. If the device information matches the preset information, the current mode of the electronic device is switched to NFC charging mode. NFC charging can be performed when the accessory device and the electronic device are confirmed to be compatible, avoiding the problem of mode switching confusion caused by the electronic device charging other unpaired devices, and improving the accuracy of mode switching.

[0071] In one embodiment, charging a companion device via NFC charging mode includes: acquiring the battery level of the companion device; determining the charging current based on the battery level of the companion device; and charging the companion device with the charging current via NFC charging mode.

[0072] Optionally, the electronic device determines the current charging node of the supporting device based on the battery level of the supporting device; and determines the charging current based on the current charging node.

[0073] Understandably, the charging process sequentially includes trickle charging, constant current charging, and constant voltage charging stages. Trickle charging is used when the battery level is low, i.e., when the battery voltage is low. As the battery level increases until the battery voltage reaches a first voltage, constant current charging is used. As the battery level continues to increase until the battery voltage reaches a second voltage, constant voltage charging is used. The first voltage is lower than the second voltage. The charging current at the trickle charging stage is less than the charging current at the constant current stage, and the charging current at the constant voltage stage is less than the charging current at the constant current stage.

[0074] Alternatively, the electronic device can convert the charging current into an empty carrier wave carrying energy, and send the empty carrier wave to a supporting device, which can then convert the energy in the empty carrier wave into electrical energy to charge the battery.

[0075] In this embodiment, the battery level of the accessory device is obtained. Based on the battery level of the accessory device, the charging current corresponding to the battery level can be determined. Therefore, charging the accessory device with the charging current through NFC charging mode can more safely protect the battery of the accessory device during the charging process.

[0076] In one embodiment, obtaining the battery level of the supporting device includes: sending a power acquisition request to the supporting device at preset or random intervals, and receiving the battery level of the supporting device returned by the supporting device based on the power acquisition request; determining the charging current based on the battery level of the supporting device includes: determining the charging current based on the latest battery level of the supporting device received.

[0077] The preset duration can be set as needed. For example, the preset duration can be 0.1ms (milliseconds). The random duration can be obtained using a random function.

[0078] Optionally, the electronic device sends a power acquisition request to the supporting device at preset intervals, and receives the battery level of the supporting device returned by the supporting device based on the power acquisition request; based on the latest battery level of the supporting device received, the current charging node of the supporting device is determined, and the charging current of the current charging node is determined.

[0079] Optionally, if the electronic device determines that the charging node of the supporting device has changed based on the latest battery level received from the supporting device, it determines the latest charging current of the current charging node, adjusts the charging current to the latest charging current, and charges the supporting device with the latest charging current through the NFC charging mode.

[0080] For example, if an electronic device determines that the charging node of the supporting device has switched from a trickle charging node to a constant current node based on the latest battery level of the supporting device received, it determines the current charging current of the current constant current node and adjusts the charging current value of the constant current node to charge the supporting device using the charging current of the constant current node through NFC charging mode.

[0081] In this embodiment, a power acquisition request is sent to the supporting device at preset or random intervals, and the battery level of the supporting device is received from the supporting device based on the power acquisition request. The charging current can be determined based on the latest battery level of the supporting device, so that the charging current is used to charge the supporting device with different battery levels, which can protect the battery of the supporting device more safely during the charging process and improve the accuracy of charging.

[0082] In one embodiment, the existing NFC device in the electronic device includes a first antenna; charging the accessory device includes: transmitting an energy-carrying empty carrier wave to a second antenna via the first antenna; the second antenna is used to convert the energy carried by the empty carrier wave into electrical energy and charge the battery of the accessory device.

[0083] An empty carrier is a waveform without a modulated signal, that is, a carrier that does not carry command information but provides energy.

[0084] Optionally, the supporting equipment includes a second antenna. The electronic device transmits an energy-carrying empty carrier to the second antenna of the supporting equipment via the first antenna. The second antenna of the supporting equipment receives the energy-carrying empty carrier, converts the energy in the empty carrier into electrical energy, and charges the battery in the supporting equipment.

[0085] Optionally, the electronic device acquires the charging current of the supporting equipment, determines the transmission rate of the empty carrier based on the charging current, and transmits the energy-carrying empty carrier to the second antenna at the transmission rate; wherein the charging current and the transmission rate of the empty carrier are positively correlated.

[0086] In other words, the greater the charging current of the electronic device to the supporting equipment, the greater the transmission rate at which the electronic device can transmit the energy-carrying empty carrier to the second antenna.

[0087] In this embodiment, the electronic device transmits an energy-carrying empty carrier to the second antenna via the first antenna. The second antenna in the supporting device can then convert the energy carried by the empty carrier into electrical energy and charge the battery of the supporting device, thus accurately enabling the electronic device to charge the supporting device via NFC.

[0088] In one embodiment, the method further includes: if the accessory device corresponding to the electronic device meets the non-charging condition, then the current mode of the electronic device is switched to NFC communication mode.

[0089] Non-charging conditions refer to conditions where the accessory device is not charging. Non-charging conditions include situations where the distance between the accessory device and the electronic device is greater than the preset NFC charging distance, and / or no response is received after sending a detection command to the accessory device.

[0090] Optionally, if the Hall sensor detects that the Hall voltage is less than the preset voltage, it indicates that the distance between the accessory device and the electronic device is greater than the preset NFC charging distance, and the accessory device meets the non-charging condition.

[0091] Understandably, if the distance between the accessory device and the electronic device exceeds the preset NFC charging distance, it indicates that the accessory device is not charging. Similarly, if the electronic device sends a detection command to the accessory device but does not receive a response, it means the distance between the accessory device and the electronic device exceeds the NFC charging distance, preventing NFC charging; in other words, the accessory device is also not charging. The NFC charging distance is essentially the same as the NFC communication distance.

[0092] Optionally, the non-charging condition includes situations where the electronic device sends at least two detection commands to the paired device without receiving a response. For example, if the electronic device sends three detection commands to the paired device without receiving a response, it indicates that the distance between the paired device and the electronic device is greater than the NFC charging distance. It is understood that having the electronic device send at least two detection commands to the paired device without receiving a response indicates that the paired device is in a non-charging state. This prevents false detections caused by the electronic device detecting the distance to the paired device, or false detections caused by the paired device's vibration, thus more accurately determining whether the paired device meets the non-charging condition. Simultaneously, by sending detection commands to the paired device to determine whether the paired device meets the non-charging condition, the electronic device can save on hardware costs such as Hall sensors.

[0093] Optionally, the non-charging condition may further include at least one of the following: the battery level of the supporting device is higher than a third battery threshold, the battery level of the electronic device is lower than a fourth battery threshold, or a non-charging command triggered by the user; wherein the third battery threshold is higher than the fourth battery threshold. Both the third and fourth battery thresholds can be set as needed. For example, the third battery threshold can be 90%, and the fourth battery threshold can be 10%.

[0094] Optionally, if the electronic device detects that the corresponding accessory device meets the non-charging condition, it determines the current mode; if the current mode is not NFC communication mode, it switches the current mode to NFC communication mode; if the current mode is NFC communication mode, it does not need to switch modes.

[0095] It should be noted that if the corresponding device of the electronic device is detected to meet the non-charging condition, the current mode of the electronic device will be switched to NFC communication mode. The electronic device can communicate with the corresponding device through NFC communication mode, and can also communicate with other near-field communication devices through NFC communication mode. There are no restrictions on this.

[0096] In one embodiment, such as Figure 4 As shown, the example uses a smartphone as the electronic device and a stylus as the accessory. If the stylus is removed from the smartphone (i.e., in the "removed" state), and the distance between the stylus and the smartphone is greater than the NFC charging distance, the stylus meets the non-charging condition. In this case, the smartphone can switch its current mode to NFC communication mode. In NFC communication mode, the smartphone sends NFC commands to the stylus's second antenna via the first antenna, and also receives NFC commands from the stylus's second antenna via the first antenna.

[0097] In another embodiment, taking a smartphone as the electronic device and a smart bracelet as the accessory as an example, if the smartphone sends detection information to the smart bracelet but does not receive a response from the smart bracelet, it indicates that the smart bracelet meets the non-charging condition. The smartphone can then switch its current mode to NFC communication mode. In NFC communication mode, the smartphone sends NFC commands to the second antenna in the smart bracelet via the first antenna, and receives NFC commands sent by the second antenna of the smart bracelet via the first antenna.

[0098] In another embodiment, such as Figure 5 As shown, this example uses a smartphone as the electronic device and a stylus as the accessory. If the stylus is not charging, such as when the stylus's battery is at 100%, the smartphone will switch to NFC communication mode. The smartphone can then communicate with the smartwatch via NFC.

[0099] In one embodiment, the method further includes: if the electronic device needs to communicate with the near-field communication device, displaying a prompt message; the prompt message is used to prompt the user to operate the accessory device to meet the non-charging conditions.

[0100] Near-field communication (NFC) devices are devices that communicate with electronic devices in the near field. NFC devices can be the aforementioned supporting equipment, or they can be different from the aforementioned supporting equipment. For example, NFC devices can be styluses, access control devices, subway turnstiles, or other mobile phones, etc., but are not limited to these.

[0101] Understandably, when an electronic device reuses an existing NFC device to charge a companion device, it cannot communicate with the near-field communication device via the NFC device. Therefore, if the electronic device is detected to need to communicate with the near-field communication device, a prompt message is displayed to prompt the user to operate the companion device to meet the non-charging conditions. In other words, if the electronic device is not charging the companion device, it can switch from NFC charging mode to NFC communication mode and use the NFC device to communicate with the near-field communication device.

[0102] Optionally, if the electronic device detects that the corresponding accessory device meets the charging conditions and the electronic device needs to conduct near-field communication with the near-field communication device, a prompt message will be displayed; if the electronic device detects that the corresponding accessory device meets the non-charging conditions, a prompt message may not be displayed.

[0103] In this embodiment, if the electronic device needs to communicate with the near-field communication device, a prompt message is displayed. This prompt message is used to prompt the user to operate the supporting device to meet the non-charging conditions, which can avoid the conflict between the NFC communication mode and the NFC charging mode in the electronic device and improve the accuracy of mode switching.

[0104] In one embodiment, such as Figure 6 As shown, this example uses a smartphone as the electronic device and a stylus as the accessory. If the smartphone is detected to need to communicate with the NFC device, a prompt message will be displayed on the smartphone's NFC-enabled screen. This message includes the message, "Friendly reminder: Please remove the stylus before using your phone to read or swipe a tag card." This prompt message serves to remind the user to remove the stylus, ensuring that the distance between the stylus and the smartphone exceeds the NFC charging distance, thus fulfilling the non-charging condition for the stylus.

[0105] In one embodiment, such as Figure 7 As shown, this example uses a smartphone as the electronic device, a stylus as the accessory, and a smartwatch as the near-field communication (NFC) device. When the stylus meets the charging requirements, the smartphone charges the stylus in NFC charging mode. If the smartphone detects a need for NFC communication with the smartwatch, it displays a prompt message; this message guides the user to operate the stylus to meet the non-charging requirements. When the distance between the stylus and the smartphone exceeds the NFC distance, the stylus meets the non-charging requirements, and the smartphone switches from NFC charging mode to NFC communication mode, in which it establishes NFC communication with the smartwatch.

[0106] In one embodiment, a charging method is also provided, applied to an electronic device including a near-field communication (NFC) device and a Hall sensor; the charging method includes the following steps:

[0107] If the corresponding accessory device of the electronic device meets the non-charging condition, then proceed to step A1; if the corresponding accessory device of the electronic device meets the charging condition, then proceed to steps A2 to A6; wherein, the non-charging condition includes the distance between the accessory device and the electronic device being greater than the preset NFC charging distance, and / or no response information being received after sending a detection command to the accessory device; the charging condition includes the distance between the accessory device and the electronic device being less than or equal to the preset NFC charging distance, and / or a response information being received after sending a detection command to the accessory device; if the Hall voltage detected by the Hall sensor is less than the preset voltage, it indicates that the distance between the accessory device and the electronic device is greater than the preset NFC charging distance; if the Hall voltage detected by the Hall sensor is greater than or equal to the preset voltage, it indicates that the distance between the accessory device and the electronic device is less than or equal to the preset NFC charging distance.

[0108] Step A1: Switch the current mode of the electronic device to NFC communication mode.

[0109] Step A2: Send the device information request to the supporting device.

[0110] Step A3: Obtain the device information sent by the supporting device based on the device information request. If the device information matches the preset information, switch the current mode of the electronic device to NFC charging mode.

[0111] Step A4: At preset or random intervals, send a power acquisition request to the supporting device and receive the battery level of the supporting device returned by the supporting device based on the power acquisition request; determine the charging current based on the latest battery level of the supporting device received.

[0112] Step A5: In NFC charging mode, the empty carrier carrying the energy corresponding to the charging current is sent to the second antenna of the supporting device through the first antenna in the electronic device; the second antenna is used to convert the energy carried by the empty carrier into electrical energy and charge the battery of the supporting device.

[0113] Step A6: If the electronic device and the near-field communication device need to communicate with each other, a prompt message will be displayed. The prompt message is used to prompt the user to operate the supporting device to meet the non-charging conditions.

[0114] In one embodiment, such as Figure 8 As shown, a charging method is provided, which is applied to Figure 1 Taking the supporting equipment as an example, the supporting equipment includes a near-field communication (NFC) device; the charging method includes the following steps:

[0115] Step 802: If the supporting equipment meets the non-charging conditions, then the supporting equipment performs a non-charging operation.

[0116] Non-charging operations are operations other than charging. For example, non-charging operations can be functions of the device itself, such as NFC communication; for a stylus, non-charging operations can be screen triggering operations; for a smartwatch, non-charging operations can be user biometric data collection, watch face display, or voice call operations.

[0117] Step 804: If the supporting device meets the charging conditions, it receives energy sent by the electronic device in NFC charging mode for charging; wherein, the supporting device reuses its own existing NFC device for charging during the charging process.

[0118] The supporting equipment includes NFC devices, which include a second antenna and may also include NFC chips; the second antenna is used to send and receive NFC commands, as well as receive energy-carrying space carriers and convert the energy in the space carriers into electrical energy; the NFC chip is used to process NFC commands.

[0119] Optionally, if the supporting device meets the charging conditions, the electronic device will switch its current mode to NFC charging mode and send an empty carrier carrying energy to the supporting device through the first antenna; the supporting device will reuse its existing NFC device to receive the empty carrier carrying energy and convert the energy in the empty carrier into electrical energy to charge the battery in the supporting device.

[0120] Optionally, non-charging conditions include the distance between the accessory device and the electronic device being greater than the preset NFC charging distance, and / or not receiving a response after sending a detection command to the accessory device; charging conditions include the distance between the accessory device and the electronic device being less than or equal to the preset NFC charging distance, and / or receiving a response after sending a detection command to the accessory device.

[0121] Optionally, the electronic device includes a Hall sensor. If the Hall voltage detected by the Hall sensor is less than a preset voltage, it indicates that the distance between the accessory device and the electronic device is greater than a preset NFC charging distance. If the Hall voltage detected by the Hall sensor is greater than or equal to the preset voltage, it indicates that the distance between the accessory device and the electronic device is less than or equal to the preset NFC charging distance.

[0122] In the above charging method, if the supporting device meets the non-charging conditions, it performs a non-charging operation. If the supporting device meets the charging conditions, it receives energy sent by the electronic device in NFC charging mode for charging. Furthermore, the supporting device reuses its existing NFC device for charging during the charging process. Thus, the supporting device can achieve both non-charging and charging functions using its existing NFC device, avoiding the need for a dedicated charging interface and reducing hardware costs. Simultaneously, reusing its existing NFC device for charging also improves charging efficiency.

[0123] In one embodiment, the method further includes: obtaining a device information request sent by an electronic device; sending device information of a supporting device to the electronic device based on the device information request; using the device information to match preset information in the electronic device; and when the device information matches the preset information, the electronic device switches its current mode to NFC charging mode.

[0124] Optionally, if the supporting device meets the charging conditions, upon receiving a device information request from the electronic device, the supporting device responds to the request, obtains its device information, and sends the device information to the electronic device. The electronic device matches the device information with preset information. If the device information matches the preset information, it switches to NFC charging mode and uses existing NFC devices to charge the supporting device. The supporting device receives energy sent by the electronic device in NFC charging mode for charging.

[0125] In this embodiment, the supporting device obtains a device information request sent by the electronic device, and sends the device information of the supporting device to the electronic device based on the device information request. Then, the device information can be used to match the preset information in the electronic device. When the device information matches the preset information, the electronic device switches its current mode to NFC charging mode. The electronic device can then charge the supporting device in NFC charging mode, which improves the accuracy of charging.

[0126] In one embodiment, the NFC device in the accessory device includes a second antenna; receiving energy transmitted by the electronic device in NFC charging mode for charging includes: receiving an energy-carrying empty carrier transmitted by the first antenna of the electronic device through the second antenna, and converting the energy carried by the empty carrier into electrical energy to charge the battery in the accessory device.

[0127] Optionally, the existing near-field communication device of the electronic device includes a first antenna, and the supporting device receives the energy-carrying empty carrier transmitted by the first antenna in the electronic device through the second antenna, and converts the energy carried by the empty carrier into electrical energy to charge the battery in the supporting device.

[0128] In this embodiment, the supporting device receives an energy-carrying empty carrier wave sent by the electronic device, and converts the energy carried by the empty carrier wave into electrical energy to charge the battery in the supporting device, thus accurately realizing NFC charging of the supporting device by the electronic device.

[0129] In one embodiment, a charging method is also provided, applied to a corresponding accessory device for an electronic device, the accessory device including a near-field communication (NFC) device, the NFC device including a second antenna; the charging method includes the following steps:

[0130] If the supporting equipment meets the non-charging conditions, proceed to step B1; if the supporting equipment meets the charging conditions, proceed to steps B2 to B4.

[0131] Step B1: The supporting equipment performs a non-charging operation.

[0132] Step B2: Obtain the device information request sent by the electronic device.

[0133] Step B3: Based on the device information request, send the device information of the supporting device to the electronic device; the device information is used to match the preset information in the electronic device, and when the device information matches the preset information, the electronic device switches the current mode to NFC charging mode.

[0134] Step B4 involves receiving an energy-carrying empty carrier wave sent by an electronic device via a second antenna, converting the energy carried by the empty carrier wave into electrical energy, and charging the battery in the supporting device; wherein, the supporting device reuses its own existing NFC device for charging during the charging process.

[0135] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0136] Based on the same inventive concept, this application also provides a charging device for implementing the charging method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more charging device embodiments provided below can be found in the limitations of the charging method described above, and will not be repeated here.

[0137] In one embodiment, such as Figure 9 As shown, a charging device is provided for use in electronic devices including near field communication (NFC) devices; the charging device includes: a mode switching module 902 and a first charging module 904, wherein:

[0138] The mode switching module 902 is used to switch the current mode of the electronic device to NFC charging mode if the corresponding accessory device of the electronic device meets the charging conditions.

[0139] The first charging module 904 is used to charge the supporting device by reusing the existing NFC device through the NFC charging mode.

[0140] If the corresponding accessory device of the electronic device meets the charging conditions, the above-mentioned charging device will switch the current mode of the electronic device to NFC charging mode and reuse the existing NFC device to charge the accessory device through NFC charging mode. This avoids charging the accessory device through new hardware in NFC charging mode, which can reduce the hardware cost of charging.

[0141] In one embodiment, charging conditions include the distance between the accessory device and the electronic device being less than or equal to a preset NFC charging distance, and / or receiving a response after sending a detection command to the accessory device.

[0142] In one embodiment, the electronic device includes a Hall sensor. If the Hall voltage detected by the Hall sensor is greater than or equal to a preset voltage, it indicates that the distance between the accessory device and the electronic device is less than or equal to a preset NFC charging distance.

[0143] In one embodiment, the mode switching module 902 is further configured to send a device information request to the supporting device if the supporting device corresponding to the electronic device meets the charging conditions; obtain the device information sent by the supporting device based on the device information request; and if the device information matches the preset information, switch the current mode of the electronic device to NFC charging mode.

[0144] In one embodiment, the first charging module 904 is further configured to acquire the battery power of the accessory device; determine the charging current based on the battery power of the accessory device; and charge the accessory device with the charging current via NFC charging mode.

[0145] In one embodiment, the first charging module 904 is further configured to send a power acquisition request to the supporting device at preset or random intervals, and receive the battery power of the supporting device returned by the supporting device based on the power acquisition request; and determine the charging current based on the latest battery power of the supporting device received.

[0146] In one embodiment, the electronic device already has an NFC device including a first antenna, and the supporting device includes a second antenna; the first charging module 904 is further used to transmit an energy-carrying empty carrier to the second antenna through the first antenna; the second antenna is used to convert the energy carried by the empty carrier into electrical energy and charge the battery of the supporting device.

[0147] In one embodiment, the mode switching module 902 is further configured to switch the current mode of the electronic device to NFC communication mode if the corresponding accessory device of the electronic device meets the non-charging condition.

[0148] In one embodiment, non-charging conditions include the distance between the accessory device and the electronic device being greater than a preset NFC charging distance, and / or not receiving a response after sending a detection command to the accessory device.

[0149] In one embodiment, the electronic device includes a Hall sensor. If the Hall voltage detected by the Hall sensor is less than a preset voltage, it indicates that the distance between the accessory device and the electronic device is greater than a preset NFC charging distance.

[0150] In one embodiment, the device further includes a display module; the display module is used to display a prompt message if the electronic device needs to communicate with the near-field communication device; the prompt message is used to prompt the user to operate the accessory device to meet the non-charging conditions.

[0151] Based on the same inventive concept, this application also provides a charging device for implementing the charging method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more charging device embodiments provided below can be found in the limitations of the charging method described above, and will not be repeated here.

[0152] In one embodiment, such as Figure 10 As shown, a charging device is provided for use with supporting equipment for electronic devices, including near-field communication (NFC) devices; the charging device includes: a non-charging operation module 1002 and a second charging module 1004, wherein:

[0153] The non-charging operation module 1002 is used to enable the supporting equipment to perform non-charging operation if the supporting equipment meets the non-charging conditions.

[0154] The second charging module 1004 is used to receive energy sent by the electronic device in NFC charging mode for charging if the supporting device meets the charging conditions; wherein the supporting device reuses its own existing NFC device for charging during the charging process.

[0155] The aforementioned charging device operates as follows: if the supporting equipment meets the non-charging conditions, it performs a non-charging operation; if the supporting equipment meets the charging conditions, it receives energy transmitted by the electronic device in NFC charging mode for charging. Furthermore, the supporting equipment reuses its existing NFC device for charging during the charging process. Thus, the supporting equipment can achieve both non-charging and charging functions using its existing NFC device, avoiding the need for a dedicated charging interface and reducing hardware costs. Simultaneously, reusing its existing NFC device for charging also improves charging efficiency.

[0156] In one embodiment, the charging device further includes an acquisition module and a transmission module; the receiving module is used to acquire a device information request sent by the electronic device; the transmission module is used to send the device information of the supporting device to the electronic device based on the device information request; the device information is used to match the preset information in the electronic device, and when the device information matches the preset information, the electronic device switches the current mode to NFC charging mode.

[0157] In one embodiment, the NFC device in the accessory device includes a second antenna; the second charging module 1004 is further configured to receive an energy-carrying empty carrier transmitted by the first antenna of the electronic device through the second antenna, and convert the energy carried by the empty carrier into electrical energy to charge the battery in the accessory device.

[0158] The aforementioned charging device and its modules can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0159] In one embodiment, a computer device is provided, which may be the aforementioned electronic device or supporting equipment; the computer device may be a terminal, and its internal structure diagram may be as shown below. Figure 11 As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a charging method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0160] Those skilled in the art will understand that Figure 11 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0161] This application also provides a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, which, when executed by one or more processors, cause the processors to perform the steps of a charging method.

[0162] This application also provides a computer program product containing instructions that, when run on a computer, cause the computer to perform a charging method.

[0163] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0164] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0165] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0166] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A charging method, characterized in that, An electronic device including an NFC device; wherein the electronic device already has an NFC device including a first antenna, the method includes: If the corresponding accessory device of the electronic device meets the charging conditions, the current mode of the electronic device is switched to NFC charging mode; the accessory device includes a second antenna; the charging conditions include the distance between the accessory device and the electronic device being less than or equal to a preset NFC charging distance, and / or receiving a response message after sending a detection command to the accessory device; the charging conditions also include the electronic device receiving at least one response message after sending at least two detection commands to the accessory device. The existing NFC device is reused in the NFC charging mode to transmit an energy-carrying empty carrier to the second antenna through the first antenna; the second antenna is used to convert the energy carried by the empty carrier into electrical energy and charge the battery of the supporting device. The charging current of the supporting equipment is obtained, the transmission rate of the empty carrier is determined based on the charging current, and the energy-carrying empty carrier is transmitted to the second antenna at the transmission rate; the charging current and the transmission rate of the empty carrier are positively correlated.

2. The method according to claim 1, characterized in that, The electronic device includes a Hall sensor. If the Hall voltage detected by the Hall sensor is greater than or equal to a preset voltage, it indicates that the distance between the accessory device and the electronic device is less than or equal to a preset NFC charging distance.

3. The method according to claim 1, characterized in that, If the corresponding accessory device of the electronic device meets the charging conditions, the mode of the electronic device is switched to NFC charging mode, including: If the corresponding accessory device of the electronic device meets the charging conditions, then a device information request is sent to the accessory device; The device information sent by the supporting device based on the device information request is obtained. If the device information matches the preset information, the current mode of the electronic device is switched to NFC charging mode.

4. The method according to claim 1, characterized in that, Charging the accessory device via the NFC charging mode includes: Obtain the battery level of the supporting equipment; The charging current is determined based on the battery capacity of the supporting equipment. The accessory device is charged using the NFC charging mode and the charging current.

5. The method according to claim 4, characterized in that, The step of obtaining the battery power of the supporting device includes: At preset or random intervals, a power acquisition request is sent to the supporting device, and the battery power of the supporting device is returned by the supporting device based on the power acquisition request. Determining the charging current based on the battery capacity of the supporting equipment includes: The charging current is determined based on the latest battery level of the supporting equipment received.

6. The method according to any one of claims 1 to 4, characterized in that, The method further includes: If the corresponding accessory device of the electronic device meets the non-charging condition, the current mode of the electronic device will be switched to NFC communication mode.

7. The method according to claim 6, characterized in that, The non-charging conditions include the distance between the accessory device and the electronic device being greater than the preset NFC charging distance, and / or not receiving a response after sending a detection command to the accessory device.

8. The method according to claim 7, characterized in that, The electronic device includes a Hall sensor. If the Hall voltage detected by the Hall sensor is less than a preset voltage, it indicates that the distance between the accessory device and the electronic device is greater than a preset NFC charging distance.

9. The method according to claim 6, characterized in that, The method further includes: If the electronic device needs to communicate with a near-field communication device, a prompt message will be displayed; the prompt message is used to prompt the user to operate the accessory device to meet the non-charging condition.

10. A charging method, characterized in that, A method is applied to a supporting device for an electronic device, the supporting device including an NFC device, the electronic device including a first antenna, and the NFC device in the supporting device including a second antenna; the method includes: If the supporting device meets the charging conditions, it receives energy sent by the electronic device in NFC charging mode for charging; wherein, the supporting device reuses its own existing NFC device for charging during the charging process; the charging conditions include the distance between the supporting device and the electronic device being less than or equal to a preset NFC charging distance, and / or the electronic device receiving a response message after sending a detection command to the supporting device; the charging conditions also include the electronic device receiving at least one response message after sending at least two detection commands to the supporting device. The step of receiving energy transmitted by the electronic device in NFC charging mode for charging includes: receiving an empty carrier carrying energy transmitted by the first antenna of the electronic device through the second antenna, and converting the energy carried by the empty carrier into electrical energy to charge the battery in the accessory device; the charging current of the accessory device is positively correlated with the transmission rate of the empty carrier.

11. The method according to claim 10, characterized in that, The method further includes: Obtain the device information request sent by the electronic device; Based on the device information request, the device information of the supporting device is sent to the electronic device; the device information is used to match the preset information in the electronic device, and when the device information matches the preset information, the electronic device switches the current mode to NFC charging mode.

12. The method according to claim 10 or claim 11, characterized in that, The method further includes: If the supporting equipment meets the non-charging conditions, then the supporting equipment will perform a non-charging operation.

13. A charging device, characterized in that, An electronic device including an NFC device, wherein the existing NFC device in the electronic device includes a first antenna; the device includes: A mode switching module is used to switch the current mode of the electronic device to NFC charging mode if the corresponding accessory device of the electronic device meets the charging conditions; the accessory device includes a second antenna; the charging conditions include the distance between the accessory device and the electronic device being less than or equal to a preset NFC charging distance, and / or the electronic device receiving a response message after sending a detection command to the accessory device; the charging conditions also include the electronic device receiving at least one response message after sending at least two detection commands to the accessory device. The first charging module is used to charge the supporting device by reusing the existing NFC device through the NFC charging mode; The first charging module is also used to transmit an energy-carrying space carrier to the second antenna through the first antenna; the second antenna is used to convert the energy carried by the space carrier into electrical energy and charge the battery of the supporting device. The first charging module is also used to acquire the charging current of the supporting device, determine the transmission rate of the empty carrier based on the charging current, and transmit the energy-carrying empty carrier to the second antenna at the transmission rate; the charging current and the transmission rate of the empty carrier are positively correlated.

14. A charging device, characterized in that, A supporting device for an electronic device, the supporting device including an NFC device, the electronic device including a first antenna, and the NFC device in the supporting device including a second antenna; the device includes: The second charging module is used to receive energy sent by the electronic device in NFC charging mode for charging if the supporting device meets the charging conditions; wherein, the supporting device reuses its own existing NFC device for charging during the charging process; the charging conditions include the distance between the supporting device and the electronic device being less than or equal to a preset NFC charging distance, and / or the electronic device receiving a response message after sending a detection command to the supporting device; the charging conditions also include the electronic device receiving at least one response message after sending at least two detection commands to the supporting device. The second charging module is also used to receive an energy-carrying empty carrier transmitted by the first antenna of the electronic device through the second antenna, and convert the energy carried by the empty carrier into electrical energy to charge the battery in the supporting device; the charging current of the supporting device is positively correlated with the transmission rate of the empty carrier.

15. A computer device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the computer program is executed by the processor, the processor performs the steps of the charging method as described in any one of claims 1 to 9, or the steps of the charging method as described in any one of claims 10 to 12.

16. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the charging method as described in any one of claims 1 to 9, or the steps of the charging method as described in any one of claims 10 to 12.

17. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program implements the steps of the charging method according to any one of claims 1 to 9, or the steps of the charging method according to any one of claims 10 to 12.

Citation Information

Patent Citations

  • Electronic equipment and working mode switching method

    CN112448726A

  • Managing contactless communication and contactless charging and corresponding contactless devices

    CN114765466A

  • Apparatus and method for non-contact recharging and near field communication in a portable electronic device

    US8957633B2

  • Method for near-field communication power regulation, and apparatus and device

    WO2022016954A1