CN113890150B - Earphone charging method and device - Google Patents
Earphone charging method and device Download PDFInfo
- Publication number
- CN113890150B CN113890150B CN202111166205.3A CN202111166205A CN113890150B CN 113890150 B CN113890150 B CN 113890150B CN 202111166205 A CN202111166205 A CN 202111166205A CN 113890150 B CN113890150 B CN 113890150B
- Authority
- CN
- China
- Prior art keywords
- battery
- battery voltage
- charging
- equipment
- charge
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 60
- 238000007599 discharging Methods 0.000 claims abstract description 19
- 238000013461 design Methods 0.000 description 24
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 8
- 230000008859 change Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 238000003780 insertion Methods 0.000 description 4
- 230000037431 insertion Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 239000000428 dust Substances 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000002265 prevention Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000000725 suspension Substances 0.000 description 1
- 210000003454 tympanic membrane Anatomy 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0029—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01M—PROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
- H01M10/00—Secondary cells; Manufacture thereof
- H01M10/42—Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
- H01M10/44—Methods for charging or discharging
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0042—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by the mechanical construction
- H02J7/0045—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by the mechanical construction concerning the insertion or the connection of the batteries
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0047—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0047—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
- H02J7/0048—Detection of remaining charge capacity or state of charge [SOC]
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0068—Battery or charger load switching, e.g. concurrent charging and load supply
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/007—Regulation of charging or discharging current or voltage
- H02J7/00712—Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/007—Regulation of charging or discharging current or voltage
- H02J7/00712—Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
- H02J7/00714—Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters in response to battery charging or discharging current
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/007—Regulation of charging or discharging current or voltage
- H02J7/00712—Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters
- H02J7/007182—Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters in response to battery voltage
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1025—Accumulators or arrangements for charging
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/10—Energy storage using batteries
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Manufacturing & Machinery (AREA)
- Chemical & Material Sciences (AREA)
- Chemical Kinetics & Catalysis (AREA)
- Electrochemistry (AREA)
- General Chemical & Material Sciences (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The embodiment of the application provides a method and a device for charging an earphone, wherein the method comprises the following steps: and when any discharging contact is detected to be contacted with the charging contact of the second device, acquiring the battery voltage of the second device and the battery voltage of the first device. The method includes the steps of obtaining a charging state of a first device, wherein the charging state of the first device comprises charging and uncharged state. And if the charging state of the first device is uncharged and the battery voltage of the second device is smaller than the battery voltage of the first device, controlling the battery of the first device to charge the battery of the second device. Through setting up the contact that discharges in first equipment, afterwards through the contact that discharges of second equipment and first equipment contact to make the battery that realizes first equipment charge to the battery of second equipment, consequently first equipment realizes the charge to second equipment, thereby can effectively promote the use of earphone and the convenience of carrying.
Description
Technical Field
The embodiment of the application relates to an automatic control technology, in particular to a method and a device for charging an earphone.
Background
With the continuous development of related technologies of electronic products, the use of true wireless stereo (True Wireless Stereo, TWS) headphones is also becoming more and more widespread.
The TWS earphone is an earphone for playing sound by using a bluetooth technology, and in the prior art, a special charging bin is usually arranged for the TWS earphone when the TWS earphone is charged, and the TWS earphone is placed in the charging bin, so that the TWS earphone can be charged.
However, the special setting of the charging bin to realize charging of the TWS headset may lead to lack of convenience in use and carrying of the headset.
Disclosure of Invention
The embodiment of the application provides a method and a device for charging an earphone, so as to solve the problem of lack of convenience in use and carrying of the earphone.
In a first aspect, an embodiment of the present application provides a method for charging an earphone, where the method is applied to a first device, where the first device includes a battery, and at least one discharging contact is disposed in the first device, and the method includes:
when any one of the discharging contacts is detected to contact with a charging contact of second equipment, acquiring the battery voltage of the second equipment and the battery voltage of the first equipment;
acquiring the charging state of the first equipment, wherein the charging state of the first equipment comprises charging and uncharged state;
and if the charging state of the first device is uncharged and the battery voltage of the second device is smaller than the battery voltage of the first device, controlling the battery of the first device to charge the battery of the second device.
In one possible design, after the controlling the battery of the first device to charge the battery of the second device, the method further includes:
if the state of charge of the first device is detected to be changed from uncharged to charged, controlling the battery of the first device to stop charging the battery of the second device;
and displaying first prompt information on a screen of the first equipment, wherein the first prompt information is used for prompting the second equipment to stop charging.
In one possible design, after the controlling the battery of the first device to charge the battery of the second device, the method further includes:
if the battery voltage of the second device is detected to be greater than or equal to the battery voltage of the first device, controlling the battery of the first device to suspend charging of the battery of the second device;
after a first preset time period, acquiring the battery voltage of the second equipment and the battery voltage of the first equipment;
if the battery voltage of the second device is smaller than the battery voltage of the first device, the battery of the first device is controlled to continue to charge the battery of the second device; or,
And if the battery voltage of the second device is greater than or equal to the battery voltage of the first device, repeating the operation of acquiring the battery voltage of the second device and the battery voltage of the first device after a first preset time period until the battery voltage of the second device is determined to be less than the battery voltage of the first device or until the time period when the battery voltage of the second device is greater than or equal to the battery voltage of the first device exceeds a second preset time period.
In one possible design, if it is determined that the battery voltage of the second device is greater than or equal to the battery voltage of the first device for a period of time exceeding a second preset period of time, the method further includes:
controlling the battery of the first device to stop charging the battery of the second device;
and displaying second prompt information on a screen of the first device, wherein the second prompt information is used for prompting the second device to stop charging.
In one possible design, the method further comprises:
acquiring the battery power of the second device, and displaying the battery power of the second device on a screen of the first device;
if the battery electric quantity of the second equipment is determined to reach the preset battery electric quantity, controlling the battery of the first equipment to stop charging the second equipment;
And displaying third prompt information on a screen of the first equipment, wherein the third prompt information is used for indicating that the second equipment is charged.
In one possible design, the edge of the first device is provided with at least one opening in which the discharge contact is arranged.
In one possible design, the discharge contact of the first device and the charging contact of the second device are connected by magnetic attraction.
In one possible design, a removable rubber plug is provided in the aperture; alternatively, a movable spring piece is arranged in the opening.
In a second aspect, an embodiment of the present application provides an earphone charging apparatus applied to a first device, where the first device includes a battery, and at least one discharge contact is disposed in the first device, including:
a first acquisition module, configured to acquire a battery voltage of a second device and a battery voltage of the first device when any one of the discharge contacts is detected to contact a charging contact of the second device;
the second acquisition module is used for acquiring the charging state of the first equipment, wherein the charging state of the first equipment comprises charging and uncharged state;
And the control module is used for controlling the battery of the first equipment to charge the battery of the second equipment if the charging state of the first equipment is uncharged and the battery voltage of the second equipment is smaller than the battery voltage of the first equipment.
In one possible design, the control module is further configured to, after the controlling the battery of the first device to charge the battery of the second device:
if the state of charge of the first device is detected to be changed from uncharged to charged, controlling the battery of the first device to stop charging the battery of the second device;
and displaying first prompt information on a screen of the first equipment, wherein the first prompt information is used for prompting the second equipment to stop charging.
In one possible design, the control module is further configured to, after the controlling the battery of the first device to charge the battery of the second device:
if the battery voltage of the second device is detected to be greater than or equal to the battery voltage of the first device, controlling the battery of the first device to suspend charging of the battery of the second device;
after a first preset time period, acquiring the battery voltage of the second equipment and the battery voltage of the first equipment;
If the battery voltage of the second device is smaller than the battery voltage of the first device, the battery of the first device is controlled to continue to charge the battery of the second device; or,
and if the battery voltage of the second device is greater than or equal to the battery voltage of the first device, repeating the operation of acquiring the battery voltage of the second device and the battery voltage of the first device after a first preset time period until the battery voltage of the second device is determined to be less than the battery voltage of the first device or until the time period when the battery voltage of the second device is greater than or equal to the battery voltage of the first device exceeds a second preset time period.
In one possible design, if it is determined that the battery voltage of the second device is greater than or equal to the battery voltage of the first device for a period of time exceeding a second preset period of time, the control module is further configured to:
controlling the battery of the first device to stop charging the battery of the second device;
and displaying second prompt information on a screen of the first device, wherein the second prompt information is used for prompting the second device to stop charging.
In one possible design, the control module is further configured to:
Acquiring the battery power of the second device, and displaying the battery power of the second device on a screen of the first device;
if the battery electric quantity of the second equipment is determined to reach the preset battery electric quantity, controlling the battery of the first equipment to stop charging the second equipment;
and displaying third prompt information on a screen of the first equipment, wherein the third prompt information is used for indicating that the second equipment is charged.
In one possible design, the edge of the first device is provided with at least one opening in which the discharge contact is arranged.
In one possible design, the discharge contact of the first device and the charging contact of the second device are connected by magnetic attraction.
In one possible design, a removable rubber plug is provided in the aperture; alternatively, a movable spring piece is arranged in the opening.
In a third aspect, an embodiment of the present application provides an earphone charging apparatus, including:
a memory for storing a program;
a processor for executing the program stored by the memory, the processor being adapted to perform the method of the first aspect and any of the various possible designs of the first aspect as described above when the program is executed.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the method of the first aspect above and any of the various possible designs of the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the method according to the first aspect and any of the various possible designs of the first aspect.
The embodiment of the application provides a method and a device for charging an earphone, wherein the method comprises the following steps: and when any discharging contact is detected to be contacted with the charging contact of the second device, acquiring the battery voltage of the second device and the battery voltage of the first device. The method includes the steps of obtaining a charging state of a first device, wherein the charging state of the first device comprises charging and uncharged state. And if the charging state of the first device is uncharged and the battery voltage of the second device is smaller than the battery voltage of the first device, controlling the battery of the first device to charge the battery of the second device. Through setting up the contact that discharges in first equipment, afterwards through the contact that discharges of second equipment and first equipment to make when the charge state of first equipment is uncharged, the battery voltage of second equipment is less than the battery voltage of first equipment simultaneously, realize that the battery of first equipment charges to the battery of second equipment, the security of battery when the above-mentioned introduction charging process can effectively guarantee the second equipment charges simultaneously, through realizing the charging to the second equipment based on first equipment, thereby can effectively promote the use of earphone and the convenience of carrying.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief description will be given below of the drawings that are needed in the embodiments or the prior art descriptions, it being obvious that the drawings in the following description are some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort to a person skilled in the art.
Fig. 1 is a schematic implementation diagram of a charging bin provided in an embodiment of the present application;
fig. 2 is a flowchart of a headset charging method provided in an embodiment of the present application;
fig. 3 is a schematic diagram of implementation of determining a charging state according to an embodiment of the present application;
fig. 4 is a second flowchart of a headset charging method according to an embodiment of the present application;
fig. 5 is a schematic diagram of a charging module according to an embodiment of the present application;
fig. 6 is a schematic front view of a device for charging a second device by a first device according to an embodiment of the present application;
fig. 7 is a schematic diagram of a back side of a device for charging a second device by a first device according to an embodiment of the present application;
fig. 8 is a schematic front view of a device when the first device provided in the embodiment of the present application does not provide charging;
fig. 9 is a schematic back view of a device when the first device provided in the embodiment of the present application does not provide charging;
Fig. 10 is a schematic side view of an apparatus for opening a hole of a first apparatus according to an embodiment of the present application;
fig. 11 is a schematic diagram of a left side of a first device according to an embodiment of the present application;
fig. 12 is a schematic view of the right side of the first device provided in the embodiment of the present application;
fig. 13 is a schematic view of an underside of a first device according to an embodiment of the present disclosure;
FIG. 14 is a schematic view of an embodiment of the rubber stopper according to the present application without insertion into the opening;
FIG. 15 is a schematic view of an implementation of a rubber stopper insertion aperture provided in an embodiment of the present application;
fig. 16 is a schematic view of an implementation of a spring plate provided in an embodiment of the present application without bouncing;
fig. 17 is a schematic diagram illustrating an implementation of spring leaf spring opening according to an embodiment of the present application;
fig. 18 is a schematic structural diagram of an earphone charging device provided in an embodiment of the present application;
fig. 19 is a schematic hardware structure of an earphone charging device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
For better understanding of the technical solutions of the present application, the related art related to the present application is described in further detail below.
In the current electronic product field, as the first devices such as mobile phones and flat panels are required to be thinner, and meanwhile, the waterproof performance of the first devices is required to be considered, 3.5mm jack type headphones or type-C headphones are gradually eliminated, and accordingly, the application of TWS headphones is becoming wider and wider.
The TWS earphone is a true wireless stereo earphone which plays sound by utilizing the Bluetooth technology, so that wireless transmission by utilizing Bluetooth can be realized to replace wired transmission.
It can be understood that the TWS earphone needs to be charged, and in the prior art, when the TWS earphone is charged, a special charging bin is usually provided for the TWS earphone, for example, as can be understood with reference to fig. 1, fig. 1 is a schematic implementation diagram of the charging bin provided in the embodiment of the present application.
As shown in fig. 1, the earphone can be placed in the charging bin for charging, and the charging bin itself needs to be charged, so that the earphone can be charged when the charging bin stores electric quantity.
However, at present, in the implementation mode of specially setting the charging bin to realize charging the TWS earphone, the TWS earphone is easy to lose, the charging bin is bulky and is not easy to carry, and because the electric energy stored in the earphone charging bin is less, a series of problems such as limited charging times of the TWS earphone are caused.
Aiming at the problems in the prior art, the application provides the following technical conception: the mobile phone or the tablet is the first device which can be carried by a user, and the electric quantity which can be stored by the mobile phone or the tablet is more, so that if the function of the charging module of the charging bin is placed on the mobile phone or the tablet, the charging box can be omitted, and the TWS earphone is charged anytime and anywhere based on the mobile phone or the tablet, so that the problem that the charging bin is bulky and is not easy to carry is effectively solved, and meanwhile, the problem that the number of times of charging of the TWS earphone is limited can be effectively solved because the electric quantity which can be stored by the mobile phone or the tablet is more.
On the basis of the foregoing, the following describes in detail the earphone charging method provided in the embodiment of the present application, and first, it should be noted that each embodiment in the present application may be applied to a first device, where the first device may be, for example, a mobile phone, a tablet, or a portable terminal device, where the specific implementation manner of the first device is not limited, and any portable terminal device may be used as the first device in the embodiment, for example, the first device may also be a smart watch, or the like.
In this embodiment, a battery is included in the first device for storing electrical energy for providing the first device and/or the earphone with corresponding electrical energy, and at least one discharge contact is provided in the first device.
Next, first, description is made on a headset charging method provided in the present application with reference to fig. 2, and fig. 2 is a flowchart of the headset charging method provided in the embodiment of the present application.
As shown in fig. 2, the method includes:
and S201, when any discharging contact is detected to be contacted with a charging contact of the second device, acquiring the battery voltage of the second device and the battery voltage of the first device.
In this embodiment, at least one discharging contact is provided in the first device, where the discharging contact is configured to perform a corresponding discharging operation when the discharging contact is contacted with the charging contact. Thus, when the first device detects that any one of the discharging contacts touches a charging contact of the second device, which may be for example a TWS headset, the battery voltage of the second device as well as the battery voltage of the first device may be obtained.
It will be appreciated that a discharge contact is provided in the first device and a charging contact is provided in the second device, when the discharge contact and the charging contact are in contact, for example, the second device may be ready for a charging operation. It will also be appreciated that the battery is included in the first device and likewise in the second device, and that when the first device charges the second device, and in particular the battery of the first device discharges to charge the battery of the second device.
In one possible implementation, for example, a corresponding opening may be provided in the first device, the discharge contact being provided inside the opening, and when the second device (TWS headset) is being charged, for example, a headset may be inserted into the opening so that the charge contact contacts the discharge contact. Or in an alternative implementation, the discharging contact may be provided on the housing of the first device, after which the first device and the second device may remain connected, for example by magnetic attraction or the like, so that the discharging contact and the charging contact are brought into contact for charging.
In the actual implementation process, the specific implementation manner of the setting position of the discharging contact in the first device and the setting position of the charging contact in the second device may be selected and set according to actual requirements, which is not limited in this embodiment.
In this embodiment, before the second device is charged, the battery voltage of the second device and the battery voltage of the first device need to be obtained, and it is understood that, in general, the battery voltage of the mobile phone or the tablet is relatively large, however, in general, the battery voltage of the TWS earphone is relatively small, so that in order to avoid overdischarge of the battery of the TWS earphone, the safety of the TWS earphone is ensured, and therefore, the battery voltage of the second device and the battery voltage of the first device need to be obtained.
S202, acquiring the charging state of the first device, wherein the charging state of the first device comprises charging and uncharged state.
After the battery voltage is acquired, for example, a current state of charge of the first device may be acquired, wherein the state of charge of the first device may include charging as well as uncharged.
And S203, if the charging state of the first device is uncharged and the battery voltage of the second device is smaller than the battery voltage of the first device, controlling the battery of the first device to charge the battery of the second device.
It can be understood that when the first device is in a charging state, the battery of the second device may be damaged due to the excessive voltage, so that the battery of the first device needs to be controlled to charge the battery of the second device when the charging state of the first device is not charged and when the battery voltage of the second device is less than the battery voltage of the first device is ensured, so as to effectively ensure the safety of charging the battery of the second device.
Meanwhile, when the battery of the first device is controlled to charge the battery of the second device, the battery of the first device is controlled to discharge to the battery of the second device through the contact discharging contact and the charging contact, so that the battery of the second device is charged.
The earphone charging method provided by the embodiment of the application comprises the following steps: and when any discharging contact is detected to be contacted with the charging contact of the second device, acquiring the battery voltage of the second device and the battery voltage of the first device. The method includes the steps of obtaining a charging state of a first device, wherein the charging state of the first device comprises charging and uncharged state. And if the charging state of the first device is uncharged and the battery voltage of the second device is smaller than the battery voltage of the first device, controlling the battery of the first device to charge the battery of the second device. Through setting up the contact that discharges in first equipment, afterwards through the contact that discharges of second equipment and first equipment to make when the charge state of first equipment is uncharged, the battery voltage of second equipment is less than the battery voltage of first equipment simultaneously, realize that the battery of first equipment charges to the battery of second equipment, the security of battery when the above-mentioned introduction charging process can effectively guarantee the second equipment charges simultaneously, through realizing the charging to the second equipment based on first equipment, thereby can effectively promote the use of earphone and the convenience of carrying.
On the basis of the above embodiments, after the battery of the first device is controlled to charge the battery of the second device, it is understood that the charging state of the first device may change, for example, if it is detected that the charging state of the first device is changed from uncharged to charged, in order to protect the battery of the second device, for example, the battery of the first device may be controlled to stop charging the battery of the second device.
And a first prompt message may be displayed on a screen of the first device, wherein the first prompt message is used to prompt that charging to the second device is stopped currently because the first device is charged.
And then, if the state of charge of the first device is detected to be changed from charging to non-charging, the battery voltage of the first device and the battery voltage of the second device can be obtained again, and when the battery voltage of the second device is smaller than the battery voltage of the first device, the battery of the first device is controlled to resume charging the battery of the second device.
By controlling the battery of the first device to stop charging the battery of the second device when detecting that the charging state of the first device is changed into charging after controlling the battery of the first device to charge the battery of the second device, the safety of the battery of the second device can be effectively ensured. And when the battery of the first device is controlled to stop charging the battery of the second device, displaying first prompt information on a screen of the first device, so that a user can quickly determine the change of the current charging state of the second device and the reason of the change.
And on the basis of the above embodiments, it can be understood that the battery voltage of the first device and the battery voltage of the second device are constantly changing, so that the battery voltage of the first device and the battery voltage of the second device can be continuously obtained after the battery of the second device is charged in the battery box of the first device.
For example, it may be understood with reference to fig. 3, where fig. 3 is a schematic implementation diagram of determining a charging state according to an embodiment of the present application.
If the battery voltage of the second device is detected to be greater than or equal to the battery voltage of the first device, the battery of the first device may be controlled to suspend charging of the battery of the second device, for example, to protect the battery of the second device.
And because the battery voltage is continuously changing, the battery voltage of the second device and the battery voltage of the first device can be acquired again after the first device pauses charging for a first preset time period, and then whether the battery voltage of the second device is smaller than the battery voltage of the first device can be judged continuously.
It can be understood that the longest detection duration is also provided in this embodiment, that is, the second preset duration shown in fig. 3, so that before the battery voltage of the second device and the battery voltage of the first device are acquired again, it may also be determined, for example, whether the duration that the battery voltage of the second device is greater than or equal to the battery voltage of the first device exceeds the second preset duration.
If the second preset time period is exceeded, it may be considered that the battery voltage of the second device has exceeded the battery voltage of the first device for a long time, so that the battery of the first device may be controlled to stop charging the battery of the second device, and a second prompt message may also be displayed on the screen of the first device, where the second prompt message is used to prompt the second device to stop charging because the battery voltage of the second device is greater than or equal to the battery voltage of the first device for a long time. Alternatively, if the second preset time period is not exceeded, an operation of acquiring the battery voltage of the second device and the battery voltage of the first device again may be performed.
If the battery voltage of the second device is detected to be smaller than the battery voltage of the first device, the battery of the first device can be controlled to continuously charge the battery of the second device.
Or if the battery voltage of the second device is still detected to be smaller than the battery voltage of the first device at this time, for example, the operation of acquiring the battery voltage of the second device and the battery voltage of the first device after the first preset time period may be repeatedly performed until it is determined that the battery voltage of the second device is smaller than the battery voltage of the first device, or until the time period when the battery voltage of the second device is greater than or equal to the battery voltage of the first device exceeds the second preset time period.
By controlling the first device to suspend charging the second device when the battery voltage of the second device is detected to be greater than or equal to the battery voltage of the first device after controlling the battery of the first device to charge the battery of the second device, effective protection of the battery of the second device is achieved. And after the first preset duration of the suspension of the charging, judging the relationship between the battery voltage of the second device and the battery voltage of the first device again, so that the battery of the first device can be timely restored to charge the battery of the second device when the battery voltage of the second device is smaller than the battery voltage of the first device, and the effective control of the charging of the second device can be considered while the safety of the battery of the second device is ensured. And when the battery voltage of the second device is determined to be greater than or equal to the battery voltage of the first device for more than a second preset time period, timely controlling the first device to stop charging the second device and displaying corresponding prompt information, so that the safety of the battery of the second device can be effectively ensured, and a user can quickly determine the change of the current charging state of the second device and the reason of the change.
Based on the foregoing embodiments, the embodiments of the present application may further perform corresponding display on the electric quantity of the second device and perform corresponding control after full charge, for example, may be understood with reference to fig. 4, and fig. 4 is a flowchart two of the earphone charging method provided in the embodiments of the present application.
As shown in fig. 4, the method includes:
s401, acquiring the battery power of the second device, and displaying the battery power of the second device on a screen of the first device.
The first device may acquire the battery power of the second device in real time or in a fixed time, and display the battery power of the second device on the screen of the first device, where a specific display mode may be selected according to actual requirements, which is not limited in this embodiment.
And S402, if the battery power of the second device is determined to reach the preset battery power, controlling the battery of the first device to stop charging the second device.
After the obtained battery power, it may also be determined whether the battery power of the second device reaches a preset battery power, where the preset battery power may be, for example, 100%, that is, whether the battery charging of the current second device is completed or whether the preset battery power may be 95%, which is not limited by the specific implementation manner of the preset battery power in this embodiment.
When it is determined that the battery level of the second device reaches the preset battery level, it may be determined that the battery of the second device has been charged, and thus the battery of the first device may be controlled to stop charging the second device.
Or if the battery power of the second device is determined not to reach the preset battery power, it may be determined that the battery charging of the second device is not complete, so that the battery power of the second device may be continuously obtained and then judged until the battery power of the second device reaches the preset battery power.
S403, displaying third prompt information on a screen of the first device, wherein the third prompt information is used for indicating that the second device is charged.
After the battery power of the second device reaches the preset battery power, the battery of the first device is controlled to stop charging the second device, and third prompt information can be displayed on the screen of the first device, wherein the third prompt information is used for indicating that the second device is charged, and a specific display mode of the third prompt information can be selected according to actual requirements.
The earphone battery charging method provided by the embodiment of the application comprises the following steps: and acquiring the battery electric quantity of the second device, and displaying the battery electric quantity of the second device on a screen of the first device. And if the battery power of the second device is determined to reach the preset battery power, controlling the battery of the first device to stop charging the second device. And displaying third prompt information on a screen of the first device, wherein the third prompt information is used for indicating that the second device is charged. The battery electric quantity of the second equipment is obtained and displayed, so that a user can quickly and effectively determine the current charging state of the second equipment. And when the battery electric quantity of the second device is determined to reach the preset battery electric quantity, controlling the battery of the first device to stop charging the second device so as to rapidly and effectively determine the charging completion state of the second device, and enabling a user to rapidly and effectively determine the charging completion of the second device by displaying the third prompt information.
And aiming at the various prompt messages, in one possible implementation manner, corresponding charging indicator lamps can be further arranged on the second equipment or the first equipment, and the current charging state of the second equipment is indicated by setting different colors of the charging indicator lamps corresponding to the various prompt messages.
On the basis of the above-described embodiments, a specific control procedure of charging the first device and the second device will be described below with reference to fig. 5, and fig. 5 is a schematic diagram of a charging module provided in an embodiment of the present application.
The following description will take the example that the first device is a mobile phone, and the second device is a TWS headset, referring to fig. 5:
1. the TWS headset is plugged in, if the battery of the TWS headset is not overdriven, VBAT_TWS is voltage and an interrupt may be generated to the power management unit (power management unit, PMU), i.e. INT in FIG. 5, indicating an interrupt signal, which may be triggered at a high level input.
2. After receiving the INT interrupt, the power management unit outputs a high level to the BOOST chip (BOOST) that BOOSTs the voltage VBAT of the mobile phone battery to 5V (i.e., vchg_tws_5v).
The BOOST chip may be a BOOST chip, which is a direct current-to-direct current (DC-DC) BOOST chip. Boost_en represents a control signal, typically outputting a 1.8V high level, which can be used as an enable (enable) signal for the BOOST chip. VBAT is the battery voltage of the mobile phone or tablet product itself, and the voltage range is generally: 3.4V-4.35V. Vchg_tws_5v is the TWS headset charge input voltage, typically 5V.
3. Since the enable signal of the CHARGE management chip (CHARGE IC) is active low, the CHARGE chip receives a 5V (i.e., vchg_tws_5v) and then automatically turns on the CHARGE function, the output of which is directly connected to vbat_tws.
Wherein vbat_tws is the battery voltage inside the TWS earphone, and the working range is generally: 2.4V-4.35V;
4. the charge management chip may also have, for example, a charge indicator lamp function (charge_led) and a charge current setting (by Rset) function.
And the meaning of the parameters in fig. 5, wherein VIN is the input signal, needs to be described; VOUT is the output signal; SW is a switch signal, and the boost function can be realized by matching with the inductor; wherein chg_en is a charge on signal, active low; wherein led_ctrl is charge indicator control; the charge_LED is a charging indicator lamp, and a resistor R1 is connected in series for limiting current to prevent the LED lamp from being burnt out, wherein the resistance value of the resistor R1 can be 1k ohm; and wherein i_charging is to adjust the charging current of the TWS earphone by adjusting the magnitude of the resistance value of the Rset resistor. And the resistance of resistor R2 in fig. 5 may be, for example, 10k ohms.
And in an alternative implementation, if the battery of the TWS earphone is overdischarged, for example, the vbat_tws voltage is 0V, and the interrupt cannot be triggered, a function may be performed on the UI interface of the mobile phone, for example: setting- > TWS earphone management- > over-discharge of battery and activation of the battery; for example, when the user clicks the option, the PMU actively pulls up boost_en, and the charging function is forced to be turned on, that is, when the charging condition is not satisfied, if the user still needs to charge, forced charging can be performed.
Based on the above description, it can be determined that the charging module of the TWS headset and the charging of the mobile phone are completely independent, so that the conflict of application scenes is avoided.
And the implementation manner of the discharge contact in the first device will be described in further detail below with reference to fig. 6 to 17, fig. 6 is a schematic front view of a device for charging the first device to the second device provided in this embodiment, fig. 7 is a schematic back view of a device for charging the first device to the second device provided in this embodiment, fig. 8 is a schematic front view of a device for charging the first device provided in this embodiment, fig. 9 is a schematic back view of a device for charging the first device provided in this embodiment, fig. 10 is a schematic side view of an opening of the first device provided in this embodiment, fig. 11 is a schematic left side view of a device for charging the first device provided in this embodiment, fig. 12 is a schematic right side view of a device for charging the first device provided in this embodiment, fig. 13 is a schematic bottom side view of a device for charging the first device provided in this embodiment, fig. 14 is a schematic implementation view of a rubber plug non-insertion opening provided in this embodiment, fig. 15 is a schematic implementation of a rubber plug insertion opening provided in this embodiment, fig. 16 is a schematic implementation of a spring plate provided in this embodiment, fig. 16 is a schematic spring plate provided in this embodiment is not shown in this embodiment, and fig. 17 is a spring plate is implemented in this embodiment.
In one possible embodiment, for example, at least one opening is provided at the edge of the first device, in which opening the discharge contacts are arranged.
Wherein the discharging contact of the first device and the charging contact of the second device may be connected, for example, by magnetic attraction.
As can be appreciated, for example, with reference to fig. 6, a left opening and a right opening as shown in fig. 6 can be provided in the first device, for example, as shown in fig. 6, wherein a discharge contact is provided in the openings. And referring to fig. 6, wherein a TWS left earphone may be inserted into the left side aperture for charging of the left earphone and a TWS right earphone may be inserted into the right side aperture for charging of the right earphone.
And in one possible implementation, for example, the TWS headset may be placed in an upper opening of the first device (typically about 6mm in diameter, comparable to the thickness of the handset), and then the automatic charging mode is turned on; for example, the charging contact can be arranged on the side surface of the earphone and just corresponds to the contact on the main board, and the magnetic connection is adopted, so that the earphone is not easy to fall off.
The foregoing description of fig. 6 is a front view of the first device when the second device is charging in the first device, and it is further understood that the charging is a back view of the first device from fig. 7, and reference is made to fig. 7 in which the TWS left earpiece, the TWS right earpiece, the left opening, and the right opening are similar to those described above.
And, because the aperture through which the headset is charged is provided inside the first device, the first device appears to be free of anomalies when the first device is not being charged, for example, a front view and a back view when the first device is not being charged with the headset can be understood in conjunction with fig. 8 and 9.
Referring to fig. 8, when the first device is not charging the headset, its front face appears to be a conventional device that includes a front camera and earpiece openings. And referring to fig. 9, when the first device does not perform the charging of the headset, the back surface thereof appears to be a normal device including a rear camera and a flash.
And, for a better understanding of the opening of the first device, a side view of the opening of the first device can be further understood, for example, in conjunction with fig. 10, as shown in fig. 10, wherein the left side opening and the right side bayonet of the side of the first device are shown, and for ease of understanding the side view, the position of the noise reduction microphone is also shown in fig. 10.
And, because the aperture through which the headset is charged is provided inside the first device, the first device appears to be free of anomalies when the first device is not being charged, for example, a side view when the first device is not being charged with the headset can be understood in connection with fig. 11-13.
Referring to fig. 11, when the first device does not perform the charging of the headset, the left side thereof appears to be a general device including a subscriber identity card (Subscriber Identification Module, SIM) card slot and a flash (TF) card slot. And referring to fig. 12, when the first device does not perform the charging of the headset, the right side thereof appears to be a normal device including a volume up key and a volume down key, and an on key. And referring to fig. 13, when the first device is not charging the headset, its underside appears to be a normal device including a main microphone and universal serial bus (Universal Serial Bus, USB) interface and a speaker opening.
It will also be appreciated that the aperture described above is provided in the first device in order to charge the second device, but that the dust and splash protection of the aperture in the first device is also a consideration when the second device is not being charged.
In one possible implementation, for example, a removable rubber plug is provided in the opening; alternatively, a movable spring plate is provided in the opening.
Possible implementations of the rubber stopper and the spring piece are described below with reference to the drawings.
The implementation of the rubber stopper will be described with reference to fig. 14 and 15, and as shown in fig. 14, when the first device charges the earphone, the rubber stopper may not be inserted into the opening, so that the earphone may be inserted into the opening for charging. And as shown in fig. 15, when the first device does not charge the earphone, for example, a rubber plug may be inserted into the opening to realize dust and splash prevention of the first device.
Next, an implementation manner of the spring piece is described with reference to fig. 16 and 17, when the spring piece can be automatically opened and closed, as shown in fig. 16, and when the first device does not charge the earphone, the spring piece can block the opening, so that dust prevention and splash prevention are realized, and the spring piece can be a circular spring piece with the same size as the opening. And as shown in fig. 17, when the first device charges the earphone, the spring piece can be pressed downwards under the action of external force in the process of inserting the earphone into the first device, so that the earphone is inserted into the opening for charging. After the earphone is charged, when the earphone is pulled out, the spring piece can be restored to the original position by means of the elasticity of the spring.
In summary, according to the earphone charging method provided by the embodiment of the application, the charging management module and the opening for the TWS earphone are arranged on the portable equipment such as the mobile phone or the tablet, and the TWS earphone is powered after the battery voltage of the mobile phone is boosted, so that the TWS earphone can be charged based on the portable equipment, an additional charging bin is omitted, the problem that the charging bin is bulky and is not easy to carry is effectively solved, and meanwhile, the problem that the TWS earphone is limited in charging times can be effectively solved because the electric quantity which can be stored by the mobile phone or the tablet is relatively large.
Fig. 18 is a schematic structural diagram of an earphone charging device according to an embodiment of the present application. As shown in fig. 18, the apparatus 180 includes: a first acquisition module 1801, a second acquisition module 1802, and a control module 1803.
A first acquiring module 1801, configured to acquire, when any one of the discharging contacts is detected to contact a charging contact of a second device, a battery voltage of the second device and a battery voltage of the first device;
a second obtaining module 1802, configured to obtain a charging state of the first device, where the charging state of the first device includes charging and uncharged;
and a control module 1803, configured to control, if the charging state of the first device is uncharged and the battery voltage of the second device is smaller than the battery voltage of the first device, charging the battery of the first device to the battery of the second device.
In one possible design, the control module 1803 is further configured to, after the controlling the battery of the first device to charge the battery of the second device:
if the state of charge of the first device is detected to be changed from uncharged to charged, controlling the battery of the first device to stop charging the battery of the second device;
And displaying first prompt information on a screen of the first equipment, wherein the first prompt information is used for prompting the second equipment to stop charging.
In one possible design, the control module 1803 is further configured to, after the controlling the battery of the first device to charge the battery of the second device:
if the battery voltage of the second device is detected to be greater than or equal to the battery voltage of the first device, controlling the battery of the first device to suspend charging of the battery of the second device;
after a first preset time period, acquiring the battery voltage of the second equipment and the battery voltage of the first equipment;
if the battery voltage of the second device is smaller than the battery voltage of the first device, the battery of the first device is controlled to continue to charge the battery of the second device; or,
and if the battery voltage of the second device is greater than or equal to the battery voltage of the first device, repeating the operation of acquiring the battery voltage of the second device and the battery voltage of the first device after a first preset time period until the battery voltage of the second device is determined to be less than the battery voltage of the first device or until the time period when the battery voltage of the second device is greater than or equal to the battery voltage of the first device exceeds a second preset time period.
In one possible design, if it is determined that the battery voltage of the second device is greater than or equal to the battery voltage of the first device for a period of time greater than a second preset period of time, the control module 1803 is further configured to:
controlling the battery of the first device to stop charging the battery of the second device;
and displaying second prompt information on a screen of the first device, wherein the second prompt information is used for prompting the second device to stop charging.
In one possible design, the control module 1803 is further configured to:
acquiring the battery power of the second device, and displaying the battery power of the second device on a screen of the first device;
if the battery electric quantity of the second equipment is determined to reach the preset battery electric quantity, controlling the battery of the first equipment to stop charging the second equipment;
and displaying third prompt information on a screen of the first equipment, wherein the third prompt information is used for indicating that the second equipment is charged.
In one possible design, the edge of the first device is provided with at least one opening in which the discharge contact is arranged.
In one possible design, the discharge contact of the first device and the charging contact of the second device are connected by magnetic attraction.
In one possible design, a removable rubber plug is provided in the aperture; alternatively, a movable spring piece is arranged in the opening.
The device provided in this embodiment may be used to implement the technical solution of the foregoing method embodiment, and its implementation principle and technical effects are similar, and this embodiment will not be described herein again.
Fig. 19 is a schematic diagram of a hardware structure of an earphone charging device provided in the embodiment of the present application, as shown in fig. 19, an earphone charging device 190 of the embodiment includes: a processor 1901 and a memory 1902; wherein the method comprises the steps of
A memory 1902 for storing computer-executable instructions;
processor 1901 is configured to execute computer-executable instructions stored in a memory to perform the steps performed by the method for charging a tympanic membrane of the above embodiment. Reference may be made in particular to the relevant description of the embodiments of the method described above.
Alternatively, the memory 1902 may be separate or integrated with the processor 1901.
When the memory 1902 is provided separately, the headset charging device further includes a bus 1903 for connecting said memory 1902 and the processor 1901.
The embodiment of the application also provides a computer readable storage medium, wherein computer execution instructions are stored in the computer readable storage medium, and when a processor executes the computer execution instructions, the earphone charging method executed by the earphone charging device is realized.
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 above-described embodiments of the apparatus are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules may be combined or integrated into another system, 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 modules, which may be in electrical, mechanical, or other forms.
The integrated modules, which are implemented in the form of software functional modules, may be stored in a computer readable storage medium. The software functional module is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (english: processor) to perform some of the steps of the methods described in the embodiments of the present application.
It should be understood that the above processor may be a central processing unit (english: central Processing Unit, abbreviated as CPU), or may be other general purpose processors, digital signal processors (english: digital Signal Processor, abbreviated as DSP), application specific integrated circuits (english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile memory NVM, such as at least one magnetic disk memory, and may also be a U-disk, a removable hard disk, a read-only memory, a magnetic disk or optical disk, etc.
The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, the buses in the drawings of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Claims (9)
1. A method of charging headphones, applied to a first device, wherein the first device comprises a battery, and wherein at least one discharge contact is provided in the first device, the method comprising:
when any one of the discharging contacts is detected to contact with a charging contact of second equipment, acquiring the battery voltage of the second equipment and the battery voltage of the first equipment;
acquiring the charging state of the first equipment, wherein the charging state of the first equipment comprises charging and uncharged state;
if the charging state of the first device is uncharged and the battery voltage of the second device is smaller than the battery voltage of the first device, controlling the battery of the first device to charge the battery of the second device;
After the controlling the battery of the first device to charge the battery of the second device, the method further comprises:
if the state of charge of the first device is detected to be changed from uncharged to charged, controlling the battery of the first device to stop charging the battery of the second device;
displaying first prompt information on a screen of the first device, wherein the first prompt information is used for prompting the second device to stop charging;
after the controlling the battery of the first device to charge the battery of the second device, the method further comprises:
if the battery voltage of the second device is detected to be greater than or equal to the battery voltage of the first device, controlling the battery of the first device to suspend charging of the battery of the second device;
after a first preset time period, acquiring the battery voltage of the second equipment and the battery voltage of the first equipment;
if the battery voltage of the second device is smaller than the battery voltage of the first device, the battery of the first device is controlled to continue to charge the battery of the second device; or,
and if the battery voltage of the second device is greater than or equal to the battery voltage of the first device, repeating the operation of acquiring the battery voltage of the second device and the battery voltage of the first device after a first preset time period until the battery voltage of the second device is determined to be less than the battery voltage of the first device or until the time period when the battery voltage of the second device is greater than or equal to the battery voltage of the first device exceeds a second preset time period.
2. The method of claim 1, wherein if it is determined that the battery voltage of the second device is greater than or equal to the battery voltage of the first device for a period of time exceeding a second preset period of time, the method further comprises:
controlling the battery of the first device to stop charging the battery of the second device;
and displaying second prompt information on a screen of the first device, wherein the second prompt information is used for prompting the second device to stop charging.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
acquiring the battery power of the second device, and displaying the battery power of the second device on a screen of the first device;
if the battery electric quantity of the second equipment is determined to reach the preset battery electric quantity, controlling the battery of the first equipment to stop charging the second equipment;
and displaying third prompt information on a screen of the first equipment, wherein the third prompt information is used for indicating that the second equipment is charged.
4. A method according to claim 1 or 2, characterized in that the edge of the first device is provided with at least one opening in which the discharge contacts are provided.
5. The method of claim 4, wherein the discharging contact of the first device and the charging contact of the second device are connected by magnetic attraction.
6. The method of claim 4, wherein a removable rubber plug is disposed in the aperture; alternatively, a movable spring piece is arranged in the opening.
7. An earphone charging apparatus, characterized by being applied to a first device, wherein the first device comprises a battery, and wherein at least one discharge contact is provided in the first device, the apparatus comprising:
a first acquisition module, configured to acquire a battery voltage of a second device and a battery voltage of the first device when any one of the discharge contacts is detected to contact a charging contact of the second device;
the second acquisition module is used for acquiring the charging state of the first equipment, wherein the charging state of the first equipment comprises charging and uncharged state;
the control module is used for controlling the battery of the first equipment to charge the battery of the second equipment if the charging state of the first equipment is uncharged and the battery voltage of the second equipment is smaller than the battery voltage of the first equipment;
After the controlling the battery of the first device to charge the battery of the second device, the control module is further configured to:
if the state of charge of the first device is detected to be changed from uncharged to charged, controlling the battery of the first device to stop charging the battery of the second device;
displaying first prompt information on a screen of the first device, wherein the first prompt information is used for prompting the second device to stop charging;
if the battery voltage of the second device is detected to be greater than or equal to the battery voltage of the first device, controlling the battery of the first device to suspend charging of the battery of the second device;
after a first preset time period, acquiring the battery voltage of the second equipment and the battery voltage of the first equipment;
if the battery voltage of the second device is smaller than the battery voltage of the first device, the battery of the first device is controlled to continue to charge the battery of the second device; or,
and if the battery voltage of the second device is greater than or equal to the battery voltage of the first device, repeating the operation of acquiring the battery voltage of the second device and the battery voltage of the first device after a first preset time period until the battery voltage of the second device is determined to be less than the battery voltage of the first device or until the time period when the battery voltage of the second device is greater than or equal to the battery voltage of the first device exceeds a second preset time period.
8. A headset charging device, comprising:
a memory for storing a program;
a processor for executing the program stored by the memory, the processor being for performing the method of any one of claims 1 to 6 when the program is executed.
9. A computer readable storage medium comprising instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111166205.3A CN113890150B (en) | 2021-09-30 | 2021-09-30 | Earphone charging method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111166205.3A CN113890150B (en) | 2021-09-30 | 2021-09-30 | Earphone charging method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113890150A CN113890150A (en) | 2022-01-04 |
CN113890150B true CN113890150B (en) | 2024-03-01 |
Family
ID=79005218
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111166205.3A Active CN113890150B (en) | 2021-09-30 | 2021-09-30 | Earphone charging method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113890150B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201263165Y (en) * | 2008-09-23 | 2009-06-24 | 上海华勤通讯技术有限公司 | Bluetooth mobile phone |
CN203261454U (en) * | 2013-05-29 | 2013-10-30 | 黄成武 | A Bluetooth earphone and terminal equipment internally provided with the same Bluetooth earphone |
CN105468090A (en) * | 2014-08-28 | 2016-04-06 | 梁伟 | Mobile electronic equipment with wireless accessory charging cabin groove |
CN205283620U (en) * | 2015-10-14 | 2016-06-01 | 谢松文 | Mobile phone |
CN210629149U (en) * | 2019-10-31 | 2020-05-26 | 深圳市睿宇模具制品有限公司 | Multifunctional mobile phone back clip battery |
CN112821502A (en) * | 2021-01-28 | 2021-05-18 | 上海闻泰信息技术有限公司 | Earphone charging control method and device, mobile terminal and storage medium |
-
2021
- 2021-09-30 CN CN202111166205.3A patent/CN113890150B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201263165Y (en) * | 2008-09-23 | 2009-06-24 | 上海华勤通讯技术有限公司 | Bluetooth mobile phone |
CN203261454U (en) * | 2013-05-29 | 2013-10-30 | 黄成武 | A Bluetooth earphone and terminal equipment internally provided with the same Bluetooth earphone |
CN105468090A (en) * | 2014-08-28 | 2016-04-06 | 梁伟 | Mobile electronic equipment with wireless accessory charging cabin groove |
CN205283620U (en) * | 2015-10-14 | 2016-06-01 | 谢松文 | Mobile phone |
CN210629149U (en) * | 2019-10-31 | 2020-05-26 | 深圳市睿宇模具制品有限公司 | Multifunctional mobile phone back clip battery |
CN112821502A (en) * | 2021-01-28 | 2021-05-18 | 上海闻泰信息技术有限公司 | Earphone charging control method and device, mobile terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113890150A (en) | 2022-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3813221B1 (en) | Battery charging method, battery charging apparatus and storage medium | |
CN112542863B (en) | Charging method and device, and readable storage medium | |
CN107843802A (en) | Internal short-circuit detection method and device | |
CN111987772B (en) | On-chip system, battery pack and electronic device | |
CN108132401A (en) | Charge abnormal detection method, device, storage medium and mobile terminal | |
US9069538B2 (en) | Preventing dark current flow in a mobile terminal | |
CN109450023B (en) | Charging circuit, charging processing method, electronic device, and storage medium | |
CN101415043A (en) | Mobile terminal aware of externally connected device and control method for the same | |
US20140210503A1 (en) | Startup boot cycle testing of a mobile device at diminished power supply current | |
CN111987773B (en) | On-chip system, battery pack and electronic device | |
CN111433999A (en) | Electronic device including battery and method of controlling charging thereof | |
WO2021239007A1 (en) | Battery identification method, electronic device and storage medium | |
CN109413532A (en) | A kind of charging bluetooth earphone circuit and bluetooth headset | |
CN110416643B (en) | Processing method and device and electronic equipment | |
CN111949107B (en) | Method and device for controlling electronic equipment comprising USB Type-C interface and electronic equipment | |
CN113890150B (en) | Earphone charging method and device | |
CN113285499B (en) | Charging control method, electronic device, control device and storage medium | |
CN103682863A (en) | Voice reminding charging data wire and charging method of charging data wire | |
CN110380484B (en) | Charging method, terminal and storage medium | |
CN109193878A (en) | Charging circuit, charging method, electronic equipment and storage medium | |
CN106786932A (en) | A kind of method and device of charge reminder | |
CN112019681B (en) | Control method of mobile terminal, mobile terminal and storage medium | |
CN210297298U (en) | Adapter simultaneously supporting type-c analog earphone and quick charging | |
KR20120032377A (en) | System for charging battery using charging gender | |
CN111600355A (en) | Charging control method, device and 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 |