CN114465366A - Wireless charging method and electronic equipment - Google Patents

Wireless charging method and electronic equipment Download PDF

Info

Publication number
CN114465366A
CN114465366A CN202110803043.3A CN202110803043A CN114465366A CN 114465366 A CN114465366 A CN 114465366A CN 202110803043 A CN202110803043 A CN 202110803043A CN 114465366 A CN114465366 A CN 114465366A
Authority
CN
China
Prior art keywords
wireless
wireless keyboard
charging
keyboard
current
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.)
Granted
Application number
CN202110803043.3A
Other languages
Chinese (zh)
Other versions
CN114465366B (en
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.)
Honor Device Co Ltd
Original Assignee
Honor Device Co 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202110803043.3A priority Critical patent/CN114465366B/en
Publication of CN114465366A publication Critical patent/CN114465366A/en
Application granted granted Critical
Publication of CN114465366B publication Critical patent/CN114465366B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J50/00Circuit arrangements or systems for wireless supply or distribution of electric power
    • H02J50/10Circuit arrangements or systems for wireless supply or distribution of electric power using inductive coupling
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J50/00Circuit arrangements or systems for wireless supply or distribution of electric power
    • H02J50/10Circuit arrangements or systems for wireless supply or distribution of electric power using inductive coupling
    • H02J50/12Circuit arrangements or systems for wireless supply or distribution of electric power using inductive coupling of the resonant type
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J50/00Circuit arrangements or systems for wireless supply or distribution of electric power
    • H02J50/90Circuit arrangements or systems for wireless supply or distribution of electric power involving detection or optimisation of position, e.g. alignment
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00036Charger exchanging data with battery
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/0031Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits using battery or load disconnect circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • H02J7/0048Detection of remaining charge capacity or state of charge [SOC]
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/02Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries for charging batteries from ac mains by converters

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Power Sources (AREA)

Abstract

A wireless charging method and electronic equipment relate to the technical field of electronic equipment, and enable the electronic equipment to reasonably charge a wireless keyboard and a touch pen in a wireless manner. The specific scheme comprises the following steps: the wireless keyboard establishes a Bluetooth connection with the electronic device. The electronic device may send a charge status message to the wireless keyboard. The wireless keyboard may then receive a charge status message from the electronic device. The wireless keyboard can acquire the residual capacity information of the wireless keyboard and the residual capacity information of the touch pen. If the charging state information indicates that the electronic equipment is charging, the wireless keyboard sends a reverse charging starting information to the electronic equipment. The electronic device may then output a wireless charging current to the wireless keyboard. The wireless keyboard can divide the current into a first path of current and a second path of current according to the current distribution proportion, and the wireless keyboard is charged through the first path of current, and/or the touch pen is charged through the second path of current.

Description

