CN114465366B - Wireless charging method and electronic equipment - Google Patents

Wireless charging method and electronic equipment Download PDF

Info

Publication number
CN114465366B
CN114465366B CN202110803043.3A CN202110803043A CN114465366B CN 114465366 B CN114465366 B CN 114465366B CN 202110803043 A CN202110803043 A CN 202110803043A CN 114465366 B CN114465366 B CN 114465366B
Authority
CN
China
Prior art keywords
wireless
keyboard
current
wireless charging
electric quantity
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.)
Active
Application number
CN202110803043.3A
Other languages
Chinese (zh)
Other versions
CN114465366A (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

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)
  • Power Sources (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (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 wirelessly. 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 remaining capacity information of the wireless keyboard and the remaining capacity information of the touch pen. And if the charging state information indicates that the electronic equipment is being charged, the wireless keyboard sends a reverse charging starting message 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 current and a second current according to the current distribution proportion, and charge the wireless keyboard through the first current and/or charge the touch pen through the second 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 technology, electronic devices (such as mobile phones, tablet computers, notebook computers, etc.) can charge batteries not only by wired charging, but also by wireless charging. Wherein the battery of the electronic device may store power by charging and then power the electronic device by discharging. And, electronic equipment can reverse wireless charging, and electronic equipment can be for other electronic equipment wireless charging through wireless charging's mode promptly.
Take a tablet computer as an example of wireless charging of a stylus (or wireless keyboard). When the touch pen is adsorbed at the fixed position of the tablet computer, the 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 a fixed position, the tablet computer may be charging the stylus wirelessly all the time. When the tablet personal computer charges the touch pen, the electric quantity of the tablet personal computer can be continuously consumed, and the charging efficiency of wireless charging is low. Therefore, the tablet personal computer is always charged for the stylus in a wireless manner, which may cause that the tablet personal computer cannot be used continuously due to insufficient electric quantity, and seriously affects the use experience of a user.
Disclosure of Invention
The application provides a wireless charging method and electronic equipment, which can enable the electronic equipment to reasonably charge a wireless keyboard and a touch pen wirelessly, and improve the use experience of a user.
In a first aspect, the present application provides a method for wireless charging, where the method may be applied to an electronic device for wirelessly charging a wireless keyboard and a stylus, where the stylus is adsorbed on the wireless keyboard.
In the method, a Bluetooth connection is established between the wireless keyboard and the electronic equipment. The electronic device may send a charge status message to the wireless keyboard indicating whether the electronic device is being charged. The wireless keyboard may then receive a charge status message from the electronic device. The wireless keyboard can acquire the remaining capacity information of the wireless keyboard and the remaining capacity information of the touch pen. In this manner, the wireless keyboard may determine whether the electronic device is being charged, as well as the remaining power of the wireless keyboard and stylus.
If the charging state information indicates that the electronic equipment is being charged, the wireless keyboard sends a reverse charging start message to the electronic equipment, and the reverse charging start message is used for indicating the electronic equipment to charge the wireless keyboard reversely and wirelessly. Or 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 the first preset keyboard electric quantity threshold value and/or the remaining capacity information of the touch pen is smaller than the first preset touch pen electric quantity threshold value, the wireless keyboard sends a reverse charging starting message to the electronic equipment. Then, the electronic device may receive a reverse charging start message from the wireless keyboard and output a wireless charging current to the wireless keyboard.
It can be appreciated that if the tablet pc is in a charged state, the power of the tablet pc may be continuously increased. Therefore, when the tablet personal computer is in a charging state, the tablet personal computer is subjected to reverse wireless charging, and the problem of insufficient electric quantity of the tablet personal computer is avoided. 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 quantity of the wireless keyboard and the touch pen is lower. Therefore, the wireless keyboard can determine that the tablet personal computer is reversely charged in a wireless mode, so that the residual electric quantity of the wireless keyboard and the touch pen is improved, and the available time of the wireless keyboard and the touch pen is prolonged.
The wireless keyboard may receive wireless charging current from the electronic device. Then, the wireless keyboard can divide the current into a first current and a second current according to the current distribution proportion, and charge the wireless keyboard through the first current and/or charge the touch pen through the second current, wherein the first current is used for charging the wireless keyboard, and the second current is used for charging the touch pen. 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 control pen.
It can be understood that the wireless keyboard divides all wireless charging currents received from the tablet computer into a first current path and a second current path according to the electric quantity information of the wireless keyboard and the electric quantity information of the touch control pen. Therefore, the current can be reasonably distributed to be respectively used for wireless charging of the wireless keyboard and the touch pen, and the use experience of a user is improved.
With reference to the first aspect, in one possible design manner, the wireless keyboard stores a second preset keyboard electric quantity threshold value, a third preset keyboard electric quantity threshold value and a second preset touch pen electric quantity threshold value. The third preset keyboard electric quantity threshold value is larger than the second preset keyboard electric quantity threshold value, the second preset keyboard electric quantity threshold value is larger than the first preset keyboard electric quantity threshold value, and the second preset touch pen electric quantity threshold value is larger than the first preset touch pen electric quantity threshold value.
If the remaining capacity information of the wireless keyboard is smaller than a second preset keyboard capacity threshold value, the wireless keyboard takes all the received wireless charging currents from the electronic equipment as a first current. Or if the residual electric quantity information of the touch pen is larger than the second preset touch pen electric quantity threshold value, the wireless keyboard takes all the received wireless charging currents from the electronic equipment as a first current.
It can be understood that if the electric quantity information of the wireless keyboard is smaller than the second preset keyboard electric quantity threshold value, the remaining electric quantity of the wireless keyboard is lower; if the electric quantity information of the touch pen is larger than the second preset touch pen electric quantity threshold value, the fact that the residual electric quantity of the touch pen is higher is indicated. Thus, the wireless keyboard may determine to only wirelessly charge the wireless keyboard, distributing all current to the wireless keyboard. Therefore, the current for charging the wireless keyboard is prevented from being reduced due to the fact that the wireless keyboard and the touch pen are charged in a wireless mode, the current for charging the wireless keyboard is increased, and the charging efficiency of the wireless keyboard is improved.
If the remaining capacity information of the wireless keyboard is larger than a second preset keyboard capacity threshold, 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, the remaining power of the wireless keyboard is higher. Thus, the wireless keyboard may determine to only wirelessly charge the stylus, distributing all current to the stylus. Therefore, the current for charging the stylus can be prevented from being reduced due to the fact that the wireless keyboard and the stylus are charged in a wireless mode, the current for charging the stylus is increased, and the charging efficiency of the stylus is improved.
In combination with the first aspect, in another possible design manner, when the wireless keyboard receives that all wireless charging currents from the electronic device are greater than the first current, the first current is a first maximum current, and the second current is a current other than the first maximum current in all wireless charging currents, where the first maximum current is a maximum current that the wireless keyboard can receive.
And under the condition that the wireless keyboard receives that all wireless charging currents from the electronic equipment are larger than a second current, the second current is a second maximum current, the first current is a current except the second maximum current in all wireless charging currents, and the second maximum current is a 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 prompting message, where the first prompting message is used to indicate whether to wirelessly charge the wireless keyboard. And/or the electronic device may display a second alert message indicating whether to wirelessly charge the stylus. The electronic device may receive a first operation to trigger 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 appreciated that the tablet computer displays the first prompt message and/or the second prompt message, and the user can actively control whether the tablet computer charges the wireless keyboard wirelessly. 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 the reverse charging start message in a preset period of time. 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 appreciated that by comparing the first frequency with a preset frequency threshold, frequent opening and closing of reverse wireless charging of the tablet pc can be avoided. Thus, the discharging times of the battery of the tablet personal computer can be reduced, and the using time of the tablet personal computer is delayed.
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.
In this way, the tablet personal computer can be prevented from being frequently turned on and off for reverse wireless charging. Thus, the discharging times of the battery of the tablet personal computer can be reduced, and the using time of the tablet personal computer is delayed.
In combination with 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 for indicating an application program that does not use the stylus and the wireless keyboard for operation, and the second type of application is used for indicating an application program that needs to use the stylus and the wireless keyboard for operation. The electronic device may obtain the currently running application. 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 application program currently running on the tablet computer is the second type of application, the probability that the wireless keyboard and the touch pen are used by the current user is higher, 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 combination with 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 appreciated that if the application currently running on the tablet pc is the first type of application, the probability of using the wireless keyboard and the stylus by the current user is lower, and the tablet pc does not perform reverse wireless charging. Therefore, the consumption of the electric quantity of the tablet personal computer can be reduced, and the service time of the tablet personal computer is prolonged.
In combination with 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 charge 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. Therefore, the problem that the electric quantity of the tablet personal computer is insufficient when the electronic equipment is subjected to reverse wireless charging can be avoided, and the use experience of a user is improved.
In combination with the first aspect, in another possible design manner, the electronic device may display a third prompting message, where the third prompting message is used to prompt to adjust the charging position of the stylus, and the current received by the stylus at the adjusted charging position is greater than the current received by the stylus at the charging position before adjustment.
It can be appreciated that by prompting adjustment of the charging position of the stylus, the charging efficiency of the stylus can be improved. And further shortens the charging time of the touch control pen and improves the use experience of a user.
In a second aspect, the present application provides a method for wireless charging, where the method may be applied to an electronic device for wirelessly charging a wireless keyboard and a stylus, where the stylus is attached to the wireless keyboard.
In the method, the electronic equipment establishes Bluetooth connection with the wireless keyboard. The electronic device may send a charge status message to the wireless keyboard, the charge status message indicating whether the electronic device is being charged. The electronic device may then receive a reverse charge initiation message from the wireless keyboard, the reverse charge initiation message being used to instruct the electronic device to reverse wireless charge for the wireless keyboard. The electronic device may obtain remaining power information of the electronic device. If the residual electric quantity information of the electronic equipment is larger than the electric quantity threshold value of the first preset equipment, the electronic equipment outputs wireless charging current to the wireless keyboard. If the remaining capacity information of the electronic equipment is smaller than the first preset equipment capacity threshold value, the electronic equipment does not output wireless charging current to the wireless keyboard.
It can be understood that if the electric quantity information of the tablet personal computer is larger than the electric quantity threshold value of the first preset device, the residual electric quantity of the tablet personal computer is higher, and the tablet personal computer cannot be automatically powered off in a short time due to reverse wireless charging. And if the electric quantity information of the tablet personal computer is smaller than the electric quantity threshold value of the first preset device, indicating that the residual electric quantity of the tablet personal computer is lower. The tablet personal computer does not carry out reverse wireless charging, so that the consumption of electric quantity can be reduced, and the usable time of the tablet personal computer is prolonged.
With reference to the second aspect, in one possible design manner, the electronic device may display a first prompting message, where the first prompting message is used to indicate whether to wirelessly charge the wireless keyboard. And/or the electronic device may display a second alert message indicating whether to wirelessly charge the stylus. The electronic device may receive a first operation to trigger 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 appreciated that the tablet computer displays the first prompt message and/or the second prompt message, and the user can actively control whether the tablet computer charges the wireless keyboard wirelessly. 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 the reverse charging start message in a preset period of time. 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 appreciated that by comparing the first frequency with a preset frequency threshold, frequent opening and closing of reverse wireless charging of the tablet pc can be avoided. Thus, the discharging times of the battery of the tablet personal computer can be reduced, and the using time of the tablet personal computer is delayed.
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.
In this way, the tablet personal computer can be prevented from being frequently turned on and off for reverse wireless charging. Thus, the discharging times of the battery of the tablet personal computer can be reduced, and the using time of the tablet personal computer is delayed.
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 for indicating an application program that does not use a stylus and a wireless keyboard for operation, and the second type of application is used for indicating an application program that needs to use the stylus and the wireless keyboard for operation. The electronic device may obtain the currently running application. 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 application program currently running on the tablet computer is the second type of application, the probability that the wireless keyboard and the touch pen are used by the current user is higher, 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.
With reference to the second 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 appreciated that if the application currently running on the tablet pc is the first type of application, the probability of using the wireless keyboard and the stylus by the current user is lower, and the tablet pc does not perform reverse wireless charging. Therefore, the consumption of the electric quantity of the tablet personal computer can be reduced, and the service time 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. Therefore, the problem that the electric quantity of the tablet personal computer is insufficient when the electronic equipment is subjected to reverse wireless charging 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 prompting message, where the third prompting message is used to prompt to adjust 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 appreciated that by prompting adjustment of the charging position of the stylus, the charging efficiency of the stylus can be improved. And further shortens the charging time of the touch control pen and improves the use experience of a user.
In a third aspect, the present application provides an electronic device, comprising: a memory, a display screen, and one or more processors, the memory, the display screen being 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 electronic device to perform the method as described in the second aspect and any one of its possible designs.
In a fourth aspect, the present application provides a wireless keyboard comprising: a memory and one or more processors, said memory coupled to said 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 described 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 wire. The interface circuit is for receiving a signal from a memory of the electronic device and transmitting the signal to the processor, the signal including computer instructions stored in the memory. When the processor executes the computer instructions, the electronic device performs the method as described in the second aspect and any one 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 a method as described in the second aspect and any one of its possible designs.
In a seventh aspect, the present application provides a computer program product which, when run on a computer, causes the computer to perform the method according to the second aspect and any one of its possible designs.
It will be appreciated that the advantages achieved by 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 may refer to the advantages as in any of the first aspect and the second aspect and any possible design manners thereof, and will not be described 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 according to an embodiment of the present application;
FIG. 2B is a schematic diagram illustrating an assembly of a stylus and a wireless keyboard according to an embodiment of the present disclosure;
Fig. 2C is a schematic diagram of a stylus pen according to an embodiment of the present disclosure being stored in a storage portion of a wireless keyboard;
fig. 3 is a schematic system architecture diagram of a wireless charging system according to an embodiment of the present application;
fig. 4A is a schematic structural frame diagram of a stylus according to an embodiment of the present disclosure;
fig. 4B is a schematic structural frame diagram of an electronic device according to an embodiment of the present application;
fig. 4C is a schematic structural frame diagram of a wireless keyboard according to an embodiment of the present application;
fig. 5A is an example schematic diagram of a display interface of a prompt message according to an embodiment of the present application;
FIG. 5B is a schematic diagram illustrating an example of a display interface of another hint message according to embodiments of the present application;
FIG. 5C is a schematic diagram illustrating an example of a display interface of another hint message according to embodiments of the present application;
fig. 6 is a flowchart of a method for wireless charging according to an embodiment of the present application;
fig. 7A is a schematic diagram of a charging scenario provided in an embodiment of the present application;
fig. 7B is a schematic diagram of another charging scenario provided in an embodiment of the present application;
fig. 7C is a schematic diagram of another charging scenario provided in an embodiment of the present application;
FIG. 8 is a schematic diagram illustrating an example of a display interface of another hint message according to an embodiment of the present application;
Fig. 9 is a flowchart of another method for wireless charging according to an embodiment of the present application;
fig. 10 is a flowchart of another method for wireless charging according to an embodiment of the present application;
FIG. 11 is a flowchart of another method for wireless charging according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a chip system according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The character "/" in the present application generally indicates that the front-rear association object is an "or" relationship. For example, A/B may be understood as A or B.
The terms "first," "second," and the like, 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 defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present embodiment, unless otherwise specified, the meaning of "plurality" is two or more.
Furthermore, references to the terms "comprising" and "having" and any variations thereof in the description of the present application are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules but may 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 "such as" are used to mean serving as examples, illustrations, or descriptions. Any embodiment or design described herein as "exemplary" or "e.g." should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present concepts in a concrete fashion.
In order to facilitate understanding of the technical solutions of the present application, a few conventional technologies are described before describing in detail the method of wireless charging in the embodiments of the present application.
With the development of technology, electronic devices (such as mobile phones, tablet computers, wireless keyboards, touch pens, etc.) can charge batteries not only by wired charging, but also by wireless charging. And, the electronic equipment can be wireless charging for other electronic equipment through wireless charging mode.
Take a tablet computer as a wireless keyboard and a touch pen for wireless charging as an example. In some technical schemes, the tablet computer can be used as an energy source for reverse wireless charging to wirelessly charge the wireless keyboard. And when the touch pen is adsorbed in the wireless keyboard, the tablet computer can also charge the touch pen wirelessly through the wireless keyboard, namely, the tablet computer can charge the wireless keyboard and the touch pen wirelessly at the same time. Specifically, be provided with wireless charging coil on the panel computer, be provided with wireless charging coil on the wireless keyboard. When the tablet personal computer and the wireless keyboard are both positioned at the fixed charging positions, the wireless charging coil of the tablet personal computer can be coupled with the wireless charging coil of the wireless keyboard to wirelessly charge the touch pen. And, another wireless charging coil can also be arranged at the fixed position of the wireless keyboard. The stylus may be attached at a fixed location on the wireless keyboard. When the touch 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 pen, and the tablet personal computer is used as an energy source for wirelessly charging the touch pen.
However, in the above technical solution, when the wireless keyboard and the stylus are located at the charging position, the tablet pc will wirelessly charge the wireless keyboard and the stylus. If the electric quantity of the tablet personal computer is low, the tablet personal computer is charged wirelessly for the wireless keyboard and the touch pen, so that the electric quantity of the tablet personal computer can be reduced rapidly, the tablet personal computer is powered off automatically and prematurely due to insufficient electric quantity, and the use experience of a user in using the tablet personal computer is affected. And, 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 charges the wireless keyboard, and the other path of current charges the touch pen. In this way, the charging efficiency is reduced again, so that the tablet computer charges the stylus at a slower speed. In summary, in the current technical scheme, when the tablet computer is wirelessly charged for the wireless keyboard and the touch pen, the user experience is poor.
For this reason, the embodiment of the application provides a wireless charging method. The method can be applied to the wireless charging of the wireless keyboard and the touch pen by the electronic equipment. 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 control pen. The wireless keyboard may then indicate whether the electronic device is wirelessly charged for the wireless keyboard and/or the stylus according to the charging state of the electronic device, the power information of the electronic device (may also be referred to as remaining power information), the power information of the wireless keyboard, and the power information of the stylus.
For example, if the electronic device is not in a charged state and the power of the wireless keyboard and the stylus is sufficient, the wireless keyboard may instruct the electronic device to stop charging the wireless keyboard and the stylus wirelessly. For another example, if the electronic device is in a charging state, the electric quantity of the wireless keyboard is sufficient, the electric quantity of the stylus is insufficient, and the wireless keyboard can instruct the electronic device to charge the stylus.
It can be appreciated that, based on the above technical solution, the wireless keyboard may be combined with a charging state of the electronic device, electric quantity information of the wireless keyboard, and electric quantity information of the stylus, to indicate whether the electronic device is wirelessly charged by the wireless keyboard and/or the stylus. Therefore, the electronic equipment can be prevented from continuously charging the wireless keyboard and the touch pen under the condition of low electric quantity, and the using time of the electronic equipment is prolonged. In addition, the technical scheme can indicate that the wireless keyboard or the touch pen is only charged wirelessly, and the charging efficiency is improved. In conclusion, the technical scheme can enable the electronic equipment to reasonably charge the wireless keyboard and the touch pen wirelessly, and improves the use experience of a user.
Fig. 1 is a schematic view of a scenario suitable for the embodiment of the present application. Referring to fig. 1, a stylus (stylus) 100, an electronic device 200, and a wireless keyboard 300 are included in the scene. In fig. 1, the electronic device 200 is illustrated as a tablet pc (portable android device, PAD). The stylus 100 and the wireless keyboard 300 may provide input to the electronic device 200, and the electronic device 200 performs an operation responsive to the input based on the input of the stylus 100 or the wireless keyboard 300. A touch area may be provided on the wireless keyboard 300, the stylus 100 may operate the touch area of the wireless keyboard 300, input may be provided to the wireless keyboard 300, and the wireless keyboard 300 may perform an operation responsive to the input based on the input of the stylus 100. In one embodiment, the interaction of wireless signals may be achieved by interconnection between the stylus 100 and the electronic device 200, between the stylus 100 and the wireless keyboard 300, and between the electronic device 200 and the wireless keyboard 300 via a communication network. The communication network may be, but is not limited to: WI-FI hotspot networks, WI-FI peer-to-peer (P2P) networks, bluetooth networks, zigbee networks, or near field communication (near field communication, NFC) networks.
The stylus 100 may be, but is not limited to: inductive pens and capacitive pens. 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 that interacts with the stylus 100. The electromagnetic induction plate is provided with coils, and the induction pen is also integrated with the coils. Based on the electromagnetic induction principle, in the magnetic field range generated by the electromagnetic induction plate, along with the movement of the induction pen, the induction pen can accumulate electric energy. The inductive pen can transmit the accumulated electric energy to the electromagnetic induction plate through the coil in the inductive pen through free oscillation. The electromagnetic induction plate can scan the coil on the electromagnetic induction plate based on the electric energy from the induction pen, and calculate the position of the induction pen on the touch screen 201.
The capacitive pen may include: passive capacitive pens and active capacitive pens. Passive capacitive pens may be referred to as passive capacitive pens and active capacitive pens may be referred to as active capacitive pens. The passive capacitance pen simulates the touch of a finger, and the pen tip 10 of the passive capacitance pen is made of conductive materials, such as conductive foam, metal, brush and the like. When the stylus 100 is a passive capacitive pen, the electronic device 200 interacting with the stylus 100 needs to integrate a capacitive sensing sensor on the touch screen 201. 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, and thus the electronic device 200 may 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 movement of the passive capacitive pen on the touch screen 201 may cause a change in a capacitance value at a contact position of the passive capacitive pen with the touch screen 201, and thus, the electronic device 200 may determine a 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 100 may include a nib 10, a barrel 20, and a rear cover 30. The pen holder 20 is hollow, the pen point 10 and the rear end 30 are respectively positioned 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 disposed inside the pen holder 20. In the case where the stylus 100 is attached to the electronic device 200 or the wireless keyboard 300, wireless charging may be performed.
In one embodiment, referring to FIG. 2B, wireless keyboard 300 may include a first portion 301 and a second portion 302. Exemplary, e.g., wireless keyboard 300 may include: a keyboard main body and a keyboard sleeve. The first portion 301 may be a keyboard sleeve and the second portion 302 a keyboard body. The first portion 301 is used for placing the electronic device 200, and the second portion 302 may be provided with keys for user operation, a touch pad, etc.
When the wireless keyboard 300 is in use, the first portion 301 and the second portion 302 of the wireless keyboard 300 need to be opened, and when the wireless keyboard 300 is not in use, the first portion 301 and the second portion 302 of the wireless keyboard 300 can be closed. In one embodiment, the wireless keyboard 300 may be rotatably coupled between the first portion 301 and the second portion 302. For example, the first portion 301 and the second portion 302 may be coupled by a hinge or a pivot, or in some examples, the first portion 301 and the second portion 302 may be rotatably coupled by a flexible material (e.g., a cortical 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 may be made bendable by a thinning process. The connection between the first portion 301 and the second portion 302 may include, but is not limited to, several rotational connections described above.
Wherein the first portion 301 may comprise at least two rotatably connected brackets. For example, referring to fig. 2B, the first portion 301 includes a first bracket 301a and a second bracket 301B, where the first bracket 301a and the second bracket 301B are rotatably connected, and in use, the first bracket 301a and the second bracket 301B may be used to support the electronic device 200 together (referring 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, in order to facilitate storage of the stylus pen 100, the wireless keyboard 300 may be provided with a storage unit 303 for storing the stylus pen 100. Referring to fig. 2B, the housing portion 303 is a cylindrical cavity, and when housed, the stylus pen 100 is inserted into the housing cavity along the 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 a receiving portion 303 is provided in the connecting portion 304. The connection portion 304 may be a rotating shaft.
Fig. 2C is a schematic diagram of the stylus 100 stored in the storage unit 303.
In the case where the electronic device 200 is attached to the wireless keyboard 300 (fig. 1), and the stylus 100 is attached to the housing 303 of the wireless keyboard 300 (fig. 2C), the electronic device 200 can wirelessly charge the stylus 100 and the wireless keyboard. Wherein the stylus 100, the electronic device 200, and the wireless keyboard 300 all support a wireless charging protocol. The embodiment of the application does not limit the wireless charging protocol. For example, the wireless charging protocol may be the QI protocol.
For ease of understanding, the embodiments of the present application describe the principle of the electronic device 200 for wirelessly charging the stylus 100 and the wireless keyboard 300 with reference to the drawings.
Referring to fig. 3, a system architecture diagram of a wireless charging system 500 according to an embodiment of the disclosure is shown. The wireless charging system 500 includes: stylus 100, electronic device 200, and wireless keyboard 300.
As shown in fig. 3, the stylus 100 includes: battery 410, charge control module 420, wireless charge control module 430, and wireless charging coil 440. The electronic device 200 includes: battery 510, charge control module 520, wireless charge control module 530, wireless charge coil 540, and wireless charge coil 550. The wireless keyboard 300 includes: battery 610, charge control module 620, wireless charge control module 630, first wireless charge coil 640, wireless charge control module 650, and wireless charge coil 660.
In this embodiment, the electronic device 200 is used as a transmitting end of a wireless charging signal, the stylus 100 and the wireless keyboard 300 are used as receiving ends of the wireless charging signal, and the electronic device 200 charges the stylus 100 and the wireless keyboard 300 wirelessly. Accordingly, as shown in fig. 3, the wireless charging coil 540 of the electronic device 200 may be referred to as a transmit (Tx) coil, and the wireless charging coil 640 of the wireless keyboard 300 may be referred to as a receive (Rx) coil. In addition, the electronic device 200 charges the stylus 100 wirelessly, and the wireless keyboard 300 may input the wireless charging signal received from the electronic device 200 into the stylus 100, that is, when the stylus 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 charge control module 420 may be a charger of the stylus 100, and the wireless charge control module 430 may be an Rx chip. The charge control module 520 may be a BOOST of the electronic device 200, and the wireless charge 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 to wirelessly charge other devices. For example, the electronic device 200 wirelessly charges the wireless keyboard 300, and the wireless charging control module 530 may convert a direct current electric signal into an alternating electric signal and then input the alternating electric 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 senses 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 electrical signal and input the direct electrical signal to the charging control module 620. The charge control module 620 may charge the battery 610 based on the direct current 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., the Rx coil) 650, and the wireless charging control module 650 may convert the direct current electrical signal into an 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.
The wireless charging coil 660 of the wireless keyboard 300 is coupled with the wireless charging coil 440 of the stylus 100. The wireless charging coil (i.e., rx coil) 440 senses an alternating electromagnetic field emitted from the wireless charging coil (i.e., tx coil) 660, generates 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 electrical signal into a direct electrical signal and input the direct electrical signal to the charging control module 420. The charge control module 420 may charge the battery 410 according to the direct current signal.
Optionally, the wireless charging system 500 may also include at least one wireless charging enabled device (e.g., stylus 600) other than stylus 100 and wireless keyboard 300. As shown in fig. 3, the stylus 600 includes: battery 710, charge control module 720, wireless charge control module 730, and wireless charging coil 740. In the case where the stylus 600 is adsorbed at the fixed charging position of the electronic device 200, the electronic device 200 can directly charge the stylus 600 wirelessly, i.e., without the wireless keyboard 300 as a medium, and can charge the stylus 600 wirelessly. The principle of wireless charging of the electronic device 200 for the stylus 600 may refer to the principle of wireless charging of the wireless keyboard 300 in the wireless charging process of the electronic device 200 for the wireless keyboard 300, which is not described herein.
It should be noted that, the electronic device 200 may receive wireless charging input of other devices, that is, the electronic device 200 supports forward wireless charging. The forward wireless charging principle of the electronic device 200 may refer to the wireless charging principle of the wireless keyboard 300 in the wireless charging process of the electronic device 200 for the wireless keyboard 300, which is not described herein.
The electronic device 200 may also support wired charging. For example, when a power adapter (i.e., a wired charger) to which a power supply is connected to a charging interface (not shown in the drawings) of an electronic device, there is a charging input on the charging interface. 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, and 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 to connect to a power adapter for wired charging of the wireless keyboard 300.
It should be noted that fig. 3 only shows a schematic diagram of one possible charging circuit structure of the electronic device 200, the wireless keyboard 300, and the stylus 100. The charging circuit structure of the electronic device, the wireless keyboard and the touch pen in the embodiment of the application includes but is not limited to the structure shown in fig. 3. For example, the functions of the charge control module 520 and the wireless charge control module 530 shown in fig. 3 may be integrated into one charge management module. For another example, the electronic device 200 may also include a processor that connects the charge control module 520 and the wireless charge control module 530. The processor is configured to detect whether a charging interface has a charging input. The processor is further configured to control the charge control module 520 and/or the wireless charge control module 530 to operate, thereby implementing a wired charging function and/or a reverse wireless charging function of the electronic device 200.
Fig. 4A is a schematic hardware structure of a stylus according to an embodiment of the present application. Referring to fig. 4A, the stylus 100 may have a processor 110. The processor 110 may include storage and processing circuitry for supporting the operation of the 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 the like. Processing circuitry in the processor 110 may be used to control the operation of the 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 may be included in the stylus 100. For example, the sensor may include a pressure sensor 120. The pressure sensor 120 may be disposed at the tip 10 of the stylus 100 (as shown in fig. 2A). Of course, the pressure sensor 120 may also be disposed in the barrel 20 of the stylus 100, such that when one end of the nib 10 of the stylus 100 is stressed, the other end of the nib 10 moves to apply force to the pressure sensor 120. In one embodiment, the processor 110 may adjust the line thickness of the stylus 100 at the point 10 writing according to the amount of pressure detected by the pressure sensor 120.
The sensors may also include inertial sensors 130. Inertial sensor 130 may include a three-axis accelerometer and a three-axis gyroscope, and/or other components for measuring motion of stylus 100, for example, 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.
Status indicators 140 such as light emitting diodes and buttons 150 may be included in the stylus 100. The status indicator 140 is used to alert the user of the status of the stylus 100. The buttons 150 may include mechanical buttons and non-mechanical buttons, and the buttons 150 may be used to collect button press information from a user.
In embodiments of the present application, one or more electrodes 160 may be included in the stylus 100, where one electrode 160 may be located at the writing end of the stylus 100 and one electrode 160 may be located within the pen tip 10.
A sensing circuit 170 may be included in the stylus 100. The sensing circuit 170 may sense capacitive coupling between the electrodes 160 and drive lines of a capacitive touch sensor panel that interacts with the stylus pen 100. The sensing circuit 170 may include an amplifier to receive the 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 in-phase demodulation frequency components, a mixer to demodulate the capacitance readings using quadrature demodulation frequency components, and the like. The result of the mixer demodulation may be used to determine an amplitude proportional to the capacitance so that the stylus 100 may sense contact with the capacitive touch sensor panel.
It will be appreciated that the stylus 100 may include a microphone, speaker, audio generator, vibrator, camera, data port, and other devices, as desired. A user may control the operation of the stylus 100 and the electronic device 200 interacting with the stylus 100 by providing commands with these devices and receive status information and other outputs.
The processor 110 may be used to run software on the stylus 100 that controls the operation of the stylus 100. During operation of the stylus 100, software running on the processor 110 may process sensor inputs, button inputs, and inputs from other devices to monitor movement of the stylus 100 and other user inputs. Software running on the processor 110 may detect user commands and may communicate with the electronic device 200.
To support wireless communication of the stylus 100 with the electronic device 200, the stylus 100 may include a wireless module. Fig. 4A illustrates a wireless module as a bluetooth module 180. The wireless module may also be a WI-FI hotspot module, a WI-FI point-to-point module, or the like. The 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 using an antenna, which may be based on the type of wireless module, bluetooth signals, wireless local area network signals, remote signals such as cellular telephone signals, near field communication signals, or other wireless signals.
The stylus 100 may also include a charging module 190, and the charging module 190 may support charging of the stylus 100 to provide power to the 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), or the like, and for example, the electronic device 200 may be a tablet (portable android device, PAD), a personal digital assistant (personal digital assistant, PDA), a handheld device with a wireless communication function, a computing device, an in-vehicle device, or a wearable device, a Virtual Reality (VR) terminal device, an augmented reality (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 security (transportation safety), a mobile terminal or a fixed terminal with a touch screen, such as a wireless terminal in smart city (smart home), or the like. The form of the terminal device in the embodiment of the present application is not specifically limited.
Fig. 4B is a schematic structural diagram of an electronic device 200 according to an embodiment of the present application. Referring to fig. 4B, the electronic device 200 may include multiple subsystems that cooperate to perform, coordinate, or monitor one or more operations or functions of the 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.
Illustratively, coordination engine 230 may be used to communicate and/or process data with other subsystems of electronic device 200; communication and/or transaction data with the stylus 100; measuring and/or obtaining an 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 the stylus 100; the stylus 100 or the like is positioned based on the positions of the tip signal crossing region and the ring signal crossing region.
The coordination engine 230 of the electronic device 200 includes or is otherwise communicatively coupled to a sensor layer located below or integral with the input surface 220. The coordination engine 230 utilizes the sensor layer to locate the stylus 100 on the input surface 220 and uses the techniques described herein to estimate the angular position of the stylus 100 relative to the plane of the input surface 220. 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 in columns and rows. More specifically, the array of column traces is arranged 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 housing layers, and the like.
The sensor layer can operate in a variety of modes. If operating in mutual capacitance mode, the column and row traces form a single capacitive sense 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 sense nodes at each overlap point. In another embodiment, if operating in a mutual capacitance mode, adjacent column traces and/or adjacent row traces may each form a single capacitive sense node (e.g., a "horizontal" mutual capacitance). 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 the capacitance (e.g., mutual capacitance or self capacitance) change presented 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 identify 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 coordination engine 230.
Processor 210 may use the stylus identity information to simultaneously receive input from more than one stylus. In particular, coordination engine 230 may be configured to communicate to processor 210 the position and/or angular position of each of the number of styluses detected by coordination engine 230. In other cases, coordination engine 230 may also transmit information to processor 210 regarding the relative positions and/or relative angular positions of the plurality of styluses detected by coordination engine 230. For example, coordination engine 220 may notify processor 210 that the detected first stylus is located away from the detected second stylus.
In other cases, the end signal and/or ring signal may also include specific information and/or data for causing the electronic device 200 to identify a specific user. Such information is generally referred to herein as "user identity" information.
Coordination engine 230 may forward user identity information (if detected and/or recoverable) to processor 210. If the user identity information cannot be recovered from the tip signal and/or the ring signal, coordination engine 230 may optionally indicate to processor 210 that the user identity information is not available. Processor 210 can utilize user identity information (or the absence of such information) in any suitable manner, including but not limited to: accepting or rejecting input from a particular user, allowing or rejecting access to a particular function of the electronic device, etc. Processor 210 may use the user identity information to simultaneously receive input from more than one user.
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 the stylus 100. Such information is generally referred to herein as "stylus setup" information.
Coordination engine 230 may forward the stylus setup information (if detected and/or recoverable) to processor 210. If the stylus setting information is not recoverable from the tip signal and/or the ring signal, coordination engine 230 may optionally indicate to processor 210 that the stylus setting information is not available. The electronic device 200 can utilize the stylus setting information (or the absence of the information) in any suitable manner, including but not limited to: applying settings to an electronic device, applying settings to a program running on an electronic device, changing line thickness, color, pattern presented by a graphics program of an electronic device, changing settings of a video game operating on an 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: communication and/or transaction data with other subsystems of the electronic device 200, communication and/or transaction data with the stylus 100, data communication and/or transaction data over a wireless interface, data communication and/or transaction data over a wired interface, facilitating power exchange over a wireless (e.g., inductive, resonant, etc.) or wired interface, receiving a position and angular position of one or more styluses, etc.
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, a central processing unit, an application specific integrated circuit, a field programmable gate array, a digital signal processor, an analog circuit, a digital circuit, or a combination of these devices. The processor may be a single-threaded or multi-threaded processor. The processor may be a single core or multi-core processor.
During use, processor 210 may be configured to access a memory storing 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 rotational input device, buttons or other physical input devices, biometric sensors and/or systems, force or touch input/output components, a communication module (such as a wireless interface and/or 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. The power connector 250 may be any suitable connector or port that may be configured to receive power from an external power source and/or to provide power to an external load. For example, in some embodiments, the power connector 250 may be used to recharge a battery within the power subsystem 240. In another embodiment, the power connector 250 may be used to transfer power stored (or available) within the power subsystem 240 to the stylus 100.
The electronic device 200 also includes a wireless interface 260 to facilitate electronic communications between the electronic device 200 and the stylus 100. In one embodiment, the electronic device 200 may be configured to communicate with the stylus 100 via a low energy bluetooth communication interface or a near field communication interface. In other examples, the communication interface facilitates electronic communications between the electronic device 200 and an external communication network, device, or platform.
The wireless interface 260 (whether the 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, capacitively coupled interfaces, wi-Fi interfaces, TCP/IP interfaces, network communication interfaces, optical interfaces, acoustical 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, the processor 210 uses the display 270 to present an interface with which a user may interact. In many cases, the user manipulates the 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 a particular described embodiment or equivalent thereof. Similarly, other electronic devices may include a greater number of subsystems, modules, components, etc. Some of the sub-modules may be implemented as software or hardware, where appropriate. It should be understood, therefore, that the foregoing description is not intended to be exhaustive or to limit the disclosure to the precise form described herein. On the contrary, many modifications and variations will be apparent to those of ordinary skill in the art in light of the above teachings.
Fig. 4C is a schematic structural diagram of a wireless keyboard 300 according to an embodiment of the present application. 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, etc. 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 the connection part 304 (shown in fig. 2B) for movably connecting the keyboard body and the cradle. It should be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the wireless keyboard 300. In other embodiments, wireless keyboard 300 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The memory 320 may be used to store program codes, such as program codes for wirelessly charging the stylus 100, among others. 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 for electronic devices that were successfully paired with the wireless keyboard 300 before. For example, the connection data may be a bluetooth address of an electronic device that was 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 therebetween, such as for validation or the like. The bluetooth address may be a medium access control (media access control, MAC) address.
The processor 310 may be configured to execute the application code described above and invoke the relevant modules to implement the functionality of the wireless keyboard 300100 in embodiments 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 realized. The processor 310 may include one or more processing units, and the different processing units may be separate devices or may be integrated into one or more processors 310. The processor 310 may be embodied as an integrated control chip or may be comprised of circuitry including various active and/or passive components configured to perform the functions described in the embodiments of the present application as belonging to the processor 310. Wherein the processor of the wireless keyboard 300 may be a microprocessor.
The wireless communication module 370 may be used to support data exchange between the wireless keyboard 300 and other electronic devices including Bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), and the like.
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 may be paired with and establish a wireless connection with the bluetooth chip of the other electronic device to enable wireless communication between the wireless keyboard 300 and the other electronic device through the wireless connection.
In addition, the wireless communication module 370 may further include an antenna, and the wireless communication module 370 receives electromagnetic waves via the antenna, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals 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 to electromagnetic waves for radiation via an antenna.
In some embodiments, wireless keyboard 300 may support wired charging. Specifically, the charge management module 340 may receive a charge input of the wired charger through the charge interface 330.
In other embodiments, wireless keyboard 300 may support forward wireless charging. The charge management module 340 may receive wireless charge 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, and may induce an alternating electromagnetic field emitted from the wireless charging coil 350 of the wireless charger to generate an alternating electric signal. The alternating electrical signal generated by the wireless charging coil 350 is transmitted to the charge 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 input from the battery 330 and provides power to the processor 310, the memory 320, the external memory, the wireless communication module 370, and the like. The charge management module 340 may also be configured to monitor battery capacity, battery cycle times, battery health (leakage, impedance) and other parameters of the battery 360. In other embodiments, the charge management module 340 may also be provided in the processor 310.
In other embodiments, wireless keyboard 300 may support reverse wireless charging. Specifically, the charge management module 340 may also receive an input of the charge interface 330 or the battery 360, and convert a direct current signal input by the charge interface 330 or the battery 360 into an alternating current signal. The ac signal is transmitted to the wireless charging coil 350 through the matching circuit. The wireless charging coil 350 receives the ac signal to generate an alternating electromagnetic field. The wireless charging coils of other mobile terminals sense the alternating electromagnetic field and can perform wireless charging. I.e., wireless keyboard 300 may also wirelessly charge other mobile terminals. In one embodiment, the wireless charging coil 350 may be disposed in the housing 303 of the wireless keyboard 300, and the wireless charging coil is disposed in the pen holder 20 of the stylus 100, and when the stylus 100 is placed in the housing 303, the wireless keyboard 300 may charge the stylus 100 through the wireless charging coil 350.
It should be noted that the matching circuit may be integrated in the charge management module 340, and the matching circuit may also be independent of the charge management module 340, which is not limited in the embodiment of the present application. Fig. 4C illustrates a schematic hardware configuration of the wireless keyboard 300, taking as an example that the matching circuit may be integrated in the charge management module 340.
The charging interface 350 may be used to provide a wired connection for charging or communicating between the wireless keyboard 300 and other electronic devices, such as a wired charger for the wireless keyboard 300.
The touch pad 380 has a touch sensor integrated therein. The notebook computer may receive a control command of the user to the notebook computer through the touch pad 380 and the keyboard 390.
It should be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on 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 be provided with 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 a key, an indicator (which may indicate a state of power, incoming/outgoing call, pairing mode, etc.), a display (which may prompt the user for related information), and the like. The key may be a physical key or a touch key (used in cooperation with a touch sensor), and is used for triggering operations such as starting up, shutting down, starting charging, stopping charging, and the like.
The following describes embodiments of the present application by taking an electronic device as an example of a tablet computer, that is, taking the tablet computer as a wireless keyboard and a wireless charging of a stylus.
In some embodiments, when the tablet computer and the wireless keyboard are in a charging position (e.g., the tablet computer is adsorbed on a keyboard sleeve of the wireless keyboard), the tablet computer can prompt whether to wirelessly charge the wireless keyboard. Specifically, the tablet computer may display a first alert message for alerting 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 prompting message 501 shown in fig. 5A, where the first prompting message 501 is used to prompt the user whether to agree to wirelessly charge the wireless keyboard. For example, the first alert message 501 may be an "alert," whether wireless charging of the wireless keyboard is warranted. ".
In response to a first operation of the user, the tablet computer can wirelessly charge 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, wherein the tablet personal computer does not perform reverse wireless charging, and the second operation is used for triggering the tablet personal computer not to initiate wireless charging to the wireless keyboard. For example, in conjunction with fig. 5A, the first alert 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., a first operation), the tablet may wirelessly charge the wireless keyboard. In response to a user action on the "reject" option (i.e., a second operation), the tablet computer does not wirelessly charge the wireless keyboard.
It can be appreciated 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, the time for displaying the first prompting message on the tablet computer is not limited. For example, in a case where 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 prompting message. Thus, in conjunction with fig. 5A, the tablet computer may receive the user operation on the "reject" option, rejecting wireless charging for the wireless keyboard. Therefore, the wireless keyboard can be prevented from being charged in a wireless mode when the electric quantity is insufficient, the electric quantity reduction speed of the tablet personal computer is delayed, the using time of the tablet personal computer is prolonged, and the using experience of a user is improved. For another example, the tablet may display the first alert message when the tablet is in a charged state. Therefore, if the tablet personal computer stops charging the wireless keyboard due to lower electric quantity of the tablet personal computer, the user can control the tablet personal computer to continuously charge the wireless keyboard, and the use experience of the user is improved.
The tablet personal computer being in a charging state means that the tablet personal computer stores energy (i.e. stores power) for a battery of the tablet personal computer in a wired or wireless mode. For example, the charging interface of the tablet may be connected to a wired charger (also referred to as a power adapter) that receives a charging input of the wired charger. For example, the charging interface may be a universal serial bus (universal serial bus, USB) interface.
In some embodiments, the electronic device may prompt whether to wirelessly charge the stylus if the stylus is in a charging position (e.g., the stylus is absorbed within a receiving cavity of a wireless keyboard). Specifically, the electronic device may display a second prompting message, where the second prompting message is used to prompt whether to wirelessly charge the stylus. For example, when the tablet computer is in the charging position shown in fig. 1 and the stylus is in the charging position shown in fig. 2C, the tablet computer may display a second prompting message 502 shown in fig. 5B, where the second prompting message 502 is used to prompt the user whether to agree to the tablet computer to wirelessly charge the stylus. For example, the second hint message 502 may be a "hint" whether or not to agree to wirelessly charge the stylus. ". Optionally, the second prompting message 502 may further include an "agree" 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 are not limited in this regard.
It should be noted that, specifically, for the description of displaying the second prompting message on the electronic device, reference may be made to the description of displaying the first prompting message on the electronic device, which is not repeated herein.
It can be appreciated that the tablet computer displays the second prompt message, and the user can actively control whether the tablet computer charges the stylus wirelessly. Therefore, the operability of the user is improved, and the use experience of the user is improved.
In some embodiments, the electronic device may prompt whether to wirelessly charge the wireless keyboard and stylus if the tablet, wireless keyboard, and stylus are all in the charging position. Specifically, the electronic device may display the first alert message and the second alert message. Optionally, the electronic device may display a fourth alert message indicating that the wireless keyboard and/or stylus is to be charged wirelessly. In response to the first operation, the tablet computer may send a target message to the wireless keyboard via BLE, the target message indicating to wirelessly charge a target device, the target device including the wireless keyboard and/or the stylus. Alternatively, the target message may include an identification of the target device, such as a MAC address or the like. The wireless keyboard receives the target message and can wirelessly charge the target device.
For example, in the case that the tablet computer is adsorbed on the keyboard sleeve of the wireless keyboard and the stylus is adsorbed in the storage cavity of the wireless keyboard, the tablet computer may display a fourth prompting message 503 as shown in fig. 5C, where the fourth prompting message 503 is used to prompt the user whether to agree to the tablet computer to wirelessly charge the wireless keyboard and/or the stylus. For example, the fourth prompting message 503 may be "please select which devices to wirelessly charge", and the fourth prompting message 503 may include a "wireless keyboard" option and a "stylus" option. Optionally, the second prompting message 502 may further include a "confirm" 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 the stylus. For example, the tablet computer selects a "wireless keyboard" option and a "stylus" option in response to a selection operation by the user. The tablet may then wirelessly charge the wireless keyboard and stylus in response to user operation of the "ok" option.
It can be appreciated that the tablet computer displays the fourth prompting message, and the user can actively control whether the tablet computer is wirelessly charged by the wireless keyboard and the stylus. 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 personal computer is low, the tablet personal computer is charged by the wireless keyboard and the touch pen in a wireless manner, so that the electric quantity of the tablet personal computer can be reduced rapidly, the tablet personal computer is powered off automatically and prematurely due to insufficient electric quantity, and the use experience of a user in using the tablet personal computer is affected.
In some embodiments, the tablet computer does not perform reverse wireless charging when the remaining power of the tablet computer is low. Specifically, the wireless keyboard stores a first preset device power threshold. The wireless keyboard can acquire the electric quantity information of the tablet personal computer, and the electric quantity information of the tablet personal computer is used for indicating the residual electric quantity of the tablet personal computer. And then, the wireless keyboard can compare the electric quantity information of the tablet personal computer with a first preset device electric quantity threshold value. If the electric quantity information of the tablet personal computer is larger than the electric quantity threshold value of the first preset device, the wireless keyboard can determine that the tablet personal computer is reversely charged in a wireless mode. If the electric quantity information of the tablet personal computer is smaller than the electric quantity threshold value of the first preset device, the wireless keyboard can determine that the tablet personal computer is not subjected to reverse wireless charging.
Illustratively, if the first predetermined device power threshold is 19%. If the electric quantity information of the tablet personal computer is 40%, the wireless keyboard determines that the tablet personal computer is reversely and wirelessly charged. If the electric quantity information of the tablet personal computer is 10%, the wireless keyboard determines that the tablet personal computer is not subjected to reverse wireless charging.
In other embodiments, if the tablet computer determines that its own power level is below a certain threshold, charging of the wireless keyboard or stylus may be stopped. Or when the tablet personal computer determines that the self electric quantity is lower than a certain threshold value, wireless charging is not started when the connection of the keyboard or the handwriting pen is detected.
It can be understood that if the electric quantity information of the tablet personal computer is larger than the electric quantity threshold value of the first preset device, the residual electric quantity of the tablet personal computer is higher, and the tablet personal computer cannot be automatically powered off in a short time due to reverse wireless charging. And if the electric quantity information of the tablet personal computer is smaller than the electric quantity threshold value of the first preset device, indicating that the residual electric quantity of the tablet personal computer is lower. The tablet personal computer does not carry out reverse wireless charging, so that the consumption of electric quantity can be reduced, and the usable time of the tablet personal 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 charges the wireless keyboard and the touch pen wirelessly; the electric quantity of the tablet personal computer can be reduced rapidly, so that the tablet personal computer is powered off automatically and prematurely due to insufficient electric quantity, and the use experience of a user in using the tablet personal computer is affected.
In some embodiments, the wireless keyboard may indicate whether the electronic device is wirelessly charged for the wireless keyboard and/or the stylus based on the charging state of the tablet computer, the power information of the wireless keyboard, and the power information of the stylus. The charging status is used to indicate whether the tablet is being charged (e.g., wireless charging or wired charging). The power information is used to indicate the remaining power. For example, the power information of the wireless keyboard is 80%, which is used to indicate that the remaining power of the wireless keyboard is 80%.
The embodiment of the application provides a wireless charging method, as shown in fig. 6, which may include S601-S613.
S601, bluetooth connection is established between the tablet personal computer and the wireless keyboard.
In the embodiment of the application, the bluetooth function of the tablet computer and the wireless keyboard needs to be started so as to establish bluetooth connection between the tablet computer and the wireless keyboard. For a specific description of a manner of establishing a bluetooth connection between a tablet pc and a wireless keyboard, reference may be made to a method of establishing a bluetooth connection between an electronic device and another electronic device in a conventional technology, which is not described herein.
In some embodiments, the tablet computer may establish a bluetooth connection with the wireless keyboard and the stylus, respectively.
It will be appreciated that the tablet pc may also be connected to the wireless keyboard or stylus, respectively, by other communication means. For example, the tablet computer may establish a wired connection with a wireless keyboard, or may establish a connection through other wireless communication technologies such as Wifi. The technical manner of establishing the connection is not limited in the embodiments of the present application.
S602, the tablet personal computer sends a charging state message to the wireless keyboard.
The charging state message comprises charging information of the tablet personal computer. The charging information of the tablet computer is used for indicating whether the tablet computer is being charged. In the embodiment of the application, whether the tablet computer is being charged refers to whether the 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 personal computer is being charged, and the second charging indication information is used for indicating that the tablet personal computer is not being charged. That is, if the charging information is the first charging indication 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 charging, the tablet computer may send a first charging indication to the wireless keyboard. If the tablet computer is not being charged, the tablet computer can send second charging indication information to the wireless keyboard.
Optionally, the charge status message may further include: charging service identification, charging status identification, first message type and length information. Wherein the charging service identifier is used for indicating that the charging state message belongs to a charging service type. The charge status identifier is used to indicate that the charge status message may reflect whether the tablet is being charged. The first message type is used for indicating that the charge state message is sent to the wireless keyboard by the tablet computer. 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 identification," Command id:01 "is a charge status identifier," Type:01 "is the first message type," Length:01 "is the length information of the charge status message (i.e., the length of the charge status message is 1 byte)," Value:01 "is the 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 state of charge message when the state of charge of the tablet changes. Specifically, the tablet computer may monitor the state of charge of the tablet computer. If the charging state of the tablet computer is changed, the tablet computer can broadcast a charging state message through the Bluetooth channel.
In other embodiments, if the tablet is not charging, a 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 personal computer within the preset time, and the tablet personal computer can be considered to be not charged.
It should be noted that, the change of the charging state of the tablet pc means that the tablet pc is changed from the charging state to the uncharged state; or, the charging state of the tablet computer is changed, that is, the tablet computer is changed from an uncharged state to a charging state.
It can be understood that when the charging state of the tablet personal computer is changed, the tablet personal computer sends a charging state message to the wireless keyboard, so that the wireless keyboard can timely determine whether the tablet personal computer is being charged. Thus, the wireless keyboard can determine whether to instruct the tablet computer to charge the wireless keyboard and/or the handwriting pen wirelessly according to the charging state of the tablet computer.
In some embodiments, the wireless keyboard may send a charge query message to the tablet computer via bluetooth low energy (Bluetooth Low Energy, BLE) prior to the tablet computer sending the charge information of the tablet computer to the wireless keyboard, the charge query message being used to query whether the tablet computer is being charged. For example, the charge inquiry message may include: charging service identification, charging inquiry identification, second message type and length information. Wherein the charging service identifier is used for indicating that the charging state message belongs to a charging service type. The charge query identifier is used to indicate that the charge query message may 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 charge inquiry message. For example, the charge query message may be "Service id:01, command id:02, type:02, length:01". Wherein, "Service id:01 "is a charging service identification," Command id:02 "is a charge query identifier," Type:02 "second message type," Length:01 "is the length information of the charge inquiry message (i.e., the length of the charge inquiry message is 1 byte).
The tablet may receive a charge query message from the wireless keyboard. Afterwards, the tablet computer can send a charging state message of the tablet computer to the wireless keyboard through BLE. Illustratively, the tablet computer may send a charging status message of the tablet computer to the wireless keyboard through a first service path for the tablet computer to send a message to the wireless keyboard, the first service path corresponding to a first universally unique identifier (Universally Unique Identifier, UUID).
S603, the wireless keyboard receives a charging state message from the tablet computer.
S604, the wireless keyboard acquires electric quantity information of the wireless keyboard.
The electric quantity information of the wireless keyboard is used for indicating the residual electric quantity of the wireless keyboard. For example, the power information of the wireless keyboard is 80%, which is used to indicate that the remaining power of the wireless keyboard is 80%. For another example, the power information of the wireless keyboard is 30%, and the power information is used for 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 control pen is used for indicating the residual electric quantity of the touch control pen. For example, the power information of the stylus is 80%, and the power information is used for indicating that the remaining power of the stylus is 80%. For another example, the power information of the stylus is 30%, and the remaining power of the stylus is 30%.
In some embodiments, the wireless keyboard may obtain power information of the stylus with the stylus being adsorbed to the receiving cavity of the wireless keyboard. For example, as shown in fig. 2C, when the stylus pen 100 is attracted 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 of acquiring the electric quantity information of the wireless keyboard and the electric quantity information of the touch pen by the wireless keyboard is not limited. For example, the wireless keyboard may perform S604 first and then S605. For another example, the wireless keyboard may execute S605 first and then S604. For another example, the wireless keyboard may perform S604 and S605 simultaneously.
S606, 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 wireless keyboard and the electric quantity information of the touch pen.
In the embodiment of the application, the tablet computer performs reverse wireless charging, which means that the tablet computer can perform wireless charging for the wireless keyboard and/or the touch pen. For example, the tablet may wirelessly charge a wireless keyboard. For another example, the tablet may wirelessly charge the stylus. For another example, the tablet may wirelessly charge a wireless keyboard and stylus. That is, the wireless keyboard may determine whether the tablet computer is wirelessly charged by the wireless keyboard, the stylus, or the wireless keyboard and the stylus according to charging information of the tablet computer, electric quantity information of the wireless keyboard, and electric quantity information of the stylus.
In some embodiments, if the tablet computer is not in a charging state and the remaining power of the wireless keyboard and/or the remaining power of the stylus are low, the wireless keyboard may determine that the tablet computer is wirelessly charged for the wireless keyboard and/or the stylus. Specifically, a first preset keyboard power threshold and a first preset stylus power threshold are stored in the tablet personal computer. The electronic device may compare the power information of the wireless keyboard to a first preset keyboard power threshold and compare the power information of the stylus to the first preset stylus power threshold. 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 charged wirelessly.
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 preset keyboard power threshold is 18% and the first preset stylus power threshold is 58%. Typically, 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 may be used for a longer period of time (e.g., 1 day).
For example, if the first preset keyboard power threshold is 19%, the first preset stylus power threshold is 59%. If the tablet personal 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 personal computer is reversely and wirelessly charged. If the tablet personal 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 personal computer is reversely and wirelessly charged. If the tablet personal 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 personal computer is reversely and wirelessly charged.
It can be understood that if the power information of the wireless keyboard is smaller than the first preset keyboard power threshold and/or the power information of the stylus is smaller than the first preset stylus power threshold, it is indicated that the remaining power of the wireless keyboard and the stylus is lower. Therefore, the wireless keyboard can determine that the tablet personal computer is reversely charged in a wireless mode, so that the residual electric quantity of the wireless keyboard and the touch pen is improved, and the available time of the wireless keyboard and the touch pen is prolonged.
If the charging information is the second charging indication information and the electric quantity information of the wireless keyboard is larger than the first preset keyboard electric quantity threshold value, the electric quantity information of the touch pen is larger than the first preset touch pen electric quantity threshold value, and the wireless keyboard determines that the tablet personal computer does not perform reverse wireless charging.
For example, if the first preset keyboard power threshold is 19%, the first preset stylus power threshold is 59%. If the tablet personal 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 personal computer is not in 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 touch pen is greater than the first preset touch pen electric quantity threshold, it is indicated that the residual electric quantity of the wireless keyboard and the touch pen is higher, and the tablet personal computer does not need to be charged reversely and wirelessly. And moreover, the tablet personal computer is not subjected to wireless charging, so that the consumption of the electric quantity of the tablet personal computer can be reduced, and the usable time of the tablet personal computer is further prolonged.
In some embodiments, if the tablet is in a charged state, the wireless keyboard may determine that the tablet is charging the wireless keyboard and/or stylus wirelessly. Specifically, if the charging information is the second charging indication information, the wireless keyboard can determine that the tablet computer is reversely and wirelessly charged.
It can be appreciated that if the tablet pc is in a charged state, the power of the tablet pc may be continuously increased. Therefore, when the tablet personal computer is in a charging state, the tablet personal computer is subjected to reverse wireless charging, and the problem of insufficient electric quantity of the tablet personal computer is avoided.
In some embodiments, if the wireless keyboard determines that the tablet computer is being charged in reverse wireless, the wireless keyboard may perform S607.
In some embodiments, if the wireless keyboard determines that the tablet computer is being charged in reverse wireless, the wireless keyboard may perform S607. If the wireless keyboard determines that the tablet computer does not perform reverse wireless charging, the wireless keyboard may execute S613.
In other embodiments, if the wireless keyboard determines that the tablet computer does not perform reverse wireless charging and the tablet computer does not charge the wireless keyboard at this time, the wireless keyboard may not send a reverse charging stop message. Because the tablet personal computer is not subjected to wireless charging at this time, wireless charging cannot be started when a wireless charging message is not received. This way, the 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 this time when it is determined to send a wireless charging start message or a wireless charging stop message. For example, if the tablet computer is charging the wireless keyboard at this 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 is to be charged, a wireless charging start message can be sent.
S607, if the wireless keyboard determines that the tablet personal computer is in reverse wireless charging, the wireless keyboard sends a reverse charging start message to the tablet personal computer.
The reverse charging start message is used for indicating the tablet personal 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 personal computer to perform reverse wireless charging.
Optionally, the reverse charge start message may further include: charging service identification, charging control identification, second message type and length information. Wherein the charging service identifier is used for indicating that the charging state message belongs to a charging service type. The charging control identifier is used for indicating that the reverse charging start message can start/stop the reverse wireless charging function of the tablet computer. The length information is used to indicate the length of the reverse charge on message.
Illustratively, the reverse charge start message may be "Service id:01, command id:03, type:02, length:01, value:01", wherein" Service id:01 "is a charging service identification," Command id:03 "is a charge status identifier," Type:02 "second message type," Length:01 "is the length information of the reverse charge on message (i.e., the length of the reverse charge on message is 1 byte)," Value:01 "is the 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 charge on message to the tablet computer via BLE.
S608, the tablet personal computer initiates wireless charging to the wireless keyboard.
In the embodiment of the application, the tablet computer receives the reverse charging start message from the wireless keyboard, and the tablet computer can initiate wireless charging to the wireless keyboard. Specifically, the tablet computer receives a reverse charging start message from the wireless keyboard, and the tablet computer can start the wireless charging coil (i.e. start the reverse wireless charging function) to output wireless charging current to the wireless keyboard.
In some embodiments, the tablet may prompt whether to reverse wireless charging before the tablet initiates wireless charging to the wireless keyboard. Specifically, the tablet computer receives the reverse charging start message from the wireless keyboard, and may prompt whether to perform reverse wireless charging (e.g., the first prompt message 501 shown in fig. 5A, the second prompt message 502 shown in fig. 5B, and the fourth prompt message 503 shown in fig. 5C). Thereafter, the tablet computer may initiate a wireless charge to the wireless keyboard in response to the first operation. The first operation is used for triggering the tablet personal computer to initiate wireless charging to the wireless keyboard. Illustratively, in conjunction with fig. 5A, in response to a user action on the "consent" option (i.e., a first operation), the tablet may initiate a wireless charge to the wireless keyboard.
It can be understood that the tablet computer prompts whether to perform reverse wireless charging, and the user can actively control whether the tablet computer is in wireless charging 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, the power information of the wireless keyboard and the power information of the stylus acquired by the wireless keyboard may be inaccurate. Thus, if the wireless keyboard periodically executes S604-S606, the wireless keyboard may send different instructions (such as a reverse charge start message or a reverse charge stop message) multiple times.
It should be noted that, when the remaining power of the wireless keyboard and/or the stylus is low, the time taken for the tablet computer to wirelessly charge the wireless keyboard and/or the stylus may be long.
In some embodiments, the tablet computer may quickly wirelessly charge the wireless keyboard and/or stylus with a low remaining power of the wireless keyboard and/or stylus. Specifically, if the electric quantity information of the wireless keyboard is smaller than the first preset keyboard electric quantity threshold value, or the electric quantity information of the touch pen is smaller than the first preset touch pen electric quantity threshold value, the tablet computer can initiate charging to the wireless keyboard through a fast charging protocol. The fast charging protocol is not limited in this embodiment of the present application. For example, the fast charge protocol may be a Universal Serial Bus Power Delivery (USBPD) protocol.
It can be appreciated that the tablet personal computer initiates charging to the wireless keyboard through the fast charging protocol, so that 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 receiving the reverse charge start message by the tablet computer is high within the preset period of time, the tablet computer may not execute the message. Specifically, the tablet pc may obtain a first frequency according to the reverse charging start message received in the preset time period, where the first frequency is a frequency at which the tablet pc receives the reverse charging start message in the preset time period. And, the preset frequency threshold is stored in the tablet personal computer. If the first frequency is greater than the preset frequency threshold, the tablet computer does not perform reverse wireless charging. And if the first frequency is smaller than the preset frequency threshold, the tablet personal computer performs reverse wireless charging.
For example, if the preset frequency threshold is 5 times/minute, i.e., the total number of times the reverse charge on message is received within one minute is 5 times. If the tablet computer receives a message (e.g., a reverse charge start message) from the wireless keyboard, the tablet computer executes the reverse charge start message at a first frequency of 3 times/min. If the first frequency is 8 times/min 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 appreciated that by comparing the first frequency with a preset frequency threshold, frequent opening and closing of reverse wireless charging of the tablet pc can be avoided. Thus, the discharging times of the battery of the tablet personal computer can be reduced, and the using time of the tablet personal computer is delayed.
It should be noted that, if the frequency of receiving the reverse charging stop message in the preset period of time is high, the tablet computer may not execute the message. Reference should be made specifically to the above embodiments, and details are not repeated here.
S609, the wireless keyboard determines that the wireless keyboard and/or the touch pen are/is charged wirelessly 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 when the remaining power of the stylus is high, the wireless keyboard may be determined to be wireless charging for the wireless keyboard. When the remaining power of the wireless keyboard is high, the wireless keyboard can determine to charge the stylus pen wirelessly. When the remaining power of the wireless keyboard and the stylus pen is moderate, the wireless keyboard can be determined to be charged wirelessly by the wireless keyboard and the stylus pen.
In some embodiments, when the remaining power of the wireless keyboard is low, the wireless keyboard may determine to wirelessly charge the wireless keyboard, not to wirelessly charge the stylus. Specifically, the wireless keyboard stores a second preset keyboard electric quantity threshold value. 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 in wireless charging for the wireless keyboard, and the wireless charging for the touch pen is not performed. The second preset keyboard electric quantity threshold value is smaller than the first preset keyboard electric quantity threshold value. Typically, when the power information of the wireless keyboard is the second preset keyboard power threshold, the available duration of the wireless keyboard is shorter (for example, 1 hour).
For example, if the second preset 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, and the stylus is not wirelessly charged.
In some embodiments, the wireless keyboard may determine to wirelessly charge the wireless keyboard when the remaining power of the stylus is high, and not to wirelessly charge the stylus. Specifically, a second preset threshold of the electric quantity of the touch pen is stored in the wireless keyboard. The wireless keyboard may compare the electrical quantity information of the stylus with a second preset stylus electrical quantity threshold. If the electric quantity information of the touch pen is larger than the second preset touch pen electric quantity threshold value, the wireless keyboard is determined to be charged wirelessly, and the touch pen 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 does not wirelessly charge the stylus. The second preset touch pen electric quantity threshold value is larger than the first preset touch 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 preset 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, and the stylus is not wirelessly charged.
In some embodiments, when the remaining power of the wireless keyboard is high, the wireless keyboard may determine to wirelessly charge the stylus pen, not to wirelessly charge the wireless keyboard. Specifically, a third preset keyboard electric quantity threshold value 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 charged wirelessly by the touch pen, and the wireless keyboard is not charged wirelessly. The third preset keyboard electric quantity threshold value is larger than the first preset keyboard electric quantity threshold value.
For example, if the third preset keyboard power threshold is 29%. If the electric quantity information of the wireless keyboard is 50%, the wireless keyboard can be determined to be charged wirelessly by the touch pen, and the wireless keyboard is not charged wirelessly.
In some embodiments, the wireless keyboard may determine to wirelessly charge the wireless keyboard and the stylus when the remaining power of the wireless keyboard and the remaining power of the stylus are both moderate. Specifically, the wireless keyboard stores a second preset touch pen electric quantity threshold value, a second preset keyboard electric quantity threshold value and a third preset keyboard electric quantity threshold value. The wireless keyboard may compare the power information of the wireless keyboard with a second preset keyboard power threshold and a third preset keyboard power threshold, respectively, and compare the power information of the stylus with a second preset stylus power threshold. 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 in wireless charging with the touch pen.
For example, if the second preset keyboard power threshold is 14%, the third preset keyboard power threshold is 29%, and if the second preset stylus power threshold is 95%. If the electric quantity information of the wireless keyboard is 50% and the electric quantity information of the touch pen is 60%, the wireless keyboard can be determined to be charged wirelessly by the wireless keyboard and the touch pen.
It is understood that the wireless keyboard can charge the wireless keyboard and the stylus wirelessly at the same time when the remaining power of the wireless keyboard and the stylus are both moderate. Therefore, the current for charging the stylus can be prevented from being reduced due to the fact that the wireless keyboard and the stylus are charged in a wireless mode, the current for charging the stylus is increased, and the charging efficiency of the stylus is improved.
In some embodiments, if the wireless keyboard determines that the stylus is wirelessly charged, the wireless keyboard performs S610, and does not perform S611. If the wireless keyboard determines that the stylus is charged wirelessly, the wireless keyboard executes S611 and does not execute S610. If the wireless keyboard is determined to be wireless charging for the wireless keyboard and the stylus, the wireless keyboard performs S612.
S610, the wireless keyboard is used for wirelessly charging the wireless keyboard.
In some embodiments, the wireless keyboard may charge only the wireless keyboard and not the stylus when the power information of the wireless keyboard is less than a second preset keyboard power threshold or the power information of the stylus is greater than the second preset stylus power threshold. Specifically, the wireless keyboard can distribute all wireless charging currents received from the tablet computer to the wireless keyboard to wirelessly charge the wireless keyboard.
For example, if the first preset keyboard power threshold is 14%. If the electric quantity information of the wireless keyboard is 6%, the wireless keyboard can distribute all the received wireless charging current from the tablet personal computer to the wireless keyboard to wirelessly charge the wireless keyboard. For example, as shown in fig. 7A, tablet 200 may output 80 milliamp of current to wireless keyboard 300. The wireless keyboard 300 may then use the 80 milliamp current to charge the wireless keyboard 300. The wireless keyboard 300 outputs a current of 0 milliamp to the stylus pen 100 sucked into the storage chamber. That is, tablet 200 is not wirelessly charging stylus 100.
It can be understood that if the electric quantity information of the wireless keyboard is smaller than the second preset keyboard electric quantity threshold value, the remaining electric quantity of the wireless keyboard is lower; if the electric quantity information of the touch pen is larger than the second preset touch pen electric quantity threshold value, the fact that the residual electric quantity of the touch pen is higher is indicated. Thus, the wireless keyboard may determine to only wirelessly charge the wireless keyboard, distributing all current to the wireless keyboard. Therefore, the current for charging the wireless keyboard is prevented from being reduced due to the fact that the wireless keyboard and the touch pen are charged in a wireless mode, the current for charging the wireless keyboard is increased, and the charging efficiency of the wireless keyboard is improved.
S611, the wireless keyboard is used for charging the touch pen wirelessly.
In some embodiments, in the case where the power information of the wireless keyboard is greater than the third preset keyboard power threshold, the wireless keyboard may charge only the stylus and not the wireless keyboard. Specifically, the wireless keyboard may initiate wireless charging to the stylus, distribute all wireless charging current received from the tablet computer to the stylus, and wirelessly charge the stylus.
For example, if the third preset 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, tablet 200 may output 80 milliamp current to wireless keyboard 300. Then, the wireless keyboard 300 may output 80 milliamp current to the stylus pen 100 sucked in the receiving chamber. That is, the current charging the wireless keyboard 300 is 0 milliamp, i.e. the tablet computer 200 is not wirelessly charging 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, the remaining power of the wireless keyboard is higher. Thus, the wireless keyboard may determine to only wirelessly charge the stylus, distributing all current to the stylus. Therefore, the current for charging the stylus can be prevented from being reduced due to the fact that the wireless keyboard and the stylus are charged in a wireless mode, the current for charging the stylus is increased, and the charging efficiency of the stylus is improved.
S612, the wireless keyboard is used for wirelessly charging the touch pen and the wireless keyboard.
In the conventional technology, when the wireless keyboard is used for wireless charging of the wireless keyboard and the touch pen, the current can be divided into two paths according to a fixed distribution ratio to be used for wireless charging of 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 power of the wireless keyboard is 25% and the remaining power of the stylus is 70%, the wireless keyboard still charges the wireless keyboard and the stylus wirelessly according to the fixed current. In this way, the charging efficiency of the stylus may be low, which affects the user experience.
In some embodiments, the wireless keyboard may wirelessly charge the wireless keyboard and the stylus when the power information of the wireless keyboard is greater than a second preset keyboard power threshold, the power information of the wireless keyboard is less than a third preset keyboard power threshold, and the power information of the stylus is less than the second preset stylus power threshold. Specifically, the wireless keyboard can divide all wireless charging currents received from the tablet personal computer into a first current and a second current according to the current distribution proportion according to the electric quantity information of the wireless keyboard and the electric quantity information of the touch pen. The first current is used for wirelessly charging the wireless keyboard, the second 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 through the first path of current, and the touch pen can be charged through the second path of current.
It should be noted that, the ratio of the current allocated to the wireless keyboard is not limited in the embodiments of the present application. For example, the wireless keyboard may divide the current into a first current and a second current in a 3:1 ratio, i.e., the first current is three times the second current. For another example, the wireless keyboard may split the current into a first current and a second current in a 2:1 ratio.
For example, if the power information of the wireless keyboard is 25%, the power information of the stylus is 70%, and the wireless keyboard receives all wireless charging current from the tablet computer as 80 milliamps. As shown in fig. 7C, tablet 200 may output 80 milliamp current to wireless keyboard 300. The wireless keyboard may set the first path current to 60 milliamps and the second path current to 20 milliamps. The wireless keyboard 300 may then charge the wireless keyboard with 60 milliamp of current and the stylus 100 with 20 milliamp of current.
It can be understood that the wireless keyboard divides all wireless charging currents received from the tablet computer into a first current path and a second current path according to the electric quantity information of the wireless keyboard and the electric quantity information of the touch control pen. Therefore, the current can be reasonably distributed to be respectively used for wireless charging of the wireless keyboard and the touch pen, 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 stylus 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 the wireless keyboard can receive, and the second maximum current is a maximum current that the stylus can receive. If the current for wirelessly charging the wireless keyboard is greater than the first maximum current, or the current for wirelessly charging the wireless keyboard is greater than the second maximum current, the wireless keyboard can redistribute the current for wirelessly charging the wireless keyboard and the stylus. Alternatively, the wireless keyboard may obtain the first maximum current and the second maximum current.
Taking S610 as an example, the electronic device may compare the total wireless charging current received from the tablet computer with the first maximum current. If the received all wireless charging currents from the tablet computer are less than the first maximum current, the wireless keyboard may execute S610, that is, the received all wireless charging currents from the tablet computer are used as the first current, and the second current is 0. If all wireless charging currents received from the tablet computer are greater than the first maximum current, the wireless keyboard can be charged by the first maximum current. And the wireless keyboard can be used for wirelessly charging the touch pen through the current except the first maximum current in all the received wireless charging currents from the tablet computer. That is, the first current is the first maximum current, and the second current is the current except the first maximum current in all the wireless charging currents received from the tablet computer.
For example, if the first maximum current is 60 milliamps. As can be seen in conjunction with fig. 7A, the wireless keyboard receives all wireless charging current (80 milliamp) from the tablet computer that is greater than the first maximum current. Thus, the wireless keyboard can be wirelessly charged with 60 milliamp of current, and the stylus can be wirelessly charged with 20 milliamp of 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 wireless charging currents received from the tablet pc are smaller than the second maximum current, the wireless keyboard may execute S611, i.e. the first path of current is 0, and all the wireless charging currents received from the tablet pc are used as the second path of current. If all wireless charging currents received from the tablet computer are greater than the second maximum current, the wireless keyboard can wirelessly charge the touch pen through the second maximum current. And the wireless keyboard can be wirelessly charged by the residual current except the second maximum current in all wireless charging currents received from the tablet computer. That is, the first current is the residual current except the second maximum current in all the received wireless charging currents from the tablet computer, and the second 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 current is less than the first maximum current, and the second current is less than the second 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 computer.
The reverse charging stop message is used for indicating the tablet computer to stop reverse wireless charging. The reverse charging stop message comprises second control information, and the second control information is used for indicating the tablet personal computer to stop reverse wireless charging. Optionally, the reverse charge start message may further include: charging service identification, charging control identification, 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 above embodiment, which is not repeated here.
In the embodiment of the application, under the condition that the tablet computer outputs current to the wireless keyboard, the wireless keyboard can send a reverse charging stop message to the tablet computer. And 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) to stop outputting the wireless charging current to the wireless keyboard.
For example, if the first preset keyboard power threshold is 19%, the first preset stylus power threshold is 59%. Under the condition that the tablet personal computer is not in a charging state and the tablet personal computer is outputting current to the wireless keyboard, if the electric quantity information of the wireless keyboard is 40% and the electric quantity information of the touch pen is 80%, the wireless keyboard can send a reverse charging stop message to the tablet personal computer so as to instruct the tablet personal computer to stop 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, the remaining electric quantity of the wireless keyboard and the stylus is higher, and the tablet computer does not need to continue reverse wireless charging. And moreover, the tablet personal computer is not subjected to wireless charging, so that the consumption of the electric quantity of the tablet personal computer can be reduced, and the usable time of the tablet personal computer is further prolonged.
It should be noted that, 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 charges the wireless keyboard, and the other path of current charges the touch pen. In this way, the charging efficiency is reduced again, so that the tablet computer charges the stylus at a slower speed.
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 prompting message, where the third prompting message is used to prompt to adjust the charging position of the stylus. The charging current received by the stylus at the adjusted charging position is greater than the charging current received by the stylus at the charging position before adjustment. For example, as shown in fig. 8, the tablet computer may display a third hint message 801, where the third hint message 801 is used to hint the user to attach the stylus to the tablet computer. For example, the third prompt message 801 may be a "prompt," please attach the stylus to one side of the tablet computer to increase the charging efficiency-! ".
It can be appreciated that by prompting adjustment of the charging position of the stylus, the charging efficiency of the stylus can be improved. And further shortens the charging time of the touch control pen and improves the use experience of a user.
It should be noted that, in a partial usage scenario of the tablet computer, the user may not need to use a stylus and a wireless keyboard. For example, if the tablet computer is running a video playback application to play video, the probability of the user using the wireless keyboard and stylus is low. Therefore, if the tablet personal computer is charged reversely and wirelessly, the electric quantity of the tablet personal computer is consumed too fast, and the use experience of a user is affected.
In some embodiments, the tablet may determine whether to reverse wireless charge based on the type of application running. Specifically, the tablet personal computer stores a first type of application and a second type of application. The first type of application is used for indicating the application programs which do 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 programs which need 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 operated by the tablet personal computer is the first type of application, the tablet personal computer does not conduct reverse wireless charging. And if the application program currently operated by the tablet personal computer is the second type of application, the tablet personal computer is subjected to reverse wireless charging.
For example, if the application currently running on 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 application program currently running on the tablet computer is office application, the office application is second-class application, and the tablet computer is reversely and wirelessly charged.
It can be appreciated that if the application currently running on the tablet pc is the first type of application, the probability of using the wireless keyboard and the stylus by the current user is lower, and the tablet pc does not perform reverse wireless charging. Therefore, the consumption of the electric quantity of the tablet personal computer can be reduced, and the service time of the tablet personal computer is prolonged. If the currently running application program of the tablet computer is the second type of application, the probability that the wireless keyboard and the touch pen are used by the current user is higher, and the tablet computer is reversely charged in a wireless mode. 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 a charging state of the tablet computer, power information of the wireless keyboard, and power information of the stylus. And then, the tablet personal computer can determine whether to charge the wireless keyboard and/or the touch pen wirelessly according to the charging state of the tablet personal computer, 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 the wireless charging process of the tablet computer to determine whether to be the wireless keyboard and/or the stylus, reference may be made to the above embodiments, which are not repeated herein.
It can be understood that the tablet personal computer determines whether to charge the wireless keyboard and/or the stylus wirelessly according to the charging state of the tablet personal 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 guaranteed to be in an 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 wirelessly charged for 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 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 again. Reference should be made specifically to the above embodiments, and details are omitted here.
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, bluetooth connection is established between a tablet personal computer and a wireless keyboard.
S902, the tablet personal computer sends a charging state message to the wireless keyboard.
S903, the wireless keyboard receives a charging state message from the tablet computer.
It should be noted that, for the description of S901-S903, reference may be made to the description of S601-S603 in the above embodiment, which is not repeated here.
S904, acquiring electric quantity information of the tablet personal computer by the wireless keyboard.
In one possible implementation, the tablet computer may send a power message to the wireless keyboard via BLE, where the power message includes power information of the tablet computer. The wireless keyboard may receive a power message from the tablet.
In another possible implementation, the wireless keyboard may send a power inquiry message to the tablet computer via 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.
S905, acquiring electric quantity information of the wireless keyboard by the wireless keyboard.
It should be noted that, for the description of S905, reference may be made to the description of S604 in the above embodiment, which is not repeated here.
S906, the wireless keyboard determines whether the tablet personal computer is reversely and wirelessly charged according to charging information of the tablet personal computer, electric quantity information of the tablet personal computer and electric quantity information of the wireless keyboard.
In some embodiments, if the tablet computer is not in a charged state and the power information of the tablet computer is less than the first preset device power threshold, the wireless keyboard determines that the tablet computer is not being charged in a reverse wireless manner.
In some embodiments, if the tablet computer is in a charged state, the wireless keyboard may determine whether the tablet computer is being charged in a reverse wireless manner according to the power information of the wireless keyboard. For the specific manner in which the wireless keyboard can determine whether the tablet pc is performing reverse wireless charging according to the power information of the wireless keyboard, reference may be made to the description of S606 in the above embodiment, which is not repeated herein.
In some embodiments, if the wireless keyboard determines that the tablet computer is being reverse wirelessly charged, the wireless keyboard may perform S907.
In some embodiments, if the wireless keyboard determines that the tablet computer is being reverse wirelessly charged, the wireless keyboard may perform S907.
In some embodiments, if the wireless keyboard determines that the tablet computer is being reverse wirelessly charged, the wireless keyboard may perform S907. If the wireless keyboard determines that the tablet computer is not being charged in reverse wireless, the wireless keyboard may execute S909.
S907, if the wireless keyboard determines that the tablet personal computer is in reverse wireless charging, the wireless keyboard sends a reverse charging start message to the tablet personal computer.
S908, the tablet personal computer initiates wireless charging to the wireless keyboard.
It should be noted that, for the description of S907 to S908, reference may be made to the description of S607 to S608 in the above embodiment, which is not repeated here.
S909, the wireless keyboard sends a reverse charging stop message to the tablet computer.
Note that, for the description of S909, reference may be made to the description of S613 in the above embodiment, which is not repeated here.
It can be understood that the wireless keyboard can indicate whether the electronic device is wireless keyboard and stylus to be charged according to the charging state of the tablet personal computer, the electric quantity information of the tablet personal computer and the electric quantity information of the wireless keyboard, so that the electric quantity information of each device can be guaranteed to be in an 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 based on the charging status 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, and details are omitted here.
In other embodiments, the wireless keyboard may determine whether to wirelessly charge the stylus based on 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 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 above embodiment, which is not repeated here.
S1003, the wireless keyboard determines that the wireless keyboard and/or the touch pen are/is charged wirelessly according to the electric quantity information of the wireless keyboard and the electric quantity information of the touch pen.
Note that, for the description of S1003, reference may be made to the description of S609 in the above embodiment, and the description is omitted here.
In some embodiments, if the wireless keyboard determines that the stylus is charged wirelessly, the wireless keyboard performs S1004. If the wireless keyboard determines that the stylus is charged wirelessly, the wireless keyboard executes S1005. If the wireless keyboard is determined to be wireless charging, the wireless keyboard performs S1006.
S1004, the wireless keyboard is used for wirelessly charging the wireless keyboard.
S1005, the wireless keyboard is used for charging the touch pen wirelessly.
S1006, the wireless keyboard is used for wirelessly charging the wireless keyboard and the touch pen.
It should be noted that, for the description of S1004 to S1006, reference may be made to the description of S610 to S612 in the above embodiment, which is not repeated here.
It can be understood that the wireless keyboard is used for wirelessly charging 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, and the current can be reasonably distributed to be respectively used for wirelessly charging the wireless keyboard and the touch pen, so that the use experience of a user is improved.
It should be noted that, in the above embodiment, only the tablet computer, the wireless keyboard and the stylus are taken as examples to describe the wireless charging method provided in the embodiment of the present application, and the wireless charging method provided in the embodiment of the present application may be applicable to any bluetooth device. For example, a cell phone charges a smart watch. For another example, the handset charges a bluetooth headset. For another example, the cell phone charges the cell phone.
In some embodiments, the first bluetooth device may wirelessly charge the second bluetooth device and/or the third bluetooth device.
The embodiment of the application provides another wireless charging method, as shown in fig. 11, the wireless charging method may include: S1101-S1109.
S1101, the first bluetooth device establishes a connection with the second bluetooth device.
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 connection between the first bluetooth device and the second bluetooth device, and a manner of establishing connection between the first bluetooth device and the third bluetooth device are not limited. The connection between the first bluetooth device and the second bluetooth device, and the connection between the first bluetooth device and the third bluetooth device may be referred to the description in S601 in the above embodiment, which is not repeated here.
S1102, the first bluetooth device sends a charging status message to the second bluetooth device.
Incidentally, the description of S1102 may refer to the description of S602 in the above embodiment, and will not be repeated here.
In some embodiments, the first bluetooth device may send power information of the first bluetooth device to the second bluetooth device. Alternatively, the charge status message may include the first bluetooth and the power information of the device.
In some embodiments, the second bluetooth device may obtain power information of the second bluetooth device and/or power information of the third bluetooth device.
In some embodiments, the second bluetooth device may send the power information of the second bluetooth device and/or the power information of the third bluetooth device to the first bluetooth device.
And 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 electric quantity information and/or the charging state message.
Note that, for the specific description of S1103, reference may be made to the description of S606, which is not repeated here.
In some embodiments, the first bluetooth device may determine whether to wirelessly charge the second bluetooth device based on 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 specifically to the description of the above embodiments, and details are not repeated here.
In some embodiments, if the second bluetooth device determines to send a 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.
S1104, the second bluetooth device sends a wireless charging start message to the first bluetooth device.
It should be noted that, for the description of S1104, reference may be made to the description of S607, which is not repeated here.
S1105, the first bluetooth device initiates a wireless charging to the second bluetooth device.
Note that, for the description of S1105, reference may be made to the description of S608, which is not repeated here.
In some embodiments, after the first bluetooth device initiates the 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 wirelessly charge the second bluetooth device and/or the third bluetooth device may refer to the description in S609, which is not repeated herein.
In some embodiments, if the second bluetooth device determines that the second bluetooth device is wirelessly charged, the second bluetooth device performs S1106. If the second Bluetooth device determines that the third Bluetooth device is wirelessly charged, 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.
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 descriptions of S1106-S1108, reference may be made to the descriptions of S610-S612, which are not repeated here.
S1109, the second bluetooth device transmits a reverse charging stop message to the first bluetooth device.
Note that, for the description of S1109, reference may be made to the description of S613, which is not repeated here.
It can be understood that the second bluetooth device indicates whether the first bluetooth device is the second bluetooth device and/or the third bluetooth device to be charged wirelessly according to the charging state of the first bluetooth device, the electric quantity information of the second bluetooth device, and the like, so that the electric quantity information of each bluetooth device can be guaranteed to be in an optimal state. Thus, the use experience of the user can be improved.
The above description has been made mainly from the point of view of the electronic device. It will be appreciated that the electronic device, in order to achieve the above-described functions, includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the various illustrative steps of a method of wireless charging 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 implemented as hardware or electronic device software driven hardware 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.
The embodiment of the present application may divide the functional modules or functional units of the wireless charging device according to the above method example, for example, each functional module or functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated modules may be implemented in hardware, or in software functional modules or functional units. The division of the modules or units in the embodiments of the present application is merely a logic function division, and other division manners may be implemented in practice.
Other embodiments of the present application provide an electronic device (e.g., 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 also include a camera. Alternatively, the electronic device may be externally connected to a camera. The memory is for storing computer program code, the computer program code comprising computer instructions. When the processor executes the computer instructions, the electronic device may perform the 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.
Embodiments of the present application also provide a chip system, as shown in fig. 12, that 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, interface circuit 1202 may be used to receive signals from other devices (e.g., a memory of an electronic apparatus). For another example, interface circuit 1202 may be used to send signals to other devices (e.g., processor 1201). The interface circuit 1202 may, for example, read instructions stored in 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 of the embodiments described above. Of course, the chip system may also include other discrete devices, which are not specifically limited in this embodiment of the present application.
Embodiments of the present application also provide a computer-readable storage medium that includes computer instructions that, when executed on an electronic device (e.g., the electronic device 200 shown in fig. 4B), cause the electronic device to perform the functions or steps performed by the mobile phone in the above-described method embodiments.
The present application also provides a computer program product, which when run on a computer, causes the computer to perform the functions or steps performed by the mobile phone in the above-mentioned method embodiments.
It will be apparent to those skilled in the art from this description that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a specific 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 in 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 (10)

1. A wireless keyboard, the wireless keyboard comprising: the wireless charging control system comprises a wireless communication module, a keyboard battery, a first wireless charging control module and a second wireless charging control module, wherein the first wireless charging control module is connected with the keyboard battery through a first passage, and the first wireless charging control module is connected with the second wireless charging control module through a second passage; the wireless charging method comprises the following steps:
the wireless communication module establishes Bluetooth connection with the electronic equipment, and receives a charging state message sent by the electronic equipment, wherein the charging state message is used for indicating whether the electronic equipment is being charged or not;
the wireless keyboard determines the residual electric quantity information of the keyboard battery;
the wireless communication module establishes Bluetooth connection with a touch pen and receives residual electric quantity information from the touch pen;
The wireless keyboard determines that the charging state message indicates that the electronic equipment is being charged, and sends a reverse charging start message to the electronic equipment, wherein the reverse charging start message is used for indicating the electronic equipment to charge the wireless keyboard reversely and wirelessly;
the wireless keyboard determines that the charging state message indicates that the electronic equipment is not charged, and the remaining capacity of the wireless keyboard is smaller than a first preset keyboard electric quantity threshold value and/or the remaining capacity of the touch pen is smaller than a first preset touch pen electric quantity threshold value, and then a reverse charging starting message is sent to the electronic equipment;
the first wireless charging control module receives wireless charging current from the electronic equipment;
the first wireless charging control module determines a current distribution proportion according to the residual electric quantity of the wireless keyboard and the residual electric quantity of the touch pen;
if the residual electric quantity of the wireless keyboard is lower, the residual electric quantity of the touch pen is higher, and the residual electric quantity of the wireless keyboard is smaller than a second preset keyboard electric quantity threshold value, the first wireless charging control module takes all received wireless charging currents from the electronic equipment as a first path of current, and inputs the first path of current to the keyboard battery through the first path;
After the first wireless charging control module receives the wireless charging current, confirming that the residual electric quantity of the wireless keyboard is larger than a third preset keyboard electric quantity threshold value, and stopping charging the wireless keyboard;
if the residual electric quantity of the wireless keyboard is higher and the residual electric quantity of the touch pen is smaller than a second preset touch pen electric quantity threshold value, the first wireless charging control module takes all received wireless charging currents from the electronic equipment as a second path of current, the second path of current is input to the second wireless charging control module through the second path, and the second wireless charging control module inputs the second path of current to the touch pen to charge the touch pen;
after the first wireless charging control module receives the wireless charging current, confirming that the residual electric quantity of the touch pen is larger than a second preset touch pen electric quantity threshold value, and stopping charging the touch pen by the first wireless charging control module;
if the residual electric quantity of the wireless keyboard is larger than the second preset keyboard electric quantity threshold value and the residual electric quantity of the touch pen is smaller than the second preset touch pen electric quantity threshold value, the first wireless charging control module divides the wireless charging current into the first path of current and the second path of current according to the current distribution proportion; the first wireless charging control module inputs the first current to the keyboard battery through the first passage; while charging the keyboard battery, the first wireless charging control module inputs the second path current to the second wireless charging control module through the second path, and the second wireless charging control module inputs the second path current to the stylus to charge the stylus;
After the first wireless charging control module receives the wireless charging current, confirming that the residual electric quantity of the wireless keyboard is larger than the third preset keyboard electric quantity threshold value and the residual electric quantity of the touch pen is smaller than the second preset touch pen electric quantity threshold value, stopping charging the wireless keyboard by the first wireless charging control module, and taking all the received wireless charging current from the electronic equipment as the second path of current; or,
after the first wireless charging control module receives the wireless charging current, confirming that the residual electric quantity of the touch pen is larger than the second preset touch pen electric quantity threshold value and the residual electric quantity of the wireless keyboard is smaller than the third preset keyboard electric quantity threshold value, stopping charging the touch pen by the first wireless charging control module, and taking all the received wireless charging current from the electronic equipment as the first path of current.
2. The wireless keyboard of claim 1, wherein the first wireless charging control module takes as the first path of current all wireless charging current received from the electronic device, comprising:
When the first wireless charging control module receives that all wireless charging currents from the electronic equipment are larger than the first current, the first current is a first maximum current, the second current is a current except the first maximum current in all wireless charging currents, and the first maximum current is a maximum current which can be received by the wireless keyboard;
the first wireless charging control module takes all wireless charging current received from the electronic device as the second path of current, and the method comprises the following steps:
and under the condition that the first wireless charging control module receives that all wireless charging currents from the electronic equipment are larger than the second path of current, the second path of current is a second maximum current, the first path of current is a current except the second maximum current in all wireless charging currents, and the second maximum current is a maximum current which can be received by the touch control pen.
3. The wireless keyboard of claim 1 or 2, wherein the method further comprises:
and the wireless communication module sends a reverse charging stop message to the electronic equipment, wherein the reverse charging stop message is used for indicating the electronic equipment to stop reverse wireless charging.
4. A method of wireless charging, for application to an electronic device, the method comprising:
the electronic equipment is adsorbed on a wireless keyboard, and the touch pen is adsorbed on the wireless keyboard;
when the electronic equipment is in a charging state, the electronic equipment outputs wireless charging current to the wireless keyboard;
when the electronic equipment is in an uncharged state, and the residual electric quantity information of the wireless keyboard is smaller than a first preset keyboard electric quantity threshold value and the residual electric quantity information of the touch pen is smaller than a first preset touch pen electric quantity threshold value, the electronic equipment outputs wireless charging current to the wireless keyboard;
wherein, wireless keyboard includes: the wireless charging control system comprises a wireless communication module, a keyboard battery, a first wireless charging control module and a second wireless charging control module, wherein the first wireless charging control module is connected with the keyboard battery through a first passage, and the first wireless charging control module is connected with the second wireless charging control module through a second passage;
the wireless communication module receives the residual electric quantity information from the touch pen;
if the first wireless charging control module determines that the residual electric quantity of the wireless keyboard is lower, the residual electric quantity of the touch pen is higher, and the residual electric quantity of the wireless keyboard is smaller than a second preset keyboard electric quantity threshold value, the first wireless charging control module takes all the received wireless charging currents from the electronic equipment as a first path of current, and inputs the first path of current to the keyboard battery through the first path; after the first wireless charging control module receives the wireless charging current, confirming that the residual electric quantity of the wireless keyboard is larger than a third preset keyboard electric quantity threshold value, and stopping charging the wireless keyboard;
If the first wireless charging control module determines that the residual electric quantity of the wireless keyboard is higher, and the residual electric quantity of the touch pen is smaller than a second preset touch pen electric quantity threshold value, the first wireless charging control module takes all received wireless charging currents from the electronic equipment as a second path of current, and inputs the second path of current to the second wireless charging control module through the second path, and the second wireless charging control module inputs the second path of current to the touch pen to charge the touch pen; after the first wireless charging control module receives the wireless charging current, confirming that the residual electric quantity of the touch pen is larger than a second preset touch pen electric quantity threshold value, and stopping charging the touch pen by the first wireless charging control module;
the first wireless charging control module determines a current distribution proportion according to the residual electric quantity of the wireless keyboard and the residual electric quantity of the touch pen;
if the first wireless charging control module determines that the residual electric quantity of the wireless keyboard is larger than the second preset keyboard electric quantity threshold value and the residual electric quantity of the touch pen is smaller than the second preset touch pen electric quantity threshold value, the first wireless charging control module divides the wireless charging current into the first path of current and the second path of current according to the current distribution proportion; the first wireless charging control module inputs the first current to the keyboard battery through the first passage; while charging the keyboard battery, the first wireless charging control module inputs the second path current to the second wireless charging control module through the second path, and the second wireless charging control module inputs the second path current to the stylus to charge the stylus; after the first wireless charging control module receives the wireless charging current, the first wireless charging control module confirms that the residual electric quantity of the wireless keyboard is larger than the third preset keyboard electric quantity threshold value, and the residual electric quantity of the touch pen is smaller than the second preset touch pen electric quantity threshold value, the first wireless charging control module stops charging the wireless keyboard, and takes all the received wireless charging current from the electronic equipment as the second path of current; or after the first wireless charging control module receives the wireless charging current, the first wireless charging control module confirms that the residual electric quantity of the touch pen is larger than the second preset touch pen electric quantity threshold value and the residual electric quantity of the wireless keyboard is smaller than the third preset keyboard electric quantity threshold value, and the first wireless charging control module stops charging the touch pen and takes all the received wireless charging current from the electronic equipment as the first path of current.
5. The method of claim 4, wherein prior to the electronic device outputting a wireless charging current to 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 charged wirelessly; and/or the number of the groups of groups,
the electronic equipment displays a second prompt message, wherein the second prompt message is used for indicating whether the stylus is charged in a wireless mode;
the electronic equipment receives a first operation, wherein the first operation is used for triggering the electronic equipment to carry out reverse wireless charging;
the electronic device outputting a wireless charging current to the wireless keyboard, comprising:
in response to the first operation, the electronic device outputs a wireless charging current to the wireless keyboard.
6. The method of claim 4 or 5, wherein a first type of application and a second type of application are stored in the electronic device, the first type of application being used for indicating an application program that does not operate with the stylus and the wireless keyboard, the second type of application being used for indicating an application program that requires the stylus and the wireless keyboard to operate;
Before the electronic device outputs the wireless charging current to the wireless keyboard, the method further comprises:
the electronic equipment acquires a currently running application program;
the electronic device outputting a wireless charging current to the wireless keyboard, comprising:
if the currently running application program is the second type of application, the electronic equipment outputs wireless charging current to the wireless keyboard;
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.
7. The method of claim 4 or 5, 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;
and the electronic equipment stops outputting the wireless charging current.
8. The method according to claim 4 or 5, characterized in that the method further comprises:
the electronic equipment displays a third prompt message, wherein the third prompt message is used for prompting and adjusting the charging position of the touch pen, and the current received by the touch pen at the charging position after adjustment is greater than the current received by the touch pen at the charging position before adjustment.
9. An electronic device, the electronic device comprising: a memory, a display screen, and one or more processors; the memory, the display screen, and the processor are coupled, the memory is for storing computer program code, the 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 4-8.
10. A computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 4-8.
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 CN114465366A (en) 2022-05-10
CN114465366B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115033116B (en) * 2022-08-10 2023-07-25 荣耀终端有限公司 Keyboard, display system and control method of display equipment
CN116634309B (en) * 2023-07-25 2024-01-12 深圳雷柏科技股份有限公司 Method, device, equipment and system for supervising mouse, keyboard and earphone
CN116669229B (en) * 2023-07-25 2023-11-24 深圳雷柏科技股份有限公司 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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102177796B1 (en) * 2014-01-06 2020-11-11 삼성전자주식회사 Electronic device charging method and apparatus
KR20200101174A (en) * 2019-02-19 2020-08-27 삼성전자주식회사 Method to control charging of multiple batteries and electronic device applying the method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Also Published As

Publication number Publication date
CN114465366A (en) 2022-05-10

Similar Documents

Publication Publication Date Title
CN113253856B (en) Stylus and electronic device assembly
CN114465366B (en) Wireless charging method and electronic equipment
US9461498B2 (en) Method and system for wireless charging in a portable terminal
CN113490158B (en) Bluetooth device pairing connection method, electronic device, Bluetooth device and terminal system
US20240168572A1 (en) Stylus and electronic device assembly
EP4274317A1 (en) Method for reducing power consumption of device, and electronic device
CN114461129A (en) Handwriting drawing method and device, electronic equipment and readable storage medium
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