CN115663951A - Charging method, charging device, computer equipment and computer-readable storage medium - Google Patents

Charging method, charging device, computer equipment and computer-readable storage medium Download PDF

Info

Publication number
CN115663951A
CN115663951A CN202211301445.4A CN202211301445A CN115663951A CN 115663951 A CN115663951 A CN 115663951A CN 202211301445 A CN202211301445 A CN 202211301445A CN 115663951 A CN115663951 A CN 115663951A
Authority
CN
China
Prior art keywords
charging
equipment
nfc
mode
electronic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211301445.4A
Other languages
Chinese (zh)
Inventor
陈华星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202211301445.4A priority Critical patent/CN115663951A/en
Publication of CN115663951A publication Critical patent/CN115663951A/en
Pending legal-status Critical Current

Links

Images

Abstract

The present application relates to a charging method, apparatus, computer device, computer readable storage medium and computer program product. The method comprises the following steps: if the corollary equipment corresponding to the electronic equipment meets the charging condition, switching the current mode of the electronic equipment into an NFC charging mode; and multiplexing the existing NFC device through the NFC charging mode to charge the corollary equipment. By adopting the method, the hardware cost of charging can be reduced.

Description

Charging method, charging device, computer equipment and computer-readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a charging method, an apparatus, a computer device, and a computer-readable storage medium.
Background
With the development of communication technology, electronic devices can communicate in more communication ways. For example, cellular network Communication, wireless Fidelity (Wi-Fi) Communication, global Positioning System (GPS) Communication, bluetooth (BT) Communication, near Field Communication (NFC), and the like. The near field communication technology is widely applied to life of people, such as common subway, public transport, unionpay flash payment, access control systems and the like. The traditional near field communication technology can not only realize the near field communication function, but also be applied to a special NFC charging seat to charge other equipment.
However, the conventional charging method has a problem of high hardware cost.
Disclosure of Invention
The embodiment of the application provides a charging method, a charging device, an electronic device, a computer readable storage medium and a computer program product, which can reduce the charging hardware cost.
In a first aspect, the present application provides a charging method applied to an electronic device including an NFC device. The method comprises the following steps:
if the matched equipment corresponding to the electronic equipment meets the charging condition, switching the current mode of the electronic equipment into an NFC charging mode;
and multiplexing the existing NFC device to charge the corollary equipment through the NFC charging mode.
In a second aspect, the present application further provides a charging apparatus applied to an electronic device including an NFC device. The device comprises:
the mode switching module is further configured to switch a current mode of the electronic device to an NFC charging mode if the supporting device corresponding to the electronic device meets a charging condition,
and the first charging module is used for charging the matched equipment by multiplexing the existing NFC device through the NFC charging mode.
In a third aspect, the present application further provides an electronic device. The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor realizes the following steps when executing the computer program:
if the corollary equipment corresponding to the electronic equipment meets the charging condition, switching the current mode of the electronic equipment into an NFC charging mode;
and multiplexing the existing NFC device to charge the corollary equipment through the NFC charging mode.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
if the corollary equipment corresponding to the electronic equipment meets the charging condition, switching the current mode of the electronic equipment into an NFC charging mode;
and multiplexing the existing NFC device to charge the corollary equipment through the NFC charging mode.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprising a computer program which when executed by a processor performs the steps of:
if the corollary equipment corresponding to the electronic equipment meets the charging condition, switching the current mode of the electronic equipment into an NFC charging mode;
and multiplexing the existing NFC device to charge the corollary equipment through the NFC charging mode.
According to the charging method, the charging device, the electronic equipment, the computer readable storage medium and the computer program product, if the matched equipment corresponding to the electronic equipment meets the charging condition, the current mode of the electronic equipment is switched to the NFC charging mode, and the existing NFC device is reused to charge the matched equipment through the NFC charging mode, so that the matched equipment is prevented from being charged through new hardware in the NFC charging mode, and the charging hardware cost can be reduced.
The embodiment of the application provides another charging method, another charging device, a supporting device, a computer readable storage medium and a computer program product, which can reduce the hardware cost of charging.
In a sixth aspect, the present application provides a charging method, which is applied to a matching device corresponding to an electronic device, where the matching device includes an NFC device. The method comprises the following steps:
if the matched equipment meets the charging condition, receiving energy sent by the electronic equipment in an NFC charging mode for charging; the matched equipment reuses the existing NFC device for charging in the charging process.
In a seventh aspect, the present application further provides a charging apparatus, which is applied to a supporting device corresponding to an electronic device, where the supporting device includes an NFC device. The device comprises:
the second charging module is used for receiving the energy sent by the electronic equipment in the NFC charging mode for charging if the matched equipment meets the charging condition; the matched equipment reuses the existing NFC device for charging in the charging process.
In an eighth aspect, the application further provides a matching device. The corollary equipment comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the following steps when executing the computer program:
if the matched equipment meets the charging condition, receiving energy sent by the electronic equipment in an NFC charging mode for charging; the matched equipment reuses the existing NFC device for charging in the charging process.
In a ninth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
if the matched equipment meets the charging condition, receiving energy sent by the electronic equipment in an NFC charging mode for charging; the matched equipment multiplexes the existing NFC device for charging in the charging process.
In a tenth aspect, the present application further provides a computer program product. The computer program product comprising a computer program which when executed by a processor performs the steps of:
if the matched equipment meets the charging condition, receiving energy sent by the electronic equipment in an NFC charging mode for charging; the matched equipment reuses the existing NFC device for charging in the charging process.
According to the charging method, the charging device, the accessory equipment, the computer readable storage medium and the computer program product, if the accessory equipment meets the charging condition, the energy sent by the electronic equipment in the NFC charging mode is received for charging, and the accessory equipment reuses the existing NFC device for charging in the charging process, so that the accessory equipment can realize the charging function through the existing NFC device, a special charging interface is prevented from being added in the accessory equipment, and the charging hardware cost can be reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of an exemplary charging method;
FIG. 2 is a flow diagram of a charging method in one embodiment;
fig. 3 is a schematic diagram illustrating NFC charging of a stylus by a smart phone in one embodiment;
FIG. 4 is a diagram illustrating near field communication between a smartphone and a stylus in one embodiment;
FIG. 5 is a schematic diagram of a smartphone and a smartwatch near field communication in one embodiment;
FIG. 6 is a diagram of an interface including a prompt in one embodiment;
fig. 7 is a schematic diagram illustrating that near field communication with a smart watch is required during charging of a stylus by a smart phone in one embodiment;
FIG. 8 is a flow chart of a charging method in another embodiment;
FIG. 9 is a block diagram of a charging device according to an embodiment;
fig. 10 is a block diagram showing the structure of a charging device in another embodiment;
FIG. 11 is a diagram illustrating an internal structure of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application.
The charging method provided by the embodiment of the application can be applied to the application environment shown in fig. 1. The electronic device 102 comprises a near field communication, NFC, device; if the corollary equipment 104 corresponding to the electronic equipment 102 meets the non-charging condition, the electronic equipment 102 switches the current mode to the NFC communication mode; if the corollary equipment 104 meets the charging condition, the electronic equipment 102 switches the current mode to the NFC charging mode; the existing NFC device is multiplexed to charge the companion device 104 through the NFC charging mode. The electronic device 102 may be a terminal, and the terminal may be but is not limited to various personal computers, notebook computers, smart phones, tablet computers, internet of things devices and portable wearable devices, and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart car-mounted devices, smart cars, and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like. The companion device 104 is a device that is associated with an electronic device, and may be, but is not limited to, an IoT (Internet of things) device, a stylus pen associated with the electronic device, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The IoT devices may be smart toothbrushes, smart watches, smart bracelets, head-worn devices, smart scales, and the like.
In one embodiment, as shown in fig. 2, a charging method is provided, which is illustrated by applying the method to the electronic device in fig. 1 as an example; the charging method comprises the following steps:
step 202, if the corollary equipment corresponding to the electronic equipment meets the charging condition, switching the current mode of the electronic equipment into an NFC charging mode.
Near Field Communication (NFC) enables Communication equipment to exchange data under the condition that the Communication equipment is close to each other, is integrated and evolved from non-contact Radio Frequency Identification (RFID) and interconnection and intercommunication technologies, and realizes applications such as mobile payment, electronic ticketing, entrance guard, mobile identity identification, anti-counterfeiting and the like by integrating functions of an induction type card reader, an induction type card and point-to-point Communication on a single NFC chip and by utilizing a mobile terminal.
The modes of the electronic device include an NFC communication mode and an NFC charging mode. The NFC communication mode is a mode in which the electronic device performs near field communication, and the NFC charging mode is a mode in which the electronic device multiplexes an existing NFC device to charge the accessory device. The existing NFC device in the electronic equipment comprises an NFC chip and a first antenna, the NFC chip is used for processing an NFC instruction, and the first antenna is used for receiving and transmitting the NFC instruction and transmitting a null carrier carrying energy. The existing NFC device in the electronic device may support a near field communication function, such as reading a tag card, swiping a point of sale (POS) device, and the like.
The corollary equipment is the equipment that matches with electronic equipment. Illustratively, the electronic device is a mobile phone, and the corollary device may be a stylus pen for triggering on a screen of the mobile phone, a smart watch, a smart bracelet, or the like matched with the mobile phone.
The charging condition refers to a condition in which the accessory device is in a charging state. The charging condition comprises that the distance between the matched equipment and the electronic equipment is smaller than or equal to the preset NFC charging distance, and/or response information is received after a detection instruction is sent to the matched equipment.
The NFC charging distance refers to a maximum distance value within a distance range in which the electronic device performs NFC charging on the accessory device. The preset NFC charging distance may be set as needed. Illustratively, the NFC charging distance of the electronic device to the accessory device is 0 to 5cm (centimeter), and the preset NFC charging distance is 5cm.
It can be understood that the distance between the accessory device and the electronic device is less than or equal to the preset NFC charging distance, which indicates that the accessory device is in a charging state; the electronic equipment receives the response information after sending the detection instruction to the matched equipment, and the indication that the distance between the matched equipment and the electronic equipment is smaller than or equal to the NFC charging distance is shown, namely the matched equipment is also in a charging state.
Optionally, the electronic device includes a hall sensor, and if the hall voltage detected by the hall sensor is less than a preset voltage, it represents that the distance between the corollary 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, the distance between the characterization supporting equipment and the electronic equipment is smaller than or equal to the preset NFC charging distance.
A hall sensor is a magnetic field sensor made according to the hall effect. The basic principle of the hall sensor is as follows: the Hall sensor is provided with a Hall semiconductor chip, and a constant current I flows from A to B and passes through the Hall semiconductor chip; when the hall semiconductor chip is in a magnetic field environment, the electron current of the constant current I is deflected to one side by the lorentz force when passing through the hall semiconductor chip, so that the hall semiconductor chip generates a potential difference in the transverse Direction (CD), which is a so-called hall voltage. Whether the magnetic field exists can be judged by detecting the Hall voltage through the Hall sensor.
Alternatively, the corollary equipment can include metal, and the distance between metal and hall sensor is inversely proportional to the hall voltage detected by the hall sensor. It will be appreciated that the metal in the kit may generate a magnetic field and thus a hall voltage. Optionally, a metal may also be included in the electronic device. The metal may be a magnet or the like, but is not limited thereto.
If the Hall voltage detected by the Hall sensor is greater than or equal to the preset voltage, the distance between the characterization supporting equipment and the electronic equipment is smaller than or equal to the preset NFC charging distance, and the supporting equipment meets the charging condition.
Optionally, the charging condition includes that the electronic device receives at least one piece of response information after sending the at least two detection instructions to the accessory device. The charging condition can also comprise at least one of the charge of the accessory equipment being lower than or equal to a first charge threshold, the charge of the electronic equipment being higher than or equal to a second charge threshold, and a user-triggered charging instruction; wherein the first threshold of electrical quantity is lower than the second threshold of electrical quantity.
Optionally, if the electronic device detects that the corresponding accessory device meets the charging condition, determining a current mode; if the current mode is not the NFC charging mode, switching the current mode into the NFC charging mode; if the current mode is the NFC charging mode, the mode switching may not be performed.
In one embodiment, as shown in fig. 3, the electronic device is a smart phone, and the accessory device is a stylus pen. The smart phone comprises a first antenna, metal and a Hall sensor; the stylus pen includes a magnet, a second antenna, a PCB (Printed Circuit Board), and a battery. The PCB board can be provided with a circuit and an NFC chip, and the NFC chip can realize an NFC instruction interaction function. The metal in the smart phone can also be a magnet, and the PCB in the handwriting pen is a support body of electronic components and is a carrier for electrically interconnecting the electronic components.
The handwriting pen is adsorbed to a preset position of the smart phone through a magnet, and metal is attached to the inner wall of the smart phone at the preset position; the smart phone detects that the Hall voltage is greater than or equal to a preset voltage through the Hall sensor, the fact that the distance between the stylus pen and the smart phone is smaller than or equal to an NFC charging distance is indicated, the stylus pen is in a state of being placed at a preset position, namely the stylus pen meets a charging condition, the smart phone switches the current mode into an NFC charging mode, an existing first antenna is multiplexed through the NFC charging mode, and continuous energy-carrying empty carriers are sent to a second antenna of the stylus pen; the second antenna converts the energy in the null carrier wave into electrical energy and charges the battery in the stylus pen. The preset position can be a groove, and the stylus pen can be accurately embedded into the groove.
And step 204, multiplexing the existing NFC device through the NFC charging mode to charge the corollary equipment.
It can be understood that, the electronic device charges the accessory device by multiplexing the existing NFC device in the NFC charging mode, and in order to improve charging efficiency, the power of the accessory device is smaller than the preset power threshold. The preset power threshold value can be set as required and is a small value.
According to the charging method, if the matched equipment corresponding to the electronic equipment meets the charging condition, the current mode of the electronic equipment is switched to the NFC charging mode, the existing NFC device is reused for charging the matched equipment through the NFC charging mode, the matched equipment is prevented from being charged through new hardware in the NFC charging mode, and the hardware cost of wireless charging can be reduced.
In one embodiment, if a corollary device corresponding to the electronic device meets a charging condition, switching a current mode of the electronic device to an NFC charging mode includes: if the matched equipment corresponding to the electronic equipment meets the charging condition, sending an equipment information request to the matched equipment; and acquiring the equipment information sent by the supporting equipment based on the equipment information request, and if the equipment information is matched with the preset information, switching the current mode of the electronic equipment into the NFC charging mode.
The device information of the accessory device may include a device type, a device identifier, power information of the device, a charging state of the device, and the like of the accessory device. The device identifier may be, without limitation, a name, a model, a pattern, and the like of the device.
For example, the accessory device is a stylus pen, and the device information of the accessory device may include a device type, that is, a stylus pen type, a device model, and the like.
Optionally, the accessory device responds to the received device information request, obtains device information of the accessory device, and sends the device information to the electronic device. After the electronic equipment acquires the equipment information of the matched equipment, matching the equipment information with the stored preset information; if the device information is matched with the preset information, it is indicated that the matching between the matching device and the electronic device is successful, the electronic device can charge the matching device, and the current mode of the electronic device is switched to the NFC charging mode. If the device information is not matched with the preset information, prompt information of unsuccessful matching can be displayed in a screen of the electronic device.
In this embodiment, if the accessory device corresponding to the electronic device satisfies the charging condition, the device information request is sent to the accessory device, the device information sent by the accessory device based on the device information request is acquired, and if the device information matches the preset information, the current mode of the electronic device is switched to the NFC charging mode.
In one embodiment, charging a companion device via an NFC charging mode includes: acquiring the battery power of the matched equipment; determining a charging current based on a battery level of the accessory device; and charging the matched equipment with the charging current through the NFC charging mode.
Optionally, the electronic device determines a current charging node of the accessory device based on the battery capacity of the accessory device; a charging current is determined based on the present charging node.
It can be understood that the charging process comprises trickle, constant current and constant voltage nodes in sequence, and when the electric quantity of the battery is lower, namely the voltage of the battery is lower, trickle charging is adopted; the electric quantity of the battery is increased until the voltage of the battery reaches a first voltage, and constant current charging is adopted; the electric quantity of the battery continues to rise until the voltage of the battery reaches a second voltage, and constant-voltage charging is adopted; wherein the first voltage is less than the second voltage. The charging current of the trickle node is smaller than that of the constant-current node, and the charging current of the constant-voltage node is smaller than that of the constant-current node.
Optionally, the electronic device may convert the charging current into a null carrier carrying energy, and send the null carrier to the accessory device, and the accessory device may convert the energy in the null carrier into electric energy to charge the battery.
In this embodiment, the battery power of the accessory device is obtained, the charging current corresponding to the battery power can be determined based on the battery power of the accessory device, and then the accessory device is charged with the charging current in the NFC charging mode, so that the battery of the accessory device can be more safely protected in the charging process.
In one embodiment, acquiring the battery power of the accessory device includes: sending an electric quantity acquisition request to the corollary equipment at intervals of preset time length or random time length, and receiving the battery electric quantity of the corollary equipment returned by the corollary equipment based on the electric quantity acquisition request; determining a charging current based on a battery level of a companion device, comprising: the charging current is determined based on the battery level of the latest companion device received.
The preset duration can be set as required. For example, the preset time period may be 0.1ms (milliseconds). The random duration may be obtained by a random function.
Optionally, the electronic device sends an electric quantity acquisition request to the accessory device at preset time intervals, and receives the battery electric quantity of the accessory device returned by the accessory device based on the electric quantity acquisition request; and determining the current charging node of the matched equipment based on the received latest battery capacity of the matched equipment, and determining the charging current of the current charging node.
Optionally, if the electronic device determines that the charging node of the accessory device changes based on the received latest battery capacity of the accessory device, the latest charging current of the current charging node is determined, the charging current is adjusted to the latest charging current, and the accessory device is charged with the latest charging current through the NFC charging mode.
For example, if the electronic device determines that the charging node of the accessory device is switched from the trickle node to the constant current node based on the latest battery capacity of the accessory device received, the charging current of the current constant current node is determined, the charging current of the constant current node is adjusted, and the accessory device is charged with the charging current of the constant current node in the NFC charging mode.
In this embodiment, at intervals of a preset time duration or a random time duration, an electric quantity acquisition request is sent to the accessory device, the battery electric quantity of the accessory device returned by the accessory device based on the electric quantity acquisition request is received, and the charging current can be determined based on the received latest battery electric quantity of the accessory device, so that the accessory device is charged with the corresponding charging current under different battery electric quantities, the battery of the accessory device is more safely protected in the charging process, and the charging accuracy is improved.
In one embodiment, an existing NFC device of an electronic device includes a first antenna; charging the corollary equipment, including: transmitting a null carrier carrying energy to a second antenna through a first antenna; the second antenna is used for converting the energy carried by the idle waves into electric energy and charging a battery of the matched equipment.
A null carrier is a waveform without a modulated signal, i.e., a carrier that does not carry command information and provides energy.
Optionally, the accessory device includes a second antenna, and the electronic device sends the null carrier carrying the energy to the second antenna of the accessory device through the first antenna; the second antenna of the corollary equipment receives the empty carrier wave carrying the energy, can convert the energy in the empty carrier wave into electric energy, and charge the battery in the corollary equipment.
Optionally, the electronic device obtains a charging current for the accessory device, determines a transmission rate of the null carrier based on the charging current, and transmits the null carrier carrying energy to the second antenna at the transmission rate; wherein the charging current and the transmission rate of the idle wave have a positive correlation.
That is, the greater the charging current of the companion device by the electronic device, the greater the transmission rate at which the electronic device transmits the null carrier carrying energy to the second antenna.
In this embodiment, the electronic device sends the idle carrier carrying energy to the second antenna through the first antenna, so that the second antenna in the accessory device can convert the energy carried by the idle carrier into electric energy, and charge a battery of the accessory device, thereby accurately implementing NFC charging of the accessory device by the electronic device.
In one embodiment, the method further comprises: and if the corollary equipment corresponding to the electronic equipment meets the non-charging condition, switching the current mode of the electronic equipment into the NFC communication mode.
The non-charging condition refers to a condition in which the companion device is in a non-charging state. The non-charging condition comprises that the distance between the matched equipment and the electronic equipment is larger than a preset NFC charging distance, and/or no response information is received after a detection instruction is sent to the matched equipment.
Optionally, if the hall sensor detects that the hall voltage is smaller 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.
It can be understood that the distance between the accessory device and the electronic device is greater than the preset NFC charging distance, which indicates that the accessory device is in a non-charging state; after the electronic equipment sends the detection instruction to the matched equipment, the response information is not received, and the fact that the distance between the matched equipment and the electronic equipment is larger than the NFC charging distance means that NFC charging cannot be carried out, namely the matched equipment is also in a non-charging state. The NFC charging distance is also referred to as an NFC communication distance.
Optionally, the non-charging condition includes that the electronic device does not receive the response message after sending the at least two detection instructions to the accessory device. For example, if the electronic device repeatedly sends the detection instruction to the accessory device three times without receiving the response message, it indicates that the distance between the accessory device and the electronic device is greater than the NFC charging distance. It can be understood that the electronic device sends the detection instruction to the accessory device at least twice, and if no response information is received, the accessory device is in a non-charging state, so that the problem of false detection when the electronic device detects the distance between the electronic device and the accessory device or the problem of false detection caused by the shaking of the accessory device can be prevented, and whether the accessory device meets the non-charging condition or not can be determined more accurately. Meanwhile, the electronic equipment sends a detection instruction to the corollary equipment to detect whether the corollary equipment meets the non-charging condition or not, so that the hardware cost of the Hall sensor and the like can be saved.
Optionally, the non-charging condition may further include at least one of that the electric quantity of the accessory device is higher than a third electric quantity threshold, that the electric quantity of the electronic device is lower than a fourth electric quantity threshold, and a non-charging instruction triggered by a user; wherein the third charge threshold is higher than the fourth charge threshold. The third electric quantity threshold and the fourth electric quantity threshold can be set according to requirements. Illustratively, the third charge threshold may be 90% and the fourth charge threshold may be 10%.
Optionally, if the electronic device detects that the corresponding corollary device meets the non-charging condition, determining a current mode; if the current mode is not the NFC communication mode, switching the current mode to the NFC communication mode; if the current mode is the NFC communication mode, mode switching may not be performed.
It should be noted that, if it is detected that the accessory device corresponding to the electronic device satisfies the non-charging condition, the current mode of the electronic device is switched to the NFC communication mode, and the electronic device may perform near field communication with the accessory device through the NFC communication mode, or may perform near field communication with another near field communication device through the NFC communication mode, which is not limited herein.
In an embodiment, as shown in fig. 4, the electronic device is a smart phone, and the supporting device is a stylus pen for example. If the stylus pen is taken down from the smart phone, namely the stylus pen is in a take-down state, the distance between the stylus pen and the smart phone is larger than the NFC charging distance, the stylus pen meets a non-charging condition, the smart phone can switch the current mode into an NFC communication mode, and in the NFC communication mode, the smart phone sends an NFC instruction to a second antenna in the stylus pen through a first antenna and receives the NFC instruction sent by the second antenna of the stylus pen through the first antenna.
In another embodiment, the electronic device is a smart phone, and the accessory device is a smart band. If the response information of the smart band is not received after the smart phone sends the detection information to the smart band, the smart band meets the non-charging condition, the current mode of the smart phone can be switched to the NFC communication mode, and in the NFC communication mode, the smart phone sends the NFC instruction to a second antenna in the smart band through a first antenna and receives the NFC instruction sent by the second antenna of the smart band through the first antenna.
In another embodiment, as shown in fig. 5, the electronic device is a smart phone, and the accessory device is a stylus pen. If the handwriting pen meets the non-charging condition, if the electric quantity of the handwriting pen reaches 100%, the smart phone switches the current mode into the NFC communication mode, and the smart phone can perform near field communication with the smart watch through the NFC device.
In one embodiment, the method further comprises: if the electronic equipment needs to perform near field communication with the near field communication equipment, displaying prompt information; the prompt message is used for prompting the user to operate the corollary equipment so as to meet the non-charging condition.
A near field communication device is a device that performs near field communication with an electronic device. The near field communication device may be the above-mentioned companion device, or may be different from the above-mentioned companion device. For example, the near field communication device may be a stylus pen, a door access device, a subway gate, or other mobile phone, and the like, but is not limited thereto.
It can be understood that, in the process of charging the accessory device by the electronic device multiplexing the existing NFC device, near field communication cannot be performed with the near field communication device through the NFC device, and therefore if it is detected that the electronic device needs to perform near field communication with the near field communication device, prompt information is displayed for prompting a user to operate the accessory device to meet a non-charging condition, that is, the electronic device does not charge the accessory device, and then the electronic device can switch the NFC charging mode to the NFC communication mode, and perform near field communication with the near field communication device by using the NFC device.
Optionally, if the electronic device detects that the corresponding accessory device meets the charging condition and the electronic device needs to perform near field communication with the near field communication device, displaying the prompt information; if the matched equipment corresponding to the electronic equipment is detected to meet the non-charging condition, the prompt information can not be displayed.
In this embodiment, if the electronic device needs to perform near field communication with the near field communication device, a prompt message is displayed, where the prompt message is used to prompt the user to operate the accessory device so as to meet the non-charging condition, so that a conflict between an NFC communication mode and an NFC charging mode in the electronic device can be avoided, and accuracy of mode switching is improved.
In one embodiment, as shown in fig. 6, the electronic device is a smart phone, and the accessory device is a stylus pen. If it needs to carry out near field communication with near field communication equipment to detect the smart mobile phone, then on the interface that the NFC switch was opened to the smart mobile phone, show tip information, this tip information includes "warm warning: before the mobile phone is used for reading the tag card or swiping the card, please take down the handwriting pen first, and the prompt information can be used for prompting a user to take down the handwriting pen, so that the distance between the handwriting pen and the smart phone is larger than the NFC charging distance, namely the handwriting pen meets the non-charging condition.
In one embodiment, as shown in fig. 7, the electronic device is a smart phone, the accessory device is a stylus pen, and the near field communication device is a smart watch. The handwriting pen meets the charging condition, the handwriting pen is charged by the smart phone in an NFC charging mode, and if the smart phone detects that near field communication with the smart watch is needed, prompt information is displayed; the prompt message is used for prompting the user to operate the stylus pen to meet the non-charging condition. When the distance between the stylus pen and the smart phone is larger than the NFC distance, the stylus pen meets the non-charging condition, the smart phone switches the NFC charging mode into the NFC communication mode, and near field communication is carried out between the smart phone and the smart watch in the NFC communication mode.
In one embodiment, a charging method is also provided and applied to an electronic device comprising a Near Field Communication (NFC) device and a Hall sensor; the charging method comprises the following steps:
if the corollary equipment corresponding to the electronic equipment meets the non-charging condition, executing the step A1; if the matched equipment corresponding to the electronic equipment meets the charging condition, executing the step A2 to the step A6; the non-charging condition comprises that the distance between the matched equipment and the electronic equipment is larger than a preset NFC charging distance, and/or no response information is received after a detection instruction is sent to the matched equipment; the charging condition comprises that the distance between the matched equipment and the electronic equipment is less than or equal to a preset NFC charging distance, and/or response information is received after a detection instruction is sent to the matched equipment; if the Hall voltage detected by the Hall sensor is smaller than the preset voltage, representing that the distance between the matched equipment and the electronic equipment is larger than the preset NFC charging distance; if the Hall voltage detected by the Hall sensor is greater than or equal to the preset voltage, the distance between the characterization supporting equipment and the electronic equipment is smaller than or equal to the preset NFC charging distance.
Step A1, switching the current mode of the electronic equipment into an NFC communication mode.
And step A2, sending the equipment information request to the corollary equipment.
And A3, acquiring equipment information sent by the supporting equipment based on the equipment information request, and if the equipment information is matched with preset information, switching the current mode of the electronic equipment into an NFC charging mode.
Step A4, sending an electric quantity acquisition request to the corollary equipment at intervals of preset time or random time, and receiving the battery electric quantity of the corollary equipment returned by the corollary equipment based on the electric quantity acquisition request; the charging current is determined based on the battery level of the latest companion device received.
Step A5, in an NFC charging mode, sending a no-load wave carrying energy corresponding to charging current to a second antenna of the matched equipment through a first antenna in the electronic equipment; the second antenna is used for converting the energy carried by the idle waves into electric energy and charging a battery of the matched equipment.
Step A6, if the electronic equipment and the near field communication equipment need to carry out near field communication, displaying prompt information; the prompt message is used for prompting the user to operate the corollary equipment so as to meet the non-charging condition.
In one embodiment, as shown in fig. 8, a charging method is provided, which is described by taking an example that the method is applied to the accessory device in fig. 1, where the accessory device includes a near field communication NFC device; the charging method comprises the following steps:
step 802, if the corollary equipment meets the non-charging condition, the corollary equipment carries out non-charging operation.
The non-charging operation is an operation other than charging. For example, the non-charging operation may be a function operation of the accessory device itself, for example, the NFC communication, the non-charging operation performed by the stylus pen may be a trigger operation performed on the screen, and for example, the non-charging operation performed by the smart watch may be a biological information acquisition operation, a dial display operation, or a voice call operation of the user.
Step 804, if the corollary equipment meets the charging condition, receiving energy sent by the electronic equipment in the NFC charging mode for charging; the matched equipment reuses the existing NFC device for charging in the charging process.
The corollary equipment comprises an NFC device, the NFC device comprises a second antenna, and can also comprise an NFC chip and the like; the second antenna is used for receiving and transmitting the NFC instruction, receiving the empty carrier carrying energy and converting the energy in the empty carrier into electric energy; the NFC chip is used for processing the NFC instruction.
Optionally, if the corollary equipment meets the charging condition, the electronic equipment switches the current mode to the NFC charging mode, and sends the null carrier carrying energy to the corollary equipment through the first antenna; the existing NFC device of the self multiplexing of the corollary equipment receives the empty carrier wave carrying the energy, converts the energy in the empty carrier wave into electric energy, and charges the battery in the corollary equipment.
Optionally, the non-charging condition includes that a distance between the accessory device and the electronic device is greater than a preset NFC charging distance, and/or no response information is received after the detection instruction is sent to the accessory device; the charging condition comprises that the distance between the matched equipment and the electronic equipment is smaller than or equal to the preset NFC charging distance, and/or response information is received after a detection instruction is sent to the matched equipment.
Optionally, the electronic device includes a hall sensor, and if the hall voltage detected by the hall sensor is smaller than a preset voltage, it is represented that the distance between the supporting 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, the distance between the characterization supporting equipment and the electronic equipment is smaller than or equal to the preset NFC charging distance.
According to the charging method, if the matched equipment meets the non-charging condition, the matched equipment carries out non-charging operation; if the corollary equipment satisfies the charging condition, the energy that the electronic equipment sent under the NFC charging mode is received and charges to the corollary equipment multiplexing existing NFC device of self charges in the charging process, then the corollary equipment can realize non-charging operation and the function of charging through the existing NFC device of self, avoids increasing special interface that charges in the corollary equipment, can reduce the hardware cost of charging. Meanwhile, the matched equipment multiplexes the existing NFC device for charging, and the charging efficiency can be improved.
In one embodiment, the method further comprises: acquiring a device information request sent by electronic equipment; sending the equipment information of the matched equipment to the electronic equipment based on the equipment information request; the device information is used for being matched with the preset information in the electronic device, and under the condition that the device information is matched with the preset information, the electronic device switches the current mode into the NFC charging mode.
Optionally, if the accessory device meets the charging condition, when receiving a device information request sent by the electronic device, responding to the device information request, obtaining device information of the accessory device, and sending the device information to the electronic device. The electronic equipment matches the equipment information with the preset information, if the equipment information is matched with the preset information, the current mode is switched to the NFC charging mode, and the existing NFC device is reused to charge the matched equipment through the NFC charging mode. The corollary equipment receives the energy that electronic equipment sent under NFC charging mode and charges.
In this embodiment, the accessory device acquires the device information request sent by the electronic device, and sends the device information of the accessory device to the electronic device based on the device information request, so that the device information can be used for being matched with preset information in the electronic device, and under the condition that the device information is matched with the preset information, the electronic device switches the current mode into the NFC charging mode, so that the electronic device can charge the accessory device in the NFC charging mode, and the charging accuracy is improved.
In one embodiment, the NFC device in the companion device includes a second antenna; receiving energy sent by an electronic device in an NFC charging mode for charging, comprising: and receiving the empty carrier wave carrying energy sent by the first antenna of the electronic equipment through the second antenna, converting the energy carried by the empty carrier wave into electric energy, and charging a battery in the matched equipment.
Optionally, the existing near field communication device of the electronic device includes a first antenna, and the accessory device receives, through a second antenna, a null carrier wave carrying energy sent by the first antenna in the electronic device, converts the energy carried by the null carrier wave into electric energy, and charges a battery in the accessory device.
In this embodiment, the accessory device receives the empty carrier wave carrying energy sent by the electronic device, converts the energy carried by the empty carrier wave into electric energy, charges a battery in the accessory device, and accurately realizes that the electronic device performs NFC charging on the accessory device.
In an embodiment, a charging method is further provided, which is applied to a companion device corresponding to an electronic device, where the companion device includes a near field communication NFC device, and the NFC device includes a second antenna; the charging method comprises the following steps:
if the matched equipment meets the non-charging condition, executing the step B1; and if the matched equipment meets the charging condition, executing the steps B2 to B4.
And step B1, the corollary equipment carries out non-charging operation.
And B2, acquiring a device information request sent by the electronic device.
B3, based on the equipment information request, sending the equipment information of the matched equipment to the electronic equipment; the device information is used for being matched with the preset information in the electronic device, and under the condition that the device information is matched with the preset information, the electronic device switches the current mode into the NFC charging mode.
Step B4, receiving the empty carrier wave carrying energy sent by the electronic equipment through a second antenna, converting the energy carried by the empty carrier wave into electric energy, and charging a battery in the matched equipment; the matched equipment reuses the existing NFC device for charging in the charging process.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides a charging device for implementing the charging method mentioned above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so specific limitations in one or more embodiments of the charging device provided below can be referred to the limitations on the charging method in the above, and are not described herein again.
In one embodiment, as shown in fig. 9, there is provided a charging apparatus applied to an electronic device including a near field communication NFC device; the charging device includes: a mode switching module 902 and a first charging module 904, wherein:
the mode switching module 902 is configured to switch a current mode of the electronic device to an NFC charging mode if the supporting device corresponding to the electronic device meets the charging condition.
The first charging module 904 is configured to charge the accessory device by multiplexing the existing NFC device through the NFC charging mode.
Above-mentioned charging device, if the corollary equipment that electronic equipment corresponds satisfies the condition of charging, then switch into the NFC mode of charging with the current mode that locates of electronic equipment to and charge to corollary equipment through the multiplexing existing NFC device of NFC mode of charging, avoided charging to corollary equipment through new hardware under the NFC mode of charging, can reduce the hardware cost of charging.
In one embodiment, the charging condition includes that a distance between the accessory device and the electronic device is less than or equal to a preset NFC charging distance, and/or a response message is received after a detection instruction is sent to the accessory device.
In one embodiment, the electronic device includes a hall sensor, and if the hall voltage detected by the hall sensor is greater than or equal to a preset voltage, the characterization indicates that the distance between the accessory device and the electronic device is less than or equal to a preset NFC charging distance.
In an embodiment, the mode switching module 902 is further configured to send the device information request to the accessory device if the accessory device corresponding to the electronic device meets the charging condition; and acquiring the equipment information sent by the supporting equipment based on the equipment information request, and if the equipment information is matched with the preset information, switching the current mode of the electronic equipment into the NFC charging mode.
In one embodiment, the first charging module 904 is further configured to obtain a battery level of the accessory device; determining a charging current based on a battery level of the accessory device; and charging the matched equipment with the charging current through the NFC charging mode.
In an embodiment, the first charging module 904 is further configured to send an electric quantity obtaining request to the accessory device every preset time or random time, and receive the battery electric quantity of the accessory device returned by the accessory device based on the electric quantity obtaining request; the charging current is determined based on the battery level of the latest companion device received.
In one embodiment, the existing NFC device of the electronic device comprises a first antenna, and the companion device comprises a second antenna; the first charging module 904 is further configured to send a null carrier carrying energy to a second antenna through the first antenna; the second antenna is used for converting the energy carried by the idle waves into electric energy and charging a battery of the matched equipment.
In an embodiment, the mode switching module 902 is further configured to switch a current mode of the electronic device to an NFC communication mode if the accessory device corresponding to the electronic device meets a non-charging condition.
In one embodiment, the non-charging condition includes that a distance between the accessory device and the electronic device is greater than a preset NFC charging distance, and/or no response message is received after the detection instruction is sent to the accessory device.
In one embodiment, the electronic device includes a hall sensor, and if the hall voltage detected by the hall sensor is smaller than a preset voltage, the characterization indicates that the distance between the accessory device and the electronic device is greater than a preset NFC charging distance.
In one embodiment, the apparatus further comprises a display module; the display module is used for displaying prompt information if the electronic equipment needs to carry out near field communication with the near field communication equipment; the prompt message is used for prompting the user to operate the corollary equipment so as to meet the non-charging condition.
Based on the same inventive concept, the embodiment of the present application further provides a charging device for implementing the charging method mentioned above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so specific limitations in one or more embodiments of the charging device provided below can be referred to the limitations on the charging method in the above, and are not described herein again.
In one embodiment, as shown in fig. 10, there is provided a charging apparatus applied to a companion device corresponding to an electronic device, where the companion device includes a near field communication NFC device; the charging device includes: a non-charging operation module 1002 and a second charging module 1004, wherein:
a non-charging operation module 1002, configured to perform a non-charging operation on the accessory device if the accessory device meets a non-charging condition.
The second charging module 1004 is configured to receive energy sent by the electronic device in the NFC charging mode for charging if the accessory device meets the charging condition; the matched equipment multiplexes the existing NFC device for charging in the charging process.
In the charging device, if the corollary equipment meets the non-charging condition, the corollary equipment carries out non-charging operation; if the corollary equipment satisfies the charging condition, the energy that the electronic equipment sent under the NFC charging mode is received and charges to the corollary equipment multiplexing existing NFC device of self charges in the charging process, then the corollary equipment can realize non-charging operation and the function of charging through the existing NFC device of self, avoids increasing special interface that charges in the corollary equipment, can reduce the hardware cost of charging. Meanwhile, the matched equipment reuses the existing NFC device for charging, and the charging efficiency can also be improved.
In one embodiment, the charging device further includes an obtaining module and a sending module; the receiving module is used for acquiring a device information request sent by the electronic device; the sending module is used for sending the equipment information of the matched equipment to the electronic equipment based on the equipment information request; the device information is used for being matched with the preset information in the electronic device, and under the condition that the device information is matched with the preset information, the electronic device switches the current mode into the NFC charging mode.
In one embodiment, the NFC device in the companion device includes a second antenna; the second charging module 1004 is further configured to receive, through the second antenna, a null carrier wave carrying energy and sent by the first antenna of the electronic device, convert the energy carried by the null carrier wave into electric energy, and charge a battery in the accessory device.
The charging device and each module in the charging device may be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be the electronic device or a companion device; the computer device may be a terminal, and its internal structure diagram may be as shown in fig. 11. The computer apparatus includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input device. The processor, the memory and the input/output interface are connected by a system bus, and the communication interface, the display unit and the input device are connected by the input/output interface to the system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The input/output interface of the computer device is used for exchanging information between the processor and an external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a charging method. The display unit of the computer device is used for forming a visual picture and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 11 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the charging method.
Embodiments of the present application also provide a computer program product containing instructions that, when run on a computer, cause the computer to perform a charging method.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data need to comply with the relevant laws and regulations and standards of the relevant country and region.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), magnetic Random Access Memory (MRAM), ferroelectric Random Access Memory (FRAM), phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. 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), for example. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims (20)