Wireless charging method and electronic equipment
Technical Field
The embodiment of the application relates to the technical field of electronic equipment, in particular to a wireless charging method and electronic equipment.
Background
With the development of science and technology, electronic devices (such as mobile phones, tablet computers, notebook computers, and the like) can charge batteries not only in a wired charging manner, but also in a wireless charging manner. In which a battery of an electronic device may store power by charging and then supply power to the electronic device by discharging. Moreover, the electronic device can be charged wirelessly in a reverse direction, that is, the electronic device can wirelessly charge other electronic devices in a wireless charging manner.
Take a tablet computer as an example for wireless charging of a touch pen (or a wireless keyboard). When the touch pen is adsorbed at a fixed position of the tablet computer, a battery of the tablet computer can be used as an energy source for reverse wireless charging to wirelessly charge the touch pen.
However, when the stylus is in the fixed position, the tablet computer may always wirelessly charge the stylus. When the tablet computer is charged by the touch control pen, the electric quantity of the tablet computer is continuously consumed, and the charging efficiency of wireless charging is low. Therefore, the tablet computer is always charged wirelessly by the stylus, which may cause the tablet computer to be incapable of being used continuously due to insufficient electric quantity, and seriously affects the use experience of the user.
Disclosure of Invention
The application provides a wireless charging method and electronic equipment, which can enable the electronic equipment to reasonably wirelessly charge a wireless keyboard and a touch pen, and improve the use experience of a user.
In a first aspect, the present application provides a wireless charging method, which may be applied to an electronic device to wirelessly charge a wireless keyboard and a stylus, where the stylus is attached to the wireless keyboard.
In the method, the wireless keyboard and the electronic equipment establish Bluetooth connection. The electronic device may send a charge status message to the wireless keyboard indicating whether the electronic device is charging. The wireless keyboard may then receive a charge status message from the electronic device. The wireless keyboard can acquire the residual capacity information of the wireless keyboard and the residual capacity information of the touch pen. As such, the wireless keyboard may determine whether the electronic device is being charged and the remaining power of the wireless keyboard and stylus.
And if the charging state message indicates that the electronic equipment is charging, the wireless keyboard sends a reverse charging starting message to the electronic equipment, and the reverse charging starting message is used for indicating the electronic equipment to reversely and wirelessly charge the wireless keyboard. Or, if the charging state message indicates that the electronic device is not being charged, and the remaining capacity information of the wireless keyboard is smaller than a first preset keyboard capacity threshold and/or the remaining capacity information of the stylus is smaller than a first preset stylus capacity threshold, the wireless keyboard sends a reverse charging start message to the electronic device. Then, the electronic device can receive the reverse charging start message from the wireless keyboard and output the wireless charging current to the wireless keyboard.
It can be understood that if the tablet computer is in a charging state, the power of the tablet computer may be continuously increased. Therefore, when the tablet computer is in a charging state, the problem of insufficient electric quantity of the tablet computer can be avoided when the tablet computer is subjected to reverse wireless charging. If the electric quantity information of the wireless keyboard is smaller than the first preset keyboard electric quantity threshold value and/or the electric quantity information of the touch pen is smaller than the first preset touch pen electric quantity threshold value, the residual electric quantities of the wireless keyboard and the touch pen are lower. Therefore, the wireless keyboard can determine that the tablet computer is reversely and wirelessly charged, so that the residual electric quantity of the wireless keyboard and the touch pen is improved, and the available duration of the wireless keyboard and the touch pen is prolonged.
The wireless keyboard may receive a wireless charging current from the electronic device. Then, the wireless keyboard divides the current into a first path of current and a second path of current according to the current distribution proportion, and charges the wireless keyboard through the first path of current, and/or charges the touch pen through the second path of current, wherein the first path of current is used for charging the wireless keyboard, and the second path of current is used for charging the touch pen. The current distribution proportion is determined by the wireless keyboard according to the remaining capacity information of the wireless keyboard and the remaining capacity information of the touch pen.
It can be understood that the wireless keyboard divides all the received wireless charging currents from the tablet computer into a first path of current and a second path of current according to the electric quantity information of the wireless keyboard and the electric quantity information of the touch pen. So, can rationally distribute the electric current and charge for wireless keyboard and the wireless of touch-control pen respectively, improve user's use and experienced.
With reference to the first aspect, in a possible design manner, a second preset keyboard power threshold, a third preset keyboard power threshold, and a second preset stylus power threshold are stored in the wireless keyboard. The third preset keyboard electric quantity threshold is larger than the second preset keyboard electric quantity threshold, the second preset keyboard electric quantity threshold is larger than the first preset keyboard electric quantity threshold, and the second preset touch pen electric quantity threshold is larger than the first preset touch pen electric quantity threshold.
If the remaining power information of the wireless keyboard is smaller than a second preset keyboard power threshold, the wireless keyboard takes all received wireless charging current from the electronic equipment as the first path of current. Or, if the remaining power information of the stylus is greater than a second preset stylus power threshold, the wireless keyboard takes all received wireless charging currents from the electronic device as the first path of current.
It can be understood that if the power information of the wireless keyboard is smaller than the second preset keyboard power threshold, it indicates that the remaining power of the wireless keyboard is lower; if the electric quantity information of the stylus is larger than the second preset stylus electric quantity threshold value, the remaining electric quantity of the stylus is higher. Therefore, the wireless keyboard can determine to charge the wireless keyboard only wirelessly, and all current is distributed to the wireless keyboard. Therefore, the current reduction caused by the wireless charging of the wireless keyboard due to the wireless charging of the wireless keyboard and the touch control pen can be avoided, the current for charging the wireless keyboard is increased, and the charging efficiency of the wireless keyboard is improved.
And if the residual electric quantity information of the wireless keyboard is larger than a second preset keyboard electric quantity threshold value, the wireless keyboard takes all the received wireless charging current from the electronic equipment as a second path of current.
It can be understood that, if the power information of the wireless keyboard is greater than the third preset keyboard power threshold, it indicates that the remaining power of the wireless keyboard is higher. Thus, the wireless keyboard may determine to wirelessly charge only the stylus, distributing all current to the stylus. Therefore, the current reduction caused by the fact that the wireless keyboard and the touch control pen are charged wirelessly at the same time and the touch control pen is charged can be avoided, the current for charging the touch control pen is increased, and the charging efficiency of the touch control pen is improved.
With reference to the first aspect, in another possible design manner, when the wireless keyboard receives all wireless charging currents from the electronic device, where the wireless charging currents are greater than the first current, the first current is a first maximum current, the second current is a current of all wireless charging currents except the first maximum current, and the first maximum current is a maximum current that the wireless keyboard can receive.
When the wireless keyboard receives all wireless charging currents from the electronic equipment, the wireless keyboard receives the wireless charging currents, the wireless charging currents are larger than the second current, the second current is the second maximum current, the first current is the current except the second maximum current in all wireless charging currents, and the second maximum current is the maximum current which can be received by the touch pen.
Therefore, the charging efficiency of the wireless keyboard can be improved, the wireless keyboard and the touch pen can be prevented from being broken down, and the use experience of a user is improved.
With reference to the first aspect, in another possible design manner, the electronic device may display a first prompt message, where the first prompt message is used to indicate whether to wirelessly charge the wireless keyboard. And/or the electronic device may display a second prompt message, where the second prompt message is used to indicate whether to wirelessly charge the stylus. The electronic device may receive a first operation for triggering the electronic device to perform reverse wireless charging. In response to the first operation, the electronic device outputs a wireless charging current to the wireless keyboard.
It can be understood that, when the tablet computer displays the first prompt message and/or the second prompt message, the user may actively control whether the tablet computer is wirelessly charged for the wireless keyboard. Therefore, the operability of the user is improved, and the use experience of the user is improved.
With reference to the first aspect, in another possible design manner, the electronic device may calculate a first frequency, where the first frequency is a frequency at which the electronic device receives a reverse charging start message within a preset time period. If the first frequency is smaller than the preset frequency threshold, the electronic equipment outputs wireless charging current to the wireless keyboard.
It can be understood that by comparing the first frequency with the preset frequency threshold, the tablet computer can be prevented from being frequently turned on and off to perform reverse wireless charging. Therefore, the discharging times of the battery of the tablet computer can be reduced, and the service life of the tablet computer is prolonged.
With reference to the first aspect, in another possible design manner, if the first frequency is greater than the preset frequency threshold, the electronic device does not output the wireless charging current to the wireless keyboard.
Therefore, the tablet computer can be prevented from being frequently started and closed to perform reverse wireless charging. Therefore, the discharging times of the battery of the tablet computer can be reduced, and the service life of the tablet computer is prolonged.
With reference to the first aspect, in another possible design manner, a first type of application and a second type of application are stored in the electronic device, where the first type of application is used to indicate an application program that does not use the stylus and the wireless keyboard for operation, and the second type of application is used to indicate an application program that needs the stylus and the wireless keyboard for operation. The electronic device may obtain a currently running application. And if the currently running application program is the second type of application, the electronic equipment outputs wireless charging current to the wireless keyboard.
It can be understood that if the currently running application program of the tablet computer is the second type of application, which indicates that the probability that the current user uses the wireless keyboard and the stylus pen is higher, the tablet computer performs reverse wireless charging. Therefore, when the user needs to use the wireless keyboard and the touch pen, the electric quantity of the wireless keyboard and the touch pen is high, and the use experience of the user is improved.
With reference to the first aspect, in another possible design manner, if the currently running application is the first type of application, the electronic device does not output the wireless charging current to the wireless keyboard.
It can be understood that, if the application program currently running on the tablet computer is the first type of application, which indicates that the probability that the current user uses the wireless keyboard and the stylus pen is low, the tablet computer does not perform reverse wireless charging. Therefore, the consumption of the electric quantity of the tablet personal computer can be reduced, and the service life of the tablet personal computer is prolonged.
With reference to the first aspect, in another possible design manner, the wireless keyboard may send a reverse charging stop message to the electronic device, where the reverse charging stop message is used to instruct the electronic device to stop performing reverse wireless charging. The electronic device may receive a reverse charging stop message from the wireless keyboard to stop outputting the wireless charging current.
That is, the wireless keyboard may control the electronic device to stop reverse wireless charging. So, the problem that the electric quantity of the tablet computer is insufficient when the electronic equipment is reversely and wirelessly charged can be avoided, and the use experience of a user is improved.
With reference to the first aspect, in another possible design manner, the electronic device may display a third prompt message, where the third prompt message is used to prompt adjustment of a charging position of the stylus, and a current received by the stylus at the adjusted charging position is greater than a current received by the stylus at a charging position before adjustment.
It can be understood that the charging efficiency of the stylus can be improved by prompting to adjust the charging position of the stylus. And then shorten the charging time of touch-control pen, improved user's use experience.
In a second aspect, the present application provides a wireless charging method, which may be applied to an electronic device to wirelessly charge a wireless keyboard and a stylus, where the stylus is attached to the wireless keyboard.
In the method, the electronic equipment and the wireless keyboard establish Bluetooth connection. The electronic device may send a charge status message to the wireless keyboard indicating whether the electronic device is charging. Then, the electronic device may receive a reverse charging start message from the wireless keyboard, where the reverse charging start message is used to instruct the electronic device to reversely wirelessly charge the wireless keyboard. The electronic device may obtain remaining power information of the electronic device. And if the residual electric quantity information of the electronic equipment is larger than the first preset equipment electric quantity threshold value, the electronic equipment outputs wireless charging current to the wireless keyboard. If the residual electric quantity information of the electronic equipment is smaller than the first preset equipment electric quantity threshold value, the electronic equipment does not output wireless charging current to the wireless keyboard.
It can be understood that, if the power information of the tablet computer is greater than the first preset device power threshold, it indicates that the remaining power of the tablet computer is higher, and the tablet computer is not automatically turned off in a short time due to reverse wireless charging. If the electric quantity information of the tablet computer is smaller than the first preset equipment electric quantity threshold value, it is indicated that the residual electric quantity of the tablet computer is low. The panel computer does not perform reverse wireless charging, so that the consumption of electric quantity can be reduced, and the usable time of the panel computer is prolonged.
With reference to the second aspect, in one possible design manner, the electronic device may display a first prompt message, where the first prompt message is used to indicate whether to wirelessly charge the wireless keyboard. And/or the electronic device may display a second prompt message, where the second prompt message is used to indicate whether to wirelessly charge the stylus. The electronic device may receive a first operation for triggering the electronic device to perform reverse wireless charging. In response to the first operation, the electronic device outputs a wireless charging current to the wireless keyboard.
It can be understood that, when the tablet computer displays the first prompt message and/or the second prompt message, the user may actively control whether the tablet computer is wirelessly charged for the wireless keyboard. Therefore, the operability of the user is improved, and the use experience of the user is improved.
With reference to the second aspect, in another possible design manner, the electronic device may calculate a first frequency, where the first frequency is a frequency at which the electronic device receives a reverse charging start message within a preset time period. If the first frequency is smaller than the preset frequency threshold, the electronic equipment outputs wireless charging current to the wireless keyboard.
It can be understood that by comparing the first frequency with the preset frequency threshold, the tablet computer can be prevented from being frequently turned on and off to perform reverse wireless charging. Therefore, the discharging times of the battery of the tablet computer can be reduced, and the service life of the tablet computer is prolonged.
With reference to the second aspect, in another possible design manner, if the first frequency is greater than the preset frequency threshold, the electronic device does not output the wireless charging current to the wireless keyboard.
Therefore, the tablet computer can be prevented from being frequently started and closed to perform reverse wireless charging. Therefore, the discharging times of the battery of the tablet computer can be reduced, and the service life of the tablet computer is prolonged.
With reference to the second aspect, in another possible design manner, a first type of application and a second type of application are stored in the electronic device, where the first type of application is used to indicate an application program that does not use the stylus and the wireless keyboard for operation, and the second type of application is used to indicate an application program that needs the stylus and the wireless keyboard for operation. The electronic device may obtain a currently running application. And if the currently running application program is the second type of application, the electronic equipment outputs wireless charging current to the wireless keyboard.
It can be understood that if the currently running application program of the tablet computer is the second type of application, which indicates that the probability that the current user uses the wireless keyboard and the stylus pen is higher, the tablet computer performs reverse wireless charging. Therefore, when the user needs to use the wireless keyboard and the touch pen, the electric quantity of the wireless keyboard and the touch pen is high, and the use experience of the user is improved.
With reference to the second aspect, in another possible design manner, if the currently running application is the first type application, the electronic device does not output the wireless charging current to the wireless keyboard.
It can be understood that, if the application program currently running on the tablet computer is the first type of application, which indicates that the probability that the current user uses the wireless keyboard and the stylus pen is low, the tablet computer does not perform reverse wireless charging. Therefore, the consumption of the electric quantity of the tablet personal computer can be reduced, and the service life of the tablet personal computer is prolonged.
With reference to the second aspect, in another possible design manner, the electronic device may receive a reverse charging stop message from the wireless keyboard, and stop outputting the wireless charging current, where the reverse charging stop message is used to instruct the electronic device to stop performing reverse wireless charging.
That is, the wireless keyboard may control the electronic device to stop reverse wireless charging. So, the problem that the electric quantity of the tablet computer is insufficient when the electronic equipment is reversely and wirelessly charged can be avoided, and the use experience of a user is improved.
With reference to the second aspect, in another possible design manner, the electronic device may display a third prompt message, where the third prompt message is used to prompt adjustment of a charging position of the stylus, and a current received by the stylus at the adjusted charging position is greater than a current received by the stylus at a charging position before adjustment.
It can be understood that the charging efficiency of the stylus can be improved by prompting to adjust the charging position of the stylus. And then shorten the charging time of touch-control pen, improved user's use experience.
In a third aspect, the present application provides an electronic device comprising: a memory, a display screen, and one or more processors, the memory, display screen, and the processors coupled; the memory is for storing computer program code, the computer program code comprising computer instructions; the computer instructions, when executed by the one or more processors described above, cause the electronic device to perform the method as described in the second aspect and any possible design thereof.
In a fourth aspect, the present application provides a wireless keyboard comprising: a memory and one or more processors, the memory coupled to the processors; the memory is for storing computer program code, the computer program code comprising computer instructions; the computer instructions, when executed by the one or more processors, cause the wireless keyboard to perform the method as set forth in the first aspect and any one of its possible designs.
In a fifth aspect, the present application provides a chip system, which is applied to an electronic device. The system-on-chip includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by a line. The interface circuit is configured to receive a signal from a memory of the electronic device and to transmit the signal to the processor, the signal including computer instructions stored in the memory. When executed by a processor, the computer instructions cause an electronic device to perform the method of the second aspect and any of its possible designs.
In a sixth aspect, the present application provides a computer-readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method according to the second aspect and any one of its possible design approaches.
In a seventh aspect, the present application provides a computer program product for causing a computer to perform the method according to the second aspect and any of its possible designs when the computer program product runs on the computer.
It should be understood that, for the electronic device according to the third aspect, the wireless keyboard according to the fourth aspect, the chip system according to the fifth aspect, the computer-readable storage medium according to the sixth aspect, and the computer program product according to the seventh aspect, the beneficial effects that can be achieved can be referred to as the beneficial effects in the first aspect, the second aspect, and any one of the possible design manners thereof, and therefore, the details are not repeated herein.
Drawings
Fig. 1 is a schematic view of a scenario provided in an embodiment of the present application;
fig. 2A is a schematic structural diagram of a stylus provided in an embodiment of the present application;
fig. 2B is an assembly diagram of a stylus and a wireless keyboard according to an embodiment of the present disclosure;
fig. 2C is a schematic view illustrating a stylus pen accommodated in an accommodating portion of a wireless keyboard according to an embodiment of the present disclosure;
fig. 3 is a schematic system architecture diagram of a wireless charging system according to an embodiment of the present disclosure;
fig. 4A is a schematic structural frame diagram of a stylus provided in the embodiment of the present application;
fig. 4B is a schematic structural framework diagram of an electronic device according to an embodiment of the present disclosure;
fig. 4C is a schematic structural frame diagram of a wireless keyboard according to an embodiment of the present application;
fig. 5A is a schematic diagram of an example of a display interface of a prompt message according to an embodiment of the present application;
fig. 5B is a schematic diagram of an example of another display interface for prompting a message according to an embodiment of the present application;
fig. 5C is a schematic diagram of an example of another display interface for prompting a message according to an embodiment of the present application;
fig. 6 is a flowchart of a wireless charging method according to an embodiment of the present disclosure;
fig. 7A is a schematic view of a charging scenario provided in an embodiment of the present application;
fig. 7B is a schematic view of another charging scenario provided in the present application;
fig. 7C is a schematic view of another charging scenario provided in the present application;
fig. 8 is a schematic diagram of an example of another display interface for prompting messages according to an embodiment of the present application;
fig. 9 is a flowchart of another wireless charging method provided in the embodiments of the present application;
fig. 10 is a flowchart of another wireless charging method provided in the embodiments of the present application;
fig. 11 is a flowchart of another wireless charging method provided in the embodiments of the present application;
fig. 12 is a schematic structural component diagram of a chip system according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The "/" character in this application generally indicates that the former and latter associated objects are in an "or" relationship. For example, A/B may be understood as A or B.
The terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present embodiment, "a plurality" means two or more unless otherwise specified.
Furthermore, the terms "including" and "having," and any variations thereof, as referred to in the description of the present application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to the listed steps or modules but may alternatively include other steps or modules not listed or inherent to such process, method, article, or apparatus.
In addition, in the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "e.g.," is intended to present concepts in a concrete fashion.
In order to facilitate understanding of the technical solutions of the present application, prior to describing the wireless charging method in detail, some conventional techniques are described.
With the development of science and technology, electronic devices (such as mobile phones, tablet computers, wireless keyboards, touch pens and the like) can charge batteries not only in a wired charging mode but also in a wireless charging mode. Moreover, the electronic equipment can wirelessly charge other electronic equipment in a wireless charging mode.
Take a tablet computer as an example of wireless keyboard and wireless charging of a touch pen. In some technical solutions, the tablet computer may be used as an energy source for reverse wireless charging to wirelessly charge the wireless keyboard. Moreover, when the touch pen is adsorbed in the wireless keyboard, the tablet personal computer can also be wirelessly charged by the touch pen through the wireless keyboard, namely the tablet personal computer can be wirelessly charged by the wireless keyboard and the touch pen. Specifically, a wireless charging coil is arranged on the tablet personal computer, and a wireless charging coil is arranged on the wireless keyboard. When panel computer and wireless keyboard all were located fixed charging position, this panel computer's wireless charging coil can be with the wireless charging coil coupling of wireless keyboard, for the wireless charging of touch-control pen. And, the fixed position department of wireless keyboard can also be provided with another wireless charging coil. The stylus may be affixed to the wireless keyboard at a fixed location. When the touch control pen is adsorbed at the fixed position of the wireless keyboard, the other wireless charging coil of the wireless keyboard can be coupled with the wireless charging coil of the touch control pen, and the tablet computer is used as an energy source to charge the touch control pen wirelessly.
However, in the above technical solution, when the wireless keyboard and the stylus are located at the charging position, the tablet computer will wirelessly charge the wireless keyboard and the stylus. If the electric quantity of the tablet computer is low, the tablet computer is wirelessly charged by the wireless keyboard and the touch pen, so that the electric quantity of the tablet computer is reduced quickly, the tablet computer is automatically shut down too early due to insufficient electric quantity, and the use experience of a user in using the tablet computer is influenced. Moreover, the charging efficiency of wireless charging is low. When the tablet personal computer is used as an energy source to wirelessly charge the touch pen through the wireless keyboard, the current is divided into two paths, one path of current is used for charging the wireless keyboard, and the other path of current is used for charging the touch pen. Thus, the charging efficiency is reduced again, which results in a slow charging speed of the tablet computer for the stylus. In summary, in the current technical solution, when the tablet computer is wirelessly charged by the wireless keyboard and the stylus, the user experience is not good.
Therefore, the embodiment of the application provides a wireless charging method. The method can be applied to the electronic equipment for wirelessly charging the wireless keyboard and the touch pen. In the method, the wireless keyboard can acquire the charging state of the electronic equipment, the electric quantity information of the wireless keyboard and the electric quantity information of the touch pen. Then, the wireless keyboard can indicate whether the electronic device is wirelessly charged for the wireless keyboard and/or the stylus pen according to the charging state of the electronic device, the electric quantity information (also referred to as remaining electric quantity information) of the electronic device, the electric quantity information of the wireless keyboard, and the electric quantity information of the stylus pen.
For example, if the electronic device is not in a charging state and the wireless keyboard and the stylus pen have sufficient power, the wireless keyboard may instruct the electronic device to stop wirelessly charging the wireless keyboard and the stylus pen. For another example, if the electronic device is in a charging state, the wireless keyboard has sufficient power and the stylus has insufficient power, the wireless keyboard can instruct the electronic device to charge the stylus.
It can be understood that, based on the above technical solution, the wireless keyboard may indicate whether the electronic device is wirelessly charged for the wireless keyboard and/or the stylus pen, in combination with the charging state of the electronic device, the power information of the wireless keyboard, and the power information of the stylus pen. Therefore, the electronic equipment can be prevented from continuously charging the wireless keyboard and the touch pen in a wireless manner under the condition of low electric quantity, and the service life of the electronic equipment is prolonged. Moreover, according to the technical scheme, wireless charging can be only performed on the wireless keyboard or the touch control pen, and charging efficiency is improved. In conclusion, according to the technical scheme, the electronic equipment can reasonably charge the wireless keyboard and the touch pen in a wireless mode, and the use experience of a user is improved.
Fig. 1 is a schematic view of a scene applicable to the embodiment of the present application. Referring to fig. 1, the scene includes a stylus (stylus)100, an electronic device 200, and a wireless keyboard 300. Fig. 1 illustrates an example in which the electronic device 200 is a tablet computer (PAD). Stylus 100 and wireless keyboard 300 may provide input to electronic device 200, and electronic device 200 performs an operation responsive to the input based on the input of stylus 100 or wireless keyboard 300. A touch area may be provided on wireless keyboard 300, and stylus 100 may operate the touch area of wireless keyboard 300 to provide an input to wireless keyboard 300, and wireless keyboard 300 may perform an operation in response to the input based on the input of stylus 100. In one embodiment, the stylus 100 and the electronic device 200, the stylus 100 and the wireless keyboard 300, and the electronic device 200 and the wireless keyboard 300 may be interconnected through a communication network to realize wireless signal interaction. The communication network may be, but is not limited to: a close-range communication network such as a WI-FI hotspot network, a WI-FI peer-to-peer (P2P) network, a bluetooth network, a zigbee network, or a Near Field Communication (NFC) network.
Stylus 100 may be, but is not limited to: inductance pen and electric capacity pen. When the electronic device 200 has a touch screen 201, and the stylus 100 is an inductive pen, an electromagnetic induction board needs to be integrated on the touch screen 201 of the electronic device 200 interacting with the stylus 100. The electromagnetic induction board is distributed with coils, and the inductive pen is also integrated with the coils. Based on the electromagnetic induction principle, the inductive pen can accumulate electric energy along with the movement of the inductive pen in the magnetic field range generated by the electromagnetic induction plate. The inductance pen can transmit the accumulated electric energy to the electromagnetic induction plate through free oscillation and a coil in the inductance pen. The electromagnetic induction board can scan the coil on the electromagnetic induction board based on the electric energy from the inductive pen, and calculate the position of the inductive pen on the touch screen 201.
The capacitance pen may include: passive capacitive pens and active capacitive pens. The passive capacitive stylus may be referred to as a passive capacitive stylus and the active capacitive stylus may be referred to as an active capacitive stylus. The passive capacitive pen simulates the touch of a finger, and a pen point 10 of the passive capacitive pen is made of a conductive material, such as conductive foam, metal, a brush and the like. When stylus 100 is a passive capacitive stylus, a capacitive sensor needs to be integrated on touch screen 201 of electronic device 200 interacting with stylus 100. The distance between the passive capacitive pen and the touch screen 201 of the electronic device 200 is related to the capacitance value detected by the capacitive sensing sensor, so that the electronic device 200 can determine the distance between the passive capacitive pen and the touch screen 201 of the electronic device 200 based on the detected capacitance value. In addition, the passive capacitive pen moving on the touch screen 201 may cause a change in capacitance value at a contact position of the passive capacitive pen and the touch screen 201, and therefore, the electronic device 200 may determine the position of the passive capacitive pen on the touch screen 201 based on the detected capacitance value.
Fig. 2A is a schematic structural diagram of a stylus. Referring to fig. 2A, the stylus pen 100 may include a pen tip 10, a shaft 20, and a back cover 30. The inside of the pen holder 20 is a hollow structure, the pen point 10 and the rear end 30 are respectively located at two ends of the pen holder 20, and the rear cover 30 and the pen holder 20 can be inserted or clamped. Optionally, a wireless charging coil is arranged inside the pen holder 20. Wireless charging is possible in the case where the stylus pen 100 is attached to the electronic device 200 or the wireless keyboard 300.
In one embodiment, as shown with reference to FIG. 2B, wireless keyboard 300 may include a first portion 301 and a second portion 302. Illustratively, wireless keyboard 300 may include: keyboard main part and keyboard cover. The first portion 301 may be a keypad sleeve and the second portion 302 a keypad body. The first portion 301 is used for placing the electronic device 200, and the second portion 302 may be provided with keys, a touch pad, and the like for user operation.
Wherein, when the wireless keyboard 300 is used, the first part 301 and the second part 302 of the wireless keyboard 300 need to be opened, and when the wireless keyboard 300 is not used, the first part 301 and the second part 302 of the wireless keyboard 300 can be closed. In one embodiment, the first portion 301 and the second portion 302 of the wireless keyboard 300 are rotatably coupled. For example, the first portion 301 and the second portion 302 may be connected by a hinge or a rotating shaft, or, in some examples, the first portion 301 and the second portion 302 may be rotatably connected by a flexible material (e.g., a leather material or a cloth material). Alternatively, in some examples, the first portion 301 and the second portion 302 may be integrally formed, and the connection between the first portion 301 and the second portion 302 is thinned, so that the connection between the first portion 301 and the second portion 302 may be bent. The connection between the first portion 301 and the second portion 302 may include, but is not limited to, the above-mentioned several rotation connection manners.
Wherein the first portion 301 may comprise at least two pivotally connected brackets. For example, referring to fig. 2B, the first portion 301 includes a first support 301a and a second support 301B, the first support 301a and the second support 301B are rotatably connected, and when in use, the first support 301a and the second support 301B can be used to support the electronic device 200 together (refer to fig. 1). Alternatively, the first stand 301a provides support for the second stand 301b, and the second stand 301b supports the electronic device 200. Referring to fig. 2B, the second bracket 301B is rotatably coupled to the first portion 301.
As shown in fig. 2B, the wireless keyboard 300 may be provided with a storage unit 303 for storing the stylus 100 in order to facilitate storage of the stylus 100. Referring to fig. 2B, the housing 303 is a cylindrical cavity, and when housed, the stylus pen 100 is inserted into the housing along an arrow in fig. 2B. In this embodiment, referring to fig. 2B, the second portion 302 and the second bracket 301B are rotatably connected by a connecting portion 304, and the connecting portion 304 is provided with a receiving portion 303. The connecting portion 304 may be a rotating shaft.
Fig. 2C is a schematic view of the stylus pen 100 being accommodated in the accommodating portion 303.
In the case where the electronic device 200 is attached to the wireless keyboard 300 (as shown in fig. 1) and the stylus pen 100 is attached to the receiving portion 303 of the wireless keyboard 300 (as shown in fig. 2C), the electronic device 200 can wirelessly charge the stylus pen 100 and the wireless keyboard. The stylus pen 100, the electronic device 200, and the wireless keyboard 300 all support a wireless charging protocol. The embodiment of the present application does not limit the wireless charging protocol. For example, the wireless charging protocol may be a QI protocol.
For convenience of understanding, the present embodiment describes the principle of the electronic device 200 wirelessly charging the stylus pen 100 and the wireless keyboard 300 with reference to the drawings.
Please refer to fig. 3, which illustrates a system architecture of a wireless charging system 500 according to an embodiment of the present disclosure. The wireless charging system 500 includes: stylus 100, electronic device 200, and wireless keyboard 300.
As shown in fig. 3, the stylus 100 includes: a battery 410, a charging control module 420, a wireless charging control module 430, and a wireless charging coil 440. The electronic apparatus 200 includes: battery 510, charging control module 520, wireless charging control module 530, wireless charging coil 540, and wireless charging coil 550. The wireless keyboard 300 includes: battery 610, charging control module 620, wireless charging control module 630, first wireless charging coil 640, wireless charging control module 650, and wireless charging coil 660.
In this embodiment, the electronic device 200 serves as a transmitting end of the wireless charging signal, the stylus 100 and the wireless keyboard 300 serve as a receiving end of the wireless charging signal, and the electronic device 200 wirelessly charges the stylus 100 and the wireless keyboard 300. Accordingly, as shown in fig. 3, the wireless charging coil 540 of the electronic device 200 may be referred to as a transmitting (Tx) coil, and the wireless charging coil 640 of the wireless keyboard 300 may be referred to as a receiving (Rx) coil. Moreover, the electronic device 200 wirelessly charges the stylus pen 100, and the wireless keyboard 300 may input the wireless charging signal received from the electronic device 200 into the stylus pen 100, that is, when the stylus pen 100 is used as a receiving end of the wireless charging signal, the wireless keyboard 300 may also be a transmitting end of the wireless charging signal. Accordingly, as shown in fig. 3, the wireless charging coil 650 of the wireless keyboard 300 may be referred to as a Tx coil, and the wireless charging coil 440 of the stylus pen 100 may be referred to as an Rx coil.
The charging control module 420 may be a charger of the stylus pen 100, and the wireless charging control module 430 may be an Rx chip. The charging control module 520 may be a BOOST of the electronic device 200, and the wireless charging control module 530 may be a Tx chip. The charging control module 620 may be a charger of the wireless keyboard 300, the wireless charging control module 630 may be an Rx chip, and the wireless charging control module 650 may be a Tx chip.
The electronic device 200 may support reverse wireless charging for wirelessly charging other devices. For example, the electronic device 200 wirelessly charges the wireless keypad 300, and the wireless charging control module 530 may convert the direct current electrical signal into an alternating electrical signal and then input the alternating electrical signal to the wireless charging coil 540. The wireless charging coil 540 may generate an alternating electromagnetic field in response to the alternating electrical signal.
The wireless charging coil 640 of the wireless keyboard 300 is coupled with the wireless charging coil 540 of the electronic device 200. The wireless charging coil (i.e., Rx coil) 640 induces an alternating electromagnetic field emitted from the wireless charging coil (i.e., Tx coil) 540, may generate an alternating electrical signal, and inputs the alternating electrical signal to the wireless charging control module 630. The wireless charging control module 630 may rectify the alternating electrical signal into a direct current electrical signal and input the direct current electrical signal to the charging control module 620. The charging control module 620 may charge the battery 610 according to the dc signal.
After the stylus 100 is received in the receiving cavity 303 of the wireless keyboard 300 (as shown in fig. 2C), the electronic device 200 can wirelessly charge the stylus 100. After the wireless charging control module 630 rectifies the alternating electrical signal received from the electronic device 200 into a direct current electrical signal, the wireless charging control module 630 may input the direct current electrical signal to the wireless charging control module (i.e., Rx coil) 650, and the wireless charging control module 650 may convert the direct current electrical signal into the alternating electrical signal and then input the alternating electrical signal to the wireless charging coil 440. The wireless charging coil 440 may generate an alternating electromagnetic field in response to the alternating electrical signal.
Wireless charging coil 660 of wireless keyboard 300 is coupled with wireless charging coil 440 of stylus 100. The wireless charging coil (i.e., Rx coil) 440 induces an alternating electromagnetic field emitted from the wireless charging coil (i.e., Tx coil) 660, may generate an alternating electrical signal, and inputs the alternating electrical signal to the wireless charging control module 430. The wireless charging control module 430 may rectify the alternating current signal into a direct current signal and input the direct current signal to the charging control module 420. The charging control module 420 may charge the battery 410 according to the dc power signal.
Optionally, the wireless charging system 500 may further include at least one device (e.g., stylus 600) capable of supporting wireless charging in addition to the stylus 100 and the wireless keyboard 300. As shown in fig. 3, the stylus 600 includes: a battery 710, a charging control module 720, a wireless charging control module 730, and a wireless charging coil 740. In the case that the stylus 600 is attached to the fixed charging position of the electronic device 200, the electronic device 200 may directly wirelessly charge the stylus 600, that is, the stylus 600 may be wirelessly charged without the wireless keyboard 300 as a medium. The principle that the electronic device 200 wirelessly charges the stylus 600 can refer to the principle that the electronic device 200 wirelessly charges the wireless keyboard 300 during the wireless charging process of the wireless keyboard 300, and is not described herein again.
It should be noted that the electronic device 200 may receive the wireless charging input of another device, that is, the electronic device 200 supports forward wireless charging. For the forward wireless charging principle of the electronic device 200, reference may be made to the wireless charging principle of the wireless keyboard 300 during the wireless charging process of the electronic device 200 for the wireless keyboard 300, which is not described herein again.
The electronic device 200 may also support wired charging. For example, when a power adapter (i.e., a wired charger) connected to a power source is connected to a charging interface (not shown in the drawings) of the electronic device, the charging interface has a charging input. The charging control module 520 is connected to the charging interface, and is configured to receive a charging input from the power adapter through the charging interface to charge the battery 510. For example, the charging interface may be a USB interface.
In some embodiments, wireless keyboard 300 may also support wired charging. For example, wireless keyboard 300 may also include a charging interface (not shown in the figures). The charging interface is used for connecting a power adapter to charge the wireless keyboard 300 in a wired manner.
It should be noted that fig. 3 only shows a schematic diagram of a possible charging circuit structure of the electronic device 200, the wireless keyboard 300 and the stylus pen 100. The charging circuit structures of the electronic device, the wireless keyboard and the stylus in the embodiment of the present application include, but are not limited to, the structure shown in fig. 3. For example, the functions of the charging control module 520 and the wireless charging control module 530 shown in fig. 3 may be implemented in one charging management module. For another example, the electronic device 200 may further include a processor that connects the charging control module 520 and the wireless charging control module 530. The processor is used for detecting whether the charging interface has charging input. The processor is further configured to control the charging control module 520 and/or the wireless charging control module 530 to operate, so as to implement the wired charging function and/or the reverse wireless charging function of the electronic device 200.
Fig. 4A is a schematic diagram of a hardware structure of a stylus according to an embodiment of the present disclosure. Referring to FIG. 4A, stylus 100 may have a processor 110. Processor 110 may include storage and processing circuitry to support the operation of stylus 100. The storage and processing circuitry may include storage devices such as non-volatile memory (e.g., flash memory or other electrically programmable read-only memory configured as a solid state drive), volatile memory (e.g., static or dynamic random access memory), and so forth. Processing circuitry in processor 110 may be used to control the operation of stylus 100. The processing circuitry may be based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio chips, application specific integrated circuits, and the like.
One or more sensors can be included in stylus 100. For example, the sensor may include a pressure sensor 120. Pressure sensor 120 may be disposed at tip 10 of stylus 100 (shown in fig. 2A). Of course, the pressure sensor 120 may be disposed in the shaft 20 of the stylus 100, such that when a force is applied to one end of the tip 10 of the stylus 100, the other end of the tip 10 moves to apply a force to the pressure sensor 120. In one embodiment, processor 110 may adjust the line thickness of stylus 100 when writing with tip 10 according to the pressure detected by pressure sensor 120.
The sensors may also include inertial sensors 130. Inertial sensors 130 may include three-axis accelerometers and three-axis gyroscopes, and/or other components for measuring motion of stylus 100, e.g., a three-axis magnetometer may be included in the sensor in a nine-axis inertial sensor configuration. The sensors may also include additional sensors such as temperature sensors, ambient light sensors, light-based proximity sensors, contact sensors, magnetic sensors, pressure sensors, and/or other sensors.
A status indicator 140, such as a light emitting diode, and a button 150 may be included in stylus 100. Status indicator 140 is used to alert a user to the status of stylus 100. Buttons 150 may include mechanical and non-mechanical buttons, and buttons 150 may be used to collect button press information from a user.
In embodiments of the present application, stylus 100 may include one or more electrodes 160, wherein one electrode 160 may be located at the writing end of stylus 100, and wherein one electrode 160 may be located within tip 10.
Sensing circuitry 170 may be included in stylus 100. Sensing circuitry 170 can sense capacitive coupling between electrodes 160 and drive lines of a capacitive touch sensor panel interacting with stylus 100. The sensing circuit 170 can include an amplifier to receive capacitance readings from the capacitive touch sensor panel, a clock to generate a demodulation signal, a phase shifter to generate a phase shifted demodulation signal, a mixer to demodulate the capacitance readings using an in-phase demodulation frequency component, and a mixer to demodulate the capacitance readings using a quadrature demodulation frequency component, among others. The results of the mixer demodulation can be used to determine an amplitude proportional to the capacitance so that stylus 100 can sense contact with the capacitive touch sensor panel.
It is understood that a microphone, speaker, audio generator, vibrator, camera, data port, and other devices may be included in stylus 100, depending on the actual requirements. A user can control the operation of stylus 100 and electronic device 200 interacting with stylus 100 by providing commands with these devices, as well as receive status information and other outputs.
Processor 110 can be used to run software on stylus 100 that controls the operation of stylus 100. During operation of stylus 100, software running on processor 110 may process sensor inputs, button inputs, and inputs from other devices to monitor movement of stylus 100 and other user inputs. Software running on the processor 110 may detect the user command and may communicate with the electronic device 200.
To support wireless communication of stylus 100 with electronic device 200, stylus 100 may include a wireless module. Fig. 4A illustrates an example in which the wireless module is a bluetooth module 180. The wireless module can also be a WI-FI hotspot module, a WI-FI point-to-point module and the like. Bluetooth module 180 may include a radio frequency transceiver, such as a transceiver. Bluetooth module 180 may also include one or more antennas. The transceiver may transmit and/or receive wireless signals, which may be bluetooth signals, wireless local area network signals, long range signals such as cellular telephone signals, near field communication signals, or other wireless signals, based on the type of wireless module, using the antenna.
Stylus 100 may further include a charging module 190, and charging module 190 may support charging of stylus 100 to provide power to stylus 100.
It should be understood that the electronic device 200 in the embodiment of the present application may be referred to as a User Equipment (UE), a terminal (terminal), and the like, for example, the electronic device 200 may be a mobile terminal or a fixed terminal having a touch screen, such as a tablet computer (PAD), a Personal Digital Assistant (PDA), a handheld device having a wireless communication function, a computing device, a vehicle-mounted device, or a wearable device, a Virtual Reality (VR) terminal device, an Augmented Reality (AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in self driving (self driving), a wireless terminal in remote medical (remote medical), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), and the like. The form of the terminal device is not particularly limited in the embodiment of the present application.
Fig. 4B is a schematic structural diagram of an electronic device 200 according to an embodiment of the present disclosure. Referring to fig. 4B, electronic device 200 may include multiple subsystems that cooperate to perform, coordinate, or monitor one or more operations or functions of electronic device 202. Electronic device 200 includes processor 210, input surface 220, coordination engine 230, power subsystem 240, power connector 250, wireless interface 260, and display 270.
For example, coordination engine 230 may be used to communicate with and/or process data with other subsystems of electronic device 200; communicating and/or transacting data with stylus 100; measuring and/or obtaining the output of one or more analog or digital sensors (such as touch sensors); measuring and/or obtaining an output of one or more sensor nodes of an array of sensor nodes (such as an array of capacitive sensing nodes); receiving and locating tip and ring signals from stylus 100; the stylus pen 100 and the like are positioned based on the positions of the tip signal crossing area and the ring signal crossing area.
The coordination engine 230 of the electronic device 200 includes or is otherwise communicatively coupled to a sensor layer located below or integrated with the input surface 220. Coordination engine 230 locates stylus 100 on input surface 220 using the sensor layer and estimates the angular position of stylus 100 relative to the plane of input surface 220 using the techniques described herein. In one embodiment, the input surface 220 may be referred to as a touch screen 201.
For example, the sensor layer of coordination engine 230 of electronic device 200 is a grid of capacitive sensing nodes arranged as columns and rows. More specifically, the array of column traces is disposed perpendicular to the array of row traces. The sensor layer may be separate from other layers of the electronic device, or the sensor layer may be disposed directly on another layer, such as, but not limited to: display stack layers, force sensor layers, digitizer layers, polarizer layers, battery layers, structural or decorative outer shell layers, and the like.
The sensor layer can operate in multiple modes. If operating in mutual capacitance mode, the column and row traces form a single capacitive sensing node at each overlap point (e.g., a "vertical" mutual capacitance). If operating in self-capacitance mode, the column and row traces form two (vertically aligned) capacitive sensing nodes at each overlap point. In another embodiment, adjacent column traces and/or adjacent row traces may each form a single capacitive sensing node (e.g., a "horizontal" mutual capacitance) if operating in a mutual capacitance mode. As described above, the sensor layer may detect the presence of the tip 10 of the stylus 100 and/or the touch of a user's finger by monitoring changes in capacitance (e.g., mutual or self capacitance) present at each capacitive sensing node. In many cases, coordination engine 230 may be configured to detect tip and ring signals received from stylus 100 through the sensor layer via capacitive coupling.
Wherein the tip signal and/or the ring signal may include specific information and/or data that may be configured to cause the electronic device 200 to recognize the stylus 100. Such information is generally referred to herein as "stylus identity" information. This information and/or data may be received by the sensor layer and interpreted, decoded, and/or demodulated by the coordination engine 230.
The processor 210 may use the stylus identity information to receive input from more than one stylus at the same time. In particular, the coordination engine 230 may be configured to transmit the position and/or angular position of each of the number of styli detected by the coordination engine 230 to the processor 210. In other cases, the coordination engine 230 may also transmit information to the processor 210 regarding the relative positions and/or relative angular positions of the plurality of styli detected by the coordination engine 230. For example, coordination engine 220 may notify processor 210 that a detected first stylus is located a distance from a detected second stylus.
In other cases, the end signal and/or the ring signal may also include specific information and/or data for the electronic device 200 to identify a particular user. Such information is generally referred to herein as "user identity" information.
The coordination engine 230 may forward the user identity information (if detected and/or recoverable) to the processor 210. If the user identity information cannot be recovered from the tip signal and/or the ring signal, the coordination engine 230 may optionally indicate to the processor 210 that the user identity information is not available. The processor 210 can utilize the user identity information (or the absence of such information) in any suitable manner, including but not limited to: accept or reject input from a particular user, allow or reject access to a particular function of the electronic device, and the like. The processor 210 may use the user identity information to receive input from more than one user at the same time.
In still other cases, the tip signal and/or the ring signal may include specific information and/or data that may be configured to cause the electronic device 200 to identify settings or preferences of the user or stylus 100. Such information is generally referred to herein as "stylus setting" information.
The coordination engine 230 may forward the stylus setting information (if detected and/or recoverable) to the processor 210. If the stylus setting information cannot be recovered from the tip signal and/or the ring signal, the coordination engine 230 may optionally indicate to the processor 210 that the stylus setting information is not available. The electronic device 200 can utilize the stylus to set information (or the absence of such information) in any suitable manner, including but not limited to: applying settings to the electronic device, applying settings to a program running on the electronic device, changing line thickness, color, patterns rendered by a graphics program of the electronic device, changing settings of a video game operating on the electronic device, and so forth.
In general, the processor 210 may be configured to perform, coordinate, and/or manage the functions of the electronic device 200. Such functions may include, but are not limited to: communicate and/or transact data with other subsystems of electronic device 200, communicate and/or transact data with stylus 100, communicate and/or transact data via a wireless interface, communicate and/or transact data via a wired interface, facilitate power exchange via a wireless (e.g., inductive, resonant, etc.) or wired interface, receive position and angular position of one or more styli, and/or the like.
Processor 210 may be implemented as any electronic device capable of processing, receiving, or transmitting data or instructions. For example, the processor may be a microprocessor, central processing unit, application specific integrated circuit, field programmable gate array, digital signal processor, analog circuit, digital circuit, or a combination of these devices. The processor may be a single threaded or a multi-threaded processor. The processor may be a single core or a multi-core processor.
During use, the processor 210 may be configured to access a memory having stored instructions. The instructions may be configured to cause the processor to perform, coordinate, or monitor one or more operations or functions of the electronic device 200.
The instructions stored in the memory may be configured to control or coordinate the operation of other components of the electronic device 200, such as, but not limited to: another processor, analog or digital circuitry, a volatile or non-volatile memory module, a display, a speaker, a microphone, a rotary input device, a button or other physical input device, a biometric authentication sensor and/or system, a force or touch input/output component, a communication module (such as a wireless interface and/or a power connector), and/or a haptic feedback device.
The memory may also store electronic data that may be used by the stylus or the processor. For example, the memory may store electronic data or content (such as media files, documents, and applications), device settings and preferences, timing signals and control signals or data for various modules, data structures or databases, files or configurations related to detecting tip signals and/or ring signals, and so forth. The memory may be configured as any type of memory. For example, the memory may be implemented as random access memory, read only memory, flash memory, removable memory, other types of storage elements, or a combination of such devices.
The electronic device 200 also includes a power subsystem 240. The power subsystem 240 may include a battery or other power source. The power subsystem 240 may be configured to provide power to the electronic device 200. The power subsystem 240 may also be coupled to a power connector 250. Power connector 250 may be any suitable connector or port that may be configured to receive power from an external power source and/or configured to provide power to an external load. For example, in some embodiments, power connector 250 may be used to recharge a battery within power subsystem 240. In another embodiment, power connector 250 can be used to transmit power stored in (or available to) power subsystem 240 to stylus 100.
Electronic device 200 also includes a wireless interface 260 to facilitate electronic communication between electronic device 200 and stylus 100. In one embodiment, electronic device 200 may be configured to communicate with stylus 100 via a low energy bluetooth communication interface or a near field communication interface. In other examples, the communication interface facilitates electronic communication between the electronic device 200 and an external communication network, device, or platform.
The wireless interface 260 (whether a communication interface between the electronic device 200 and the stylus 100 or another communication interface) may be implemented as one or more wireless interfaces, bluetooth interfaces, near field communication interfaces, magnetic interfaces, universal serial bus interfaces, inductive interfaces, resonant interfaces, capacitive coupling interfaces, Wi-Fi interfaces, TCP/IP interfaces, network communication interfaces, optical interfaces, acoustic interfaces, or any conventional communication interfaces.
The electronic device 200 also includes a display 270. The display 270 may be located behind the input surface 220 or may be integral therewith. A display 270 may be coupled to the processor 210. Processor 210 may present information to a user using display 270. In many cases, processor 210 uses display 270 to present an interface with which a user may interact. In many cases, a user manipulates stylus 100 to interact with the interface.
It will be apparent to one skilled in the art that some of the specific details presented above with respect to the electronic device 200 may not be required to practice particular described embodiments or their equivalents. Similarly, other electronic devices may include a greater number of subsystems, modules, components, etc. Some sub-modules may be implemented as software or hardware, where appropriate. Accordingly, it should be understood that the above description is not intended to be exhaustive or to limit the disclosure to the precise form disclosed herein. On the contrary, many modifications and variations are possible in light of the above teaching, as would be apparent to those of ordinary skill in the art.
Fig. 4C is a schematic structural diagram of a wireless keyboard 300 according to an embodiment of the present disclosure. Referring to fig. 4C, the wireless keyboard 300 may include a processor 310, a memory 320, a charging interface 330, a charging management module 340, a wireless charging coil 350, a battery 360, a wireless communication module 370, a touch pad 380, and a keyboard 390.
The processor 310, the memory 320, the charging interface 330, the charging management module 340, the battery 360, the wireless communication module 370, the touch pad 380, the keyboard 390, and the like may be disposed on the keyboard body (i.e., the second portion 302 shown in fig. 1) of the wireless keyboard 300. The wireless charging coil 350 may be provided in a connection part 304 (shown in fig. 2B) for movably connecting the keyboard main body and the stand. It is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the wireless keyboard 300. In other embodiments, wireless keyboard 300 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Memory 320 may be used to store program code, such as program code for wirelessly charging stylus 100, among other things. The memory 320 may also have stored therein a bluetooth address for uniquely identifying the wireless keyboard 300. In addition, the memory 320 may also store connection data with electronic devices that have been successfully paired with the wireless keyboard 300 before. For example, the connection data may be a bluetooth address of an electronic device that has successfully paired with the wireless keyboard 300. Based on the connection data, wireless keyboard 300 is able to automatically pair with the electronic device without having to configure a connection therewith, such as for legitimacy verification or the like. The bluetooth address may be a Media Access Control (MAC) address.
The processor 310 can be configured to execute the application codes and call the relevant modules to implement the functions of the wireless keyboard 300100 in the embodiment of the present application. For example, a wired charging function, a reverse wireless charging function, a wireless communication function, etc. of the wireless keyboard 300 are implemented. The processor 310 may include one or more processing units, and the different processing units may be separate devices or may be integrated in one or more of the processors 310. The processor 310 may be specifically an integrated control chip, or may be composed of a circuit including various active and/or passive components, and the circuit is configured to perform the functions described in the embodiments of the present application and attributed to the processor 310. Wherein the processor of the wireless keyboard 300 may be a microprocessor.
The wireless communication module 370 may be configured to support data exchange between the wireless keyboard 300 and other electronic devices, including Bluetooth (BT), Global Navigation Satellite System (GNSS), Wireless Local Area Network (WLAN) (such as wireless fidelity (Wi-Fi) network), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and other wireless communications.
In some embodiments, the wireless communication module 370 may be a bluetooth chip. The wireless keyboard 300 may be a bluetooth keyboard. The wireless keyboard 300 can be paired with bluetooth chips of other electronic devices through the bluetooth chip and establish a wireless connection, so as to realize wireless communication between the wireless keyboard 300 and other electronic devices through the wireless connection.
In addition, the wireless communication module 370 may further include an antenna, and the wireless communication module 370 receives an electromagnetic wave via the antenna, frequency-modulates and filters a signal of the electromagnetic wave, and transmits the processed signal to the processor 310. The wireless communication module 370 may also receive signals to be transmitted from the processor 310, frequency modulate them, amplify them, and convert them into electromagnetic waves via the antenna to radiate them out.
In some embodiments, wireless keyboard 300 may support wired charging. Specifically, the charging management module 340 may receive a charging input of the wired charger through the charging interface 330.
In other embodiments, wireless keyboard 300 may support forward wireless charging. The charging management module 340 may receive a wireless charging input through the wireless charging coil 350 of the wireless keyboard 300. Specifically, the charging management module 340 is connected to the wireless charging coil 350 through a matching circuit. The wireless charging coil 350 may be coupled to the wireless charging coil of the wireless charger to induce an alternating electromagnetic field emitted by the wireless charging coil 350 of the wireless charger to generate an alternating electrical signal. The alternating electrical signal generated by the wireless charging coil 350 is transmitted to the charging management module 340 through the matching circuit to wirelessly charge the battery 330.
The charging management module 340 may also supply power to the wireless keyboard 300 while charging the battery 330. The charge management module 340 receives an input of the battery 330, and supplies power to the processor 310, the memory 320, the external memory, and the wireless communication module 370, etc. The charge management module 340 may also be used to monitor parameters such as battery capacity, battery cycle number, and battery state of health (leakage, impedance) of the battery 360. In some other embodiments, the charging management module 340 may also be disposed in the processor 310.
In other embodiments, wireless keyboard 300 may support reverse wireless charging. Specifically, the charging management module 340 may further receive an input of the charging interface 330 or the battery 360, and convert a dc signal input by the charging interface 330 or the battery 360 into an ac signal. The ac power signal is transmitted to the wireless charging coil 350 through the matching circuit. The alternating current signal received by the wireless charging coil 350 may generate an alternating electromagnetic field. The wireless charging coils of other mobile terminals induce the alternating electromagnetic field, and wireless charging can be carried out. That is, the wireless keyboard 300 may also be used to wirelessly charge other mobile terminals. In one embodiment, wireless charging coil 350 may be disposed in receiving portion 303 of wireless keyboard 300, and wireless charging coil is disposed in shaft 20 of stylus 100, and when stylus 100 is placed in receiving portion 303, wireless keyboard 300 may charge stylus 100 through wireless charging coil 350.
It should be noted that the matching circuit may be integrated in the charging management module 340, or the matching circuit may be independent from the charging management module 340, which is not limited in this embodiment of the application. Fig. 4C shows a hardware structure diagram of the wireless keyboard 300, taking as an example that the matching circuit may be integrated in the charging management module 340.
The charging interface 350 may be used to provide a wired connection for charging or communication between the wireless keyboard 300 and other electronic devices (e.g., a wired charger of the wireless keyboard 300).
The touch pad 380 has a touch sensor integrated therein. The notebook computer can receive a control command of the notebook computer from a user through the touch pad 380 and the keyboard 390.
It is to be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation to the wireless keyboard 300. It may have more or fewer components than shown in fig. 4C, may combine two or more components, or may have a different configuration of components. For example, the housing of the wireless keyboard 300 may further include a receiving cavity for receiving the stylus pen 100. The wireless charging coil 350 is disposed in the accommodating cavity, and is configured to wirelessly charge the stylus pen 100 after the stylus pen 100 is accommodated in the accommodating cavity.
For another example, the external surface of the wireless keyboard 300 may further include keys, an indicator light (which may indicate the status of power, incoming/outgoing call, pairing mode, etc.), a display screen (which may prompt the user for relevant information), and the like. The key may be a physical key or a touch key (used in cooperation with the touch sensor), and is used for triggering operations such as power on, power off, starting charging, stopping charging, and the like.
The embodiment of the present application is described below by taking an electronic device as a tablet computer, that is, taking the tablet computer as a wireless keyboard and a wireless touch pen for charging.
In some embodiments, in a case where the tablet computer and the wireless keyboard are located in the charging position (e.g., the tablet computer is attached to the keyboard cover of the wireless keyboard), the tablet computer can prompt whether to wirelessly charge the wireless keyboard. Specifically, the tablet computer may display a first prompt message, where the first prompt message is used to prompt whether to wirelessly charge the wireless keyboard. For example, when the tablet computer and the wireless keyboard are located in the charging position shown in fig. 1, the tablet computer may display a first prompt message 501 as shown in fig. 5A, where the first prompt message 501 is used to prompt the user whether the tablet computer agrees to wirelessly charge the wireless keyboard. For example, the first prompting message 501 may be "prompt, whether to approve wireless charging for the wireless keyboard. ".
In response to a first operation of the user, the tablet computer can be wirelessly charged for the wireless keyboard, and the first operation is used for triggering the tablet computer to perform reverse wireless charging. And responding to a second operation of the user, the tablet computer does not perform reverse wireless charging, and the second operation is used for triggering the tablet computer not to initiate wireless charging to the wireless keyboard. Illustratively, in conjunction with fig. 5A, the first prompt message 501 may further include an "agree" option for triggering the tablet to wirelessly charge the wireless keyboard and a "reject" option for rejecting the tablet to wirelessly charge the wireless keyboard. In response to a user action on the "agree" option (i.e., the first action), the tablet may wirelessly charge the wireless keyboard. In response to the user's action on the "decline" option (i.e., the second action), the tablet computer does not wirelessly charge the wireless keyboard.
It can be understood that, the tablet computer displays the first prompt message, and the user can actively control whether the tablet computer is wirelessly charged for the wireless keyboard. Therefore, the operability of the user is improved, and the use experience of the user is improved.
It should be noted that, in the embodiment of the present application, a time for displaying the first prompt message on the tablet computer is not limited. For example, in the case that the power of the tablet computer is insufficient (e.g., the power of the tablet computer is less than 10%), the tablet computer may display the first prompt message. Thus, in conjunction with fig. 5A, the tablet may receive a user action on the "reject" option, rejecting wireless charging of the wireless keyboard. So, can ensure that the panel computer can not be for wireless charging of wireless keyboard when the electric quantity is not enough, delay the speed that the panel computer electric quantity reduces, and then prolonged when having prolonged panel computer's use, improved user's use and experienced. For another example, the tablet may display the first prompt message while the tablet is in the charging state. Therefore, if the tablet computer stops charging the wireless keyboard due to the fact that the electric quantity of the tablet computer is low, the user can control the tablet computer to continue charging the wireless keyboard, and using experience of the user is improved.
The tablet computer is in a charging state, that is, the tablet computer stores energy (i.e., stores electric power) for a battery of the tablet computer in a wired or wireless manner. For example, a charging interface of a tablet computer may be connected to a wired charger (also referred to as a power adapter) to receive charging input of the wired charger. For example, the charging interface may be a Universal Serial Bus (USB) interface.
In some embodiments, in a case where the stylus is located at the charging position (e.g., the stylus is attached in the receiving cavity of the wireless keyboard), the electronic device is capable of wirelessly charging the stylus, the electronic device may prompt whether to wirelessly charge the stylus. Specifically, the electronic device may display a second prompt message, where the second prompt message is used to prompt whether to wirelessly charge the stylus. For example, when the tablet computer is located in the charging position shown in fig. 1 and the stylus is located in the charging position shown in fig. 2C, the tablet computer may display a second prompt message 502 shown in fig. 5B, where the second prompt message 502 is used to prompt the user whether to approve the wireless charging of the stylus by the tablet computer. For example, the second prompting message 502 can be "prompt" whether to approve wireless charging of the stylus pen. ". Optionally, the second prompt message 502 may further include an "accept" option for triggering the tablet to wirelessly charge the stylus and a "reject" option for rejecting the tablet to wirelessly charge the stylus. Alternatively, the first message and the second message may be the same message. The embodiments of the present application do not limit this.
It should be noted that, for the specific description of the electronic device displaying the second prompt message, reference may be made to the above description of the electronic device displaying the first prompt message, which is not repeated herein.
It can be understood that the tablet computer displays the second prompt message, and the user can actively control whether the tablet computer is wirelessly charged by the stylus pen. Therefore, the operability of the user is improved, and the use experience of the user is improved.
In some embodiments, in the case where the tablet computer, the wireless keyboard, and the stylus are all located in the charging position, the electronic device may prompt whether to wirelessly charge the wireless keyboard and the stylus. Specifically, the electronic device may display a first prompting message and a second prompting message. Optionally, the electronic device may display a fourth prompting message, where the fourth prompting message is used to instruct wireless charging of the wireless keyboard and/or the stylus. In response to the first operation, the tablet may send a target message to the wireless keyboard through BLE, the target message indicating that the target device is wirelessly charged, the target device including the wireless keyboard and/or the stylus. Optionally, the target message may include an identification of the target device, such as a MAC address. The wireless keyboard receives the target message and can wirelessly charge the target device.
For example, in a case that the tablet computer is attached to the keyboard cover of the wireless keyboard and the stylus pen is attached to the receiving cavity of the wireless keyboard, the tablet computer may display a fourth prompt message 503 as shown in fig. 5C, where the fourth prompt message 503 is used to prompt the user whether to approve the wireless charging of the wireless keyboard and/or the stylus pen by the tablet computer. For example, the fourth prompting message 503 may be "please select which devices to wirelessly charge" below, "and the fourth prompting message 503 may include a" wireless keyboard "option and a" stylus "option. Optionally, the second prompt message 502 may further include an "ok" option for triggering the tablet to wirelessly charge the selected device and a "cancel" option for rejecting the tablet to wirelessly charge the wireless keyboard and stylus. For example, the tablet computer selects the "wireless keyboard" option and the "touch pen" option in response to a selection operation by the user. Thereafter, the tablet may wirelessly charge the wireless keyboard and stylus in response to the user acting on the "confirm" option.
It can be understood that the tablet computer displays the fourth prompt message, and the user can actively control whether the tablet computer is wirelessly charged by the wireless keyboard and the stylus pen. Therefore, the operability of the user is improved, and the use experience of the user is improved.
It should be noted that, under the condition that the electric quantity of the tablet computer is low, the tablet computer wirelessly charges the wireless keyboard and the stylus pen, which may cause the electric quantity of the tablet computer to be reduced quickly, and cause the tablet computer to be automatically turned off too early due to insufficient electric quantity, thereby affecting the use experience of the user in using the tablet computer.
In some embodiments, when the remaining power of the tablet computer is low, the tablet computer is not subjected to reverse wireless charging. Specifically, a first preset device power threshold is stored in the wireless keyboard. The wireless keyboard can acquire the electric quantity information of the tablet computer, and the electric quantity information of the tablet computer is used for indicating the residual electric quantity of the tablet computer. Then, the wireless keyboard can compare the electric quantity information of the tablet computer with a first preset equipment electric quantity threshold value. If the electric quantity information of the tablet computer is larger than the electric quantity threshold value of the first preset device, the wireless keyboard can determine that the tablet computer is reversely and wirelessly charged. If the electric quantity information of the tablet computer is smaller than the electric quantity threshold value of the first preset device, the wireless keyboard can determine that the tablet computer does not perform reverse wireless charging.
Illustratively, suppose the first preset device power threshold is 19%. If the electric quantity information of the tablet computer is 40%, the wireless keyboard determines that the tablet computer is reversely and wirelessly charged. If the electric quantity information of the tablet computer is 10%, the wireless keyboard determines that the tablet computer does not perform reverse wireless charging.
In other embodiments, if the tablet computer determines that its own power level is below a certain threshold, charging the wireless keyboard or the stylus may be stopped. Or, when the tablet computer determines that the electric quantity of the tablet computer is lower than a certain threshold value, the wireless charging is not started when the keyboard or the stylus pen is detected to be connected.
It can be understood that, if the power information of the tablet computer is greater than the first preset device power threshold, it indicates that the remaining power of the tablet computer is higher, and the tablet computer is not automatically turned off in a short time due to reverse wireless charging. If the electric quantity information of the tablet computer is smaller than the first preset equipment electric quantity threshold value, it is indicated that the residual electric quantity of the tablet computer is low. The panel computer does not perform reverse wireless charging, so that the consumption of electric quantity can be reduced, and the usable time of the panel computer is prolonged.
It should be noted that, when the tablet computer is not in a charging state and the electric quantity of the wireless keyboard and the touch pen is sufficient, the tablet computer wirelessly charges the wireless keyboard and the touch pen; the electric quantity of the tablet computer may be reduced quickly, so that the tablet computer is automatically turned off too early due to insufficient electric quantity, and the use experience of the user in using the tablet computer is influenced.
In some embodiments, the wireless keyboard may indicate whether the electronic device wirelessly charges the wireless keyboard and/or the stylus pen according to the charging state of the tablet computer, the power information of the wireless keyboard, and the power information of the stylus pen. The charging status is used to indicate whether the tablet computer is being charged (e.g., wirelessly charged or wired charged). The power information is used to indicate the remaining power. For example, the power information of the wireless keypad is 80%, indicating that the remaining power of the wireless keypad is 80%.
An embodiment of the present application provides a wireless charging method, which may include S601-S613 as shown in fig. 6.
S601, establishing Bluetooth connection between the tablet personal computer and the wireless keyboard.
In the embodiment of the application, the tablet computer and the wireless keyboard both need to start the bluetooth function to establish the bluetooth connection between the tablet computer and the wireless keyboard. For a specific description of the manner of establishing the bluetooth connection between the tablet pc and the wireless keyboard, reference may be made to a method for establishing the bluetooth connection between the electronic device and another electronic device in the conventional technology, which is not described herein again.
In some embodiments, the tablet may establish a bluetooth connection with the wireless keyboard and the stylus, respectively.
It is understood that the tablet pc may also be connected to the wireless keyboard or the touch pen via other communication methods. For example, the tablet computer may establish a wired connection with the wireless keyboard, or may establish a connection through other wireless communication technologies such as Wifi. The embodiment of the present application does not limit the technical manner of establishing the connection.
S602, the tablet computer sends a charging state message to the wireless keyboard.
Wherein the charging status message includes charging information of the tablet computer. The charging information of the tablet computer is used for indicating whether the tablet computer is being charged. In the embodiment of the present application, whether the tablet computer is being charged means whether a battery of the tablet computer is storing energy (i.e., storing power).
In some embodiments, the charging information includes first charging indication information or second charging indication information. The first charging indication information is used for indicating that the tablet computer is being charged, and the second charging indication information is used for indicating that the tablet computer is not being charged. That is, if the charging information is the first charging instruction information, the tablet computer is in a charging state. If the charging information is the second charging information, the tablet computer is in an uncharged state.
For example, if the tablet computer is being charged, the tablet computer may send first charging indication information to the wireless keyboard. If the tablet computer is not being charged, the tablet computer may send a second charging indication message to the wireless keyboard.
Optionally, the charging status message may further include: a charging service identification, a charging status identification, a first message type, and length information. Wherein the charging service identifier is used for indicating that the charging status message belongs to a charging service type message. The charging status flag is used to indicate whether the charging status message may reflect whether the tablet computer is being charged. The first message type is used to indicate that the charge status message is sent by the tablet computer to the wireless keyboard. The length information is used to indicate the length of the charge status message. For example, the charge status message may be "Service id: 01, Command id: 01, Type: 01, Length: 01, Value: 01 ", wherein" Service id: 01 "is a charging service identifier," Command id: 01 "is the state of charge sign," Type: 01 "is a first message type," Length: 01 "is length information of the charge status message (i.e., the length of the charge status message is 1 byte)," Value: and 01 "is first charge indication information. For another example, the charge status message may also be "Service id: 01, Command id: 01, Type: 01, Length: 01, Value: 00".
In some embodiments, the tablet may broadcast a charge status message when the charge status of the tablet changes. Specifically, the tablet computer may monitor a charging state of the tablet computer. If the charging state of the tablet computer is changed, the tablet computer can broadcast the charging state message through the Bluetooth channel.
In other embodiments, if the tablet computer is not being charged, the charge status message may not be sent to the wireless keyboard. At this time, the wireless keyboard does not receive the charging state message sent by the tablet computer within the preset time, and the tablet computer can be considered not to be charged.
The change of the charging state of the tablet computer means that the tablet computer is changed from a charging state to a non-charging state; alternatively, the change in the charging state of the tablet pc means that the tablet pc is changed from a non-charging state to a charging state.
It can be understood that, when the charging state of the tablet computer is changed, the tablet computer sends a charging state message to the wireless keyboard, so that the wireless keyboard can determine whether the tablet computer is being charged in time. Thus, the wireless keyboard can determine whether to instruct the tablet computer to wirelessly charge the wireless keyboard and/or the stylus pen according to the charging state of the tablet computer.
In some embodiments, before the tablet sends the charging information of the tablet to the wireless keyboard, the wireless keyboard may send a charging query message to the tablet through Bluetooth Low Energy (BLE), the charging query message being used to query whether the tablet is being charged. For example, the charging query message may include: a charging service identification, a charging query identification, a second message type, and length information. Wherein the charging service identifier is used for indicating that the charging status message belongs to a charging service type message. The charging query identifier is used to indicate that the charging query message can query whether the tablet computer is being charged. The second message type is used for indicating that the charging inquiry message is sent to the tablet computer by the wireless keyboard. The length information is used to indicate the length of the charging inquiry message. For example, the charging query message may be "Service id: 01, Command id: 02, Type: 02, Length: 01". Wherein, "Service id: 01 "is a charging service identifier," Command id: 02 "is the inquiry sign of charging," Type: 02 "is a second message type," Length: 01 "is length information of the charging inquiry message (i.e., the length of the charging inquiry message is 1 byte).
The tablet computer may receive a charging inquiry message from the wireless keyboard. Thereafter, the tablet may send a charging status message of the tablet to the wireless keyboard via BLE. For example, the tablet computer may send a charging status message of the tablet computer to the wireless keyboard through a first service path, where the first service path is used for the tablet computer to send a message to the wireless keyboard, and the first service path corresponds to a first Universally Unique Identifier (UUID).
S603, the wireless keyboard receives the charging state information from the tablet personal computer.
S604, the wireless keyboard acquires the electric quantity information of the wireless keyboard.
The power information of the wireless keyboard is used for indicating the remaining power of the wireless keyboard. For example, the power information of the wireless keypad is 80%, indicating that the remaining power of the wireless keypad is 80%. For another example, the power information of the wireless keyboard is 30%, indicating that the remaining power of the wireless keyboard is 30%.
S605, the wireless keyboard acquires the electric quantity information of the touch pen.
The electric quantity information of the touch pen is used for indicating the residual electric quantity of the touch pen. For example, the power information of the stylus is 80%, and the remaining power for indicating the stylus is 80%. For another example, the power information of the stylus is 30%, and the remaining power for indicating the stylus is 30%.
In some embodiments, the wireless keyboard may obtain the power information of the stylus pen when the stylus pen is attached to the receiving cavity of the wireless keyboard. Illustratively, as shown in fig. 2C, when the stylus pen 100 is attached to the receiving portion 303 of the wireless keyboard 302, the wireless keyboard 302 may charge the stylus pen 100 through the coil as shown in fig. 3.
It should be noted that, in the embodiment of the present application, the order in which the wireless keyboard acquires the power information of the wireless keyboard and the power information of the wireless keyboard acquires the power information of the stylus is not limited. For example, the wireless keyboard may perform S604 and then S605. For another example, the wireless keyboard may first perform S605 and then perform S604. For another example, the wireless keyboard may perform S604 and S605 simultaneously.
S606, the wireless keyboard determines whether the tablet computer is reversely and wirelessly charged according to the charging information of the tablet computer, the electric quantity information of the wireless keyboard and the electric quantity information of the touch pen.
In the embodiment of the present application, the tablet computer performs reverse wireless charging, which means that the tablet computer can wirelessly charge a wireless keyboard and/or a touch pen. For example, the tablet may be wirelessly charged for the wireless keyboard. As another example, the tablet computer may wirelessly charge the stylus. As another example, the tablet computer may wirelessly charge the wireless keyboard and stylus. That is, the wireless keyboard may determine whether the tablet computer is the wireless keyboard or the stylus or the wireless keyboard and the stylus are wirelessly charged according to the charging information of the tablet computer, the electric quantity information of the wireless keyboard, and the electric quantity information of the stylus.
In some embodiments, if the tablet computer is not in the charging state and the remaining capacity of the wireless keyboard and/or the remaining capacity of the stylus pen are low, the wireless keyboard may determine that the tablet computer is wirelessly charged for the wireless keyboard and/or the stylus pen. Specifically, a first preset keyboard power threshold and a first preset stylus power threshold are stored in the tablet computer. The electronic device can compare the electric quantity information of the wireless keyboard with a first preset keyboard electric quantity threshold value, and compare the electric quantity information of the touch pen with the first preset touch pen electric quantity threshold value. If the charging information is the second charging indication information and the electric quantity information of the wireless keyboard is smaller than the first preset keyboard electric quantity threshold value, and/or the electric quantity information of the touch pen is smaller than the first preset touch pen electric quantity threshold value, the wireless keyboard determines that the tablet computer is reversely and wirelessly charged.
It should be noted that, in the embodiment of the present application, the first preset keyboard power threshold and the first preset stylus power threshold are not limited. For example, the first preset keyboard power threshold is 19%, and the first preset stylus power threshold is 59%. For another example, the first predetermined keyboard power threshold is 18%, and the first predetermined stylus power threshold is 58%. In general, when the power information of the wireless keyboard is the first preset keyboard power threshold, the wireless keyboard can be used for a longer time (for example, 1 day); when the power information of the stylus is the first preset stylus power threshold, the stylus can be used for a longer time (e.g., 1 day).
Illustratively, if the first predetermined keyboard power threshold is 19%, the first predetermined stylus power threshold is 59%. If the tablet computer is not in a charging state, the electric quantity information of the wireless keyboard is 16%, the electric quantity information of the touch pen is 30%, and the wireless keyboard can determine that the tablet computer is reversely and wirelessly charged. If the tablet computer is not in a charging state, the electric quantity information of the wireless keyboard is 40%, the electric quantity information of the touch pen is 30%, and the wireless keyboard can determine that the tablet computer is reversely and wirelessly charged. If the tablet computer is not in a charging state, the electric quantity information of the wireless keyboard is 16%, the electric quantity information of the touch pen is 80%, and the wireless keyboard can determine that the tablet computer is reversely and wirelessly charged.
It can be understood that if the power information of the wireless keyboard is smaller than the first predetermined keyboard power threshold, and/or the power information of the stylus is smaller than the first predetermined stylus power threshold, it indicates that the remaining power of the wireless keyboard and the stylus is lower. Therefore, the wireless keyboard can determine that the tablet computer is reversely and wirelessly charged, so that the residual electric quantity of the wireless keyboard and the touch pen is improved, and the available duration of the wireless keyboard and the touch pen is prolonged.
If the charging information is second charging indication information, the electric quantity information of the wireless keyboard is larger than a first preset keyboard electric quantity threshold value, the electric quantity information of the touch pen is larger than a first preset touch pen electric quantity threshold value, and the wireless keyboard determines that the tablet computer does not perform reverse wireless charging.
Illustratively, if the first predetermined keyboard power threshold is 19%, the first predetermined stylus power threshold is 59%. If the tablet computer is not in a charging state, the electric quantity information of the wireless keyboard is 40%, the electric quantity information of the touch pen is 80%, and the wireless keyboard can determine that the tablet computer is not reversely charged wirelessly.
It can be understood that, if the electric quantity information of the wireless keyboard is greater than the first preset keyboard electric quantity threshold, and the electric quantity information of the stylus is greater than the first preset stylus electric quantity threshold, it indicates that the remaining electric quantities of the wireless keyboard and the stylus are higher, and the tablet computer does not need to perform reverse wireless charging. Moreover, the tablet computer is not charged wirelessly, so that the consumption of the electric quantity of the tablet computer can be reduced, and the available time of the tablet computer is prolonged.
In some embodiments, if the tablet computer is in the charging state, the wireless keyboard may determine that the tablet computer is wirelessly charged for the wireless keyboard and/or the stylus. Specifically, if the charging information is the second charging instruction information, the wireless keyboard may determine that the tablet computer performs reverse wireless charging.
It can be understood that if the tablet computer is in a charging state, the power of the tablet computer may be continuously increased. Therefore, when the tablet computer is in a charging state, the problem of insufficient electric quantity of the tablet computer can be avoided when the tablet computer is subjected to reverse wireless charging.
In some embodiments, if the wireless keyboard determines that the tablet computer is reversely wirelessly charged, the wireless keyboard may perform S607.
In some embodiments, if the wireless keyboard determines that the tablet computer is reversely wirelessly charged, the wireless keyboard may perform S607. If the wireless keyboard determines that the tablet computer is not performing the reverse wireless charging, the wireless keyboard may perform S613.
In other embodiments, if the wireless keyboard determines that the tablet computer is not performing the reverse wireless charging, and the tablet computer is not charging the wireless keyboard at this time, the wireless keyboard may not send the reverse charging stop message. Because the tablet computer does not perform wireless charging at this time, wireless charging cannot be started when the wireless charging message is not received. This way resources for message transmission can be saved.
In other embodiments, the wireless keyboard may determine whether the tablet computer is charging the wireless keyboard at the time when determining to send the wireless charging start message or the wireless charging stop message. For example, if the tablet computer is charging the wireless keyboard at the same time, and the wireless keyboard determines that the tablet computer is to be charged, the wireless charging start message may not be sent. If the tablet computer is not charged to the wireless keyboard, and the wireless keyboard judges that the tablet computer needs to be charged, the wireless charging start message can be sent.
And S607, if the wireless keyboard determines that the tablet computer is reversely and wirelessly charged, the wireless keyboard sends a reverse charging start message to the tablet computer.
The reverse charging starting message is used for indicating the tablet computer to perform reverse wireless charging. The reverse charging start message comprises first control information, and the first control information is used for indicating the tablet computer to perform reverse wireless charging.
Optionally, the reverse charging start message may further include: a charging service identifier, a charging control identifier, a second message type, and length information. Wherein the charging service identifier is used for indicating that the charging status message belongs to a charging service type message. The charging control identifier is used for indicating that the reverse charging starting message can start/close a reverse wireless charging function of the tablet computer. The length information is used to indicate the length of the reverse charge on message.
For example, the reverse charge on message may be "Service id: 01, Command id: 03, Type: 02, Length: 01, Value: 01 ", wherein" Service id: 01 "is a charging service identifier," Command id: 03 "is the state of charge sign," Type: 02 "is a second message type," Length: 01 "is length information of the reverse charging on message (i.e., the length of the reverse charging on message is 1 byte)," Value: and 01' is first control information.
In some embodiments, after the wireless keyboard determines that the tablet computer is reverse wirelessly charged, the wireless keyboard may send a reverse charging on message to the tablet computer through BLE.
S608, the tablet computer initiates wireless charging to the wireless keyboard.
In this embodiment of the application, the tablet computer receives the reverse charging start message from the wireless keyboard, and the tablet computer may initiate wireless charging to the wireless keyboard. Specifically, the tablet computer receives the reverse charging starting message from the wireless keyboard, and the tablet computer can start the wireless charging coil (namely, start the reverse wireless charging function) and output wireless charging current to the wireless keyboard.
In some embodiments, before the tablet initiates wireless charging to the wireless keyboard, the tablet may prompt whether to reverse wireless charging. Specifically, the tablet computer receives a reverse charging start message from the wireless keyboard, and may prompt whether to perform reverse wireless charging (for example, a first prompt message 501 shown in fig. 5A, a second prompt message 502 shown in fig. 5B, and a fourth prompt message 503 shown in fig. 5C). Thereafter, the tablet computer may initiate wireless charging to the wireless keyboard in response to the first operation. The first operation is used for triggering the tablet computer to initiate wireless charging to the wireless keyboard. Illustratively, in conjunction with fig. 5A, the tablet may initiate wireless charging to the wireless keyboard in response to the user acting on the "agree" option (i.e., the first operation).
It can be understood that whether the tablet personal computer prompts reverse wireless charging or not can be actively controlled by a user whether the tablet personal computer is wirelessly charged for the wireless keyboard or not. Therefore, the operability of the user is improved, and the use experience of the user is improved.
It should be noted that the wireless keyboard may obtain the power information of the wireless keyboard and the power information of the stylus pen with less accuracy. Thus, if the wireless keyboard periodically performs steps S604-S606, it may cause the wireless keyboard to send different commands (e.g., a reverse charging start message or a reverse charging stop message) multiple times.
It should be noted that, when the remaining power of the wireless keyboard and/or the touch pen is low, the time consumed by the tablet computer to wirelessly charge the wireless keyboard and/or the touch pen may be long.
In some embodiments, the tablet computer may be able to quickly wirelessly charge the wireless keyboard and/or stylus if the remaining amount of power on the wireless keyboard and/or stylus is low. Specifically, if the electric quantity information of the wireless keyboard is smaller than a first preset keyboard electric quantity threshold, or the electric quantity information of the stylus is smaller than a first preset stylus electric quantity threshold, the tablet computer may initiate charging to the wireless keyboard through a fast charging protocol. The embodiment of the present application does not limit the fast charging protocol. For example, the fast charge protocol may be a Universal Serial Bus-Power Delivery (USBPD) protocol.
It can be understood that the tablet computer initiates charging to the wireless keyboard through the quick charging protocol, and the charging efficiency of wireless charging can be improved. Therefore, the charging time of the wireless keyboard and the touch pen can be shortened, and the use experience of a user is improved.
In some embodiments, if the frequency of the tablet computer receiving the reverse charging on message within the preset time period is high, the tablet computer may not execute the message. Specifically, the tablet computer may obtain a first frequency according to the reverse charging start message received within the preset time period, where the first frequency is a frequency at which the tablet computer receives the reverse charging start message within the preset time period. Moreover, a preset frequency threshold is stored in the tablet computer. If the first frequency is greater than the preset frequency threshold, the tablet computer does not perform reverse wireless charging. If the first frequency is smaller than the preset frequency threshold, the tablet computer performs reverse wireless charging.
For example, if the preset frequency threshold is 5 times/min, the total number of reverse charge on messages received in one minute is 5 times. If the first frequency is 3 times/min after the tablet computer receives the message (such as the reverse charging start message) from the wireless keyboard, the tablet computer executes the reverse charging start message. If the first frequency is 8 times/minute after the tablet computer receives the reverse charging start message from the wireless keyboard, the tablet computer does not execute the reverse charging start message.
It can be understood that by comparing the first frequency with the preset frequency threshold, the tablet computer can be prevented from being frequently turned on and off to perform reverse wireless charging. Therefore, the discharging times of the battery of the tablet computer can be reduced, and the service life of the tablet computer is prolonged.
It should be noted that, if the frequency of receiving the reverse charging stop message by the tablet computer within the preset time period is high, the tablet computer may not execute the message. Reference is made to the description of the above embodiments, which are not repeated herein.
And S609, the wireless keyboard determines to wirelessly charge the wireless keyboard and/or the touch pen according to the electric quantity information of the wireless keyboard and the electric quantity information of the touch pen.
It should be noted that, in the embodiment of the present application, when the remaining power of the wireless keyboard is low or the remaining power of the stylus is high, the wireless keyboard may be determined to be wirelessly charged by the wireless keyboard. When the remaining capacity of the wireless keyboard is high, the wireless keyboard can be determined to be wirelessly charged by the stylus. When the remaining capacity of the wireless keyboard and the stylus is moderate, the wireless keyboard can be determined to be wirelessly charged by the wireless keyboard and the stylus.
In some embodiments, the wireless keyboard may determine to wirelessly charge the wireless keyboard and not to wirelessly charge the stylus when the remaining power of the wireless keyboard is low. Specifically, a second preset keyboard power threshold is stored in the wireless keyboard. The wireless keyboard may compare the power information of the wireless keyboard to a second preset keyboard power threshold. If the electric quantity information of the wireless keyboard is smaller than the second preset keyboard electric quantity threshold value, the wireless keyboard can be determined to be wirelessly charged for the wireless keyboard, and the touch pen is not wirelessly charged. And the second preset keyboard electric quantity threshold value is smaller than the first preset keyboard electric quantity threshold value. In general, when the power information of the wireless keyboard is the second preset keyboard power threshold, the available time of the wireless keyboard is short (for example, 1 hour).
Illustratively, suppose the second predetermined keyboard power threshold is 14%. If the electric quantity information of the wireless keyboard is 6%, the wireless keyboard can be determined to be wirelessly charged by the wireless keyboard and not wirelessly charged by the touch pen.
In some embodiments, the wireless keyboard may determine to wirelessly charge the wireless keyboard and not to wirelessly charge the stylus when the remaining power of the stylus is high. Specifically, a second preset stylus power threshold is stored in the wireless keyboard. The wireless keyboard may compare the power information of the stylus to a second predetermined stylus power threshold. If the electric quantity information of the stylus is larger than the second preset electric quantity threshold value of the stylus, the wireless keyboard determines that the wireless keyboard is charged wirelessly, and the wireless keyboard is not charged wirelessly. Optionally, if the electric quantity information of the stylus is equal to the second preset electric quantity threshold of the stylus, the wireless keyboard determines that the wireless keyboard is wirelessly charged, and the wireless keyboard is not wirelessly charged. The second preset touch control pen electric quantity threshold value is larger than the first preset touch control pen electric quantity threshold value. In general, when the power information of the stylus is the second preset power threshold of the stylus, the remaining power of the stylus is close to or equal to 100%.
For example, if the second predetermined stylus power threshold is 95%. If the electric quantity information of the wireless keyboard is 100%, the wireless keyboard can be determined to be wirelessly charged by the wireless keyboard and not wirelessly charged by the touch pen.
In some embodiments, the wireless keyboard may determine to wirelessly charge the stylus and not to wirelessly charge the wireless keyboard when the remaining power of the wireless keyboard is high. Specifically, a third preset keyboard power threshold is stored in the wireless keyboard. The wireless keyboard may compare the power information of the wireless keyboard to a third preset keyboard power threshold. If the electric quantity information of the wireless keyboard is larger than the third preset keyboard electric quantity threshold value, the wireless keyboard can be determined to be wirelessly charged by the touch pen, and the wireless keyboard is not wirelessly charged. And the third preset keyboard electric quantity threshold value is larger than the first preset keyboard electric quantity threshold value.
Illustratively, suppose the third predetermined keyboard power threshold is 29%. If the electric quantity information of the wireless keyboard is 50%, the wireless keyboard can be determined to be wirelessly charged by the touch pen, and the wireless keyboard is not wirelessly charged.
In some embodiments, the wireless keyboard may determine to wirelessly charge the wireless keyboard and the stylus when the remaining capacity of the wireless keyboard and the remaining capacity of the stylus are both moderate. Specifically, a second preset stylus power threshold, a second preset keyboard power threshold and a third preset keyboard power threshold are stored in the wireless keyboard. The wireless keyboard can compare the electric quantity information of the wireless keyboard with a second preset keyboard electric quantity threshold value and a third preset keyboard electric quantity threshold value respectively, and compare the electric quantity information of the touch pen with the second preset touch pen electric quantity threshold value. If the electric quantity information of the wireless keyboard is larger than the second preset keyboard electric quantity threshold value, the electric quantity information of the wireless keyboard is smaller than the third preset keyboard electric quantity threshold value, and the electric quantity information of the touch pen is smaller than the second preset keyboard electric quantity threshold value, the wireless keyboard can be determined to be wirelessly charged by the wireless keyboard and the touch pen.
Illustratively, if the second predetermined keyboard power threshold is 14%, the third predetermined keyboard power threshold is 29%, and if the second predetermined stylus power threshold is 95%. If the power information of the wireless keyboard is 50% and the power information of the touch pen is 60%, the wireless keyboard can be determined to be wirelessly charged by the wireless keyboard and the touch pen.
It can be understood that when the remaining power of the wireless keyboard and the stylus are moderate, the wireless keyboard can wirelessly charge the wireless keyboard and the stylus at the same time. Therefore, the current reduction caused by the fact that the wireless keyboard and the touch control pen are charged wirelessly at the same time and the touch control pen is charged can be avoided, the current for charging the touch control pen is increased, and the charging efficiency of the touch control pen is improved.
In some embodiments, if the wireless keyboard determines that the stylus is wirelessly charged, the wireless keyboard performs S610 without performing S611. If the wireless keyboard determines that the stylus is wirelessly charged, the wireless keyboard performs S611 without performing S610. If the wireless keyboard determines that the wireless keyboard and the stylus are wirelessly charged, the wireless keyboard performs S612.
S610, the wireless keyboard wirelessly charges.
In some embodiments, when the power information of the wireless keyboard is smaller than the second preset keyboard power threshold, or the power information of the stylus is larger than the second preset stylus power threshold, the wireless keyboard may charge the wireless keyboard only, and not charge the stylus wirelessly. Specifically, the wireless keyboard can distribute all received wireless charging current from the tablet computer to the wireless keyboard to wirelessly charge the wireless keyboard.
Illustratively, suppose the first predetermined keyboard power threshold is 14%. If the electric quantity information of the wireless keyboard is 6%, the wireless keyboard can distribute all received wireless charging current from the tablet computer to the wireless keyboard to wirelessly charge the wireless keyboard. For example, as shown in fig. 7A, the tablet computer 200 may output 80 milliamps of current to the wireless keyboard 300. Wireless keyboard 300 may then use the 80 milliamp current to charge wireless keyboard 300. The wireless keyboard 300 outputs a current of 0 ma to the stylus pen 100 attached to the housing chamber. That is, the tablet computer 200 does not wirelessly charge the stylus pen 100.
It can be understood that if the power information of the wireless keyboard is smaller than the second preset keyboard power threshold, it indicates that the remaining power of the wireless keyboard is lower; if the electric quantity information of the stylus is larger than the second preset stylus electric quantity threshold value, the remaining electric quantity of the stylus is higher. Therefore, the wireless keyboard can determine to charge the wireless keyboard only wirelessly, and all current is distributed to the wireless keyboard. Therefore, the current reduction caused by the wireless charging of the wireless keyboard due to the wireless charging of the wireless keyboard and the touch control pen can be avoided, the current for charging the wireless keyboard is increased, and the charging efficiency of the wireless keyboard is improved.
S611, the wireless keyboard wirelessly charges the touch pen.
In some embodiments, the wireless keyboard may only charge the stylus and not wirelessly charge the wireless keyboard when the power information of the wireless keyboard is greater than the third preset keyboard power threshold. Specifically, the wireless keyboard can initiate wireless charging to the touch pen, distribute all received wireless charging currents from the tablet computer to the touch pen, and wirelessly charge the touch pen.
Illustratively, suppose the third predetermined keyboard power threshold is 29%. If the power information of the wireless keyboard is 50%, the wireless keyboard can distribute all the received wireless charging current from the tablet computer to the touch pen to wirelessly charge the touch pen. For example, as shown in fig. 7B, the tablet pc 200 may output 80 milliamps of current to the wireless keyboard 300. Then, the wireless keyboard 300 may output 80 ma of current to the stylus pen 100 attached to the receiving cavity. That is, the current for charging the wireless keyboard 300 is 0 ma, that is, the tablet pc 200 does not wirelessly charge the wireless keyboard 300.
It can be understood that, if the power information of the wireless keyboard is greater than the third preset keyboard power threshold, it indicates that the remaining power of the wireless keyboard is higher. Thus, the wireless keyboard may determine to wirelessly charge only the stylus, distributing all current to the stylus. Therefore, the current reduction caused by the fact that the wireless keyboard and the touch control pen are charged wirelessly at the same time and the touch control pen is charged can be avoided, the current for charging the touch control pen is increased, and the charging efficiency of the touch control pen is improved.
And S612, wirelessly charging the touch pen and the wireless keyboard by the wireless keyboard.
It should be noted that, in the conventional technology, when the wireless keyboard wirelessly charges the wireless keyboard and the touch pen, the current may be divided into two paths according to a fixed distribution ratio to wirelessly charge the wireless keyboard and the touch pen respectively. However, the remaining power of the wireless keyboard and the remaining power of the stylus may be different. For example, if the remaining capacity of the wireless keyboard is 25% and the remaining capacity of the stylus is 70%, the wireless keyboard still wirelessly charges the wireless keyboard and the stylus according to a fixed current. Therefore, the charging efficiency of the stylus pen may be low, and the use experience of the user may be affected.
In some embodiments, the wireless keyboard may wirelessly charge the wireless keyboard and the stylus pen when the power information of the wireless keyboard is greater than the second predetermined keyboard power threshold, the power information of the wireless keyboard is less than the third predetermined keyboard power threshold, and the power information of the stylus pen is less than the second predetermined stylus pen power threshold. Specifically, the wireless keyboard can divide all received wireless charging currents from the tablet computer into a first path of current and a second path of current according to the electric quantity information of the wireless keyboard and the electric quantity information of the touch pen according to the current distribution proportion. The first path of current is used for wirelessly charging the wireless keyboard, the second path of current is used for wirelessly charging the touch pen, and the current distribution proportion is determined by the wireless keyboard according to the residual electric quantity information of the wireless keyboard and the residual electric quantity information of the touch pen. And then, the wireless keyboard can be charged by the first path of current, and the touch pen is charged by the second path of current.
In the embodiments of the present application, the proportion of the current distributed to the wireless keyboard is not limited. For example, the wireless keyboard can divide the current into a first current and a second current according to the ratio of 3:1, namely, the first current is three times as large as the second current. For another example, the wireless keyboard may divide the current into the first current and the second current according to a ratio of 2: 1.
For example, if the power information of the wireless keyboard is 25% and the power information of the stylus is 70%, the wireless keyboard receives the full wireless charging current from the tablet pc, which is 80 ma. As shown in fig. 7C, the tablet computer 200 may output 80 milliamps of current to the wireless keyboard 300. The wireless keyboard can set the first path of current to be 60 milliamperes and set the second path of current to be 20 milliamperes. Then, the wireless keyboard 300 may charge the wireless keyboard with a current of 60 ma, and wirelessly charge the stylus pen 100 with a current of 20 ma.
It can be understood that the wireless keyboard divides all the received wireless charging currents from the tablet computer into a first path of current and a second path of current according to the electric quantity information of the wireless keyboard and the electric quantity information of the touch pen. Therefore, the current can be reasonably distributed to wirelessly charge the wireless keyboard and the touch control pen respectively, and the use experience of a user is improved.
It should be noted that, if the charging current is too large, the wireless keyboard and the touch pen may malfunction.
In some embodiments, to protect the wireless keyboard and stylus, the maximum current to charge the wireless keyboard and stylus may be limited. Specifically, the wireless keyboard may set a first maximum current and a second maximum current, where the first maximum current is a maximum current that can be received by the wireless keyboard, and the second maximum current is a maximum current that can be received by the stylus. If the current for wirelessly charging the wireless keyboard is larger than the first maximum current, or the current for wirelessly charging the wireless keyboard is larger than the second maximum current, the wireless keyboard can redistribute the current to wirelessly charge the wireless keyboard and the touch pen. Optionally, the wireless keyboard may obtain a first maximum current and a second maximum current.
Taking S610 as an example, the electronic device may compare all wireless charging currents received from the tablet computer with the first maximum current. If all the received wireless charging currents from the tablet computer are smaller than the first maximum current, the wireless keyboard may execute S610, that is, all the received wireless charging currents from the tablet computer are used as the first path of current, and the second path of current is 0. If all the received wireless charging currents from the tablet computer are larger than the first maximum current, the wireless keyboard can be charged through the first maximum current. Moreover, the wireless keyboard can wirelessly charge the stylus through the received currents except the first maximum current in all the wireless charging currents from the tablet computer. That is to say, the first path of current is the first maximum current, and the second path of current is the current except the first maximum current in all the received wireless charging currents from the tablet computer.
Illustratively, suppose the first maximum current is 60 milliamps. As can be seen from fig. 7A, the total wireless charging current (80 ma) received by the wireless keyboard from the tablet computer is greater than the first maximum current. Thus, the wireless keyboard can be wirelessly charged through 60 milliamperes current and the stylus can be wirelessly charged through 20 milliamperes current.
Therefore, the charging efficiency of the wireless keyboard can be improved, the wireless keyboard can be prevented from being broken down, and the use experience of a user is improved.
Similarly, in S611, if all the received wireless charging currents from the tablet computer are smaller than the second maximum current, the wireless keyboard may execute S611, that is, the first path of current is 0, and all the received wireless charging currents from the tablet computer are used as the second path of current. If all the received wireless charging currents from the tablet personal computer are larger than the second maximum current, the wireless keyboard can wirelessly charge the stylus through the second maximum current. And the wireless keyboard can be wirelessly charged by the residual current except the second maximum current in all the received wireless charging currents from the tablet computer. That is to say, the first path of current is a residual current except the second maximum current in all the received wireless charging currents from the tablet computer, and the second path of current is the second maximum current.
Therefore, the charging efficiency of the wireless keyboard can be improved, the wireless keyboard can be prevented from being broken down, and the use experience of a user is improved.
In S612, the first path current is smaller than the first maximum current, and the second path current is smaller than the second maximum current. Therefore, the charging efficiency of the wireless keyboard can be improved, the wireless keyboard can be prevented from being broken down, and the use experience of a user is improved.
And S613, the wireless keyboard sends a reverse charging stop message to the tablet personal computer.
The reverse charging stop message is used for indicating the tablet computer to stop performing reverse wireless charging. The reverse charging stop message includes second control information, and the second control information is used for instructing the tablet computer to stop performing reverse wireless charging. Optionally, the reverse charging start message may further include: a charging service identifier, a charging control identifier, a second message type, and length information.
It should be noted that, for the description of the reverse charging stop message, reference may be made to the description of the reverse charging start message in the foregoing embodiment, and details are not described herein.
In this embodiment of the application, the wireless keyboard may send a reverse charging stop message to the tablet computer when the tablet computer outputs a current to the wireless keyboard. Then, the tablet computer can receive a reverse charging stop message from the wireless keyboard and stop outputting current to the wireless keyboard. Specifically, the tablet computer receives the reverse charging stop message from the wireless keyboard, and the tablet computer can close the wireless charging coil (i.e., close the reverse wireless charging function) and stop outputting the wireless charging current to the wireless keyboard.
Illustratively, if the first predetermined keyboard power threshold is 19%, the first predetermined stylus power threshold is 59%. If the tablet computer is not in a charging state and the tablet computer is outputting current to the wireless keyboard, if the power information of the wireless keyboard is 40% and the power information of the stylus is 80%, the wireless keyboard may send a reverse charging stop message to the tablet computer to instruct the tablet computer to stop performing reverse wireless charging.
It can be understood that, if the electric quantity information of the wireless keyboard is greater than the first preset keyboard electric quantity threshold, and the electric quantity information of the stylus is greater than the first preset stylus electric quantity threshold, it indicates that the remaining electric quantities of the wireless keyboard and the stylus are higher, and the tablet computer does not need to continue to perform reverse wireless charging. Moreover, the tablet computer is not charged wirelessly, so that the consumption of the electric quantity of the tablet computer can be reduced, and the available time of the tablet computer is prolonged.
It should be noted that, when the tablet computer is used as an energy source to wirelessly charge the stylus through the wireless keyboard, the current is divided into two paths, one path of current charges the wireless keyboard, and the other path of current charges the stylus. Thus, the charging efficiency is reduced again, which results in a slow charging speed of the tablet computer for the stylus.
In some embodiments, the tablet may prompt the user to wirelessly charge the stylus directly through the tablet. Specifically, the tablet computer may display a third prompt message, where the third prompt message is used to prompt adjustment of the charging position of the stylus. The charging current received by the stylus at the adjusted charging position is larger than the charging current received by the stylus at the pre-adjusted charging position. For example, as shown in fig. 8, the tablet pc may display a third prompt message 801, where the third prompt message 801 is used to prompt the user to attach the stylus to the tablet pc. For example, the third prompting message 801 may be "prompt to attach a stylus to a side of a tablet computer to improve charging efficiency! ".
It can be understood that the charging efficiency of the stylus can be improved by prompting to adjust the charging position of the stylus. And then shorten the charging time of touch-control pen, improved user's use experience.
It should be noted that, in a partial usage scenario of the tablet computer, the user may not need to use the stylus and the wireless keyboard. For example, if the tablet computer is running a video playing application to play video, the probability of the user using the wireless keyboard and stylus is low. Therefore, if the tablet computer is reversely and wirelessly charged, the electric quantity of the tablet computer is consumed too fast, and the use experience of a user is influenced.
In some embodiments, the tablet may determine whether to perform reverse wireless charging according to the type of application running. Specifically, a first type of application and a second type of application are stored in the tablet computer. The first type of application is used for indicating the application program which does not need to be operated by the touch pen and the wireless keyboard, and the second type of application is used for indicating the application program which needs to be operated by the touch pen and the wireless keyboard. The tablet computer may obtain the currently running application. If the application program currently running on the tablet computer is the first type of application, the tablet computer does not perform reverse wireless charging. And if the currently running application program of the tablet computer is the second type of application, the tablet computer performs reverse wireless charging.
For example, if the currently running application of the tablet computer is a video playing application, the video playing application is a first type of application, and the tablet computer does not perform reverse wireless charging. If the currently running application program of the tablet computer is office application and the office application is second-class application, the tablet computer performs reverse wireless charging.
It can be understood that, if the application program currently running on the tablet computer is the first type of application, which indicates that the probability that the current user uses the wireless keyboard and the stylus pen is low, the tablet computer does not perform reverse wireless charging. Therefore, the consumption of the electric quantity of the tablet personal computer can be reduced, and the service life of the tablet personal computer is prolonged. If the currently running application program of the tablet computer is the second type of application, it indicates that the probability that the current user uses the wireless keyboard and the touch pen is high, and the tablet computer performs reverse wireless charging. Therefore, when the user needs to use the wireless keyboard and the touch pen, the electric quantity of the wireless keyboard and the touch pen is high, and the use experience of the user is improved.
In other embodiments, the tablet computer may obtain the charging state of the tablet computer, the power information of the wireless keyboard, and the power information of the stylus. Then, the tablet computer can determine whether to wirelessly charge the wireless keyboard and/or the stylus according to the charging state of the tablet computer, the electric quantity information of the wireless keyboard, and the electric quantity information of the stylus.
It should be noted that, for the specific description of determining whether to perform the wireless charging process for the wireless keyboard and/or the touch pen by the tablet computer, reference may be made to the foregoing embodiments, which are not described herein again.
It can be understood that the tablet computer determines whether to wirelessly charge the wireless keyboard and/or the stylus according to the charging state of the tablet computer, the electric quantity information of the wireless keyboard, and the electric quantity information of the stylus, so that the electric quantity information of each device can be ensured to be in the optimal state. Thus, the use experience of the user can be improved.
In other embodiments, the wireless keyboard may indicate whether the electronic device wirelessly charges the wireless keyboard according to the charging state of the tablet computer, the power information of the tablet computer, and the power information of the wireless keyboard. Optionally, when the charging state of the tablet computer or the electric quantity information of the tablet computer changes, the wireless keyboard may send a reverse charging start message or a reverse charging stop message to the tablet computer again according to the charging state of the tablet computer, the electric quantity information of the tablet computer, and the electric quantity information of the wireless keyboard. Reference may be made to the above embodiments, which are not repeated herein.
An embodiment of the present application provides another wireless charging method, as shown in fig. 9, the wireless charging method may include: S901-S909.
S901, establishing Bluetooth connection between the tablet personal computer and the wireless keyboard.
S902, the tablet computer sends a charging state message to the wireless keyboard.
S903, the wireless keyboard receives the charging state information from the tablet personal computer.
It should be noted that, for the descriptions of S901 to S903, reference may be made to descriptions of S601 to S603 in the foregoing embodiments, and details are not described here.
S904, the wireless keyboard acquires the electric quantity information of the tablet personal computer.
In one possible implementation, the tablet computer may send a power message to the wireless keyboard through BLE, where the power message includes power information of the tablet computer. The wireless keyboard may receive a power message from the tablet computer.
In another possible implementation manner, the wireless keyboard may send the power inquiry message to the tablet computer through BLE. The tablet computer receives the electric quantity inquiry message from the wireless keyboard and sends the electric quantity message to the wireless keyboard through BLE. The wireless keyboard may receive a power message from the tablet computer.
S905, the wireless keyboard acquires the electric quantity information of the wireless keyboard.
It should be noted that, for the description of S905, reference may be made to the description of S604 in the foregoing embodiment, and details are not described here.
S906, the wireless keyboard determines whether the tablet personal computer is reversely and wirelessly charged according to the charging information of the tablet personal computer, the electric quantity information of the tablet personal computer and the electric quantity information of the wireless keyboard.
In some embodiments, if the tablet computer is not in the charging state and the power information of the tablet computer is smaller than the first preset device power threshold, the wireless keyboard determines that the tablet computer is not performing reverse wireless charging.
In some embodiments, if the tablet computer is in the charging state, the wireless keyboard may determine whether the tablet computer is performing reverse wireless charging according to the power information of the wireless keyboard. Specifically, for the wireless keyboard, a manner of determining whether the tablet computer performs the reverse wireless charging according to the electric quantity information of the wireless keyboard may refer to the description of S606 in the foregoing embodiment, which is not described herein again.
In some embodiments, if the wireless keyboard determines that the tablet computer is reversely wirelessly charged, the wireless keyboard may perform S907.
In some embodiments, if the wireless keyboard determines that the tablet computer is reversely wirelessly charged, the wireless keyboard may perform S907.
In some embodiments, if the wireless keyboard determines that the tablet computer is reversely wirelessly charged, the wireless keyboard may perform S907. If the wireless keyboard determines that the tablet computer does not perform the reverse wireless charging, the wireless keyboard may execute S909.
And S907, if the wireless keyboard determines that the tablet personal computer is reversely and wirelessly charged, the wireless keyboard sends a reverse charging starting message to the tablet personal computer.
S908, the tablet computer initiates wireless charging to the wireless keyboard.
It should be noted that, for the descriptions of S907 to S908, reference may be made to descriptions of S607 to S608 in the foregoing embodiments, and details are not described here.
And S909, the wireless keyboard sends a reverse charging stop message to the tablet computer.
It should be noted that, for the description of S909, reference may be made to the description of S613 in the foregoing embodiment, and details are not described here.
It can be understood that the wireless keyboard can indicate whether the electronic device is wirelessly charged by the wireless keyboard and the stylus according to the charging state of the tablet computer, the electric quantity information of the tablet computer and the electric quantity information of the wireless keyboard, and the electric quantity information of each device can be in the optimal state. Thus, the use experience of the user can be improved.
In other embodiments, the wireless keyboard may indicate whether the electronic device is charging the wireless keyboard according to the charging state of the tablet computer, the power information of the tablet computer, and the power information of the stylus. Reference may be made to S901-S909 specifically, which are not described herein.
In other embodiments, the wireless keyboard may determine whether to wirelessly charge the stylus according to the power information of the wireless keyboard and the power information of the stylus.
An embodiment of the present application provides another wireless charging method, as shown in fig. 10, the wireless charging method may include: S1001-S1006.
S1001, the wireless keyboard acquires electric quantity information of the touch pen.
S1002, the wireless keyboard acquires the electric quantity information of the wireless keyboard.
It should be noted that, for the description of S1002, reference may be made to the description of S604 in the foregoing embodiment, and details are not described here.
S1003, the wireless keyboard determines to wirelessly charge the wireless keyboard and/or the touch pen according to the electric quantity information of the wireless keyboard and the electric quantity information of the touch pen.
It should be noted that, for the description of S1003, reference may be made to the description of S609 in the foregoing embodiment, and details are not described here.
In some embodiments, if the wireless keyboard determines that the stylus is wirelessly charged, the wireless keyboard performs S1004. If the wireless keyboard determines that the stylus is wirelessly charged, the wireless keyboard performs S1005. If the wireless keyboard is determined to be wirelessly charged by the wireless keyboard and the stylus, the wireless keyboard performs S1006.
S1004, the wireless keyboard wirelessly charges.
S1005, wirelessly charging the touch pen by the wireless keyboard.
S1006, the wireless keyboard charges the wireless keyboard and the touch pen wirelessly.
It should be noted that, for the descriptions of S1004 to S1006, reference may be made to descriptions of S610 to S612 in the foregoing embodiments, and details are not described here.
It can be understood that the wireless keyboard charges the wireless keyboard and/or the touch pen wirelessly according to the electric quantity information of the wireless keyboard and the electric quantity information of the touch pen, the current can be distributed reasonably to charge the wireless keyboard and the touch pen wirelessly respectively, and the use experience of a user is improved.
It should be noted that, in the above embodiments, the wireless charging method provided in the embodiments of the present application is described only by taking a tablet computer, a wireless keyboard, and a touch pen as examples, and the wireless charging method provided in the embodiments of the present application may be applied to any bluetooth device. For example, a cell phone charges a smart watch. Also for example, a cell phone charges a bluetooth headset. Also for example, a cell phone charges a cell phone.
In some embodiments, the first bluetooth device may wirelessly charge the second bluetooth device and/or the third bluetooth device.
Another wireless charging method is provided in the embodiments of the present application, and as shown in fig. 11, the wireless charging method may include: S1101-S1109.
S1101, the first Bluetooth device and the second Bluetooth device are connected.
In some embodiments, the first bluetooth device may establish a connection with a third bluetooth device.
It should be noted that, in the embodiment of the present application, a manner of establishing a connection between the first bluetooth device and the second bluetooth device, and the third bluetooth device is not limited. The manner in which the first bluetooth device establishes the connection with the second bluetooth device and the third bluetooth device may refer to the description in S601 in the foregoing embodiment, which is not described herein again.
S1102, the first Bluetooth device sends a charging state message to the second Bluetooth device.
It should be noted that, for the description of S1102, reference may be made to the description of S602 in the foregoing embodiment, and details are not described here.
In some embodiments, the first bluetooth device may transmit power information of the first bluetooth device to the second bluetooth device. Optionally, the charge status message may include power information of the first bluetooth and the device.
In some embodiments, the second bluetooth device may acquire power information of the second bluetooth device and/or power information of a third bluetooth device.
In some embodiments, the second bluetooth device may transmit power information of the second bluetooth device and/or power information of the third bluetooth device to the first bluetooth device.
S1103, the second bluetooth device determines whether to send a wireless charging start message/a wireless charging stop message to the first bluetooth device according to the power information and/or the charging status message.
It should be noted that, for the specific description of S1103, reference may be made to the description of S606, which is not described herein again.
In some embodiments, the first bluetooth device may determine whether to wirelessly charge the second bluetooth device according to the power information of the second bluetooth device, the power information of the third bluetooth device, and the power information of the first bluetooth device. Reference may be made to the description of the above embodiments, which are not repeated herein.
In some embodiments, if the second bluetooth device determines to transmit the wireless charging on message to the first bluetooth device, the second bluetooth device performs S1104. If the second bluetooth device determines to transmit the wireless charging stop message to the first bluetooth device, the second bluetooth device performs S1109.
And S1104, the second Bluetooth device sends a wireless charging start message to the first Bluetooth device.
It should be noted that, for the specific description of S1104, reference may be made to the description of S607, which is not described herein again.
S1105, the first Bluetooth device initiates wireless charging to the second Bluetooth device.
It should be noted that, for the specific description of S1105, reference may be made to the description of S608, which is not described herein again.
In some embodiments, after the first bluetooth device initiates wireless charging to the second bluetooth device, the second bluetooth device may determine to wirelessly charge the second bluetooth device and/or the third bluetooth device according to the power information of the second bluetooth device and the power information of the third bluetooth device.
It should be noted that, the manner in which the second bluetooth device determines to be the second bluetooth device and/or the third bluetooth device for wireless charging may refer to the description in S609, and details are not repeated here.
In some embodiments, if the second bluetooth device determines to wirelessly charge the second bluetooth device, the second bluetooth device performs S1106. If the second bluetooth device determines to wirelessly charge the third bluetooth device, the second bluetooth device performs S1107. If the second bluetooth device determines that the second bluetooth device and the third bluetooth device are wirelessly charged, the second bluetooth device performs S1108.
And S1106, the second Bluetooth device wirelessly charges the second Bluetooth device.
S1107, the second Bluetooth device wirelessly charges the third Bluetooth device.
S1108, the second Bluetooth device wirelessly charges the second Bluetooth device and the third Bluetooth device.
It should be noted that, for the specific description of S1106 to S1108, reference may be made to descriptions of S610 to S612, which are not described herein again.
S1109, the second Bluetooth device sends a reverse charging stop message to the first Bluetooth device.
It should be noted that, for the specific description of S1109, reference may be made to the description of S613, which is not described herein again.
It can be understood that the second bluetooth device indicates whether the first bluetooth device wirelessly charges the second bluetooth device and/or the third bluetooth device according to the charging state of the first bluetooth device, the power information of the second bluetooth device, and the like, and it can be ensured that the power information of each bluetooth device is in the optimal state. Thus, the use experience of the user can be improved.
The scheme provided by the embodiment of the application is mainly introduced from the perspective of electronic equipment. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the exemplary method steps of a wireless charging system described in connection with the embodiments disclosed herein may be implemented as hardware or a combination of hardware and computer software. Whether a function is performed as hardware or as software driven hardware in an electronic device depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the wireless charging device may be divided into the functional modules or the functional units according to the above method, for example, each functional module or functional unit may be divided according to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software functional module or a functional unit. The division of the modules or units in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Other embodiments of the present application provide an electronic device (e.g., the electronic device 200 shown in fig. 4B). The electronic device may include: a memory and one or more processors. The memory is coupled to the processor. The electronic device may further include a camera. Or, the electronic device may be externally connected with a camera. The memory is for storing computer program code comprising computer instructions. When the processor executes the computer instructions, the electronic device may perform various functions or steps performed by the mobile phone in the above-described method embodiments. The structure of the electronic device may refer to the structure of the electronic device 200 shown in fig. 4B.
An embodiment of the present application further provides a chip system, as shown in fig. 12, where the chip system includes at least one processor 1201 and at least one interface circuit 1202. The processor 1201 and the interface circuit 1202 may be interconnected by wires. For example, the interface circuit 1202 may be used to receive signals from other devices (e.g., a memory of an electronic device). Also for example, the interface circuit 1202 may be used to send signals to other devices, such as the processor 1201. Illustratively, the interface circuit 1202 may read instructions stored in a memory and send the instructions to the processor 1201. The instructions, when executed by the processor 1201, may cause an electronic device (e.g., the electronic device 200 shown in fig. 4B) to perform the various steps in the embodiments described above. Of course, the chip system may further include other discrete devices, which is not specifically limited in this embodiment of the present application.
An embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium includes computer instructions, and when the computer instructions are executed on the electronic device (e.g., the electronic device 200 shown in fig. 4B), the electronic device is caused to perform various functions or steps performed by the mobile phone in the foregoing method embodiment.
The embodiment of the present application further provides a computer program product, which when running on a computer, causes the computer to execute each function or step executed by the mobile phone in the above method embodiments.
Through the description of the above embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, that is, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application, or portions of the technical solutions that substantially contribute to the prior art, or all or portions of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (20)

1. A wireless charging method is characterized in that the method is applied to electronic equipment for wirelessly charging a wireless keyboard and a touch pen, and the touch pen is adsorbed on the wireless keyboard; the method comprises the following steps:
the wireless keyboard and the electronic equipment establish Bluetooth connection, the electronic equipment sends a charging state message to the wireless keyboard, and the charging state message is used for indicating whether the electronic equipment is charging;
the wireless keyboard receives a charge status message from the electronic device;
the wireless keyboard acquires the residual electric quantity information of the wireless keyboard and the residual electric quantity information of the touch pen;
if the charging state message indicates that the electronic equipment is charging, the wireless keyboard sends a reverse charging starting message to the electronic equipment, and the reverse charging starting message is used for indicating the electronic equipment to reversely and wirelessly charge the wireless keyboard; alternatively, the first and second electrodes may be,
if the charging state message indicates that the electronic equipment is not being charged, and the remaining capacity information of the wireless keyboard is smaller than a first preset keyboard capacity threshold and/or the remaining capacity information of the stylus is smaller than a first preset stylus capacity threshold, the wireless keyboard sends a reverse charging start message to the electronic equipment;
the electronic equipment receives the reverse charging starting message from the wireless keyboard and outputs wireless charging current to the wireless keyboard;
the wireless keyboard receives wireless charging current from the electronic device;
the wireless keyboard divides the current into a first path of current and a second path of current according to a current distribution proportion, and the wireless keyboard is charged through the first path of current, and/or the touch control pen is charged through the second path of current, wherein the first path of current is used for charging the wireless keyboard, and the second path of current is used for charging the touch control pen;
the current distribution proportion is determined by the wireless keyboard according to the remaining power information of the wireless keyboard and the remaining power information of the touch pen.
2. The method of claim 1, wherein a second predetermined keyboard power threshold, a third predetermined keyboard power threshold, and a second predetermined stylus power threshold are stored in the wireless keyboard; wherein the third preset keyboard power threshold is greater than the second preset keyboard power threshold, the second preset keyboard power threshold is greater than the first preset keyboard power threshold, and the second preset stylus power threshold is greater than the first preset stylus power threshold;
if the remaining power information of the wireless keyboard is smaller than the second preset keyboard power threshold, the wireless keyboard takes all received wireless charging current from the electronic equipment as the first path of current; alternatively, the first and second electrodes may be,
if the remaining power information of the stylus is larger than the second preset stylus power threshold, the wireless keyboard takes all received wireless charging current from the electronic equipment as the first path of current;
and if the residual electric quantity information of the wireless keyboard is larger than the second preset keyboard electric quantity threshold value, the wireless keyboard takes all the received wireless charging current from the electronic equipment as the second path of current.
3. The method of claim 2, wherein the wireless keyboard takes all received wireless charging current from the electronic device as the first path of current, and comprises:
when the wireless keyboard receives all wireless charging currents from the electronic equipment, wherein the wireless charging currents are larger than the first path of current, the first path of current is a first maximum current, the second path of current is a current except the first maximum current in all the wireless charging currents, and the first maximum current is a maximum current which can be received by the wireless keyboard;
the wireless keyboard takes all the received wireless charging current from the electronic equipment as the second path of current, and the method comprises the following steps:
and under the condition that the wireless keyboard receives all wireless charging currents from the electronic equipment and is larger than the second current, the second current is a second maximum current, the first current is a current except the second maximum current in all the wireless charging currents, and the second maximum current is a maximum current which can be received by the stylus.
4. The method of any of claims 1-3, wherein after the electronic device receives the reverse charging initiation message from the wireless keyboard, the method further comprises:
the electronic equipment displays a first prompt message, wherein the first prompt message is used for indicating whether the wireless keyboard is wirelessly charged or not; and/or the presence of a gas in the gas,
the electronic equipment displays a second prompt message, wherein the second prompt message is used for indicating whether the stylus is wirelessly charged or not;
the electronic equipment receives a first operation, wherein the first operation is used for triggering the electronic equipment to perform reverse wireless charging;
the outputting a wireless charging current to the wireless keyboard includes:
in response to the first operation, the electronic device outputs a wireless charging current to the wireless keyboard.
5. The method of any of claims 1-4, wherein after the electronic device receives the reverse charging ON message from the wireless keyboard, the method further comprises:
the electronic equipment calculates a first frequency, wherein the first frequency is the frequency of the electronic equipment for receiving the reverse charging starting message in a preset time period;
the electronic equipment to wireless keyboard output wireless charging current includes:
if the first frequency is smaller than a preset frequency threshold, the electronic equipment outputs wireless charging current to the wireless keyboard.
6. The method of claim 5, further comprising:
if the first frequency is larger than a preset frequency threshold, the electronic equipment does not output wireless charging current to the wireless keyboard.
7. The method according to any one of claims 1-6, wherein a first type of application and a second type of application are stored in the electronic device, wherein the first type of application is used for indicating an application program which does not operate with the stylus and the wireless keyboard, and the second type of application is used for indicating an application program which requires the stylus and the wireless keyboard to operate;
after the electronic device receives the reverse charging initiation message from the wireless keyboard, the method further comprises:
the electronic equipment acquires a currently running application program;
the electronic equipment is to wireless keyboard output wireless charging current includes:
and if the currently running application program is the second type of application, the electronic equipment outputs wireless charging current to the wireless keyboard.
8. The method of claim 7, further comprising:
and if the currently running application program is the first type of application, the electronic equipment does not output wireless charging current to the wireless keyboard.
9. The method of any of claims 1-8, wherein after the electronic device outputs a wireless charging current to the wireless keyboard, the method further comprises:
the wireless keyboard sends a reverse charging stop message to the electronic equipment, and the reverse charging stop message is used for indicating the electronic equipment to stop reverse wireless charging;
and the electronic equipment receives the reverse charging stop message from the wireless keyboard and stops outputting the wireless charging current.
10. The method according to any one of claims 1-9, further comprising:
the electronic equipment displays a third prompt message, wherein the third prompt message is used for prompting the adjustment of the charging position of the touch pen, and the current received by the touch pen at the adjusted charging position is greater than the current received by the touch pen at the charging position before the adjustment.
11. A wireless charging method is characterized in that a wireless keyboard and a touch pen are wirelessly charged when the method is applied to electronic equipment, and the touch pen is adsorbed on the wireless keyboard; the method comprises the following steps:
the electronic equipment establishes Bluetooth connection with the wireless keyboard, and sends a charging state message to the wireless keyboard, wherein the charging state message is used for indicating whether the electronic equipment is charging;
the electronic equipment receives a reverse charging starting message from the wireless keyboard, wherein the reverse charging starting message is used for indicating the electronic equipment to reversely and wirelessly charge the wireless keyboard;
the electronic equipment acquires the residual electric quantity information of the electronic equipment;
if the residual electric quantity information of the electronic equipment is larger than a first preset equipment electric quantity threshold value, the electronic equipment outputs wireless charging current to the wireless keyboard;
and if the residual electric quantity information of the electronic equipment is smaller than a first preset equipment electric quantity threshold value, the electronic equipment does not output wireless charging current to the wireless keyboard.
12. The method of claim 11, wherein after the electronic device receives a reverse charging start message from the wireless keyboard, the method further comprises:
the electronic equipment displays a first prompt message, wherein the first prompt message is used for indicating whether the wireless keyboard is wirelessly charged or not; and/or the presence of a gas in the gas,
the electronic equipment displays a second prompt message, wherein the second prompt message is used for indicating whether the stylus is wirelessly charged or not;
the electronic equipment receives a first operation, wherein the first operation is used for triggering the electronic equipment to perform reverse wireless charging;
the electronic equipment to wireless keyboard output wireless charging current includes:
in response to the first operation, the electronic device outputs a wireless charging current to the wireless keyboard.
13. The method of claim 11 or 12, wherein after the electronic device receives a reverse charging start message from the wireless keyboard, the method further comprises:
the electronic equipment calculates a first frequency, wherein the first frequency is the frequency of the electronic equipment for receiving the reverse charging starting message in a preset time period;
the electronic equipment to wireless keyboard output wireless charging current includes:
if the first frequency is smaller than a preset frequency threshold, the electronic equipment outputs wireless charging current to the wireless keyboard.
14. The method of claim 13, wherein the electronic device does not output a wireless charging current to the wireless keyboard, comprising:
if the first frequency is larger than a preset frequency threshold, the electronic equipment does not output wireless charging current to the wireless keyboard.
15. The method according to any one of claims 11-14, wherein a first type of application and a second type of application are stored in the electronic device, wherein the first type of application is used for indicating an application that does not operate with the stylus and the wireless keyboard, and the second type of application is used for indicating an application that requires the stylus and the wireless keyboard to operate;
after the electronic device receives a reverse charging initiation message from the wireless keyboard, the method further comprises:
the electronic equipment acquires a currently running application program;
the electronic equipment to wireless keyboard output wireless charging current includes:
and if the currently running application program is the second type of application, the electronic equipment outputs wireless charging current to the wireless keyboard.
16. The method of claim 15, wherein the electronic device does not output a wireless charging current to the wireless keyboard, comprising:
and if the currently running application program is the first type of application, the electronic equipment does not output wireless charging current to the wireless keyboard.
17. The method of any of claims 11-16, wherein after the electronic device outputs a wireless charging current to the wireless keyboard, the method further comprises:
the electronic equipment receives a reverse charging stop message from the wireless keyboard, wherein the reverse charging stop message is used for indicating the electronic equipment to stop reverse wireless charging;
the electronic device stops outputting the wireless charging current.
18. The method according to any one of claims 11-17, further comprising:
the electronic equipment displays a third prompt message, wherein the third prompt message is used for prompting the adjustment of the charging position of the touch pen, and the current received by the touch pen at the adjusted charging position is greater than the current received by the touch pen at the charging position before the adjustment.
19. An electronic device, characterized in that the electronic device comprises: a memory, a display screen, and one or more processors; the memory, the display screen, and the processor are coupled, the memory for storing computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform the method of any of claims 11-18.
20. A computer-readable storage medium comprising computer instructions that, when executed on an electronic device, cause the electronic device to perform the method of any of claims 11-18.
CN202110803043.3A 2021-07-15 2021-07-15 Wireless charging method and electronic equipment Active CN114465366B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110803043.3A CN114465366B (en) 2021-07-15 2021-07-15 Wireless charging method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110803043.3A CN114465366B (en) 2021-07-15 2021-07-15 Wireless charging method and electronic equipment

Publications (2)

Publication Number Publication Date
CN114465366A true CN114465366A (en) 2022-05-10
CN114465366B CN114465366B (en) 2024-03-26

Family

ID=81405116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110803043.3A Active CN114465366B (en) 2021-07-15 2021-07-15 Wireless charging method and electronic equipment

Country Status (1)

Country Link
CN (1) CN114465366B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115033116A (en) * 2022-08-10 2022-09-09 荣耀终端有限公司 Keyboard, display system and control method of display equipment
CN116634309A (en) * 2023-07-25 2023-08-22 深圳雷柏科技股份有限公司 Method, device, equipment and system for supervising mouse, keyboard and earphone
CN116669229A (en) * 2023-07-25 2023-08-29 深圳雷柏科技股份有限公司 Wireless peripheral management system, method, electronic equipment and storage medium
CN118040855A (en) * 2024-04-12 2024-05-14 荣耀终端有限公司 Wireless charging circuit, device, method and computer readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150194834A1 (en) * 2014-01-06 2015-07-09 Samsung Electronics Co., Ltd. Charging method and charging apparatus for electronic device
CN106786905A (en) * 2016-12-26 2017-05-31 广东欧珀移动通信有限公司 Wireless charging method, terminal, wireless charger and wireless charging system
CN109874365A (en) * 2016-11-01 2019-06-11 三星电子株式会社 For executing the device and method thereof of wireless charging
CN110829616A (en) * 2018-08-08 2020-02-21 三星电子株式会社 Electronic device for controlling communication connection with input device and control method thereof
KR20200042376A (en) * 2018-10-15 2020-04-23 삼성전자주식회사 Electronic device and method for wire and wireless charging in electronic device
CN111293749A (en) * 2020-02-28 2020-06-16 Oppo广东移动通信有限公司 Charging method, charging device, terminal equipment, mobile power supply and storage medium
US20200266627A1 (en) * 2019-02-19 2020-08-20 Samsung Electronics Co., Ltd. Method of controlling charging of plurality of batteries and electronic device to which the same is applied
CN112513790A (en) * 2018-08-06 2021-03-16 三星电子株式会社 Electronic device and method for providing functional visibility of battery charging of external device through display
CN112698733A (en) * 2021-03-24 2021-04-23 深圳市智信新信息技术有限公司 Wireless keyboard

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150194834A1 (en) * 2014-01-06 2015-07-09 Samsung Electronics Co., Ltd. Charging method and charging apparatus for electronic device
CN109874365A (en) * 2016-11-01 2019-06-11 三星电子株式会社 For executing the device and method thereof of wireless charging
CN106786905A (en) * 2016-12-26 2017-05-31 广东欧珀移动通信有限公司 Wireless charging method, terminal, wireless charger and wireless charging system
CN112513790A (en) * 2018-08-06 2021-03-16 三星电子株式会社 Electronic device and method for providing functional visibility of battery charging of external device through display
CN110829616A (en) * 2018-08-08 2020-02-21 三星电子株式会社 Electronic device for controlling communication connection with input device and control method thereof
KR20200042376A (en) * 2018-10-15 2020-04-23 삼성전자주식회사 Electronic device and method for wire and wireless charging in electronic device
US20200266627A1 (en) * 2019-02-19 2020-08-20 Samsung Electronics Co., Ltd. Method of controlling charging of plurality of batteries and electronic device to which the same is applied
CN111293749A (en) * 2020-02-28 2020-06-16 Oppo广东移动通信有限公司 Charging method, charging device, terminal equipment, mobile power supply and storage medium
CN112698733A (en) * 2021-03-24 2021-04-23 深圳市智信新信息技术有限公司 Wireless keyboard

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115033116A (en) * 2022-08-10 2022-09-09 荣耀终端有限公司 Keyboard, display system and control method of display equipment
CN115033116B (en) * 2022-08-10 2023-07-25 荣耀终端有限公司 Keyboard, display system and control method of display equipment
CN116634309A (en) * 2023-07-25 2023-08-22 深圳雷柏科技股份有限公司 Method, device, equipment and system for supervising mouse, keyboard and earphone
CN116669229A (en) * 2023-07-25 2023-08-29 深圳雷柏科技股份有限公司 Wireless peripheral management system, method, electronic equipment and storage medium
CN116669229B (en) * 2023-07-25 2023-11-24 深圳雷柏科技股份有限公司 Wireless peripheral management system, method, electronic equipment and storage medium
CN116634309B (en) * 2023-07-25 2024-01-12 深圳雷柏科技股份有限公司 Method, device, equipment and system for supervising mouse, keyboard and earphone
CN118040855A (en) * 2024-04-12 2024-05-14 荣耀终端有限公司 Wireless charging circuit, device, method and computer readable storage medium

Also Published As

Publication number Publication date
CN114465366B (en) 2024-03-26

Similar Documents

Publication Publication Date Title
CN113253856B (en) Stylus and electronic device assembly
CN114465366B (en) Wireless charging method and electronic equipment
US11196304B2 (en) Electronic device and method for controlling multi-wireless charging
US20240168572A1 (en) Stylus and electronic device assembly
KR20210037377A (en) Wireless power transmitter-receiver and method for operating thereof
CN114461129A (en) Handwriting drawing method and device, electronic equipment and readable storage medium
CN114217700A (en) Touch pen switching method and input device
KR20170090896A (en) Wireless charger and mobile terminal having the same
EP4206885A1 (en) Functional mode switching method, electronic device, and system
CN114461092B (en) Touch pen connection method and electronic equipment

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
GR01 Patent grant
GR01 Patent grant