1. A charging method is applied to an electronic device including an NFC device; the method comprises the following steps:
if the corollary equipment corresponding to the electronic equipment meets the charging condition, switching the current mode of the electronic equipment into an NFC charging mode;
and multiplexing the existing NFC device through the NFC charging mode to charge the corollary equipment.
2. The method as claimed in claim 1, wherein the charging condition includes that a distance between the accessory device and the electronic device is less than or equal to a preset NFC charging distance, and/or a response message is received after a detection instruction is sent to the accessory device.
3. The method according to claim 2, wherein the electronic device includes a hall sensor, and if the hall voltage detected by the hall sensor is greater than or equal to a preset voltage, it is characterized that the distance between the accessory device and the electronic device is less than or equal to a preset NFC charging distance.
4. The method of claim 1, wherein switching a current mode of the electronic device to an NFC charging mode if the accessory device corresponding to the electronic device meets a charging condition comprises:
if the matched equipment corresponding to the electronic equipment meets the charging condition, sending an equipment information request to the matched equipment;
and acquiring the equipment information sent by the corollary equipment based on the equipment information request, and if the equipment information is matched with preset information, switching the current mode of the electronic equipment into an NFC charging mode.
5. The method of claim 1, wherein the charging the companion device via the NFC charging mode comprises:
acquiring the battery power of the corollary equipment;
determining a charging current based on a battery level of the companion device;
and charging the corollary equipment with the charging current through the NFC charging mode.
6. The method of claim 5, wherein the obtaining the battery level of the accessory device comprises:
sending an electric quantity acquisition request to the corollary equipment at intervals of preset time or random time, and receiving the battery electric quantity of the corollary equipment returned by the corollary equipment based on the electric quantity acquisition request;
the determining a charging current based on the battery power of the accessory device includes:
determining a charging current based on the latest battery level received from the companion device.
7. The method of any of claims 1-6, wherein the existing NFC device of the electronic device comprises a first antenna, and the companion device comprises a second antenna; the charging the corollary equipment includes:
transmitting a null carrier carrying energy to the second antenna through the first antenna; the second antenna is used for converting the energy carried by the idle wave into electric energy and charging a battery of the matched equipment.
8. The method according to any one of claims 1 to 6, further comprising:
and if the corollary equipment corresponding to the electronic equipment meets the non-charging condition, switching the current mode of the electronic equipment into an NFC communication mode.
9. The method according to claim 8, wherein the non-charging condition comprises that a distance between the accessory device and the electronic device is greater than a preset NFC charging distance, and/or that no response message is received after a detection instruction is sent to the accessory device.
10. The method according to claim 9, wherein the electronic device includes a hall sensor, and if the hall voltage detected by the hall sensor is less than a preset voltage, it is characterized that the distance between the accessory device and the electronic device is greater than a preset NFC charging distance.
11. The method of claim 8, further comprising:
if the electronic equipment needs to carry out near field communication with the near field communication equipment, displaying prompt information; the prompt message is used for prompting a user to operate the corollary equipment so as to meet the non-charging condition.
12. The charging method is characterized by being applied to matched equipment corresponding to electronic equipment, wherein the matched equipment comprises an NFC device; the method comprises the following steps:
if the matched equipment meets the charging condition, receiving energy sent by the electronic equipment in an NFC charging mode for charging; the matched equipment multiplexes the existing NFC device for charging in the charging process.
13. The method of claim 12, further comprising:
acquiring a device information request sent by the electronic device;
sending the equipment information of the corollary equipment to the electronic equipment based on the equipment information request; the device information is used for matching with preset information in the electronic device, and under the condition that the device information is matched with the preset information, the electronic device switches the current mode to the NFC charging mode.
14. The method of claim 12, wherein the NFC device in the companion device comprises a second antenna; the receiving the energy sent by the electronic device in the NFC charging mode for charging includes:
and receiving the empty carrier wave carrying energy sent by the first antenna of the electronic equipment through the second antenna, converting the energy carried by the empty carrier wave into electric energy, and charging a battery in the corollary equipment.
15. The method of any one of claims 12 to 14, further comprising:
and if the corollary equipment meets the non-charging condition, the corollary equipment carries out non-charging operation.
16. A charging apparatus, characterized by being applied to an electronic device including an NFC device; the device comprises:
the mode switching module is used for switching the current mode of the electronic equipment into an NFC charging mode if the matched equipment corresponding to the electronic equipment meets the charging condition;
and the first charging module is used for charging the matched equipment by multiplexing the existing NFC device through the NFC charging mode.
17. The charging device is characterized by being applied to matched equipment corresponding to electronic equipment, wherein the matched equipment comprises an NFC device; the device comprises:
the second charging module is used for receiving the energy sent by the electronic equipment in the NFC charging mode for charging if the matched equipment meets the charging condition; the matched equipment reuses the existing NFC device for charging in the charging process.
18. A computer arrangement comprising a memory and a processor, the memory having stored thereon a computer program, wherein the computer program, when executed by the processor, causes the processor to carry out the steps of the charging method as claimed in any one of claims 1 to 11, or the steps of the charging method as claimed in any one of claims 12 to 15.
19. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the charging method according to any one of claims 1 to 11, or the steps of the charging method according to any one of claims 12 to 15.
20. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, realizes the steps of the charging method of any one of claims 1 to 11 or the steps of the charging method of any one of claims 12 to 15.
CN202211301445.4A 2022-10-24 2022-10-24 Charging method, charging device, computer equipment and computer-readable storage medium Pending CN115663951A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211301445.4A CN115663951A (en) 2022-10-24 2022-10-24 Charging method, charging device, computer equipment and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211301445.4A CN115663951A (en) 2022-10-24 2022-10-24 Charging method, charging device, computer equipment and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN115663951A true CN115663951A (en) 2023-01-31

Family

ID=84990707

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211301445.4A Pending CN115663951A (en) 2022-10-24 2022-10-24 Charging method, charging device, computer equipment and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN115663951A (en)

Similar Documents

Publication Publication Date Title
US20220103678A1 (en) Management of movement states of an electronic device based on pass data
CN106101979B (en) Method for short-range wireless communication and electronic device using the same
US9413430B2 (en) Measurement and reporting of received signal strength in NFC enabled devices
US9559548B2 (en) Cover member, electronic device, and method for wireless charging
WO2020177619A1 (en) Method, device and apparatus for providing reminder to charge terminal, and storage medium
US9602286B2 (en) Electronic device and method for extracting encrypted message
KR20140112825A (en) Method and apparatus for electronic settlement in a electronic device
CN105631372A (en) Proximity monitoring device and method
CN105743158A (en) Apparatus and method for charging electronic device having battery
ES2753802T3 (en) Charging procedure, charging device and terminal
CN108093664B (en) Wireless power transmission method and apparatus
CN111835530B (en) Group joining method and device
CN103558749A (en) Intelligent watch
US10198057B2 (en) Electronic device and method for measuring position change
CN103558750A (en) Intelligent watch and method for sending electronic business cards
CN114513847B (en) Positioning method, device, system, electronic equipment and storage medium
CN105578385A (en) Method of transmitting and receiving data of electronic device and electronic device using the method
KR20150128081A (en) Method For Managing Key And Electronic Device Using The Same
US11740681B2 (en) Electronic device and application managing method thereof
CN106471481A (en) The method of sharing application program and its electronic installation
CN105404483A (en) Communication management method and system between electronic device and wearable electronic device
KR20160004712A (en) Method for communicating wireless in accordance with an unauthorized frequency band and a electronic device implementing the same
CN105830421A (en) Electronic device and operating method thereof
KR20150109110A (en) Input device for detecting external input
CN115663951A (en) Charging method, charging device, computer equipment and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination